@rogieking/figui3 8.11.0 → 8.11.1

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.
@@ -177,6 +177,9 @@ Rich options (requires editor):
177
177
  while preserving its stable value.
178
178
  - `input`, `change`, and `optionhover` detail includes both the stable `value`
179
179
  and current `label`.
180
+ - Every add, rename, or delete emits `optionschange` with
181
+ `{ control, name?, value, label, action, option, index, options }`. Deleting
182
+ an unselected option does not emit `input` or `change`.
180
183
 
181
184
  ### `propskit-text`
182
185
 
@@ -108,6 +108,10 @@ background, border, color, hover, and focus variables.
108
108
  remain available
109
109
  - Renaming updates the reflected options JSON while preserving the option value
110
110
  - `input`, `change`, and `optionhover` use the shared PropsKit envelope
111
+ - `optionschange` fires after every add, rename, or delete with
112
+ `{ control, name?, value, label, action, option, index, options }`
113
+ - Deleting an unselected option emits `optionschange` without `input` or
114
+ `change`
111
115
  - Supports `defaultValue`, `isDefault`, `editing`, `resetToDefault()`, disabled
112
116
  state propagation, and focus delegation
113
117
 
@@ -208,7 +208,7 @@ function readValue(event: Event) {
208
208
 
209
209
  Native `addEventListener` only when React does not map the event: dialog `close` / `cancel`, delegated host clicks, imperative APIs.
210
210
 
211
- Common events: `input`, `change`, `loaded`, `optionhover`, `reorder`, `remove`, `modeready`, `webcamstream`, `close`.
211
+ Common events: `input`, `change`, `loaded`, `optionhover`, `optionschange`, `reorder`, `remove`, `modeready`, `webcamstream`, `close`.
212
212
 
213
213
  ## Customized built-ins
214
214
 
package/README.md CHANGED
@@ -632,7 +632,11 @@ cannot be deleted; edit and add remain available.
632
632
  **Events:** `input`, `change`, `optionhover` — the shared PropsKit envelope is
633
633
  extended to `{ control, name?, value, label }`. `value` is the stable option
634
634
  value and `label` is its current display label. Add, delete, and successful
635
- rename actions emit `input` and `change`.
635
+ rename actions emit `input` and `change` when the selected output changes.
636
+ Every list mutation emits `optionschange` with
637
+ `{ control, name?, value, label, action, option, index, options }`, where
638
+ `action` is `"add"`, `"rename"`, or `"delete"`. Deleting an unselected option
639
+ emits only `optionschange`.
636
640
 
637
641
  **Methods and state:** `.options`, `defaultValue`, `isDefault`, `editing`,
638
642
  `resetToDefault()`, and focus delegation.