profile
viewpoint
Moritz Schwörer mosch tocsen Freiburg, Germany [object Object]

gatsbyjs/gatsby 47566

Build blazing fast, modern apps and websites with React

adieuadieu/alagarr 58

🦍 Alagarr is a request-response helper library that removes the boilerplate from your Node.js (AWS Lambda) serverless functions and helps make your code portable.

mosch/express-http-auth 10

A simple implementaion of http auth for the express.js framework

mosch/awesome-react 4

A collection of awesome React libraries, resources and shiny things.

mosch/FOSElasticaBundle 1

Elasticsearch PHP integration for your Symfony2 project using Elastica

mosch/Adafruit_Python_PCA9685 0

Python code to use the PCA9685 PWM servo/LED controller with a Raspberry Pi or BeagleBone black.

mosch/aiyprojects-raspbian 0

An easy-to-use API for the AIY Voice Kit

mosch/alagarr-1 0

🦍 Alagarr is a request-response helper library that removes the boilerplate from your Node.js (AWS Lambda) serverless functions and helps make your code portable.

mosch/archer 0

Testing, CI and documentation of PHP projects by convention.

issue commentmosch/react-avatar-editor

ReferenceError: babelHelpers is not defined

Just released 10.0.11 - can u confirm?

martin8877

comment created time in a day

push eventmosch/react-avatar-editor

Moritz Schwörer

commit sha 44e79535f7125ccd389e9d5d9077bccc1f14d969

v11.0.11

view details

push time in a day

created tagmosch/react-avatar-editor

tagv11.0.11

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.

created time in a day

startedphilipnilsson/bueno

started time in 7 days

fork mosch/fonos

🚀 An open-source alternative to Twilio.

http://fonoster.github.com/fonos

fork in 8 days

PR closed allthings/elements

Version 5.0.0

Breaking Changes

  • Typescript all the way - Hooray 🎉🥳👯‍♀️
  • Peer dependency React upgraded to ^16.8 in order to use hooks.
  • Card: Removed support for containerStyle, use style instead.
  • Calendar: onChange now has an optional first argument on clear instead of an empty string.
  • withTheme HOC has been dropped (use Theme or useTheme hook)
  • Dropped refs Note: We could/should use forwardRef to get them back.
    • View: Changed from onRef to ref (uses forwardRef)
    • Textarea: Removed support for onTextarea.
    • RadioButton: dropped support for inputRef.
  • CDNIntlProvider was removed from @allthings/elements and put into its own package: @allthings/cdn-intl-provider.

Other changes

  • ResourceProvider: Migrated to new react context API
  • Checkbox renamed to FormCheckbox. The "new" Checkbox component only is a checkbox instead of being wrapped with additional styles.
  • Pill now supports onClickDelete
  • Dropdown now supports disabled
  • SearchableDropdown now supports disabled
  • Input now supports disabled
  • Text property strong is now deprecated. Use weight instead: <Text weight="semi-bold" /> === <Text strong />
  • Using const x = (props: IMyProps) => {...} for component declarations

New components

  • SearchableDropdown: A dropdown component with an additional search input for filtering items. It's a hybrid component between Dropdown and Typeahead.

Todo

  • [x] Use hook over HOC/render function.
  • [ ] Make Logo useful
  • [x] Get rid of withTheme
  • [x] Make theme work same on all components

Upgrade notes

withTheme was removed in favor for the useTheme hook. If you can't or don't want to rewrite everything to use hooks, you can either use the Theme component (Function as a child) or take a simple wrapper to restore the higher order functionality: <details> <summary>See higher order implementation example</summary>

(This is API compliant, i.e. you can use it as it was used before.)

import React from 'react'
import { useTheme } from '@allthings/elements/Theme'

export const withTheme = (
  mapThemeToProps = undefined,
) => Component => props => {
  const { theme } = useTheme()
  const themeProps = !mapThemeToProps
    ? { theme }
    : mapThemeToProps(theme, props)

  return <Component {...props} {...themeProps} />
}

</details>

How to release a new beta version

yarn version 5.0.0-beta.XY
yarn release
+24345 -16896

4 comments

453 changed files

mosch

pr closed time in 10 days

startedsindresorhus/ky

started time in 12 days

push eventmosch/react-avatar-editor

MahdiHadrich

commit sha 70d99d140356d7410b43a7b14fc54dd7fbd35ef7

Fix canvas rotation when rotating the image

view details

MahdiHadrich

commit sha 9d2f9859c2002f883dcd09279391af16e836efcf

Fix Babel issues

view details

MahdiHadrich

commit sha b3b47a074471b4b9762ae0dab76c40b11bd0b829

upgrade webpack

view details

Moritz Schwörer

commit sha 358f16a8c44baee5b193c828929ff5d17f86f9d8

Merge pull request #343 from MahdiHadrich/fix/canvas-rotation Fix canvas rotation when rotating the image

view details

push time in 21 days

PR merged mosch/react-avatar-editor

Fix canvas rotation when rotating the image

In the first commit of this PR, I added a props property named "disableCanvasRotation" that should disable canvas rotation when rotating the image, I also added an example for the demo. This should fix the bug in this issue : https://github.com/mosch/react-avatar-editor/issues/299 In the second commit of this PR, I fixed the babelHelpers error in this issue : https://github.com/mosch/react-avatar-editor/issues/340 And then in the last commit, I upgraded the Webpack package.

+1539 -698

1 comment

5 changed files

MahdiHadrich

pr closed time in 21 days

created repositorymosch/test

created time in a month

startednirsky/react-native-size-matters

started time in 2 months

fork mosch/eslint-plugin-react-intl

react-intl specific linting rules for ESLint

fork in 2 months

PR opened transistorsoft/react-native-background-fetch

Allow callback to be async

Like it documented in the README.md

+1 -1

0 comment

1 changed file

pr created time in 2 months

push eventmosch/react-native-background-fetch

Moritz Schwörer

commit sha 662770a3cdf3283f1aeb59308654227647d67831

Allow callback to be async Like it's documented in the README.md

view details

push time in 2 months

fork mosch/react-native-background-fetch

Periodic callbacks in the background for both IOS and Android

fork in 2 months

startedmichael2m/lock

started time in 3 months

startedmichael2m/lock

started time in 3 months

PR opened web-ridge/react-ridge-state

Export StateWithValue

We want to be able to type multiple states in an array, so it would be really helpful to have this type exported.

Especially because we can't go with the return type of the generic:

ReturnType<typeof newRidgeState>

Great project, thanks for sharing & maintaining it!

+1 -1

0 comment

1 changed file

pr created time in 3 months

push eventmosch/react-ridge-state

Moritz Schwörer

commit sha efce59b52051933a053a6f49c1e0ccfbcb25f098

Export StateWithValue

view details

push time in 3 months

fork mosch/react-ridge-state

Simple 💪 fast ⚡️ and small :balloon: (400 bytes) global state management for React (Native)

https://www.npmjs.com/package/react-ridge-state

fork in 3 months

more