What's New

Release notes and changelog for all packages.

0.7.17

New Features
  • In RichTextEditor, a Markdown block marker typed at the start of a list item now re-marks it and keeps its text: - , 1. , or [ ] switches the item's list between bullets, numbers, and tasks, and # or > takes a top-level item out of its list as a heading or a quote, the rest of the list continuing after it. Each change is one undo step, back to the marker as typed.
Fixes
  • In RichTextEditor and RichTextView, a code block's language label too long for its header wraps instead of being cut off, and the code starts below the taller header, as in Markdown, so a block is as tall in edit mode as in read mode.
  • Apps that install the rich text package no longer see "Warning: @astryxdesign/richtext has N integration issue(s)" on astryx search, component, template, theme, discover and upgrade. The editor's internal plugins now live in a folder the CLI does not read as components, so the integration check reports no issues. The public components and imports are unchanged.
  • RichText text reads the way it is written, in either document, and the shared first-strong classifier reads three Arabic marks, the Rumi numerals, and the digits of Devanagari, Bengali, Tamil, Thai and other scripts by their bidi class, which changes Markdown output too: a line opening ०१ שלום now reads left-to-right where it read right-to-left before. Badge, Token and InputGroupText read the same strong set to decide whether their own text holds any right-to-left character, so the three Arabic marks — the semicolon, the question mark and tatweel — now count there too, wherever they sit in the label. A paragraph, heading, quote or list item takes the direction of its own text at any depth, so a Hebrew paragraph in an English document flushes right with its caret following the arrow keys instead of walking backwards, and an English paragraph, list item or table cell in a Hebrew document does the mirror. Each line of a fenced code block reads its own way too, so a Hebrew comment reads right-to-left while const x = 1; keeps its semicolon at the end. Top-level lists, tables and code blocks keep ordering their contents in the document's direction; a nested list follows the item that holds it. The stored value now drops a dir that arrives on them with pasted HTML or an older document.
  • A line break typed with Shift+Enter at the end of a paragraph, list item or quote no longer saves as a backslash that comes back as a literal \ the next time the Markdown loads. Markdown has no line break at the end of a block, so the editor leaves it out of the Markdown; a line break inside a block still saves and loads as a line break.
Documentation
  • RichText: the README says that server rendering outputs no document content, because RichTextView and RichTextEditor fill their blocks on the client, and points server HTML at core Markdown, which renders the same Markdown document on the server (affordances only RichText draws appear in their Markdown form), or at @astryxdesign/richtext/markdown.
Other Changes
  • Internal: the toolbar's link popover, its URL form, the link address rule, and the toolbar's inline-format helpers move into modules RichText shares internally. Apps see no change.
Contributors
Thanks to everyone who contributed to this release:

0.7.16

New Features
  • RichTextEditorToolbar's Link button, and Cmd/Ctrl+K in the editor, open a popover anchored to the button instead of a modal dialog. The popover holds one URL field, applied with Enter, and Apply, Remove (when the selection is in a link), and Cancel icon buttons with tooltips. It is not modal: Escape or Cancel closes it and returns focus and the selection to the editor, and a URL that cannot be linked shows an error under the field, which keeps focus. The URL rules (sanitizeUrl), hasNewTabLinks, and promptForUrl are unchanged; with promptForUrl the Link button opens no popover, as it opened no dialog. (#8717) The popover opens above the toolbar and flips below it only when there is no room above. Apply and Cancel use the shared check and close icons, so a theme that restyles those icons restyles them too; Remove's glyph is fixed artwork. RICHTEXT_ICON_KEYS is unchanged.
Fixes
  • Pasting into a RichTextEditor table no longer drops the paste or empties cells. A pasted table fills the cells one by one from the caret's cell, or within the selected cells. A merged cell in it fills only the cell where it starts instead of emptying the cells it covered, and a table whose rows differ in length arrives whole. A table pasted together with other content, as a web page copies it, goes into the cell as text instead of being discarded. (#8577)
  • A link typed without a scheme, whose host has a dot or is localhost, followed by a port, such as example.com:8080, www.example.com:8080/docs or localhost:3000, now gets the default https:// like example.com does, instead of being read as an unknown scheme and turned into about:blank (#11042)
Contributors
Thanks to everyone who contributed to this release:

0.7.15

Fixes
  • useLinkify and RichTextEditorAutoLinkPlugin: email detection now takes linear time. A long word with no email in it, such as a pasted hash or base64 string, no longer freezes the page for seconds. Valid email addresses link as before, with three exceptions. In the rich-text editor, an address directly after a period no longer links, and a quoted local part ends at the next quote. In useLinkify, a fragment glued to the end of an earlier address no longer links on its own. (#11306)
  • RichTextEditor: importing Markdown no longer freezes the page on a block that has a backtick and, below its first line, a line with a |, a dash and a long run of spaces. The check for a table delimiter row now takes linear time; which lines count as delimiter rows is unchanged. (#11338)
Contributors
Thanks to everyone who contributed to this release:

0.7.14

No changes in this release.

0.7.13

No changes in this release.