@wox-launcher/wox-plugin 0.0.92 → 0.0.96
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/package.json +1 -1
- package/types/ai.d.ts +21 -12
- package/types/index.d.ts +568 -527
- package/types/setting.d.ts +97 -97
package/types/setting.d.ts
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { Context, Platform } from "./index.js"
|
|
2
|
-
|
|
3
|
-
export type PluginSettingDefinitionType = "head" | "textbox" | "checkbox" | "select" | "label" | "newline" | "table" | "dynamic"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface PluginSettingValueStyle {
|
|
7
|
-
PaddingLeft: number
|
|
8
|
-
PaddingTop: number
|
|
9
|
-
PaddingRight: number
|
|
10
|
-
PaddingBottom: number
|
|
11
|
-
|
|
12
|
-
Width: number
|
|
13
|
-
LabelWidth: number // if has label, E.g. select, checkbox, textbox
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface PluginSettingDefinitionValue {
|
|
17
|
-
GetKey: () => string
|
|
18
|
-
GetDefaultValue: () => string
|
|
19
|
-
Translate: (translator: (ctx: Context, key: string) => string) => void
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface PluginSettingDefinitionItem {
|
|
23
|
-
Type: PluginSettingDefinitionType
|
|
24
|
-
Value: PluginSettingDefinitionValue
|
|
25
|
-
DisabledInPlatforms: Platform[]
|
|
26
|
-
IsPlatformSpecific: boolean // if true, this setting may be different in different platforms
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface MetadataCommand {
|
|
30
|
-
Command: string
|
|
31
|
-
Description: string
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface PluginSettingValueCheckBox extends PluginSettingDefinitionValue {
|
|
35
|
-
Key: string
|
|
36
|
-
Label: string
|
|
37
|
-
DefaultValue: string
|
|
38
|
-
Tooltip: string
|
|
39
|
-
Style: PluginSettingValueStyle
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface PluginSettingValueDynamic extends PluginSettingDefinitionValue {
|
|
43
|
-
Key: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface PluginSettingValueHead extends PluginSettingDefinitionValue {
|
|
47
|
-
Content: string
|
|
48
|
-
Tooltip: string
|
|
49
|
-
Style: PluginSettingValueStyle
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface PluginSettingValueLabel extends PluginSettingDefinitionValue {
|
|
53
|
-
Content: string
|
|
54
|
-
Tooltip: string
|
|
55
|
-
Style: PluginSettingValueStyle
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface PluginSettingValueNewline extends PluginSettingDefinitionValue {
|
|
59
|
-
Style: PluginSettingValueStyle
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface PluginSettingValueSelect extends PluginSettingDefinitionValue {
|
|
63
|
-
Key: string
|
|
64
|
-
Label: string
|
|
65
|
-
Suffix: string
|
|
66
|
-
DefaultValue: string
|
|
67
|
-
Tooltip: string
|
|
68
|
-
Options: PluginSettingValueSelectOption[]
|
|
69
|
-
Validators: PluginSettingValidator[] // validators for this setting, every validator should be satisfied
|
|
70
|
-
|
|
71
|
-
Style: PluginSettingValueStyle
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface PluginSettingValueSelectOption {
|
|
75
|
-
Label: string
|
|
76
|
-
Value: string
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type PluginSettingValidatorType = "is_number" | "not_empty"
|
|
80
|
-
|
|
81
|
-
export interface PluginSettingValidator {
|
|
82
|
-
Type: PluginSettingValidatorType
|
|
83
|
-
Value: PluginSettingValidatorValue
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface PluginSettingValidatorValue {
|
|
87
|
-
GetValidatorType(): PluginSettingValidatorType
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface PluginSettingValidatorIsNumber extends PluginSettingValidatorValue {
|
|
91
|
-
IsInteger: boolean
|
|
92
|
-
IsFloat: boolean
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface PluginSettingValidatorNotEmpty extends PluginSettingValidatorValue {
|
|
96
|
-
|
|
97
|
-
}
|
|
1
|
+
import { Context, Platform } from "./index.js"
|
|
2
|
+
|
|
3
|
+
export type PluginSettingDefinitionType = "head" | "textbox" | "checkbox" | "select" | "label" | "newline" | "table" | "dynamic"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export interface PluginSettingValueStyle {
|
|
7
|
+
PaddingLeft: number
|
|
8
|
+
PaddingTop: number
|
|
9
|
+
PaddingRight: number
|
|
10
|
+
PaddingBottom: number
|
|
11
|
+
|
|
12
|
+
Width: number
|
|
13
|
+
LabelWidth: number // if has label, E.g. select, checkbox, textbox
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface PluginSettingDefinitionValue {
|
|
17
|
+
GetKey: () => string
|
|
18
|
+
GetDefaultValue: () => string
|
|
19
|
+
Translate: (translator: (ctx: Context, key: string) => string) => void
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface PluginSettingDefinitionItem {
|
|
23
|
+
Type: PluginSettingDefinitionType
|
|
24
|
+
Value: PluginSettingDefinitionValue
|
|
25
|
+
DisabledInPlatforms: Platform[]
|
|
26
|
+
IsPlatformSpecific: boolean // if true, this setting may be different in different platforms
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface MetadataCommand {
|
|
30
|
+
Command: string
|
|
31
|
+
Description: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface PluginSettingValueCheckBox extends PluginSettingDefinitionValue {
|
|
35
|
+
Key: string
|
|
36
|
+
Label: string
|
|
37
|
+
DefaultValue: string
|
|
38
|
+
Tooltip: string
|
|
39
|
+
Style: PluginSettingValueStyle
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PluginSettingValueDynamic extends PluginSettingDefinitionValue {
|
|
43
|
+
Key: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface PluginSettingValueHead extends PluginSettingDefinitionValue {
|
|
47
|
+
Content: string
|
|
48
|
+
Tooltip: string
|
|
49
|
+
Style: PluginSettingValueStyle
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface PluginSettingValueLabel extends PluginSettingDefinitionValue {
|
|
53
|
+
Content: string
|
|
54
|
+
Tooltip: string
|
|
55
|
+
Style: PluginSettingValueStyle
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface PluginSettingValueNewline extends PluginSettingDefinitionValue {
|
|
59
|
+
Style: PluginSettingValueStyle
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface PluginSettingValueSelect extends PluginSettingDefinitionValue {
|
|
63
|
+
Key: string
|
|
64
|
+
Label: string
|
|
65
|
+
Suffix: string
|
|
66
|
+
DefaultValue: string
|
|
67
|
+
Tooltip: string
|
|
68
|
+
Options: PluginSettingValueSelectOption[]
|
|
69
|
+
Validators: PluginSettingValidator[] // validators for this setting, every validator should be satisfied
|
|
70
|
+
|
|
71
|
+
Style: PluginSettingValueStyle
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface PluginSettingValueSelectOption {
|
|
75
|
+
Label: string
|
|
76
|
+
Value: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type PluginSettingValidatorType = "is_number" | "not_empty"
|
|
80
|
+
|
|
81
|
+
export interface PluginSettingValidator {
|
|
82
|
+
Type: PluginSettingValidatorType
|
|
83
|
+
Value: PluginSettingValidatorValue
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface PluginSettingValidatorValue {
|
|
87
|
+
GetValidatorType(): PluginSettingValidatorType
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface PluginSettingValidatorIsNumber extends PluginSettingValidatorValue {
|
|
91
|
+
IsInteger: boolean
|
|
92
|
+
IsFloat: boolean
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface PluginSettingValidatorNotEmpty extends PluginSettingValidatorValue {
|
|
96
|
+
|
|
97
|
+
}
|