Remirror: [email protected] Release

Release date:
September 12, 2022
Previous version:
[email protected] (released September 12, 2022)
Magnitude:
0 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in [email protected]

ocavue

Directory Browser for [email protected]

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

Release Notes Published

2022-09-12

Major Changes

Patch Changes

  • Removes domino from the codebase.
  • Support both ESM and CJS.
  • option for supported characters in emoji suggester.
  • Delay trigger of onUpdateLink till the end of the execution queue to prevent updates on stale state.
  • Try to require JSDOM implicitly in node environment.
  • Add a customisible floating button to completely delete React tables.

Fix creating React tables from markdown initial state.

Fix copy and paste of React tables, which resulted in duplicated controlled cells.

  • Fix onSendableReceived handler so it is actually debounced as intended.

Add two new commands cancelSendableSteps and flushSendableSteps which more control over the debounced functionality

  • When href equals text content, treat the link as an auto link (if enabled)
  • SSR features are removed.
  • Auto link adjacent character detection.

Remove auto link if the link becomes invalid.

Before:

"window.confirm" results in "[window.co](//window.co)nfirm"

After:

"window.confirm" results in "window.confirm"

New options findAutoLinks and isValidUrl that if provided are used instead of autoLinkAllowedTLDs and autoLinkRegex to find and validate a link.

URLs are very ambiguous the new options allow to find valid auto links without adding additional complexity to the link extension.

Library examples to find URLs in text.

It is worth mentioning that the autoLinkRegex can be modified to exclude adjacent punctuations from an auto link.

Regex suggestion from @whawker

/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?](?:(?! |[!"'(),.;?[\]{}-]).|-+|\((?:(?![ )]).)*\)|\[(?:(?![ \]]).)*]|'(?=\w)|\.(?! |\.|$)|,(?! |,|$)|;(?! |;|$)|!(?! |!|$)|\?(?! |\?|$))+|\/)?/gi;

Examples

  • [www.remirror.io/test](www.remirror.io/test)? - excluding sentence punctuation
  • "[www.remirror.io/test](www.remirror.io/test)" - surround link with quotation marks
  • ([www.remirror.io/(test)](<www.remirror.io/(test)>))- link with balanced parentheses in path surrounded by parentheses

    • Update pnpm-lock.yaml
    • Add an optional onclickmark handler to handle clicks on entity reference
    • Correct a bad import.
    • Click event receives all entity reference marks, their ranges and their respective text on the clicked position
    • Update ProseMirror packages to latest versions.
    • Removes the following CSS variables:
  --rmr-color-selection-background: Highlight;
  --rmr-color-selection-shadow: inherit;
  --rmr-color-selection-text: HighlightText;
  --rmr-color-selection-caret: inherit;

This brings more natural selection colors to the editor.