cvnert-editor 0.1.2 → 0.1.4
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/dist/components/tiptap-node/code-block-node/code-block-node-extension.d.ts +2 -0
- package/dist/components/tiptap-node/code-block-node/code-block-node-view.d.ts +2 -0
- package/dist/components/tiptap-node/code-block-node/diagram-render.d.ts +7 -0
- package/dist/components/tiptap-templates/omnibox/omnibox-editor.d.ts +1 -1
- package/dist/cvnert-editor.css +1 -1
- package/dist/cvnert-editor.js +2453 -2285
- package/dist/cvnert-editor.umd.cjs +6 -3
- package/dist/types.d.ts +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EChartsOption } from "echarts";
|
|
2
|
+
export type DiagramRendererType = "echarts" | "mermaid";
|
|
3
|
+
export declare function isMermaidDiagramLanguage(language: string): boolean;
|
|
4
|
+
export declare function getDiagramRendererType(language: string): DiagramRendererType | null;
|
|
5
|
+
export declare function normalizeDiagramCode(code: string): string;
|
|
6
|
+
export declare function parseEchartsOption(code: string): EChartsOption;
|
|
7
|
+
export declare function getDisplayEchartsOption(option: EChartsOption): EChartsOption;
|
|
@@ -25,4 +25,4 @@ export declare function EditorProvider(props: EditorProviderProps): import("reac
|
|
|
25
25
|
/**
|
|
26
26
|
* Full local editor with all necessary providers.
|
|
27
27
|
*/
|
|
28
|
-
export declare function OmniboxEditor({ editable, placeholder, content, variant, showHeader, showToc, onUpdate, imageUpload, imageUploadMaxSize, imageUploadLimit, onImageUploadError, onImageUploadSuccess, }: OmniboxEditorProps): import("react").JSX.Element;
|
|
28
|
+
export declare function OmniboxEditor({ editable, placeholder, content, contentWidth, variant, showHeader, showToc, onUpdate, imageUpload, imageUploadMaxSize, imageUploadLimit, onImageUploadError, onImageUploadSuccess, }: OmniboxEditorProps): import("react").JSX.Element;
|