@cool-office/collaboration-client 0.0.0-stage → 1.2.2

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 (82) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +2 -2
  3. package/lib/cjs/chunk-4MGIQFAJ.js +40 -0
  4. package/lib/cjs/chunk-JHTS3PZO.js +1882 -0
  5. package/lib/cjs/facade.js +98 -0
  6. package/lib/cjs/index.js +209 -0
  7. package/lib/cjs/locale/ar-SA.js +25 -0
  8. package/lib/cjs/locale/ca-ES.js +25 -0
  9. package/lib/cjs/locale/de-DE.js +25 -0
  10. package/lib/cjs/locale/en-US.js +25 -0
  11. package/lib/cjs/locale/es-ES.js +25 -0
  12. package/lib/cjs/locale/fa-IR.js +25 -0
  13. package/lib/cjs/locale/fr-FR.js +25 -0
  14. package/lib/cjs/locale/id-ID.js +25 -0
  15. package/lib/cjs/locale/it-IT.js +25 -0
  16. package/lib/cjs/locale/ja-JP.js +25 -0
  17. package/lib/cjs/locale/ko-KR.js +25 -0
  18. package/lib/cjs/locale/pl-PL.js +25 -0
  19. package/lib/cjs/locale/pt-BR.js +25 -0
  20. package/lib/cjs/locale/ru-RU.js +25 -0
  21. package/lib/cjs/locale/sk-SK.js +25 -0
  22. package/lib/cjs/locale/vi-VN.js +25 -0
  23. package/lib/cjs/locale/zh-CN.js +25 -0
  24. package/lib/cjs/locale/zh-HK.js +25 -0
  25. package/lib/cjs/locale/zh-TW.js +25 -0
  26. package/lib/cjs/package.json +1 -0
  27. package/lib/es/chunk-4MGIQFAJ.js +16 -0
  28. package/lib/es/chunk-JHTS3PZO.js +1832 -0
  29. package/lib/es/facade.js +80 -0
  30. package/lib/es/index.js +186 -0
  31. package/lib/es/locale/ar-SA.js +7 -0
  32. package/lib/es/locale/ca-ES.js +7 -0
  33. package/lib/es/locale/de-DE.js +7 -0
  34. package/lib/es/locale/en-US.js +7 -0
  35. package/lib/es/locale/es-ES.js +7 -0
  36. package/lib/es/locale/fa-IR.js +7 -0
  37. package/lib/es/locale/fr-FR.js +7 -0
  38. package/lib/es/locale/id-ID.js +7 -0
  39. package/lib/es/locale/it-IT.js +7 -0
  40. package/lib/es/locale/ja-JP.js +7 -0
  41. package/lib/es/locale/ko-KR.js +7 -0
  42. package/lib/es/locale/pl-PL.js +7 -0
  43. package/lib/es/locale/pt-BR.js +7 -0
  44. package/lib/es/locale/ru-RU.js +7 -0
  45. package/lib/es/locale/sk-SK.js +7 -0
  46. package/lib/es/locale/vi-VN.js +7 -0
  47. package/lib/es/locale/zh-CN.js +7 -0
  48. package/lib/es/locale/zh-HK.js +7 -0
  49. package/lib/es/locale/zh-TW.js +7 -0
  50. package/lib/types/src/assets.d.ts +41 -0
  51. package/lib/types/src/authorization.d.ts +31 -0
  52. package/lib/types/src/changeset-submitter.d.ts +80 -0
  53. package/lib/types/src/document-object-resources.d.ts +4 -0
  54. package/lib/types/src/document-recovery.d.ts +82 -0
  55. package/lib/types/src/document-undo.d.ts +9 -0
  56. package/lib/types/src/facade/index.d.ts +46 -0
  57. package/lib/types/src/index.d.ts +14 -0
  58. package/lib/types/src/locale/ar-SA.d.ts +20 -0
  59. package/lib/types/src/locale/ca-ES.d.ts +20 -0
  60. package/lib/types/src/locale/de-DE.d.ts +20 -0
  61. package/lib/types/src/locale/en-US.d.ts +20 -0
  62. package/lib/types/src/locale/es-ES.d.ts +20 -0
  63. package/lib/types/src/locale/fa-IR.d.ts +20 -0
  64. package/lib/types/src/locale/fr-FR.d.ts +20 -0
  65. package/lib/types/src/locale/id-ID.d.ts +20 -0
  66. package/lib/types/src/locale/it-IT.d.ts +20 -0
  67. package/lib/types/src/locale/ja-JP.d.ts +20 -0
  68. package/lib/types/src/locale/ko-KR.d.ts +20 -0
  69. package/lib/types/src/locale/pl-PL.d.ts +20 -0
  70. package/lib/types/src/locale/pt-BR.d.ts +20 -0
  71. package/lib/types/src/locale/ru-RU.d.ts +20 -0
  72. package/lib/types/src/locale/sk-SK.d.ts +20 -0
  73. package/lib/types/src/locale/vi-VN.d.ts +20 -0
  74. package/lib/types/src/locale/zh-CN.d.ts +20 -0
  75. package/lib/types/src/locale/zh-HK.d.ts +20 -0
  76. package/lib/types/src/locale/zh-TW.d.ts +20 -0
  77. package/lib/types/src/revision-recovery.d.ts +93 -0
  78. package/lib/types/src/session.d.ts +85 -0
  79. package/lib/types/src/snapshot-server.d.ts +25 -0
  80. package/lib/types/src/socket.d.ts +46 -0
  81. package/lib/types/src/workspace.d.ts +100 -0
  82. package/package.json +160 -4
@@ -0,0 +1,85 @@
1
+ import { Disposable, IConfigService } from '@cool-office/core';
2
+ import type { ICollaborationSocket, ICombEvent } from './socket.js';
3
+ import { ICollaborationSocketService } from './socket.js';
4
+ export declare enum SessionStatus {
5
+ IDLE = 0,
6
+ JOINING = 1,
7
+ OFFLINE = 2,
8
+ ONLINE = 3
9
+ }
10
+ export interface ICollaborationEvent {
11
+ eventID: string;
12
+ data?: unknown;
13
+ }
14
+ /** A single room on the shared connection. ONLINE describes room membership, not data synchronization. */
15
+ export declare class CollaborationSession {
16
+ readonly unitID: string;
17
+ private readonly _service;
18
+ private readonly _status;
19
+ private readonly _events;
20
+ readonly sessionStatus$: import("rxjs").Observable<SessionStatus>;
21
+ readonly event$: import("rxjs").Observable<ICollaborationEvent>;
22
+ private _closed;
23
+ private _joinedBefore;
24
+ private _requiresResync;
25
+ constructor(unitID: string, _service: CollaborationSessionService);
26
+ get sessionStatus(): SessionStatus;
27
+ get requiresResync(): boolean;
28
+ /** Call only after the consumer has reconciled the missed server revisions and pending edits. */
29
+ markResynced(): void;
30
+ getMemberID(): string | null;
31
+ send(event: ICollaborationEvent, _unitID: string, options?: {
32
+ timeout?: number;
33
+ }): Promise<void>;
34
+ close(): void;
35
+ dispose(): void;
36
+ /** @internal */ setStatus(status: SessionStatus): void;
37
+ /** @internal */ emit(event: ICollaborationEvent): void;
38
+ /** @internal */ joined(): void;
39
+ /** @internal */ finish(): void;
40
+ }
41
+ /** Shared endpoint connection; does not apply mutations or reconcile revisions. */
42
+ export declare class CollaborationSessionService extends Disposable {
43
+ private readonly _configService;
44
+ private readonly _socketService;
45
+ private readonly _sessions;
46
+ private readonly _status;
47
+ private readonly _socketState;
48
+ private readonly _roomEvents;
49
+ readonly status$: import("rxjs").Observable<SessionStatus>;
50
+ readonly socket$: import("rxjs").Observable<ICollaborationSocket | null>;
51
+ readonly roomEvents$: import("rxjs").Observable<{
52
+ unitID: string;
53
+ event: ICollaborationEvent;
54
+ }>;
55
+ private _socket;
56
+ private _subscriptions;
57
+ private _ready;
58
+ private _connecting;
59
+ private _online;
60
+ private _generation;
61
+ private _retryCount;
62
+ private _retryTimer;
63
+ private _handshakeTimer;
64
+ private _heartbeatTimer;
65
+ private _heartbeatTimeout;
66
+ constructor(_configService: IConfigService, _socketService: ICollaborationSocketService);
67
+ get memberID(): string | null;
68
+ requireSession(unitID: string): Promise<CollaborationSession>;
69
+ closeSession(unitID: string): void;
70
+ reconnect(): void;
71
+ /** Browser network signals are hints only; reconnection still requires a successful handshake. */
72
+ setOnline(online: boolean): void;
73
+ send(event: ICombEvent, options?: {
74
+ timeout?: number;
75
+ }): Promise<void>;
76
+ dispose(): void;
77
+ private _scheduleReconnect;
78
+ private _connect;
79
+ private _onMessage;
80
+ private _join;
81
+ private _scheduleHeartbeat;
82
+ private _failed;
83
+ private _disconnect;
84
+ private _clear;
85
+ }
@@ -0,0 +1,25 @@
1
+ import { IConfigService } from '@cool-office/core';
2
+ import { HTTPService } from '@cool-office/network';
3
+ import type { IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse } from '@cool-office/protocol';
4
+ export declare const DEFAULT_SNAPSHOT_SERVER_URL = "/universer-api/snapshot";
5
+ export declare const SNAPSHOT_URL_KEY = "SNAPSHOT_URL_KEY";
6
+ export declare const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY = "collaboration-client.config";
7
+ /** Independent client for the fixed-version collaboration snapshot HTTP routes. */
8
+ export declare class SnapshotServerOverHTTPService {
9
+ private readonly _configService;
10
+ private readonly _httpService;
11
+ constructor(_configService: IConfigService, _httpService: HTTPService);
12
+ private _prefix;
13
+ getSnapshotAPIPath(): string;
14
+ getUnitOnRev(_context: unknown, params: IGetUnitOnRevRequest): Promise<IGetUnitOnRevResponse>;
15
+ getSheetBlock(_context: unknown, params: IGetSheetBlockRequest): Promise<IGetSheetBlockResponse>;
16
+ getDeserializedSheetBlock(_context: unknown, params: IGetSheetBlockRequest): Promise<IGetDeserializedSheetBlockResponse>;
17
+ fetchMissingChangesets(_context: unknown, params: IFetchMissingChangesetsRequest): Promise<IFetchMissingChangesetsResponse>;
18
+ getResourcesRequest(_context: unknown, params: IGetResourcesRequest): Promise<IGetResourcesResponse>;
19
+ saveSnapshot(): never;
20
+ updateSnapshot(): never;
21
+ saveSheetBlock(): never;
22
+ saveChangeset(): never;
23
+ copyFileMeta(): never;
24
+ getLatestCsReqIdBySid(): never;
25
+ }
@@ -0,0 +1,46 @@
1
+ import { createIdentifier, Disposable, IConfigService, Injector, ILogService } from '@cool-office/core';
2
+ import { HTTPService } from '@cool-office/network';
3
+ import { CombCmd } from '@cool-office/protocol';
4
+ import type { Observable } from 'rxjs';
5
+ import type { ICollaborationChangeset } from './changeset-submitter.js';
6
+ import { SnapshotServerOverHTTPService } from './snapshot-server.js';
7
+ export interface ICombEvent {
8
+ cmd: CombCmd;
9
+ routeKey: string;
10
+ routeType?: string;
11
+ code?: number;
12
+ data?: any;
13
+ }
14
+ export interface ICollaborationSocket {
15
+ memberID: string;
16
+ open$: Observable<Event>;
17
+ error$: Observable<Event>;
18
+ close$: Observable<Event>;
19
+ message$: Observable<ICombEvent>;
20
+ send(event: ICombEvent, options?: {
21
+ timeout?: number;
22
+ }): void | Promise<void>;
23
+ close(): void;
24
+ }
25
+ export interface ICollaborationSocketService {
26
+ createSocket(url: string): Promise<ICollaborationSocket | null>;
27
+ }
28
+ export declare const ICollaborationSocketService: ReturnType<typeof createIdentifier<ICollaborationSocketService>>;
29
+ export declare function serializeCombRequest(event: ICombEvent): string;
30
+ export declare function deserializeToCombResponse(event: MessageEvent): ICombEvent;
31
+ /** Shared HTTP and socket transport for environments that provide an ISocketService. */
32
+ export declare class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
33
+ protected readonly _injector: Injector;
34
+ protected readonly _httpService: HTTPService;
35
+ protected readonly _configService: IConfigService;
36
+ protected readonly _logService: ILogService;
37
+ protected readonly _snapshotServerService: SnapshotServerOverHTTPService;
38
+ constructor(_injector: Injector, _httpService: HTTPService, _configService: IConfigService, _logService: ILogService, _snapshotServerService: SnapshotServerOverHTTPService);
39
+ createSocket(url: string): Promise<ICollaborationSocket | null>;
40
+ protected _doCreateSocket(url: string): ICollaborationSocket;
41
+ protected _submitChangeset(socket: ICollaborationSocket, request: {
42
+ unitType: number;
43
+ unitID: string;
44
+ changeset: ICollaborationChangeset;
45
+ }, timeoutMs: number): Promise<void>;
46
+ }
@@ -0,0 +1,100 @@
1
+ import type { DependencyOverride } from '@cool-office/core';
2
+ import { Disposable, IConfigService, Injector, IUndoRedoService, IUniverInstanceService, Plugin, UserManagerService } from '@cool-office/core';
3
+ import type { ICommentUpdate, IMember, UnitObject } from '@cool-office/protocol';
4
+ import { BehaviorSubject, Subject } from 'rxjs';
5
+ import { CollaborationRevisionRecoveryService } from './revision-recovery.js';
6
+ import { CollaborationSessionService } from './session.js';
7
+ import { CollaborationSocketService } from './socket.js';
8
+ import { type IAttachmentUploadOptions } from './assets.js';
9
+ export declare enum CollaborationStatus {
10
+ NOT_COLLAB = "not_collab",
11
+ SYNCED = "synced",
12
+ PENDING = "pending",
13
+ AWAITING = "awaiting",
14
+ AWAITING_WITH_PENDING = "awaiting_with_pending",
15
+ FETCH_MISS = "fetch_missing",
16
+ CONFLICT = "conflict",
17
+ OFFLINE = "offline"
18
+ }
19
+ export declare enum CollaborationUIEventId {
20
+ PERMISSION_DENIED = "PERMISSION_DENIED",
21
+ CONFLICT = "CONFLICT",
22
+ CLOSE_ROOM = "CLOSE_ROOM",
23
+ REVISION_RESTORED = "REVISION_RESTORED"
24
+ }
25
+ export declare class CollaborationUIEventService extends Disposable {
26
+ readonly event$: Subject<{
27
+ id: CollaborationUIEventId;
28
+ unitID?: string;
29
+ data?: string;
30
+ }>;
31
+ dispose(): void;
32
+ }
33
+ export interface IUniverCollaborationClientConfig {
34
+ socketService?: typeof CollaborationSocketService;
35
+ override?: DependencyOverride;
36
+ enableCollaboration?: boolean;
37
+ enableOfflineEditing?: boolean;
38
+ enableSingleActiveInstanceLock?: boolean;
39
+ enableAuthServer?: boolean;
40
+ wsSessionTicketUrl?: string;
41
+ collabWebSocketUrl?: string;
42
+ collabSubmitChangesetUrl?: string;
43
+ snapshotServerUrl?: string;
44
+ retryConnectingInterval?: number;
45
+ loginUrlKey?: string;
46
+ authzUrl?: string;
47
+ objectPermissionTypes?: readonly UnitObject[];
48
+ sendChangesetTimeout?: number;
49
+ uploadFileServerUrl?: string;
50
+ signUrlServerUrl?: string;
51
+ downloadEndpointUrl?: string;
52
+ customHeaders?: Record<string, string>;
53
+ attachment?: IAttachmentUploadOptions;
54
+ }
55
+ export declare class MemberService extends Disposable {
56
+ private readonly rooms;
57
+ constructor(sessions: CollaborationSessionService);
58
+ getRoom(unitID: string): {
59
+ members$: BehaviorSubject<Map<string, IMember>>;
60
+ } | undefined;
61
+ waitForRoom$(unitID: string): import("rxjs").Observable<{
62
+ members$: BehaviorSubject<Map<string, IMember>>;
63
+ } | undefined>;
64
+ dispose(): void;
65
+ }
66
+ export declare class CommentService {
67
+ readonly commentUpdate$: import("rxjs").Observable<ICommentUpdate>;
68
+ constructor(sessions: CollaborationSessionService);
69
+ }
70
+ export declare class CollaborationController extends Disposable {
71
+ private readonly config;
72
+ private readonly units;
73
+ private readonly users;
74
+ private readonly recoveries;
75
+ private readonly events;
76
+ private readonly history;
77
+ readonly statusChanged$: Subject<{
78
+ unitId: string;
79
+ status: CollaborationStatus;
80
+ }>;
81
+ private readonly ready;
82
+ private readonly statuses;
83
+ constructor(config: IConfigService, units: IUniverInstanceService, users: UserManagerService, recoveries: CollaborationRevisionRecoveryService, events: CollaborationUIEventService, _members: MemberService, history: IUndoRedoService);
84
+ getStatus(id: string): CollaborationStatus;
85
+ readyForCollab(id: string): Promise<void>;
86
+ private start;
87
+ flush(id: string, options?: {
88
+ timeoutMs?: number;
89
+ }): Promise<void>;
90
+ dispose(): void;
91
+ }
92
+ export declare class UniverCollaborationClientPlugin extends Plugin {
93
+ private readonly config;
94
+ protected readonly _injector: Injector;
95
+ static pluginName: string;
96
+ static packageName: string;
97
+ static version: string;
98
+ constructor(config: IUniverCollaborationClientConfig | undefined, _injector: Injector);
99
+ onStarting(): void;
100
+ }
package/package.json CHANGED
@@ -1,6 +1,162 @@
1
1
  {
2
2
  "name": "@cool-office/collaboration-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "license": "Apache-2.0",
4
+ "type": "module",
5
+ "main": "./lib/cjs/index.js",
6
+ "module": "./lib/es/index.js",
7
+ "types": "./lib/types/src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/src/index.d.ts",
11
+ "import": "./lib/es/index.js",
12
+ "require": "./lib/cjs/index.js",
13
+ "default": "./lib/es/index.js"
14
+ },
15
+ "./facade": {
16
+ "types": "./lib/types/src/facade/index.d.ts",
17
+ "import": "./lib/es/facade.js",
18
+ "require": "./lib/cjs/facade.js",
19
+ "default": "./lib/es/facade.js"
20
+ },
21
+ "./locale/ar-SA": {
22
+ "types": "./lib/types/src/locale/ar-SA.d.ts",
23
+ "import": "./lib/es/locale/ar-SA.js",
24
+ "require": "./lib/cjs/locale/ar-SA.js",
25
+ "default": "./lib/es/locale/ar-SA.js"
26
+ },
27
+ "./locale/ca-ES": {
28
+ "types": "./lib/types/src/locale/ca-ES.d.ts",
29
+ "import": "./lib/es/locale/ca-ES.js",
30
+ "require": "./lib/cjs/locale/ca-ES.js",
31
+ "default": "./lib/es/locale/ca-ES.js"
32
+ },
33
+ "./locale/de-DE": {
34
+ "types": "./lib/types/src/locale/de-DE.d.ts",
35
+ "import": "./lib/es/locale/de-DE.js",
36
+ "require": "./lib/cjs/locale/de-DE.js",
37
+ "default": "./lib/es/locale/de-DE.js"
38
+ },
39
+ "./locale/en-US": {
40
+ "types": "./lib/types/src/locale/en-US.d.ts",
41
+ "import": "./lib/es/locale/en-US.js",
42
+ "require": "./lib/cjs/locale/en-US.js",
43
+ "default": "./lib/es/locale/en-US.js"
44
+ },
45
+ "./locale/es-ES": {
46
+ "types": "./lib/types/src/locale/es-ES.d.ts",
47
+ "import": "./lib/es/locale/es-ES.js",
48
+ "require": "./lib/cjs/locale/es-ES.js",
49
+ "default": "./lib/es/locale/es-ES.js"
50
+ },
51
+ "./locale/fa-IR": {
52
+ "types": "./lib/types/src/locale/fa-IR.d.ts",
53
+ "import": "./lib/es/locale/fa-IR.js",
54
+ "require": "./lib/cjs/locale/fa-IR.js",
55
+ "default": "./lib/es/locale/fa-IR.js"
56
+ },
57
+ "./locale/fr-FR": {
58
+ "types": "./lib/types/src/locale/fr-FR.d.ts",
59
+ "import": "./lib/es/locale/fr-FR.js",
60
+ "require": "./lib/cjs/locale/fr-FR.js",
61
+ "default": "./lib/es/locale/fr-FR.js"
62
+ },
63
+ "./locale/id-ID": {
64
+ "types": "./lib/types/src/locale/id-ID.d.ts",
65
+ "import": "./lib/es/locale/id-ID.js",
66
+ "require": "./lib/cjs/locale/id-ID.js",
67
+ "default": "./lib/es/locale/id-ID.js"
68
+ },
69
+ "./locale/it-IT": {
70
+ "types": "./lib/types/src/locale/it-IT.d.ts",
71
+ "import": "./lib/es/locale/it-IT.js",
72
+ "require": "./lib/cjs/locale/it-IT.js",
73
+ "default": "./lib/es/locale/it-IT.js"
74
+ },
75
+ "./locale/ja-JP": {
76
+ "types": "./lib/types/src/locale/ja-JP.d.ts",
77
+ "import": "./lib/es/locale/ja-JP.js",
78
+ "require": "./lib/cjs/locale/ja-JP.js",
79
+ "default": "./lib/es/locale/ja-JP.js"
80
+ },
81
+ "./locale/ko-KR": {
82
+ "types": "./lib/types/src/locale/ko-KR.d.ts",
83
+ "import": "./lib/es/locale/ko-KR.js",
84
+ "require": "./lib/cjs/locale/ko-KR.js",
85
+ "default": "./lib/es/locale/ko-KR.js"
86
+ },
87
+ "./locale/pl-PL": {
88
+ "types": "./lib/types/src/locale/pl-PL.d.ts",
89
+ "import": "./lib/es/locale/pl-PL.js",
90
+ "require": "./lib/cjs/locale/pl-PL.js",
91
+ "default": "./lib/es/locale/pl-PL.js"
92
+ },
93
+ "./locale/pt-BR": {
94
+ "types": "./lib/types/src/locale/pt-BR.d.ts",
95
+ "import": "./lib/es/locale/pt-BR.js",
96
+ "require": "./lib/cjs/locale/pt-BR.js",
97
+ "default": "./lib/es/locale/pt-BR.js"
98
+ },
99
+ "./locale/ru-RU": {
100
+ "types": "./lib/types/src/locale/ru-RU.d.ts",
101
+ "import": "./lib/es/locale/ru-RU.js",
102
+ "require": "./lib/cjs/locale/ru-RU.js",
103
+ "default": "./lib/es/locale/ru-RU.js"
104
+ },
105
+ "./locale/sk-SK": {
106
+ "types": "./lib/types/src/locale/sk-SK.d.ts",
107
+ "import": "./lib/es/locale/sk-SK.js",
108
+ "require": "./lib/cjs/locale/sk-SK.js",
109
+ "default": "./lib/es/locale/sk-SK.js"
110
+ },
111
+ "./locale/vi-VN": {
112
+ "types": "./lib/types/src/locale/vi-VN.d.ts",
113
+ "import": "./lib/es/locale/vi-VN.js",
114
+ "require": "./lib/cjs/locale/vi-VN.js",
115
+ "default": "./lib/es/locale/vi-VN.js"
116
+ },
117
+ "./locale/zh-CN": {
118
+ "types": "./lib/types/src/locale/zh-CN.d.ts",
119
+ "import": "./lib/es/locale/zh-CN.js",
120
+ "require": "./lib/cjs/locale/zh-CN.js",
121
+ "default": "./lib/es/locale/zh-CN.js"
122
+ },
123
+ "./locale/zh-HK": {
124
+ "types": "./lib/types/src/locale/zh-HK.d.ts",
125
+ "import": "./lib/es/locale/zh-HK.js",
126
+ "require": "./lib/cjs/locale/zh-HK.js",
127
+ "default": "./lib/es/locale/zh-HK.js"
128
+ },
129
+ "./locale/zh-TW": {
130
+ "types": "./lib/types/src/locale/zh-TW.d.ts",
131
+ "import": "./lib/es/locale/zh-TW.js",
132
+ "require": "./lib/cjs/locale/zh-TW.js",
133
+ "default": "./lib/es/locale/zh-TW.js"
134
+ },
135
+ "./lib/facade": {
136
+ "types": "./lib/types/src/facade/index.d.ts",
137
+ "import": "./lib/es/facade.js",
138
+ "require": "./lib/cjs/facade.js",
139
+ "default": "./lib/es/facade.js"
140
+ },
141
+ "./lib/facade.js": {
142
+ "types": "./lib/types/src/facade/index.d.ts",
143
+ "import": "./lib/es/facade.js",
144
+ "require": "./lib/cjs/facade.js",
145
+ "default": "./lib/es/facade.js"
146
+ },
147
+ "./lib/*": "./lib/*",
148
+ "./package.json": "./package.json"
149
+ },
150
+ "dependencies": {
151
+ "@cool-office/collaboration": "1.2.2",
152
+ "@cool-office/core": "1.2.0",
153
+ "@cool-office/network": "1.2.0",
154
+ "@cool-office/protocol": "1.2.0",
155
+ "rxjs": "7.8.2"
156
+ },
157
+ "version": "1.2.2",
158
+ "publishConfig": {
159
+ "access": "public",
160
+ "registry": "https://registry.npmjs.org/"
161
+ }
162
+ }