@astryxdesign/richtext 0.7.7-canary.fc68123 → 0.7.7
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.
- package/CHANGELOG.md +20 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @astryxdesign/richtext
|
|
2
2
|
|
|
3
|
+
# 0.7.7
|
|
4
|
+
|
|
5
|
+
#### Fixes
|
|
6
|
+
|
|
7
|
+
- RichTextEditorToolbar: Insert link with nothing selected did not insert a link at the caret. In an empty paragraph nothing was inserted, and with the caret inside text the whole text around it was linked, while the dialog closed as if it had worked. Now, with the caret outside a link, Insert link inserts the entered URL as link text at the caret; with a non-empty selection it links the selected text, and with the caret inside a link it updates that link, as before.
|
|
8
|
+
|
|
9
|
+
#### Performance
|
|
10
|
+
|
|
11
|
+
- Typing in a `RichTextEditor` code block no longer re-tokenizes the whole block. In TypeScript, JavaScript, Python, and shell code, an edit inside one line re-tokenizes that line, plus at most the line above it, and replaces only the color ranges inside the text node it edited, so a keystroke in a 2,000-line block tokenizes as little code as one in a short block. Edits that open or close a string or comment across lines, and other languages, still re-tokenize the whole block. Colors are unchanged, except that a block whose text nodes are replaced by others with the same text is now recolored instead of left uncolored.
|
|
12
|
+
|
|
13
|
+
#### Contributors
|
|
14
|
+
|
|
15
|
+
Thanks to everyone who contributed to this release:
|
|
16
|
+
|
|
17
|
+
- @cixzhang
|
|
18
|
+
- @emilyhorsman
|
|
19
|
+
- @ernestt
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
3
23
|
# 0.7.6
|
|
4
24
|
|
|
5
25
|
#### 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.7
|
|
4
|
+
"version": "0.7.7",
|
|
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.7
|
|
69
|
+
"@astryxdesign/core": "0.7.7",
|
|
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.7-canary.fc68123",
|
|
129
|
-
"@astryxdesign/cli": "0.7.7-canary.fc68123",
|
|
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.7"
|
|
149
149
|
},
|
|
150
150
|
"scripts": {
|
|
151
151
|
"api:report": "node ../../scripts/api-report/cli.mjs --package .",
|