@wox-launcher/wox-plugin 0.0.45 → 0.0.47

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 +6 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -95,12 +95,16 @@ export interface PublicAPI {
95
95
  GetTranslation: (key: string) => Promise<string>;
96
96
  /**
97
97
  * Get customized setting
98
+ *
99
+ * will try to get platform specific setting first, if not found, will try to get global setting
98
100
  */
99
101
  GetSetting: (key: string) => Promise<string>;
100
102
  /**
101
103
  * Save customized setting
104
+ *
105
+ * @isPlatformSpecific If true, setting will be only saved in current platform. If false, setting will be available in all platforms
102
106
  */
103
- SaveSetting: (key: string, value: string) => Promise<void>;
107
+ SaveSetting: (key: string, value: string, isPlatformSpecific: boolean) => Promise<void>;
104
108
  /**
105
109
  * Register setting changed callback
106
110
  */
@@ -111,7 +115,7 @@ export interface WoxImage {
111
115
  ImageType: WoxImageType;
112
116
  ImageData: string;
113
117
  }
114
- export type WoxPreviewType = "markdown" | "text" | "image";
118
+ export type WoxPreviewType = "markdown" | "text" | "image" | "url";
115
119
  export interface WoxPreview {
116
120
  PreviewType: WoxPreviewType;
117
121
  PreviewData: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",