@wox-launcher/wox-plugin 0.0.68 → 0.0.70

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 +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
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
@@ -1,6 +1,8 @@
1
1
  import { llm } from "./llm.js"
2
2
  import { MetadataCommand, PluginSettingDefinitionItem } from "./setting.js"
3
3
 
4
+ export type MapString = { [key: string]: string }
5
+
4
6
  export type Platform = "windows" | "darwin" | "linux"
5
7
 
6
8
  export interface Plugin {
@@ -189,6 +191,11 @@ export interface PublicAPI {
189
191
  */
190
192
  OnGetDynamicSetting: (ctx: Context, callback: (key: string) => PluginSettingDefinitionItem) => Promise<void>
191
193
 
194
+ /**
195
+ * Register deep link callback
196
+ */
197
+ OnDeepLink: (ctx: Context, callback: (arguments: MapString) => void) => Promise<void>
198
+
192
199
  /**
193
200
  * Register query commands
194
201
  */