@fileverse-dev/dsheet 4.0.3 → 4.0.5-edit-mode-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/{constants-Cdz6oSCq.js → constants-CRFfbkoQ.js} +1 -1
- package/dist/constants.js +1 -1
- package/dist/{crypto-constants-CqpCRs86.js → crypto-constants-ZTlAYRUf.js} +33 -22
- package/dist/editor/components/sidebar/use-right-panels.d.ts +1 -1
- package/dist/editor/components/sidebars/named-ranges.d.ts +2 -0
- package/dist/editor/contexts/editor-context.d.ts +13 -5
- package/dist/editor/dsheet-editor.d.ts +3 -2
- package/dist/editor/hooks/collaboration-lifecycle.d.ts +30 -0
- package/dist/editor/hooks/collaboration-lifecycle.test.d.ts +1 -0
- package/dist/editor/hooks/use-celldata-compaction.d.ts +2 -3
- package/dist/editor/hooks/use-collab-awareness.d.ts +3 -6
- package/dist/editor/hooks/use-editor-data.d.ts +2 -2
- package/dist/editor/hooks/use-editor-sync.d.ts +7 -3
- package/dist/editor/types.d.ts +17 -6
- package/dist/editor/utils/compact-committed-celldata.d.ts +11 -10
- package/dist/editor/utils/defined-names-ydoc.d.ts +31 -0
- package/dist/editor/utils/editor-handle.d.ts +11 -0
- package/dist/editor/utils/editor-handle.test.d.ts +1 -0
- package/dist/editor/utils/import-compaction.d.ts +25 -0
- package/dist/editor/utils/xlsx-defined-names.d.ts +41 -0
- package/dist/editor/utils/xlsx-import-pipeline.d.ts +28 -0
- package/dist/{executeStringFunction-BQvE7aeV.js → executeStringFunction-B6fhDKyN.js} +7014 -6490
- package/dist/formula.js +1 -1
- package/dist/{index-CeTa91qc.js → index-CXPCkzqN.js} +19874 -18415
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +51 -47
- package/dist/persistence-utils-BXFajzvq.js +98 -0
- package/dist/persistence-utils.d.ts +8 -2
- package/dist/persistence-utils.test.d.ts +1 -0
- package/dist/persistence.js +1 -1
- package/dist/sheet-engine/core/api/common.d.ts +1 -0
- package/dist/sheet-engine/core/context.d.ts +3 -1
- package/dist/sheet-engine/core/index.d.ts +2 -2
- package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +11 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +27 -0
- package/dist/sheet-engine/core/modules/index.d.ts +3 -2
- package/dist/sheet-engine/core/modules/namedRanges.d.ts +53 -0
- package/dist/sheet-engine/core/paste/paste-border-utils.d.ts +2 -0
- package/dist/sheet-engine/core/settings.d.ts +2 -0
- package/dist/sheet-engine/core/types.d.ts +21 -0
- package/dist/sheet-engine/react/components/NamedRanges/index.d.ts +4 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +1 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.d.ts +54 -9
- package/dist/sync-local/crypto/room-key.d.ts +2 -0
- package/dist/sync-local/crypto/room-key.test.d.ts +1 -0
- package/dist/sync-local/floor.d.ts +8 -0
- package/dist/sync-local/floor.test.d.ts +1 -0
- package/dist/sync-local/index.d.ts +1 -1
- package/dist/sync-local/presence.d.ts +11 -0
- package/dist/sync-local/presence.test.d.ts +1 -0
- package/dist/sync-local/session-tools.d.ts +31 -0
- package/dist/sync-local/session-tools.test.d.ts +1 -0
- package/dist/sync-local/socketClient.d.ts +74 -8
- package/dist/sync-local/types/index.d.ts +111 -15
- package/dist/sync-local/useSyncManager.d.ts +4 -0
- package/dist/{template-data-list-oP1s0Uxn.js → template-data-list-RKnVLsuf.js} +51 -50
- package/dist/use-xlsx-import-impl-BtFa-ngI.js +1898 -0
- package/dist/worker/dsheet-worker-client.d.ts +14 -0
- package/dist/worker/dsheet-worker.d.ts +14 -0
- package/dist/xlsx-defined-names-DIgNskJ5.js +117 -0
- package/dist/xlsx-export-impl-CfnWkjsY.js +831 -0
- package/dist/xlsx-hyperlink-inline-BkyQuqyy.js +2512 -0
- package/package.json +5 -4
- package/dist/persistence-utils-DsM_MOB1.js +0 -89
- package/dist/sync-local/utils/objectToFile.d.ts +0 -1
- package/dist/use-xlsx-import-impl-BVsfV8ZV.js +0 -1572
- package/dist/xlsx-export-impl-Ber9FhFY.js +0 -3138
- package/dist/xlsx-hyperlink-inline-DzewAypN.js +0 -71
- package/dist/xlsx-image-utils-Cvg0qxRA.js +0 -126
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Sheet } from '../../sheet-engine/react';
|
|
2
|
+
import { ExcelDefinedNameEntry } from './xlsx-defined-names';
|
|
3
|
+
|
|
4
|
+
export declare function generateImportSheetId(): string;
|
|
5
|
+
export type XlsxImportWarning = {
|
|
6
|
+
code: 'tables-unsupported';
|
|
7
|
+
} | {
|
|
8
|
+
code: 'filters-unsupported';
|
|
9
|
+
};
|
|
10
|
+
export type XlsxParseSettings = {
|
|
11
|
+
/** Workbook default column width in px (from the live workbook settings, if any). */
|
|
12
|
+
workbookDefaultColWidth?: number;
|
|
13
|
+
/** Workbook default row height in px (from the live workbook settings, if any). */
|
|
14
|
+
workbookDefaultRowHeight?: number;
|
|
15
|
+
};
|
|
16
|
+
export type XlsxParsedWorkbook = {
|
|
17
|
+
/** Decorated + compacted sheets, ready for the ydoc write. */
|
|
18
|
+
sheets: Sheet[];
|
|
19
|
+
/** Workbook name from luckyexcel info (extension not yet stripped). */
|
|
20
|
+
workbookName: string;
|
|
21
|
+
/** UI warnings to replay on the main thread (toasts/onWarning). */
|
|
22
|
+
warnings: XlsxImportWarning[];
|
|
23
|
+
/** Sheet ids this pipeline generated — the caller may remap them with a custom generator. */
|
|
24
|
+
generatedSheetIds: string[];
|
|
25
|
+
/** Named ranges from xl/workbook.xml — synced to Yjs on the main thread. */
|
|
26
|
+
definedNameEntries: ExcelDefinedNameEntry[];
|
|
27
|
+
};
|
|
28
|
+
export declare function parseXlsxWorkbook(file: File, settings?: XlsxParseSettings): Promise<XlsxParsedWorkbook>;
|