Added
@remirror/react
: AddwithoutEmotion
which, when set totrue
, removes emotion (css-in-js) from theRemirror
component. 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-components
or any of the@remirror/editor-*
packages will require the use of emotion.@remirror/react-utils
: AddoneChildOnly
export which throws readable errors for invalid children props.
Changed
-
💥 BREAKING
@remirror/react-utils
: RenamechildIsFunction
topropIsFunction
and make it a pseudo predicate function (returns true when it doesn't throw an error). -
💥 BREAKING
@remirror/editor-twitter
: RenameuiTwitterTheme
toTwitterEditorTheme
. -
💥 BREAKING
@remirror/core
: RenameHasExtensions
toExtensionListParams
. -
💥 BREAKING
@remirror/core
: RenamemarkActive
toisMarkActive
use 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.isEditable
method is now passed into thecommands
method as a means of checking. -
💥 BREAKING
@remirror/react
: All RemirrorProviders now require achildren
prop. This prevents a bug when rendering in non-dom environments. -
@remirror/react
:view.updateState
is 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:hooks
toyarn start:hooks
yarn husky:stop
andyarn husky:start
.
Remove
- 💥 BREAKING
@remirror/react-utils
@remirror/react
@remirror/editor-markdown
@remirror/editor-wysiwyg
: Remove customRootProp fromRemirrorProps
. - 💥 BREAKING
@remirror/core
: RemoveisEditable
guard 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 methodisEditable
are passed to thecommands
method of the extension. - 💥 BREAKING
@remirror/core
: Remove exportsGetItemParamsMethod
createFlexibleFunctionMap
hasExtensionProperty
extensionPropertyMapper
transformExtensionMap
ignoreFunctions
.