@univerjs-pro/sheets-exchange-client 0.1.11 → 0.1.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 (36) hide show
  1. package/README.md +1 -4
  2. package/lib/cjs/index.js +2 -1
  3. package/lib/es/index.js +2 -1
  4. package/lib/index.css +1 -0
  5. package/lib/locale/en-US.json +24 -0
  6. package/lib/locale/ru-RU.json +24 -0
  7. package/lib/locale/zh-CN.json +24 -0
  8. package/lib/types/commands/operations/exchange.operation.d.ts +4 -2
  9. package/lib/types/controllers/exchange.controller.d.ts +10 -5
  10. package/lib/types/controllers/menu.d.ts +5 -3
  11. package/lib/types/index.d.ts +9 -5
  12. package/lib/types/locale/en-US.d.ts +6 -0
  13. package/lib/types/locale/ru-RU.d.ts +25 -0
  14. package/lib/types/locale/zh-CN.d.ts +6 -0
  15. package/lib/types/plugin.d.ts +4 -4
  16. package/lib/types/services/exchange.service.d.ts +56 -31
  17. package/lib/types/services/operate.service.d.ts +66 -0
  18. package/lib/types/services/request.service.d.ts +17 -31
  19. package/lib/types/services/upload-notification.service.d.ts +54 -0
  20. package/lib/types/services/upload-progress.service.d.ts +5 -0
  21. package/lib/types/services/utils/snapshot.d.ts +27 -5
  22. package/lib/types/services/utils/tool.d.ts +13 -4
  23. package/lib/types/views/UploadNotificationContainer.d.ts +3 -0
  24. package/lib/types/views/link-list/LinkList.d.ts +7 -0
  25. package/lib/types/views/upload-again/UploadAgain.d.ts +3 -0
  26. package/lib/types/views/upload-button/UploadButton.d.ts +8 -0
  27. package/lib/types/views/upload-error/UploadError.d.ts +3 -0
  28. package/lib/types/views/upload-notification/UploadNotification.d.ts +3 -0
  29. package/lib/types/views/upload-success/UploadSuccess.d.ts +6 -0
  30. package/lib/types/views/uploading/Uploading.d.ts +3 -0
  31. package/lib/types/views/uploading/upload-cancel/UploadCancel.d.ts +3 -0
  32. package/lib/types/views/uploading/upload-progress/UploadProgress.d.ts +6 -0
  33. package/lib/umd/index.js +2 -1
  34. package/package.json +23 -11
  35. package/lib/types/locale/index.d.ts +0 -2
  36. package/lib/types/services/config.service.d.ts +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-exchange-client",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -28,6 +28,7 @@
28
28
  "require": "./lib/cjs/*",
29
29
  "types": "./lib/types/index.d.ts"
30
30
  },
31
+ "./locale/*": "./lib/locale/*.json",
31
32
  "./lib/*": "./lib/*"
32
33
  },
33
34
  "main": "./lib/cjs/index.js",
@@ -43,22 +44,33 @@
43
44
  "lib"
44
45
  ],
45
46
  "peerDependencies": {
46
- "@wendellhu/redi": "^0.15.1",
47
- "@univerjs/core": "0.1.11",
48
- "@univerjs/network": "0.1.11",
49
- "@univerjs/design": "0.1.11",
50
- "@univerjs/ui": "0.1.11"
47
+ "@wendellhu/redi": "0.15.2",
48
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
49
+ "rxjs": ">=7.0.0",
50
+ "@univerjs/core": "0.1.13",
51
+ "@univerjs/design": "0.1.13",
52
+ "@univerjs/network": "0.1.13",
53
+ "@univerjs/sheets": "0.1.13",
54
+ "@univerjs/sheets-ui": "0.1.13",
55
+ "@univerjs/ui": "0.1.13"
56
+ },
57
+ "dependencies": {
58
+ "@univerjs/icons": "^0.1.45",
59
+ "@univerjs/protocol": "0.1.33-alpha.5",
60
+ "@univerjs/sheets": "0.1.13",
61
+ "@univerjs/sheets-ui": "0.1.13"
51
62
  },
52
- "dependencies": {},
53
63
  "devDependencies": {
54
- "@wendellhu/redi": "^0.15.1",
64
+ "@types/pako": "^2.0.3",
65
+ "@wendellhu/redi": "0.15.2",
66
+ "less": "^4.2.0",
67
+ "pako": "^2.1.0",
55
68
  "rxjs": "^7.8.1",
56
69
  "typescript": "^5.4.5",
57
70
  "vite": "^5.2.11",
58
71
  "vitest": "^1.6.0",
59
- "@univerjs/core": "0.1.11",
60
- "@univerjs/protocol": "0.1.30",
61
- "@univerjs/shared": "0.1.11"
72
+ "@univerjs/core": "0.1.13",
73
+ "@univerjs/shared": "0.1.13"
62
74
  },
63
75
  "scripts": {
64
76
  "test": "vitest run",
@@ -1,2 +0,0 @@
1
- export { default as enUS } from './en-US';
2
- export { default as zhCN } from './zh-CN';
@@ -1,24 +0,0 @@
1
- import { IConfigService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
3
-
4
- /**
5
- * Sheets ExChange Client Config
6
- */
7
- export interface ISheetsExchangeClientPluginConfig {
8
- /**
9
- * Show import / export buttons on toolbar, default: `true`
10
- * @zh 在工具栏显示导入导出按钮,默认值: `true`
11
- */
12
- showMenu: boolean;
13
- }
14
- export declare const DEFAULT_PLUGIN_CONFIG: ISheetsExchangeClientPluginConfig;
15
- export interface ISheetsExchangeClientService extends ISheetsExchangeClientPluginConfig {
16
- }
17
- export declare const SHEETS_EXCHANGE_CLIENT_CONFIG_ID = "univer-pro.sheets-exchange-client.config";
18
- export declare class SheetsExchangeClientConfigService implements ISheetsExchangeClientService, IDisposable {
19
- private readonly _configService;
20
- constructor(_configService: IConfigService);
21
- get showMenu(): boolean;
22
- setConfig(config?: Partial<ISheetsExchangeClientPluginConfig>): void;
23
- dispose(): void;
24
- }