@wox-launcher/wox-plugin 0.0.104 → 0.0.106
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/package.json +1 -1
- package/types/index.d.ts +6 -7
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -104,7 +104,6 @@ export interface Result {
|
|
|
104
104
|
Group?: string
|
|
105
105
|
GroupScore?: number
|
|
106
106
|
Tails?: ResultTail[]
|
|
107
|
-
ContextData?: string
|
|
108
107
|
Actions?: ResultAction[]
|
|
109
108
|
}
|
|
110
109
|
|
|
@@ -235,7 +234,7 @@ export interface ActionContext {
|
|
|
235
234
|
*/
|
|
236
235
|
ResultActionId: string
|
|
237
236
|
/**
|
|
238
|
-
* Additional data associated with this
|
|
237
|
+
* Additional data associated with this action
|
|
239
238
|
*/
|
|
240
239
|
ContextData: string
|
|
241
240
|
}
|
|
@@ -333,22 +332,22 @@ export interface PublicAPI {
|
|
|
333
332
|
/**
|
|
334
333
|
* Register setting changed callback
|
|
335
334
|
*/
|
|
336
|
-
OnSettingChanged: (ctx: Context, callback: (key: string, value: string) => void) => Promise<void>
|
|
335
|
+
OnSettingChanged: (ctx: Context, callback: (ctx: Context, key: string, value: string) => void) => Promise<void>
|
|
337
336
|
|
|
338
337
|
/**
|
|
339
338
|
* Get dynamic setting definition
|
|
340
339
|
*/
|
|
341
|
-
OnGetDynamicSetting: (ctx: Context, callback: (key: string) => PluginSettingDefinitionItem) => Promise<void>
|
|
340
|
+
OnGetDynamicSetting: (ctx: Context, callback: (ctx: Context, key: string) => PluginSettingDefinitionItem) => Promise<void>
|
|
342
341
|
|
|
343
342
|
/**
|
|
344
343
|
* Register deep link callback
|
|
345
344
|
*/
|
|
346
|
-
OnDeepLink: (ctx: Context, callback: (arguments: MapString) => void) => Promise<void>
|
|
345
|
+
OnDeepLink: (ctx: Context, callback: (ctx: Context, arguments: MapString) => void) => Promise<void>
|
|
347
346
|
|
|
348
347
|
/**
|
|
349
348
|
* Register on load event
|
|
350
349
|
*/
|
|
351
|
-
OnUnload: (ctx: Context, callback: () => Promise<void>) => Promise<void>
|
|
350
|
+
OnUnload: (ctx: Context, callback: (ctx: Context) => Promise<void>) => Promise<void>
|
|
352
351
|
|
|
353
352
|
/**
|
|
354
353
|
* Register query commands
|
|
@@ -366,7 +365,7 @@ export interface PublicAPI {
|
|
|
366
365
|
* @param callback Callback function that takes MRUData and returns Result or null
|
|
367
366
|
* Return null if the MRU data is no longer valid
|
|
368
367
|
*/
|
|
369
|
-
OnMRURestore: (ctx: Context, callback: (mruData: MRUData) => Promise<Result | null>) => Promise<void>
|
|
368
|
+
OnMRURestore: (ctx: Context, callback: (ctx: Context, mruData: MRUData) => Promise<Result | null>) => Promise<void>
|
|
370
369
|
|
|
371
370
|
/**
|
|
372
371
|
* Get the current state of a result that is displayed in the UI.
|