Major Changes
-
cdc5b80: Add three new helpers to
@remirror/core-utils
/@remirror/core
:isStateEqual
,
areSchemaCompatible
andgetRemirrorJSON
.BREAKING: 💥 Rename
getObjectNode
togetRemirrorJSON
. -
0ff4fd5: Default to inserting a new paragraph node after the
HorizontalRuleExtension
.BREAKING: 💥 Rename
horizonalRule
command toinsertHorizontalRule
.Add a new option
insertionNode
to theHorizontalRuleExtension
which sets the default node to
automatically append after insertion.Update the css styles for the default
hr
tag.Closes #417
Minor Changes
-
44516da: Support
chained
commands and multiple command updates in controlled editors.Fixes #418
-
e5ea0c8: Add support for
Handler
options with custom return values and early returns.Previously handlers would ignore any return values. Now a handler will honour the return value.
The earlyReturn value can be specified in the static options using theextensionDecorator
.
Currently it only supports primitives. Support for a function to check the return value will be
added later. -
08e5107: Add
insertHardBreak
command.Add inline documentation instructing developers to use the
TrailingNodeExtension
when using
hardBreak
to exit acodeBlock
. -
f91dcab: 🎉 New extension
@remirror/extension-events
.This extension adds handlers for the events happening within the remirror editor. The extension is
part of theCorePreset
but it doesn't make it's handlers available to the preset. In order to
use the handlers you will need direct access to theEventsExtension
.import { EventsExtension } from 'remirror/extension-events'; import { useExtension } from 'remirror/react'; const Editor = () => { useExtension( EventsExtension, ({ addHandler }) => { addHandler('focus', () => log('focused')); }, [], ); };
To begin with the only events added are
focus
andblur
.
Patch Changes
-
0dd4d62: Prevent mid word emoji matches on colon press.
-
273d0a7: Hide social popups when the editor is blurred.
-
9d708c0: Reduce the
AutoLinkExtension
priority and remove priority override for the mention and
emoji extensions. -
a404f5a: Add the option
excludeExtensions
toCorePreset
'sconstructor
to exclude any
extensions.Remove the option
excludeHistory
fromCorePreset
'sconstructor
. -
e3d937f: Support chaining for
setBold
andremoveBold
commands. -
6c3b278: Make sure the
transaction
has all the latest updates if changed between
onStateUpdate
events. This allows chaining to be supported properly. -
7477b93: Use
NonChainableCommandFunction
annotation to indicate commands are not chainable. -
Updated dependencies [cdc5b80]
-
Updated dependencies [0dd4d62]
-
Updated dependencies [0ff4fd5]
-
Updated dependencies [273d0a7]
-
Updated dependencies [44516da]
-
Updated dependencies [9d708c0]
-
Updated dependencies [e5ea0c8]
-
Updated dependencies [a404f5a]
-
Updated dependencies [e3d937f]
-
Updated dependencies [6c3b278]
-
Updated dependencies [7477b93]
-
Updated dependencies [08e5107]
-
Updated dependencies [f91dcab]
- @remirror/core-utils@1.0.0-next.15
- @remirror/core@1.0.0-next.15
- @remirror/extension-emoji@1.0.0-next.15
- @remirror/extension-horizontal-rule@1.0.0-next.15
- @remirror/react-social@1.0.0-next.15
- @remirror/extension-code@1.0.0-next.15
- @remirror/extension-code-block@1.0.0-next.15
- @remirror/extension-heading@1.0.0-next.15
- @remirror/extension-italic@1.0.0-next.15
- @remirror/extension-paragraph@1.0.0-next.15
- @remirror/extension-strike@1.0.0-next.15
- @remirror/extension-underline@1.0.0-next.15
- @remirror/preset-social@1.0.0-next.15
- @remirror/extension-bold@1.0.0-next.15
- @remirror/extension-history@1.0.0-next.15
- @remirror/extension-yjs@1.0.0-next.15
- @remirror/extension-hard-break@1.0.0-next.15
- @remirror/extension-events@1.0.0-next.15
- @remirror/preset-core@1.0.0-next.15
- @remirror/dom@1.0.0-next.15
- @remirror/extension-auto-link@1.0.0-next.15
- @remirror/extension-base-keymap@1.0.0-next.15
- @remirror/extension-bidi@1.0.0-next.15
- @remirror/extension-blockquote@1.0.0-next.15
- @remirror/extension-collaboration@1.0.0-next.15
- @remirror/extension-diff@1.0.0-next.15
- @remirror/extension-doc@1.0.0-next.15
- @remirror/extension-drop-cursor@1.0.0-next.15
- @remirror/extension-epic-mode@1.0.0-next.15
- @remirror/extension-gap-cursor@1.0.0-next.15
- @remirror/extension-image@1.0.0-next.15
- @remirror/extension-link@1.0.0-next.15
- @remirror/extension-mention@1.0.0-next.15
- @remirror/extension-placeholder@1.0.0-next.15
- @remirror/extension-position-tracker@1.0.0-next.15
- @remirror/extension-positioner@1.0.0-next.15
- @remirror/extension-react-component@1.0.0-next.15
- @remirror/extension-react-ssr@1.0.0-next.15
- @remirror/extension-search@1.0.0-next.15
- @remirror/extension-text@1.0.0-next.15
- @remirror/extension-trailing-node@1.0.0-next.15
- @remirror/preset-embed@1.0.0-next.15
- @remirror/preset-list@1.0.0-next.15
- @remirror/preset-react@1.0.0-next.15
- @remirror/preset-table@1.0.0-next.15
- @remirror/preset-wysiwyg@1.0.0-next.15
- @remirror/react@1.0.0-next.15
- @remirror/react-wysiwyg@1.0.0-next.15