@haklex/rich-editor 0.58.0 → 0.59.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.
- package/README.md +35 -0
- package/dist/{AlertQuoteEditNode-DQt5pIZ8.js → AlertQuoteEditNode-Ck4v29Wg.js} +9 -20
- package/dist/BlockIdPlugin-Cwv8aV9g.js +106 -0
- package/dist/{ColorSchemeContext-RLg0uDRt.js → ColorSchemeContext-Dc_HebHd.js} +5 -4
- package/dist/ContentEditable.css--lQ6ekTS.js +7 -0
- package/dist/EditorBlockContext-DytAx9Tg.js +9 -0
- package/dist/{ExtraNodesContext-DdU7MZwS.js → ExtraNodesContext-xQ2RNsqH.js} +1 -1
- package/dist/{MermaidPlugin-BpoGXa9D.js → MermaidPlugin-BCoGsdi3.js} +3 -3
- package/dist/NestedEditorPluginsContext-D78UZkmx.js +16 -0
- package/dist/{RubyRenderer-CnTFvt0b.js → RubyRenderer-8HMSMaZz.js} +1 -1
- package/dist/VirtualizationPlugin-C8TJ4HJN.js +178 -0
- package/dist/{SubmitShortcutPlugin-BuRxU6WD.js → VirtualizationPlugin-Crc0cLUx.js} +969 -532
- package/dist/VirtualizedEditor-CIGYcIfr.js +818 -0
- package/dist/command-registry-entry.d.ts +3 -0
- package/dist/command-registry-entry.d.ts.map +1 -0
- package/dist/command-registry-entry.mjs +343 -0
- package/dist/commands/registry.d.ts +24 -0
- package/dist/commands/registry.d.ts.map +1 -0
- package/dist/commands-entry.mjs +2 -2
- package/dist/components/EditorSurfaceHost.d.ts +3 -0
- package/dist/components/EditorSurfaceHost.d.ts.map +1 -0
- package/dist/components/RichEditor.d.ts.map +1 -1
- package/dist/components/RichEditorShell.d.ts +3 -1
- package/dist/components/RichEditorShell.d.ts.map +1 -1
- package/dist/components/VirtualizationFromProps.d.ts +6 -0
- package/dist/components/VirtualizationFromProps.d.ts.map +1 -0
- package/dist/components/decorators/GridEditDecorator.d.ts.map +1 -1
- package/dist/components/renderers/ImageRenderer.d.ts +1 -0
- package/dist/components/renderers/ImageRenderer.d.ts.map +1 -1
- package/dist/context/EditorBlockContext.d.ts +12 -0
- package/dist/context/EditorBlockContext.d.ts.map +1 -0
- package/dist/context/EditorSurfaceContext.d.ts +42 -0
- package/dist/context/EditorSurfaceContext.d.ts.map +1 -0
- package/dist/defineProperty-BYhxpJwd.js +39 -0
- package/dist/{grid.css-CUb_icKZ.js → grid.css-DJWKdYpz.js} +2 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +95 -43
- package/dist/{katex.css-9tq8FN8h.js → katex.css-9crOcnIa.js} +2 -1
- package/dist/{node-registry-CH2oHfO4.js → node-registry-jRE4LqH-.js} +37 -21
- package/dist/nodes/ImageNode.d.ts +7 -1
- package/dist/nodes/ImageNode.d.ts.map +1 -1
- package/dist/nodes/RichQuoteNode.d.ts +4 -1
- package/dist/nodes/RichQuoteNode.d.ts.map +1 -1
- package/dist/nodes-entry.mjs +4 -4
- package/dist/plugins/FileUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/ImageDialog.d.ts +13 -0
- package/dist/plugins/ImageDialog.d.ts.map +1 -0
- package/dist/plugins/ImageDialogReview.d.ts +13 -0
- package/dist/plugins/ImageDialogReview.d.ts.map +1 -0
- package/dist/plugins/ImageDialogSource.d.ts +12 -0
- package/dist/plugins/ImageDialogSource.d.ts.map +1 -0
- package/dist/plugins/ImagePlugin.d.ts.map +1 -1
- package/dist/plugins/ImageUploadPlugin.d.ts +1 -1
- package/dist/plugins/ImageUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/VideoUploadPlugin.d.ts +1 -1
- package/dist/plugins/VideoUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/VirtualizationPlugin.d.ts +2 -0
- package/dist/plugins/VirtualizationPlugin.d.ts.map +1 -0
- package/dist/plugins/image-dialog-model.d.ts +65 -0
- package/dist/plugins/image-dialog-model.d.ts.map +1 -0
- package/dist/plugins/image-dialog.css.d.ts +30 -0
- package/dist/plugins/image-dialog.css.d.ts.map +1 -0
- package/dist/plugins/image-upload-toast.d.ts +2 -0
- package/dist/plugins/image-upload-toast.d.ts.map +1 -0
- package/dist/plugins/image-upload.css.d.ts +0 -23
- package/dist/plugins/image-upload.css.d.ts.map +1 -1
- package/dist/plugins/insertion-cursor.d.ts +20 -0
- package/dist/plugins/insertion-cursor.d.ts.map +1 -0
- package/dist/plugins/present-image-dialog.d.ts +14 -0
- package/dist/plugins/present-image-dialog.d.ts.map +1 -0
- package/dist/plugins-entry.d.ts +5 -0
- package/dist/plugins-entry.d.ts.map +1 -1
- package/dist/plugins-entry.mjs +7 -5
- package/dist/recycler-entry.d.ts +8 -0
- package/dist/recycler-entry.d.ts.map +1 -0
- package/dist/recycler-entry.mjs +3 -0
- package/dist/renderers-entry.mjs +4 -4
- package/dist/rich-editor.css +1 -1
- package/dist/static-entry.d.ts +1 -0
- package/dist/static-entry.d.ts.map +1 -1
- package/dist/static-entry.mjs +10 -9
- package/dist/styles/grid.css.d.ts.map +1 -1
- package/dist/styles/shared.css.d.ts.map +1 -1
- package/dist/styles-entry.mjs +3 -3
- package/dist/{theme-Blq1EG_t.js → theme-DH4xzxU-.js} +63 -48
- package/dist/{thumbhash-DHHqtr0c.js → thumbhash-GjK8OYAb.js} +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/{utils-CdxPji5z.js → utils-E6qVk-NR.js} +1 -0
- package/dist/viewport-BvO92tse.js +210 -0
- package/dist/virtualization/VirtualizationPlugin.d.ts +5 -0
- package/dist/virtualization/VirtualizationPlugin.d.ts.map +1 -0
- package/dist/virtualization/VirtualizedEditor.d.ts +6 -0
- package/dist/virtualization/VirtualizedEditor.d.ts.map +1 -0
- package/dist/virtualization/controller.d.ts +73 -0
- package/dist/virtualization/controller.d.ts.map +1 -0
- package/dist/virtualization/document.d.ts +26 -0
- package/dist/virtualization/document.d.ts.map +1 -0
- package/dist/virtualization/layout.d.ts +42 -0
- package/dist/virtualization/layout.d.ts.map +1 -0
- package/dist/virtualization/preserve.d.ts +21 -0
- package/dist/virtualization/preserve.d.ts.map +1 -0
- package/dist/virtualization/style.css.d.ts +4 -0
- package/dist/virtualization/style.css.d.ts.map +1 -0
- package/dist/virtualization/sync.d.ts +4 -0
- package/dist/virtualization/sync.d.ts.map +1 -0
- package/dist/virtualization/types.d.ts +13 -0
- package/dist/virtualization/types.d.ts.map +1 -0
- package/dist/virtualization/viewport.d.ts +3 -0
- package/dist/virtualization/viewport.d.ts.map +1 -0
- package/dist/virtualization-entry.d.ts +3 -0
- package/dist/virtualization-entry.d.ts.map +1 -0
- package/dist/virtualization-entry.mjs +1 -0
- package/package.json +17 -5
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const popup: string;
|
|
2
|
+
export declare const root: string;
|
|
3
|
+
export declare const body: string;
|
|
4
|
+
export declare const footer: string;
|
|
5
|
+
export declare const hint: string;
|
|
6
|
+
export declare const footerHint: string;
|
|
7
|
+
export declare const errorHint: string;
|
|
8
|
+
export declare const hiddenInput: string;
|
|
9
|
+
export declare const dropzone: string;
|
|
10
|
+
export declare const dropIcon: string;
|
|
11
|
+
export declare const dropTitle: string;
|
|
12
|
+
export declare const pasteHint: string;
|
|
13
|
+
export declare const divider: string;
|
|
14
|
+
export declare const urlRow: string;
|
|
15
|
+
export declare const urlInput: string;
|
|
16
|
+
export declare const urlThumb: string;
|
|
17
|
+
export declare const rows: string;
|
|
18
|
+
export declare const row: string;
|
|
19
|
+
export declare const rowFailed: string;
|
|
20
|
+
export declare const thumb: string;
|
|
21
|
+
export declare const rowBody: string;
|
|
22
|
+
export declare const rowTitle: string;
|
|
23
|
+
export declare const fileName: string;
|
|
24
|
+
export declare const editedTag: string;
|
|
25
|
+
export declare const meta: string;
|
|
26
|
+
export declare const locationRow: string;
|
|
27
|
+
export declare const locationIcon: string;
|
|
28
|
+
export declare const errorText: string;
|
|
29
|
+
export declare const addMore: string;
|
|
30
|
+
//# s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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-upload-toast.d.ts","sourceRoot":"","sources":["../../src/plugins/image-upload-toast.ts"],"names":[],"mappings":"AAQA,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,IAAI,EAAE,EACb,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAsBf"}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
export declare const draggingWrapperClass = "rich-image-upload-dragging";
|
|
2
|
-
export declare const toastStack: string;
|
|
3
|
-
export declare const toast: string;
|
|
4
|
-
export declare const toastVariant: Record<"error" | "info" | "success", string>;
|
|
5
|
-
export declare const spinner: string;
|
|
6
|
-
export declare const dialogPopup: string;
|
|
7
|
-
export declare const dialogHeader: string;
|
|
8
|
-
export declare const dialogTitle: string;
|
|
9
|
-
export declare const dialogBody: string;
|
|
10
|
-
export declare const tabWrap: string;
|
|
11
|
-
export declare const uploadDropzone: string;
|
|
12
|
-
export declare const uploadDropzoneState: Record<"active" | "idle" | "busy", string>;
|
|
13
|
-
export declare const uploadDropIcon: string;
|
|
14
|
-
export declare const uploadDropTitle: string;
|
|
15
|
-
export declare const uploadDropDesc: string;
|
|
16
|
-
export declare const hiddenInput: string;
|
|
17
|
-
export declare const uploadBusyWrap: string;
|
|
18
|
-
export declare const uploadProgress: string;
|
|
19
|
-
export declare const urlInputRow: string;
|
|
20
|
-
export declare const textInput: string;
|
|
21
|
-
export declare const urlPreview: string;
|
|
22
|
-
export declare const urlPreviewImage: string;
|
|
23
|
-
export declare const helperText: string;
|
|
24
|
-
export declare const dialogFooter: string;
|
|
25
2
|
//# 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":"AAGA,eAAO,MAAM,oBAAoB,+BAA+B,CAAC
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseSelection, LexicalEditor, LexicalNode, NodeKey } from 'lexical';
|
|
2
|
+
type InsertionPoint = {
|
|
3
|
+
kind: 'after';
|
|
4
|
+
key: NodeKey;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'point';
|
|
7
|
+
key: NodeKey;
|
|
8
|
+
offset: number;
|
|
9
|
+
type: 'element' | 'text';
|
|
10
|
+
};
|
|
11
|
+
export interface InsertionCursor {
|
|
12
|
+
callerMoved: boolean;
|
|
13
|
+
expected: BaseSelection | null;
|
|
14
|
+
point: InsertionPoint | null;
|
|
15
|
+
}
|
|
16
|
+
export declare function $createInsertionCursor(): InsertionCursor;
|
|
17
|
+
export declare function readInsertionCursor(active: LexicalEditor, target: LexicalEditor): InsertionCursor;
|
|
18
|
+
export declare function $insertAtCursor(cursor: InsertionCursor, nodes: LexicalNode[]): void;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=insertion-cursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertion-cursor.d.ts","sourceRoot":"","sources":["../../src/plugins/insertion-cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EAGb,MAAM,SAAS,CAAC;AAEjB,KAAK,cAAc,GACf;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B;AAcD,wBAAgB,sBAAsB,IAAI,eAAe,CAOxD;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,GAAG,eAAe,CAIjG;AA4CD,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,CAkBnF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ImageDialogEntry, ImageDialogMode, ImageEditorCapability } from './image-dialog-model';
|
|
2
|
+
export type { GpsInfo, ImageDialogEntry, ImageDialogMode, ImageEditorCapability, ImageEditPrivacy, } from './image-dialog-model';
|
|
3
|
+
export { getImageEditor, registerImageEditor } from './image-dialog-model';
|
|
4
|
+
export { ImageDialog, type ImageDialogProps } from './ImageDialog';
|
|
5
|
+
export interface ImageDialogOptions {
|
|
6
|
+
allowUrl?: boolean;
|
|
7
|
+
editor?: ImageEditorCapability | null;
|
|
8
|
+
files?: File[];
|
|
9
|
+
mode?: ImageDialogMode;
|
|
10
|
+
portalClassName?: string;
|
|
11
|
+
theme?: 'light' | 'dark';
|
|
12
|
+
}
|
|
13
|
+
export declare function presentImageDialog({ allowUrl, editor, files, mode, portalClassName, theme, }?: ImageDialogOptions): Promise<ImageDialogEntry[] | null>;
|
|
14
|
+
//# sourceMappingURL=present-image-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"present-image-dialog.d.ts","sourceRoot":"","sources":["../../src/plugins/present-image-dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAI9B,YAAY,EACV,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC1B;AA2BD,wBAAgB,kBAAkB,CAAC,EACjC,QAAe,EACf,MAAa,EACb,KAAK,EACL,IAAe,EACf,eAAe,EACf,KAAK,GACN,GAAE,kBAAuB,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC,CAwC9D"}
|
package/dist/plugins-entry.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { CorePlugins } from './components/CorePlugins';
|
|
2
|
+
export type { EditorSurfaceProps } from './context/EditorSurfaceContext';
|
|
3
|
+
export { ActiveEditorScope, EditorSurfacePlugin, EditorSurfacePlugins, useActiveEditor, } from './context/EditorSurfaceContext';
|
|
2
4
|
export { FileUploadProvider, useFileUpload } from './context/FileUploadContext';
|
|
3
5
|
export { type ImagePreprocessContextValue, type ImagePreprocessFn, ImagePreprocessProvider, type ImagePreprocessSource, useImagePreprocess, } from './context/ImagePreprocessContext';
|
|
4
6
|
export { ImageUploadProvider, useImageUpload } from './context/ImageUploadContext';
|
|
@@ -26,9 +28,12 @@ export { MarkdownShortcutsPlugin } from './plugins/MarkdownShortcutsPlugin';
|
|
|
26
28
|
export { MermaidPlugin } from './plugins/MermaidPlugin';
|
|
27
29
|
export { OnChangePlugin } from './plugins/OnChangePlugin';
|
|
28
30
|
export { PasteLinkPlugin } from './plugins/PasteLinkPlugin';
|
|
31
|
+
export { getImageEditor, type GpsInfo, ImageDialog, type ImageDialogEntry, type ImageDialogMode, type ImageDialogOptions, type ImageDialogProps, type ImageEditorCapability, type ImageEditPrivacy, presentImageDialog, registerImageEditor, } from './plugins/present-image-dialog';
|
|
29
32
|
export { SubmitShortcutPlugin } from './plugins/SubmitShortcutPlugin';
|
|
30
33
|
export { TextSelectionPlugin } from './plugins/TextSelectionPlugin';
|
|
31
34
|
export { type VideoUploadFn, VideoUploadPlugin, type VideoUploadResult, } from './plugins/VideoUploadPlugin';
|
|
35
|
+
export { VirtualizationPlugin } from './plugins/VirtualizationPlugin';
|
|
32
36
|
export { ALL_TRANSFORMERS } from './transformers';
|
|
33
37
|
export { resolvePreprocessTargets } from './utils/image-preprocess';
|
|
38
|
+
export type { EditorVirtualization, EditorVirtualizationOptions } from './virtualization/types';
|
|
34
39
|
//# sourceMappingURL=plugins-entry.d.ts.map
|
|
@@ -1 +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,kBAAkB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CA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AmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACL,KAAK,aAAa,EAClB,iBAAiB,EACjB,KAAK,iBAAiB,GACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/plugins-entry.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import { c as PasteLinkPlugin } from "./AlertQuoteEditNode-
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { $ as BlockExitPlugin, A as ImageDialog, B as useImageUpload, D as ImageUploadPlugin, E as LinkFaviconPlugin, F as setFileUploadEntry, G as CorePlugins, H as useImagePreprocess, I as useFileUploadEntry, J as ALL_TRANSFORMERS, K as MarkdownShortcutsPlugin, L as VideoUploadProvider, M as registerImageEditor, N as resolvePreprocessTargets, O as defaultImageUpload, P as FileUploadPlugin, Q as registerClickBelowCommand, R as useVideoUpload, U as FileUploadProvider, V as ImagePreprocessProvider, W as useFileUpload, X as HorizontalRulePlugin, Y as InlineDndPlugin, Z as ClickBelowPlugin, a as EditorRefPlugin, et as AutoLinkPlugin, i as FootnotePlugin, j as getImageEditor, k as presentImageDialog, n as SubmitShortcutPlugin, o as VideoUploadPlugin, q as MarkdownPastePlugin, r as OnChangePlugin, s as TextSelectionPlugin, t as AutoFocusPlugin, z as ImageUploadProvider } from "./VirtualizationPlugin-Crc0cLUx.js";
|
|
2
|
+
import { $ as markInlineDraggable, Z as INLINE_DRAG_ATTR } from "./theme-DH4xzxU-.js";
|
|
3
|
+
import { c as PasteLinkPlugin } from "./AlertQuoteEditNode-Ck4v29Wg.js";
|
|
4
|
+
import { i as EditorSurfacePlugins, n as ActiveEditorScope, o as useActiveEditor, r as EditorSurfacePlugin, t as VirtualizationPlugin } from "./VirtualizationPlugin-C8TJ4HJN.js";
|
|
5
|
+
import { a as KaTeXPlugin, c as AlertPlugin, n as MermaidPlugin, s as ImagePlugin } from "./MermaidPlugin-BCoGsdi3.js";
|
|
6
|
+
import { n as blockIdState, t as BlockIdPlugin } from "./BlockIdPlugin-Cwv8aV9g.js";
|
|
7
|
+
export { ALL_TRANSFORMERS, ActiveEditorScope, AlertPlugin, AutoFocusPlugin, AutoLinkPlugin, BlockExitPlugin, BlockIdPlugin, ClickBelowPlugin, CorePlugins, EditorRefPlugin, EditorSurfacePlugin, EditorSurfacePlugins, FileUploadPlugin, FileUploadProvider, FootnotePlugin, HorizontalRulePlugin, INLINE_DRAG_ATTR, ImageDialog, ImagePlugin, ImagePreprocessProvider, ImageUploadPlugin, ImageUploadProvider, InlineDndPlugin, KaTeXPlugin, LinkFaviconPlugin, MarkdownPastePlugin, MarkdownShortcutsPlugin, MermaidPlugin, OnChangePlugin, PasteLinkPlugin, SubmitShortcutPlugin, TextSelectionPlugin, VideoUploadPlugin, VideoUploadProvider, VirtualizationPlugin, blockIdState, defaultImageUpload, getImageEditor, markInlineDraggable, presentImageDialog, registerClickBelowCommand, registerImageEditor, resolvePreprocessTargets, setFileUploadEntry, useActiveEditor, useFileUpload, useFileUploadEntry, useImagePreprocess, useImageUpload, useVideoUpload };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { EditorBlockContext } from './context/EditorBlockContext';
|
|
2
|
+
export type { SerializedBlock } from './virtualization/document';
|
|
3
|
+
export { type BlockMetrics, collapsedMargin, estimateHeight, HeightIndex, occupiedHeight, type Slot, TypePool, } from './virtualization/layout';
|
|
4
|
+
export { PreserveNodeManager } from './virtualization/preserve';
|
|
5
|
+
export { canvas as recyclerCanvas, editable as recyclerContent, slot as recyclerSlot, } from './virtualization/style.css';
|
|
6
|
+
export type { EditorVirtualizationOptions as RecyclerOptions } from './virtualization/types';
|
|
7
|
+
export { resolveScrollContainer } from './virtualization/viewport';
|
|
8
|
+
//# sourceMappingURL=recycler-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recycler-entry.d.ts","sourceRoot":"","sources":["../src/recycler-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,KAAK,IAAI,EACT,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,MAAM,IAAI,cAAc,EACxB,QAAQ,IAAI,eAAe,EAC3B,IAAI,IAAI,YAAY,GACrB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,2BAA2B,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { t as EditorBlockContext } from "./EditorBlockContext-DytAx9Tg.js";
|
|
2
|
+
import { a as PreserveNodeManager, c as collapsedMargin, i as slot, l as estimateHeight, n as canvas, o as HeightIndex, r as editable, s as TypePool, t as resolveScrollContainer, u as occupiedHeight } from "./viewport-BvO92tse.js";
|
|
3
|
+
export { EditorBlockContext, HeightIndex, PreserveNodeManager, TypePool, collapsedMargin, estimateHeight, occupiedHeight, canvas as recyclerCanvas, editable as recyclerContent, slot as recyclerSlot, resolveScrollContainer };
|
package/dist/renderers-entry.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
1
|
+
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, c as RendererWrapper, g as CODE_BLOCK_NODE_KEY, h as BANNER_NODE_KEY, l as createRendererDecoration, m as ALERT_NODE_KEY, n as decodeThumbHash, r as FootnoteStaticRenderer, s as useFootnoteDisplayNumber, t as computeImageMeta, v as FOOTNOTE_NODE_KEY, w as MERMAID_NODE_KEY, x as KATEX_NODE_KEY, y as FOOTNOTE_SECTION_NODE_KEY } from "./thumbhash-GjK8OYAb.js";
|
|
2
|
+
import { c as semanticClassNames, l as sharedStyles, t as clsx } from "./utils-E6qVk-NR.js";
|
|
3
3
|
import { a as formatFileSize, i as fileMetaText, n as FileRenderer, r as fileExtension, t as LinkCardRenderer } from "./LinkCardRenderer-BT8P5aJC.js";
|
|
4
|
-
import { n as katexStyles, t as katexClassNames } from "./katex.css-
|
|
5
|
-
import { t as RubyRenderer } from "./RubyRenderer-
|
|
4
|
+
import { n as katexStyles, t as katexClassNames } from "./katex.css-9crOcnIa.js";
|
|
5
|
+
import { t as RubyRenderer } from "./RubyRenderer-8HMSMaZz.js";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { TooltipContent, TooltipRoot, TooltipTrigger } from "@haklex/rich-editor-ui";
|