@fileverse-dev/dsheet 0.0.27 → 0.0.29
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 +14312 -14158
- package/dist/package/constants/shared-constants.d.ts +9 -0
- package/dist/package/contexts/editor-context.d.ts +1 -0
- package/dist/package/hooks/use-document-style.d.ts +4 -1
- package/dist/package/hooks/use-editor-data.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -7,3 +7,12 @@ export declare const DEFAULT_SHEET_DATA: {
|
|
|
7
7
|
column: number;
|
|
8
8
|
}[];
|
|
9
9
|
export declare const TOOL_BAR_ITEMS: string[];
|
|
10
|
+
export declare const CELL_CONTEXT_MENU_ITEMS: string[];
|
|
11
|
+
export declare const CELL_COMMENT_DEFAULT_VALUE: {
|
|
12
|
+
height: null;
|
|
13
|
+
isShow: boolean;
|
|
14
|
+
left: null;
|
|
15
|
+
top: null;
|
|
16
|
+
value: string;
|
|
17
|
+
width: null;
|
|
18
|
+
};
|
|
@@ -33,6 +33,7 @@ interface EditorProviderProps {
|
|
|
33
33
|
onChange?: (data: SheetUpdateData, encodedUpdate?: string) => void;
|
|
34
34
|
externalEditorRef?: React.MutableRefObject<WorkbookInstance | null>;
|
|
35
35
|
isCollaborative?: boolean;
|
|
36
|
+
commentData?: Object;
|
|
36
37
|
}
|
|
37
38
|
export declare const EditorProvider: React.FC<EditorProviderProps>;
|
|
38
39
|
export declare const useEditor: () => EditorContextType;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare const useFortuneDocumentStyle: (exportDropdownOpen
|
|
1
|
+
export declare const useFortuneDocumentStyle: ({ exportDropdownOpen, isTemplateOpen, }: {
|
|
2
|
+
exportDropdownOpen: boolean;
|
|
3
|
+
isTemplateOpen: boolean | undefined;
|
|
4
|
+
}) => void;
|
|
@@ -6,7 +6,7 @@ import * as Y from 'yjs';
|
|
|
6
6
|
* Hook for managing sheet data
|
|
7
7
|
* Handles initialization, updates, and persistence of sheet data
|
|
8
8
|
*/
|
|
9
|
-
export declare const useEditorData: (ydocRef: React.MutableRefObject<Y.Doc | null>, dsheetId: string, sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, setForceSheetRender?: React.Dispatch<React.SetStateAction<number>>, portalContent?: string, isReadOnly?: boolean, onChange?: (data: Sheet[]) => void, syncStatus?: "initializing" | "syncing" | "synced" | "error") => {
|
|
9
|
+
export declare const useEditorData: (ydocRef: React.MutableRefObject<Y.Doc | null>, dsheetId: string, sheetEditorRef: React.MutableRefObject<WorkbookInstance | null>, setForceSheetRender?: React.Dispatch<React.SetStateAction<number>>, portalContent?: string, isReadOnly?: boolean, onChange?: (data: Sheet[]) => void, syncStatus?: "initializing" | "syncing" | "synced" | "error", commentData?: object) => {
|
|
10
10
|
sheetData: Sheet[];
|
|
11
11
|
setSheetData: import('react').Dispatch<import('react').SetStateAction<Sheet[]>>;
|
|
12
12
|
currentDataRef: import('react').MutableRefObject<Sheet[]>;
|