@fileverse-dev/dsheet 4.1.23 → 4.1.24-stabilise-package-2

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.
Files changed (134) hide show
  1. package/README.md +10 -0
  2. package/dist/editor/components/skeleton-loader.d.ts +2 -1
  3. package/dist/editor/contexts/editor-context.d.ts +10 -0
  4. package/dist/editor/hooks/use-celldata-compaction.d.ts +44 -2
  5. package/dist/editor/hooks/use-celldata-compaction.test.d.ts +1 -0
  6. package/dist/editor/hooks/use-editor-data.d.ts +1 -0
  7. package/dist/editor/hooks/use-editor-sync.d.ts +5 -1
  8. package/dist/editor/hooks/use-editor-sync.test.d.ts +1 -0
  9. package/dist/editor/types.d.ts +44 -1
  10. package/dist/editor/utils/active-sheet-keeper.test.d.ts +1 -0
  11. package/dist/editor/utils/after-update-cell.d.ts +6 -0
  12. package/dist/editor/utils/after-update-cell.test.d.ts +1 -0
  13. package/dist/editor/utils/apply-comment-markers.d.ts +3 -1
  14. package/dist/editor/utils/apply-comment-markers.test.d.ts +1 -0
  15. package/dist/editor/utils/calc-chain-ydoc-update.test.d.ts +1 -0
  16. package/dist/editor/utils/content-change.d.ts +48 -0
  17. package/dist/editor/utils/content-change.test.d.ts +1 -0
  18. package/dist/editor/utils/content-fingerprint.d.ts +37 -0
  19. package/dist/editor/utils/content-fingerprint.test.d.ts +1 -0
  20. package/dist/editor/utils/editor-handle.d.ts +1 -1
  21. package/dist/editor/utils/format-gate.d.ts +27 -0
  22. package/dist/editor/utils/format-gate.test.d.ts +1 -0
  23. package/dist/editor/utils/legacy-on-change.d.ts +20 -0
  24. package/dist/editor/utils/legacy-on-change.test.d.ts +1 -0
  25. package/dist/editor/utils/patch-plain-celldata.d.ts +19 -0
  26. package/dist/editor/utils/patch-plain-celldata.test.d.ts +1 -0
  27. package/dist/editor/utils/rebuild-indexeddb-store.d.ts +19 -0
  28. package/dist/editor/utils/rebuild-indexeddb-store.failure.test.d.ts +1 -0
  29. package/dist/editor/utils/rebuild-indexeddb-store.test.d.ts +1 -0
  30. package/dist/editor/utils/remote-apply-guard.d.ts +45 -0
  31. package/dist/editor/utils/remote-apply-guard.test.d.ts +1 -0
  32. package/dist/editor/utils/sheet-ydoc-sync-utils.d.ts +13 -4
  33. package/dist/editor/utils/sheet-ydoc-sync-utils.test.d.ts +1 -0
  34. package/dist/editor/utils/structural-edit-formula-sync.test.d.ts +1 -0
  35. package/dist/editor/utils/structural-edit-other-tabs.test.d.ts +1 -0
  36. package/dist/editor/utils/update-ydoc.d.ts +9 -1
  37. package/dist/editor/utils/wait-for-sync.d.ts +35 -0
  38. package/dist/editor/utils/wait-for-sync.test.d.ts +1 -0
  39. package/dist/editor/utils/xlsx-export-impl.d.ts +1 -0
  40. package/dist/editor/utils/xlsx-export.d.ts +1 -0
  41. package/dist/{executeStringFunction-ZHYCWIpK.js → executeStringFunction--gHt0G5o.js} +13725 -12781
  42. package/dist/formula.js +1 -1
  43. package/dist/{index-8_qnUyMl.js → index-DTkdULNT.js} +23239 -21905
  44. package/dist/index.d.ts +2 -2
  45. package/dist/index.es.js +44 -43
  46. package/dist/persistence-utils-CSKBobX8.js +151 -0
  47. package/dist/persistence-utils.d.ts +2 -0
  48. package/dist/persistence.append.test.d.ts +1 -0
  49. package/dist/persistence.d.ts +13 -0
  50. package/dist/persistence.fingerprint.test.d.ts +1 -0
  51. package/dist/persistence.js +122 -74
  52. package/dist/sheet-engine/core/api/cell.d.ts +25 -1
  53. package/dist/sheet-engine/core/api/remote-apply.test.d.ts +1 -0
  54. package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.d.ts +1 -0
  55. package/dist/sheet-engine/core/api/sheet-flowdata-lifecycle.test.d.ts +1 -0
  56. package/dist/sheet-engine/core/index.d.ts +1 -1
  57. package/dist/sheet-engine/core/modules/b6-ydoc-writes.test.d.ts +1 -0
  58. package/dist/sheet-engine/core/modules/border.d.ts +9 -0
  59. package/dist/sheet-engine/core/modules/cell-shift-dep-graph.test.d.ts +1 -0
  60. package/dist/sheet-engine/core/modules/cell-shift.d.ts +11 -0
  61. package/dist/sheet-engine/core/modules/cell.commit-ydoc.test.d.ts +1 -0
  62. package/dist/sheet-engine/core/modules/dataVerification.d.ts +15 -0
  63. package/dist/sheet-engine/core/modules/engine-hot-spots.test.d.ts +1 -0
  64. package/dist/sheet-engine/core/modules/formula-arrow-mode.d.ts +81 -0
  65. package/dist/sheet-engine/core/modules/formula-arrow-mode.test.d.ts +1 -0
  66. package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +5 -0
  67. package/dist/sheet-engine/core/modules/formula-dep-text.d.ts +23 -0
  68. package/dist/sheet-engine/core/modules/formula-dep-text.test.d.ts +1 -0
  69. package/dist/sheet-engine/core/modules/formula-edge-update.d.ts +13 -0
  70. package/dist/sheet-engine/core/modules/formula-narrowing.test.d.ts +1 -0
  71. package/dist/sheet-engine/core/modules/formula-snapshot-eval.d.ts +2 -0
  72. package/dist/sheet-engine/core/modules/formula-tab-load.test.d.ts +1 -0
  73. package/dist/sheet-engine/core/modules/formula-transitive-deps.d.ts +26 -1
  74. package/dist/sheet-engine/core/modules/formula-warmup.d.ts +33 -0
  75. package/dist/sheet-engine/core/modules/formula-warmup.test.d.ts +1 -0
  76. package/dist/sheet-engine/core/modules/formula.d.ts +119 -2
  77. package/dist/sheet-engine/core/modules/formula.dep-graph.test.d.ts +1 -0
  78. package/dist/sheet-engine/core/modules/formula.str-change.test.d.ts +1 -0
  79. package/dist/sheet-engine/core/modules/formula.wide-seed.test.d.ts +1 -0
  80. package/dist/sheet-engine/core/modules/history-calc-chain.d.ts +39 -0
  81. package/dist/sheet-engine/core/modules/history-calc-chain.test.d.ts +1 -0
  82. package/dist/sheet-engine/core/modules/history-celldata.d.ts +25 -0
  83. package/dist/sheet-engine/core/modules/history-grid-size.d.ts +16 -0
  84. package/dist/sheet-engine/core/modules/history-grid-size.test.d.ts +1 -0
  85. package/dist/sheet-engine/core/modules/index.d.ts +4 -3
  86. package/dist/sheet-engine/core/modules/rowcol-dep-graph.test.d.ts +1 -0
  87. package/dist/sheet-engine/core/modules/rowcol-refused-edit.test.d.ts +1 -0
  88. package/dist/sheet-engine/core/modules/rowcol-unloaded-history.test.d.ts +1 -0
  89. package/dist/sheet-engine/core/modules/rowcol.d.ts +8 -0
  90. package/dist/sheet-engine/core/modules/structural-edit-prep.d.ts +36 -0
  91. package/dist/sheet-engine/core/modules/structural-edit-prep.test.d.ts +1 -0
  92. package/dist/sheet-engine/core/paste/paste-dep-graph.test.d.ts +1 -0
  93. package/dist/sheet-engine/core/paste-helpers/calculate-range-cell-size.d.ts +14 -0
  94. package/dist/sheet-engine/core/paste-helpers/calculate-range-cell-size.test.d.ts +1 -0
  95. package/dist/sheet-engine/core/settings.d.ts +11 -1
  96. package/dist/sheet-engine/core/utils/ydoc-celldata-changes.d.ts +29 -2
  97. package/dist/sheet-engine/react/components/ContextMenu/FilterMenu.d.ts +2 -2
  98. package/dist/sheet-engine/react/components/ContextMenu/SheetTab.d.ts +2 -2
  99. package/dist/sheet-engine/react/components/ContextMenu/index.d.ts +2 -2
  100. package/dist/sheet-engine/react/components/NotationBoxes/shown-comments.d.ts +20 -0
  101. package/dist/sheet-engine/react/components/NotationBoxes/shown-comments.test.d.ts +1 -0
  102. package/dist/sheet-engine/react/components/SVGDefines.d.ts +2 -2
  103. package/dist/sheet-engine/react/components/SheetOverlay/editing-as-formula.d.ts +7 -0
  104. package/dist/sheet-engine/react/components/SheetOverlay/editing-as-formula.test.d.ts +1 -0
  105. package/dist/sheet-engine/react/components/SheetOverlay/hover-tracker.d.ts +44 -0
  106. package/dist/sheet-engine/react/components/SheetOverlay/hover-tracker.test.d.ts +1 -0
  107. package/dist/sheet-engine/react/components/SheetTab/index.d.ts +2 -2
  108. package/dist/sheet-engine/react/components/Toolbar/FunctionList/group-functions.d.ts +9 -0
  109. package/dist/sheet-engine/react/components/Toolbar/FunctionList/group-functions.test.d.ts +1 -0
  110. package/dist/sheet-engine/react/components/Toolbar/index.d.ts +2 -2
  111. package/dist/sheet-engine/react/components/Workbook/api.d.ts +4 -0
  112. package/dist/sheet-engine/react/components/Workbook/denomination-scan.d.ts +16 -0
  113. package/dist/sheet-engine/react/components/Workbook/denomination-scan.test.d.ts +1 -0
  114. package/dist/sheet-engine/react/components/Workbook/index.d.ts +2 -0
  115. package/dist/sheet-engine/react/components/Workbook/stable-handle.d.ts +8 -0
  116. package/dist/sheet-engine/react/components/Workbook/stable-handle.test.d.ts +1 -0
  117. package/dist/sheet-engine/react/context/index.d.ts +15 -0
  118. package/dist/sheet-engine/react/context/use-workbook-store.d.ts +30 -0
  119. package/dist/sheet-engine/react/context/workbook-store.d.ts +30 -0
  120. package/dist/sheet-engine/react/context/workbook-store.test.d.ts +1 -0
  121. package/dist/style.css +1 -1
  122. package/dist/sync-local/SyncManager.d.ts +2 -2
  123. package/dist/sync-local/SyncManager.remote-apply.test.d.ts +1 -0
  124. package/dist/sync-local/SyncManager.test.d.ts +1 -0
  125. package/dist/sync-local/socketClient.d.ts +2 -0
  126. package/dist/sync-local/socketClient.test.d.ts +1 -0
  127. package/dist/sync-local/types/index.d.ts +5 -1
  128. package/dist/{use-xlsx-import-impl-cgDH14_y.js → use-xlsx-import-impl-DhCtyQw6.js} +120 -119
  129. package/dist/{xlsx-defined-names-DCK7aKIO.js → xlsx-defined-names-COueA4FW.js} +2 -2
  130. package/dist/xlsx-export-impl-lfDXFnFW.js +903 -0
  131. package/dist/{xlsx-hyperlink-inline-T4GsXFm7.js → xlsx-hyperlink-inline-Dyo_PyAb.js} +2 -2
  132. package/package.json +1 -1
  133. package/dist/persistence-utils-BXFajzvq.js +0 -98
  134. package/dist/xlsx-export-impl-BHDWz0aW.js +0 -880
@@ -43,10 +43,10 @@ export declare class SyncManager {
43
43
  private _awarenessUpdateHandler;
44
44
  private ydoc;
45
45
  private callbacksRef;
46
- private onLocalUpdate?;
46
+ private onRemoteApplied?;
47
47
  constructor(config: SyncManagerConfig, onCollabStateChange: (state: CollabState) => void);
48
48
  /** Called by useSyncManager on every render to keep refs fresh */
49
- updateRefs(_services: CollabServices | undefined, callbacks: CollabCallbacks | undefined, onLocalUpdate?: (updatedDocContent: string, updateChunk: string) => void): void;
49
+ updateRefs(_services: CollabServices | undefined, callbacks: CollabCallbacks | undefined, onRemoteApplied?: (update: Uint8Array) => void): void;
50
50
  get isConnected(): boolean;
51
51
  get isReady(): boolean;
52
52
  get awareness(): Awareness | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -8,6 +8,7 @@ interface ISocketClientConfig {
8
8
  ownerEdSecret?: string;
9
9
  contractAddress?: string;
10
10
  ownerAddress?: string;
11
+ appFileId?: string;
11
12
  editLock?: string;
12
13
  encryptedTitle?: string;
13
14
  identityToken?: string;
@@ -72,6 +73,7 @@ export declare class SocketClient {
72
73
  private collaborationUcan?;
73
74
  private serverClock;
74
75
  private ownerAddress?;
76
+ private appFileId?;
75
77
  private editLock?;
76
78
  private encryptedTitle?;
77
79
  private identityToken?;
@@ -0,0 +1 @@
1
+ export {};
@@ -77,6 +77,8 @@ export interface CollabConnectionConfig {
77
77
  ownerEdSecret?: string;
78
78
  contractAddress?: string;
79
79
  ownerAddress?: string;
80
+ /** Host signal (opaque-link sheets): the on-chain dsheetId, sent to the server as ddocId alongside the public room id. */
81
+ appFileId?: string;
80
82
  roomInfo?: {
81
83
  documentTitle: string;
82
84
  portalAddress: string;
@@ -188,7 +190,8 @@ export interface SyncManagerConfig {
188
190
  ydoc: Y.Doc;
189
191
  services?: CollabServices;
190
192
  callbacks?: CollabCallbacks;
191
- onLocalUpdate?: (updatedDocContent: string, updateChunk: string) => void;
193
+ /** Called after a remote update is applied, with that update only. */
194
+ onRemoteApplied?: (update: Uint8Array) => void;
192
195
  /** Origins to ignore in the ydoc update handler (e.g. IndexedDB provider) */
193
196
  ignoredOrigins?: Array<{
194
197
  current: unknown;
@@ -299,6 +302,7 @@ export interface IAuthArgs {
299
302
  ownerToken?: string;
300
303
  ownerAddress?: string;
301
304
  contractAddress?: string;
305
+ ddocId?: string;
302
306
  sessionDid?: string;
303
307
  roomInfo?: string;
304
308
  identityToken?: string;