@wox-launcher/wox-plugin 0.0.100 → 0.0.102
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 +16 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export interface QueryEnv {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export interface Query {
|
|
43
|
+
/**
|
|
44
|
+
* Query id passed from UI to correlate async updates.
|
|
45
|
+
*/
|
|
46
|
+
Id: string
|
|
43
47
|
/**
|
|
44
48
|
* By default, Wox will only pass input query to plugin.
|
|
45
49
|
* plugin author need to enable MetadataFeatureQuerySelection feature to handle selection query
|
|
@@ -435,6 +439,18 @@ export interface PublicAPI {
|
|
|
435
439
|
*/
|
|
436
440
|
UpdateResult: (ctx: Context, result: UpdatableResult) => Promise<boolean>
|
|
437
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Push additional results for the current query.
|
|
444
|
+
*
|
|
445
|
+
* Returns true if UI accepted the results (query still active),
|
|
446
|
+
* false if query is no longer active.
|
|
447
|
+
*
|
|
448
|
+
* @param ctx Context
|
|
449
|
+
* @param query Current query
|
|
450
|
+
* @param results Results to append
|
|
451
|
+
*/
|
|
452
|
+
PushResults: (ctx: Context, query: Query, results: Result[]) => Promise<boolean>
|
|
453
|
+
|
|
438
454
|
/**
|
|
439
455
|
* Re-execute the current query with the existing query text.
|
|
440
456
|
* This is useful when plugin data changes and you want to update the displayed results.
|