@wox-launcher/wox-plugin 0.0.113 → 0.0.118

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/README.md CHANGED
@@ -154,8 +154,7 @@ const settings: PluginSettingDefinitionItem[] = [
154
154
  PaddingTop: 0,
155
155
  PaddingRight: 0,
156
156
  PaddingBottom: 0,
157
- Width: 0,
158
- LabelWidth: 0
157
+ Width: 0
159
158
  }
160
159
  } as PluginSettingValueTextBox,
161
160
  DisabledInPlatforms: [],
@@ -173,8 +172,7 @@ const settings: PluginSettingDefinitionItem[] = [
173
172
  PaddingTop: 0,
174
173
  PaddingRight: 0,
175
174
  PaddingBottom: 0,
176
- Width: 0,
177
- LabelWidth: 0
175
+ Width: 0
178
176
  }
179
177
  } as PluginSettingValueCheckBox,
180
178
  DisabledInPlatforms: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.113",
3
+ "version": "0.0.118",
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,9 @@
1
1
  import { MetadataCommand, PluginSettingDefinitionItem } from "./setting.js"
2
2
  import { AI } from "./ai.js"
3
3
 
4
+ export * from "./setting.js"
5
+ export * from "./ai.js"
6
+
4
7
  /**
5
8
  * A dictionary type for string key-value pairs.
6
9
  *
@@ -479,7 +482,7 @@ export interface Result {
479
482
  * { Type: "text", Text: "✓ Verified", Id: "status-tail" }
480
483
  *
481
484
  * // Image tail for icon
482
- * { Type: "image", Image: { ImageType: "emoji", ImageData: "🔥" } }
485
+ * { Type: "image", Image: { ImageType: "emoji", ImageData: "🔥" }, ImageWidth: 24, ImageHeight: 24 }
483
486
  * ```
484
487
  */
485
488
  export interface ResultTail {
@@ -505,6 +508,20 @@ export interface ResultTail {
505
508
  */
506
509
  Image?: WoxImage
507
510
 
511
+ /**
512
+ * Optional width for image tails.
513
+ *
514
+ * Only used when Type is "image". If omitted, Wox uses the default tail image width.
515
+ */
516
+ ImageWidth?: number
517
+
518
+ /**
519
+ * Optional height for image tails.
520
+ *
521
+ * Only used when Type is "image". If omitted, Wox uses the default tail image height.
522
+ */
523
+ ImageHeight?: number
524
+
508
525
  /**
509
526
  * Unique identifier for this tail.
510
527
  *
@@ -31,8 +31,7 @@ export type PluginSettingDefinitionType = "head" | "textbox" | "checkbox" | "sel
31
31
  * PaddingTop: 5,
32
32
  * PaddingRight: 10,
33
33
  * PaddingBottom: 5,
34
- * Width: 300,
35
- * LabelWidth: 100
34
+ * Width: 300
36
35
  * }
37
36
  * ```
38
37
  */
@@ -58,12 +57,6 @@ export interface PluginSettingValueStyle {
58
57
  * Width of the setting element in pixels.
59
58
  */
60
59
  Width: number
61
- /**
62
- * Width of the label portion.
63
- *
64
- * Only applicable for settings with labels (textbox, checkbox, select).
65
- */
66
- LabelWidth: number
67
60
  }
68
61
 
69
62
  /**