@fileverse-dev/dsheet 4.1.23-stabilise-package-8 → 4.1.24-stabilise-package-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/editor/contexts/editor-context.d.ts +1 -0
- package/dist/editor/hooks/use-editor-sync.d.ts +1 -1
- package/dist/editor/hooks/use-editor-sync.test.d.ts +1 -0
- package/dist/editor/types.d.ts +3 -0
- package/dist/editor/utils/xlsx-export-impl.d.ts +1 -0
- package/dist/editor/utils/xlsx-export.d.ts +1 -0
- package/dist/{executeStringFunction-CN6ZZqZM.js → executeStringFunction-CT-4of9q.js} +2394 -2184
- package/dist/formula.js +1 -1
- package/dist/{index-Dbl7Dh2_.js → index-CfRtF9ry.js} +9654 -9619
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +44 -43
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/formula-arrow-mode.d.ts +81 -0
- package/dist/sheet-engine/core/modules/formula-arrow-mode.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +32 -1
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sync-local/SyncManager.test.d.ts +1 -0
- package/dist/sync-local/socketClient.d.ts +2 -0
- package/dist/sync-local/socketClient.test.d.ts +1 -0
- package/dist/sync-local/types/index.d.ts +3 -0
- package/dist/{use-xlsx-import-impl-sGRvmOlI.js → use-xlsx-import-impl-Yyav1K_X.js} +4 -4
- package/dist/{xlsx-defined-names-C6c8LJn5.js → xlsx-defined-names-D6d7zKHF.js} +2 -2
- package/dist/xlsx-export-impl-BHJqLH7w.js +903 -0
- package/dist/{xlsx-hyperlink-inline-DjtQMKIL.js → xlsx-hyperlink-inline-DGb-w2IM.js} +2 -2
- package/package.json +1 -1
- package/dist/xlsx-export-impl-Dno93LqB.js +0 -880
|
@@ -2,7 +2,7 @@ import { IndexeddbPersistence } from 'y-indexeddb';
|
|
|
2
2
|
import { CollaborationProps } from '../../sync-local/types';
|
|
3
3
|
import { DSheetContentChange } from '../utils/content-change';
|
|
4
4
|
import * as Y from 'yjs';
|
|
5
|
-
export declare const useEditorSync: (dsheetId: string, enableIndexeddbSync?: boolean, isReadOnly?: boolean, portalContent?: string, collaboration?: CollaborationProps, onRemoteApplied?: (update: Uint8Array) => void, onIndexedDbError?: (error: Error) => void) => {
|
|
5
|
+
export declare const useEditorSync: (dsheetId: string, enableIndexeddbSync?: boolean, isReadOnly?: boolean, portalContent?: string, collaboration?: CollaborationProps, onRemoteApplied?: (update: Uint8Array) => void, onIndexedDbError?: (error: Error) => void, localStoreId?: string) => {
|
|
6
6
|
ydocRef: import('react').MutableRefObject<Y.Doc | null>;
|
|
7
7
|
persistenceRef: import('react').MutableRefObject<IndexeddbPersistence | null>;
|
|
8
8
|
syncStatus: "error" | "syncing" | "initializing" | "synced";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -102,6 +102,9 @@ export interface DsheetProps {
|
|
|
102
102
|
showFormulaBar?: boolean;
|
|
103
103
|
enableIndexeddbSync?: boolean;
|
|
104
104
|
dsheetId: string;
|
|
105
|
+
/** Names the local IndexedDB database and labels content snapshots
|
|
106
|
+
* (default `dsheetId`). `dsheetId` stays the Yjs root key. */
|
|
107
|
+
localStoreId?: string;
|
|
105
108
|
/**
|
|
106
109
|
* Cheap change signal for hosts that persist sheet bodies through Yjs.
|
|
107
110
|
* Unlike `onChange`, this does not build a plain sheet or encode the Y.Doc.
|
|
@@ -3,3 +3,4 @@ import { MutableRefObject } from 'react';
|
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
export declare const handleExportToXLSX: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|
|
5
5
|
export declare const handleExportToODS: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|
|
6
|
+
export declare const exportToXLSXBytes: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string) => Promise<Uint8Array>;
|
|
@@ -7,3 +7,4 @@ import * as Y from 'yjs';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const handleExportToXLSX: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|
|
9
9
|
export declare const handleExportToODS: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string, getDocumentTitle?: (dsheetId: string) => Promise<string>) => Promise<void>;
|
|
10
|
+
export declare const exportToXLSXBytes: (workbookRef: MutableRefObject<WorkbookInstance | null>, ydocRef: MutableRefObject<Y.Doc | null>, dsheetId: string) => Promise<Uint8Array>;
|