@univerjs-pro/collaboration 0.12.0 → 0.12.1-nightly.202511221011

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.
@@ -16,6 +16,7 @@ export interface IChangeset {
16
16
  sid?: string;
17
17
  /** reqId works with sid, should be monotonically increasing and begin with 1 in the same edit session */
18
18
  reqId?: number;
19
+ mutationSize?: number | undefined;
19
20
  }
20
21
  export declare function parseProtocolChangeset(protocolChangeset: IProtocolChangeset): IChangeset;
21
22
  export declare function parseProtocolCommand(protocolCommands: IProtocolCommand[]): ICommandInfo[];
@@ -17,4 +17,6 @@ export declare class CompressMutationService {
17
17
  private _init;
18
18
  private _initSetRangeValues;
19
19
  private _handleInsertSheetCompressMutationSend;
20
+ private _handleCompressNumberMapMutationSend;
21
+ private _handleDecompressNumberMapMutationApply;
20
22
  }
@@ -0,0 +1,11 @@
1
+ import { IObjectArrayPrimitiveType, Nullable } from '@univerjs/core';
2
+ export type IntervalValue = number | [number, number];
3
+ export type PackedNumberMap = Record<string, IntervalValue[] | number>;
4
+ /**
5
+ * Compression function (Map -> PackedNumberMap)
6
+ */
7
+ export declare function packNumberMap(originalData: IObjectArrayPrimitiveType<Nullable<number>>): PackedNumberMap;
8
+ /**
9
+ * Unpack function (PackedNumberMap -> Map)
10
+ */
11
+ export declare function unpackNumberMap(compactData: PackedNumberMap): IObjectArrayPrimitiveType<number>;