@wox-launcher/wox-plugin 0.0.22 → 0.0.24

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