@fileverse-dev/dsheet 0.0.26 → 0.0.28
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 +25211 -24946
- package/dist/package/components/skeleton-loader.d.ts +3 -1
- package/dist/package/components/transition-wrapper.d.ts +16 -0
- 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 +5 -1
- package/dist/package/hooks/use-editor-data.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const SkeletonToolbar: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export declare const SkeletonGrid: (
|
|
2
|
+
export declare const SkeletonGrid: ({ isReadOnly, }: {
|
|
3
|
+
isReadOnly: boolean | undefined;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
declare const SkeletonLoader: ({ isReadOnly, }: {
|
|
4
6
|
isReadOnly: boolean | undefined;
|
|
5
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface TransitionWrapperProps {
|
|
2
|
+
/** Whether the component should be shown */
|
|
3
|
+
show: boolean;
|
|
4
|
+
/** The content to be rendered with transition */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Optional duration in milliseconds, defaults to 500 */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** Optional custom transition classes */
|
|
9
|
+
transitionClasses?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A wrapper component that provides smooth enter/exit transitions for its children
|
|
13
|
+
* using opacity and transform animations.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TransitionWrapper: ({ show, children, duration, transitionClasses, }: TransitionWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
export {};
|
|
@@ -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,5 @@
|
|
|
1
|
-
export declare const useFortuneDocumentStyle: (exportDropdownOpen
|
|
1
|
+
export declare const useFortuneDocumentStyle: ({ exportDropdownOpen, isTemplateOpen, isReadOnly, }: {
|
|
2
|
+
exportDropdownOpen: boolean;
|
|
3
|
+
isTemplateOpen: boolean | undefined;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
}) => 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[]>;
|