@aceshooting/lyra-ui 28.1.0 → 28.1.2

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 (88) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +2 -2
  3. package/dist/components/agent-tools/commit-card/commit-card.class.js +7 -8
  4. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
  5. package/dist/components/agent-tools/schema-viewer/schema-viewer.class.js +1 -1
  6. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +1 -1
  7. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +4 -4
  8. package/dist/components/charts/chart/box-plot.class.d.ts +2 -2
  9. package/dist/components/charts/chart/box-plot.class.js +14 -14
  10. package/dist/components/charts/chart/chart.class.d.ts +2 -2
  11. package/dist/components/charts/chart/chart.class.js +14 -14
  12. package/dist/components/charts/chart/lite-chart.class.d.ts +1 -1
  13. package/dist/components/charts/chart/lite-chart.class.js +8 -8
  14. package/dist/components/conversation/message-feedback/message-feedback.class.js +2 -2
  15. package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +2 -1
  16. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  17. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
  18. package/dist/components/data/data-grid/data-grid-processing.js +1 -1
  19. package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
  20. package/dist/components/data/gauge/gauge.class.js +1 -1
  21. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +1 -1
  22. package/dist/components/data/graph-query-builder/graph-query-builder.class.js +2 -2
  23. package/dist/components/data/heatmap/heatmap-label-cache.js +1 -0
  24. package/dist/components/data/heatmap/heatmap.class.d.ts +2 -2
  25. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  26. package/dist/components/data/stat/stat.class.d.ts +11 -9
  27. package/dist/components/data/stat/stat.class.js +4 -2
  28. package/dist/components/data/tree/tree.class.js +1 -1
  29. package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
  30. package/dist/components/forms/color-picker/color-picker.class.js +3 -3
  31. package/dist/components/forms/combobox/combobox.class.d.ts +2 -4
  32. package/dist/components/forms/combobox/combobox.class.js +1 -1
  33. package/dist/components/forms/emoji-picker/emoji-picker.class.js +5 -5
  34. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  35. package/dist/components/forms/select/select.class.js +4 -3
  36. package/dist/components/forms/textarea/textarea.class.js +1 -1
  37. package/dist/components/forms/toggle-group/toggle-group.class.js +1 -1
  38. package/dist/components/layout/command-palette/command-palette.styles.js +1 -1
  39. package/dist/components/layout/details/accordion.class.js +1 -1
  40. package/dist/components/layout/filter-bar/filter-bar.class.js +3 -3
  41. package/dist/components/layout/menu/menu.class.d.ts +1 -1
  42. package/dist/components/layout/menu/menu.class.js +1 -1
  43. package/dist/components/layout/menubar/menubar.class.js +1 -1
  44. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
  45. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.js +1 -1
  46. package/dist/components/layout/page/page.class.d.ts +1 -1
  47. package/dist/components/layout/page/page.class.js +1 -1
  48. package/dist/components/layout/responsive-panel/responsive-panel.class.js +1 -1
  49. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  50. package/dist/components/layout/widget/widget.class.js +1 -1
  51. package/dist/components/media/attachment-trigger/attachment-trigger.class.js +1 -1
  52. package/dist/components/media/file-input/file-input.class.js +1 -1
  53. package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
  54. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  55. package/dist/components/overlays/overlay/dropdown.class.js +1 -1
  56. package/dist/components/overlays/overlay/popover.class.js +1 -1
  57. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +1 -1
  58. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +2 -2
  59. package/dist/components/retrieval/citation-badge/citation-badge.class.js +1 -1
  60. package/dist/components/retrieval/entity-chip/entity-chip.class.js +1 -1
  61. package/dist/components/retrieval/graph/graph-canvas.js +1 -1
  62. package/dist/components/retrieval/graph/graph.class.d.ts +1 -1
  63. package/dist/components/retrieval/graph/graph.class.js +1 -1
  64. package/dist/components/retrieval/graph-legend/graph-legend.class.js +2 -2
  65. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +1 -1
  66. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +1 -1
  67. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +1 -1
  68. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +4 -4
  69. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +1 -1
  70. package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
  71. package/dist/components/utility/tour/tour.class.js +4 -4
  72. package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
  73. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
  74. package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
  75. package/dist/internal/native-modal-carrier.js +2 -2
  76. package/dist/internal/overlay-manager.d.ts +2 -0
  77. package/dist/internal/overlay-manager.js +1 -1
  78. package/dist/internal/package-metadata.js +1 -1
  79. package/llms/components/lr-color-picker.md +2 -0
  80. package/llms/components/lr-commit-card.md +3 -2
  81. package/llms/components/lr-push-to-talk.md +3 -0
  82. package/llms/components/lr-select.md +2 -0
  83. package/llms/components/lr-stat.md +4 -0
  84. package/llms/peers.md +1 -1
  85. package/llms/shared/ai-and-peers.md +44 -0
  86. package/llms/shared.md +44 -0
  87. package/package.json +5 -5
  88. package/registrations.json +1 -1
@@ -114,6 +114,10 @@ it with `[part="label"]`'s generated id whenever `label` is non-empty (so tabbin
114
114
  `exactValue`-focusable value still announces e.g. "Revenue $1.2K USD", including the visible unit,
115
115
  not just the bare value); each
116
116
  `[part="row-value"]` is paired the same way with its own row's `[part="row-label"]`.
117
+ Present metric and row labels expose the `term` role; their named values expose `definition`,
118
+ which supports these accessible names. A unit-only headline value also exposes `definition`
119
+ and includes the unit in its name. Values without a label or unit remain plain text; setting
120
+ `exactValue` still adds the existing focus stop and exact-value tooltip in an unlinked stat.
117
121
 
118
122
  **Themeable custom properties:** `--lr-stat-bg` (default `var(--lr-color-surface)`) is
119
123
  `[part="base"]`'s RESTING background — the tier a dashboard sits at all day, and the companion to
package/llms/peers.md CHANGED
@@ -38,7 +38,7 @@ for the page.
38
38
  | Peer | Range | Needed by |
39
39
  |---|---|---|
40
40
  | `@aceshooting/lyra-flags` | `^2.3.0` | _(loaded by a shared internal module)_ |
41
- | `@aceshooting/lyra-translations` | `^28.1.0` | _(not referenced by any component)_ |
41
+ | `@aceshooting/lyra-translations` | `^28.1.2` | _(not referenced by any component)_ |
42
42
  | `@aiden0z/pptx-renderer` | `^1.3.0` | `lr-pptx-viewer` |
43
43
  | `@sgratzl/chartjs-chart-boxplot` | `^4.0.0` | `lr-box-plot` |
44
44
  | `chart.js` | `^4.0.1` | `lr-bar-chart`, `lr-box-plot`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
@@ -130,3 +130,47 @@ sanitizer is unavailable. Some components additionally issue a deduped warning.
130
130
  component section instead of assuming every peer user renders an `<lr-skeleton>` or the same
131
131
  degraded state. `lr-phone-input` is the exception to dynamic peer import: it takes a consumer-built
132
132
  adapter (`loadLibphonenumberAdapter()`) rather than importing `libphonenumber-js` itself.
133
+
134
+ ### Experimental DOCX editing companion
135
+
136
+ Use `@aceshooting/lyra-docs` for editing; `lr-docx-viewer` remains a viewer in Lyra UI.
137
+ The companion uses optional `@docx-editor.dev/core@2.27.0`. Its installed README owns
138
+ installation, admission limits, lifecycle, exact supported structures and save receipts.
139
+
140
+ ```ts
141
+ import '@aceshooting/lyra-ui/theme.css';
142
+ import '@aceshooting/lyra-docs/docx/editor';
143
+ import '@aceshooting/lyra-docs/docx/editor.css';
144
+ import { createDocxSession } from '@aceshooting/lyra-docs/docx';
145
+ ```
146
+
147
+ `lr-docx-editor` provides command search (Ctrl/Command+K), bounded find excerpts and
148
+ replace-and-advance, Outline, Checks and Review panels, table formatting and local raster
149
+ image tools. `createDocxSession({ mount })` supports a host-owned toolbar; it requires a
150
+ connected empty light-DOM mount. Both routes expose `can()`/`execute()`, `find()`/
151
+ `selectMatch()`/`replaceMatch()`, `outline()`/`selectOutlineItem()`, `inspectDocument()`/
152
+ `selectDiagnostic()`, and `review()`/`selectReviewItem()`. Query rows are copied, bounded
153
+ and revision-scoped; refresh after edits and pass the returned `expectedRevision` when
154
+ navigating. Queries do not save or fetch. Inspection covers body metadata only; capability
155
+ fields `preserved`, `renderable` and `editable` remain `unverified`, and the report is not
156
+ an accessibility certification.
157
+
158
+ `insertImage(source, options)` copies local raster bytes and requires explicit dimensions;
159
+ its narrow package profile includes visible styles and plain table cells at existing
160
+ paragraph/run boundaries. `replaceImage(bytes, options)` preserves selected image size,
161
+ title and description. Both use `DocxInsertImageOptions` for retained selection, revision
162
+ and cancellation. `canInsertImage()` and `canReplaceImage()` are advisory; unsupported
163
+ content refuses unchanged after canonical qualification.
164
+
165
+ Table actions cover simple topology, explicit first-row headers, current-cell vertical
166
+ alignment/shading/borders, and equal-column table width. Adding or replying to comments
167
+ and changing tracking mode require an explicit author; supported comments can be replied
168
+ to, resolved/reopened and deleted.
169
+ Only bounded simple body text insertion/deletion revisions support accept/reject;
170
+ unsupported revisions remain `readOnly`. These contracts do not qualify every native
171
+ engine gesture or promise arbitrary DOCX fidelity.
172
+
173
+ The host persists bytes explicitly: `save()` returns a receipt; call
174
+ `acknowledgeSaved(receipt)` only after durable persistence. Disconnect destroys the
175
+ session and undo history. See the [companion README](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-docs/README.md)
176
+ for complete public types, bounds and guarded examples.
package/llms/shared.md CHANGED
@@ -2719,6 +2719,50 @@ component section instead of assuming every peer user renders an `<lr-skeleton>`
2719
2719
  degraded state. `lr-phone-input` is the exception to dynamic peer import: it takes a consumer-built
2720
2720
  adapter (`loadLibphonenumberAdapter()`) rather than importing `libphonenumber-js` itself.
2721
2721
 
2722
+ ### Experimental DOCX editing companion
2723
+
2724
+ Use `@aceshooting/lyra-docs` for editing; `lr-docx-viewer` remains a viewer in Lyra UI.
2725
+ The companion uses optional `@docx-editor.dev/core@2.27.0`. Its installed README owns
2726
+ installation, admission limits, lifecycle, exact supported structures and save receipts.
2727
+
2728
+ ```ts
2729
+ import '@aceshooting/lyra-ui/theme.css';
2730
+ import '@aceshooting/lyra-docs/docx/editor';
2731
+ import '@aceshooting/lyra-docs/docx/editor.css';
2732
+ import { createDocxSession } from '@aceshooting/lyra-docs/docx';
2733
+ ```
2734
+
2735
+ `lr-docx-editor` provides command search (Ctrl/Command+K), bounded find excerpts and
2736
+ replace-and-advance, Outline, Checks and Review panels, table formatting and local raster
2737
+ image tools. `createDocxSession({ mount })` supports a host-owned toolbar; it requires a
2738
+ connected empty light-DOM mount. Both routes expose `can()`/`execute()`, `find()`/
2739
+ `selectMatch()`/`replaceMatch()`, `outline()`/`selectOutlineItem()`, `inspectDocument()`/
2740
+ `selectDiagnostic()`, and `review()`/`selectReviewItem()`. Query rows are copied, bounded
2741
+ and revision-scoped; refresh after edits and pass the returned `expectedRevision` when
2742
+ navigating. Queries do not save or fetch. Inspection covers body metadata only; capability
2743
+ fields `preserved`, `renderable` and `editable` remain `unverified`, and the report is not
2744
+ an accessibility certification.
2745
+
2746
+ `insertImage(source, options)` copies local raster bytes and requires explicit dimensions;
2747
+ its narrow package profile includes visible styles and plain table cells at existing
2748
+ paragraph/run boundaries. `replaceImage(bytes, options)` preserves selected image size,
2749
+ title and description. Both use `DocxInsertImageOptions` for retained selection, revision
2750
+ and cancellation. `canInsertImage()` and `canReplaceImage()` are advisory; unsupported
2751
+ content refuses unchanged after canonical qualification.
2752
+
2753
+ Table actions cover simple topology, explicit first-row headers, current-cell vertical
2754
+ alignment/shading/borders, and equal-column table width. Adding or replying to comments
2755
+ and changing tracking mode require an explicit author; supported comments can be replied
2756
+ to, resolved/reopened and deleted.
2757
+ Only bounded simple body text insertion/deletion revisions support accept/reject;
2758
+ unsupported revisions remain `readOnly`. These contracts do not qualify every native
2759
+ engine gesture or promise arbitrary DOCX fidelity.
2760
+
2761
+ The host persists bytes explicitly: `save()` returns a receipt; call
2762
+ `acknowledgeSaved(receipt)` only after durable persistence. Disconnect destroys the
2763
+ session and undo history. See the [companion README](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-docs/README.md)
2764
+ for complete public types, bounds and guarded examples.
2765
+
2722
2766
  ## Framework integration
2723
2767
 
2724
2768
  Plain custom elements, so they work anywhere — with the usual two caveats. React 19/JSX, Vue 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aceshooting/lyra-ui",
3
- "version": "28.1.0",
3
+ "version": "28.1.2",
4
4
  "description": "Free, independent Lit web components: an open-source alternative to Shoelace and Web Awesome with accessible forms, dashboards, charts, and agent UI.",
5
5
  "keywords": [
6
6
  "web-components",
@@ -2598,7 +2598,7 @@
2598
2598
  },
2599
2599
  "peerDependencies": {
2600
2600
  "@aceshooting/lyra-flags": "^2.3.0",
2601
- "@aceshooting/lyra-translations": "^28.1.0",
2601
+ "@aceshooting/lyra-translations": "^28.1.2",
2602
2602
  "@aiden0z/pptx-renderer": "^1.3.0",
2603
2603
  "@sgratzl/chartjs-chart-boxplot": "^4.0.0",
2604
2604
  "chart.js": "^4.0.1",
@@ -2749,11 +2749,11 @@
2749
2749
  "d3-force": "^3.0.0",
2750
2750
  "d3-selection": "^3.0.0",
2751
2751
  "d3-zoom": "^3.0.0",
2752
- "dompurify": "^3.4.16",
2752
+ "dompurify": "^3.4.17",
2753
2753
  "emoji-picker-element-data": "^1.8.0",
2754
2754
  "epubjs": "^0.3.93",
2755
2755
  "fast-check": "^4.10.2",
2756
- "happy-dom": "^20.14.6",
2756
+ "happy-dom": "^21.0.1",
2757
2757
  "ical.js": "^2.2.1",
2758
2758
  "istanbul-lib-coverage": "^3.2.2",
2759
2759
  "istanbul-lib-report": "^3.0.1",
@@ -2765,7 +2765,7 @@
2765
2765
  "libphonenumber-js": "^1.13.15",
2766
2766
  "mammoth": "^1.13.0",
2767
2767
  "maplibre-gl": "^6.14.0",
2768
- "marked": "^18.1.0",
2768
+ "marked": "^18.1.1",
2769
2769
  "oxc-parser": "^0.153.0",
2770
2770
  "papaparse": "^5.7.0",
2771
2771
  "pdfjs-dist": "^6.4.299",