@wox-launcher/wox-plugin 0.0.67 → 0.0.69

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/package.json +7 -7
  2. package/types/index.d.ts +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,12 +14,12 @@
14
14
  "types"
15
15
  ],
16
16
  "devDependencies": {
17
- "@typescript-eslint/eslint-plugin": "^6.6.0",
18
- "@typescript-eslint/parser": "^6.6.0",
19
- "eslint": "^8.49.0",
20
- "eslint-config-prettier": "9.0.0",
21
- "prettier": "3.0.2",
22
- "typescript": "^5.2.2"
17
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
18
+ "@typescript-eslint/parser": "^7.13.1",
19
+ "eslint": "^9.5.0",
20
+ "eslint-config-prettier": "9.1.0",
21
+ "prettier": "3.3.2",
22
+ "typescript": "^5.4.5"
23
23
  },
24
24
  "dependencies": {},
25
25
  "scripts": {
package/types/index.d.ts CHANGED
@@ -74,7 +74,6 @@ export interface Query {
74
74
  IsGlobalQuery(): boolean
75
75
  }
76
76
 
77
-
78
77
  export interface Result {
79
78
  Id?: string
80
79
  Title: string
@@ -190,6 +189,11 @@ export interface PublicAPI {
190
189
  */
191
190
  OnGetDynamicSetting: (ctx: Context, callback: (key: string) => PluginSettingDefinitionItem) => Promise<void>
192
191
 
192
+ /**
193
+ * Register deep link callback
194
+ */
195
+ OnDeepLink: (ctx: Context, callback: (arguments: Map<string, string>) => void) => Promise<void>
196
+
193
197
  /**
194
198
  * Register query commands
195
199
  */
@@ -208,7 +212,7 @@ export interface WoxImage {
208
212
  ImageData: string
209
213
  }
210
214
 
211
- export type WoxPreviewType = "markdown" | "text" | "image" | "url" | "pdf"
215
+ export type WoxPreviewType = "markdown" | "text" | "image" | "url" | "file"
212
216
 
213
217
  export interface WoxPreview {
214
218
  PreviewType: WoxPreviewType
@@ -223,8 +227,8 @@ export declare interface Context {
223
227
  Exists: (key: string) => boolean
224
228
  }
225
229
 
226
- export function NewContext(): Context;
230
+ export function NewContext(): Context
227
231
 
228
- export function NewContextWithValue(key: string, value: string): Context;
232
+ export function NewContextWithValue(key: string, value: string): Context
229
233
 
230
- export function NewBase64WoxImage(imageData: string): WoxImage;
234
+ export function NewBase64WoxImage(imageData: string): WoxImage