@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.
@@ -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, toggleFocusMode, }: {
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;
@@ -0,0 +1,4 @@
1
+ declare const PreviewSkeleton: ({ className: classStyle }: {
2
+ className?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export { PreviewSkeleton };
@@ -40,16 +40,16 @@ export declare const CANVAS_DIMENSIONS: {
40
40
  readonly minHeight: "100%";
41
41
  };
42
42
  readonly '1.4': {
43
- readonly width: 1190;
44
- readonly minHeight: "140%";
43
+ readonly width: "70%";
44
+ readonly minHeight: "200%";
45
45
  };
46
46
  readonly '1.5': {
47
- readonly width: 1275;
48
- readonly minHeight: "150%";
47
+ readonly width: 1062.5;
48
+ readonly minHeight: "100%";
49
49
  };
50
50
  readonly '2': {
51
- readonly width: 1700;
52
- readonly minHeight: "200%";
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: 1666;
70
- readonly minHeight: "140%";
69
+ readonly width: "90%";
70
+ readonly minHeight: "200%";
71
71
  };
72
72
  readonly '1.5': {
73
- readonly width: 1785;
74
- readonly minHeight: "150%";
73
+ readonly width: 1487.5;
74
+ readonly minHeight: "100%";
75
75
  };
76
76
  readonly '2': {
77
- readonly width: 2380;
78
- readonly minHeight: "200%";
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 {};
@@ -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;