@foisit/vue-wrapper 3.0.0 → 3.1.0

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
@@ -131,9 +131,9 @@ Define parameters and Foisit will automatically generate forms to collect them:
131
131
  command: 'create user',
132
132
  description: 'Create a new user account',
133
133
  parameters: [
134
- { name: 'username', type: 'string', required: true },
135
- { name: 'email', type: 'string', required: true },
136
- { name: 'age', type: 'number', required: false }
134
+ { name: 'username', label: 'Username', type: 'string', required: true },
135
+ { name: 'email', label: 'Email address', type: 'string', required: true },
136
+ { name: 'age', label: 'Age', type: 'number', required: false }
137
137
  ],
138
138
  action: (params) => userService.create(params)
139
139
  }
@@ -167,10 +167,18 @@ Example:
167
167
  - `number` - Numeric input
168
168
  - `date` - Date picker
169
169
  - `select` - Dropdown (static or async options)
170
+ - **new:** set `multiple: true` on a `select` parameter to allow picking several values; the result is sent as an array.
170
171
  - `file` - File upload input
171
172
 
173
+ **Field label text**
174
+
175
+ - By default, the form label uses `description` (or falls back to `name`).
176
+ - Set `label` on a parameter when you want explicit, user-friendly label text.
177
+
172
178
  ### 3. File Parameters
173
179
 
180
+ > **Tip:** to present users with multiple pill‑style options and let them pick more than one, use the `select` parameter with `multiple: true` or call `overlayManager.addOptions(..., { allowMultiple: true })` in custom integrations. The overlay now supports multi‑choice behaviour via either method.
181
+
174
182
  Collect files via the built-in form UI and receive them in your command `action`.
175
183
 
176
184
  ```javascript
@@ -475,6 +483,9 @@ interface ThemeColors {
475
483
  userBubbleBg?: string; // User message bubble background
476
484
  systemBubbleBg?: string; // System message bubble background
477
485
  border?: string; // Border color
486
+ checkboxAccent?: string; // Checkbox accent color
487
+ checkboxBorder?: string; // Checkbox border color
488
+ checkboxCheck?: string; // Checkbox checkmark color
478
489
  }
479
490
  ```
480
491