@ai-matrx/office 0.8.43 → 0.8.45
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 +21 -0
- package/dist/collab-sheets-transform.cjs +12 -0
- package/dist/collab-sheets-transform.cjs.map +1 -1
- package/dist/collab-sheets-transform.js +12 -0
- package/dist/collab-sheets-transform.js.map +1 -1
- package/dist/docs.cjs +85 -24
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.d.cts +15 -1
- package/dist/docs.d.ts +15 -1
- package/dist/docs.js +65 -4
- package/dist/docs.js.map +1 -1
- package/dist/univer-collab.cjs +199 -17
- package/dist/univer-collab.cjs.map +1 -1
- package/dist/univer-collab.d.cts +72 -7
- package/dist/univer-collab.d.ts +72 -7
- package/dist/univer-collab.js +199 -17
- package/dist/univer-collab.js.map +1 -1
- package/package.json +6 -5
package/dist/univer-collab.d.cts
CHANGED
|
@@ -411,14 +411,18 @@ declare function undoStacksOf(service: unknown): {
|
|
|
411
411
|
/**
|
|
412
412
|
* §6.9: rebase one stack over a remote op; items that cannot follow are dropped. Returns how many were dropped.
|
|
413
413
|
*
|
|
414
|
-
* `stack` says which side of each item applies
|
|
415
|
-
* `
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
*
|
|
414
|
+
* `stack` says which side of each item applies next: an undo-stack item's `undoMutations`, a redo-stack item's
|
|
415
|
+
* `redoMutations`. A stack applies top first, so each item's active side applies to the document as the items
|
|
416
|
+
* above it leave it: the top item meets the remote op as it is, and every item below meets it carried past the
|
|
417
|
+
* active sides of the items above (rebasing each item against the same op put a deeper item at offsets the items
|
|
418
|
+
* above had moved). The inactive side meets the op carried past its own active side; it is a fallback only: the
|
|
419
|
+
* room rewrites it from the real document whenever the item runs (`openDocsOtRoom`, walk 2 F1), because a tie at
|
|
420
|
+
* the edge of what the active side removes cannot say on which side of a collaborator's letters it belongs.
|
|
420
421
|
*/
|
|
421
422
|
declare function rebaseUndoStack(items: UndoItem$1[], remote: DocsOp, stack: "undo" | "redo"): number;
|
|
423
|
+
/** Univer 1.0.4's undo and redo command ids (the outermost command of every mutation a history step runs). */
|
|
424
|
+
declare const UNDO_COMMAND = "univer.command.undo";
|
|
425
|
+
declare const REDO_COMMAND = "univer.command.redo";
|
|
422
426
|
declare function openDocsOtRoom(o: OpenDocsOtRoomOptions): DocsOtRoom;
|
|
423
427
|
|
|
424
428
|
interface CaretRange {
|
|
@@ -497,6 +501,8 @@ interface DocumentOtFactoryOptions {
|
|
|
497
501
|
/** One per open tab; never reused. */
|
|
498
502
|
clientId: string;
|
|
499
503
|
displayName?: string;
|
|
504
|
+
/** The signed-in person's picture, shown on their chip for the other seats. */
|
|
505
|
+
avatarUrl?: string | null;
|
|
500
506
|
readAntiEntropyIntervalMs?: () => Promise<number>;
|
|
501
507
|
onNotice?: (n: DocsOtNotice) => void;
|
|
502
508
|
onIncident?: (i: OpSessionIncident) => void;
|
|
@@ -615,6 +621,11 @@ interface SheetsOtPort {
|
|
|
615
621
|
busy(): boolean;
|
|
616
622
|
/** Run `fn` once no local command is running (immediately when none is). */
|
|
617
623
|
whenIdle(fn: () => void): void;
|
|
624
|
+
/**
|
|
625
|
+
* True when this remote op must wait (and so must every op after it) until `whenIdle`: the port's cell editor is
|
|
626
|
+
* open on a cell the op touches. The held ops apply when it closes, and the person's commit is rebased over them.
|
|
627
|
+
*/
|
|
628
|
+
defers?(op: SheetMutation[]): boolean;
|
|
618
629
|
/** Apply one committed mutation to this seat's workbook; throws when the editor refused it. */
|
|
619
630
|
applyRemote(m: SheetMutation): void;
|
|
620
631
|
/** The workbook as the editor holds it now (with resources), or null when none is mounted. */
|
|
@@ -635,11 +646,18 @@ interface SheetsOtPort {
|
|
|
635
646
|
/** Ask for a save (the record's one coalesced save). */
|
|
636
647
|
markDirty(): void;
|
|
637
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
* `resynced`: this seat's workbook disagreed with the room's (a peer's quiet hash, a save's hash or an ack) and the
|
|
651
|
+
* reload that healed it changed what the person sees. One notice per heal; a heal that changed nothing says nothing.
|
|
652
|
+
*/
|
|
638
653
|
type SheetsOtNotice = OpSessionNotice<SheetOp> | {
|
|
639
654
|
kind: "not_shared";
|
|
640
655
|
mutationId: string;
|
|
641
656
|
} | {
|
|
642
657
|
kind: "not_live";
|
|
658
|
+
} | {
|
|
659
|
+
kind: "resynced";
|
|
660
|
+
reason: string;
|
|
643
661
|
};
|
|
644
662
|
/**
|
|
645
663
|
* The adapter's transform: the C5a/C5b group transform, with `lost` widened by what y can no longer apply
|
|
@@ -780,6 +798,10 @@ interface SheetsWorksheetLike {
|
|
|
780
798
|
getMaxColumns?(): number;
|
|
781
799
|
getCellRaw(row: number, col: number): Obj | null | undefined;
|
|
782
800
|
getMergeData(): SheetRange[];
|
|
801
|
+
/** Univer's `Worksheet.getCellMatrix()` (every stored cell). */
|
|
802
|
+
getCellMatrix?(): {
|
|
803
|
+
forValue(fn: (row: number, col: number, cell: Obj | null | undefined) => unknown): void;
|
|
804
|
+
};
|
|
783
805
|
}
|
|
784
806
|
interface SheetsWorkbookLike {
|
|
785
807
|
getUnitId(): string;
|
|
@@ -819,10 +841,51 @@ interface UniverSheetsOtPortOptions {
|
|
|
819
841
|
* time on this seat. Without it a seat with a filter diverges from its peers on that write.
|
|
820
842
|
*/
|
|
821
843
|
filterRange?(unitId: string, subUnitId: string): SheetRange | null | undefined;
|
|
844
|
+
/**
|
|
845
|
+
* The cell this seat's cell editor is open on, or null when it is closed (`IEditorBridgeService`:
|
|
846
|
+
* `isVisible().visible` and `getEditLocation()`). Univer rewrites an open editor's text whenever any write lands on
|
|
847
|
+
* its cell (`EditorDataSyncController` → `refreshEditCellState` → the editor's `ReplaceSnapshotCommand`, caret back
|
|
848
|
+
* to 0), so a peer's value landing mid-typing spliced into the draft and Enter committed the mix (the attack's
|
|
849
|
+
* "$1,234.50" vs "$7" → 507). While the editor is open, a remote op that touches its cell or its sheet is held,
|
|
850
|
+
* and so is everything after it: the person's draft and the cell it is committed against stay as they saw them,
|
|
851
|
+
* and their commit is rebased over the held ops when the editor closes (the later commit wins whole).
|
|
852
|
+
*/
|
|
853
|
+
cellEditor?(): EditedCell | null;
|
|
822
854
|
/** Replace the workbook's whole content, keeping its unit id. */
|
|
823
855
|
load(snapshot: unknown): void;
|
|
824
856
|
markDirty(): void;
|
|
825
857
|
}
|
|
858
|
+
/** The cell an open cell editor is on. */
|
|
859
|
+
interface EditedCell {
|
|
860
|
+
sheetId: string;
|
|
861
|
+
row: number;
|
|
862
|
+
col: number;
|
|
863
|
+
}
|
|
864
|
+
/** What the port reads of Univer's `SheetsFilterService` (sheets-filter). */
|
|
865
|
+
interface FilterServiceLike {
|
|
866
|
+
getFilterModel(unitId: string, subUnitId: string): {
|
|
867
|
+
getRange(): SheetRange | null | undefined;
|
|
868
|
+
} | null | undefined;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* The port's `filterRange` over Univer's filter service: the range as the filter stores it, `rangeType` included.
|
|
872
|
+
* Every host lends this one (the editor, the fold, the fuzz seats): a host that dropped `rangeType` restored a peer's
|
|
873
|
+
* growth without it, and that seat's filter saved differently from the others (hash_mismatch, live attack rev 90).
|
|
874
|
+
*/
|
|
875
|
+
declare function filterServiceRange(service: () => FilterServiceLike | null | undefined): (unitId: string, subUnitId: string) => SheetRange | null;
|
|
876
|
+
/** What the port reads of Univer's `IEditorBridgeService` (sheets-ui). */
|
|
877
|
+
interface EditorBridgeLike {
|
|
878
|
+
isVisible(): {
|
|
879
|
+
visible: boolean;
|
|
880
|
+
};
|
|
881
|
+
getEditLocation(): {
|
|
882
|
+
sheetId: string;
|
|
883
|
+
row: number;
|
|
884
|
+
column: number;
|
|
885
|
+
} | null | undefined;
|
|
886
|
+
}
|
|
887
|
+
/** The port's `cellEditor` over Univer's editor bridge: the cell the cell editor is open on, or null. */
|
|
888
|
+
declare function editorBridgeCell(bridge: EditorBridgeLike): () => EditedCell | null;
|
|
826
889
|
/** One selection as `SheetsSelectionsService` holds it (range, primary cell, style). */
|
|
827
890
|
interface SheetSelection {
|
|
828
891
|
range: SheetRange & {
|
|
@@ -901,6 +964,8 @@ interface WorkbookOtRoomOptions {
|
|
|
901
964
|
/** One per open tab; never reused. */
|
|
902
965
|
clientId: string;
|
|
903
966
|
displayName?: string;
|
|
967
|
+
/** The signed-in person's picture, shown on their chip for the other seats. */
|
|
968
|
+
avatarUrl?: string | null;
|
|
904
969
|
readAntiEntropyIntervalMs?: () => Promise<number>;
|
|
905
970
|
onAwareness?: (states: Map<number, AwarenessState>) => void;
|
|
906
971
|
onNotice?: (n: SheetsOtNotice) => void;
|
|
@@ -929,4 +994,4 @@ declare function startWorkbookOtRoom(port: SheetsOtPort & {
|
|
|
929
994
|
dispose?: () => void;
|
|
930
995
|
}, o: WorkbookOtRoomOptions): Promise<WorkbookOtRoomHandle>;
|
|
931
996
|
|
|
932
|
-
export { COLLAB_COVERED_KEY, type CollabBase, type CollabMutationInfo, type CollabProviderLike, type CommandServiceLike, DOCS_COLLAB_PROTO, DOCS_TRANSFORM_VERSION, DOC_LOCAL_KEYS, type DocsLocalMutation, type DocsLost, type DocsOp, type DocsOtNotice, type DocsOtPort, type DocsOtRoom, type DocsTransformResult, type DocumentOtFactoryOptions, type DocumentRestoreDeps, type DocumentRestoreResult, type OpenDocsOtRoomOptions, type OpenSheetsOtRoomOptions, type OtRoomsKnob, RICH_TEXT_EDITING, SENDER_VIEW_PARAMS, SHEETS_COLLAB_PROTO, SHEETS_EDIT_GROUP, SHEETS_READABLE_PROTOS, SHEET_ROOM_EDITOR_PRESETS, SHEET_ROOM_PLUGIN_PACKAGES, type SheetOp, type SheetSelection, type SheetsCommandService, type SheetsLocalEvent, type SheetsLocalGroup, type SheetsNotShared, type SheetsOtAdapter, type SheetsOtAdapterHooks, type SheetsOtNotice, type SheetsOtPort, type SheetsOtRoom, type SheetsWorkbookLike, type SheetsWorksheetLike, type UniverSheetsOtPortOptions, WorkbookCollabSession, type WorkbookCollabSessionOptions, type WorkbookOtRoomHandle, type WorkbookOtRoomOptions, type WorkbookOtRoomsKnob, applyDocsOp, asLoadedDocsSnapshot, canonicalDocsSnapshot, canonicalDocsString, canonicalKeys, canonicalSheet, canonicalSheetString, composeDocsOps, createSheetsOtAdapter, decodeSheetOp, docsStateHash, documentOtFactory, documentUsesOrderedRoom, dropEmptyStyleRetains, encodeSheetOp, invertDocsOp, isCellEditorScratch, isNoopDocsOp, moveSelectionsThrough, normalizeDocsOp, offlineTextOfGroups, openDocsOtRoom, openSheetsOtRoom, rebaseSheetUndoStack, rebaseUndoStack, restoreDocumentSnapshot, sheetsStateHash, stampCovered, stampDeterministicIds, startWorkbookOtRoom, stripSenderView, takeCovered, transformDocsOp, transformSheetOp, transformTextX, undoStacksOf, univerSheetsOtPort, workbookUsesOrderedRoom };
|
|
997
|
+
export { COLLAB_COVERED_KEY, type CollabBase, type CollabMutationInfo, type CollabProviderLike, type CommandServiceLike, DOCS_COLLAB_PROTO, DOCS_TRANSFORM_VERSION, DOC_LOCAL_KEYS, type DocsLocalMutation, type DocsLost, type DocsOp, type DocsOtNotice, type DocsOtPort, type DocsOtRoom, type DocsTransformResult, type DocumentOtFactoryOptions, type DocumentRestoreDeps, type DocumentRestoreResult, type EditedCell, type EditorBridgeLike, type FilterServiceLike, type OpenDocsOtRoomOptions, type OpenSheetsOtRoomOptions, type OtRoomsKnob, REDO_COMMAND, RICH_TEXT_EDITING, SENDER_VIEW_PARAMS, SHEETS_COLLAB_PROTO, SHEETS_EDIT_GROUP, SHEETS_READABLE_PROTOS, SHEET_ROOM_EDITOR_PRESETS, SHEET_ROOM_PLUGIN_PACKAGES, type SheetOp, type SheetSelection, type SheetsCommandService, type SheetsLocalEvent, type SheetsLocalGroup, type SheetsNotShared, type SheetsOtAdapter, type SheetsOtAdapterHooks, type SheetsOtNotice, type SheetsOtPort, type SheetsOtRoom, type SheetsWorkbookLike, type SheetsWorksheetLike, UNDO_COMMAND, type UniverSheetsOtPortOptions, WorkbookCollabSession, type WorkbookCollabSessionOptions, type WorkbookOtRoomHandle, type WorkbookOtRoomOptions, type WorkbookOtRoomsKnob, applyDocsOp, asLoadedDocsSnapshot, canonicalDocsSnapshot, canonicalDocsString, canonicalKeys, canonicalSheet, canonicalSheetString, composeDocsOps, createSheetsOtAdapter, decodeSheetOp, docsStateHash, documentOtFactory, documentUsesOrderedRoom, dropEmptyStyleRetains, editorBridgeCell, encodeSheetOp, filterServiceRange, invertDocsOp, isCellEditorScratch, isNoopDocsOp, moveSelectionsThrough, normalizeDocsOp, offlineTextOfGroups, openDocsOtRoom, openSheetsOtRoom, rebaseSheetUndoStack, rebaseUndoStack, restoreDocumentSnapshot, sheetsStateHash, stampCovered, stampDeterministicIds, startWorkbookOtRoom, stripSenderView, takeCovered, transformDocsOp, transformSheetOp, transformTextX, undoStacksOf, univerSheetsOtPort, workbookUsesOrderedRoom };
|
package/dist/univer-collab.d.ts
CHANGED
|
@@ -411,14 +411,18 @@ declare function undoStacksOf(service: unknown): {
|
|
|
411
411
|
/**
|
|
412
412
|
* §6.9: rebase one stack over a remote op; items that cannot follow are dropped. Returns how many were dropped.
|
|
413
413
|
*
|
|
414
|
-
* `stack` says which side of each item applies
|
|
415
|
-
* `
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
*
|
|
414
|
+
* `stack` says which side of each item applies next: an undo-stack item's `undoMutations`, a redo-stack item's
|
|
415
|
+
* `redoMutations`. A stack applies top first, so each item's active side applies to the document as the items
|
|
416
|
+
* above it leave it: the top item meets the remote op as it is, and every item below meets it carried past the
|
|
417
|
+
* active sides of the items above (rebasing each item against the same op put a deeper item at offsets the items
|
|
418
|
+
* above had moved). The inactive side meets the op carried past its own active side; it is a fallback only: the
|
|
419
|
+
* room rewrites it from the real document whenever the item runs (`openDocsOtRoom`, walk 2 F1), because a tie at
|
|
420
|
+
* the edge of what the active side removes cannot say on which side of a collaborator's letters it belongs.
|
|
420
421
|
*/
|
|
421
422
|
declare function rebaseUndoStack(items: UndoItem$1[], remote: DocsOp, stack: "undo" | "redo"): number;
|
|
423
|
+
/** Univer 1.0.4's undo and redo command ids (the outermost command of every mutation a history step runs). */
|
|
424
|
+
declare const UNDO_COMMAND = "univer.command.undo";
|
|
425
|
+
declare const REDO_COMMAND = "univer.command.redo";
|
|
422
426
|
declare function openDocsOtRoom(o: OpenDocsOtRoomOptions): DocsOtRoom;
|
|
423
427
|
|
|
424
428
|
interface CaretRange {
|
|
@@ -497,6 +501,8 @@ interface DocumentOtFactoryOptions {
|
|
|
497
501
|
/** One per open tab; never reused. */
|
|
498
502
|
clientId: string;
|
|
499
503
|
displayName?: string;
|
|
504
|
+
/** The signed-in person's picture, shown on their chip for the other seats. */
|
|
505
|
+
avatarUrl?: string | null;
|
|
500
506
|
readAntiEntropyIntervalMs?: () => Promise<number>;
|
|
501
507
|
onNotice?: (n: DocsOtNotice) => void;
|
|
502
508
|
onIncident?: (i: OpSessionIncident) => void;
|
|
@@ -615,6 +621,11 @@ interface SheetsOtPort {
|
|
|
615
621
|
busy(): boolean;
|
|
616
622
|
/** Run `fn` once no local command is running (immediately when none is). */
|
|
617
623
|
whenIdle(fn: () => void): void;
|
|
624
|
+
/**
|
|
625
|
+
* True when this remote op must wait (and so must every op after it) until `whenIdle`: the port's cell editor is
|
|
626
|
+
* open on a cell the op touches. The held ops apply when it closes, and the person's commit is rebased over them.
|
|
627
|
+
*/
|
|
628
|
+
defers?(op: SheetMutation[]): boolean;
|
|
618
629
|
/** Apply one committed mutation to this seat's workbook; throws when the editor refused it. */
|
|
619
630
|
applyRemote(m: SheetMutation): void;
|
|
620
631
|
/** The workbook as the editor holds it now (with resources), or null when none is mounted. */
|
|
@@ -635,11 +646,18 @@ interface SheetsOtPort {
|
|
|
635
646
|
/** Ask for a save (the record's one coalesced save). */
|
|
636
647
|
markDirty(): void;
|
|
637
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
* `resynced`: this seat's workbook disagreed with the room's (a peer's quiet hash, a save's hash or an ack) and the
|
|
651
|
+
* reload that healed it changed what the person sees. One notice per heal; a heal that changed nothing says nothing.
|
|
652
|
+
*/
|
|
638
653
|
type SheetsOtNotice = OpSessionNotice<SheetOp> | {
|
|
639
654
|
kind: "not_shared";
|
|
640
655
|
mutationId: string;
|
|
641
656
|
} | {
|
|
642
657
|
kind: "not_live";
|
|
658
|
+
} | {
|
|
659
|
+
kind: "resynced";
|
|
660
|
+
reason: string;
|
|
643
661
|
};
|
|
644
662
|
/**
|
|
645
663
|
* The adapter's transform: the C5a/C5b group transform, with `lost` widened by what y can no longer apply
|
|
@@ -780,6 +798,10 @@ interface SheetsWorksheetLike {
|
|
|
780
798
|
getMaxColumns?(): number;
|
|
781
799
|
getCellRaw(row: number, col: number): Obj | null | undefined;
|
|
782
800
|
getMergeData(): SheetRange[];
|
|
801
|
+
/** Univer's `Worksheet.getCellMatrix()` (every stored cell). */
|
|
802
|
+
getCellMatrix?(): {
|
|
803
|
+
forValue(fn: (row: number, col: number, cell: Obj | null | undefined) => unknown): void;
|
|
804
|
+
};
|
|
783
805
|
}
|
|
784
806
|
interface SheetsWorkbookLike {
|
|
785
807
|
getUnitId(): string;
|
|
@@ -819,10 +841,51 @@ interface UniverSheetsOtPortOptions {
|
|
|
819
841
|
* time on this seat. Without it a seat with a filter diverges from its peers on that write.
|
|
820
842
|
*/
|
|
821
843
|
filterRange?(unitId: string, subUnitId: string): SheetRange | null | undefined;
|
|
844
|
+
/**
|
|
845
|
+
* The cell this seat's cell editor is open on, or null when it is closed (`IEditorBridgeService`:
|
|
846
|
+
* `isVisible().visible` and `getEditLocation()`). Univer rewrites an open editor's text whenever any write lands on
|
|
847
|
+
* its cell (`EditorDataSyncController` → `refreshEditCellState` → the editor's `ReplaceSnapshotCommand`, caret back
|
|
848
|
+
* to 0), so a peer's value landing mid-typing spliced into the draft and Enter committed the mix (the attack's
|
|
849
|
+
* "$1,234.50" vs "$7" → 507). While the editor is open, a remote op that touches its cell or its sheet is held,
|
|
850
|
+
* and so is everything after it: the person's draft and the cell it is committed against stay as they saw them,
|
|
851
|
+
* and their commit is rebased over the held ops when the editor closes (the later commit wins whole).
|
|
852
|
+
*/
|
|
853
|
+
cellEditor?(): EditedCell | null;
|
|
822
854
|
/** Replace the workbook's whole content, keeping its unit id. */
|
|
823
855
|
load(snapshot: unknown): void;
|
|
824
856
|
markDirty(): void;
|
|
825
857
|
}
|
|
858
|
+
/** The cell an open cell editor is on. */
|
|
859
|
+
interface EditedCell {
|
|
860
|
+
sheetId: string;
|
|
861
|
+
row: number;
|
|
862
|
+
col: number;
|
|
863
|
+
}
|
|
864
|
+
/** What the port reads of Univer's `SheetsFilterService` (sheets-filter). */
|
|
865
|
+
interface FilterServiceLike {
|
|
866
|
+
getFilterModel(unitId: string, subUnitId: string): {
|
|
867
|
+
getRange(): SheetRange | null | undefined;
|
|
868
|
+
} | null | undefined;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* The port's `filterRange` over Univer's filter service: the range as the filter stores it, `rangeType` included.
|
|
872
|
+
* Every host lends this one (the editor, the fold, the fuzz seats): a host that dropped `rangeType` restored a peer's
|
|
873
|
+
* growth without it, and that seat's filter saved differently from the others (hash_mismatch, live attack rev 90).
|
|
874
|
+
*/
|
|
875
|
+
declare function filterServiceRange(service: () => FilterServiceLike | null | undefined): (unitId: string, subUnitId: string) => SheetRange | null;
|
|
876
|
+
/** What the port reads of Univer's `IEditorBridgeService` (sheets-ui). */
|
|
877
|
+
interface EditorBridgeLike {
|
|
878
|
+
isVisible(): {
|
|
879
|
+
visible: boolean;
|
|
880
|
+
};
|
|
881
|
+
getEditLocation(): {
|
|
882
|
+
sheetId: string;
|
|
883
|
+
row: number;
|
|
884
|
+
column: number;
|
|
885
|
+
} | null | undefined;
|
|
886
|
+
}
|
|
887
|
+
/** The port's `cellEditor` over Univer's editor bridge: the cell the cell editor is open on, or null. */
|
|
888
|
+
declare function editorBridgeCell(bridge: EditorBridgeLike): () => EditedCell | null;
|
|
826
889
|
/** One selection as `SheetsSelectionsService` holds it (range, primary cell, style). */
|
|
827
890
|
interface SheetSelection {
|
|
828
891
|
range: SheetRange & {
|
|
@@ -901,6 +964,8 @@ interface WorkbookOtRoomOptions {
|
|
|
901
964
|
/** One per open tab; never reused. */
|
|
902
965
|
clientId: string;
|
|
903
966
|
displayName?: string;
|
|
967
|
+
/** The signed-in person's picture, shown on their chip for the other seats. */
|
|
968
|
+
avatarUrl?: string | null;
|
|
904
969
|
readAntiEntropyIntervalMs?: () => Promise<number>;
|
|
905
970
|
onAwareness?: (states: Map<number, AwarenessState>) => void;
|
|
906
971
|
onNotice?: (n: SheetsOtNotice) => void;
|
|
@@ -929,4 +994,4 @@ declare function startWorkbookOtRoom(port: SheetsOtPort & {
|
|
|
929
994
|
dispose?: () => void;
|
|
930
995
|
}, o: WorkbookOtRoomOptions): Promise<WorkbookOtRoomHandle>;
|
|
931
996
|
|
|
932
|
-
export { COLLAB_COVERED_KEY, type CollabBase, type CollabMutationInfo, type CollabProviderLike, type CommandServiceLike, DOCS_COLLAB_PROTO, DOCS_TRANSFORM_VERSION, DOC_LOCAL_KEYS, type DocsLocalMutation, type DocsLost, type DocsOp, type DocsOtNotice, type DocsOtPort, type DocsOtRoom, type DocsTransformResult, type DocumentOtFactoryOptions, type DocumentRestoreDeps, type DocumentRestoreResult, type OpenDocsOtRoomOptions, type OpenSheetsOtRoomOptions, type OtRoomsKnob, RICH_TEXT_EDITING, SENDER_VIEW_PARAMS, SHEETS_COLLAB_PROTO, SHEETS_EDIT_GROUP, SHEETS_READABLE_PROTOS, SHEET_ROOM_EDITOR_PRESETS, SHEET_ROOM_PLUGIN_PACKAGES, type SheetOp, type SheetSelection, type SheetsCommandService, type SheetsLocalEvent, type SheetsLocalGroup, type SheetsNotShared, type SheetsOtAdapter, type SheetsOtAdapterHooks, type SheetsOtNotice, type SheetsOtPort, type SheetsOtRoom, type SheetsWorkbookLike, type SheetsWorksheetLike, type UniverSheetsOtPortOptions, WorkbookCollabSession, type WorkbookCollabSessionOptions, type WorkbookOtRoomHandle, type WorkbookOtRoomOptions, type WorkbookOtRoomsKnob, applyDocsOp, asLoadedDocsSnapshot, canonicalDocsSnapshot, canonicalDocsString, canonicalKeys, canonicalSheet, canonicalSheetString, composeDocsOps, createSheetsOtAdapter, decodeSheetOp, docsStateHash, documentOtFactory, documentUsesOrderedRoom, dropEmptyStyleRetains, encodeSheetOp, invertDocsOp, isCellEditorScratch, isNoopDocsOp, moveSelectionsThrough, normalizeDocsOp, offlineTextOfGroups, openDocsOtRoom, openSheetsOtRoom, rebaseSheetUndoStack, rebaseUndoStack, restoreDocumentSnapshot, sheetsStateHash, stampCovered, stampDeterministicIds, startWorkbookOtRoom, stripSenderView, takeCovered, transformDocsOp, transformSheetOp, transformTextX, undoStacksOf, univerSheetsOtPort, workbookUsesOrderedRoom };
|
|
997
|
+
export { COLLAB_COVERED_KEY, type CollabBase, type CollabMutationInfo, type CollabProviderLike, type CommandServiceLike, DOCS_COLLAB_PROTO, DOCS_TRANSFORM_VERSION, DOC_LOCAL_KEYS, type DocsLocalMutation, type DocsLost, type DocsOp, type DocsOtNotice, type DocsOtPort, type DocsOtRoom, type DocsTransformResult, type DocumentOtFactoryOptions, type DocumentRestoreDeps, type DocumentRestoreResult, type EditedCell, type EditorBridgeLike, type FilterServiceLike, type OpenDocsOtRoomOptions, type OpenSheetsOtRoomOptions, type OtRoomsKnob, REDO_COMMAND, RICH_TEXT_EDITING, SENDER_VIEW_PARAMS, SHEETS_COLLAB_PROTO, SHEETS_EDIT_GROUP, SHEETS_READABLE_PROTOS, SHEET_ROOM_EDITOR_PRESETS, SHEET_ROOM_PLUGIN_PACKAGES, type SheetOp, type SheetSelection, type SheetsCommandService, type SheetsLocalEvent, type SheetsLocalGroup, type SheetsNotShared, type SheetsOtAdapter, type SheetsOtAdapterHooks, type SheetsOtNotice, type SheetsOtPort, type SheetsOtRoom, type SheetsWorkbookLike, type SheetsWorksheetLike, UNDO_COMMAND, type UniverSheetsOtPortOptions, WorkbookCollabSession, type WorkbookCollabSessionOptions, type WorkbookOtRoomHandle, type WorkbookOtRoomOptions, type WorkbookOtRoomsKnob, applyDocsOp, asLoadedDocsSnapshot, canonicalDocsSnapshot, canonicalDocsString, canonicalKeys, canonicalSheet, canonicalSheetString, composeDocsOps, createSheetsOtAdapter, decodeSheetOp, docsStateHash, documentOtFactory, documentUsesOrderedRoom, dropEmptyStyleRetains, editorBridgeCell, encodeSheetOp, filterServiceRange, invertDocsOp, isCellEditorScratch, isNoopDocsOp, moveSelectionsThrough, normalizeDocsOp, offlineTextOfGroups, openDocsOtRoom, openSheetsOtRoom, rebaseSheetUndoStack, rebaseUndoStack, restoreDocumentSnapshot, sheetsStateHash, stampCovered, stampDeterministicIds, startWorkbookOtRoom, stripSenderView, takeCovered, transformDocsOp, transformSheetOp, transformTextX, undoStacksOf, univerSheetsOtPort, workbookUsesOrderedRoom };
|