@wox-launcher/wox-plugin 0.0.50 → 0.0.52

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 (2) hide show
  1. package/dist/index.d.ts +8 -14
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -38,12 +38,6 @@ export interface Query {
38
38
  * NOTE: Only available when query type is input
39
39
  */
40
40
  Search: string;
41
- /**
42
- * if this query is a shortcut expand query, this property will be origin query before expand
43
- *
44
- * NOTE: Only available when query type is input
45
- */
46
- ShortcutFrom: string;
47
41
  /**
48
42
  * User selected or drag-drop data, can be text or file or image etc
49
43
  *
@@ -58,10 +52,10 @@ export interface Result {
58
52
  Icon: WoxImage;
59
53
  Preview?: WoxPreview;
60
54
  Score?: number;
61
- ContextData: string;
62
- Actions: ResultAction[];
63
- RefreshInterval: number;
64
- OnRefresh: (current: RefreshableResult) => Promise<RefreshableResult>;
55
+ ContextData?: string;
56
+ Actions?: ResultAction[];
57
+ RefreshInterval?: number;
58
+ OnRefresh?: (current: RefreshableResult) => Promise<RefreshableResult>;
65
59
  }
66
60
  export interface RefreshableResult {
67
61
  Title: string;
@@ -77,7 +71,7 @@ export interface ResultAction {
77
71
  */
78
72
  Id?: string;
79
73
  Name: string;
80
- Icon: WoxImage;
74
+ Icon?: WoxImage;
81
75
  /**
82
76
  * If true, Wox will use this action as default action. There can be only one default action in results
83
77
  * This can be omitted, if you don't set it, Wox will use the first action as default action
@@ -97,9 +91,9 @@ export interface PluginInitContext {
97
91
  PluginDirectory: string;
98
92
  }
99
93
  export interface ChangeQueryParam {
100
- QueryType: string;
101
- QueryText: string;
102
- QuerySelection: Selection;
94
+ QueryType: "input" | "selection";
95
+ QueryText?: string;
96
+ QuerySelection?: Selection;
103
97
  }
104
98
  export interface PublicAPI {
105
99
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",