@wox-launcher/wox-plugin 0.0.62 → 0.0.65
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/dist/index.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +12 -1
- package/dist/context.d.ts +0 -3
- package/dist/image.d.ts +0 -2
- package/dist/index.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
1
|
+
export * from "./context.js";
|
|
2
|
+
export * from "./image.js";
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ export interface Query {
|
|
|
49
49
|
* NOTE: Only available when query type is selection
|
|
50
50
|
*/
|
|
51
51
|
Selection: Selection
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Whether current query is global query
|
|
55
|
+
*/
|
|
56
|
+
IsGlobalQuery(): boolean
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
export interface Result {
|
|
@@ -177,9 +182,15 @@ export interface WoxPreview {
|
|
|
177
182
|
PreviewProperties: Record<string, string>
|
|
178
183
|
}
|
|
179
184
|
|
|
180
|
-
export interface Context {
|
|
185
|
+
export declare interface Context {
|
|
181
186
|
Values: { [key: string]: string }
|
|
182
187
|
Get: (key: string) => string | undefined
|
|
183
188
|
Set: (key: string, value: string) => void
|
|
184
189
|
Exists: (key: string) => boolean
|
|
185
190
|
}
|
|
191
|
+
|
|
192
|
+
export function NewContext(): Context;
|
|
193
|
+
|
|
194
|
+
export function NewContextWithValue(key: string, value: string): Context;
|
|
195
|
+
|
|
196
|
+
export function NewBase64WoxImage(imageData: string): WoxImage;
|
package/dist/context.d.ts
DELETED
package/dist/image.d.ts
DELETED
package/dist/index.d.ts
DELETED