@wox-launcher/wox-plugin 0.0.90 → 0.0.92
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 +5 -7
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -256,10 +256,9 @@ export interface ChangeQueryParam {
|
|
|
256
256
|
QueryType: "input" | "selection"
|
|
257
257
|
QueryText?: string
|
|
258
258
|
QuerySelection?: Selection
|
|
259
|
-
PreserveSelectedIndex?: boolean
|
|
260
259
|
}
|
|
261
260
|
|
|
262
|
-
export interface
|
|
261
|
+
export interface RefreshQueryParam {
|
|
263
262
|
/**
|
|
264
263
|
* Controls whether to maintain the previously selected item index after refresh.
|
|
265
264
|
* When true, the user's current selection index in the results list is preserved.
|
|
@@ -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
|
|
498
|
-
* @param option RefreshQueryOption to control refresh behavior
|
|
496
|
+
* @param param RefreshQueryParam to control refresh behavior
|
|
499
497
|
*/
|
|
500
|
-
RefreshQuery: (ctx: Context,
|
|
498
|
+
RefreshQuery: (ctx: Context, param: RefreshQueryParam) => Promise<void>
|
|
501
499
|
}
|
|
502
500
|
|
|
503
501
|
export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url" | "emoji" | "lottie"
|