github remirror/remirror v1.0.0-next.21

Major Changes

  • 8c34030: 💥 Remove property updateSelection from the nodeInputRule, markInputRule and
    plainInputRule functions. You should use the new beforeDispatch method instead.

    Add new beforeDispatch method to the nodeInputRule, markInputRule and plainInputRule
    parameter. This method allows users to add extra steps to the transaction after a matching input
    rule has been run and just before it is dispatched.

    import { nodeInputRule } from 'remirror/core';
    
    nodeInputRule({
      type,
      regexp: /abc/,
      beforeDispatch: ({ tr }) => tr.insertText('hello'),
    });

Minor Changes

  • baf3f56: Add ignoreWhitespace option to markInputRule for ignoring a matching input rule if
    the capture groups is only whitespace. Apply to all wrapping input rules for MarkExtension's in
    the project.

    Fix #506 ItalicExtension issue with input rule being greedy and capturing one preceding
    character when activated within a text block.

Patch Changes

  • 3673a0f: Fix #518 caused by the way the EditorWrapper was setting up listeners to events from
    the RemirrorManager. Previously the failure became apparent when used in an uncontrolled editor
    in StrictMode.

    Set the default CommandFunction type parameter to be EditorSchema for better code completion
    when creating an extension.

  • baf3f56: Add ignoreWhitespace option to markInputRule for ignoring a matching input rule if
    the capture groups is only whitespace. Apply to all wrapping input rules for MarkExtension's in
    the project.

    Fix #506 ItalicExtension issue with input rule being greedy and capturing one preceding
    character when activated within a text block.

  • Updated dependencies [8c34030]

  • Updated dependencies [3673a0f]

  • Updated dependencies [8c34030]

  • Updated dependencies [baf3f56]

    • @remirror/extension-horizontal-rule@1.0.0-next.21
    • @remirror/core@1.0.0-next.21
    • @remirror/core-types@1.0.0-next.21
    • @remirror/core-utils@1.0.0-next.21
    • @remirror/extension-code@1.0.0-next.21
    • @remirror/extension-bold@1.0.0-next.21
    • @remirror/extension-italic@1.0.0-next.21
    • @remirror/extension-strike@1.0.0-next.21
    • @remirror/preset-wysiwyg@1.0.0-next.21
    • @remirror/dom@1.0.0-next.21
    • @remirror/extension-annotation@1.0.0-next.21
    • @remirror/extension-auto-link@1.0.0-next.21
    • @remirror/extension-bidi@1.0.0-next.21
    • @remirror/extension-blockquote@1.0.0-next.21
    • @remirror/extension-code-block@1.0.0-next.21
    • @remirror/extension-collaboration@1.0.0-next.21
    • @remirror/extension-diff@1.0.0-next.21
    • @remirror/extension-doc@1.0.0-next.21
    • @remirror/extension-drop-cursor@1.0.0-next.21
    • @remirror/extension-emoji@1.0.0-next.21
    • @remirror/extension-epic-mode@1.0.0-next.21
    • @remirror/extension-events@1.0.0-next.21
    • @remirror/extension-gap-cursor@1.0.0-next.21
    • @remirror/extension-hard-break@1.0.0-next.21
    • @remirror/extension-heading@1.0.0-next.21
    • @remirror/extension-history@1.0.0-next.21
    • @remirror/extension-image@1.0.0-next.21
    • @remirror/extension-link@1.0.0-next.21
    • @remirror/extension-mention@1.0.0-next.21
    • @remirror/extension-paragraph@1.0.0-next.21
    • @remirror/extension-placeholder@1.0.0-next.21
    • @remirror/extension-position-tracker@1.0.0-next.21
    • @remirror/extension-positioner@1.0.0-next.21
    • @remirror/extension-react-component@1.0.0-next.21
    • @remirror/extension-react-ssr@1.0.0-next.21
    • @remirror/extension-search@1.0.0-next.21
    • @remirror/extension-text@1.0.0-next.21
    • @remirror/extension-trailing-node@1.0.0-next.21
    • @remirror/extension-underline@1.0.0-next.21
    • @remirror/extension-yjs@1.0.0-next.21
    • @remirror/preset-core@1.0.0-next.21
    • @remirror/preset-embed@1.0.0-next.21
    • @remirror/preset-list@1.0.0-next.21
    • @remirror/preset-react@1.0.0-next.21
    • @remirror/preset-social@1.0.0-next.21
    • @remirror/preset-table@1.0.0-next.21
    • @remirror/react@1.0.0-next.21
    • @remirror/react-social@1.0.0-next.21
    • @remirror/react-wysiwyg@1.0.0-next.21
    • @remirror/core-helpers@1.0.0-next.21
    • @remirror/react-utils@1.0.0-next.21
    • @remirror/theme@1.0.0-next.21
    • @remirror/pm@1.0.0-next.21

Don't miss a new remirror release

NewReleases is sending notifications on new releases.