Remirror: v1.0.0-next.15 Release

Release date:
July 31, 2020
Previous version:
v1.0.0-next.14 (released July 29, 2020)
Magnitude:
2,375 Diff Delta
Contributors:
4 total committers
Data confidence:
Commits:

Top Contributors in v1.0.0-next.15

ifiokjr
github-actions[bot]
ocavue
ronnyroeller

Directory Browser for v1.0.0-next.15

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

  • cdc5b801: Add three new helpers to @remirror/core-utils / @remirror/core: isStateEqual, areSchemaCompatible and getRemirrorJSON.

BREAKING: πŸ’₯ Rename getObjectNode to getRemirrorJSON.

  • 0ff4fd5c: Default to inserting a new paragraph node after the HorizontalRuleExtension.

BREAKING: πŸ’₯ Rename horizonalRule command to insertHorizontalRule.

Add a new option insertionNode to the HorizontalRuleExtension which sets the default node to automatically append after insertion.

Update the css styles for the default hr tag.

Closes #417

Minor Changes

  • 44516da4: Support chained commands and multiple command updates in controlled editors.

Fixes #418

  • e5ea0c84: 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 the extensionDecorator. Currently it only supports primitives. Support for a function to check the return value will be added later.

  • 08e51078: Add insertHardBreak command.

Add inline documentation instructing developers to use the TrailingNodeExtension when using hardBreak to exit a codeBlock.

  • f91dcab1: πŸŽ‰ New extension @remirror/extension-events.

This extension adds handlers for the events happening within the remirror editor. The extension is part of the CorePreset but it doesn't make it's handlers available to the preset. In order to use the handlers you will need direct access to the EventsExtension.

  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 and blur.

Patch Changes

  • 0dd4d621: Prevent mid word emoji matches on colon press.
  • 273d0a71: Hide social popups when the editor is blurred.
  • 9d708c03: Reduce the AutoLinkExtension priority and remove priority override for the mention and emoji extensions.
  • a404f5a1: Add the option excludeExtensions to CorePreset's constructor to exclude any extensions.

Remove the option excludeHistory from CorePreset's constructor.