zyjj-web-sdk 1.0.20 → 1.0.21

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.
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import './css/search.css';
3
3
  import { ToolInfo } from "../types/cloud.ts";
4
- import { ToolFindConfig } from "../types/components.ts";
4
+ import { ToolFindConfig } from "../types/config.ts";
5
5
  import { LocalActionReqDataOpenTool } from "../types/local-task.ts";
6
6
  export interface FindInfo {
7
7
  tool_info: {
@@ -0,0 +1,36 @@
1
+ export interface ToolFindConfig {
2
+ id: string;
3
+ tool_id: string;
4
+ ext?: string[];
5
+ fields: FieldInfo[];
6
+ regex?: string[];
7
+ }
8
+ export interface FieldInfo {
9
+ field: string;
10
+ value: string;
11
+ }
12
+ export interface ExtensionConfigToolInfo {
13
+ tool_id: string;
14
+ tiger_type: number;
15
+ fields: FieldInfo[];
16
+ width: number;
17
+ }
18
+ export interface ExtensionConfigWebButton {
19
+ id: string;
20
+ name: string;
21
+ icon: string;
22
+ regex: string[];
23
+ button_type: number;
24
+ tool: ExtensionConfigToolInfo;
25
+ }
26
+ export interface ExtensionConfigContextMenu {
27
+ id: string;
28
+ name: string;
29
+ urls: string[];
30
+ context: string[];
31
+ tool: ExtensionConfigToolInfo;
32
+ }
33
+ export interface ExtensionConfig {
34
+ web_button: ExtensionConfigWebButton[];
35
+ context_menu: ExtensionConfigContextMenu[];
36
+ }
@@ -71,10 +71,10 @@ export interface ToolDetailLab {
71
71
  outputs: LabCoreOutputOption[];
72
72
  submit_init?: {
73
73
  [key: string]: any;
74
- } | string;
74
+ };
75
75
  form_init?: {
76
76
  [key: string]: any;
77
- } | string;
77
+ };
78
78
  task_type: TaskType;
79
79
  loading: string;
80
80
  submit_text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"
@@ -1,11 +0,0 @@
1
- export interface ToolFindConfig {
2
- id: string;
3
- tool_id: string;
4
- ext?: string[];
5
- fields: FieldInfo[];
6
- regex?: string[];
7
- }
8
- export interface FieldInfo {
9
- field: string;
10
- value: string;
11
- }