zyjj-web-sdk 1.1.2 → 1.1.4

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 (23) hide show
  1. package/lib/{APlayer.min-cYakPUtE.js → APlayer.min-Bakc03ej.js} +1 -1
  2. package/lib/{DPlayer.min-6i8RTupf.js → DPlayer.min-JqGc5Y75.js} +1 -1
  3. package/lib/{ElementTypeAlert-BN8F6PHX.js → ElementTypeAlert-CrTUt6Y8.js} +1 -1
  4. package/lib/{ElementTypeAudio-CpOL1JSg.js → ElementTypeAudio-Cr9cYS9F.js} +3 -3
  5. package/lib/{ElementTypeImage-CK4q6bI7.js → ElementTypeImage-g1KwCGd5.js} +2 -2
  6. package/lib/{ElementTypeImageList-DQon_M46.js → ElementTypeImageList-x-OFmgPd.js} +2 -2
  7. package/lib/{ElementTypeInput-Mx1txBsc.js → ElementTypeInput-khx9Bnra.js} +1 -1
  8. package/lib/{ElementTypeNumber-Be9gUlCJ.js → ElementTypeNumber-DvmxbEW2.js} +1 -1
  9. package/lib/{ElementTypeSelect-TTtjEVOj.js → ElementTypeSelect-BnBYykvw.js} +1 -1
  10. package/lib/{ElementTypeText-ByyMD0FT.js → ElementTypeText-Bj0Gtt5k.js} +3 -3
  11. package/lib/{ElementTypeTextArea-CE2X9ol7.js → ElementTypeTextArea-DUp-KoHF.js} +1 -1
  12. package/lib/{ElementTypeUpload-O411cbP7.js → ElementTypeUpload-DiIOzcTc.js} +1 -1
  13. package/lib/{ElementTypeVideo-D-c4fzS7.js → ElementTypeVideo-BPdozUUx.js} +3 -3
  14. package/lib/api/api.d.ts +1 -0
  15. package/lib/{common-fg-GJh8W.js → common-DfFXxDQZ.js} +1 -1
  16. package/lib/{index-oS0LMsZ4.js → index-D3ZndTEy.js} +746 -727
  17. package/lib/{index-4CgKoZea.js → index-DRCPuk5t.js} +2 -2
  18. package/lib/index.d.ts +15 -6
  19. package/lib/index.js +1 -1
  20. package/lib/index.umd.cjs +46 -46
  21. package/lib/tool/utils.d.ts +8 -1
  22. package/lib/types/local-task.d.ts +4 -2
  23. package/package.json +3 -1
@@ -1,14 +1,21 @@
1
1
  import { ToolParamFile } from "../types/local-task.ts";
2
2
  import COS from 'cos-js-sdk-v5';
3
+ import OSS from 'ali-oss';
3
4
  export declare const convertFileSize: (bytes: number) => string;
4
5
  export declare const File2ToolParamFile: (file: File, no_path?: boolean) => ToolParamFile;
5
6
  export declare const Seconds2TimeStr: (seconds: number) => string;
6
- export declare const getTencentInfo: () => Promise<{
7
+ export declare const getTencentCosInfo: () => Promise<{
7
8
  cos: COS;
8
9
  path: string;
9
10
  bucket: string;
10
11
  region: string;
11
12
  }>;
13
+ export declare const getAliYunOssInfo: () => Promise<{
14
+ oss: OSS;
15
+ path: string;
16
+ bucket: string;
17
+ region: string;
18
+ }>;
12
19
  export declare const object2query: (data: {
13
20
  [key: string]: any;
14
21
  }) => string;
@@ -22,8 +22,10 @@ export interface ToolParamFile {
22
22
  uid?: string;
23
23
  }
24
24
  export declare enum FileSource {
25
- Local = 0,// 本地
26
- Cos = 1
25
+ LocalPath = 0,// 本地(路径)
26
+ TencentCos = 1,// 腾讯云cos
27
+ ObjectUrl = 2,// ObjectUrl
28
+ AliYunOss = 3
27
29
  }
28
30
  export interface ToolParamFileDownload {
29
31
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"
@@ -28,6 +28,7 @@
28
28
  "@arco-plugins/unplugin-react": "^1.0.2",
29
29
  "@reduxjs/toolkit": "^2.0.1",
30
30
  "@rollup/plugin-typescript": "^11.1.6",
31
+ "@types/ali-oss": "^6.16.11",
31
32
  "@types/node": "^20.12.6",
32
33
  "@types/react": "^18.2.66",
33
34
  "@types/react-dom": "^18.2.22",
@@ -38,6 +39,7 @@
38
39
  "@vitejs/plugin-react": "^4.2.1",
39
40
  "axios": "^1.6.8",
40
41
  "cos-js-sdk-v5": "^1.5.0",
42
+ "ali-oss": "^6.21.0",
41
43
  "eslint": "^8.57.0",
42
44
  "eslint-plugin-react-hooks": "^4.6.0",
43
45
  "eslint-plugin-react-refresh": "^0.4.6",