@haklex/rich-headless 0.28.0 → 0.29.1
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/dist/index.d.ts +12 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +28 -8
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class SpoilerNode extends ElementNode {
|
|
|
5
5
|
static getType(): string;
|
|
6
6
|
static clone(node: SpoilerNode): SpoilerNode;
|
|
7
7
|
constructor(key?: NodeKey);
|
|
8
|
-
static importJSON(_json:
|
|
8
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): SpoilerNode;
|
|
9
9
|
exportJSON(): SerializedElementNode;
|
|
10
10
|
createDOM(): HTMLElement;
|
|
11
11
|
updateDOM(): boolean;
|
|
@@ -16,9 +16,7 @@ export declare class RubyNode extends ElementNode {
|
|
|
16
16
|
static getType(): string;
|
|
17
17
|
static clone(node: RubyNode): RubyNode;
|
|
18
18
|
constructor(key?: NodeKey);
|
|
19
|
-
static importJSON(
|
|
20
|
-
reading?: string;
|
|
21
|
-
}): RubyNode;
|
|
19
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): RubyNode;
|
|
22
20
|
exportJSON(): SerializedElementNode & {
|
|
23
21
|
reading: string;
|
|
24
22
|
};
|
|
@@ -32,10 +30,7 @@ export declare class DetailsNode extends ElementNode {
|
|
|
32
30
|
static getType(): string;
|
|
33
31
|
static clone(node: DetailsNode): DetailsNode;
|
|
34
32
|
constructor(key?: NodeKey);
|
|
35
|
-
static importJSON(
|
|
36
|
-
summary?: string;
|
|
37
|
-
open?: boolean;
|
|
38
|
-
}): DetailsNode;
|
|
33
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): DetailsNode;
|
|
39
34
|
exportJSON(): SerializedElementNode & {
|
|
40
35
|
summary: string;
|
|
41
36
|
open: boolean;
|
|
@@ -48,9 +43,7 @@ export declare class RichQuoteNode extends QuoteNode {
|
|
|
48
43
|
static getType(): string;
|
|
49
44
|
static clone(node: RichQuoteNode): RichQuoteNode;
|
|
50
45
|
constructor(key?: NodeKey);
|
|
51
|
-
static importJSON(
|
|
52
|
-
attribution?: string | null;
|
|
53
|
-
}): RichQuoteNode;
|
|
46
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): RichQuoteNode;
|
|
54
47
|
exportJSON(): SerializedElementNode & {
|
|
55
48
|
attribution: string | null;
|
|
56
49
|
};
|
|
@@ -82,14 +75,12 @@ export declare class BannerNode extends DecoratorNode<null> {
|
|
|
82
75
|
static getType(): string;
|
|
83
76
|
constructor(key?: NodeKey);
|
|
84
77
|
static clone(node: BannerNode): BannerNode;
|
|
85
|
-
static importJSON(
|
|
86
|
-
bannerType?: string;
|
|
87
|
-
content?: unknown;
|
|
88
|
-
}): BannerNode;
|
|
78
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): BannerNode;
|
|
89
79
|
exportJSON(): SerializedLexicalNode;
|
|
90
80
|
createDOM(): HTMLElement;
|
|
91
81
|
updateDOM(): boolean;
|
|
92
82
|
decorate(): null;
|
|
83
|
+
isInline(): boolean;
|
|
93
84
|
getTextContent(): string;
|
|
94
85
|
}
|
|
95
86
|
export declare class AlertQuoteNode extends DecoratorNode<null> {
|
|
@@ -98,14 +89,12 @@ export declare class AlertQuoteNode extends DecoratorNode<null> {
|
|
|
98
89
|
static getType(): string;
|
|
99
90
|
constructor(key?: NodeKey);
|
|
100
91
|
static clone(node: AlertQuoteNode): AlertQuoteNode;
|
|
101
|
-
static importJSON(
|
|
102
|
-
alertType?: string;
|
|
103
|
-
content?: unknown;
|
|
104
|
-
}): AlertQuoteNode;
|
|
92
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): AlertQuoteNode;
|
|
105
93
|
exportJSON(): SerializedLexicalNode;
|
|
106
94
|
createDOM(): HTMLElement;
|
|
107
95
|
updateDOM(): boolean;
|
|
108
96
|
decorate(): null;
|
|
97
|
+
isInline(): boolean;
|
|
109
98
|
getTextContent(): string;
|
|
110
99
|
}
|
|
111
100
|
export declare class NestedDocNode extends DecoratorNode<null> {
|
|
@@ -113,13 +102,12 @@ export declare class NestedDocNode extends DecoratorNode<null> {
|
|
|
113
102
|
static getType(): string;
|
|
114
103
|
constructor(key?: NodeKey);
|
|
115
104
|
static clone(node: NestedDocNode): NestedDocNode;
|
|
116
|
-
static importJSON(
|
|
117
|
-
content?: unknown;
|
|
118
|
-
}): NestedDocNode;
|
|
105
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): NestedDocNode;
|
|
119
106
|
exportJSON(): SerializedLexicalNode;
|
|
120
107
|
createDOM(): HTMLElement;
|
|
121
108
|
updateDOM(): boolean;
|
|
122
109
|
decorate(): null;
|
|
110
|
+
isInline(): boolean;
|
|
123
111
|
getTextContent(): string;
|
|
124
112
|
}
|
|
125
113
|
export declare class GridContainerNode extends DecoratorNode<null> {
|
|
@@ -129,15 +117,12 @@ export declare class GridContainerNode extends DecoratorNode<null> {
|
|
|
129
117
|
static getType(): string;
|
|
130
118
|
constructor(key?: NodeKey);
|
|
131
119
|
static clone(node: GridContainerNode): GridContainerNode;
|
|
132
|
-
static importJSON(
|
|
133
|
-
cols?: number;
|
|
134
|
-
gap?: string | number;
|
|
135
|
-
cells?: unknown[];
|
|
136
|
-
}): GridContainerNode;
|
|
120
|
+
static importJSON(_json: SerializedLexicalNode & Record<string, unknown>): GridContainerNode;
|
|
137
121
|
exportJSON(): SerializedLexicalNode;
|
|
138
122
|
createDOM(): HTMLElement;
|
|
139
123
|
updateDOM(): boolean;
|
|
140
124
|
decorate(): null;
|
|
125
|
+
isInline(): boolean;
|
|
141
126
|
getTextContent(): string;
|
|
142
127
|
}
|
|
143
128
|
export declare const customHeadlessNodes: Klass<LexicalNode>[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":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AAC;IACxD,MAAM,SAAK;IACX,KAAK,SAAU;IACf,OAAO,EAAE,OAAO,EAAE,CAAM;IAExB,MAAM,CAAC,OAAO,IAAI,MAAM;gBAGZ,GAAG,CAAC,EAAE,OAAO;IAGzB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,GAAG,iBAAiB;IAOxD,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,iBAAiB;IAa5F,UAAU,IAAI,qBAAqB;IASnC,SAAS,IAAI,WAAW;IAGxB,SAAS,IAAI,OAAO;IAGpB,QAAQ,IAAI,IAAI;IAGhB,QAAQ,IAAI,OAAO;IAGnB,cAAc,IAAI,MAAM;CAGzB;AAID,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,WAAW,CAAC,EA4BnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,WAAW,CAAC,EAA8C,CAAC;AAIhG,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAItE,OAAO,EAAE,KAAK,eAAe,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -162,7 +162,8 @@ var RubyNode = class RubyNode extends ElementNode {
|
|
|
162
162
|
super(key);
|
|
163
163
|
this.__reading = "";
|
|
164
164
|
}
|
|
165
|
-
static importJSON(
|
|
165
|
+
static importJSON(_json) {
|
|
166
|
+
const json = _json;
|
|
166
167
|
const node = new RubyNode();
|
|
167
168
|
node.__reading = json.reading ?? "";
|
|
168
169
|
return node;
|
|
@@ -200,7 +201,8 @@ var DetailsNode = class DetailsNode extends ElementNode {
|
|
|
200
201
|
this.__summary = "";
|
|
201
202
|
this.__open = false;
|
|
202
203
|
}
|
|
203
|
-
static importJSON(
|
|
204
|
+
static importJSON(_json) {
|
|
205
|
+
const json = _json;
|
|
204
206
|
const node = new DetailsNode();
|
|
205
207
|
node.__summary = json.summary ?? "";
|
|
206
208
|
node.__open = json.open ?? false;
|
|
@@ -234,7 +236,8 @@ var RichQuoteNode = class RichQuoteNode extends QuoteNode {
|
|
|
234
236
|
super(key);
|
|
235
237
|
this.__attribution = null;
|
|
236
238
|
}
|
|
237
|
-
static importJSON(
|
|
239
|
+
static importJSON(_json) {
|
|
240
|
+
const json = _json;
|
|
238
241
|
const node = new RichQuoteNode();
|
|
239
242
|
node.__attribution = json.attribution ?? null;
|
|
240
243
|
return node;
|
|
@@ -267,7 +270,8 @@ function headlessDecorator(type, propKeys, defaults, inline = false) {
|
|
|
267
270
|
for (const k of propKeys) n[`__${k}`] = node[`__${k}`];
|
|
268
271
|
return n;
|
|
269
272
|
}
|
|
270
|
-
static importJSON(
|
|
273
|
+
static importJSON(_json) {
|
|
274
|
+
const json = _json;
|
|
271
275
|
const node = new Node();
|
|
272
276
|
for (const k of propKeys) node[`__${k}`] = json[k] ?? defaults[k];
|
|
273
277
|
return node;
|
|
@@ -418,7 +422,8 @@ var BannerNode = class BannerNode extends DecoratorNode {
|
|
|
418
422
|
n.__contentState = node.__contentState;
|
|
419
423
|
return n;
|
|
420
424
|
}
|
|
421
|
-
static importJSON(
|
|
425
|
+
static importJSON(_json) {
|
|
426
|
+
const json = _json;
|
|
422
427
|
const node = new BannerNode();
|
|
423
428
|
node.__bannerType = json.bannerType ?? "note";
|
|
424
429
|
node.__contentState = json.content ?? null;
|
|
@@ -441,6 +446,9 @@ var BannerNode = class BannerNode extends DecoratorNode {
|
|
|
441
446
|
decorate() {
|
|
442
447
|
return null;
|
|
443
448
|
}
|
|
449
|
+
isInline() {
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
444
452
|
getTextContent() {
|
|
445
453
|
return extractText(this.__contentState);
|
|
446
454
|
}
|
|
@@ -460,7 +468,8 @@ var AlertQuoteNode = class AlertQuoteNode extends DecoratorNode {
|
|
|
460
468
|
n.__contentState = node.__contentState;
|
|
461
469
|
return n;
|
|
462
470
|
}
|
|
463
|
-
static importJSON(
|
|
471
|
+
static importJSON(_json) {
|
|
472
|
+
const json = _json;
|
|
464
473
|
const node = new AlertQuoteNode();
|
|
465
474
|
node.__alertType = json.alertType ?? "note";
|
|
466
475
|
node.__contentState = json.content ?? null;
|
|
@@ -483,6 +492,9 @@ var AlertQuoteNode = class AlertQuoteNode extends DecoratorNode {
|
|
|
483
492
|
decorate() {
|
|
484
493
|
return null;
|
|
485
494
|
}
|
|
495
|
+
isInline() {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
486
498
|
getTextContent() {
|
|
487
499
|
return extractText(this.__contentState);
|
|
488
500
|
}
|
|
@@ -500,7 +512,8 @@ var NestedDocNode = class NestedDocNode extends DecoratorNode {
|
|
|
500
512
|
n.__contentState = node.__contentState;
|
|
501
513
|
return n;
|
|
502
514
|
}
|
|
503
|
-
static importJSON(
|
|
515
|
+
static importJSON(_json) {
|
|
516
|
+
const json = _json;
|
|
504
517
|
const node = new NestedDocNode();
|
|
505
518
|
node.__contentState = json.content ?? null;
|
|
506
519
|
return node;
|
|
@@ -521,6 +534,9 @@ var NestedDocNode = class NestedDocNode extends DecoratorNode {
|
|
|
521
534
|
decorate() {
|
|
522
535
|
return null;
|
|
523
536
|
}
|
|
537
|
+
isInline() {
|
|
538
|
+
return false;
|
|
539
|
+
}
|
|
524
540
|
getTextContent() {
|
|
525
541
|
return extractText(this.__contentState);
|
|
526
542
|
}
|
|
@@ -542,7 +558,8 @@ var GridContainerNode = class GridContainerNode extends DecoratorNode {
|
|
|
542
558
|
n.__cells = node.__cells;
|
|
543
559
|
return n;
|
|
544
560
|
}
|
|
545
|
-
static importJSON(
|
|
561
|
+
static importJSON(_json) {
|
|
562
|
+
const json = _json;
|
|
546
563
|
const node = new GridContainerNode();
|
|
547
564
|
node.__cols = json.cols ?? 2;
|
|
548
565
|
const rawGap = json.gap;
|
|
@@ -568,6 +585,9 @@ var GridContainerNode = class GridContainerNode extends DecoratorNode {
|
|
|
568
585
|
decorate() {
|
|
569
586
|
return null;
|
|
570
587
|
}
|
|
588
|
+
isInline() {
|
|
589
|
+
return false;
|
|
590
|
+
}
|
|
571
591
|
getTextContent() {
|
|
572
592
|
return this.__cells.map((cell) => extractText(cell)).join("\n");
|
|
573
593
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"description": "Headless Lexical node registry for server-side parsing (no React)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lexical/code-core": "^0.
|
|
28
|
-
"@lexical/extension": "^0.
|
|
29
|
-
"@lexical/link": "^0.
|
|
30
|
-
"@lexical/list": "^0.
|
|
31
|
-
"@lexical/markdown": "^0.
|
|
32
|
-
"@lexical/rich-text": "^0.
|
|
33
|
-
"@lexical/table": "^0.
|
|
27
|
+
"@lexical/code-core": "^0.46.0",
|
|
28
|
+
"@lexical/extension": "^0.46.0",
|
|
29
|
+
"@lexical/link": "^0.46.0",
|
|
30
|
+
"@lexical/list": "^0.46.0",
|
|
31
|
+
"@lexical/markdown": "^0.46.0",
|
|
32
|
+
"@lexical/rich-text": "^0.46.0",
|
|
33
|
+
"@lexical/table": "^0.46.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@lexical/headless": "^0.
|
|
37
|
-
"lexical": "^0.
|
|
38
|
-
"typescript": "^
|
|
39
|
-
"unplugin-dts": "^1.0.
|
|
40
|
-
"vite": "^8.0
|
|
36
|
+
"@lexical/headless": "^0.46.0",
|
|
37
|
+
"lexical": "^0.46.0",
|
|
38
|
+
"typescript": "^6.0.3",
|
|
39
|
+
"unplugin-dts": "^1.0.3",
|
|
40
|
+
"vite": "^8.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"lexical": "^0.
|
|
43
|
+
"lexical": "^0.46.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|