@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.
@@ -1,12 +1,12 @@
1
- export interface ExportFormatOption {
1
+ interface ExportFormatOption {
2
2
  id: string;
3
3
  label: string;
4
4
  }
5
- export interface ExportTabOption {
5
+ interface ExportTabOption {
6
6
  id: string;
7
7
  label: string;
8
8
  }
9
- export interface DdocExportModalProps {
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 DdocExportModal: ({ open, onOpenChange, onExport, formatOptions, tabOptions, initialFormat, initialTab, }: DdocExportModalProps) => import("react/jsx-runtime").JSX.Element;
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 | null;
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 interface UseHeadlessEditorProps {
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;