@univerjs-pro/collaboration 0.1.11 → 0.1.12

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.
Files changed (25) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/sheet-transform/algorithms/add-comment/__test__/add-comment.algo.spec.d.ts +1 -0
  4. package/lib/types/controllers/sheet-transform/algorithms/add-comment/__test__/util.d.ts +14 -0
  5. package/lib/types/controllers/sheet-transform/algorithms/add-comment/add-comment.algo.d.ts +4 -0
  6. package/lib/types/controllers/sheet-transform/algorithms/delete-comment/add-comment.algo.d.ts +4 -0
  7. package/lib/types/controllers/sheet-transform/algorithms/delete-comment/delete-comment.algo.d.ts +4 -0
  8. package/lib/types/controllers/sheet-transform/algorithms/insert-col/add-comment.algo.d.ts +18 -0
  9. package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-comment-ref.algo.d.ts +19 -0
  10. package/lib/types/controllers/sheet-transform/algorithms/insert-row/add-comment.algo.d.ts +5 -0
  11. package/lib/types/controllers/sheet-transform/algorithms/insert-row/update-comment-ref.algo.d.ts +5 -0
  12. package/lib/types/controllers/sheet-transform/algorithms/move-col/add-comment.algo.d.ts +5 -0
  13. package/lib/types/controllers/sheet-transform/algorithms/move-col/update-comment-ref.algo.d.ts +5 -0
  14. package/lib/types/controllers/sheet-transform/algorithms/move-range/add-comment.algo.d.ts +5 -0
  15. package/lib/types/controllers/sheet-transform/algorithms/move-range/update-comment-ref.algo.d.ts +5 -0
  16. package/lib/types/controllers/sheet-transform/algorithms/move-row/add-comment.algo.d.ts +5 -0
  17. package/lib/types/controllers/sheet-transform/algorithms/move-row/update-comment-ref.algo.d.ts +5 -0
  18. package/lib/types/controllers/sheet-transform/algorithms/remove-col/add-comment.algo.d.ts +5 -0
  19. package/lib/types/controllers/sheet-transform/algorithms/remove-col/update-comment-ref.algo.d.ts +5 -0
  20. package/lib/types/controllers/sheet-transform/algorithms/remove-row/add-comment.algo.d.ts +5 -0
  21. package/lib/types/controllers/sheet-transform/algorithms/remove-row/update-comment-ref.algo.d.ts +5 -0
  22. package/lib/types/controllers/sheet-transform/algorithms/update-comment/update-comment.algo.d.ts +4 -0
  23. package/lib/types/controllers/sheet-transform/algorithms/update-comment-ref/update-comment-ref.algo.d.ts +4 -0
  24. package/lib/umd/index.js +1 -1
  25. package/package.json +20 -18
@@ -0,0 +1,14 @@
1
+ import { IMutationTransformAlgorithm } from '../../../../../services/transform/transform.service';
2
+
3
+ export declare function createCommentTestBed(transform: IMutationTransformAlgorithm): {
4
+ univer: import('@univerjs/core').Univer;
5
+ get: {
6
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
7
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
8
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
9
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
10
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
11
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
12
+ };
13
+ transformService: import('../../../../../services/transform/transform.service').TransformService;
14
+ };
@@ -0,0 +1,4 @@
1
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
2
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+
4
+ export declare const addCommentMutationWithSelf: IMutationTransformAlgorithm<IAddCommentMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,4 @@
1
+ import { IAddCommentMutationParams, IDeleteCommentMutationParams } from '@univerjs/thread-comment';
2
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+
4
+ export declare const deleteCommentMutationWithAdd: IMutationTransformAlgorithm<IDeleteCommentMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,4 @@
1
+ import { IDeleteCommentMutationParams } from '@univerjs/thread-comment';
2
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+
4
+ export declare const deleteCommentMutationWithSelf: IMutationTransformAlgorithm<IDeleteCommentMutationParams, IDeleteCommentMutationParams>;
@@ -0,0 +1,18 @@
1
+ import { IInsertColMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams, IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { ICommandInfo, IMutationInfo } from '@univerjs/core';
4
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
5
+
6
+ export declare const transformAddCommentWithRefRange: (m2: IMutationInfo<IAddCommentMutationParams>, command: ICommandInfo) => {
7
+ id: string;
8
+ params: {
9
+ comment: undefined;
10
+ commentId: string;
11
+ unitId: string;
12
+ subUnitId: string;
13
+ };
14
+ }[] | {
15
+ id: string;
16
+ params: IUpdateCommentRefMutationParams;
17
+ }[];
18
+ export declare const insertColWithAddComment: IMutationTransformAlgorithm<IInsertColMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,19 @@
1
+ import { IInsertColMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { ICommandInfo, IMutationInfo } from '@univerjs/core';
4
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
5
+
6
+ export declare const transformUpdateCommentRefWithRefRange: (m2: IMutationInfo<IUpdateCommentRefMutationParams>, command: ICommandInfo) => {
7
+ id: string;
8
+ params: {
9
+ comment: undefined;
10
+ commentId: string;
11
+ unitId: string;
12
+ subUnitId: string;
13
+ payload: import('@univerjs/thread-comment/commands/mutations/comment.mutation.js').IUpdateCommentRefPayload;
14
+ };
15
+ }[] | {
16
+ id: string;
17
+ params: IUpdateCommentRefMutationParams;
18
+ }[];
19
+ export declare const insertColWithUpdateCommentRef: IMutationTransformAlgorithm<IInsertColMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IInsertRowMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const insertRowWithAddComment: IMutationTransformAlgorithm<IInsertRowMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IInsertRowMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const insertRowWithUpdateCommentRef: IMutationTransformAlgorithm<IInsertRowMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveColumnsMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveColWithAddComment: IMutationTransformAlgorithm<IMoveColumnsMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveColumnsMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveColsWithUpdateCommentRef: IMutationTransformAlgorithm<IMoveColumnsMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveRangeMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveRangeWithAddComment: IMutationTransformAlgorithm<IMoveRangeMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveRangeMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveRangeWithUpdateCommentRef: IMutationTransformAlgorithm<IMoveRangeMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveRowsMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveRowWithAddComment: IMutationTransformAlgorithm<IMoveRowsMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IMoveRowsMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const moveRowsWithUpdateCommentRef: IMutationTransformAlgorithm<IMoveRowsMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IRemoveColMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const removeColWithAddComment: IMutationTransformAlgorithm<IRemoveColMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IRemoveColMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const removeColWithUpdateCommentRef: IMutationTransformAlgorithm<IRemoveColMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IRemoveRowsMutationParams } from '@univerjs/sheets';
2
+ import { IAddCommentMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const removeRowWithAddComment: IMutationTransformAlgorithm<IRemoveRowsMutationParams, IAddCommentMutationParams>;
@@ -0,0 +1,5 @@
1
+ import { IRemoveRowsMutationParams } from '@univerjs/sheets';
2
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
3
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
4
+
5
+ export declare const removeRowWithUpdateCommentRef: IMutationTransformAlgorithm<IRemoveRowsMutationParams, IUpdateCommentRefMutationParams>;
@@ -0,0 +1,4 @@
1
+ import { IUpdateCommentMutationParams } from '@univerjs/thread-comment';
2
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+
4
+ export declare const updateCommentWithSelf: IMutationTransformAlgorithm<IUpdateCommentMutationParams, IUpdateCommentMutationParams>;
@@ -0,0 +1,4 @@
1
+ import { IUpdateCommentRefMutationParams } from '@univerjs/thread-comment';
2
+ import { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+
4
+ export declare const updateCommentRefWithSelf: IMutationTransformAlgorithm<IUpdateCommentRefMutationParams, IUpdateCommentRefMutationParams>;