@wox-launcher/wox-plugin 0.0.51 → 0.0.53

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 +7 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -52,10 +52,10 @@ export interface Result {
52
52
  Icon: WoxImage;
53
53
  Preview?: WoxPreview;
54
54
  Score?: number;
55
- ContextData: string;
56
- Actions: ResultAction[];
57
- RefreshInterval: number;
58
- OnRefresh: (current: RefreshableResult) => Promise<RefreshableResult>;
55
+ ContextData?: string;
56
+ Actions?: ResultAction[];
57
+ RefreshInterval?: number;
58
+ OnRefresh?: (current: RefreshableResult) => Promise<RefreshableResult>;
59
59
  }
60
60
  export interface RefreshableResult {
61
61
  Title: string;
@@ -71,7 +71,7 @@ export interface ResultAction {
71
71
  */
72
72
  Id?: string;
73
73
  Name: string;
74
- Icon: WoxImage;
74
+ Icon?: WoxImage;
75
75
  /**
76
76
  * If true, Wox will use this action as default action. There can be only one default action in results
77
77
  * This can be omitted, if you don't set it, Wox will use the first action as default action
@@ -109,9 +109,9 @@ export interface PublicAPI {
109
109
  */
110
110
  ShowApp: () => Promise<void>;
111
111
  /**
112
- * Show message box
112
+ * Notify message
113
113
  */
114
- ShowMsg: (title: string, description?: string, iconPath?: string) => Promise<void>;
114
+ Notify: (title: string, description?: string, iconPath?: string) => Promise<void>;
115
115
  /**
116
116
  * Write log
117
117
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",