@univerjs-pro/collaboration-client 0.2.2 → 0.2.3
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/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/services/permission/permission.service.d.ts +14 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/locale/en-US.json
CHANGED
@@ -24,7 +24,8 @@
|
|
24
24
|
"collaboration": {
|
25
25
|
"single-unit": {
|
26
26
|
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
27
|
-
}
|
27
|
+
},
|
28
|
+
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
28
29
|
},
|
29
30
|
"auth": {
|
30
31
|
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
package/lib/locale/ru-RU.json
CHANGED
@@ -24,7 +24,8 @@
|
|
24
24
|
"collaboration": {
|
25
25
|
"single-unit": {
|
26
26
|
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
27
|
-
}
|
27
|
+
},
|
28
|
+
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
28
29
|
},
|
29
30
|
"auth": {
|
30
31
|
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"collabStatus": {
|
3
|
+
"fetchMiss": "Syncing server data...",
|
4
|
+
"conflict": "Edit conflicts",
|
5
|
+
"notCollab": "Local file",
|
6
|
+
"synced": "Synced",
|
7
|
+
"syncing": "Syncing...",
|
8
|
+
"offline": "Offline, edits would be save on local"
|
9
|
+
},
|
10
|
+
"session": {
|
11
|
+
"connection-failed": "Connection failed, please check your network.",
|
12
|
+
"will-retry": "Connection failed, we retry in a while.",
|
13
|
+
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
14
|
+
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
15
|
+
},
|
16
|
+
"conflict": {
|
17
|
+
"title": "Collaboration Conflict",
|
18
|
+
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
19
|
+
},
|
20
|
+
"permission": {
|
21
|
+
"title": "Authentication Error",
|
22
|
+
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
23
|
+
},
|
24
|
+
"collaboration": {
|
25
|
+
"single-unit": {
|
26
|
+
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
27
|
+
},
|
28
|
+
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
29
|
+
},
|
30
|
+
"auth": {
|
31
|
+
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
32
|
+
}
|
33
|
+
}
|
package/lib/locale/zh-CN.json
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"collabStatus": {
|
3
|
+
"fetchMiss": "Syncing server data...",
|
4
|
+
"conflict": "Edit conflicts",
|
5
|
+
"notCollab": "Local file",
|
6
|
+
"synced": "Synced",
|
7
|
+
"syncing": "Syncing...",
|
8
|
+
"offline": "Offline, edits would be save on local"
|
9
|
+
},
|
10
|
+
"session": {
|
11
|
+
"connection-failed": "Connection failed, please check your network.",
|
12
|
+
"will-retry": "Connection failed, we retry in a while.",
|
13
|
+
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
14
|
+
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
15
|
+
},
|
16
|
+
"conflict": {
|
17
|
+
"title": "Collaboration Conflict",
|
18
|
+
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
19
|
+
},
|
20
|
+
"permission": {
|
21
|
+
"title": "Authentication Error",
|
22
|
+
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
23
|
+
},
|
24
|
+
"collaboration": {
|
25
|
+
"single-unit": {
|
26
|
+
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
27
|
+
},
|
28
|
+
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
29
|
+
},
|
30
|
+
"auth": {
|
31
|
+
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Injector } from '@wendellhu/redi';
|
2
|
+
import { IPermissionService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
3
|
+
import { CollaborationSessionService } from '../collaboration-session/collaboration-session.service';
|
4
|
+
|
5
|
+
export declare class PermissionService extends RxDisposable {
|
6
|
+
private _injector;
|
7
|
+
private _univerInstanceService;
|
8
|
+
private _permissionService;
|
9
|
+
private _collaborationSessionService;
|
10
|
+
private _localeService;
|
11
|
+
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _collaborationSessionService: CollaborationSessionService, _localeService: LocaleService);
|
12
|
+
private _initCloseConn;
|
13
|
+
private _initUnitPermissionChange;
|
14
|
+
}
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { IChangeset, ITransformService } from '@univerjs-pro/collaboration';
|
2
2
|
import { Injector } from '@wendellhu/redi';
|
3
3
|
|
4
|
+
export declare function extractTargetFromFirstChangeset(changeset: IChangeset): {
|
5
|
+
unitId: string;
|
6
|
+
subUnitId: string;
|
7
|
+
};
|
4
8
|
export declare class SheetTransformSelectionsService {
|
5
9
|
private readonly _injector;
|
6
10
|
private readonly _transformService;
|