@aceshooting/lyra-ui 8.1.0 → 8.2.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/custom-elements.json +1 -1
  3. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +5 -0
  4. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +1 -1
  5. package/dist/components/charts/chart/chart.class.js +1 -1
  6. package/dist/components/conversation/chat-composer/chat-composer.class.js +1 -1
  7. package/dist/components/conversation/model-select/model-select.class.js +1 -1
  8. package/dist/components/conversation/voice-picker/voice-picker.class.js +1 -1
  9. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
  10. package/dist/components/data/graph-query-builder/graph-query-builder.class.js +1 -1
  11. package/dist/components/forms/checkbox/checkbox.class.js +1 -1
  12. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +3 -0
  13. package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
  14. package/dist/components/forms/code-editor/code-editor.class.js +1 -1
  15. package/dist/components/forms/combobox/combobox.class.js +1 -1
  16. package/dist/components/forms/date-picker/date-input.class.js +1 -1
  17. package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
  18. package/dist/components/forms/input/input.class.js +1 -1
  19. package/dist/components/forms/input/time-input.class.js +1 -1
  20. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  21. package/dist/components/forms/otp-input/otp-input.class.js +1 -1
  22. package/dist/components/forms/phone-input/phone-input.class.js +1 -1
  23. package/dist/components/forms/radio/radio-group.class.d.ts +3 -0
  24. package/dist/components/forms/radio/radio-group.class.js +1 -1
  25. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +3 -0
  26. package/dist/components/forms/rubric-form/rubric-form.class.js +1 -1
  27. package/dist/components/forms/select/select.class.js +1 -1
  28. package/dist/components/forms/switch/switch.class.js +1 -1
  29. package/dist/components/forms/textarea/textarea.class.js +1 -1
  30. package/dist/components/forms/token-input/token-input.class.js +1 -1
  31. package/dist/components/media/file-input/file-input.class.js +1 -1
  32. package/dist/components/utility/known-date/known-date.class.js +1 -1
  33. package/dist/internal/form-associated.js +1 -1
  34. package/dist/internal/localization-runtime.d.ts +13 -0
  35. package/dist/internal/localization-runtime.js +1 -1
  36. package/dist/internal/lyra-element.d.ts +15 -0
  37. package/dist/internal/lyra-element.js +1 -1
  38. package/dist/internal/package-metadata.d.ts +1 -1
  39. package/dist/internal/package-metadata.js +1 -1
  40. package/dist/testing/happy-dom-shims.d.ts +1 -1
  41. package/dist/testing/happy-dom-shims.js +1 -1
  42. package/llms/components/lr-checkbox-group.md +2 -0
  43. package/llms/components/lr-graph-query-builder.md +3 -1
  44. package/llms/components/lr-radio-group.md +3 -1
  45. package/llms/components/lr-rubric-form.md +2 -0
  46. package/llms/components/lr-tool-param-form.md +3 -0
  47. package/llms/peers.md +1 -1
  48. package/llms-full.txt +13 -2
  49. package/package.json +4 -4
  50. package/web-types.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c00bbc: Fix `<lr-chat-composer>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
8
+ - 3a942eb: Fix `<lr-checkbox>` marking a field touched/interacted from a blur the platform forces when the control (or an ancestor `<fieldset>`) becomes disabled while it is focused, which could leave the control primed to show as invalid immediately on re-enable, or trip a Lit dev-mode reentrancy warning.
9
+ - 842484a: Fix `<lr-model-select>` marking a field touched from a blur the platform forces when the trigger button or combobox input becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
10
+ - 9c69ed7: Fix `<lr-textarea>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
11
+ - 9476967: Fix `<lr-time-input>` marking a segment touched from a blur the platform forces when the focused segment becomes disabled (its tabindex drops below zero while it still holds focus), which could trip a Lit dev-mode reentrancy warning.
12
+ - 823b395: `@aceshooting/lyra-ui/testing`'s `installHappyDomFormAssociatedShims()` now resolves the stub `ElementInternals.form` live via `host.closest('form')` instead of always `null` — a form-associated component that calls `attachInternals()` from its constructor (before it's inserted anywhere) previously got a permanently-`null` form owner even after being placed inside a real `<form>`, silently breaking anything (like `<lr-button>`) that resolves its submit target through `internals.form`.
13
+ - de626e7: Fix `<lr-input>` marking a field touched from a blur the platform forces when the control becomes disabled while focused (fr_asxOgk4UhNB07xevCWwFVQ), and stop `formDisabledCallback()` redoing validity/render work that a same-tick `disabled` write already performed — together these could trip Lit's dev-mode "scheduled an update after an update completed" warning inside a real `<lr-dialog>` for a re-render nothing observable needed.
14
+ - 340d39b: Fix `<lr-known-date>` marking a field touched from a blur the platform forces when the field becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
15
+ - db19f3e: `LyraElement`'s ancestor `class`/`style` observer (kept for CSS-only direction/locale context changes) now only calls `requestUpdate()` when the resolved direction or locale actually changes, instead of on every ancestor `class`/`style` mutation regardless of relevance — an unrelated ancestor style write (e.g. an overlay's own stacking-index custom property) could otherwise schedule a spurious re-render.
16
+ - 6ef43b1: Fix `LyraElement`'s ancestor `class`/`style` observer (introduced in the previous release to stop spurious re-renders) forcing a `getComputedStyle()` read on _every_ ancestor `class`/`style`/`locale`/`lang` mutation, even ones with nothing to do with direction. That forced read — from a sibling's own unrelated `MutationObserver` reacting to an ancestor's inline-style write — could permanently break a completely unrelated host's own shadow-DOM CSS custom-property resolution in Chromium (observed with `<lr-chip-group>`'s `--lr-chip-group-overflow-expanded-color`), and forced an extra synchronous style read on every reconnect/adoption regardless of whether anything direction-relevant changed. The observer now only calls `getComputedStyle()` when the mutation could plausibly affect direction (an explicit `dir`/`class` change, or a `style` change that actually declares `direction`), and seeds its baseline from whatever the host's own render already resolved instead of forcing an extra read at connect time.
17
+ - 0eb1de0: Fix `<lr-token-input>` marking a field touched (and committing a pending draft) from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
18
+ - e849075: Fix `<lr-code-editor>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
19
+ - f4b8304: Fix `<lr-phone-input>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
20
+ - a9cd82e: Fix `<lr-file-input>` marking its dropzone touched from a blur the platform forces when the focused `[part="base"]` button becomes disabled, which could trip a Lit dev-mode reentrancy warning.
21
+ - 9c35472: Fix `<lr-emoji-picker>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
22
+ - 5b96432: Fix `<lr-checkbox-group>` marking the group touched from a blur the platform forces when a focused child `<lr-checkbox>` becomes disabled -- either directly or via an ancestor `<fieldset disabled>` cascading down -- which could trip a Lit dev-mode reentrancy warning.
23
+ - 3d5b695: Fix `<lr-date-input>` marking the field touched from a blur the platform forces when the internal date text input becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
24
+ - 8e1eb54: Fix `<lr-otp-input>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
25
+ - 530c30b: Fix `<lr-voice-picker>` marking a field touched from a blur the platform forces when the trigger button or free-text combobox input becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
26
+ - 614ee6a: Fix `<lr-switch>` marking a field touched from a blur the browser forces when the control (a form-associated custom element) becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning and could flash `user-invalid` styling on a later re-enable for an interaction the user never had.
27
+ - 6149517: Fix `<lr-select>` marking a field touched from a blur the platform forces when the trigger becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
28
+ - 1c58af5: Fix `<lr-combobox>` marking its field touched from a blur the platform forces when the internal input becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
29
+ - aa345d8: Fix `<lr-locale-picker>` marking a field touched from a blur the platform forces when the control becomes disabled while focused, which could trip a Lit dev-mode reentrancy warning.
30
+
31
+ ## 8.2.0
32
+
33
+ ### Minor Changes
34
+
35
+ - 5944ba7: Add a `click()` override to five multi-control form wrapper elements —
36
+ `<lr-radio-group>`, `<lr-checkbox-group>`, `<lr-rubric-form>`, `<lr-graph-query-builder>`, and
37
+ `<lr-tool-param-form>` — so a host click (whether from a `<label for>` association or a
38
+ programmatic `.click()`) reaches the first relevant internal control instead of being a no-op.
39
+ `<lr-radio-group>` activates its selected (or first enabled) radio, matching its own `focus()`
40
+ override; the other four move focus to their first field.
41
+
3
42
  ## 8.1.0
4
43
 
5
44
  ### Minor Changes