@haklex/rich-editor 0.0.65 → 0.0.66
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/README.md +107 -300
- package/dist/AlertQuoteEditNode-AgVEMFEi.js +292 -0
- package/dist/KaTeXRenderer-C8jv_5xr.js +214 -0
- package/dist/LinkCardRenderer-QmkOlyXb.js +36 -0
- package/dist/{LinkFavicon-DpURZdO_.js → LinkFavicon-B9SOaYCR.js} +5 -24
- package/dist/MermaidPlugin-CIQbyjXF.js +97 -0
- package/dist/RubyRenderer-DbeobSoH.js +13 -0
- package/dist/SubmitShortcutPlugin-WQpet-vq.js +1512 -0
- package/dist/commands-entry.d.ts +9 -0
- package/dist/commands-entry.d.ts.map +1 -0
- package/dist/commands-entry.mjs +25 -0
- package/dist/components/ContentEditable.d.ts +2 -2
- package/dist/components/ContentEditable.d.ts.map +1 -1
- package/dist/components/CorePlugins.d.ts +2 -0
- package/dist/components/CorePlugins.d.ts.map +1 -0
- package/dist/components/LinkFavicon.d.ts.map +1 -1
- package/dist/components/RichEditor.d.ts +1 -1
- package/dist/components/RichEditor.d.ts.map +1 -1
- package/dist/components/RichEditorShell.d.ts +26 -0
- package/dist/components/RichEditorShell.d.ts.map +1 -0
- package/dist/components/decorators/AlertEditDecorator.d.ts +2 -2
- package/dist/components/decorators/AlertEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/BannerEditDecorator.d.ts +1 -1
- package/dist/components/decorators/BannerEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/CodeBlockEditDecorator.d.ts +2 -2
- package/dist/components/decorators/CodeBlockEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/GridEditDecorator.d.ts +2 -2
- package/dist/components/decorators/GridEditDecorator.d.ts.map +1 -1
- package/dist/components/renderers/AlertRenderer.d.ts +1 -1
- package/dist/components/renderers/AlertRenderer.d.ts.map +1 -1
- package/dist/components/renderers/AlertStaticDecorator.d.ts +1 -1
- package/dist/components/renderers/AlertStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/BannerRenderer.d.ts +1 -1
- package/dist/components/renderers/BannerRenderer.d.ts.map +1 -1
- package/dist/components/renderers/BannerStaticDecorator.d.ts +1 -1
- package/dist/components/renderers/BannerStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/CodeBlockRenderer.d.ts +5 -5
- package/dist/components/renderers/CodeBlockRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionEditRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteSectionEditRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteSectionRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteStaticRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteStaticRenderer.d.ts.map +1 -1
- package/dist/components/renderers/GridStaticDecorator.d.ts +2 -2
- package/dist/components/renderers/GridStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/ImageRenderer.d.ts +4 -4
- package/dist/components/renderers/ImageRenderer.d.ts.map +1 -1
- package/dist/components/renderers/KaTeXRenderer.d.ts +1 -1
- package/dist/components/renderers/KaTeXRenderer.d.ts.map +1 -1
- package/dist/components/renderers/LinkCardRenderer.d.ts +4 -4
- package/dist/components/renderers/LinkCardRenderer.d.ts.map +1 -1
- package/dist/components/renderers/MentionRenderer.d.ts +2 -2
- package/dist/components/renderers/MentionRenderer.d.ts.map +1 -1
- package/dist/components/renderers/RubyRenderer.d.ts +1 -1
- package/dist/components/renderers/RubyRenderer.d.ts.map +1 -1
- package/dist/components/renderers/VideoRenderer.d.ts +3 -3
- package/dist/components/renderers/VideoRenderer.d.ts.map +1 -1
- package/dist/config-QGdXDSW9.js +1235 -0
- package/dist/context/ImageUploadContext.d.ts.map +1 -1
- package/dist/context/RendererConfigContext.d.ts +1 -1
- package/dist/context/RendererConfigContext.d.ts.map +1 -1
- package/dist/favicon-BQgbXF_a.js +43 -0
- package/dist/index.d.ts +10 -80
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +151 -161
- package/dist/node-registry-CSRSWJ0q.js +765 -0
- package/dist/nodes/CodeBlockEditNode.d.ts +6 -6
- package/dist/nodes/DetailsNode.d.ts.map +1 -1
- package/dist/nodes/GridContainerNode.d.ts.map +1 -1
- package/dist/nodes/GridEditNode.d.ts.map +1 -1
- package/dist/nodes/ImageNode.d.ts +4 -4
- package/dist/nodes/ImageNode.d.ts.map +1 -1
- package/dist/nodes/LinkCardNode.d.ts +4 -4
- package/dist/nodes/LinkCardNode.d.ts.map +1 -1
- package/dist/nodes/VideoNode.d.ts +2 -2
- package/dist/nodes/VideoNode.d.ts.map +1 -1
- package/dist/nodes-entry.d.ts +28 -0
- package/dist/nodes-entry.d.ts.map +1 -0
- package/dist/nodes-entry.mjs +44 -0
- package/dist/plugins/AutoLinkPlugin.d.ts.map +1 -1
- package/dist/plugins/ImageUploadPlugin.d.ts +2 -2
- package/dist/plugins/ImageUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/MarkdownPastePlugin.d.ts.map +1 -1
- package/dist/plugins/OnChangePlugin.d.ts +1 -1
- package/dist/plugins/OnChangePlugin.d.ts.map +1 -1
- package/dist/plugins/image-upload-command.d.ts.map +1 -1
- package/dist/plugins/image-upload.css.d.ts +1 -4
- package/dist/plugins/image-upload.css.d.ts.map +1 -1
- package/dist/plugins-entry.d.ts +22 -0
- package/dist/plugins-entry.d.ts.map +1 -0
- package/dist/plugins-entry.mjs +27 -0
- package/dist/renderers-entry.d.ts +23 -0
- package/dist/renderers-entry.d.ts.map +1 -0
- package/dist/renderers-entry.mjs +60 -0
- package/dist/rich-editor.css +1 -1
- package/dist/{utils-fpeaZV1R.js → shared.css-DNuMYx6Q.js} +4 -1
- package/dist/static-entry.mjs +23 -21
- package/dist/styles/article.css.d.ts.map +1 -1
- package/dist/styles-entry.mjs +1 -2
- package/dist/theme-CRza9nbF.js +924 -0
- package/dist/transformers/code-block.d.ts.map +1 -1
- package/dist/types/renderer-config.d.ts +6 -6
- package/dist/types/renderer-config.d.ts.map +1 -1
- package/dist/types/slash-menu.d.ts +6 -6
- package/dist/types/slash-menu.d.ts.map +1 -1
- package/dist/types.d.ts +18 -13
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/comment-anchor.d.ts +8 -8
- package/dist/utils/comment-anchor.d.ts.map +1 -1
- package/package.json +50 -33
- package/dist/RichEditor-EI3rR1-9.js +0 -2789
- package/dist/components/decorators/nested-doc-dialog.css.d.ts +0 -28
- package/dist/components/decorators/nested-doc-dialog.css.d.ts.map +0 -1
- package/dist/editor.d.ts +0 -6
- package/dist/editor.d.ts.map +0 -1
- package/dist/editor.mjs +0 -12
- package/dist/favicon-C6Esc0tp.js +0 -2470
- package/dist/shared.css-BqX4HjVE.js +0 -5
|
@@ -4,16 +4,16 @@ import { CodeBlockNode, SerializedCodeBlockNode } from './CodeBlockNode';
|
|
|
4
4
|
export declare class CodeBlockEditNode extends CodeBlockNode {
|
|
5
5
|
static commandItems: {
|
|
6
6
|
onSelect: (editor: LexicalEditor) => void;
|
|
7
|
-
title: string;
|
|
8
|
-
icon?: import('react').ReactNode;
|
|
9
7
|
description?: string;
|
|
8
|
+
group?: import('../commands-entry').ToolbarGroup;
|
|
9
|
+
icon?: import('react').ReactNode;
|
|
10
|
+
isActive?: (editor: LexicalEditor) => boolean;
|
|
11
|
+
isDisabled?: (editor: LexicalEditor) => boolean;
|
|
10
12
|
keywords?: string[];
|
|
13
|
+
placement?: import('../commands-entry').CommandPlacement[];
|
|
11
14
|
section?: string;
|
|
12
|
-
placement?: import('..').CommandPlacement[];
|
|
13
|
-
group?: import('..').ToolbarGroup;
|
|
14
15
|
shortcut?: string;
|
|
15
|
-
|
|
16
|
-
isDisabled?: (editor: LexicalEditor) => boolean;
|
|
16
|
+
title: string;
|
|
17
17
|
}[];
|
|
18
18
|
static clone(node: CodeBlockEditNode): CodeBlockEditNode;
|
|
19
19
|
static importJSON(serializedNode: SerializedCodeBlockNode): CodeBlockEditNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsNode.d.ts","sourceRoot":"","sources":["../../src/nodes/DetailsNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAA;AAChB,OAAO,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAA;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAO9D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CACxC;IACE,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;CACd,EACD,qBAAqB,CACtB,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IAEf,MAAM,CAAC,cAAc,EAAE,mBAAmB,EAAE,CAa3C;IAED,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW;gBAIhC,OAAO,EAAE,MAAM,EAAE,IAAI,UAAQ,EAAE,GAAG,CAAC,EAAE,OAAO;IAMxD,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW;
|
|
1
|
+
{"version":3,"file":"DetailsNode.d.ts","sourceRoot":"","sources":["../../src/nodes/DetailsNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAA;AAChB,OAAO,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAA;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAO9D,MAAM,MAAM,qBAAqB,GAAG,MAAM,C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AC,KAAK,EAAE,MAAM,GAAG,IAAI;IA4B7B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAahC,cAAc,IAAI,MAAM;IAIxB,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,2BAA2B,GAAG,iBAAiB;IA6BjF,UAAU,IAAI,2BAA2B;IAWzC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAOtE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,SAAI,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAElF;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,iBAAiB,CAE3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridEditNode.d.ts","sourceRoot":"","sources":["../../src/nodes/GridEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,qBAAqB,EAEtB,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"GridEditNode.d.ts","sourceRoot":"","sources":["../../src/nodes/GridEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,qBAAqB,EAEtB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAuB1F,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,aAAa,EAAE,aAAa,EAAE,CAAC;IAE/B,MAAM,CAAC,cAAc,EAAE,mBAAmB,EAAE,CAa1C;IAEF,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY;gBAMlC,IAAI,SAAI,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,qBAAqB,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM;IAUtF,cAAc,IAAI,aAAa,EAAE;IAIjC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAkC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA8B7B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiBhC,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,2BAA2B,GAAG,YAAY;IA6B5E,UAAU,IAAI,2BAA2B;IAWzC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAQtE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,SAAI,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAExE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAE1F"}
|
|
@@ -11,13 +11,13 @@ export type SerializedImageNode = Spread<{
|
|
|
11
11
|
accent?: string;
|
|
12
12
|
}, SerializedLexicalNode>;
|
|
13
13
|
export interface ImageNodePayload {
|
|
14
|
-
|
|
14
|
+
accent?: string;
|
|
15
15
|
altText: string;
|
|
16
|
-
width?: number;
|
|
17
|
-
height?: number;
|
|
18
16
|
caption?: string;
|
|
17
|
+
height?: number;
|
|
18
|
+
src: string;
|
|
19
19
|
thumbhash?: string;
|
|
20
|
-
|
|
20
|
+
width?: number;
|
|
21
21
|
}
|
|
22
22
|
export declare class ImageNode extends DecoratorNode<ReactElement> {
|
|
23
23
|
__src: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageNode.d.ts","sourceRoot":"","sources":["../../src/nodes/ImageNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,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C,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,SAAS,CAEpF"}
|
|
@@ -11,13 +11,13 @@ export type SerializedLinkCardNode = Spread<{
|
|
|
11
11
|
image?: string;
|
|
12
12
|
}, SerializedLexicalNode>;
|
|
13
13
|
export interface LinkCardNodePayload {
|
|
14
|
-
url: string;
|
|
15
|
-
source?: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
title?: string;
|
|
18
14
|
description?: string;
|
|
19
15
|
favicon?: string;
|
|
16
|
+
id?: string;
|
|
20
17
|
image?: string;
|
|
18
|
+
source?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
url: string;
|
|
21
21
|
}
|
|
22
22
|
export declare class LinkCardNode extends DecoratorNode<ReactElement> {
|
|
23
23
|
__url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkCardNode.d.ts","sourceRoot":"","sources":["../../src/nodes/LinkCardNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"LinkCardNode.d.ts","sourceRoot":"","sources":["../../src/nodes/LinkCardNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAgB,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,sBAAsB,GAAG,MAAM,CACzC;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CA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S,IAAI,MAAM,GAAG,SAAS;IAI/B,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK3C,KAAK,IAAI,MAAM,GAAG,SAAS;IAI3B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAKnC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAWtE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CAE9E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,YAAY,CAE1F"}
|
|
@@ -8,10 +8,10 @@ export type SerializedVideoNode = Spread<{
|
|
|
8
8
|
height?: number;
|
|
9
9
|
}, SerializedLexicalNode>;
|
|
10
10
|
export interface VideoNodePayload {
|
|
11
|
-
|
|
11
|
+
height?: number;
|
|
12
12
|
poster?: string;
|
|
13
|
+
src: string;
|
|
13
14
|
width?: number;
|
|
14
|
-
height?: number;
|
|
15
15
|
}
|
|
16
16
|
export declare class VideoNode extends DecoratorNode<ReactElement> {
|
|
17
17
|
__src: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoNode.d.ts","sourceRoot":"","sources":["../../src/nodes/VideoNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"VideoNode.d.ts","sourceRoot":"","sources":["../../src/nodes/VideoNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAgB,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,E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gB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAErE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,SAAS,CAEpF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { allNodes, builtinNodes, customNodes } from './config';
|
|
2
|
+
export { allEditNodes, customEditNodes } from './config-edit';
|
|
3
|
+
export { getResolvedEditNodes, setResolvedEditNodes } from './node-registry';
|
|
4
|
+
export { NESTED_EDITOR_NODES } from './nodes/shared';
|
|
5
|
+
export type { ImageNodePayload, SerializedImageNode } from './nodes/ImageNode';
|
|
6
|
+
export { $createImageNode, $isImageNode, ImageNode } from './nodes/ImageNode';
|
|
7
|
+
export type { SerializedKaTeXBlockNode } from './nodes/KaTeXBlockNode';
|
|
8
|
+
export { $isKaTeXBlockNode, KaTeXBlockNode } from './nodes/KaTeXBlockNode';
|
|
9
|
+
export type { SerializedKaTeXInlineNode } from './nodes/KaTeXInlineNode';
|
|
10
|
+
export { $isKaTeXInlineNode, KaTeXInlineNode } from './nodes/KaTeXInlineNode';
|
|
11
|
+
export type { LinkCardNodePayload, SerializedLinkCardNode } from './nodes/LinkCardNode';
|
|
12
|
+
export { $createLinkCardNode, $isLinkCardNode, LinkCardNode } from './nodes/LinkCardNode';
|
|
13
|
+
export type { SerializedMentionNode } from './nodes/MentionNode';
|
|
14
|
+
export { $createMentionNode, $isMentionNode, MentionNode } from './nodes/MentionNode';
|
|
15
|
+
export type { SerializedMermaidNode } from './nodes/MermaidNode';
|
|
16
|
+
export { $createMermaidNode, $isMermaidNode, MermaidNode } from './nodes/MermaidNode';
|
|
17
|
+
export type { SerializedRubyNode } from './nodes/RubyNode';
|
|
18
|
+
export { $createRubyNode, $isRubyNode, RubyNode } from './nodes/RubyNode';
|
|
19
|
+
export type { SerializedGridContainerNode } from './nodes/GridContainerNode';
|
|
20
|
+
export { $createGridContainerNode, $isGridContainerNode, GridContainerNode, } from './nodes/GridContainerNode';
|
|
21
|
+
export { FootnoteSectionEditNode } from './nodes/FootnoteSectionEditNode';
|
|
22
|
+
export type { SerializedFootnoteSectionNode } from './nodes/FootnoteSectionNode';
|
|
23
|
+
export { $createFootnoteSectionNode, $isFootnoteSectionNode, FootnoteSectionNode, } from './nodes/FootnoteSectionNode';
|
|
24
|
+
export type { AlertType } from './nodes/AlertQuoteNode';
|
|
25
|
+
export { ALERT_LABELS, ALERT_TYPES } from './nodes/AlertQuoteNode';
|
|
26
|
+
export type { BannerType } from './nodes/BannerNode';
|
|
27
|
+
export { BANNER_LABELS, BANNER_TYPES } from './nodes/BannerNode';
|
|
28
|
+
//# sourceMappingURL=nodes-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes-entry.d.ts","sourceRoot":"","sources":["../src/nodes-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9E,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC3E,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG9E,YAAY,EAAE,mBAAmB,EA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";
|
|
3
|
+
import { N } from "./AlertQuoteEditNode-AgVEMFEi.js";
|
|
4
|
+
import { $ as $2, c as c3, d as d2, f as f2, g as g3, h as h2, i as i2, j as j2, A, k as k2, I, K, l, M, m } from "./theme-CRza9nbF.js";
|
|
5
|
+
export {
|
|
6
|
+
$ as $createFootnoteSectionNode,
|
|
7
|
+
d as $createGridContainerNode,
|
|
8
|
+
$2 as $createImageNode,
|
|
9
|
+
e as $createLinkCardNode,
|
|
10
|
+
c3 as $createMentionNode,
|
|
11
|
+
d2 as $createMermaidNode,
|
|
12
|
+
f as $createRubyNode,
|
|
13
|
+
g as $isFootnoteSectionNode,
|
|
14
|
+
h as $isGridContainerNode,
|
|
15
|
+
f2 as $isImageNode,
|
|
16
|
+
g3 as $isKaTeXBlockNode,
|
|
17
|
+
h2 as $isKaTeXInlineNode,
|
|
18
|
+
i as $isLinkCardNode,
|
|
19
|
+
i2 as $isMentionNode,
|
|
20
|
+
j2 as $isMermaidNode,
|
|
21
|
+
j as $isRubyNode,
|
|
22
|
+
A as ALERT_LABELS,
|
|
23
|
+
k2 as ALERT_TYPES,
|
|
24
|
+
B as BANNER_LABELS,
|
|
25
|
+
k as BANNER_TYPES,
|
|
26
|
+
F2 as FootnoteSectionEditNode,
|
|
27
|
+
F as FootnoteSectionNode,
|
|
28
|
+
G as GridContainerNode,
|
|
29
|
+
I as ImageNode,
|
|
30
|
+
K as KaTeXBlockNode,
|
|
31
|
+
l as KaTeXInlineNode,
|
|
32
|
+
L as LinkCardNode,
|
|
33
|
+
M as MentionNode,
|
|
34
|
+
m as MermaidNode,
|
|
35
|
+
N as NESTED_EDITOR_NODES,
|
|
36
|
+
R as RubyNode,
|
|
37
|
+
a2 as allEditNodes,
|
|
38
|
+
a as allNodes,
|
|
39
|
+
b as builtinNodes,
|
|
40
|
+
c2 as customEditNodes,
|
|
41
|
+
c as customNodes,
|
|
42
|
+
g2 as getResolvedEditNodes,
|
|
43
|
+
s as setResolvedEditNodes
|
|
44
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoLinkPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/AutoLinkPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutoLinkPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/AutoLinkPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,WAAW,EAAoB,MAAM,eAAe,CAAC;AAahG,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,QAY/D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface ImageUploadResult {
|
|
2
|
-
src: string;
|
|
3
2
|
altText?: string;
|
|
4
|
-
width?: number;
|
|
5
3
|
height?: number;
|
|
4
|
+
src: string;
|
|
6
5
|
thumbhash?: string;
|
|
6
|
+
width?: number;
|
|
7
7
|
}
|
|
8
8
|
export type ImageUploadFn = (file: File) => Promise<ImageUploadResult>;
|
|
9
9
|
export declare function defaultImageUpload(file: File): Promise<ImageUploadResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploadPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/ImageUploadPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageUploadPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/ImageUploadPlugin.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;AA0CvE,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAK/E;AAED,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,sBAAsB,+BAobrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownPastePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/MarkdownPastePlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownPastePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/MarkdownPastePlugin.tsx"],"names":[],"mappings":"AA6HA,wBAAgB,mBAAmB,SAsDlC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SerializedEditorState } from 'lexical';
|
|
2
2
|
interface OnChangePluginProps {
|
|
3
|
-
onChange?: (state: SerializedEditorState) => void;
|
|
4
3
|
debounceMs?: number;
|
|
4
|
+
onChange?: (state: SerializedEditorState) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare function OnChangePlugin({ onChange, debounceMs }: OnChangePluginProps): null;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnChangePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/OnChangePlugin.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"OnChangePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/OnChangePlugin.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,UAAU,mBAAmB;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,mBAAmB,QA4B3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upload-command.d.ts","sourceRoot":"","sources":["../../src/plugins/image-upload-command.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,wCAE5C,
|
|
1
|
+
{"version":3,"file":"image-upload-command.d.ts","sourceRoot":"","sources":["../../src/plugins/image-upload-command.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,wCAE5C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const draggingWrapperClass = "rich-image-upload-dragging";
|
|
2
2
|
export declare const toastStack: string;
|
|
3
3
|
export declare const toast: string;
|
|
4
|
-
export declare const toastVariant: Record<"
|
|
4
|
+
export declare const toastVariant: Record<"info" | "success" | "error", string>;
|
|
5
5
|
export declare const spinner: string;
|
|
6
6
|
export declare const dialogPopup: string;
|
|
7
7
|
export declare const dialogHeader: string;
|
|
@@ -18,11 +18,8 @@ export declare const uploadBusyWrap: string;
|
|
|
18
18
|
export declare const uploadProgress: string;
|
|
19
19
|
export declare const urlInputRow: string;
|
|
20
20
|
export declare const textInput: string;
|
|
21
|
-
export declare const actionButton: string;
|
|
22
|
-
export declare const secondaryButton: string;
|
|
23
21
|
export declare const urlPreview: string;
|
|
24
22
|
export declare const urlPreviewImage: string;
|
|
25
23
|
export declare const helperText: string;
|
|
26
24
|
export declare const dialogFooter: string;
|
|
27
|
-
export declare const dialogFooterActions: string;
|
|
28
25
|
//# sourceMappingURL=image-upload.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upload.css.d.ts","sourceRoot":"","sources":["../../src/plugins/image-upload.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-upload.css.d.ts","sourceRoot":"","sources":["../../src/plugins/image-upload.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,+BAA+B,CAAC;AAkBjE,eAAO,MAAM,UAAU,QAUrB,CAAC;AAEH,eAAO,MAAM,KAAK,QAahB,CAAC;AAEH,eAAO,MAAM,YAAY,8CASvB,CAAC;AAQH,eAAO,MAAM,OAAO,QAOlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAAY,CAAC;AASrC,eAAO,MAAM,YAAY,QAGvB,CAAC;AAEH,eAAO,MAAM,WAAW,QAItB,CAAC;AAEH,eAAO,MAAM,UAAU,QAKrB,CAAC;AAEH,eAAO,MAAM,OAAO,QAIlB,CAAC;AAEH,eAAO,MAAM,cAAc,QAoBzB,CAAC;AAEH,eAAO,MAAM,mBAAmB,4CAY9B,CAAC;AAEH,eAAO,MAAM,cAAc,QAQzB,CAAC;AAEH,eAAO,MAAM,eAAe,QAI1B,CAAC;AAEH,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC;AAEH,eAAO,MAAM,cAAc,QAKzB,CAAC;AAEH,eAAO,MAAM,cAAc,QAMzB,CAAC;AAEH,eAAO,MAAM,WAAW,QAItB,CAAC;AAEH,eAAO,MAAM,SAAS,QAmBpB,CAAC;AAEH,eAAO,MAAM,UAAU,QAKrB,CAAC;AAEH,eAAO,MAAM,eAAe,QAK1B,CAAC;AAEH,eAAO,MAAM,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,YAAY,QAQvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { CorePlugins } from './components/CorePlugins';
|
|
2
|
+
export { ImageUploadProvider, useImageUpload } from './context/ImageUploadContext';
|
|
3
|
+
export { AlertPlugin } from './plugins/AlertPlugin';
|
|
4
|
+
export { AutoFocusPlugin } from './plugins/AutoFocusPlugin';
|
|
5
|
+
export { AutoLinkPlugin } from './plugins/AutoLinkPlugin';
|
|
6
|
+
export { BlockExitPlugin } from './plugins/BlockExitPlugin';
|
|
7
|
+
export { BlockIdPlugin } from './plugins/BlockIdPlugin';
|
|
8
|
+
export { blockIdState } from './plugins/BlockIdPlugin';
|
|
9
|
+
export { EditorRefPlugin } from './plugins/EditorRefPlugin';
|
|
10
|
+
export { FootnotePlugin } from './plugins/FootnotePlugin';
|
|
11
|
+
export { HorizontalRulePlugin } from './plugins/HorizontalRulePlugin';
|
|
12
|
+
export { ImagePlugin } from './plugins/ImagePlugin';
|
|
13
|
+
export { defaultImageUpload, type ImageUploadFn, ImageUploadPlugin, type ImageUploadResult, } from './plugins/ImageUploadPlugin';
|
|
14
|
+
export { KaTeXPlugin } from './plugins/KaTeXPlugin';
|
|
15
|
+
export { LinkFaviconPlugin } from './plugins/LinkFaviconPlugin';
|
|
16
|
+
export { MarkdownPastePlugin } from './plugins/MarkdownPastePlugin';
|
|
17
|
+
export { MarkdownShortcutsPlugin } from './plugins/MarkdownShortcutsPlugin';
|
|
18
|
+
export { MermaidPlugin } from './plugins/MermaidPlugin';
|
|
19
|
+
export { OnChangePlugin } from './plugins/OnChangePlugin';
|
|
20
|
+
export { SubmitShortcutPlugin } from './plugins/SubmitShortcutPlugin';
|
|
21
|
+
export { ALL_TRANSFORMERS } from './transformers';
|
|
22
|
+
//# sourceMappingURL=plugins-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins-entry.d.ts","sourceRoot":"","sources":["../src/plugins-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,KAAK,aAAa,EAClB,iBAAiB,EACjB,KAAK,iBAAiB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { A, a, b, B, c, C, E, F, H, I, d, L, M, e, O, S, f, g, u } from "./SubmitShortcutPlugin-WQpet-vq.js";
|
|
2
|
+
import { A as A2, I as I2, K, M as M2 } from "./MermaidPlugin-CIQbyjXF.js";
|
|
3
|
+
export {
|
|
4
|
+
A as ALL_TRANSFORMERS,
|
|
5
|
+
A2 as AlertPlugin,
|
|
6
|
+
a as AutoFocusPlugin,
|
|
7
|
+
b as AutoLinkPlugin,
|
|
8
|
+
B as BlockExitPlugin,
|
|
9
|
+
c as BlockIdPlugin,
|
|
10
|
+
C as CorePlugins,
|
|
11
|
+
E as EditorRefPlugin,
|
|
12
|
+
F as FootnotePlugin,
|
|
13
|
+
H as HorizontalRulePlugin,
|
|
14
|
+
I2 as ImagePlugin,
|
|
15
|
+
I as ImageUploadPlugin,
|
|
16
|
+
d as ImageUploadProvider,
|
|
17
|
+
K as KaTeXPlugin,
|
|
18
|
+
L as LinkFaviconPlugin,
|
|
19
|
+
M as MarkdownPastePlugin,
|
|
20
|
+
e as MarkdownShortcutsPlugin,
|
|
21
|
+
M2 as MermaidPlugin,
|
|
22
|
+
O as OnChangePlugin,
|
|
23
|
+
S as SubmitShortcutPlugin,
|
|
24
|
+
f as blockIdState,
|
|
25
|
+
g as defaultImageUpload,
|
|
26
|
+
u as useImageUpload
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type { AlertRendererProps } from './components/renderers/AlertRenderer';
|
|
2
|
+
export type { BannerRendererProps } from './components/renderers/BannerRenderer';
|
|
3
|
+
export type { CodeBlockRendererProps } from './components/renderers/CodeBlockRenderer';
|
|
4
|
+
export type { FootnoteRendererProps } from './components/renderers/FootnoteRenderer';
|
|
5
|
+
export { FootnoteRenderer } from './components/renderers/FootnoteRenderer';
|
|
6
|
+
export type { FootnoteSectionRendererProps } from './components/renderers/FootnoteSectionRenderer';
|
|
7
|
+
export type { FootnoteStaticRendererProps } from './components/renderers/FootnoteStaticRenderer';
|
|
8
|
+
export { FootnoteStaticRenderer } from './components/renderers/FootnoteStaticRenderer';
|
|
9
|
+
export type { ImageRendererProps } from './components/renderers/ImageRenderer';
|
|
10
|
+
export type { KaTeXRendererProps } from './components/renderers/KaTeXRenderer';
|
|
11
|
+
export { KaTeXRenderer } from './components/renderers/KaTeXRenderer';
|
|
12
|
+
export type { LinkCardRendererProps } from './components/renderers/LinkCardRenderer';
|
|
13
|
+
export { LinkCardRenderer } from './components/renderers/LinkCardRenderer';
|
|
14
|
+
export type { MentionRendererProps } from './components/renderers/MentionRenderer';
|
|
15
|
+
export type { MermaidRendererProps } from './components/renderers/MermaidRenderer';
|
|
16
|
+
export type { RubyRendererProps } from './components/renderers/RubyRenderer';
|
|
17
|
+
export { RubyRenderer } from './components/renderers/RubyRenderer';
|
|
18
|
+
export type { VideoRendererProps } from './components/renderers/VideoRenderer';
|
|
19
|
+
export type { RendererKey } from './components/RendererWrapper';
|
|
20
|
+
export { createRendererDecoration, RendererWrapper } from './components/RendererWrapper';
|
|
21
|
+
export type { CodeFile, CodeSnippetRendererProps, GalleryImage, GalleryRendererProps, } from './types/renderer-config';
|
|
22
|
+
export { computeImageMeta, decodeThumbHash } from './utils/thumbhash';
|
|
23
|
+
//# sourceMappingURL=renderers-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers-entry.d.ts","sourceRoot":"","sources":["../src/renderers-entry.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACvF,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,YAAY,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,YAAY,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,YAAY,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzF,YAAY,EACV,QAAQ,EACR,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TooltipRoot, TooltipTrigger, TooltipContent } from "@haklex/rich-editor-ui";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
import { u as useFootnoteContent, d as useFootnoteDisplayNumber } from "./KaTeXRenderer-C8jv_5xr.js";
|
|
5
|
+
import { h, K, a, i, c, j } from "./KaTeXRenderer-C8jv_5xr.js";
|
|
6
|
+
import { L } from "./LinkCardRenderer-QmkOlyXb.js";
|
|
7
|
+
import { R } from "./RubyRenderer-DbeobSoH.js";
|
|
8
|
+
function FootnoteRenderer({ identifier }) {
|
|
9
|
+
const content = useFootnoteContent(identifier);
|
|
10
|
+
const displayNumber = useFootnoteDisplayNumber(identifier);
|
|
11
|
+
const referenceId = `footnote-ref-${identifier}`;
|
|
12
|
+
const targetId = `footnote-${identifier}`;
|
|
13
|
+
const handleClick = useCallback(
|
|
14
|
+
(e) => {
|
|
15
|
+
const target = document.getElementById(targetId) || document.getElementById(`fn-${identifier}`);
|
|
16
|
+
if (!target) return;
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
target.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
19
|
+
target.classList.add("rich-footnote-highlight");
|
|
20
|
+
window.setTimeout(() => {
|
|
21
|
+
target.classList.remove("rich-footnote-highlight");
|
|
22
|
+
}, 1200);
|
|
23
|
+
},
|
|
24
|
+
[identifier, targetId]
|
|
25
|
+
);
|
|
26
|
+
const label = displayNumber ?? identifier;
|
|
27
|
+
return /* @__PURE__ */ jsx("span", { className: "rich-footnote-ref-wrapper", children: /* @__PURE__ */ jsxs(TooltipRoot, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
TooltipTrigger,
|
|
30
|
+
{
|
|
31
|
+
render: (props) => /* @__PURE__ */ jsx(
|
|
32
|
+
"a",
|
|
33
|
+
{
|
|
34
|
+
...props,
|
|
35
|
+
"aria-label": content ? `Footnote ${label}: ${content}` : `Footnote ${label}`,
|
|
36
|
+
className: "rich-footnote-ref",
|
|
37
|
+
"data-footnote-ref": identifier,
|
|
38
|
+
href: `#${targetId}`,
|
|
39
|
+
id: referenceId,
|
|
40
|
+
role: "doc-noteref",
|
|
41
|
+
onClick: handleClick,
|
|
42
|
+
children: label
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
content ? /* @__PURE__ */ jsx(TooltipContent, { children: content }) : null
|
|
48
|
+
] }) });
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
FootnoteRenderer,
|
|
52
|
+
h as FootnoteStaticRenderer,
|
|
53
|
+
K as KaTeXRenderer,
|
|
54
|
+
L as LinkCardRenderer,
|
|
55
|
+
a as RendererWrapper,
|
|
56
|
+
R as RubyRenderer,
|
|
57
|
+
i as computeImageMeta,
|
|
58
|
+
c as createRendererDecoration,
|
|
59
|
+
j as decodeThumbHash
|
|
60
|
+
};
|