@astryxdesign/richtext 0.7.12-canary.f36bd72 → 0.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @astryxdesign/richtext
2
2
 
3
+ # 0.7.12
4
+
5
+ #### New Features
6
+
7
+ - In `RichTextEditor`, Tab and Shift+Tab in a code block indent and outdent every line the selection touches, by the indent the block already uses (a tab when one of its lines starts with a tab, otherwise the fewest leading spaces of any indented line, kept between 2 and 8, otherwise 2 spaces). The selection stays on the same characters and each press is one undo step. Tab used to put a tab character in place of the selection, and Shift+Tab did the same. Escape then Tab still moves focus out of the editor. (#8579)
8
+
9
+ #### Fixes
10
+
11
+ - Declare renderer-owned DOM boundaries so decorator overlays mount outside managed content without changing safe inline hosting. RichTextEditor also mirrors its `dir` prop onto the wrapper around the editable surface, so the editing surface and its content blocks, the placeholder, UI rendered through `plugins`, and relocated overlays follow `dir`; the editing surface previously kept the surrounding direction. (#7633)
12
+ - `RichTextEditorAutoLinkPlugin` no longer turns a URL inside a code block into a link. A URL typed or pasted into a code block, or one in an imported fence, now stays code. Before, the link nested inside the code block, and the exported Markdown fence lost it. (#10664)
13
+ - In `RichTextEditor`, pasting rich content into a code block inserts plain text: the plain text on the clipboard, or, when there is none, each pasted block as one line of its text. Headings, lists, tables, and formatting used to land inside the code block, where the Markdown export wrote them as plain lines of the fence, so the document read back differently from what the editor showed. (#8580)
14
+ - A link inside a disabled `RichTextEditor` no longer navigates, shows no pointer cursor, and is not a tab stop. Before, a disabled editor's links acted as live links: a click or Enter opened them, and Tab stopped on each one. (#10679)
15
+ - TextInput, TextArea, NumberInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Tokenizer, Typeahead, PowerSearch, ChatComposer and RichTextEditor: when the primary pointer is coarse (a phone or tablet), the focus look shows at once, with no fade, so a tapped field repaints once while the keyboard rises. With a fine primary pointer, such as a mouse, a click and the Tab key keep the fade. ChatComposer's focus depth also shows at once under reduced motion, as the other fields' focus look already does. (#10611)
16
+
17
+ #### Documentation
18
+
19
+ - `RichTextView`, `RichTextEditorToolbar` and `RichTextEditorAutoLinkPlugin` each ship a doc file, so `astryx component`, `astryx discover` and the docs list their props, defaults and usage. (#10407)
20
+ - A source comment in the editor theme now says that core `Markdown` gives each block the direction of its own text, while the editor keeps blocks in the surface's direction. (#10293)
21
+ - RichTextEditor documents how to switch between reading and editing in place without reflow: set the field's inset and border outside the reading width with `xstyle`, so every paragraph keeps its line count across the switch. A standalone editor keeps its form width. (#10429)
22
+
23
+ #### Contributors
24
+
25
+ Thanks to everyone who contributed to this release:
26
+
27
+ - @cixzhang
28
+ - @emilyhorsman
29
+ - @ernestt
30
+ - @freddymeta
31
+ - @vjeux
32
+
33
+ ---
34
+
3
35
  # 0.7.11
4
36
 
5
37
  #### Fixes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryxdesign/richtext",
3
3
  "displayName": "Rich Text",
4
- "version": "0.7.12-canary.f36bd72",
4
+ "version": "0.7.12",
5
5
  "description": "Astryx rich text — a Lexical-based rich text editor and viewer, styled with Astryx design tokens.",
6
6
  "author": "Meta Open Source",
7
7
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@stylexjs/stylex": ">=0.10.0",
69
- "@astryxdesign/core": "0.7.12-canary.f36bd72",
69
+ "@astryxdesign/core": "0.7.12",
70
70
  "react": ">=19.0.0",
71
71
  "react-dom": ">=19.0.0",
72
72
  "lexical": "^0.52.0",
@@ -125,8 +125,6 @@
125
125
  }
126
126
  },
127
127
  "devDependencies": {
128
- "@astryxdesign/a11y-spec": "0.7.12-canary.f36bd72",
129
- "@astryxdesign/cli": "0.7.12-canary.f36bd72",
130
128
  "@babel/cli": "^7.29.7",
131
129
  "@babel/core": "^7.29.7",
132
130
  "@babel/preset-react": "^7.29.7",
@@ -145,7 +143,9 @@
145
143
  "@lexical/utils": "^0.52.0",
146
144
  "@stylexjs/babel-plugin": "^0.19.0",
147
145
  "@testing-library/react": "^16.3.2",
148
- "lexical": "^0.52.0"
146
+ "lexical": "^0.52.0",
147
+ "@astryxdesign/a11y-spec": "0.0.0",
148
+ "@astryxdesign/cli": "0.7.12"
149
149
  },
150
150
  "scripts": {
151
151
  "api:report": "node ../../scripts/api-report/cli.mjs --package .",