@wox-launcher/wox-plugin 0.0.30 → 0.0.33
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.d.ts +5 -8
- package/package.json +1 -1
- package/dist/image.d.ts +0 -2
- package/dist/image.js +0 -35
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,11 @@ export interface Result {
|
|
|
27
27
|
SubTitle?: string;
|
|
28
28
|
Icon: WoxImage;
|
|
29
29
|
Score?: number;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* If true, Wox will not hide after user select this result
|
|
32
|
+
*/
|
|
33
|
+
PreventHideAfterAction?: boolean;
|
|
34
|
+
Action: () => Promise<void>;
|
|
31
35
|
}
|
|
32
36
|
export interface PluginInitContext {
|
|
33
37
|
API: PublicAPI;
|
|
@@ -63,10 +67,3 @@ export interface WoxImage {
|
|
|
63
67
|
ImageType: WoxImageType;
|
|
64
68
|
ImageData: string;
|
|
65
69
|
}
|
|
66
|
-
export interface WoxImageCreator {
|
|
67
|
-
FromAbsolutePath(path: string): WoxImage;
|
|
68
|
-
FromRelativeToPluginPath(path: string): WoxImage;
|
|
69
|
-
FromSvg(svg: string): WoxImage;
|
|
70
|
-
FromBase64(base64: string): WoxImage;
|
|
71
|
-
FromRemote(url: string): WoxImage;
|
|
72
|
-
}
|
package/package.json
CHANGED
package/dist/image.d.ts
DELETED
package/dist/image.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WoxImageBuilder = void 0;
|
|
4
|
-
exports.WoxImageBuilder = {
|
|
5
|
-
FromAbsolutePath: function (path) {
|
|
6
|
-
return {
|
|
7
|
-
ImageType: "AbsolutePath",
|
|
8
|
-
ImageData: path
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
FromRelativeToPluginPath: function (path) {
|
|
12
|
-
return {
|
|
13
|
-
ImageType: "RelativeToPluginPath",
|
|
14
|
-
ImageData: path
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
FromSvg: function (svg) {
|
|
18
|
-
return {
|
|
19
|
-
ImageType: "Svg",
|
|
20
|
-
ImageData: svg
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
|
-
FromBase64: function (base64) {
|
|
24
|
-
return {
|
|
25
|
-
ImageType: "Base64",
|
|
26
|
-
ImageData: base64
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
FromRemote: function (url) {
|
|
30
|
-
return {
|
|
31
|
-
ImageType: "Remote",
|
|
32
|
-
ImageData: url
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
};
|