@univerjs-pro/collaboration-client 0.2.11 → 0.2.13

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 (29) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/locale/en-US.json +5 -0
  4. package/lib/locale/ru-RU.json +5 -0
  5. package/lib/locale/vi-VN.json +5 -0
  6. package/lib/locale/zh-CN.json +11 -6
  7. package/lib/locale/zh-TW.json +5 -0
  8. package/lib/types/config/config.d.ts +1 -1
  9. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
  10. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -1
  11. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -9
  13. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +87 -0
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -2
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +4 -88
  16. package/lib/types/controllers/config.schema.d.ts +5 -0
  17. package/lib/types/controllers/telemetry.d.ts +11 -0
  18. package/lib/types/index.d.ts +4 -3
  19. package/lib/types/locale/zh-CN.d.ts +5 -0
  20. package/lib/types/plugin.d.ts +3 -2
  21. package/lib/types/services/collaboration-session/collaboration-session.d.ts +59 -0
  22. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +16 -58
  23. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +3 -1
  24. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +3 -2
  25. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  26. package/lib/types/services/socket/collaboration-socket.service.d.ts +5 -5
  27. package/lib/types/services/url/url.service.d.ts +1 -1
  28. package/lib/umd/index.js +1 -1
  29. package/package.json +36 -31
@@ -1,6 +1,6 @@
1
- import { Nullable, IConfigService, ILogService } from '@univerjs/core';
2
- import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
3
- import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
1
+ import { Disposable, IConfigService, ILogService, Nullable } from '@univerjs/core';
2
+ import { HTTPService, WebSocketService, ISocket } from '@univerjs/network';
3
+ import { ISnapshotServerService, ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
4
4
  import { IChangeset } from '@univerjs/protocol';
5
5
  import { Observable } from 'rxjs';
6
6
  export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
@@ -15,8 +15,8 @@ export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' |
15
15
  export interface ICollaborationSocketService {
16
16
  createSocket: (url: string) => Nullable<ICollaborationSocket>;
17
17
  }
18
- export declare const ICollaborationSocketService: import('@univerjs/core').IdentifierDecorator<ICollaborationSocketService>;
19
- export declare class CollaborationSocketService implements ICollaborationSocketService {
18
+ export declare const ICollaborationSocketService: import('@wendellhu/redi').IdentifierDecorator<ICollaborationSocketService>;
19
+ export declare class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
20
20
  protected readonly _http: HTTPService;
21
21
  protected readonly _ws: WebSocketService;
22
22
  protected readonly _configService: IConfigService;
@@ -9,4 +9,4 @@ export interface IURLService {
9
9
  removeParam: (key: string, useReplace?: boolean) => void;
10
10
  urlChange$: Observable<void>;
11
11
  }
12
- export declare const IURLService: import('@univerjs/core').IdentifierDecorator<IURLService>;
12
+ export declare const IURLService: import('@wendellhu/redi').IdentifierDecorator<IURLService>;