@univerjs-pro/exchange-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.
@@ -0,0 +1,5 @@
1
+ export declare const PLUGIN_CONFIG_KEY = "exchange-client.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverExchangeClientConfig {
4
+ }
5
+ export declare const defaultPluginConfig: IUniverExchangeClientConfig;
@@ -1,10 +1,11 @@
1
- import { Injector, LocaleService, Plugin } from '@univerjs/core';
1
+ import { IConfigService, Injector, Plugin } from '@univerjs/core';
2
+ import { IUniverExchangeClientConfig } from './controllers/config.schema';
2
3
  export declare class UniverExchangeClientPlugin extends Plugin {
3
- private readonly _;
4
+ private readonly _config;
4
5
  readonly _injector: Injector;
5
- private readonly _localeService;
6
+ private readonly _configService;
6
7
  static pluginName: string;
7
- constructor(_: undefined, _injector: Injector, _localeService: LocaleService);
8
+ constructor(_config: IUniverExchangeClientConfig | undefined, _injector: Injector, _configService: IConfigService);
8
9
  initialize(): void;
9
10
  onReady(): void;
10
11
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -56,7 +56,7 @@ export interface IExchangeService {
56
56
  */
57
57
  importFileToUnitId(file: File | string, univerType: UniverType): Promise<string | undefined>;
58
58
  }
59
- export declare const IExchangeService: import('@univerjs/core').IdentifierDecorator<IExchangeService>;
59
+ export declare const IExchangeService: import('@wendellhu/redi').IdentifierDecorator<IExchangeService>;
60
60
  export declare class ExchangeService extends Disposable implements IExchangeService, IDisposable {
61
61
  private readonly _requestService;
62
62
  private readonly _requestState$;
@@ -59,7 +59,7 @@ export interface IExchangeOperateService {
59
59
  */
60
60
  registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
61
61
  }
62
- export declare const IExchangeOperateService: import('@univerjs/core').IdentifierDecorator<IExchangeOperateService>;
62
+ export declare const IExchangeOperateService: import('@wendellhu/redi').IdentifierDecorator<IExchangeOperateService>;
63
63
  export declare class ExchangeOperateService extends Disposable implements IExchangeOperateService, IDisposable {
64
64
  private _univerInstanceService;
65
65
  private readonly _messageService;
@@ -75,7 +75,7 @@ export interface IRequestService {
75
75
  getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
76
76
  signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
77
77
  }
78
- export declare const IRequestService: import('@univerjs/core').IdentifierDecorator<IRequestService>;
78
+ export declare const IRequestService: import('@wendellhu/redi').IdentifierDecorator<IRequestService>;
79
79
  /**
80
80
  * TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse
81
81
  */
@@ -34,7 +34,7 @@ export interface IUploadNotificationService {
34
34
  */
35
35
  pushLink(link: ILinkList): void;
36
36
  }
37
- export declare const IUploadNotificationService: import('@univerjs/core').IdentifierDecorator<IUploadNotificationService>;
37
+ export declare const IUploadNotificationService: import('@wendellhu/redi').IdentifierDecorator<IUploadNotificationService>;
38
38
  export declare class UploadNotificationService extends Disposable implements IUploadNotificationService, IDisposable {
39
39
  private readonly _visible$;
40
40
  private readonly _state$;
@@ -1,4 +1,4 @@
1
1
  import { IProgressService, ProgressService } from '@univerjs/ui';
2
2
  export declare class UploadProgressService extends ProgressService {
3
3
  }
4
- export declare const IUploadProgressService: import('@univerjs/core').IdentifierDecorator<IProgressService>;
4
+ export declare const IUploadProgressService: import('@wendellhu/redi').IdentifierDecorator<IProgressService>;