@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +5 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
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
@@ -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 RefreshQueryOption {
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, query, { PreserveSelectedIndex: true })
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, query, { PreserveSelectedIndex: false })
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
- * @param option RefreshQueryOption to control refresh behavior
496
+ * @param param RefreshQueryParam to control refresh behavior
499
497
  */
500
- RefreshQuery: (ctx: Context, query: Query, option: RefreshQueryOption) => Promise<void>
498
+ RefreshQuery: (ctx: Context, param: RefreshQueryParam) => Promise<void>
501
499
  }
502
500
 
503
501
  export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url" | "emoji" | "lottie"