@fileverse-dev/ddoc 3.0.65-export-1 → 3.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/dist/index.d.ts +0 -3
- package/dist/index.es.js +9423 -9636
- package/dist/package/components/export-modal.d.ts +5 -4
- package/dist/package/hooks/use-ddoc-export.d.ts +1 -6
- package/dist/package/hooks/use-headless-editor.d.ts +2 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/package/hooks/use-export-headless-editor-content.d.ts +0 -31
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
interface ExportFormatOption {
|
|
2
2
|
id: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
interface ExportTabOption {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
interface ExportAsModalProps {
|
|
10
10
|
open: boolean;
|
|
11
11
|
onOpenChange: (open: boolean) => void;
|
|
12
12
|
onExport?: (data: {
|
|
@@ -18,4 +18,5 @@ export interface DdocExportModalProps {
|
|
|
18
18
|
initialFormat?: string;
|
|
19
19
|
initialTab?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const ExportAsModal: ({ open, onOpenChange, onExport, formatOptions, tabOptions, initialFormat, initialTab, }: ExportAsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -6,7 +6,7 @@ import * as Y from 'yjs';
|
|
|
6
6
|
interface UseDdocExportArgs {
|
|
7
7
|
editor: Editor | null;
|
|
8
8
|
tabs: Tab[];
|
|
9
|
-
ydoc: Y.Doc
|
|
9
|
+
ydoc: Y.Doc;
|
|
10
10
|
exportOptions: (IEditorToolElement | null)[];
|
|
11
11
|
}
|
|
12
12
|
declare const useDdocExport: ({ editor, tabs, ydoc, exportOptions, }: UseDdocExportArgs) => {
|
|
@@ -20,10 +20,5 @@ declare const useDdocExport: ({ editor, tabs, ydoc, exportOptions, }: UseDdocExp
|
|
|
20
20
|
tab: string;
|
|
21
21
|
name?: string;
|
|
22
22
|
}) => void;
|
|
23
|
-
handleExportAsync: ({ format, tab, name, }: {
|
|
24
|
-
format: string;
|
|
25
|
-
tab: string;
|
|
26
|
-
name?: string;
|
|
27
|
-
}) => Promise<void>;
|
|
28
23
|
};
|
|
29
24
|
export { useDdocExport };
|
|
@@ -3,10 +3,9 @@ import { handleMarkdownContent } from '../extensions/mardown-paste-handler';
|
|
|
3
3
|
import { IpfsImageUploadResponse } from '../types';
|
|
4
4
|
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
|
-
export
|
|
6
|
+
export declare const useHeadlessEditor: (props?: {
|
|
7
7
|
optionalExtensions?: string[];
|
|
8
|
-
}
|
|
9
|
-
export declare const useHeadlessEditor: (props?: UseHeadlessEditorProps) => {
|
|
8
|
+
}) => {
|
|
10
9
|
setContent: (initialContent: string | string[] | JSONContent, editor: Editor, ydoc: Y.Doc) => void;
|
|
11
10
|
getEditor: () => {
|
|
12
11
|
editor: Editor;
|