@wox-launcher/wox-plugin 0.0.104 → 0.0.105

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 +1 -1
  2. package/types/index.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.104",
3
+ "version": "0.0.105",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
package/types/index.d.ts CHANGED
@@ -333,22 +333,22 @@ export interface PublicAPI {
333
333
  /**
334
334
  * Register setting changed callback
335
335
  */
336
- OnSettingChanged: (ctx: Context, callback: (key: string, value: string) => void) => Promise<void>
336
+ OnSettingChanged: (ctx: Context, callback: (ctx: Context, key: string, value: string) => void) => Promise<void>
337
337
 
338
338
  /**
339
339
  * Get dynamic setting definition
340
340
  */
341
- OnGetDynamicSetting: (ctx: Context, callback: (key: string) => PluginSettingDefinitionItem) => Promise<void>
341
+ OnGetDynamicSetting: (ctx: Context, callback: (ctx: Context, key: string) => PluginSettingDefinitionItem) => Promise<void>
342
342
 
343
343
  /**
344
344
  * Register deep link callback
345
345
  */
346
- OnDeepLink: (ctx: Context, callback: (arguments: MapString) => void) => Promise<void>
346
+ OnDeepLink: (ctx: Context, callback: (ctx: Context, arguments: MapString) => void) => Promise<void>
347
347
 
348
348
  /**
349
349
  * Register on load event
350
350
  */
351
- OnUnload: (ctx: Context, callback: () => Promise<void>) => Promise<void>
351
+ OnUnload: (ctx: Context, callback: (ctx: Context) => Promise<void>) => Promise<void>
352
352
 
353
353
  /**
354
354
  * Register query commands
@@ -366,7 +366,7 @@ export interface PublicAPI {
366
366
  * @param callback Callback function that takes MRUData and returns Result or null
367
367
  * Return null if the MRU data is no longer valid
368
368
  */
369
- OnMRURestore: (ctx: Context, callback: (mruData: MRUData) => Promise<Result | null>) => Promise<void>
369
+ OnMRURestore: (ctx: Context, callback: (ctx: Context, mruData: MRUData) => Promise<Result | null>) => Promise<void>
370
370
 
371
371
  /**
372
372
  * Get the current state of a result that is displayed in the UI.