Remirror: v1.0.0-next.40 Release

Release date:
September 24, 2020
Previous version:
v1.0.0-next.39 (released September 16, 2020)
Magnitude:
3,824 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

14 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored September 24, 2020
Authored September 22, 2020
Authored September 24, 2020
Authored September 24, 2020
Authored September 24, 2020
Authored September 24, 2020
Authored September 24, 2020
Authored September 23, 2020
Authored September 24, 2020
Authored September 24, 2020

Top Contributors in v1.0.0-next.40

ifiokjr
github-actions[bot]
ronnyroeller

Directory Browser for v1.0.0-next.40

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

  • 7c5778ed #700 Thanks @ifiokjr! - πŸŽ‰ Add support for position tracking to CommandsExtension.
    • New commands are available.
    • commands.addPositionTracker
    • commands.removePositionTracker.
    • commands.clearPositionTrackers.
    • New exports from @remirror/core including delayedCommand which is a building block for creating your own delayed commands.
    • BREAKING: πŸ’₯ Rename clearRangeSelection to emptySelection and fix a bug where it would always select the from rather than the anchor.
    • Add store property this.store.rawCommands for access to the original command functions which can sometimes come in handy. Also add it to the manager store and export new type named RawCommandsFromExtensions
    • Add initialState as a property of the BaseFramework.
    • BREAKING πŸ’₯ Require the Framework to be attached to the manager before any calls to getState are allowed. If you're using jest-remirror this change might break some of your tests that don't recreate the editor between tests.
    • commands.insertText now support delayed commands.
    • commands.insertText now supports adding marks to the added text.
  commands.insertText('Hello', {
    marks: {
      // The empty object `{}` represents the attributes being added.
      bold: {},
    },
  });
  • 227657ae #700 Thanks @ifiokjr! - BREAKING: πŸ’₯ Remove @remirror/position-tracker extension from the repository and remove remirror/extension/position-tracker as a potential import.
  • add65c90 #700 Thanks @ifiokjr! - BREAKING: πŸ’₯ Remove exports for flatten and emptyCommandFunction which are unused in the codebase and not very practical.

Update API for findChildrenByAttribute to only support an object of attributeNames and literal value or predicate value.

  const mergedCells = findChildrenByAttribute({
    node: table,
    attrs: { colspan: 2, id: (_, exists) => exists },
  });

Minor Changes

The annotation-extension would allow to style individual annotations via a CSS class. This led to issues with overlapping annotations. For example, if an annotation with a red background and another with a green background were overlapping, the editor would show (more or less) randomly one of the two colors. Now, the annotation-extension allows users to style decorations based on all overlapping annotations within a given decoration. The default implementation visualizes overlapping annotations by showing a darker shade the more annotations are overlapping. - 07aab2e8 #700 Thanks @ifiokjr! - Improve style output and fix CSS output issues. - 643555cc #700 Thanks @ifiokjr! - Export createEditorView from @remirror/react.

Patch Changes