@wox-launcher/wox-plugin 0.0.31 → 0.0.35

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 +15 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -26,8 +26,13 @@ export interface Result {
26
26
  Title: string;
27
27
  SubTitle?: string;
28
28
  Icon: WoxImage;
29
+ Preview?: WoxPreview;
29
30
  Score?: number;
30
- Action: () => Promise<boolean>;
31
+ /**
32
+ * If true, Wox will not hide after user select this result
33
+ */
34
+ PreventHideAfterAction?: boolean;
35
+ Action: () => Promise<void>;
31
36
  }
32
37
  export interface PluginInitContext {
33
38
  API: PublicAPI;
@@ -58,8 +63,16 @@ export interface PublicAPI {
58
63
  */
59
64
  GetTranslation: (key: string) => Promise<string>;
60
65
  }
61
- export type WoxImageType = "AbsolutePath" | "RelativeToPluginPath" | "Svg" | "Base64" | "Remote";
66
+ export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url";
62
67
  export interface WoxImage {
63
68
  ImageType: WoxImageType;
64
69
  ImageData: string;
65
70
  }
71
+ export type WoxPreviewType = "markdown" | "text" | "image";
72
+ export interface WoxPreview {
73
+ PreviewType: WoxPreviewType;
74
+ PreviewData: string;
75
+ PreviewProperties: {
76
+ string: string;
77
+ };
78
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.31",
3
+ "version": "0.0.35",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",