@univerjs-pro/collaboration-client 0.2.8 → 0.2.10

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.
@@ -18,7 +18,7 @@ export declare class UniverCollaborationClientPlugin extends Plugin {
18
18
  protected _injector: Injector;
19
19
  static pluginName: string;
20
20
  constructor(_config: ICollaborationClientPluginConfig | undefined, _logService: ILogService, _renderManagerService: IRenderManagerService, _injector: Injector);
21
- onStarting(injector: Injector): void;
21
+ onStarting(): void;
22
22
  onRendered(): void;
23
23
  private _registerDependencies;
24
24
  private _registerRenderDependencies;
@@ -1,4 +1,4 @@
1
- import { Nullable, IConfigService } from '@univerjs/core';
1
+ import { Nullable, IConfigService, IUniverInstanceService } from '@univerjs/core';
2
2
  import { IImageIoService, IImageIoServiceParam, ImageSourceType } from '@univerjs/drawing';
3
3
  import { HTTPService } from '@univerjs/network';
4
4
  import { IError } from '@univerjs/protocol';
@@ -13,10 +13,11 @@ export interface ISignUrlResponse {
13
13
  export declare class ImageIoService implements IImageIoService {
14
14
  private readonly _httpService;
15
15
  private readonly _configService;
16
+ private readonly _univerInstanceService;
16
17
  private _waitCount;
17
18
  private _change$;
18
19
  change$: Observable<number>;
19
- constructor(_httpService: HTTPService, _configService: IConfigService);
20
+ constructor(_httpService: HTTPService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
20
21
  setWaitCount(count: number): void;
21
22
  private _imageSourceCache;
22
23
  getImageSourceCache(source: string, imageSourceType: ImageSourceType): HTMLImageElement | undefined;
@@ -1,6 +1,7 @@
1
- import { ILogContext, ISnapshotServerService, IConfigService } from '@univerjs/core';
1
+ import { IConfigService } from '@univerjs/core';
2
2
  import { HTTPService } from '@univerjs/network';
3
3
  import { IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
4
+ import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
4
5
  export declare class SnapshotServerOverHTTPService implements ISnapshotServerService {
5
6
  private readonly _configService;
6
7
  private readonly _httpService;
@@ -1,6 +1,6 @@
1
- import { Nullable, IConfigService, ILogService, ISnapshotServerService } from '@univerjs/core';
1
+ import { Nullable, IConfigService, ILogService } from '@univerjs/core';
2
2
  import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
3
- import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
3
+ import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } 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$'> {