zyjj-web-sdk 1.0.21 → 1.0.23

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 (49) hide show
  1. package/package.json +1 -1
  2. package/lib/APlayer.min-9ukXWHtq.js +0 -1306
  3. package/lib/DPlayer.min-Cl9WiJp7.js +0 -7739
  4. package/lib/api/api.d.ts +0 -48
  5. package/lib/api/entity.d.ts +0 -66
  6. package/lib/api/request.d.ts +0 -1
  7. package/lib/components/ConcatButton.d.ts +0 -9
  8. package/lib/components/MaterialCard.d.ts +0 -6
  9. package/lib/components/PageTable.d.ts +0 -19
  10. package/lib/components/TokenInput.d.ts +0 -5
  11. package/lib/components/ToolCard.d.ts +0 -10
  12. package/lib/components/UserLogin.d.ts +0 -10
  13. package/lib/components/lab/ElementTypeAlert.d.ts +0 -3
  14. package/lib/components/lab/ElementTypeAudio.d.ts +0 -10
  15. package/lib/components/lab/ElementTypeImage.d.ts +0 -2
  16. package/lib/components/lab/ElementTypeImageList.d.ts +0 -2
  17. package/lib/components/lab/ElementTypeInput.d.ts +0 -3
  18. package/lib/components/lab/ElementTypeNumber.d.ts +0 -3
  19. package/lib/components/lab/ElementTypeSelect.d.ts +0 -3
  20. package/lib/components/lab/ElementTypeSlider.d.ts +0 -3
  21. package/lib/components/lab/ElementTypeText.d.ts +0 -2
  22. package/lib/components/lab/ElementTypeTextArea.d.ts +0 -3
  23. package/lib/components/lab/ElementTypeUpload.d.ts +0 -4
  24. package/lib/components/lab/ElementTypeVideo.d.ts +0 -10
  25. package/lib/components/lab/LabElement.d.ts +0 -7
  26. package/lib/components/lab/common.d.ts +0 -28
  27. package/lib/index-DYCuXcu7.js +0 -6554
  28. package/lib/index-DtMxRUqJ.js +0 -59003
  29. package/lib/index.d.ts +0 -121
  30. package/lib/index.js +0 -16
  31. package/lib/index.umd.cjs +0 -4885
  32. package/lib/pages/MaterialList.d.ts +0 -8
  33. package/lib/pages/SearchBar.d.ts +0 -29
  34. package/lib/pages/TaskList.d.ts +0 -12
  35. package/lib/pages/ToolList.d.ts +0 -10
  36. package/lib/pages/UserInfoPage.d.ts +0 -9
  37. package/lib/store/entity.d.ts +0 -15
  38. package/lib/store/mqtt.d.ts +0 -11
  39. package/lib/store/user.d.ts +0 -11
  40. package/lib/style.css +0 -1
  41. package/lib/tool/db.d.ts +0 -7
  42. package/lib/tool/render.d.ts +0 -3
  43. package/lib/tool/utils.d.ts +0 -21
  44. package/lib/types/cloud.d.ts +0 -78
  45. package/lib/types/config.d.ts +0 -36
  46. package/lib/types/local-task.d.ts +0 -162
  47. package/lib/types/map.d.ts +0 -2
  48. package/lib/types/mqtt.d.ts +0 -16
  49. package/lib/types/tool-task.d.ts +0 -135
package/lib/index.d.ts DELETED
@@ -1,121 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileSource, LocalTaskStatus, LocalActionReqType, LocalActionResType, LocalTaskEventType, TaskType } from "./types/local-task.ts";
3
- import { CloudTaskStatus, ToolType } from "./types/cloud.ts";
4
- import { MQTTEventType } from "./types/mqtt.ts";
5
- import { FfmpegActionType, LabElementType, ToolConfigType, ToolTaskType } from "./types/tool-task.ts";
6
- export { default as UserLoginModal } from './components/UserLogin.tsx';
7
- export type { UserLoginModalProps } from './components/UserLogin.tsx';
8
- export { default as PageTable } from './components/PageTable.tsx';
9
- export type { PageTableProps } from './components/PageTable.tsx';
10
- export { default as ConcatButton } from './components/ConcatButton.tsx';
11
- export type { ConcatButtonProps } from './components/ConcatButton.tsx';
12
- export { default as LabElement } from './components/lab/LabElement.tsx';
13
- export type { ElementTypeProps } from './components/lab/common.tsx';
14
- export { default as ToolList } from './pages/ToolList.tsx';
15
- export type { ToolListProps } from './pages/ToolList.tsx';
16
- export { default as MaterialList } from './pages/MaterialList.tsx';
17
- export type { MaterialListProps } from './pages/MaterialList.tsx';
18
- export { default as UserInfoPage } from './pages/UserInfoPage.tsx';
19
- export type { UserInfoPageProps } from './pages/UserInfoPage.tsx';
20
- export { default as TaskList } from './pages/TaskList.tsx';
21
- export type { TaskListProps } from './pages/TaskList.tsx';
22
- export { default as SearchBar } from './pages/SearchBar.tsx';
23
- export type { SearchBarProps } from './pages/SearchBar.tsx';
24
- export declare const Api: {
25
- GetAllTool: () => Promise<import("./api/entity.ts").GetPageInfo<import("./types/cloud.ts").ToolInfo>>;
26
- UpdateUserInfo: (data: {
27
- tool_id_list?: string[] | undefined;
28
- }) => Promise<unknown>;
29
- GetAppInfo: () => Promise<import("./types/cloud.ts").AppInfo>;
30
- CostPoint: (data: {
31
- name: string;
32
- point: number;
33
- desc: string;
34
- uid: string;
35
- }) => Promise<void>;
36
- SendCommonRequest: <T>(data: {
37
- url: string;
38
- data?: any;
39
- method: string;
40
- }) => Promise<T>;
41
- GetUserInfo: () => Promise<import("./types/cloud.ts").UserInfo>;
42
- UserDownloadMaterial: (id: string) => Promise<string>;
43
- GetMqttTaskClientInfo: () => Promise<import("./api/entity.ts").MqttClientInfo>;
44
- AddTask: (data: import("./api/entity.ts").AddTaskReq) => Promise<string>;
45
- GetTaskInfo: (id: string) => Promise<import("./types/cloud.ts").TaskInfo>;
46
- GetTencentCosInfo: () => Promise<import("./api/entity.ts").GetCosResp>;
47
- GetMaterialUrl: (key_list: string[]) => Promise<{
48
- [key: string]: string;
49
- }>;
50
- GetMaterialTagList: () => Promise<string[]>;
51
- GetToolList: (req: import("./api/entity.ts").GetPageReq) => Promise<import("./api/entity.ts").GetPageInfo<import("./types/cloud.ts").ToolInfo>>;
52
- GetToolTagList: () => Promise<string[]>;
53
- GetToolDetail: (id: string) => Promise<import("./api/entity.ts").GetToolDetailResp>;
54
- };
55
- export declare const Enum: {
56
- ToolType: typeof ToolType;
57
- LocalActionReqType: typeof LocalActionReqType;
58
- LocalActionResType: typeof LocalActionResType;
59
- MQTTEventType: typeof MQTTEventType;
60
- FileSource: typeof FileSource;
61
- LocalTaskStatus: typeof LocalTaskStatus;
62
- LocalTaskEventType: typeof LocalTaskEventType;
63
- ToolTaskType: typeof ToolTaskType;
64
- FfmpegActionType: typeof FfmpegActionType;
65
- CloudTaskStatus: typeof CloudTaskStatus;
66
- TaskType: typeof TaskType;
67
- LabElementType: typeof LabElementType;
68
- ToolConfigType: typeof ToolConfigType;
69
- IconMap: Map<string, JSX.Element>;
70
- };
71
- export declare const Tool: {
72
- render: {
73
- renderTime: (time: number) => string;
74
- renderEllipsis: (value: string) => import("react/jsx-runtime").JSX.Element;
75
- renderCopy: (value: string) => import("react/jsx-runtime").JSX.Element;
76
- };
77
- utils: {
78
- file2ToolParamFile: (file: File) => import("./types/local-task.ts").ToolParamFile;
79
- seconds2TimeStr: (seconds: number) => string;
80
- getTencentInfo: () => Promise<{
81
- cos: import("cos-js-sdk-v5");
82
- path: string;
83
- bucket: string;
84
- region: string;
85
- }>;
86
- object2query: (data: {
87
- [key: string]: any;
88
- }) => string;
89
- paramReplace: (value: string, data: {
90
- [key: string]: any;
91
- }) => string;
92
- object2urlParam: (data: {
93
- [key: string]: any;
94
- }) => string;
95
- };
96
- db: {
97
- addTask: (data: import("./types/local-task.ts").LocalTaskInfo, table?: string) => Promise<IDBValidKey>;
98
- getAllData: <T>(table?: string) => Promise<T[]>;
99
- getData: <T_1>(id: string, table?: string) => Promise<T_1>;
100
- updateData: <T_2>(id: string, data: T_2, table?: string) => Promise<IDBValidKey>;
101
- deleteData: (id: string, table?: string) => Promise<void>;
102
- };
103
- };
104
- export declare const Store: {
105
- UserReducer: import("redux").Reducer<import("./store/entity.ts").UserState>;
106
- UserAction: import("@reduxjs/toolkit").CaseReducerActions<{
107
- loginOut(state: import("immer").WritableDraft<import("./store/entity.ts").UserState>): void;
108
- showLogin(state: import("immer").WritableDraft<import("./store/entity.ts").UserState>): void;
109
- hideLogin(state: import("immer").WritableDraft<import("./store/entity.ts").UserState>): void;
110
- }, "user">;
111
- GetUserInfo: import("@reduxjs/toolkit").AsyncThunk<import("./types/cloud.ts").UserInfo | undefined, undefined, any>;
112
- MqttReducer: import("redux").Reducer<import("./store/entity.ts").MqttState>;
113
- MqttAction: import("@reduxjs/toolkit").CaseReducerActions<{
114
- addTaskEvent(state: import("immer").WritableDraft<import("./store/entity.ts").MqttState>, info: {
115
- payload: import("./types/mqtt.ts").MqttResponse;
116
- type: string;
117
- }): void;
118
- closeClient(state: import("immer").WritableDraft<import("./store/entity.ts").MqttState>): void;
119
- }, "mqtt">;
120
- InitMqtt: import("@reduxjs/toolkit").AsyncThunk<import("mqtt").MqttClient, undefined, any>;
121
- };
package/lib/index.js DELETED
@@ -1,16 +0,0 @@
1
- import { A as e, C as o, E as t, L as r, M as i, P as l, e as n, S as L, d as T, T as b, a as g, b as m, U as E } from "./index-DtMxRUqJ.js";
2
- export {
3
- e as Api,
4
- o as ConcatButton,
5
- t as Enum,
6
- r as LabElement,
7
- i as MaterialList,
8
- l as PageTable,
9
- n as SearchBar,
10
- L as Store,
11
- T as TaskList,
12
- b as Tool,
13
- g as ToolList,
14
- m as UserInfoPage,
15
- E as UserLoginModal
16
- };