@haklex/rich-editor 0.52.0 → 0.54.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.
@@ -6,7 +6,7 @@ import { AutoLinkNode, LinkNode, TOGGLE_LINK_COMMAND } from "@lexical/link";
6
6
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
7
7
  import { createContext, createElement, use, useCallback, useEffect, useMemo } from "react";
8
8
  import { HeadingNode, QuoteNode } from "@lexical/rich-text";
9
- import { $createParagraphNode, $getEditor, $getNodeByKey, $getRoot, $getSelection, $insertNodes, $isParagraphNode, $isRangeSelection, $isTextNode, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_HIGH, KEY_ARROW_DOWN_COMMAND, KEY_ENTER_COMMAND, PASTE_COMMAND, createEditor } from "lexical";
9
+ import { $addUpdateTag, $createParagraphNode, $getEditor, $getNodeByKey, $getRoot, $getSelection, $insertNodes, $isParagraphNode, $isRangeSelection, $isTextNode, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_HIGH, HISTORY_MERGE_TAG, KEY_ARROW_DOWN_COMMAND, KEY_ENTER_COMMAND, PASTE_COMMAND, SKIP_DOM_SELECTION_TAG, createEditor } from "lexical";
10
10
  import { HorizontalRuleNode } from "@lexical/extension";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  import { CodeNode } from "@lexical/code-core";
@@ -79,6 +79,33 @@ function NestedEditorCorePlugins() {
79
79
  ] });
80
80
  }
81
81
  //#endregion
82
+ //#region src/utils/nested-editor-sync.ts
83
+ function registerNestedEditorSync(parentEditor, nestedEditor, ownerKey) {
84
+ return nestedEditor.registerUpdateListener(({ dirtyElements, dirtyLeaves }) => {
85
+ if (dirtyElements.size === 0 && dirtyLeaves.size === 0) return;
86
+ parentEditor.update(() => {
87
+ const owner = $getNodeByKey(ownerKey);
88
+ if (!owner) return;
89
+ $addUpdateTag(HISTORY_MERGE_TAG);
90
+ $addUpdateTag(SKIP_DOM_SELECTION_TAG);
91
+ owner.markDirty();
92
+ });
93
+ });
94
+ }
95
+ //#endregion
96
+ //#region src/components/decorators/useNestedEditorSync.ts
97
+ function useNestedEditorSync(nestedEditors, ownerKey) {
98
+ const [editor] = useLexicalComposerContext();
99
+ useEffect(() => {
100
+ const unregisters = nestedEditors.map((nested) => registerNestedEditorSync(editor, nested, ownerKey));
101
+ return () => unregisters.forEach((unregister) => unregister());
102
+ }, [
103
+ editor,
104
+ nestedEditors,
105
+ ownerKey
106
+ ]);
107
+ }
108
+ //#endregion
82
109
  //#region src/components/decorators/AlertEditDecorator.tsx
83
110
  function ExitBlockPlugin({ parentEditor, nodeKey }) {
84
111
  const [editor] = useLexicalComposerContext();
@@ -156,6 +183,7 @@ function ExitBlockPlugin({ parentEditor, nodeKey }) {
156
183
  }
157
184
  function AlertEditDecorator({ nodeKey, alertType, contentEditor }) {
158
185
  const [editor] = useLexicalComposerContext();
186
+ useNestedEditorSync(useMemo(() => [contentEditor], [contentEditor]), nodeKey);
159
187
  const editable = editor.isEditable();
160
188
  const handleTypeChange = useCallback((newType) => {
161
189
  editor.update(() => {
@@ -340,4 +368,4 @@ function $createAlertQuoteEditNode(alertType, contentState) {
340
368
  return new AlertQuoteEditNode(alertType, contentState);
341
369
  }
342
370
  //#endregion
343
- export { NestedEditorCorePlugins as a, useNestedEditorPlugins as c, createNestedEditor as i, AlertQuoteEditNode as n, PasteLinkPlugin as o, NESTED_EDITOR_NODES as r, NestedEditorPluginsProvider as s, $createAlertQuoteEditNode as t };
371
+ export { useNestedEditorSync as a, PasteLinkPlugin as c, createNestedEditor as i, NestedEditorPluginsProvider as l, AlertQuoteEditNode as n, registerNestedEditorSync as o, NESTED_EDITOR_NODES as r, NestedEditorCorePlugins as s, $createAlertQuoteEditNode as t, useNestedEditorPlugins as u };
@@ -1,5 +1,5 @@
1
1
  import { O as $withAdaptiveImageDisplayWidth, f as $createMermaidNode, v as $createKaTeXInlineNode, w as $createImageNode, x as $createKaTeXBlockNode } from "./theme-Blq1EG_t.js";
2
- import { t as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DuAjHXTP.js";
2
+ import { t as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DE7sLkBy.js";
3
3
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
4
4
  import { useEffect } from "react";
5
5
  import { $insertNodes, COMMAND_PRIORITY_EDITOR, createCommand } from "lexical";
@@ -1,9 +1,9 @@
1
- import { c as setCodeBlockCursorIntent, o as $createCodeBlockEditNode, s as $createBannerEditNode, t as getResolvedEditNodes } from "./node-registry-B2ZLKN5B.js";
1
+ import { c as setCodeBlockCursorIntent, o as $createCodeBlockEditNode, s as $createBannerEditNode, t as getResolvedEditNodes } from "./node-registry-8UieYyS_.js";
2
2
  import "./utils-CdxPji5z.js";
3
3
  import { $ as INLINE_DRAG_MIME, B as FootnoteNode, C as KaTeXBlockNode, G as AlertQuoteNode, O as $withAdaptiveImageDisplayWidth, Q as INLINE_DRAG_ATTR, V as OPEN_FILE_PICKER_COMMAND, _ as MentionNode, b as KaTeXInlineNode, c as SpoilerNode, h as $createMentionNode, k as OPEN_IMAGE_UPLOAD_DIALOG_COMMAND, o as $createSpoilerNode, q as extractTextContent, v as $createKaTeXInlineNode, w as $createImageNode, x as $createKaTeXBlockNode, z as $createFootnoteNode } from "./theme-Blq1EG_t.js";
4
4
  import { i as FootnoteDefinitionsProvider, t as computeImageMeta } from "./thumbhash-DHHqtr0c.js";
5
5
  import { C as fileExtFromName, D as $createCommentPlaceholderNode, E as $createCommentNode, F as BannerNode, T as DetailsNode, _ as $createFootnoteSectionNode, b as $createFileNode, c as $createRubyNode, h as $isGridContainerNode, j as CodeBlockNode, k as CommentNode, o as $createVideoNode, u as RubyNode, v as $isFootnoteSectionNode, w as $createDetailsNode, x as $isFileNode, y as FootnoteSectionNode } from "./ColorSchemeContext-RLg0uDRt.js";
6
- import { o as PasteLinkPlugin, t as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DuAjHXTP.js";
6
+ import { c as PasteLinkPlugin, t as $createAlertQuoteEditNode } from "./AlertQuoteEditNode-DE7sLkBy.js";
7
7
  import { n as getHostname, r as probeFavicon, t as normalizeSerializedEditorState } from "./normalizeSerializedEditorState-VaI73T09.js";
8
8
  import { CheckListPlugin } from "@lexical/react/LexicalCheckListPlugin";
9
9
  import { LinkPlugin } from "@lexical/react/LexicalLinkPlugin";
@@ -1,5 +1,5 @@
1
1
  import { V as OPEN_FILE_PICKER_COMMAND, k as OPEN_IMAGE_UPLOAD_DIALOG_COMMAND, o as $createSpoilerNode, q as extractTextContent, s as $isSpoilerNode } from "./theme-Blq1EG_t.js";
2
- import { i as INSERT_KATEX_INLINE_COMMAND, l as INSERT_ALERT_COMMAND, o as INSERT_IMAGE_COMMAND, r as INSERT_KATEX_BLOCK_COMMAND, t as INSERT_MERMAID_COMMAND } from "./MermaidPlugin-By_8nKNX.js";
2
+ import { i as INSERT_KATEX_INLINE_COMMAND, l as INSERT_ALERT_COMMAND, o as INSERT_IMAGE_COMMAND, r as INSERT_KATEX_BLOCK_COMMAND, t as INSERT_MERMAID_COMMAND } from "./MermaidPlugin-DMvK1lvi.js";
3
3
  import { $createTextNode, $getSelection, $isRangeSelection } from "lexical";
4
4
  //#region src/utils/collect-command-items.ts
5
5
  function collectCommandItems(editor) {
@@ -1 +1 @@
1
- {"version":3,"file":"AlertEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/AlertEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAe7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA4H5D,UAAU,uBAAuB;IAC/B,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,uBAAuB,+BA8ChG"}
1
+ {"version":3,"file":"AlertEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/AlertEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAe7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA6H5D,UAAU,uBAAuB;IAC/B,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,uBAAuB,+BAgDhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"BannerEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/BannerEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAOzD,UAAU,wBAAwB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,UAAU,EACV,aAAa,GACd,EAAE,wBAAwB,+BA6C1B"}
1
+ {"version":3,"file":"BannerEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/BannerEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAQzD,UAAU,wBAAwB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,UAAU,EACV,aAAa,GACd,EAAE,wBAAwB,+BA+C1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"GridEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/GridEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAY7C,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,gBAAgB,EAChB,IAAI,EAAE,WAAW,EACjB,GAAG,EACH,WAAW,GACZ,EAAE,sBAAsB,+BA2IxB"}
1
+ {"version":3,"file":"GridEditDecorator.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/GridEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAa7C,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,gBAAgB,EAChB,IAAI,EAAE,WAAW,EACjB,GAAG,EACH,WAAW,GACZ,EAAE,sBAAsB,+BA+IxB"}
@@ -0,0 +1,3 @@
1
+ import { LexicalEditor, NodeKey } from 'lexical';
2
+ export declare function useNestedEditorSync(nestedEditors: LexicalEditor[], ownerKey: NodeKey): void;
3
+ //# sourceMappingURL=useNestedEditorSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNestedEditorSync.d.ts","sourceRoot":"","sources":["../../../src/components/decorators/useNestedEditorSync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAKtD,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAQ3F"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { CorePlugins } from './components/CorePlugins';
2
+ export { NestedEditorCorePlugins } from './components/decorators/NestedEditorCorePlugins';
3
+ export { useNestedEditorSync } from './components/decorators/useNestedEditorSync';
2
4
  export type { LinkFaviconProps } from './components/LinkFavicon';
3
5
  export { LinkFavicon } from './components/LinkFavicon';
4
6
  export { RichEditor } from './components/RichEditor';
@@ -18,6 +20,7 @@ export type { RendererMode } from './context/RendererConfigContext';
18
20
  export { RendererConfigProvider, useRendererConfig, useRendererMode, useVariant, } from './context/RendererConfigContext';
19
21
  export type { TextSelectionStore, TextSelectionStoreState } from './context/TextSelectionContext';
20
22
  export { createTextSelectionStore, TextSelectionStoreProvider, useTextSelectionSnapshot, useTextSelectionStore, } from './context/TextSelectionContext';
23
+ export { createNestedEditor, NESTED_EDITOR_NODES } from './nodes/shared';
21
24
  export { blockIdState } from './plugins/BlockIdPlugin';
22
25
  export * from './styles';
23
26
  export type { RichEditorProps, RichEditorVariant } from './types';
@@ -25,6 +28,7 @@ export type { RendererConfig } from './types/renderer-config';
25
28
  export { ALERT_NODE_KEY, BANNER_NODE_KEY, CODE_BLOCK_NODE_KEY, FILE_NODE_KEY, FOOTNOTE_NODE_KEY, FOOTNOTE_SECTION_NODE_KEY, IMAGE_NODE_KEY, KATEX_NODE_KEY, LINK_CARD_NODE_KEY, MENTION_NODE_KEY, MERMAID_NODE_KEY, RUBY_NODE_KEY, TAG_NODE_KEY, VIDEO_NODE_KEY, } from './types/renderer-keys';
26
29
  export type { AnchorError, AnchorResult, BlockAnchor, CommentAnchor, RangeAnchor, } from './utils/comment-anchor';
27
30
  export { $getRootBlock, $getTextOffsetInBlock, $resolveSelectionPoint, buildBlockAnchor, buildRangeAnchor, } from './utils/comment-anchor';
31
+ export { registerNestedEditorSync } from './utils/nested-editor-sync';
28
32
  export type { DOMSelectionTarget, TextSelectionSnapshot } from './utils/text-selection';
29
33
  export { $captureTextSelection, $captureTextSelectionFromRangeSelection, $restoreTextSelection, createDOMRangeFromTextSelection, findDOMPointByTextOffset, getBlockElementById, getDOMRectFromTextSelection, getTextOffsetFromDOMPoint, } from './utils/text-selection';
30
34
  export { TEXT_SELECTION_HIGHLIGHT_NAME } from './utils/text-selection-constants';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAChF,YAAY,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAA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AmB,EACnB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import { A as FileUploadPlugin, C as createTextSelectionStore, D as ImageUploadPlugin, E as LinkFaviconPlugin, F as VideoUploadProvider, L as ImageUploadProvider, N as BlockIdPlugin, O as defaultImageUpload, P as blockIdState, S as TextSelectionStoreProvider, T as useTextSelectionStore, U as CorePlugins, V as FileUploadProvider, _ as $getRootBlock, a as AutoFocusPlugin, b as buildBlockAnchor, c as $captureTextSelection, d as createDOMRangeFromTextSelection, f as findDOMPointByTextOffset, g as TEXT_SELECTION_HIGHLIGHT_NAME, h as getTextOffsetFromDOMPoint, i as EditorRefPlugin, l as $captureTextSelectionFromRangeSelection, m as getDOMRectFromTextSelection, n as OnChangePlugin, o as VideoUploadPlugin, p as getBlockElementById, r as FootnotePlugin, s as TextSelectionPlugin, t as SubmitShortcutPlugin, u as $restoreTextSelection, v as $getTextOffsetInBlock, w as useTextSelectionSnapshot, x as buildRangeAnchor, y as $resolveSelectionPoint, z as ImagePreprocessProvider } from "./SubmitShortcutPlugin-DwZzJlZ0.js";
2
- import { n as setResolvedEditNodes, r as allEditNodes } from "./node-registry-B2ZLKN5B.js";
1
+ import { A as FileUploadPlugin, C as createTextSelectionStore, D as ImageUploadPlugin, E as LinkFaviconPlugin, F as VideoUploadProvider, L as ImageUploadProvider, N as BlockIdPlugin, O as defaultImageUpload, P as blockIdState, S as TextSelectionStoreProvider, T as useTextSelectionStore, U as CorePlugins, V as FileUploadProvider, _ as $getRootBlock, a as AutoFocusPlugin, b as buildBlockAnchor, c as $captureTextSelection, d as createDOMRangeFromTextSelection, f as findDOMPointByTextOffset, g as TEXT_SELECTION_HIGHLIGHT_NAME, h as getTextOffsetFromDOMPoint, i as EditorRefPlugin, l as $captureTextSelectionFromRangeSelection, m as getDOMRectFromTextSelection, n as OnChangePlugin, o as VideoUploadPlugin, p as getBlockElementById, r as FootnotePlugin, s as TextSelectionPlugin, t as SubmitShortcutPlugin, u as $restoreTextSelection, v as $getTextOffsetInBlock, w as useTextSelectionSnapshot, x as buildRangeAnchor, y as $resolveSelectionPoint, z as ImagePreprocessProvider } from "./SubmitShortcutPlugin-BvGB9w6w.js";
2
+ import { n as setResolvedEditNodes, r as allEditNodes } from "./node-registry-8UieYyS_.js";
3
3
  import { a as chatVariant, c as semanticClassNames, i as commentVariant, l as sharedStyles, n as getVariantClass, o as articleVariant, r as noteVariant, s as richContent, t as clsx } from "./utils-CdxPji5z.js";
4
4
  import { X as useNestedContentRenderer, Y as NestedContentRendererProvider, Z as useOptionalNestedContentRenderer, t as editorTheme } from "./theme-Blq1EG_t.js";
5
5
  import { C as MENTION_NODE_KEY, D as VIDEO_NODE_KEY, E as TAG_NODE_KEY, S as LINK_CARD_NODE_KEY, T as RUBY_NODE_KEY, _ as FILE_NODE_KEY, a as useFootnoteContent, b as IMAGE_NODE_KEY, d as useRendererConfig, f as useRendererMode, g as CODE_BLOCK_NODE_KEY, h as BANNER_NODE_KEY, i as FootnoteDefinitionsProvider, m as ALERT_NODE_KEY, o as useFootnoteDefinitions, p as useVariant, s as useFootnoteDisplayNumber, u as RendererConfigProvider, v as FOOTNOTE_NODE_KEY, w as MERMAID_NODE_KEY, x as KATEX_NODE_KEY, y as FOOTNOTE_SECTION_NODE_KEY } from "./thumbhash-DHHqtr0c.js";
6
6
  import { n as useColorScheme, t as ColorSchemeProvider } from "./ColorSchemeContext-RLg0uDRt.js";
7
7
  import { i as detailsStyles, n as gridStyles, r as detailsClassNames, t as gridClassNames } from "./grid.css-CUb_icKZ.js";
8
- import { c as useNestedEditorPlugins, s as NestedEditorPluginsProvider } from "./AlertQuoteEditNode-DuAjHXTP.js";
8
+ import { a as useNestedEditorSync, i as createNestedEditor, l as NestedEditorPluginsProvider, o as registerNestedEditorSync, r as NESTED_EDITOR_NODES, s as NestedEditorCorePlugins, u as useNestedEditorPlugins } from "./AlertQuoteEditNode-DE7sLkBy.js";
9
9
  import { t as normalizeSerializedEditorState } from "./normalizeSerializedEditorState-VaI73T09.js";
10
10
  import { n as useExtraNodes, r as LinkFavicon, t as ExtraNodesProvider } from "./ExtraNodesContext-DdU7MZwS.js";
11
- import { a as KaTeXPlugin, c as AlertPlugin, n as MermaidPlugin, s as ImagePlugin } from "./MermaidPlugin-By_8nKNX.js";
11
+ import { a as KaTeXPlugin, c as AlertPlugin, n as MermaidPlugin, s as ImagePlugin } from "./MermaidPlugin-DMvK1lvi.js";
12
12
  import { n as katexStyles, t as katexClassNames } from "./katex.css-9tq8FN8h.js";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  import { ContentEditable } from "@lexical/react/LexicalContentEditable";
@@ -144,4 +144,4 @@ function RichEditor({ extraNodes, imageUpload, videoUpload, fileUpload, children
144
144
  }) });
145
145
  }
146
146
  //#endregion
147
- export { $captureTextSelection, $captureTextSelectionFromRangeSelection, $getRootBlock, $getTextOffsetInBlock, $resolveSelectionPoint, $restoreTextSelection, ALERT_NODE_KEY, BANNER_NODE_KEY, CODE_BLOCK_NODE_KEY, ColorSchemeProvider, CorePlugins, ExtraNodesProvider, FILE_NODE_KEY, FOOTNOTE_NODE_KEY, FOOTNOTE_SECTION_NODE_KEY, FootnoteDefinitionsProvider, IMAGE_NODE_KEY, KATEX_NODE_KEY, LINK_CARD_NODE_KEY, LinkFavicon, MENTION_NODE_KEY, MERMAID_NODE_KEY, NestedContentRendererProvider, NestedEditorPluginsProvider, RUBY_NODE_KEY, RendererConfigProvider, RichEditor, RichEditorShell, TAG_NODE_KEY, TEXT_SELECTION_HIGHLIGHT_NAME, TextSelectionStoreProvider, VIDEO_NODE_KEY, articleTheme, articleVariant, blockIdState, buildBlockAnchor, buildRangeAnchor, chatTheme, chatVariant, commentTheme, commentVariant, createDOMRangeFromTextSelection, createTextSelectionStore, detailsClassNames, detailsStyles, editorTheme, findDOMPointByTextOffset, getBlockElementById, getDOMRectFromTextSelection, getTextOffsetFromDOMPoint, getVariantClass, gridClassNames, gridStyles, katexClassNames, katexStyles, noteTheme, noteVariant, richContent, semanticClassNames, sharedStyles, useColorScheme, useExtraNodes, useFootnoteContent, useFootnoteDefinitions, useFootnoteDisplayNumber, useNestedContentRenderer, useNestedEditorPlugins, useOptionalNestedContentRenderer, useRendererConfig, useRendererMode, useTextSelectionSnapshot, useTextSelectionStore, useVariant, vars };
147
+ export { $captureTextSelection, $captureTextSelectionFromRangeSelection, $getRootBlock, $getTextOffsetInBlock, $resolveSelectionPoint, $restoreTextSelection, ALERT_NODE_KEY, BANNER_NODE_KEY, CODE_BLOCK_NODE_KEY, ColorSchemeProvider, CorePlugins, ExtraNodesProvider, FILE_NODE_KEY, FOOTNOTE_NODE_KEY, FOOTNOTE_SECTION_NODE_KEY, FootnoteDefinitionsProvider, IMAGE_NODE_KEY, KATEX_NODE_KEY, LINK_CARD_NODE_KEY, LinkFavicon, MENTION_NODE_KEY, MERMAID_NODE_KEY, NESTED_EDITOR_NODES, NestedContentRendererProvider, NestedEditorCorePlugins, NestedEditorPluginsProvider, RUBY_NODE_KEY, RendererConfigProvider, RichEditor, RichEditorShell, TAG_NODE_KEY, TEXT_SELECTION_HIGHLIGHT_NAME, TextSelectionStoreProvider, VIDEO_NODE_KEY, articleTheme, articleVariant, blockIdState, buildBlockAnchor, buildRangeAnchor, chatTheme, chatVariant, commentTheme, commentVariant, createDOMRangeFromTextSelection, createNestedEditor, createTextSelectionStore, detailsClassNames, detailsStyles, editorTheme, findDOMPointByTextOffset, getBlockElementById, getDOMRectFromTextSelection, getTextOffsetFromDOMPoint, getVariantClass, gridClassNames, gridStyles, katexClassNames, katexStyles, noteTheme, noteVariant, registerNestedEditorSync, richContent, semanticClassNames, sharedStyles, useColorScheme, useExtraNodes, useFootnoteContent, useFootnoteDefinitions, useFootnoteDisplayNumber, useNestedContentRenderer, useNestedEditorPlugins, useNestedEditorSync, useOptionalNestedContentRenderer, useRendererConfig, useRendererMode, useTextSelectionSnapshot, useTextSelectionStore, useVariant, vars };
@@ -3,7 +3,7 @@ import { B as FootnoteNode, C as KaTeXBlockNode, E as ImageNode, K as _definePro
3
3
  import { c as RendererWrapper, g as CODE_BLOCK_NODE_KEY, h as BANNER_NODE_KEY, o as useFootnoteDefinitions, p as useVariant } from "./thumbhash-DHHqtr0c.js";
4
4
  import { A as $isCodeBlockNode, F as BannerNode, I as normalizeBannerType, L as BannerRenderer, M as $isBannerNode, S as FileNode, T as DetailsNode, g as GridContainerNode, h as $isGridContainerNode, i as builtinNodes, j as CodeBlockNode, k as CommentNode, n as useColorScheme, p as LinkCardNode, s as VideoNode, u as RubyNode, y as FootnoteSectionNode } from "./ColorSchemeContext-RLg0uDRt.js";
5
5
  import { n as gridStyles, t as gridClassNames } from "./grid.css-CUb_icKZ.js";
6
- import { a as NestedEditorCorePlugins, i as createNestedEditor, n as AlertQuoteEditNode } from "./AlertQuoteEditNode-DuAjHXTP.js";
6
+ import { a as useNestedEditorSync, i as createNestedEditor, n as AlertQuoteEditNode, s as NestedEditorCorePlugins } from "./AlertQuoteEditNode-DE7sLkBy.js";
7
7
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
8
8
  import { createElement, useCallback, useEffect, useMemo, useRef, useState } from "react";
9
9
  import { $createNodeSelection, $createParagraphNode, $getNodeByKey, $getRoot, $getSelection, $insertNodes, $isDecoratorNode, $isElementNode, $isNodeSelection, $nodesOfType, $setSelection } from "lexical";
@@ -30,6 +30,8 @@ function consumeCodeBlockCursorIntent(nodeKey) {
30
30
  //#region src/components/decorators/BannerEditDecorator.tsx
31
31
  function BannerEditDecorator({ nodeKey, bannerType, contentEditor }) {
32
32
  const [editor] = useLexicalComposerContext();
33
+ const contentEditors = useMemo(() => [contentEditor], [contentEditor]);
34
+ useNestedEditorSync(contentEditors, nodeKey);
33
35
  const editable = editor.isEditable();
34
36
  const handleTypeChange = useCallback((newType) => {
35
37
  editor.update(() => {
@@ -483,6 +485,7 @@ var COL_OPTIONS = [
483
485
  function GridEditDecorator({ nodeKey, autoFocusOnMount, cols: initialCols, gap, cellEditors }) {
484
486
  const [editor] = useLexicalComposerContext();
485
487
  const [currentCols, setCurrentCols] = useState(initialCols);
488
+ useNestedEditorSync(cellEditors, nodeKey);
486
489
  useEffect(() => {
487
490
  return editor.registerUpdateListener(({ editorState }) => {
488
491
  editorState.read(() => {
@@ -1,5 +1,5 @@
1
- import { a as FootnoteSectionEditNode, i as customEditNodes, n as setResolvedEditNodes, r as allEditNodes, t as getResolvedEditNodes } from "./node-registry-B2ZLKN5B.js";
1
+ import { a as FootnoteSectionEditNode, i as customEditNodes, n as setResolvedEditNodes, r as allEditNodes, t as getResolvedEditNodes } from "./node-registry-8UieYyS_.js";
2
2
  import { A as computeImageDisplayPixels, C as KaTeXBlockNode, D as sanitizeImageLayout, E as ImageNode, F as imageDisplaySizeAfterResize, I as resolveImageDisplaySize, L as sanitizeImageDisplayWidth, M as imageDisplayCssVars, N as imageDisplayDataAttr, P as imageDisplayFieldsFromSize, R as sanitizeImageFixedPx, S as $isKaTeXBlockNode, T as $isImageNode, U as ALERT_LABELS, W as ALERT_TYPES, _ as MentionNode, b as KaTeXInlineNode, d as RichQuoteNode, f as $createMermaidNode, g as $isMentionNode, h as $createMentionNode, i as TagNode, j as convertImageDisplaySize, l as $createRichQuoteNode, m as MermaidNode, n as $createTagNode, p as $isMermaidNode, r as $isTagNode, u as $isRichQuoteNode, w as $createImageNode, y as $isKaTeXInlineNode } from "./theme-Blq1EG_t.js";
3
3
  import { C as fileExtFromName, E as $createCommentNode, N as BANNER_LABELS, O as $isCommentNode, P as BANNER_TYPES, S as FileNode, _ as $createFootnoteSectionNode, a as customNodes, b as $createFileNode, c as $createRubyNode, d as $createLinkCardNode, f as $isLinkCardNode, g as GridContainerNode, h as $isGridContainerNode, i as builtinNodes, k as CommentNode, l as $isRubyNode, m as $createGridContainerNode, p as LinkCardNode, r as allNodes, u as RubyNode, v as $isFootnoteSectionNode, x as $isFileNode, y as FootnoteSectionNode } from "./ColorSchemeContext-RLg0uDRt.js";
4
- import { r as NESTED_EDITOR_NODES } from "./AlertQuoteEditNode-DuAjHXTP.js";
4
+ import { r as NESTED_EDITOR_NODES } from "./AlertQuoteEditNode-DE7sLkBy.js";
5
5
  export { $createCommentNode, $createFileNode, $createFootnoteSectionNode, $createGridContainerNode, $createImageNode, $createLinkCardNode, $createMentionNode, $createMermaidNode, $createRichQuoteNode, $createRubyNode, $createTagNode, $isCommentNode, $isFileNode, $isFootnoteSectionNode, $isGridContainerNode, $isImageNode, $isKaTeXBlockNode, $isKaTeXInlineNode, $isLinkCardNode, $isMentionNode, $isMermaidNode, $isRichQuoteNode, $isRubyNode, $isTagNode, ALERT_LABELS, ALERT_TYPES, BANNER_LABELS, BANNER_TYPES, CommentNode, FileNode, FootnoteSectionEditNode, FootnoteSectionNode, GridContainerNode, ImageNode, KaTeXBlockNode, KaTeXInlineNode, LinkCardNode, MentionNode, MermaidNode, NESTED_EDITOR_NODES, RichQuoteNode, RubyNode, TagNode, allEditNodes, allNodes, builtinNodes, computeImageDisplayPixels, convertImageDisplaySize, customEditNodes, customNodes, fileExtFromName, getResolvedEditNodes, imageDisplayCssVars, imageDisplayDataAttr, imageDisplayFieldsFromSize, imageDisplaySizeAfterResize, resolveImageDisplaySize, sanitizeImageDisplayWidth, sanitizeImageFixedPx, sanitizeImageLayout, setResolvedEditNodes };
@@ -1,5 +1,5 @@
1
- import { A as FileUploadPlugin, B as useImagePreprocess, D as ImageUploadPlugin, E as LinkFaviconPlugin, F as VideoUploadProvider, G as MarkdownPastePlugin, H as useFileUpload, I as useVideoUpload, J as HorizontalRulePlugin, K as ALL_TRANSFORMERS, L as ImageUploadProvider, M as useFileUploadEntry, N as BlockIdPlugin, O as defaultImageUpload, P as blockIdState, Q as AutoLinkPlugin, R as useImageUpload, U as CorePlugins, V as FileUploadProvider, W as MarkdownShortcutsPlugin, X as registerClickBelowCommand, Y as ClickBelowPlugin, Z as BlockExitPlugin, a as AutoFocusPlugin, i as EditorRefPlugin, j as setFileUploadEntry, k as resolvePreprocessTargets, n as OnChangePlugin, o as VideoUploadPlugin, q as InlineDndPlugin, r as FootnotePlugin, s as TextSelectionPlugin, t as SubmitShortcutPlugin, z as ImagePreprocessProvider } from "./SubmitShortcutPlugin-DwZzJlZ0.js";
1
+ import { A as FileUploadPlugin, B as useImagePreprocess, D as ImageUploadPlugin, E as LinkFaviconPlugin, F as VideoUploadProvider, G as MarkdownPastePlugin, H as useFileUpload, I as useVideoUpload, J as HorizontalRulePlugin, K as ALL_TRANSFORMERS, L as ImageUploadProvider, M as useFileUploadEntry, N as BlockIdPlugin, O as defaultImageUpload, P as blockIdState, Q as AutoLinkPlugin, R as useImageUpload, U as CorePlugins, V as FileUploadProvider, W as MarkdownShortcutsPlugin, X as registerClickBelowCommand, Y as ClickBelowPlugin, Z as BlockExitPlugin, a as AutoFocusPlugin, i as EditorRefPlugin, j as setFileUploadEntry, k as resolvePreprocessTargets, n as OnChangePlugin, o as VideoUploadPlugin, q as InlineDndPlugin, r as FootnotePlugin, s as TextSelectionPlugin, t as SubmitShortcutPlugin, z as ImagePreprocessProvider } from "./SubmitShortcutPlugin-BvGB9w6w.js";
2
2
  import { Q as INLINE_DRAG_ATTR, et as markInlineDraggable } from "./theme-Blq1EG_t.js";
3
- import { o as PasteLinkPlugin } from "./AlertQuoteEditNode-DuAjHXTP.js";
4
- import { a as KaTeXPlugin, c as AlertPlugin, n as MermaidPlugin, s as ImagePlugin } from "./MermaidPlugin-By_8nKNX.js";
3
+ import { c as PasteLinkPlugin } from "./AlertQuoteEditNode-DE7sLkBy.js";
4
+ import { a as KaTeXPlugin, c as AlertPlugin, n as MermaidPlugin, s as ImagePlugin } from "./MermaidPlugin-DMvK1lvi.js";
5
5
  export { ALL_TRANSFORMERS, AlertPlugin, AutoFocusPlugin, AutoLinkPlugin, BlockExitPlugin, BlockIdPlugin, ClickBelowPlugin, CorePlugins, EditorRefPlugin, FileUploadPlugin, FileUploadProvider, FootnotePlugin, HorizontalRulePlugin, INLINE_DRAG_ATTR, ImagePlugin, ImagePreprocessProvider, ImageUploadPlugin, ImageUploadProvider, InlineDndPlugin, KaTeXPlugin, LinkFaviconPlugin, MarkdownPastePlugin, MarkdownShortcutsPlugin, MermaidPlugin, OnChangePlugin, PasteLinkPlugin, SubmitShortcutPlugin, TextSelectionPlugin, VideoUploadPlugin, VideoUploadProvider, blockIdState, defaultImageUpload, markInlineDraggable, registerClickBelowCommand, resolvePreprocessTargets, setFileUploadEntry, useFileUpload, useFileUploadEntry, useImagePreprocess, useImageUpload, useVideoUpload };
@@ -0,0 +1,3 @@
1
+ import { LexicalEditor, NodeKey } from 'lexical';
2
+ export declare function registerNestedEditorSync(parentEditor: LexicalEditor, nestedEditor: LexicalEditor, ownerKey: NodeKey): () => void;
3
+ //# sourceMappingURL=nested-editor-sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nested-editor-sync.d.ts","sourceRoot":"","sources":["../../src/utils/nested-editor-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAOtD,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAC3B,QAAQ,EAAE,OAAO,GAChB,MAAM,IAAI,CAWZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-editor",
3
- "version": "0.52.0",
3
+ "version": "0.54.0",
4
4
  "description": "Core rich text editor based on Lexical",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,9 +45,9 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "@haklex/rich-editor-ui": "0.52.0",
49
- "@haklex/rich-headless": "0.52.0",
50
- "@haklex/rich-style-token": "0.52.0",
48
+ "@haklex/rich-editor-ui": "0.54.0",
49
+ "@haklex/rich-headless": "0.54.0",
50
+ "@haklex/rich-style-token": "0.54.0",
51
51
  "@lexical/code-core": "^0.52.0",
52
52
  "nanoid": "^6.0.2",
53
53
  "thumbhash": "^0.1.1"