@fileverse-dev/ddoc 3.0.82-focus-mode-1 → 3.0.82-skeleton-1
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 +20875 -20991
- package/dist/package/components/editor-toolbar.d.ts +1 -2
- package/dist/package/components/preview-skeleton.d.ts +4 -0
- package/dist/package/constants/canvas-dimensions.d.ts +12 -12
- package/dist/package/context/editor-context.d.ts +0 -2
- package/dist/package/types.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/package/components/fullscreen-toolbar.d.ts +0 -14
- package/dist/package/constants/zoom.d.ts +0 -4
- package/dist/package/hooks/use-fullscreen-mode.d.ts +0 -8
- package/dist/package/utils/get-editor-scroll-container.d.ts +0 -5
|
@@ -4,7 +4,7 @@ import { IpfsImageFetchPayload, IpfsImageUploadResponse } from '../types';
|
|
|
4
4
|
import { Tab } from './tabs/utils/tab-utils';
|
|
5
5
|
|
|
6
6
|
import * as Y from 'yjs';
|
|
7
|
-
declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, onDocxImport, isLoading, ipfsImageFetchFn, fetchV1ImageFn, isConnected, tabs, ydoc, onRegisterExportTrigger,
|
|
7
|
+
declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, ipfsImageUploadFn, onMarkdownExport, onMarkdownImport, onPdfExport, onHtmlExport, onTxtExport, onDocxImport, isLoading, ipfsImageFetchFn, fetchV1ImageFn, isConnected, tabs, ydoc, onRegisterExportTrigger, }: {
|
|
8
8
|
editor: Editor | null;
|
|
9
9
|
onError?: (errorString: string) => void;
|
|
10
10
|
zoomLevel: string;
|
|
@@ -27,7 +27,6 @@ declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavb
|
|
|
27
27
|
isConnected?: boolean;
|
|
28
28
|
tabs: Tab[];
|
|
29
29
|
ydoc: Y.Doc;
|
|
30
|
-
toggleFocusMode?: () => void;
|
|
31
30
|
onRegisterExportTrigger?: ((trigger: ((format?: string, name?: string) => void) | null) => void) | undefined;
|
|
32
31
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
export default TiptapToolBar;
|
|
@@ -40,16 +40,16 @@ export declare const CANVAS_DIMENSIONS: {
|
|
|
40
40
|
readonly minHeight: "100%";
|
|
41
41
|
};
|
|
42
42
|
readonly '1.4': {
|
|
43
|
-
readonly width:
|
|
44
|
-
readonly minHeight: "
|
|
43
|
+
readonly width: "70%";
|
|
44
|
+
readonly minHeight: "200%";
|
|
45
45
|
};
|
|
46
46
|
readonly '1.5': {
|
|
47
|
-
readonly width:
|
|
48
|
-
readonly minHeight: "
|
|
47
|
+
readonly width: 1062.5;
|
|
48
|
+
readonly minHeight: "100%";
|
|
49
49
|
};
|
|
50
50
|
readonly '2': {
|
|
51
|
-
readonly width:
|
|
52
|
-
readonly minHeight:
|
|
51
|
+
readonly width: 1548;
|
|
52
|
+
readonly minHeight: undefined;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
readonly landscape: {
|
|
@@ -66,16 +66,16 @@ export declare const CANVAS_DIMENSIONS: {
|
|
|
66
66
|
readonly minHeight: "100%";
|
|
67
67
|
};
|
|
68
68
|
readonly '1.4': {
|
|
69
|
-
readonly width:
|
|
70
|
-
readonly minHeight: "
|
|
69
|
+
readonly width: "90%";
|
|
70
|
+
readonly minHeight: "200%";
|
|
71
71
|
};
|
|
72
72
|
readonly '1.5': {
|
|
73
|
-
readonly width:
|
|
74
|
-
readonly minHeight: "
|
|
73
|
+
readonly width: 1487.5;
|
|
74
|
+
readonly minHeight: "100%";
|
|
75
75
|
};
|
|
76
76
|
readonly '2': {
|
|
77
|
-
readonly width:
|
|
78
|
-
readonly minHeight:
|
|
77
|
+
readonly width: 2166;
|
|
78
|
+
readonly minHeight: undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
|
@@ -4,7 +4,6 @@ import { DocumentStyling } from '../types';
|
|
|
4
4
|
interface EditorContextType {
|
|
5
5
|
documentStyling?: DocumentStyling;
|
|
6
6
|
theme: 'light' | 'dark';
|
|
7
|
-
isFocusMode: boolean;
|
|
8
7
|
}
|
|
9
8
|
export declare const EditorContext: React.Context<EditorContextType | null>;
|
|
10
9
|
export declare const useEditorContext: () => EditorContextType;
|
|
@@ -12,6 +11,5 @@ export declare const EditorProvider: React.FC<{
|
|
|
12
11
|
children: ReactNode;
|
|
13
12
|
documentStyling?: DocumentStyling;
|
|
14
13
|
theme?: 'light' | 'dark';
|
|
15
|
-
isFocusMode?: boolean;
|
|
16
14
|
}>;
|
|
17
15
|
export {};
|
package/dist/package/types.d.ts
CHANGED
|
@@ -158,7 +158,6 @@ export interface DdocProps extends CommentAccountProps {
|
|
|
158
158
|
setIsPresentationMode?: React.Dispatch<SetStateAction<boolean>>;
|
|
159
159
|
onComment?: () => void;
|
|
160
160
|
onInlineComment?: () => void;
|
|
161
|
-
onFocusMode?: (isFocusMode: boolean) => void;
|
|
162
161
|
onMarkdownExport?: () => void;
|
|
163
162
|
onMarkdownImport?: () => void;
|
|
164
163
|
onPdfExport?: () => void;
|