@fileverse-dev/ddoc 3.0.36-patch-5 → 3.0.36

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CUzmdd48.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CXybPXnL.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { Editor } from '@tiptap/react';
3
3
  import { IpfsImageFetchPayload, IpfsImageUploadResponse } from '../types';
4
4
 
5
- declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, onDocxImport, isLoading, ipfsImageFetchFn, fetchV1ImageFn, }: {
5
+ declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, onDocxImport, isLoading, ipfsImageFetchFn, fetchV1ImageFn, isConnected, }: {
6
6
  editor: Editor | null;
7
7
  onError?: (errorString: string) => void;
8
8
  zoomLevel: string;
@@ -22,5 +22,6 @@ declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavb
22
22
  url: string;
23
23
  file: File;
24
24
  }>;
25
+ isConnected?: boolean;
25
26
  }) => import("react/jsx-runtime").JSX.Element;
26
27
  export default TiptapToolBar;
@@ -11,6 +11,7 @@ export interface IEditorToolElement {
11
11
  group?: string;
12
12
  isNew?: boolean;
13
13
  notVisible?: number;
14
+ disabled?: boolean;
14
15
  }
15
16
  export declare const fonts: {
16
17
  title: string;
@@ -54,7 +55,7 @@ export declare const IMG_UPLOAD_SETTINGS: {
54
55
  errorMsg: string;
55
56
  };
56
57
  };
57
- export declare const useEditorToolbar: ({ editor, onError, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, ipfsImageFetchFn, onDocxImport, fetchV1ImageFn, }: {
58
+ export declare const useEditorToolbar: ({ editor, onError, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, ipfsImageFetchFn, onDocxImport, fetchV1ImageFn, isConnected, }: {
58
59
  editor: Editor | null;
59
60
  onError?: (errorString: string) => void;
60
61
  ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>;
@@ -69,6 +70,7 @@ export declare const useEditorToolbar: ({ editor, onError, ipfsImageUploadFn, on
69
70
  }>;
70
71
  onDocxImport?: () => void;
71
72
  fetchV1ImageFn?: (url: string) => Promise<ArrayBuffer | undefined>;
73
+ isConnected?: boolean;
72
74
  }) => {
73
75
  undoRedoTools: (IEditorToolElement | null)[];
74
76
  toolbar: (IEditorToolElement | null)[];
@@ -25,15 +25,5 @@ export declare const useSyncMachine: (config: Partial<SyncMachineContext>) => {
25
25
  terminateSession: () => void;
26
26
  awareness: any;
27
27
  hasCollabContentInitialised: boolean;
28
- state: import('xstate').State<SyncMachineContext, {
29
- type: string;
30
- data: any;
31
- }, any, {
32
- value: any;
33
- context: SyncMachineContext;
34
- }, import('xstate').ResolveTypegenMeta<import('xstate').TypegenDisabled, {
35
- type: string;
36
- data: any;
37
- }, import('xstate').BaseActionObject, import('xstate').ServiceMap>>;
38
28
  };
39
29
  export {};
@@ -16,5 +16,4 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableColl
16
16
  tocItems: ToCItemType[];
17
17
  setTocItems: import('react').Dispatch<import('react').SetStateAction<ToCItemType[]>>;
18
18
  terminateSession: () => void;
19
- disconnectWebsocket: () => void;
20
19
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.36-patch-5",
5
+ "version": "3.0.36",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -150,4 +150,4 @@
150
150
  "typescript": "^5.2.2",
151
151
  "vite": "^5.0.0"
152
152
  }
153
- }
153
+ }