@ai-matrx/office 0.8.20 → 0.8.21
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/CHANGELOG.md +20 -2
- package/dist/collab-sheets-transform.cjs +354 -16
- package/dist/collab-sheets-transform.cjs.map +1 -1
- package/dist/collab-sheets-transform.d.cts +32 -4
- package/dist/collab-sheets-transform.d.ts +32 -4
- package/dist/collab-sheets-transform.js +354 -16
- package/dist/collab-sheets-transform.js.map +1 -1
- package/dist/univer-collab.cjs +414 -27
- package/dist/univer-collab.cjs.map +1 -1
- package/dist/univer-collab.d.cts +6 -1
- package/dist/univer-collab.d.ts +6 -1
- package/dist/univer-collab.js +414 -27
- package/dist/univer-collab.js.map +1 -1
- package/package.json +3 -3
package/dist/univer-collab.d.cts
CHANGED
|
@@ -563,7 +563,7 @@ type SheetOp = SheetMutation[] | null;
|
|
|
563
563
|
* The room's protocol (§6.4): Univer 1.0.4 + transformer `SHEET_TRANSFORMER_VERSION`. Any Univer or transformer
|
|
564
564
|
* change raises it; a room at another proto opens read-only for this build.
|
|
565
565
|
*/
|
|
566
|
-
declare const SHEETS_COLLAB_PROTO =
|
|
566
|
+
declare const SHEETS_COLLAB_PROTO = 2;
|
|
567
567
|
declare const SHEETS_EDIT_GROUP = "sheets.edit";
|
|
568
568
|
/** One outermost command's traveling mutations, as the port hands them over. */
|
|
569
569
|
interface SheetsLocalGroup {
|
|
@@ -651,6 +651,11 @@ declare function rebaseSheetUndoStack(items: UndoItem[], remote: SheetOp, unitId
|
|
|
651
651
|
interface SheetsOtAdapterHooks {
|
|
652
652
|
/** Called once per applied remote op that rebased this seat's undo stacks (for tests and logs). */
|
|
653
653
|
onUndoRebased?: (dropped: number) => void;
|
|
654
|
+
/**
|
|
655
|
+
* The state hash of a snapshot (default `sheetsStateHash`, Web Crypto). A seeded test passes a synchronous one:
|
|
656
|
+
* Web Crypto resolves on a worker thread, outside a virtual clock, so the same seed would not replay.
|
|
657
|
+
*/
|
|
658
|
+
stateHash?: (snapshot: unknown) => string | Promise<string>;
|
|
654
659
|
}
|
|
655
660
|
/** The `OpDocumentAdapter` over a sheets port, plus the held-remote queue the room drives. */
|
|
656
661
|
interface SheetsOtAdapter extends OpDocumentAdapter<SheetOp> {
|
package/dist/univer-collab.d.ts
CHANGED
|
@@ -563,7 +563,7 @@ type SheetOp = SheetMutation[] | null;
|
|
|
563
563
|
* The room's protocol (§6.4): Univer 1.0.4 + transformer `SHEET_TRANSFORMER_VERSION`. Any Univer or transformer
|
|
564
564
|
* change raises it; a room at another proto opens read-only for this build.
|
|
565
565
|
*/
|
|
566
|
-
declare const SHEETS_COLLAB_PROTO =
|
|
566
|
+
declare const SHEETS_COLLAB_PROTO = 2;
|
|
567
567
|
declare const SHEETS_EDIT_GROUP = "sheets.edit";
|
|
568
568
|
/** One outermost command's traveling mutations, as the port hands them over. */
|
|
569
569
|
interface SheetsLocalGroup {
|
|
@@ -651,6 +651,11 @@ declare function rebaseSheetUndoStack(items: UndoItem[], remote: SheetOp, unitId
|
|
|
651
651
|
interface SheetsOtAdapterHooks {
|
|
652
652
|
/** Called once per applied remote op that rebased this seat's undo stacks (for tests and logs). */
|
|
653
653
|
onUndoRebased?: (dropped: number) => void;
|
|
654
|
+
/**
|
|
655
|
+
* The state hash of a snapshot (default `sheetsStateHash`, Web Crypto). A seeded test passes a synchronous one:
|
|
656
|
+
* Web Crypto resolves on a worker thread, outside a virtual clock, so the same seed would not replay.
|
|
657
|
+
*/
|
|
658
|
+
stateHash?: (snapshot: unknown) => string | Promise<string>;
|
|
654
659
|
}
|
|
655
660
|
/** The `OpDocumentAdapter` over a sheets port, plus the held-remote queue the room drives. */
|
|
656
661
|
interface SheetsOtAdapter extends OpDocumentAdapter<SheetOp> {
|