stimeo-ui 0.12.0 → 0.14.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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +71 -0
  3. data/dist/cable/index.js +438 -152
  4. data/dist/controllers/calendar_controller.js +34 -2
  5. data/dist/controllers/carousel_controller.js +9 -7
  6. data/dist/controllers/command_palette_controller.js +2 -2
  7. data/dist/controllers/conditional_fields_controller.js +7 -1
  8. data/dist/controllers/currency_input_controller.js +68 -23
  9. data/dist/controllers/date_range_picker_controller.js +34 -10
  10. data/dist/controllers/direct_upload_controller.js +21 -10
  11. data/dist/controllers/drawer_controller.js +2 -2
  12. data/dist/controllers/form_field_controller.js +7 -1
  13. data/dist/controllers/input_mask_controller.js +33 -12
  14. data/dist/controllers/intersection_controller.js +10 -5
  15. data/dist/controllers/lazy_frame_controller.js +10 -5
  16. data/dist/controllers/local_time_controller.js +34 -7
  17. data/dist/controllers/masonry_controller.js +1 -1
  18. data/dist/controllers/menu_controller.js +10 -2
  19. data/dist/controllers/menubar_controller.js +10 -2
  20. data/dist/controllers/navigation_menu_controller.js +8 -2
  21. data/dist/controllers/optimistic_controller.js +141 -20
  22. data/dist/controllers/otp_controller.js +23 -10
  23. data/dist/controllers/overflow_menu_controller.js +10 -1
  24. data/dist/controllers/pointer_drag_controller.js +10 -3
  25. data/dist/controllers/portal_controller.js +21 -10
  26. data/dist/controllers/radio_group_controller.js +11 -3
  27. data/dist/controllers/relative_time_controller.js +31 -5
  28. data/dist/controllers/reset_before_cache_controller.js +23 -10
  29. data/dist/controllers/resizable_controller.js +7 -2
  30. data/dist/controllers/roving_controller.js +7 -3
  31. data/dist/controllers/scroll_visibility_controller.js +22 -13
  32. data/dist/controllers/scrollspy_controller.js +11 -6
  33. data/dist/controllers/smart_sticky_header_controller.js +23 -12
  34. data/dist/controllers/sticky_observer_controller.js +10 -5
  35. data/dist/controllers/theme_controller.js +23 -13
  36. data/dist/controllers/toast_controller.js +1 -1
  37. data/dist/controllers/toggle_group_controller.js +11 -3
  38. data/dist/controllers/toolbar_controller.js +7 -3
  39. data/dist/index.js +259 -202
  40. data/lib/stimeo/ui/version.rb +1 -1
  41. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f691ab87c2a0b5092226d8d319ebff3c7b6d8a658b8a62c42017b7dc3e50807
4
- data.tar.gz: e2aebaed7d717a580cbd9af42ae6149e7cda083fbbdd3465488525fdac8ee01e
3
+ metadata.gz: 8220bc5fa861ec2aa75c7abeb2fcb6758a4ba6b56606b77d5bc6d948c9550a09
4
+ data.tar.gz: 95b3643b1a9bbdfdf7d556b5952c1431e6adc1ae557e5d0cf5f40b102276593a
5
5
  SHA512:
6
- metadata.gz: 182402ce77c5e8a010e3c6f2229c8865f339ea20447907f776f7e557a3c52de7aa9b3eada614e9c64c2cb4d3a7850a1a1e5b3724e1f836ed666f6cfadf221787
7
- data.tar.gz: 7061380101c2b4c7a1ad996e11ba1a6816ed276ba96944b55e1bd5d5efecefb8ee9607c466604f6ad97b7da990c86c1dbd5376256ef29d8c8c7d39dada7fd50b
6
+ metadata.gz: 837c894e5a64b823b2afc662dc4cb6e74daeedb04bee3d348bbd56127ee544cb31247f0534ffca2c60a1f676a2421ec2e3dbe0bef6ecbaeed85eac17f41ac1e1
7
+ data.tar.gz: 22e7cfc49254e48c27915cb9b83f632ea1348db396046a5a41be5513c8a8e4f01f00feee422c582c2423569d1cdf73228201ffc848554bb54cd1d927e18d9550
data/CHANGELOG.md CHANGED
@@ -7,6 +7,75 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
  While the version is `0.x`, the public API (the `stimeo--*` data attributes) may
8
8
  change between releases.
9
9
 
10
+ ## [0.14.0] - 2026-09-19
11
+
12
+ Minor release with no new components. input-mask changes what a broken `tokens`
13
+ source falls back to, and currency-input, local-time, and relative-time narrow
14
+ which failures they absorb, so read Changed before upgrading. The Inspector
15
+ manifest stays on schema v12.
16
+
17
+ ### Added
18
+
19
+ - Inspector: `missing-action-event` (error) — a `data-action` that omits the
20
+ event on an element with no default one binds nothing, while the markup still
21
+ reads as wired. The elements that have a default are `<a>`, `<button>`,
22
+ `<details>`, `<form>`, `<input>`, `<select>`, and `<textarea>`.
23
+ - Inspector: `valueSyntaxConstraints` reports a `stimeo--otp` `pattern` that is
24
+ not a regular expression, and a `stimeo--input-mask` `tokens` that is not a
25
+ JSON object of them, before the page runs.
26
+
27
+ ### Changed
28
+
29
+ - input-mask: a `tokens` source that does not compile leaves that key on its
30
+ default (`9`, `a`, `*`) instead of dropping the key, and a source that
31
+ compiles only against the anchors the controller adds — `0)|(1` — is refused.
32
+ - currency-input, local-time, and relative-time absorb only what a declaration
33
+ can get wrong: a locale, time zone, currency code, or digit count `Intl`
34
+ rejects. Any other failure surfaces.
35
+ - Inspector: a `data-action` that omits the event resolves to the one Stimulus
36
+ binds for that element, so a shorthand on a `<form>` reports
37
+ `missing-action-completion` where it passed in silence.
38
+ - The markup examples in the published types name the event
39
+ (`click->stimeo--dialog#open`).
40
+
41
+ ## [0.13.0] - 2026-09-13
42
+
43
+ Minor release with no new components. The three server-bound components are
44
+ reworked — live-counter, presence, and optimistic — and each changed a contract,
45
+ so read Changed before upgrading. The Inspector manifest stays on schema v12.
46
+
47
+ ### Changed
48
+
49
+ - live-counter: a broadcast whose `count` or `delta` is not an integer is
50
+ ignored, a `delta` param that is not an integer falls back to `1`, and a
51
+ declared `channel` keeps the gate closed until the subscription is confirmed.
52
+ A delta carrying your own `id` is applied unless an optimistic add of the same
53
+ size is still outstanding. Runtime changes to `channel` / `params`
54
+ re-subscribe.
55
+ - presence: on `disconnect()` a leave notice is sent by the last element claiming
56
+ that `id` rather than by every element; `pagehide` still sends from each one,
57
+ because the whole page is going away. A `channel` key in `params` no longer
58
+ overrides the declared `channel`, `heartbeat` / `timeout` fall back to their
59
+ defaults unless finite, positive and within the browser timer ceiling
60
+ (2147483647 ms) — typing-indicator's `timeout` takes the same bound — and
61
+ `template` clones only its root element.
62
+ - optimistic: `turbo:submit-end` is matched to the submission it names instead of
63
+ to any ending that reaches the element, so a submission whose ending never
64
+ arrives no longer strands the element. The `data-optimistic-toggled` marker
65
+ carries the authored value to restore instead of `"true"`, `aria-busy` gets the
66
+ same record (`data-optimistic-busy`), and a rollback writes those records back
67
+ rather than inverting the current value — `hidden="until-found"` no longer
68
+ degrades to a bare `hidden`, and an element registered for both `show` and
69
+ `hide` returns to its authored state.
70
+
71
+ ### Fixed
72
+
73
+ - calendar: a malformed `<html lang>` (an `en_US`-style tag that `Intl` rejects)
74
+ no longer stops the month grid from painting. The month label falls back to
75
+ English while the 42 cells, the single tab stop, and the `monthchange` /
76
+ `select` conditions stay as they were; any other failure of the label
77
+ formatter still propagates.
78
+
10
79
  ## [0.12.0] - 2026-09-06
11
80
 
12
81
  Minor release with no new components. Six existing ones are reworked — count-up,
@@ -999,6 +1068,8 @@ Initial public alpha: 101 behavior-only, accessible Stimulus controllers driven
999
1068
  by `data-*` attributes, shipping no CSS. Published to npm (with provenance) and
1000
1069
  RubyGems.
1001
1070
 
1071
+ [0.14.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.14.0
1072
+ [0.13.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.13.0
1002
1073
  [0.12.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.12.0
1003
1074
  [0.11.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.11.0
1004
1075
  [0.10.0]: https://github.com/taiyaky/stimeo-ui/releases/tag/v0.10.0