@univerjs-pro/collaboration 0.2.6 → 0.2.7
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/umd/index.js +1 -1
- package/package.json +26 -26
- package/lib/types/controllers/doc-transform/json-x-pro/json-x-pro.d.ts +0 -6
- package/lib/types/controllers/doc-transform/text-x-pro/__tests__/transform-position.spec.d.ts +0 -1
- package/lib/types/controllers/doc-transform/text-x-pro/__tests__/transform.spec.d.ts +0 -1
- package/lib/types/controllers/doc-transform/text-x-pro/text-x-pro.d.ts +0 -36
- package/lib/types/controllers/doc-transform/text-x-pro/utils.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@univerjs/core": "0.2.
|
|
47
|
-
"@univerjs/data-validation": "0.2.
|
|
48
|
-
"@univerjs/
|
|
49
|
-
"@univerjs/
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs/sheets-conditional-formatting": "0.2.
|
|
52
|
-
"@univerjs/sheets-
|
|
53
|
-
"@univerjs/sheets-
|
|
54
|
-
"@univerjs/sheets-
|
|
55
|
-
"@univerjs/thread-comment": "0.2.
|
|
46
|
+
"@univerjs/core": "0.2.7",
|
|
47
|
+
"@univerjs/data-validation": "0.2.7",
|
|
48
|
+
"@univerjs/sheets": "0.2.7",
|
|
49
|
+
"@univerjs/docs": "0.2.7",
|
|
50
|
+
"@univerjs/engine-formula": "0.2.7",
|
|
51
|
+
"@univerjs/sheets-conditional-formatting": "0.2.7",
|
|
52
|
+
"@univerjs/sheets-hyper-link": "0.2.7",
|
|
53
|
+
"@univerjs/sheets-drawing": "0.2.7",
|
|
54
|
+
"@univerjs/sheets-filter": "0.2.7",
|
|
55
|
+
"@univerjs/thread-comment": "0.2.7"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"uuid": "^10.0.0",
|
|
59
|
-
"@univerjs/protocol": "0.1.
|
|
59
|
+
"@univerjs/protocol": "0.1.39-alpha.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"typescript": "^5.5.
|
|
63
|
-
"vite": "^5.
|
|
64
|
-
"vitest": "^2.0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/shared": "0.2.
|
|
72
|
-
"@univerjs/sheets": "0.2.
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/
|
|
75
|
-
"@univerjs/thread-comment": "0.2.
|
|
62
|
+
"typescript": "^5.5.4",
|
|
63
|
+
"vite": "^5.4.0",
|
|
64
|
+
"vitest": "^2.0.5",
|
|
65
|
+
"@univerjs/docs": "0.2.7",
|
|
66
|
+
"@univerjs/core": "0.2.7",
|
|
67
|
+
"@univerjs/data-validation": "0.2.7",
|
|
68
|
+
"@univerjs/engine-formula": "0.2.7",
|
|
69
|
+
"@univerjs/drawing": "0.2.7",
|
|
70
|
+
"@univerjs/sheets": "0.2.7",
|
|
71
|
+
"@univerjs/shared": "0.2.7",
|
|
72
|
+
"@univerjs/sheets-drawing": "0.2.7",
|
|
73
|
+
"@univerjs/sheets-hyper-link": "0.2.7",
|
|
74
|
+
"@univerjs/engine-render": "0.2.7",
|
|
75
|
+
"@univerjs/thread-comment": "0.2.7"
|
|
76
76
|
},
|
|
77
77
|
"univerSpace": {
|
|
78
78
|
".": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { JSONXActions, TPriority, JSON1, JSONX } from '@univerjs/core';
|
|
2
|
-
|
|
3
|
-
export declare class JSONXPro extends JSONX {
|
|
4
|
-
static transform(thisActions: JSONXActions, otherActions: JSONXActions, priority: TPriority): JSON1.JSONOpList | null | undefined;
|
|
5
|
-
static transformPosition(thisActions: JSONXActions, index: number, priority?: TPriority): number;
|
|
6
|
-
}
|
package/lib/types/controllers/doc-transform/text-x-pro/__tests__/transform-position.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TextXAction, TPriority, TextX } from '@univerjs/core';
|
|
2
|
-
|
|
3
|
-
export declare class TextXPro extends TextX {
|
|
4
|
-
static name: string;
|
|
5
|
-
static id: string;
|
|
6
|
-
/**
|
|
7
|
-
* |(this↓ \| other→) | **insert** | **retain** | **delete** |
|
|
8
|
-
* | ---------------- | ---------- | ---------- | ---------- |
|
|
9
|
-
* | **insert** | Case 1 | Case 2 | Case 2 |
|
|
10
|
-
* | **retain** | Case 1 | Case 5 | Case 4 |
|
|
11
|
-
* | **delete** | Case 1 | Case 3 | Case 3 |
|
|
12
|
-
*
|
|
13
|
-
* Case 1: When the other action type is an insert operation,
|
|
14
|
-
* the insert operation is retained regardless of the type of action this action
|
|
15
|
-
* Case 2: When this action type is an insert operation and the other action type is a
|
|
16
|
-
* non-insert operation, you need to retain the length of this action insert
|
|
17
|
-
* Case 3: When this action is a delete operation, there are two scenarios:
|
|
18
|
-
* 1) When other is a delete operation, since it is a delete operation, this has
|
|
19
|
-
* already been deleted, so the target does not need to be in delete, and it can
|
|
20
|
-
* be continued directly
|
|
21
|
-
* 2) When other is the retain operation, although this action delete occurs first,
|
|
22
|
-
* the delete priority is higher, so the delete operation is retained, and the origin
|
|
23
|
-
* delete has been applied, so it is directly continued
|
|
24
|
-
* Case 4: other is the delete operation, this is the retain operation, and the target delete operation
|
|
25
|
-
* is kept
|
|
26
|
-
* Case 5: When both other and this are retain operations
|
|
27
|
-
* 1) If the other body attribute does not exist, directly retain length
|
|
28
|
-
* 2) If the other body property exists, then execute the TransformBody logic to override it
|
|
29
|
-
*/
|
|
30
|
-
static transform(thisActions: TextXAction[], otherActions: TextXAction[], priority?: TPriority): TextXAction[];
|
|
31
|
-
/**
|
|
32
|
-
* Used to transform selection. Why not named transformSelection?
|
|
33
|
-
* Because Univer Doc supports multiple Selections in one document, user need to encapsulate transformSelections at the application layer.
|
|
34
|
-
*/
|
|
35
|
-
static transformPosition(thisActions: TextXAction[], index: number, priority?: boolean): number;
|
|
36
|
-
}
|