@wox-launcher/wox-plugin 0.0.24 → 0.0.25
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 +1 -9
- package/dist/index.js +0 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface Query {
|
|
|
24
24
|
export interface Result {
|
|
25
25
|
Id?: string;
|
|
26
26
|
Title: string;
|
|
27
|
-
|
|
27
|
+
SubTitle?: string;
|
|
28
28
|
Icon: WoxImage;
|
|
29
29
|
Score?: number;
|
|
30
30
|
Action: () => Promise<boolean>;
|
|
@@ -63,11 +63,3 @@ export interface WoxImage {
|
|
|
63
63
|
ImageType: WoxImageType;
|
|
64
64
|
ImageData: string;
|
|
65
65
|
}
|
|
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
|
-
}
|
|
73
|
-
export declare const WoxImageBuilder: WoxImageCreator;
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
-
};
|