@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.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/models/changeset.d.ts +1 -0
- package/lib/types/services/compress-mutation/compress-mutation-service.d.ts +2 -0
- package/lib/types/services/compress-mutation/compress-mutations/number-map.d.ts +11 -0
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
|
@@ -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[];
|
|
@@ -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>;
|