@haklex/rich-editor 0.0.81 → 0.0.82
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,6 +1,7 @@
|
|
|
1
1
|
import { SerializedEditorState } from 'lexical';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
3
|
+
import { RichEditorVariant } from '../types';
|
|
4
|
+
export type RenderEditorStateFn = (state: SerializedEditorState, variant?: RichEditorVariant) => ReactNode;
|
|
4
5
|
export declare const NestedContentRendererProvider: import('react').Provider<RenderEditorStateFn | null>;
|
|
5
6
|
export declare function useOptionalNestedContentRenderer(): RenderEditorStateFn | null;
|
|
6
7
|
export declare function useNestedContentRenderer(): RenderEditorStateFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedContentRendererContext.d.ts","sourceRoot":"","sources":["../../src/context/NestedContentRendererContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"NestedContentRendererContext.d.ts","sourceRoot":"","sources":["../../src/context/NestedContentRendererContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,CAChC,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,iBAAiB,KACxB,SAAS,CAAC;AAIf,eAAO,MAAM,6BAA6B,sDAAwC,CAAC;AAEnF,wBAAgB,gCAAgC,IAAI,mBAAmB,GAAG,IAAI,CAE7E;AAED,wBAAgB,wBAAwB,IAAI,mBAAmB,CAM9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.82",
|
|
4
4
|
"description": "Core rich text editor based on Lexical",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@lexical/code": "npm:lexical-code-no-prism@0.41.0",
|
|
50
50
|
"nanoid": "^5.1.6",
|
|
51
51
|
"thumbhash": "^0.1.1",
|
|
52
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
53
|
-
"@haklex/rich-
|
|
54
|
-
"@haklex/rich-
|
|
52
|
+
"@haklex/rich-editor-ui": "0.0.82",
|
|
53
|
+
"@haklex/rich-style-token": "0.0.82",
|
|
54
|
+
"@haklex/rich-headless": "0.0.82"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@lexical/extension": "^0.41.0",
|