v0.3.0
Pre-releaseAdded
@remirror/react: AddwithoutEmotionwhich, when set totrue, removes emotion (css-in-js) from theRemirrorcomponent. This is for those who don't like css-in-js and would like to work directly with the raw editor without random styles injected. Consuming the@remirror/react-componentsor any of the@remirror/editor-*packages will require the use of emotion.@remirror/react-utils: AddoneChildOnlyexport which throws readable errors for invalid children props.
Changed
-
💥 BREAKING
@remirror/react-utils: RenamechildIsFunctiontopropIsFunctionand make it a pseudo predicate function (returns true when it doesn't throw an error). -
💥 BREAKING
@remirror/editor-twitter: RenameuiTwitterThemetoTwitterEditorTheme. -
💥 BREAKING
@remirror/core: RenameHasExtensionstoExtensionListParams. -
💥 BREAKING
@remirror/core: RenamemarkActivetoisMarkActiveuse a destructured parameters object instead of positional arguments. -
💥 BREAKING
@remirror/core: It is now up to extensions to decide whether commands should be active when the editor is editable.isEditablemethod is now passed into thecommandsmethod as a means of checking. -
💥 BREAKING
@remirror/react: All RemirrorProviders now require achildrenprop. This prevents a bug when rendering in non-dom environments. -
@remirror/react:view.updateStateis now called beforeRemirror.setState. -
Add support for Git Large File Storage (LFS)
-
@remirror/editor-twitter,@remirror/editor-wysiwyg: Use image-snapshot testing to ensure SSR and DOM rendered editors are identical. -
Update husky command from
andyarn stop:hookstoyarn start:hooksyarn husky:stopandyarn husky:start.
Remove
- 💥 BREAKING
@remirror/react-utils@remirror/react@remirror/editor-markdown@remirror/editor-wysiwyg: Remove customRootProp fromRemirrorProps. - 💥 BREAKING
@remirror/core: RemoveisEditableguard from command functions. It is now up to the command or the caller to decide if it should run when the editor is not editable. To help with this command params with the methodisEditableare passed to thecommandsmethod of the extension. - 💥 BREAKING
@remirror/core: Remove exportsGetItemParamsMethod
createFlexibleFunctionMaphasExtensionPropertyextensionPropertyMappertransformExtensionMapignoreFunctions.