Remirror: v1.0.0-next.21 Release

Release date:
August 15, 2020
Previous version:
v1.0.0-next.20 (released August 14, 2020)
Magnitude:
933 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in v1.0.0-next.21

ifiokjr

Directory Browser for v1.0.0-next.21

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Major Changes

  • 8c34030e: πŸ’₯ 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

  • baf3f56d: 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