@astryxdesign/richtext 0.7.8-canary.ffd29c5 → 0.7.9-canary.048476f
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @astryxdesign/richtext
|
|
2
2
|
|
|
3
|
+
# 0.7.8
|
|
4
|
+
|
|
5
|
+
#### New Features
|
|
6
|
+
|
|
7
|
+
- In `RichTextEditor`, Cmd+A (Ctrl+A on other platforms) in a code block or a table cell now selects the code or the cell text first, and the whole document on the next press. Anywhere else it still selects the whole document at once.
|
|
8
|
+
|
|
9
|
+
#### Contributors
|
|
10
|
+
|
|
11
|
+
Thanks to everyone who contributed to this release:
|
|
12
|
+
|
|
13
|
+
- @emilyhorsman
|
|
14
|
+
- @ernestt
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
3
18
|
# 0.7.7
|
|
4
19
|
|
|
5
20
|
#### Fixes
|
|
@@ -51,7 +51,7 @@ export declare class RichTextExtensionNode extends DecoratorNode<unknown> {
|
|
|
51
51
|
static clone(node: RichTextExtensionNode): RichTextExtensionNode;
|
|
52
52
|
static importJSON(serialized: SerializedLexicalNode & Record<string, unknown>): RichTextExtensionNode;
|
|
53
53
|
static importDOM(): DOMConversionMap;
|
|
54
|
-
constructor(facts
|
|
54
|
+
constructor(facts?: RichTextExtensionNodeFacts, format?: number, key?: NodeKey);
|
|
55
55
|
exportJSON(): SerializedRichTextExtensionNode;
|
|
56
56
|
/** The node's identity, data, and source. */
|
|
57
57
|
getFacts(): RichTextExtensionNodeFacts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdownExtensionNode.d.ts","sourceRoot":"","sources":["../src/markdownExtensionNode.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAGL,aAAa,EAEb,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,YA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EAA6E;IAC7E,cAAc,IAAI,MAAM;IAIxB,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;CAMzC;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,0BAA0B,EACjC,MAAM,SAAI,GACT,qBAAqB,CAEvB;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,qBAAqB,CAE/B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,cAAc,GAAG,QAAQ,GAAG,IAAI,CAsB7E;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,cAAc,GAAG,aAAa,GACxC,qBAAqB,EAAE,GAAG,IAAI,CAiBhC"}
|
|
@@ -119,7 +119,11 @@ export class RichTextExtensionNode extends DecoratorNode {
|
|
|
119
119
|
div: importExtensionElement
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
|
|
123
|
+
// The Yjs binding and `$create` call the constructor with no arguments.
|
|
124
|
+
// The binding reads each class's default properties from that node.
|
|
125
|
+
// With no facts, the node gets the values that damaged stored facts get.
|
|
126
|
+
constructor(facts = factsFrom({}), format = 0, key) {
|
|
123
127
|
super(key);
|
|
124
128
|
this.__facts = facts;
|
|
125
129
|
this.__format = facts.display === 'inline' ? format : 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/richtext",
|
|
3
3
|
"displayName": "Rich Text",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.9-canary.048476f",
|
|
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.
|
|
69
|
+
"@astryxdesign/core": "0.7.9-canary.048476f",
|
|
70
70
|
"react": ">=19.0.0",
|
|
71
71
|
"react-dom": ">=19.0.0",
|
|
72
72
|
"lexical": "^0.52.0",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@astryxdesign/a11y-spec": "0.7.
|
|
129
|
-
"@astryxdesign/cli": "0.7.
|
|
128
|
+
"@astryxdesign/a11y-spec": "0.7.9-canary.048476f",
|
|
129
|
+
"@astryxdesign/cli": "0.7.9-canary.048476f",
|
|
130
130
|
"@babel/cli": "^7.29.7",
|
|
131
131
|
"@babel/core": "^7.29.7",
|
|
132
132
|
"@babel/preset-react": "^7.29.7",
|
|
@@ -169,7 +169,14 @@ export class RichTextExtensionNode extends DecoratorNode<unknown> {
|
|
|
169
169
|
return {span: importExtensionElement, div: importExtensionElement};
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
// The Yjs binding and `$create` call the constructor with no arguments.
|
|
173
|
+
// The binding reads each class's default properties from that node.
|
|
174
|
+
// With no facts, the node gets the values that damaged stored facts get.
|
|
175
|
+
constructor(
|
|
176
|
+
facts: RichTextExtensionNodeFacts = factsFrom({}),
|
|
177
|
+
format = 0,
|
|
178
|
+
key?: NodeKey,
|
|
179
|
+
) {
|
|
173
180
|
super(key);
|
|
174
181
|
this.__facts = facts;
|
|
175
182
|
this.__format = facts.display === 'inline' ? format : 0;
|