@wox-launcher/wox-plugin 0.0.90 → 0.0.91
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 +3 -5
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -256,7 +256,6 @@ export interface ChangeQueryParam {
|
|
|
256
256
|
QueryType: "input" | "selection"
|
|
257
257
|
QueryText?: string
|
|
258
258
|
QuerySelection?: Selection
|
|
259
|
-
PreserveSelectedIndex?: boolean
|
|
260
259
|
}
|
|
261
260
|
|
|
262
261
|
export interface RefreshQueryOption {
|
|
@@ -480,7 +479,7 @@ export interface PublicAPI {
|
|
|
480
479
|
* Action: async (actionContext) => {
|
|
481
480
|
* markAsFavorite(item)
|
|
482
481
|
* // Refresh query and preserve user's current selection
|
|
483
|
-
* await api.RefreshQuery(ctx,
|
|
482
|
+
* await api.RefreshQuery(ctx, { PreserveSelectedIndex: true })
|
|
484
483
|
* }
|
|
485
484
|
* ```
|
|
486
485
|
*
|
|
@@ -489,15 +488,14 @@ export interface PublicAPI {
|
|
|
489
488
|
* Action: async (actionContext) => {
|
|
490
489
|
* deleteItem(item)
|
|
491
490
|
* // Refresh query and reset to first item
|
|
492
|
-
* await api.RefreshQuery(ctx,
|
|
491
|
+
* await api.RefreshQuery(ctx, { PreserveSelectedIndex: false })
|
|
493
492
|
* }
|
|
494
493
|
* ```
|
|
495
494
|
*
|
|
496
495
|
* @param ctx Context
|
|
497
|
-
* @param query The current query to refresh
|
|
498
496
|
* @param option RefreshQueryOption to control refresh behavior
|
|
499
497
|
*/
|
|
500
|
-
RefreshQuery: (ctx: Context,
|
|
498
|
+
RefreshQuery: (ctx: Context, option: RefreshQueryOption) => Promise<void>
|
|
501
499
|
}
|
|
502
500
|
|
|
503
501
|
export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url" | "emoji" | "lottie"
|