All Versions
Latest Version
Avg Release Cycle
3 days
Latest Release
1294 days ago

Changelog History
Page 2

  • v1.0.0-next.48 Changes

    October 08, 2020

    Minor Changes

    a2fa2c2b #745 Thanks @ifiokjr! - Add better iOS focus support. Now using focus on iOS will actually focus the editor.

    a2fa2c2b #745 Thanks @ifiokjr! - Add isIos environment flag.

  • v1.0.0-next.47 Changes

    October 08, 2020

    Major Changes

    ๐Ÿ”ง 56349ca5 #744 Thanks @ifiokjr! - Add new options to the YjsExtension to support full configuration of the y-prosemirror plugins.

    ๐Ÿ’ฅ BREAKING: ๐Ÿ’ฅ Remove WebrtcProvider. It was always required via TypeScript but now the default implementation throws an error if you don't install and provide the provider you want to use. The readme has been updated to reflect this change.

    ๐Ÿ’ฅ BREAKING: ๐Ÿ’ฅ yjs is now a peerDependency and you will need to install it in your codebase to consume the YjsExtension. This change follows from the above breaking change. For example, to configure any provider will need to provide your desired Doc from the yjs package.

    Minor Changes

    • โšก๏ธ c0867ced #744 Thanks @ifiokjr! - Support scroll updates by default for all positioners.

    Patch Changes

  • v1.0.0-next.46 Changes

    October 06, 2020

    Minor Changes

    ๐Ÿ”ง 73e81b43 #739 Thanks @ronnyroeller! - Configure blockseparator to concat multi-block content

    getAnnotations() return all currently set annotations and enriches them with the text of the annotation. This can be used e.g. to show a list of all annotations outside the editor context. Before, text from multiple blocks (in a multi-block annotation) was concatenated without any separated. Now, one can define via the "blockseparator" option which string to use as separator. For example, one could use a newline character to separate text from different blocks.

    0198b9fc #740 Thanks @whawker! - Add strike mark to the jest-prosemirror schema

  • v1.0.0-next.45 Changes

    October 01, 2020

    Patch Changes

    • 2175be1d Thanks @ifiokjr! - Fix CommandExtension error when editor started without an attached framework.
  • v1.0.0-next.44 Changes

    September 30, 2020

    Minor Changes

    • ๐Ÿ‘ 60776b1f #734 Thanks @whawker! - Add support for mousedown and mouseup events in EventsExtension

    Patch Changes

    โšก๏ธ bcf3b2c4 #731 Thanks @ifiokjr! - Bump dependencies with minor and patch updates.

    ๐Ÿš€ bcf3b2c4 #731 Thanks @ifiokjr! - Fix support for jest-remirror with versions before the 16 release.

    ๐Ÿ—„ Deprecate jsdomExtras which has been replaced by jsdomPolyfill.

    โœ… 8ce923a4 #733 Thanks @ifiokjr! - Fix incorrect usage of endsWith in ValidityTests.

    โšก๏ธ Updated dependencies [bcf3b2c4]:

    - [email protected]

    โšก๏ธ Updated dependencies [60776b1f, bcf3b2c4]

  • v1.0.0-next.43 Changes

    September 28, 2020

    Minor Changes

    • b030cb6e #728 Thanks @ifiokjr! - Add text property to the return value from getMarkRange. It's a common use case when getting the range of the mark to also extract the text content.

    Minor Changes

    ๐Ÿ‘ a02dd7d1 #730 Thanks @ronnyroeller! - Support forcefully redrawing annotations

    ๐Ÿ’… Annotations can be styled with a custom getStyle function. Yet, changes to outcome of the function (e.g. when the color schema is dynamically updated) won't automatically reflect in the editor.

    โšก๏ธ commands.redrawAnnotations can now be called to force an update.

    Patch Changes

    b674f906 #729 Thanks @ifiokjr! - Make annotation commands chainable.

    bdea98bf #725 Thanks @ronnyroeller! - Fix: Don't extend annotation when typing at end of annotation

    Annotations auto-adjust as users enter content, e.g. an annotation grows if the user types in the middle of the annotation. Incorrectly, the annotation also grew when the user added content directly after the annotation. Now, this leads to new, non-annotated content.

    b674f906 #729 Thanks @ifiokjr! - Make formatCodeBlock command chainable.

    โšก๏ธ Updated dependencies [b674f906, a02dd7d1, b674f906, b674f906, bdea98bf, b030cb6e]

  • v1.0.0-next.42 Changes

    September 26, 2020

    Minor Changes

    9fa07878 #721 Thanks @ifiokjr! - Add new helpers getChangedRanges, getChangedNodeRanges and getChangedNodes which take a transaction and return a list of changed ranges, node ranges or nodes with positions.

    ๐ŸŽ This is useful for increasing the performance and only checking the parts of the document that have changed between updates.

    ๐ŸŽ 6f2ababd #721 Thanks @ifiokjr! - Improve performance of the CodeBlockExtension by only updating syntax highlighting for the changed code block(s).

    Patch Changes

    ๐Ÿšš ef1f57c2 #718 Thanks @ronnyroeller! - Remove annotations when their content is deleted

    โšก๏ธ Users can create annotations on pieces of content. The annotations are automatically updated as the content is moved around, e.g. if a new word is inserted before the annotation. Yet, the extension missed the case that all annotated content is deleted. Before, this would lead to an empty annotation (to and from parameter are equal). With this commit, annotations are automatically removed when the content is completed deleted.

    ๐Ÿ‘ 44754a5d #723 Thanks @ronnyroeller! - Support multi-line annotations in positioner

    The annotation positioner placed the bottom on the bottom of the first line. This meant that a popup placed on the bottom would overlay the rest of a multi-line annotation. Now, the positioner returns the bottom of the last line, allowing to place the popup below all content.

    802d5f04 #720 Thanks @ronnyroeller! - Gracefully handle annotations with positions outside the content

    Annotations are loaded separately from the content into the editor (helpers.setAnnotations vs setContent). This can lead to situations where annotations are pointing to positions that are outside the content. For example, the editor shows content with annotations. Then, the user requests to change the content to an empty document. At this point, until helpers.setAnnotations() is called, the editor will have an empty document but still a list of annotations.

    At that point, helpers.getAnnotations() would throw the following error because it couldn't find the matching text for the from/to positions: TypeError: Cannot read property 'nodeSize' of 'undefined'.

    d33f43bf #717 Thanks @ifiokjr! - Fix type annotations for createCommands functions. This was causing issues with inferring all the commands available across the extensions since the types were compiling as any.

    The following should now work with full type inference.

    import React from 'react';import { useRemirror } from 'remirror/react';const EditorButton = () =\> {const { commands, chain } = useRemirror();return (\<\>\<button onClick={() =\> commands.toggleBulletList()}\>Toggle List\</button\>\<buttononClick={() =\> chain.toggleBold().toggleStrike().toggleItalic()}\> Cray! \</button\>\</\>);};

    ๐Ÿ’… d33f43bf #717 Thanks @ifiokjr! - Improve type inference for @remirror/styles/emotion, @remirror/styles/dom and @remirror/styles/styled-components.

    d33f43bf #717 Thanks @ifiokjr! - Improve inference for multishift exports.

    โšก๏ธ Updated dependencies [ef1f57c2, 44754a5d, 802d5f04, 6f2ababd, 9fa07878, d33f43bf]

  • v1.0.0-next.41 Changes

    September 26, 2020

    Major Changes

    ๐Ÿ’ฅ e4701dc4 #712 Thanks @ifiokjr! - BREAKING: ๐Ÿ’ฅ Rename Remirror.All to Remirror.AllExtensionUnion.

    ๐Ÿฑ 83217437 #712 Thanks @ifiokjr! - ๐ŸŽ‰ Add findPositionerTracker, findAllPositionTrackers and isSelectionEmpty to builtin helpers.

    Patch Changes

  • v1.0.0-next.40 Changes

    September 24, 2020

    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 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

    89bd1e86 #702 Thanks @ronnyroeller! - Visualize the amount of overlapping annotations

    ๐Ÿ’… 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

  • v1.0.0-next.39 Changes

    September 16, 2020

    Patch Changes