@univerjs-pro/sheets-exchange-client 0.2.4 → 0.2.5
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.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +2 -2
- package/lib/types/controllers/exchange.controller.d.ts +1 -2
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/index.d.ts +0 -15
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/exchange.service.d.ts +2 -3
- package/lib/types/services/operate.service.d.ts +2 -3
- package/lib/types/services/request.service.d.ts +2 -3
- package/lib/types/services/upload-notification.service.d.ts +2 -3
- package/lib/types/services/upload-progress.service.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +11 -13
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, IMenuService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { IExchangeService } from '../services/exchange.service';
|
|
5
4
|
|
|
6
5
|
export interface ISheetsExchangeClientConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare function SheetsExchangeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
5
5
|
export declare function ImportXLSXToUnitIdMenuItemFactory(): IMenuButtonItem<string>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
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
1
|
export { UniverSheetsExchangeClientPlugin } from './plugin';
|
|
17
2
|
export { IExchangeService, ExchangeService } from './services/exchange.service';
|
|
18
3
|
export { getUploadXLSXFile, downloadFile } from './services/utils/tool';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Injector, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import { ISheetsExchangeClientConfig } from './controllers/exchange.controller';
|
|
4
3
|
|
|
5
4
|
export declare class UniverSheetsExchangeClientPlugin extends Plugin {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IWorkbookData, Disposable } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IDisposable, IWorkbookData, Disposable } from '@univerjs/core';
|
|
3
2
|
import { IError } from '@univerjs/protocol';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { RequestService } from './request.service';
|
|
@@ -41,7 +40,7 @@ export interface IExchangeService {
|
|
|
41
40
|
*/
|
|
42
41
|
exportXLSXBySnapshot(snapshot: IWorkbookData): Promise<File | undefined>;
|
|
43
42
|
}
|
|
44
|
-
export declare const IExchangeService: import('@
|
|
43
|
+
export declare const IExchangeService: import('@univerjs/core').IdentifierDecorator<IExchangeService>;
|
|
45
44
|
/**
|
|
46
45
|
* TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse
|
|
47
46
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IDisposable, Disposable, ILogService, IUniverInstanceService, LocaleService, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import { IProgressService, IMessageService } from '@univerjs/ui';
|
|
4
3
|
import { ExchangeService } from './exchange.service';
|
|
5
4
|
import { UploadNotificationService } from './upload-notification.service';
|
|
@@ -32,7 +31,7 @@ export interface ISheetsExchangeOperateService {
|
|
|
32
31
|
*/
|
|
33
32
|
registerLink(getLink: (unitId: string, univerType: UniverInstanceType) => string): void;
|
|
34
33
|
}
|
|
35
|
-
export declare const ISheetsExchangeOperateService: import('@
|
|
34
|
+
export declare const ISheetsExchangeOperateService: import('@univerjs/core').IdentifierDecorator<ISheetsExchangeOperateService>;
|
|
36
35
|
export declare class SheetsExchangeOperateService extends Disposable implements ISheetsExchangeOperateService, IDisposable {
|
|
37
36
|
private _univerInstanceService;
|
|
38
37
|
private readonly _messageService;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IConfigService } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IConfigService, IDisposable } from '@univerjs/core';
|
|
3
2
|
import { HTTPService } from '@univerjs/network';
|
|
4
3
|
import { IError, UniverType } from '@univerjs/protocol';
|
|
5
4
|
import { ISheetBlockJson, ISnapshotJson } from './utils/snapshot';
|
|
@@ -74,7 +73,7 @@ export interface IRequestService {
|
|
|
74
73
|
getTask(taskID: string): Promise<IGetTaskResponse | undefined>;
|
|
75
74
|
signUrl(fileID: string): Promise<ISignUrlResponse | undefined>;
|
|
76
75
|
}
|
|
77
|
-
export declare const IRequestService: import('@
|
|
76
|
+
export declare const IRequestService: import('@univerjs/core').IdentifierDecorator<IRequestService>;
|
|
78
77
|
/**
|
|
79
78
|
* TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse
|
|
80
79
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { Disposable, IDisposable } from '@univerjs/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { UniverType } from '@univerjs/protocol';
|
|
5
4
|
|
|
@@ -36,7 +35,7 @@ export interface IUploadNotificationService {
|
|
|
36
35
|
*/
|
|
37
36
|
pushLink(link: ILinkList): void;
|
|
38
37
|
}
|
|
39
|
-
export declare const IUploadNotificationService: import('@
|
|
38
|
+
export declare const IUploadNotificationService: import('@univerjs/core').IdentifierDecorator<IUploadNotificationService>;
|
|
40
39
|
export declare class UploadNotificationService extends Disposable implements IUploadNotificationService, IDisposable {
|
|
41
40
|
private readonly _visible$;
|
|
42
41
|
private readonly _state$;
|
|
@@ -2,4 +2,4 @@ import { IProgressService, ProgressService } from '@univerjs/ui';
|
|
|
2
2
|
|
|
3
3
|
export declare class UploadProgressService extends ProgressService {
|
|
4
4
|
}
|
|
5
|
-
export declare const IUploadProgressService: import('@
|
|
5
|
+
export declare const IUploadProgressService: import('@univerjs/core').IdentifierDecorator<IProgressService>;
|