@wox-launcher/wox-plugin 0.0.114 → 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.114",
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
@@ -482,7 +482,7 @@ export interface Result {
482
482
  * { Type: "text", Text: "✓ Verified", Id: "status-tail" }
483
483
  *
484
484
  * // Image tail for icon
485
- * { Type: "image", Image: { ImageType: "emoji", ImageData: "🔥" } }
485
+ * { Type: "image", Image: { ImageType: "emoji", ImageData: "🔥" }, ImageWidth: 24, ImageHeight: 24 }
486
486
  * ```
487
487
  */
488
488
  export interface ResultTail {
@@ -508,6 +508,20 @@ export interface ResultTail {
508
508
  */
509
509
  Image?: WoxImage
510
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
+
511
525
  /**
512
526
  * Unique identifier for this tail.
513
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
  /**