@haklex/rich-renderer-katex 0.28.0 → 0.29.0
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KaTeXBlockNode
|
|
2
|
-
import { EditorConfig, LexicalEditor } from 'lexical';
|
|
1
|
+
import { KaTeXBlockNode } from '@haklex/rich-editor/nodes';
|
|
2
|
+
import { EditorConfig, LexicalEditor, SerializedLexicalNode } from 'lexical';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
4
|
export declare class KaTeXBlockEditNode extends KaTeXBlockNode {
|
|
5
5
|
static clone(node: KaTeXBlockEditNode): KaTeXBlockEditNode;
|
|
6
|
-
static importJSON(
|
|
6
|
+
static importJSON(_serializedNode: SerializedLexicalNode & Record<string, unknown>): KaTeXBlockEditNode;
|
|
7
7
|
decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=KaTeXBlockEditNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KaTeXBlockEditNode.d.ts","sourceRoot":"","sources":["../src/KaTeXBlockEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"KaTeXBlockEditNode.d.ts","sourceRoot":"","sources":["../src/KaTeXBlockEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiC,MAAM,2BAA2B,CAAC;AAE1F,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB;IAI1D,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,kBAAkB;IAKrB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAatE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KaTeXInlineNode
|
|
2
|
-
import { EditorConfig, LexicalEditor } from 'lexical';
|
|
1
|
+
import { KaTeXInlineNode } from '@haklex/rich-editor/nodes';
|
|
2
|
+
import { EditorConfig, LexicalEditor, SerializedLexicalNode } from 'lexical';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
4
|
export declare class KaTeXInlineEditNode extends KaTeXInlineNode {
|
|
5
5
|
static clone(node: KaTeXInlineEditNode): KaTeXInlineEditNode;
|
|
6
|
-
static importJSON(
|
|
6
|
+
static importJSON(_serializedNode: SerializedLexicalNode & Record<string, unknown>): KaTeXInlineEditNode;
|
|
7
7
|
decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=KaTeXInlineEditNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KaTeXInlineEditNode.d.ts","sourceRoot":"","sources":["../src/KaTeXInlineEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"KaTeXInlineEditNode.d.ts","sourceRoot":"","sources":["../src/KaTeXInlineEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkC,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB;IAS5D,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,mBAAmB;IAOtB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAetE"}
|
package/dist/index.mjs
CHANGED
|
@@ -513,8 +513,8 @@ var KaTeXBlockEditNode = class KaTeXBlockEditNode extends KaTeXBlockNode {
|
|
|
513
513
|
static clone(node) {
|
|
514
514
|
return new KaTeXBlockEditNode(node.__equation, node.__key, node.getShouldAutoOpenOnMount());
|
|
515
515
|
}
|
|
516
|
-
static importJSON(
|
|
517
|
-
return new KaTeXBlockEditNode(
|
|
516
|
+
static importJSON(_serializedNode) {
|
|
517
|
+
return new KaTeXBlockEditNode(_serializedNode.equation);
|
|
518
518
|
}
|
|
519
519
|
decorate(_editor, _config) {
|
|
520
520
|
const rendererEl = createRendererDecoration("KaTeX", KaTeXRenderer, {
|
|
@@ -536,7 +536,8 @@ var KaTeXInlineEditNode = class KaTeXInlineEditNode extends KaTeXInlineNode {
|
|
|
536
536
|
static clone(node) {
|
|
537
537
|
return new KaTeXInlineEditNode(node.__equation, node.__key, node.getShouldAutoOpenOnMount(), node.__color);
|
|
538
538
|
}
|
|
539
|
-
static importJSON(
|
|
539
|
+
static importJSON(_serializedNode) {
|
|
540
|
+
const serializedNode = _serializedNode;
|
|
540
541
|
const node = new KaTeXInlineEditNode(serializedNode.equation);
|
|
541
542
|
if (serializedNode.color) node.setColor(serializedNode.color);
|
|
542
543
|
return node;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-katex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "KaTeX math renderer for haklex rich editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,30 +21,30 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@lexical/react": "^0.
|
|
24
|
+
"@lexical/react": "^0.46.0",
|
|
25
25
|
"@types/react": "^19.2.17",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
|
-
"@vanilla-extract/css": "^1.
|
|
27
|
+
"@vanilla-extract/css": "^1.21.0",
|
|
28
28
|
"@vanilla-extract/recipes": "^0.5.7",
|
|
29
|
-
"@vanilla-extract/vite-plugin": "^5.2.
|
|
29
|
+
"@vanilla-extract/vite-plugin": "^5.2.3",
|
|
30
30
|
"katex": "^0.17.0",
|
|
31
|
-
"lexical": "^0.
|
|
32
|
-
"react": "19.2.
|
|
33
|
-
"react-dom": "19.2.
|
|
34
|
-
"typescript": "^
|
|
35
|
-
"unplugin-dts": "^1.0.
|
|
36
|
-
"vite": "^8.0
|
|
31
|
+
"lexical": "^0.46.0",
|
|
32
|
+
"react": "^19.2.7",
|
|
33
|
+
"react-dom": "^19.2.7",
|
|
34
|
+
"typescript": "^6.0.3",
|
|
35
|
+
"unplugin-dts": "^1.0.3",
|
|
36
|
+
"vite": "^8.1.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@lexical/react": "^0.
|
|
39
|
+
"@lexical/react": "^0.46.0",
|
|
40
40
|
"katex": ">=0.16.0",
|
|
41
|
-
"lexical": "^0.
|
|
41
|
+
"lexical": "^0.46.0",
|
|
42
42
|
"lucide-react": "^1.0.0",
|
|
43
43
|
"react": ">=19",
|
|
44
44
|
"react-dom": ">=19",
|
|
45
|
-
"@haklex/rich-editor": "^0.
|
|
46
|
-
"@haklex/rich-editor-ui": "^0.
|
|
47
|
-
"@haklex/rich-style-token": "^0.
|
|
45
|
+
"@haklex/rich-editor": "^0.29.0",
|
|
46
|
+
"@haklex/rich-editor-ui": "^0.29.0",
|
|
47
|
+
"@haklex/rich-style-token": "^0.29.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"katex": {
|