@wox-launcher/wox-plugin 0.0.20 → 0.0.22

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 CHANGED
@@ -63,10 +63,10 @@ export interface WoxImage {
63
63
  ImageType: WoxImageType;
64
64
  ImageData: string;
65
65
  }
66
- export declare namespace WoxImage {
67
- function FromAbsolutePath(path: string): WoxImage;
68
- function FromRelativeToPluginPath(path: string): WoxImage;
69
- function FromSvg(svg: string): WoxImage;
70
- function FromBase64(base64: string): WoxImage;
71
- function FromRemote(url: string): WoxImage;
66
+ export declare class WoxImageCreator {
67
+ static FromAbsolutePath(path: string): WoxImage;
68
+ static FromRelativeToPluginPath(path: string): WoxImage;
69
+ static FromSvg(svg: string): WoxImage;
70
+ static FromBase64(base64: string): WoxImage;
71
+ static FromRemote(url: string): WoxImage;
72
72
  }
package/dist/index.js CHANGED
@@ -1,41 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WoxImage = void 0;
4
- var WoxImage;
5
- (function (WoxImage) {
6
- function FromAbsolutePath(path) {
3
+ exports.WoxImageCreator = void 0;
4
+ var WoxImageCreator = /** @class */ (function () {
5
+ function WoxImageCreator() {
6
+ }
7
+ WoxImageCreator.FromAbsolutePath = function (path) {
7
8
  return {
8
9
  ImageType: "AbsolutePath",
9
- ImageData: path,
10
+ ImageData: path
10
11
  };
11
- }
12
- WoxImage.FromAbsolutePath = FromAbsolutePath;
13
- function FromRelativeToPluginPath(path) {
12
+ };
13
+ WoxImageCreator.FromRelativeToPluginPath = function (path) {
14
14
  return {
15
15
  ImageType: "RelativeToPluginPath",
16
- ImageData: path,
16
+ ImageData: path
17
17
  };
18
- }
19
- WoxImage.FromRelativeToPluginPath = FromRelativeToPluginPath;
20
- function FromSvg(svg) {
18
+ };
19
+ WoxImageCreator.FromSvg = function (svg) {
21
20
  return {
22
21
  ImageType: "Svg",
23
- ImageData: svg,
22
+ ImageData: svg
24
23
  };
25
- }
26
- WoxImage.FromSvg = FromSvg;
27
- function FromBase64(base64) {
24
+ };
25
+ WoxImageCreator.FromBase64 = function (base64) {
28
26
  return {
29
27
  ImageType: "Base64",
30
- ImageData: base64,
28
+ ImageData: base64
31
29
  };
32
- }
33
- WoxImage.FromBase64 = FromBase64;
34
- function FromRemote(url) {
30
+ };
31
+ WoxImageCreator.FromRemote = function (url) {
35
32
  return {
36
33
  ImageType: "Remote",
37
- ImageData: url,
34
+ ImageData: url
38
35
  };
39
- }
40
- WoxImage.FromRemote = FromRemote;
41
- })(WoxImage || (exports.WoxImage = WoxImage = {}));
36
+ };
37
+ return WoxImageCreator;
38
+ }());
39
+ exports.WoxImageCreator = WoxImageCreator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",