@aceshooting/lyra-ui 18.1.0 → 18.3.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 (36) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/custom-elements.json +1 -1
  3. package/design-tokens.json +1 -1
  4. package/dist/components/data/heatmap/heatmap.class.d.ts +10 -0
  5. package/dist/components/data/heatmap/heatmap.class.js +1 -1
  6. package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
  7. package/dist/components/media/lightbox/lightbox.class.d.ts +7 -2
  8. package/dist/components/media/lightbox/lightbox.class.js +3 -2
  9. package/dist/components/media/map/map.class.d.ts +28 -1
  10. package/dist/components/media/map/map.class.js +7 -5
  11. package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +6 -2
  12. package/dist/components/media/pan-zoom/pan-zoom.class.js +2 -2
  13. package/dist/components/media/pan-zoom/pan-zoom.styles.js +1 -1
  14. package/dist/components/utility/export-button/export-button.class.d.ts +13 -2
  15. package/dist/components/utility/export-button/export-button.class.js +2 -2
  16. package/dist/components/utility/export-button/export-button.styles.js +1 -1
  17. package/dist/custom-elements-jsx.d.ts +1 -1
  18. package/dist/internal/image-fit.d.ts +1 -0
  19. package/dist/internal/image-fit.js +1 -0
  20. package/dist/internal/package-metadata.d.ts +1 -1
  21. package/dist/internal/package-metadata.js +1 -1
  22. package/dist/internal/tokens.styles.js +1 -1
  23. package/dist/lyra.d.ts +1 -1
  24. package/dist/svelte.d.ts +1 -1
  25. package/dist/vue.d.ts +1 -1
  26. package/llms/components/lr-export-button.md +5 -0
  27. package/llms/components/lr-heatmap.md +7 -3
  28. package/llms/components/lr-lightbox.md +11 -0
  29. package/llms/components/lr-map.md +19 -4
  30. package/llms/components/lr-pan-zoom.md +4 -0
  31. package/llms/shared.md +6 -1
  32. package/llms/tokens.md +5 -3
  33. package/llms-full.txt +52 -8
  34. package/package.json +1 -1
  35. package/vscode-html-data.json +1 -1
  36. package/web-types.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f652e93: Add compact sizing and outlined or quiet appearances to `lr-export-button`, plus a public PNG export
8
+ method for `lr-heatmap` that captures the painted canvas and frozen label bands.
9
+ - 29e5202: Add an opt-in fit-to-viewport policy to `lr-lightbox`, reusing the image viewer fit vocabulary for landscape and tall images.
10
+
11
+ ## 18.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 3c1e25c: `<lr-map>`: add `legendControlRole` for checkbox legend semantics.
16
+
17
+ Every `legendInteractive` row rendered as a `<button aria-pressed>`, which reads as a set of
18
+ pressed/unpressed actions rather than a checklist of independent show/hide toggles. The new
19
+ `legendControlRole: 'button' | 'checkbox'` property (default `'button'`) lets a consumer switch the
20
+ presentation without changing anything else: under `'checkbox'` the SAME `<button>` element renders
21
+ `role="checkbox"` and `aria-checked` (both `"true"`/`"false"`, inverted from `hiddenCategories`
22
+ exactly as `aria-pressed` was) in place of `aria-pressed`. The swatch, the label, the click handler
23
+ and the platform's own Enter/Space activation are unchanged, so the cancelable
24
+ `lr-map-legend-toggle` veto, `hiddenCategories` round-tripping, `group` sections and
25
+ `legendCollapsible` all compose with either role. With `legendControlRole` unset, the rendered
26
+ legend row is unchanged.
27
+ - 2a25254: Fix `--lr-icon-button-size-scope` being inert for most consumers.
28
+
29
+ 18.1.0 introduced `--lr-icon-button-size-scope` as the ancestor-scoped icon-button size
30
+ input, resolving it as
31
+ `var(--lr-theme-icon-button-size, var(--lr-icon-button-size-scope, 2.5rem))`. That order
32
+ made the new token dead on arrival for anyone loading the shipped `design-tokens.css`,
33
+ which declares `--lr-theme-icon-button-size` on `:root`: a `var()` chain only falls
34
+ through when the referenced property is unset **everywhere**, not merely shadowed nearer
35
+ the element, so the theme tier always answered first and the subtree override never
36
+ resolved. Silently — which is precisely the failure mode the token was added to remove.
37
+
38
+ The chain now reads the scope input first. That is also the correct precedence on its own
39
+ merits: a subtree override should beat an application-wide default. `--lr-icon-button-size`
40
+ keeps its element-scoped meaning, the coarse-pointer floor still applies to whichever value
41
+ wins, and the resolved default is unchanged at `2.5rem`.
42
+
43
+ If you worked around this by declaring `--lr-theme-icon-button-size: initial` at `:root`,
44
+ that workaround is no longer needed and can be removed.
45
+
46
+ The library's own tests missed this because their fixtures compose only the base token
47
+ layer and never load `design-tokens.css`. A regression test now declares the theme tier on
48
+ `:root`, reproducing a real consumer's setup.
49
+
50
+ ### Patch Changes
51
+
52
+ - 3c1e25c: Document `<lr-map>`'s `legendControlRole` property in the authored `llms/media.md` reference: its
53
+ `'button' | 'checkbox'` values, the `'button'` default, the `aria-checked` inversion (a hidden
54
+ category renders unchecked), and when to prefer each role.
55
+
3
56
  ## 18.1.0
4
57
 
5
58
  ### Minor Changes