@ai-matrx/office 0.8.19 → 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 +23 -0
- 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 +420 -64
- package/dist/univer-collab.cjs.map +1 -1
- package/dist/univer-collab.d.cts +7 -1
- package/dist/univer-collab.d.ts +7 -1
- package/dist/univer-collab.js +424 -67
- package/dist/univer-collab.js.map +1 -1
- package/package.json +4 -4
package/dist/univer-collab.d.cts
CHANGED
|
@@ -128,6 +128,7 @@ declare class WorkbookCollabSession {
|
|
|
128
128
|
private muted;
|
|
129
129
|
private started;
|
|
130
130
|
private disposed;
|
|
131
|
+
private stopColor;
|
|
131
132
|
/** Room entries this seat holds in its content: applied from a peer, or made here. */
|
|
132
133
|
private readonly applied;
|
|
133
134
|
/** Entries without an id (a peer on an older build) are applied once, by identity. */
|
|
@@ -562,7 +563,7 @@ type SheetOp = SheetMutation[] | null;
|
|
|
562
563
|
* The room's protocol (§6.4): Univer 1.0.4 + transformer `SHEET_TRANSFORMER_VERSION`. Any Univer or transformer
|
|
563
564
|
* change raises it; a room at another proto opens read-only for this build.
|
|
564
565
|
*/
|
|
565
|
-
declare const SHEETS_COLLAB_PROTO =
|
|
566
|
+
declare const SHEETS_COLLAB_PROTO = 2;
|
|
566
567
|
declare const SHEETS_EDIT_GROUP = "sheets.edit";
|
|
567
568
|
/** One outermost command's traveling mutations, as the port hands them over. */
|
|
568
569
|
interface SheetsLocalGroup {
|
|
@@ -650,6 +651,11 @@ declare function rebaseSheetUndoStack(items: UndoItem[], remote: SheetOp, unitId
|
|
|
650
651
|
interface SheetsOtAdapterHooks {
|
|
651
652
|
/** Called once per applied remote op that rebased this seat's undo stacks (for tests and logs). */
|
|
652
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>;
|
|
653
659
|
}
|
|
654
660
|
/** The `OpDocumentAdapter` over a sheets port, plus the held-remote queue the room drives. */
|
|
655
661
|
interface SheetsOtAdapter extends OpDocumentAdapter<SheetOp> {
|
package/dist/univer-collab.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ declare class WorkbookCollabSession {
|
|
|
128
128
|
private muted;
|
|
129
129
|
private started;
|
|
130
130
|
private disposed;
|
|
131
|
+
private stopColor;
|
|
131
132
|
/** Room entries this seat holds in its content: applied from a peer, or made here. */
|
|
132
133
|
private readonly applied;
|
|
133
134
|
/** Entries without an id (a peer on an older build) are applied once, by identity. */
|
|
@@ -562,7 +563,7 @@ type SheetOp = SheetMutation[] | null;
|
|
|
562
563
|
* The room's protocol (§6.4): Univer 1.0.4 + transformer `SHEET_TRANSFORMER_VERSION`. Any Univer or transformer
|
|
563
564
|
* change raises it; a room at another proto opens read-only for this build.
|
|
564
565
|
*/
|
|
565
|
-
declare const SHEETS_COLLAB_PROTO =
|
|
566
|
+
declare const SHEETS_COLLAB_PROTO = 2;
|
|
566
567
|
declare const SHEETS_EDIT_GROUP = "sheets.edit";
|
|
567
568
|
/** One outermost command's traveling mutations, as the port hands them over. */
|
|
568
569
|
interface SheetsLocalGroup {
|
|
@@ -650,6 +651,11 @@ declare function rebaseSheetUndoStack(items: UndoItem[], remote: SheetOp, unitId
|
|
|
650
651
|
interface SheetsOtAdapterHooks {
|
|
651
652
|
/** Called once per applied remote op that rebased this seat's undo stacks (for tests and logs). */
|
|
652
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>;
|
|
653
659
|
}
|
|
654
660
|
/** The `OpDocumentAdapter` over a sheets port, plus the held-remote queue the room drives. */
|
|
655
661
|
interface SheetsOtAdapter extends OpDocumentAdapter<SheetOp> {
|