@univerjs-pro/collaboration-client 0.2.1 → 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.
@@ -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."
@@ -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
+ }
@@ -24,7 +24,8 @@
24
24
  "collaboration": {
25
25
  "single-unit": {
26
26
  "warning": "你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。"
27
- }
27
+ },
28
+ "closeRoom": "由于协同房间被关闭,编辑权限被收回。"
28
29
  },
29
30
  "auth": {
30
31
  "needGotoLoginAlert": "你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。"
@@ -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,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -25,6 +25,7 @@ declare const locales: {
25
25
  'single-unit': {
26
26
  warning: string;
27
27
  };
28
+ closeRoom: string;
28
29
  };
29
30
  auth: {
30
31
  needGotoLoginAlert: string;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN';
2
+
3
+ declare const locale: typeof zhCN;
4
+ export default locale;
@@ -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;