@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 CHANGED
@@ -1,2 +1,2 @@
1
- export * from "src/context";
2
- export * from "src/image";
1
+ export * from "./context.js";
2
+ export * from "./image.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.62",
3
+ "version": "0.0.65",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
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
@@ -1,3 +0,0 @@
1
- import { Context } from "types/index";
2
- export declare function NewContext(): Context;
3
- export declare function NewContextWithValue(key: string, value: string): Context;
package/dist/image.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { WoxImage } from "types/index";
2
- export declare function NewBase64WoxImage(imageData: string): WoxImage;
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "src/context";
2
- export * from "src/image";