@univerjs-pro/collaboration 0.1.17 → 0.2.0
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/types/controllers/sheet-transform/algorithms/__tests__/transform-test-bed.d.ts +6 -6
- package/lib/types/controllers/sheet-transform/algorithms/add-comment/__test__/util.d.ts +6 -6
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/__test__/util.d.ts +6 -6
- package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/add-data-validation.algo.d.ts +2 -2
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/add-comment.algo.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-comment-ref.algo.d.ts +1 -1
- package/lib/types/controllers/sheet-transform/algorithms/utils.d.ts +2 -2
- package/lib/types/models/collaboration-events.d.ts +8 -3
- package/lib/types/services/compress-mutation/compress-mutations/set-range-values.d.ts +1 -1
- package/lib/types/services/rev/__tests__/rev.service.spec.d.ts +6 -6
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
|
@@ -7,12 +7,12 @@ export declare function createTransformTestBed(algorithms: IMutationTransformAlg
|
|
|
7
7
|
export declare function createTransformTestUniver(algorithms: IMutationTransformAlgorithm[], dependencies?: Dependency[], workbookData?: IWorkbookData): {
|
|
8
8
|
univer: Univer;
|
|
9
9
|
get: {
|
|
10
|
-
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
10
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
11
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
12
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
13
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
14
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
15
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
16
16
|
};
|
|
17
17
|
transformService: TransformService;
|
|
18
18
|
};
|
|
@@ -3,12 +3,12 @@ import { IMutationTransformAlgorithm } from '../../../../../services/transform/t
|
|
|
3
3
|
export declare function createCommentTestBed(transform: IMutationTransformAlgorithm): {
|
|
4
4
|
univer: import('@univerjs/core').Univer;
|
|
5
5
|
get: {
|
|
6
|
-
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
6
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
8
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
9
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
10
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
11
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
12
12
|
};
|
|
13
13
|
transformService: import('../../../../../services/transform/transform.service').TransformService;
|
|
14
14
|
};
|
package/lib/types/controllers/sheet-transform/algorithms/add-data-validation/__test__/util.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { IMutationTransformAlgorithm } from '../../../../../services/transform/t
|
|
|
3
3
|
export declare function createDataValidationTestBed(transform: IMutationTransformAlgorithm): {
|
|
4
4
|
univer: import('@univerjs/core').Univer;
|
|
5
5
|
get: {
|
|
6
|
-
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
6
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
7
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
8
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
9
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
10
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
11
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
12
12
|
};
|
|
13
13
|
transformService: import('../../../../../services/transform/transform.service').TransformService;
|
|
14
14
|
};
|
|
@@ -6,11 +6,11 @@ export declare function applyAddMutationTransform(unitId: string, subUnitId: str
|
|
|
6
6
|
export declare function mergeAddMutation(m1: IMutationInfo<IAddDataValidationMutationParams>, mutations: (IMutationInfo<IRemoveDataValidationMutationParams> | IMutationInfo<IUpdateDataValidationMutationParams>)[]): {
|
|
7
7
|
params: {
|
|
8
8
|
rule: IDataValidationRule[];
|
|
9
|
-
index?: number
|
|
9
|
+
index?: number;
|
|
10
10
|
unitId: string;
|
|
11
11
|
subUnitId: string;
|
|
12
12
|
};
|
|
13
13
|
id: string;
|
|
14
|
-
type?: import("@univerjs/core").CommandType.MUTATION
|
|
14
|
+
type?: import("@univerjs/core").CommandType.MUTATION;
|
|
15
15
|
}[];
|
|
16
16
|
export declare const addDataValidationMutationWithSelf: IMutationTransformAlgorithm<IAddDataValidationMutationParams, IAddDataValidationMutationParams>;
|
package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-comment-ref.algo.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const transformUpdateCommentRefWithRefRange: (m2: IMutationInfo<I
|
|
|
11
11
|
unitId: string;
|
|
12
12
|
subUnitId: string;
|
|
13
13
|
payload: import('@univerjs/thread-comment/commands/mutations/comment.mutation.js').IUpdateCommentRefPayload;
|
|
14
|
-
silent?: boolean
|
|
14
|
+
silent?: boolean;
|
|
15
15
|
};
|
|
16
16
|
}[] | {
|
|
17
17
|
id: string;
|
|
@@ -4,8 +4,8 @@ export declare function toColumn(range: IRange): {
|
|
|
4
4
|
rangeType: RANGE_TYPE;
|
|
5
5
|
startColumn: number;
|
|
6
6
|
endColumn: number;
|
|
7
|
-
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType
|
|
8
|
-
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType
|
|
7
|
+
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
|
|
8
|
+
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
|
|
9
9
|
startRow: number;
|
|
10
10
|
endRow: number;
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IUpdateCursor, UniverType } from '@univerjs/protocol';
|
|
1
|
+
import { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ICommentUpdate, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IUpdateCursor, UniverType } from '@univerjs/protocol';
|
|
2
2
|
import { IChangeset } from './changeset';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -87,7 +87,8 @@ export declare enum CollaborationEvent {
|
|
|
87
87
|
* This type will be returned if an error is reported.
|
|
88
88
|
*/
|
|
89
89
|
MSG_FOR_ERROR = "error_msg",
|
|
90
|
-
PERMISSION_REJ = "permission_rej"
|
|
90
|
+
PERMISSION_REJ = "permission_rej",
|
|
91
|
+
COMMENT_UPDATE = "comment_update"
|
|
91
92
|
}
|
|
92
93
|
/**
|
|
93
94
|
* Awaiting mutations were acknowledged by the server.
|
|
@@ -206,7 +207,11 @@ export interface IMsgErrEvent {
|
|
|
206
207
|
eventID: CollaborationEvent.MSG_FOR_ERROR;
|
|
207
208
|
data: ICollaMsgErrorEvent;
|
|
208
209
|
}
|
|
210
|
+
export interface ICommentUpdateEvent {
|
|
211
|
+
eventID: CollaborationEvent.COMMENT_UPDATE;
|
|
212
|
+
data: ICommentUpdate;
|
|
213
|
+
}
|
|
209
214
|
/**
|
|
210
215
|
* A union type of all possible collaboration events.
|
|
211
216
|
*/
|
|
212
|
-
export type ICollaborationEvent = IAcknowledgementEvent | INewChangesetsEvent | IRejectionEvent | ISubmitChangesetEvent | IPseudoFetchMissingResultEvent | IUserSelectionEvent | IFetchingMissEvent | IUpdateCursorEvent | IUserJoinEvent | IUserLeaveEvent | ICustomEvent | IRequestHostEvent | IFetchOperationsEvent | ITerminateEvent | INewHostEvent | IOperationEvent | IMsgErrEvent;
|
|
217
|
+
export type ICollaborationEvent = IAcknowledgementEvent | INewChangesetsEvent | IRejectionEvent | ISubmitChangesetEvent | IPseudoFetchMissingResultEvent | IUserSelectionEvent | IFetchingMissEvent | IUpdateCursorEvent | IUserJoinEvent | IUserLeaveEvent | ICustomEvent | IRequestHostEvent | IFetchOperationsEvent | ITerminateEvent | INewHostEvent | IOperationEvent | IMsgErrEvent | ICommentUpdateEvent;
|
|
@@ -10,5 +10,5 @@ export declare const transformRefStyleFromCells: (matrix?: IObjectMatrixPrimitiv
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
export declare const transformCellsFromRefStyle: (matrix?: IObjectMatrixPrimitiveType<Nullable<ICellData>>, styleRefMap?: {
|
|
13
|
-
[id: string]: ICellData[
|
|
13
|
+
[id: string]: ICellData["s"];
|
|
14
14
|
}) => IObjectMatrixPrimitiveType<Nullable<ICellData>> | undefined;
|
|
@@ -9,12 +9,12 @@ export interface ITestBed {
|
|
|
9
9
|
export declare function createCollaborationTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[], plugins?: Array<PluginCtor<Plugin>>): {
|
|
10
10
|
univer: Univer;
|
|
11
11
|
get: {
|
|
12
|
-
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
<
|
|
12
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
13
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
14
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
15
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
16
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
17
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
18
18
|
};
|
|
19
19
|
sheet: Workbook;
|
|
20
20
|
};
|