@fileverse-dev/dsheet 2.1.3-package-cleanup-4 → 2.1.3-package-cleanup-6
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/editor/contexts/editor-context.d.ts +1 -0
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/types/comments.d.ts +1 -0
- package/dist/editor/types.d.ts +4 -0
- package/dist/editor/utils/cell-comment-marker.d.ts +1 -0
- package/dist/{executeStringFunction-CheV8KGQ.js → executeStringFunction-C5hEkx9z.js} +1116 -1114
- package/dist/formula.js +1 -1
- package/dist/{index-CSYZ42SH.js → index-B3AEP7bW.js} +10521 -10439
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/react/utils/datepickerStyles.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/sync-local/types/index.d.ts +1 -1
- package/dist/{use-xlsx-import-impl-CQree-0S.js → use-xlsx-import-impl-OHfxtmuK.js} +2 -2
- package/dist/{xlsx-export-impl-2-R-Pc2y.js → xlsx-export-impl-Br-IW_jt.js} +2 -2
- package/package.json +2 -2
|
@@ -90,6 +90,7 @@ interface EditorProviderProps {
|
|
|
90
90
|
apiKeyStorage?: ApiKeyStorage;
|
|
91
91
|
onDataBlockEvent?: (event: DataBlockEvent) => void;
|
|
92
92
|
smartContracts?: SmartContractConfig;
|
|
93
|
+
onContentSyncStatusChange?: (status: 'initializing' | 'syncing' | 'synced' | 'error') => void;
|
|
93
94
|
}
|
|
94
95
|
export declare const EditorProvider: React.FC<EditorProviderProps>;
|
|
95
96
|
export declare const useEditor: () => EditorContextType;
|
|
@@ -7,5 +7,5 @@ import { DsheetProps } from './types';
|
|
|
7
7
|
* @param props - Component properties
|
|
8
8
|
* @returns The SpreadsheetEditor component
|
|
9
9
|
*/
|
|
10
|
-
declare const SpreadsheetEditor: ({ isReadOnly, allowSheetDownload, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, onboardingComplete, onboardingCompleteLocalStorageKey, onboardingHandler, commentsConfig, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, onDuneChartEmbed, onSheetCountChange, isAuthorized, getDocumentTitle, updateDocumentTitle, editorStateRef, setSelectedTemplate, isNewSheet, liveQueryRefreshRate, enableLiveQuery, collaboration, customPanels, apiKeyStorage, onDataBlockEvent, smartContracts, theme, }: DsheetProps) => JSX.Element;
|
|
10
|
+
declare const SpreadsheetEditor: ({ isReadOnly, allowSheetDownload, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, onboardingComplete, onboardingCompleteLocalStorageKey, onboardingHandler, commentsConfig, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, onDuneChartEmbed, onSheetCountChange, isAuthorized, getDocumentTitle, updateDocumentTitle, editorStateRef, setSelectedTemplate, isNewSheet, liveQueryRefreshRate, enableLiveQuery, collaboration, customPanels, apiKeyStorage, onDataBlockEvent, smartContracts, theme, onContentSyncStatusChange, }: DsheetProps) => JSX.Element;
|
|
11
11
|
export default SpreadsheetEditor;
|
|
@@ -114,6 +114,7 @@ export interface CommentCellUIProps {
|
|
|
114
114
|
sheetEditorRef?: React.RefObject<SheetEditorRef>;
|
|
115
115
|
currentUserName?: string;
|
|
116
116
|
removeCommentFromCell: (row: number, col: number) => void;
|
|
117
|
+
closePopup?: () => void;
|
|
117
118
|
dragHandler: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
118
119
|
isHover?: boolean;
|
|
119
120
|
disabled?: boolean;
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ export interface DsheetProps {
|
|
|
83
83
|
onDataBlockEvent?: (event: DataBlockEvent) => void;
|
|
84
84
|
onDuneChartEmbed?: () => void;
|
|
85
85
|
onSheetCountChange?: (sheetCount: number) => void;
|
|
86
|
+
/** Fires whenever local content-sync status changes. Host apps should gate
|
|
87
|
+
* collab start/resume on 'synced' — starting before local content is fully
|
|
88
|
+
* synced is what let the RTC layer bind to a stale doc in the past. */
|
|
89
|
+
onContentSyncStatusChange?: (status: 'initializing' | 'syncing' | 'synced' | 'error') => void;
|
|
86
90
|
editorStateRef?: React.MutableRefObject<{
|
|
87
91
|
refreshIndexedDB: () => Promise<void>;
|
|
88
92
|
} | null>;
|
|
@@ -14,6 +14,7 @@ type SheetEditorRefLike = {
|
|
|
14
14
|
* Used on top-level comment delete and on top-level comment resolve.
|
|
15
15
|
*/
|
|
16
16
|
export declare const hideCellCommentMarker: (sheetEditorRef: SheetEditorRefLike, row: number, col: number) => void;
|
|
17
|
+
export declare const closeCellCommentPopup: (sheetEditorRef: SheetEditorRefLike) => void;
|
|
17
18
|
/**
|
|
18
19
|
* Restores the comment indicator on a cell.
|
|
19
20
|
*
|