@fileverse-dev/dsheet 4.1.21 → 4.1.23-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/components/editor-workbook.d.ts +6 -0
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +3 -1
- package/dist/editor/components/sidebar/sidebar-offsets.d.ts +12 -0
- package/dist/editor/components/sidebar/sidebar-offsets.test.d.ts +1 -0
- package/dist/editor/contexts/editor-context.d.ts +5 -0
- package/dist/editor/hooks/use-editor-sync.d.ts +5 -1
- package/dist/editor/types.d.ts +42 -0
- package/dist/editor/utils/activate-sheet-for-link.d.ts +3 -0
- package/dist/editor/utils/active-sheet-keeper.d.ts +21 -0
- package/dist/editor/utils/after-update-cell.d.ts +2 -0
- package/dist/editor/utils/after-update-cell.test.d.ts +1 -0
- package/dist/editor/utils/apply-comment-markers.d.ts +3 -1
- package/dist/editor/utils/apply-comment-markers.test.d.ts +1 -0
- package/dist/editor/utils/calc-chain-ydoc-update.test.d.ts +1 -0
- package/dist/editor/utils/content-change.d.ts +48 -0
- package/dist/editor/utils/content-change.test.d.ts +1 -0
- package/dist/editor/utils/content-fingerprint.d.ts +37 -0
- package/dist/editor/utils/content-fingerprint.test.d.ts +1 -0
- package/dist/editor/utils/editor-handle.d.ts +1 -1
- package/dist/editor/utils/format-gate.d.ts +23 -0
- package/dist/editor/utils/format-gate.test.d.ts +1 -0
- package/dist/editor/utils/navigate-to-sheet.d.ts +22 -0
- package/dist/editor/utils/patch-plain-celldata.d.ts +19 -0
- package/dist/editor/utils/patch-plain-celldata.test.d.ts +1 -0
- package/dist/editor/utils/rebuild-indexeddb-store.d.ts +12 -0
- package/dist/editor/utils/rebuild-indexeddb-store.failure.test.d.ts +1 -0
- package/dist/editor/utils/rebuild-indexeddb-store.test.d.ts +1 -0
- package/dist/editor/utils/remote-apply-guard.d.ts +26 -0
- package/dist/editor/utils/remote-apply-guard.test.d.ts +1 -0
- package/dist/editor/utils/sheet-ydoc-sync-utils.d.ts +13 -4
- package/dist/editor/utils/sheet-ydoc-sync-utils.test.d.ts +1 -0
- package/dist/editor/utils/structural-edit-formula-sync.test.d.ts +1 -0
- package/dist/editor/utils/update-ydoc.d.ts +9 -1
- package/dist/{es-S4GKlN-t.js → es-BlDQ6jCL.js} +1 -0
- package/dist/{executeStringFunction-CQ922vEp.js → executeStringFunction-DKA5MuP0.js} +7092 -6760
- package/dist/formula.js +1 -1
- package/dist/{hi-DMMTDTxZ.js → hi-CP0ta0Yk.js} +1 -0
- package/dist/{index-BZbTaVjU.js → index-ypRdpDnX.js} +22658 -21718
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +16 -16
- package/dist/persistence-utils-CSKBobX8.js +151 -0
- package/dist/persistence-utils.d.ts +2 -0
- package/dist/persistence.append.test.d.ts +1 -0
- package/dist/persistence.d.ts +13 -0
- package/dist/persistence.fingerprint.test.d.ts +1 -0
- package/dist/persistence.js +122 -74
- package/dist/sheet-engine/core/api/cell.d.ts +20 -1
- package/dist/sheet-engine/core/api/remote-apply.test.d.ts +1 -0
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/locale/en.d.ts +1 -0
- package/dist/sheet-engine/core/locale/es.d.ts +1 -0
- package/dist/sheet-engine/core/locale/hi.d.ts +1 -0
- package/dist/sheet-engine/core/locale/zh.d.ts +1 -0
- package/dist/sheet-engine/core/locale/zh_tw.d.ts +1 -0
- package/dist/sheet-engine/core/modules/b6-ydoc-writes.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/border.d.ts +9 -0
- package/dist/sheet-engine/core/modules/cell-shift.d.ts +11 -0
- package/dist/sheet-engine/core/modules/cell.commit-ydoc.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/dataVerification.d.ts +15 -0
- package/dist/sheet-engine/core/modules/engine-hot-spots.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +5 -0
- package/dist/sheet-engine/core/modules/formula-narrowing.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +2 -0
- package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +5 -1
- package/dist/sheet-engine/core/modules/formula-warmup.d.ts +37 -0
- package/dist/sheet-engine/core/modules/formula-warmup.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula.d.ts +48 -1
- package/dist/sheet-engine/core/modules/formula.dep-graph.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula.str-change.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula.wide-seed.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/history-calc-chain.d.ts +33 -0
- package/dist/sheet-engine/core/modules/history-calc-chain.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/index.d.ts +3 -2
- package/dist/sheet-engine/core/paste/paste-dep-graph.test.d.ts +1 -0
- package/dist/sheet-engine/core/paste-helpers/calculate-range-cell-size.d.ts +14 -0
- package/dist/sheet-engine/core/paste-helpers/calculate-range-cell-size.test.d.ts +1 -0
- package/dist/sheet-engine/core/settings.d.ts +7 -1
- package/dist/sheet-engine/core/utils/ydoc-celldata-changes.d.ts +16 -0
- package/dist/sheet-engine/react/components/ContextMenu/sheet-tab-menu-items.d.ts +15 -0
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +4 -0
- package/dist/sheet-engine/react/components/Workbook/denomination-scan.d.ts +16 -0
- package/dist/sheet-engine/react/components/Workbook/denomination-scan.test.d.ts +1 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.d.ts +5 -2
- package/dist/sync-local/SyncManager.mirror.test.d.ts +1 -0
- package/dist/sync-local/SyncManager.remote-apply.test.d.ts +1 -0
- package/dist/sync-local/types/index.d.ts +5 -3
- package/dist/{template-data-list-BYOIK_Nd.js → template-data-list-apgmwRAT.js} +18 -10
- package/dist/{use-xlsx-import-impl-Bzyh3J-h.js → use-xlsx-import-impl-DQ3tpIAe.js} +120 -119
- package/dist/{xlsx-defined-names-CGkkDs3a.js → xlsx-defined-names-CVVLxbe-.js} +2 -2
- package/dist/{xlsx-export-impl-8QvOUcjc.js → xlsx-export-impl-ghSoFZBz.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-CEmgXple.js → xlsx-hyperlink-inline-DXj7AkSf.js} +2 -2
- package/dist/{zh-Bv4KIDiJ.js → zh-CmOCFd5t.js} +1 -0
- package/dist/{zh_tw-BdpsK45h.js → zh_tw-BqyRw1gX.js} +1 -0
- package/package.json +2 -2
- package/dist/persistence-utils-BXFajzvq.js +0 -98
|
@@ -18,7 +18,9 @@ export declare class SyncManager {
|
|
|
18
18
|
private encryptMirror;
|
|
19
19
|
private fileKeyEpoch;
|
|
20
20
|
private mirrorIdleTimer;
|
|
21
|
+
private mirrorDisabled;
|
|
21
22
|
private readonly MIRROR_IDLE_MS;
|
|
23
|
+
private readonly MAX_MIRROR_CHARS;
|
|
22
24
|
private isOwner;
|
|
23
25
|
private joinOnly;
|
|
24
26
|
private updateQueue;
|
|
@@ -41,10 +43,10 @@ export declare class SyncManager {
|
|
|
41
43
|
private _awarenessUpdateHandler;
|
|
42
44
|
private ydoc;
|
|
43
45
|
private callbacksRef;
|
|
44
|
-
private
|
|
46
|
+
private onRemoteApplied?;
|
|
45
47
|
constructor(config: SyncManagerConfig, onCollabStateChange: (state: CollabState) => void);
|
|
46
48
|
/** Called by useSyncManager on every render to keep refs fresh */
|
|
47
|
-
updateRefs(_services: CollabServices | undefined, callbacks: CollabCallbacks | undefined,
|
|
49
|
+
updateRefs(_services: CollabServices | undefined, callbacks: CollabCallbacks | undefined, onRemoteApplied?: (update: Uint8Array) => void): void;
|
|
48
50
|
get isConnected(): boolean;
|
|
49
51
|
get isReady(): boolean;
|
|
50
52
|
get awareness(): Awareness | null;
|
|
@@ -90,6 +92,7 @@ export declare class SyncManager {
|
|
|
90
92
|
private authorMirror;
|
|
91
93
|
buildPendingBeaconPayload(): string | null;
|
|
92
94
|
fireBeacon(): void;
|
|
95
|
+
flushPendingMirror(): void;
|
|
93
96
|
forceCleanup(): void;
|
|
94
97
|
private handleConnectionError;
|
|
95
98
|
private handleReconnection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -68,8 +68,9 @@ export interface CollabConnectionConfig {
|
|
|
68
68
|
joinOnly?: boolean;
|
|
69
69
|
/** Host signal (editor): produces the view-plane mirror ciphertext from the live Yjs state. The app
|
|
70
70
|
* AES-GCM-encrypts `{ file: base64(yjsUpdate), source }` under the fileKey in the publish wire
|
|
71
|
-
* format. Absent ⇒ the mirror is not written.
|
|
72
|
-
|
|
71
|
+
* format. Absent ⇒ the mirror is not written. Resolving to null ⇒ this write is skipped (e.g.
|
|
72
|
+
* the host has no fileKey yet). The package never sees the fileKey or the crypto. */
|
|
73
|
+
encryptMirror?: (yjsUpdate: Uint8Array) => Promise<string | null>;
|
|
73
74
|
/** Host signal: the fileKey's rotation epoch (the gate `currentEpoch` / fileKey version — NOT
|
|
74
75
|
* `editGrantEpoch`; default 0 for non-rotating plain-public docs). */
|
|
75
76
|
fileKeyEpoch?: number;
|
|
@@ -187,7 +188,8 @@ export interface SyncManagerConfig {
|
|
|
187
188
|
ydoc: Y.Doc;
|
|
188
189
|
services?: CollabServices;
|
|
189
190
|
callbacks?: CollabCallbacks;
|
|
190
|
-
|
|
191
|
+
/** Called after a remote update is applied, with that update only. */
|
|
192
|
+
onRemoteApplied?: (update: Uint8Array) => void;
|
|
191
193
|
/** Origins to ignore in the ydoc update handler (e.g. IndexedDB provider) */
|
|
192
194
|
ignoredOrigins?: Array<{
|
|
193
195
|
current: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = [
|
|
2
2
|
{
|
|
3
3
|
name: "Gantt Chart",
|
|
4
4
|
color: "#2E7D32",
|
|
@@ -53422,7 +53422,7 @@ const l = [
|
|
|
53422
53422
|
}
|
|
53423
53423
|
]
|
|
53424
53424
|
}
|
|
53425
|
-
],
|
|
53425
|
+
], E = [
|
|
53426
53426
|
{
|
|
53427
53427
|
name: "Expense Claim",
|
|
53428
53428
|
color: "#0E7C7B",
|
|
@@ -56827,7 +56827,7 @@ const l = [
|
|
|
56827
56827
|
}
|
|
56828
56828
|
]
|
|
56829
56829
|
}
|
|
56830
|
-
],
|
|
56830
|
+
], t = [
|
|
56831
56831
|
{
|
|
56832
56832
|
name: "Event Marketing",
|
|
56833
56833
|
config: {
|
|
@@ -115327,7 +115327,7 @@ const l = [
|
|
|
115327
115327
|
}
|
|
115328
115328
|
]
|
|
115329
115329
|
}
|
|
115330
|
-
],
|
|
115330
|
+
], y = [
|
|
115331
115331
|
{
|
|
115332
115332
|
name: "Invoice",
|
|
115333
115333
|
status: 1,
|
|
@@ -117580,12 +117580,20 @@ const l = [
|
|
|
117580
117580
|
}
|
|
117581
117581
|
]
|
|
117582
117582
|
}
|
|
117583
|
-
],
|
|
117584
|
-
invoice:
|
|
117585
|
-
"gantt-chart":
|
|
117586
|
-
"expense-tracker":
|
|
117587
|
-
"event-marketing":
|
|
117583
|
+
], s = {
|
|
117584
|
+
invoice: y,
|
|
117585
|
+
"gantt-chart": o,
|
|
117586
|
+
"expense-tracker": E,
|
|
117587
|
+
"event-marketing": t
|
|
117588
|
+
}, n = (c) => {
|
|
117589
|
+
const l = s[c];
|
|
117590
|
+
if (!l) return;
|
|
117591
|
+
let e = JSON.stringify(l);
|
|
117592
|
+
for (const r of l)
|
|
117593
|
+
!r || !r.id || (e = e.split(JSON.stringify(r.id)).join(JSON.stringify(crypto.randomUUID())));
|
|
117594
|
+
return JSON.parse(e);
|
|
117588
117595
|
};
|
|
117589
117596
|
export {
|
|
117590
|
-
|
|
117597
|
+
s as TEMPLATES_DATA,
|
|
117598
|
+
n as getTemplateData
|
|
117591
117599
|
};
|