@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.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/sheet-transform/algorithms/add-comment/__test__/add-comment.algo.spec.d.ts +1 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-comment/__test__/util.d.ts +14 -0
- package/lib/types/controllers/sheet-transform/algorithms/add-comment/add-comment.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/delete-comment/add-comment.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/delete-comment/delete-comment.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/add-comment.algo.d.ts +18 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-comment-ref.algo.d.ts +19 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/insert-row/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-col/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-range/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/move-row/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-col/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/add-comment.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/remove-row/update-comment-ref.algo.d.ts +5 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-comment/update-comment.algo.d.ts +4 -0
- package/lib/types/controllers/sheet-transform/algorithms/update-comment-ref/update-comment-ref.algo.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +20 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/delete-comment/delete-comment.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/insert-col/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/insert-row/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/move-col/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/move-range/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/move-row/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-col/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/remove-row/update-comment-ref.algo.d.ts
ADDED
|
@@ -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>;
|
package/lib/types/controllers/sheet-transform/algorithms/update-comment/update-comment.algo.d.ts
ADDED
|
@@ -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>;
|