@aceshooting/lyra-ui 30.9.0 → 31.1.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 (283) hide show
  1. package/CHANGELOG.md +361 -335
  2. package/dist/ai/adapters/ag-ui.js +1 -1
  3. package/dist/autoloader-cdn.js +1 -1
  4. package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
  5. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +12 -1
  6. package/dist/components/agent-tools/budget-meter/budget-meter.class.js +4 -4
  7. package/dist/components/agent-tools/compare-panel/compare-panel.class.js +1 -1
  8. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
  9. package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js +1 -1
  10. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js +1 -1
  11. package/dist/components/charts/chart/box-plot.class.js +2 -2
  12. package/dist/components/charts/chart/chart-sync.js +1 -1
  13. package/dist/components/charts/chart/chart.class.d.ts +1 -1
  14. package/dist/components/charts/chart/chart.class.js +4 -4
  15. package/dist/components/charts/chart/lite-chart-axis-layout.js +1 -1
  16. package/dist/components/charts/chart/lite-chart.class.js +2 -2
  17. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +26 -11
  18. package/dist/components/conversation/chat-composer/chat-composer.class.js +11 -9
  19. package/dist/components/conversation/chat-composer/chat-composer.styles.js +1 -1
  20. package/dist/components/conversation/chat-message/chat-message.class.d.ts +27 -3
  21. package/dist/components/conversation/chat-message/chat-message.class.js +14 -12
  22. package/dist/components/conversation/chat-message/chat-message.styles.js +1 -1
  23. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +29 -2
  24. package/dist/components/conversation/chat-viewport/chat-viewport.class.js +2 -2
  25. package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +1 -1
  26. package/dist/components/conversation/code-block/code-block-shared.js +1 -1
  27. package/dist/components/conversation/markdown/markdown-base.class.d.ts +1 -1
  28. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  29. package/dist/components/conversation/markdown/markdown-code-header.js +1 -1
  30. package/dist/components/conversation/markdown/markdown-core.class.d.ts +10 -0
  31. package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
  32. package/dist/components/conversation/markdown/markdown-shared.d.ts +7 -2
  33. package/dist/components/conversation/markdown/markdown-shared.js +3 -3
  34. package/dist/components/conversation/markdown/markdown.class.d.ts +10 -0
  35. package/dist/components/conversation/markdown/markdown.class.js +1 -1
  36. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +11 -3
  37. package/dist/components/conversation/message-feedback/message-feedback.class.js +12 -6
  38. package/dist/components/conversation/message-feedback/message-feedback.styles.js +1 -1
  39. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  40. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +8 -4
  41. package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -2
  42. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  43. package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +4 -0
  44. package/dist/components/conversation/streaming-text/streaming-text-base.class.js +1 -1
  45. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  46. package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -0
  47. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  48. package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
  49. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +17 -3
  50. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +3 -3
  51. package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
  52. package/dist/components/conversation/suggestion-chips/suggestion-chips.js +1 -1
  53. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  54. package/dist/components/conversation/thread-list/thread-list.class.d.ts +1 -1
  55. package/dist/components/conversation/thread-list/thread-list.class.js +3 -3
  56. package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
  57. package/dist/components/data/data-grid/data-grid.class.d.ts +10 -10
  58. package/dist/components/data/data-grid/data-grid.class.js +1 -1
  59. package/dist/components/data/document-library/document-library-cursor.js +1 -0
  60. package/dist/components/data/document-library/document-library-types.d.ts +20 -0
  61. package/dist/components/data/document-library/document-library.class.d.ts +37 -26
  62. package/dist/components/data/document-library/document-library.class.js +20 -11
  63. package/dist/components/data/document-library/document-library.styles.js +1 -1
  64. package/dist/components/data/file-tree/file-tree.class.js +1 -1
  65. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +1 -1
  66. package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
  67. package/dist/components/data/heatmap/heatmap.class.d.ts +1 -1
  68. package/dist/components/data/heatmap/heatmap.class.js +1 -1
  69. package/dist/components/data/pagination/pagination.class.js +1 -1
  70. package/dist/components/data/table/table.class.d.ts +31 -2
  71. package/dist/components/data/table/table.class.js +3 -3
  72. package/dist/components/data/table/table.styles.js +1 -1
  73. package/dist/components/data/timeline/timeline-cluster.js +1 -1
  74. package/dist/components/data/timeline/timeline-item.class.d.ts +10 -3
  75. package/dist/components/data/timeline/timeline-item.class.js +16 -12
  76. package/dist/components/data/timeline/timeline-item.styles.js +1 -1
  77. package/dist/components/data/timeline/timeline.class.d.ts +14 -2
  78. package/dist/components/data/timeline/timeline.class.js +9 -5
  79. package/dist/components/data/tree/tree-item.class.js +1 -1
  80. package/dist/components/data/tree/tree.class.d.ts +2 -0
  81. package/dist/components/data/tree/tree.class.js +1 -1
  82. package/dist/components/forms/button/button.class.d.ts +8 -6
  83. package/dist/components/forms/button/button.class.js +2 -2
  84. package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
  85. package/dist/components/forms/color-picker/color-core.js +1 -1
  86. package/dist/components/forms/combobox/combobox.class.d.ts +20 -12
  87. package/dist/components/forms/combobox/combobox.class.js +2 -2
  88. package/dist/components/forms/date-picker/date-input.class.d.ts +1 -1
  89. package/dist/components/forms/date-picker/date-input.class.js +1 -1
  90. package/dist/components/forms/icon-button/icon-button.class.d.ts +4 -2
  91. package/dist/components/forms/icon-button/icon-button.class.js +2 -2
  92. package/dist/components/forms/input/input-shared.js +2 -2
  93. package/dist/components/forms/input/number-input-locale.js +1 -0
  94. package/dist/components/forms/input/number-input.class.d.ts +19 -2
  95. package/dist/components/forms/input/number-input.class.js +2 -2
  96. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +3 -3
  97. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  98. package/dist/components/layout/app-rail-group/app-rail-group.class.js +1 -1
  99. package/dist/components/layout/details/accordion-item.class.js +1 -1
  100. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +1 -1
  101. package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
  102. package/dist/components/layout/menu/menu.class.js +1 -1
  103. package/dist/components/layout/multi-split/multi-split.class.js +1 -1
  104. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.js +1 -1
  105. package/dist/components/layout/page/page.class.d.ts +3 -3
  106. package/dist/components/layout/page/page.class.js +1 -1
  107. package/dist/components/layout/segmented/segmented.class.d.ts +20 -7
  108. package/dist/components/layout/segmented/segmented.class.js +34 -24
  109. package/dist/components/layout/segmented/segmented.styles.js +1 -1
  110. package/dist/components/layout/stepper/stepper.styles.js +1 -1
  111. package/dist/components/layout/tab-group/tab-group.class.d.ts +8 -1
  112. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  113. package/dist/components/layout/tab-group/tab.class.d.ts +7 -1
  114. package/dist/components/layout/tab-group/tab.class.js +1 -1
  115. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +2 -2
  116. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  117. package/dist/components/media/animated-image/animated-image.class.js +1 -1
  118. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +21 -14
  119. package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
  120. package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +36 -12
  121. package/dist/components/media/attachment-trigger/attachment-trigger.class.js +3 -3
  122. package/dist/components/media/drop-zone/drop-zone.class.d.ts +23 -5
  123. package/dist/components/media/drop-zone/drop-zone.class.js +2 -2
  124. package/dist/components/media/drop-zone/drop-zone.styles.js +1 -1
  125. package/dist/components/media/file-icon/file-icon.class.js +1 -1
  126. package/dist/components/media/flag/flag-url-resolver.js +1 -1
  127. package/dist/components/media/image-viewer/image-viewer.class.d.ts +2 -2
  128. package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
  129. package/dist/components/media/map/map-anchor-controller.js +1 -1
  130. package/dist/components/media/map/map-canvas-target.js +1 -0
  131. package/dist/components/media/map/map-owned-features.js +1 -1
  132. package/dist/components/media/map/map-scene-elevated-lines.js +2 -2
  133. package/dist/components/media/map/map-scene-render-controller.js +1 -1
  134. package/dist/components/media/map/map.class.d.ts +15 -6
  135. package/dist/components/media/map/map.class.js +4 -4
  136. package/dist/components/media/map/map.styles.js +1 -1
  137. package/dist/components/media/pan-zoom/pan-zoom.class.js +1 -1
  138. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +21 -9
  139. package/dist/components/media/sequence-playback/sequence-playback.class.js +7 -6
  140. package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
  141. package/dist/components/media/video/video.class.d.ts +3 -3
  142. package/dist/components/media/video/video.class.js +3 -1
  143. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  144. package/dist/components/overlays/chip/chip.class.js +1 -1
  145. package/dist/components/overlays/overlay/dropdown.class.js +1 -1
  146. package/dist/components/overlays/overlay/overlay.styles.js +1 -1
  147. package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -1
  148. package/dist/components/overlays/overlay/tooltip.class.js +3 -3
  149. package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -1
  150. package/dist/components/retrieval/graph/graph-node-renderer.js +1 -1
  151. package/dist/components/retrieval/graph/graph-spatial-controller.js +1 -1
  152. package/dist/components/retrieval/graph/graph.class.d.ts +1 -1
  153. package/dist/components/retrieval/graph/graph.class.js +1 -1
  154. package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.d.ts +11 -0
  155. package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.js +1 -0
  156. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +18 -7
  157. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +13 -26
  158. package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
  159. package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
  160. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +1 -1
  161. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +3 -3
  162. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +1 -1
  163. package/dist/components/utility/diff-view/diff-view.class.d.ts +5 -5
  164. package/dist/components/utility/diff-view/diff-view.class.js +1 -1
  165. package/dist/components/utility/icon/icon.class.js +1 -1
  166. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +16 -1
  167. package/dist/components/utility/json-viewer/json-viewer.class.js +4 -4
  168. package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
  169. package/dist/components/utility/known-date/known-date.class.js +1 -1
  170. package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
  171. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  172. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
  173. package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
  174. package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
  175. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +1 -1
  176. package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
  177. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +1 -1
  178. package/dist/components/viewers/docx-viewer/docx-viewer.class.js +2 -2
  179. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +1 -1
  180. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +1 -1
  181. package/dist/components/viewers/email-viewer/email-viewer.class.js +2 -2
  182. package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
  183. package/dist/components/viewers/include/include.class.js +1 -1
  184. package/dist/components/viewers/model-viewer/model-viewer.class.js +1 -1
  185. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
  186. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +2 -2
  187. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
  188. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
  189. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
  190. package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
  191. package/dist/components/viewers/table-viewer-shared.js +4 -4
  192. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
  193. package/dist/data-sources.d.ts +10 -0
  194. package/dist/events.d.ts +9 -4
  195. package/dist/framework-types.d.ts +1 -1
  196. package/dist/internal/anchored-overlay-runtime.js +1 -1
  197. package/dist/internal/catalog-picker.js +1 -1
  198. package/dist/internal/default-strings/conversation.generated.js +1 -1
  199. package/dist/internal/default-strings/data.generated.js +1 -1
  200. package/dist/internal/default-strings/retrieval.generated.js +1 -1
  201. package/dist/internal/document-tokens.js +2 -2
  202. package/dist/internal/drop-session-controller.js +1 -1
  203. package/dist/internal/engine-3d.js +1 -1
  204. package/dist/internal/icon-only-content.js +1 -1
  205. package/dist/internal/layered-layout.js +1 -1
  206. package/dist/internal/localization-types.d.ts +1 -1
  207. package/dist/internal/localization.js +1 -1
  208. package/dist/internal/lyra-element.js +2 -2
  209. package/dist/internal/map-custom-layer-controller.js +1 -1
  210. package/dist/internal/media-panorama.js +1 -1
  211. package/dist/internal/native-modal-context.js +1 -1
  212. package/dist/internal/overlay-manager.js +1 -1
  213. package/dist/internal/overlay-order.js +1 -1
  214. package/dist/internal/overlay-stack.js +1 -1
  215. package/dist/internal/package-metadata.js +1 -1
  216. package/dist/internal/runtime-diagnostics.js +1 -0
  217. package/dist/internal/safe-url.js +1 -1
  218. package/dist/internal/scoped-definitions.generated.js +1 -1
  219. package/dist/internal/scroll-overflow.js +1 -1
  220. package/dist/internal/source-cursor-controller.js +1 -0
  221. package/dist/internal/source-cursor-projection.js +1 -0
  222. package/dist/internal/source-page-scope.js +1 -1
  223. package/dist/internal/source-window-controller.js +1 -1
  224. package/dist/internal/text-quote.js +1 -1
  225. package/dist/internal/viewer-search.js +1 -1
  226. package/dist/lyra.d.ts +1 -1
  227. package/dist/sequence-time-binding.js +1 -1
  228. package/dist/simulation-clock.js +1 -1
  229. package/dist/styles/reservations.css +1 -1
  230. package/dist/styles/reservations.styles.js +1 -1
  231. package/dist/testing/happy-dom-shims.js +1 -1
  232. package/dist/theme/theme-bootstrap.js +1 -1
  233. package/dist/theme/theme.js +1 -1
  234. package/dist/utilities/overlay-manager.d.ts +2 -0
  235. package/llms/components/lr-attachment-chip.md +27 -12
  236. package/llms/components/lr-attachment-trigger.md +27 -7
  237. package/llms/components/lr-budget-meter.md +31 -0
  238. package/llms/components/lr-button.md +6 -4
  239. package/llms/components/lr-chat-composer.md +26 -9
  240. package/llms/components/lr-chat-message.md +44 -3
  241. package/llms/components/lr-chat-viewport.md +39 -2
  242. package/llms/components/lr-combobox.md +27 -1
  243. package/llms/components/lr-data-grid.md +2 -0
  244. package/llms/components/lr-dialog.md +10 -0
  245. package/llms/components/lr-diff-view.md +6 -0
  246. package/llms/components/lr-document-library.md +90 -6
  247. package/llms/components/lr-drop-zone.md +26 -2
  248. package/llms/components/lr-graph.md +5 -0
  249. package/llms/components/lr-icon-button.md +2 -1
  250. package/llms/components/lr-ingestion-queue.md +76 -8
  251. package/llms/components/lr-json-viewer.md +51 -0
  252. package/llms/components/lr-lite-chart.md +2 -1
  253. package/llms/components/lr-locale-picker.md +5 -0
  254. package/llms/components/lr-map.md +33 -0
  255. package/llms/components/lr-markdown-core.md +2 -1
  256. package/llms/components/lr-markdown.md +20 -4
  257. package/llms/components/lr-menu.md +3 -1
  258. package/llms/components/lr-message-feedback.md +38 -3
  259. package/llms/components/lr-number-input.md +28 -1
  260. package/llms/components/lr-page.md +4 -2
  261. package/llms/components/lr-prompt-input.md +6 -3
  262. package/llms/components/lr-segmented.md +30 -10
  263. package/llms/components/lr-sequence-playback.md +47 -12
  264. package/llms/components/lr-streaming-text-core.md +3 -2
  265. package/llms/components/lr-streaming-text.md +4 -1
  266. package/llms/components/lr-suggestion-chips.md +28 -5
  267. package/llms/components/lr-tab-group.md +13 -1
  268. package/llms/components/lr-tab.md +5 -0
  269. package/llms/components/lr-table.md +25 -4
  270. package/llms/components/lr-timeline-item.md +1 -1
  271. package/llms/components/lr-timeline.md +38 -4
  272. package/llms/components/lr-tooltip.md +3 -1
  273. package/llms/components/lr-tree.md +4 -0
  274. package/llms/components/lr-virtual-list.md +4 -1
  275. package/llms/peers.md +2 -2
  276. package/llms/shared/events-and-types.md +61 -2
  277. package/llms/shared/forms-and-accessibility.md +46 -4
  278. package/llms/shared/imports-and-registration.md +154 -110
  279. package/llms/shared/testing-and-utilities.md +5 -1
  280. package/llms/shared.md +266 -117
  281. package/locales.json +1 -1
  282. package/package.json +22 -21
  283. package/registrations.json +1 -1
@@ -2,21 +2,18 @@
2
2
 
3
3
  ## Component status, versioning, and deprecation
4
4
 
5
- Every public `lr-*` component has an explicit status and `since` version in the package metadata.
6
- `since` is the earliest published Lyra UI release manifest that contained the tag; for a component
7
- introduced by the current release, it is the current package version.
8
-
9
- - **Stable** components are supported for production use. An incompatible public API or behavior
10
- change requires a semver-major release.
11
- - **Experimental** components are still open to design review, but they are not exempt from
12
- compatibility promises: once published, their public APIs receive the same full-semver protection
13
- as stable components until they are formally deprecated and removed.
14
-
15
- Deprecation is explicit metadata, not an implication from status. Each deprecated component or
16
- member names a replacement, a deprecation version, a rationale, and the earliest permitted removal
17
- version. If an API is deprecated in major version M, it remains available for the complete M+1
18
- release line and cannot be removed before M+2. This policy applies equally to stable and
19
- experimental public APIs.
5
+ Every public `lr-*` component records a status and `since` version in package metadata. `since`
6
+ is the earliest published release manifest containing the tag, or the current version for a new tag.
7
+
8
+ - **Stable** components support production use.
9
+ - **Experimental** components remain open to design review.
10
+
11
+ Once published, both statuses have full-semver protection until formal deprecation and removal; an incompatible
12
+ public API or behavior change requires a semver-major release.
13
+
14
+ Deprecation is explicit metadata, independent of status: it records a replacement, deprecation version,
15
+ rationale and earliest removal version. An API deprecated in major M remains available throughout
16
+ M+1 and cannot be removed before M+2, for stable and experimental APIs alike.
20
17
 
21
18
  **9.0.0 took a one-time exception to that policy, and says so rather than quietly breaking it.**
22
19
  Three members whose recorded removal window had genuinely opened were removed normally
@@ -32,36 +29,30 @@ customary M+1 warning period — `lr-usage-badge`'s `compact`, `lr-chart`'s `hor
32
29
  a mechanical migration listed in the 9.0.0 changelog entry and in `migration.md`. From 9.0.0 onward
33
30
  the M+2 rule applies as written; treat the above as a documented exception, not a precedent.
34
31
 
35
- Deprecation records also cover contracts that are not a single member. Deprecated **slot
36
- content** is a kind of content inside a slot that stays supported (for example, content other than
37
- items in a menu's default slot); the slot's own description says which content is deprecated.
38
- Deprecated **package entry points**, **stylesheets**, **exported types/functions/constants**, and
39
- **global events/root attributes** are listed under "Deprecated package exports" at the end of
40
- `llms/index.md`. Deprecated named exports also carry `@deprecated` in their declarations for editor
41
- feedback. Each component's own deprecations
42
- are listed in its `llms/components/<tag>.md` header and in `custom-elements.json` (from `@aceshooting/lyra-ide`; the declaration's
43
- `deprecations`, with a member's `deprecationRef` identifying its record as `kind:name`).
44
- The standard `deprecated` field remains available to generic CEM readers. These records are the complete
45
- list of deprecated APIs; audit an upgrade against them, not against console output.
46
-
47
- **Development warnings.** The `development` package condition includes runtime diagnostics; the
48
- default production condition omits them. Some deprecations log a development-mode `console.warn` naming the
49
- element or package module, the deprecated API, and its replacement. A warning only ever fires for
50
- usage that can be observed cheaply and exactly — setting a deprecated property or attribute,
51
- connecting a deprecated tag, vetoing through a deprecated alias event, or calling a deprecated
52
- function — and **not every deprecated API
53
- warns**: many deprecations have no runtime warning, among them deprecated slot content,
54
- `lr-stat`'s default-slot icon and `lr-menu`'s non-item default-slot content. Deprecated CSS parts, custom properties, and
55
- custom states are styling hooks a component cannot observe, so they never warn. A silent console
56
- is therefore not evidence that an application uses no deprecated API. Where a warning exists, it
57
- fires once per page for each element name or module and deprecated API, and only when Lit runs its
58
- development build; production builds never warn. The deprecated form keeps working either
59
- way, and moving to the replacement removes the warning. A test suite that fails on console output
60
- while deliberately exercising a deprecated form can pre-seed Lit's development-mode
61
- `globalThis.litIssuedWarnings` set, before the element renders, with the key
62
- `lyra-deprecated:<owner>:<kind>:<name>` — `<kind>` and `<name>` as in the deprecation record.
63
- `<owner>` is the element name or package-relative module specifier. Theme migration guidance is in
64
- [styles and tokens](styles-and-tokens.md).
32
+ Deprecation also covers **slot content** inside a supported slot, such as non-item menu content;
33
+ the slot description identifies it. Deprecated **package entry points**, **stylesheets**,
34
+ **exported types/functions/constants**, and **global events/root attributes** appear under
35
+ "Deprecated package exports" in `llms/index.md`. Named exports also carry `@deprecated` for editors.
36
+ Component records appear in the `llms/components/<tag>.md` header and `custom-elements.json`
37
+ (from `@aceshooting/lyra-ide`): declaration `deprecations` contain records, and a member's
38
+ `deprecationRef` identifies one as `kind:name`. Generic CEM readers can use `deprecated`.
39
+ These records are exhaustive; audit upgrades against them, not console output.
40
+
41
+ **Development warnings.** The `development` package condition includes deprecation diagnostics;
42
+ the default production condition omits them. With Lit's development build, some deprecated usages
43
+ emit `console.warn` naming the element or module, API and replacement, once per page for each
44
+ owner/API. Observable usages include setting a deprecated property/attribute, connecting a tag,
45
+ vetoing through an alias event or calling a function. Deprecated forms keep working; adopting the
46
+ replacement removes the warning. Production never emits these deprecation warnings.
47
+
48
+ Warnings require cheap, exact observation. Many deprecations never warn, including slot content
49
+ (`lr-stat`'s default-slot icon and `lr-menu`'s non-item default-slot content) and unobservable CSS
50
+ parts, custom properties and custom states. A silent console does not prove absence of deprecated
51
+ usage. Tests deliberately exercising it can pre-seed Lit's development-mode
52
+ `globalThis.litIssuedWarnings` set before rendering with
53
+ `lyra-deprecated:<owner>:<kind>:<name>`: `<kind>`/`<name>` come from the record; `<owner>` is the
54
+ element name or package-relative module specifier. See [styles and tokens](styles-and-tokens.md)
55
+ for theme migration.
65
56
 
66
57
  ### Release history and upgrade notes
67
58
 
@@ -77,16 +68,12 @@ registration-free `.class.js` subpath, the split SSR/hydration entries, and the
77
68
 
78
69
  ### The support window
79
70
 
80
- Compatibility promises are bounded by a published support window, not by "evergreen browsers":
81
- Chromium 120+, Gecko 121+, WebKit 16.4+, and Node 22+ (ESM only; there is no CommonJS entry point).
82
- Those floors are derived from platform features the source actually uses — `:dir()`, `:has()`,
83
- `@container`, `color-mix()`, `ElementInternals` form association — because the package ships
84
- untranspiled ES2022 modules with no polyfills and no build-time downleveling. There is deliberately
85
- no `browserslist` field: it would describe a build step this package does not have. The version
86
- floors are derived from those platform features rather than individually verified version-by-version.
87
- Raising any floor is a semver-major change. Full policy, including the known WebKit
88
- cross-shadow-selection gap and the
89
- rule for when a `@supports` fallback may be dropped:
71
+ The published support window is Chromium 120+, Gecko 121+, WebKit 16.4+ and Node 22+ (ESM only,
72
+ no CommonJS entry). These floors derive from `:dir()`, `:has()`, `@container`, `color-mix()` and
73
+ `ElementInternals` form association, not individual version-by-version verification. Lyra ships
74
+ untranspiled ES2022 modules without polyfills or build-time downleveling. There is no `browserslist`
75
+ field: it would describe a build step Lyra does not have. Raising a floor is semver-major. Full policy, including WebKit's
76
+ cross-shadow-selection gap and conditions for dropping a `@supports` fallback:
90
77
  <https://github.com/aceshooting/lyra-ui/blob/main/docs/support-policy.md>.
91
78
 
92
79
  ## Importing and registering components
@@ -99,9 +86,8 @@ import "@aceshooting/lyra-ui/components/lr-combobox.js"; // registers <lr-combob
99
86
  import "@aceshooting/lyra-ui/components/lr-table.js"; // registers <lr-table>
100
87
  ```
101
88
 
102
- Family barrel entries remain supported and register their family. Class-only `.class.js` entries
103
- use their owning family/component path because they intentionally expose source organization and
104
- do not register a tag.
89
+ Family barrels register their family. Registration-free `.class.js` entries retain the owning
90
+ family/component path, exposing source organization.
105
91
 
106
92
  New application code can import any component through its stable tag-shaped path:
107
93
 
@@ -111,8 +97,8 @@ import "@aceshooting/lyra-ui/components/lr-menubar.js";
111
97
  import "@aceshooting/lyra-ui/components/lr-tool-call-block.js";
112
98
  ```
113
99
 
114
- `llms/index.md` lists every tag and its owning implementation module. The stable tag-shaped alias
115
- and the supported family barrel each resolve through the package's component exports.
100
+ `llms/index.md` lists tags and implementation modules; stable aliases and family barrels resolve
101
+ through component exports.
116
102
 
117
103
  The package root is a pure, side-effect-free export surface. Import a component entry to register
118
104
  only that tag, or use the explicit `all.js` entry when whole-library registration is needed:
@@ -121,11 +107,9 @@ only that tag, or use the explicit `all.js` entry when whole-library registratio
121
107
  import "@aceshooting/lyra-ui/all.js"; // explicitly registers the root-included tags
122
108
  ```
123
109
 
124
- The package root does not re-export component constructors. Import a class from its owning
125
- component's `.class.js` subpath; import the stable tag-shaped entry to register it. The root remains
126
- a side-effect-free home for shared utilities and types. Family registration barrels and `all.js`
127
- remain side-effectful convenience entries; prefer tag-shaped imports for smaller application
128
- bundles.
110
+ The root exports shared utilities/types, not component constructors. Use a component's owning
111
+ `.class.js` for its class and tag-shaped entry to register it. Family barrels and `all.js` remain
112
+ side-effectful conveniences; prefer tag imports for smaller bundles.
129
113
 
130
114
  The entry points, then:
131
115
 
@@ -138,11 +122,11 @@ The entry points, then:
138
122
  one warning for that exact conflict with the existing/incoming package versions, constructor
139
123
  names, and both constructor references. An existing non-Lyra definition is reported with an
140
124
  `unknown` existing version rather than guessed provenance.
141
- - **Root barrel.** `import '@aceshooting/lyra-ui';` registers **nothing**. It re-exports a broad
142
- compatibility surface of commonly used classes, helpers, and types,
143
- but it is not an exhaustive promise that every component-owned type or future export is present.
144
- Prefer the owning component entry in application code, both for the smallest bundle and the
145
- complete contract of that component.
125
+ - **Root barrel.** `import '@aceshooting/lyra-ui';` registers **nothing**. Its broad compatibility
126
+ surface of commonly used classes, helpers and types is not exhaustive for component-owned types
127
+ or future exports. Prefer the owning entry for that component's complete contract and smaller
128
+ bundles.
129
+
146
130
  - **`all.js` compatibility entry.** `import '@aceshooting/lyra-ui/all.js';` registers the 296
147
131
  root-included tags — everything **except** the 15 inventory-designated optional-peer-family tags:
148
132
  `lr-chart` and its 8 typed subclasses (`lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`,
@@ -193,11 +177,76 @@ The entry points, then:
193
177
  `waitForLyraElement()`/`waitForToast()` for awaiting a lazily registered mount),
194
178
  `@aceshooting/lyra-ui/utilities/*` (the curated shared helpers, all documented below).
195
179
 
180
+ ### One runtime per document
181
+
182
+ Active Lyra components and overlay utilities in a `Document`, including lazy chunks, must share
183
+ one evaluated `@aceshooting/lyra-ui` graph. Identical versions/archive bytes can still produce
184
+ separate runtimes through different optional-peer contexts. Matching versions or avoiding tag
185
+ conflicts does not share Escape, focus, modal inertness, scroll-lock or native-modal coordination.
186
+ Shadow roots/scoped registries do not isolate these resources; separate documents are independent.
187
+
188
+ Choose the application that owns UI and its required optional peers. For a Vite application whose
189
+ project root directly depends on UI, configure
190
+ [`resolve.dedupe`](https://vite.dev/config/shared-options#resolve-dedupe):
191
+
192
+ ```js
193
+ import { defineConfig } from 'vite';
194
+
195
+ export default defineConfig({
196
+ resolve: { dedupe: ['@aceshooting/lyra-ui'] },
197
+ });
198
+ ```
199
+
200
+ A shared build root without that dependency must explicitly select the owning application's
201
+ public UI exports. For Vite 8, this example uses a
202
+ [pre-enforced resolver](https://vite.dev/guide/api-plugin#plugin-ordering) and the same resolver
203
+ in [dependency optimization](https://vite.dev/config/dep-optimization-options#optimizedeps-rolldownoptions):
204
+
205
+ ```js
206
+ import { createRequire } from 'node:module';
207
+ import { defineConfig } from 'vite';
208
+
209
+ const application = createRequire(new URL('./app/package.json', import.meta.url));
210
+ const resolveUi = () => ({
211
+ name: 'application-ui-runtime',
212
+ resolveId(source) {
213
+ return /^@aceshooting\/lyra-ui(?:\/.*)?$/u.test(source)
214
+ ? application.resolve(source)
215
+ : null;
216
+ },
217
+ });
218
+
219
+ export default defineConfig({
220
+ resolve: { dedupe: ['@aceshooting/lyra-ui'] },
221
+ plugins: [{ ...resolveUi(), enforce: 'pre' }],
222
+ optimizeDeps: { rolldownOptions: { plugins: [resolveUi()] } },
223
+ });
224
+ ```
225
+
226
+ Replace `./app/package.json` with the owning application's manifest. UI's current default public
227
+ exports support `createRequire().resolve()` without assuming install layout or importing CommonJS.
228
+ Import-only companion exports instead require an ESM entry resolved in their owning application.
229
+ Retain that UI context's required optional peers and companion worker/renderer identity checks;
230
+ deduplicating incompatible peers does not repair them.
231
+
232
+ Reusable libraries should peer-depend on UI and externalize its root and every public subpath,
233
+ without bundling a separate copy. Verify actually served development dependencies and production
234
+ module graphs, including lazy imports: development optimization can collapse copies that remain
235
+ split in production. Alias the whole package, never an internal owner or diagnostic module.
236
+
237
+ Active use of a second instrumented runtime emits one `[lr-runtime-duplicate]` warning per
238
+ document, including when versions match. It detects an unsupported split runtime; it does not
239
+ merge or repair overlay state. Passive imports and SSR do not claim a document. If the document's
240
+ diagnostic marker cannot be used, `[lr-runtime-diagnostic-unavailable]` is bounded to once per
241
+ runtime per document; components continue to operate. A throwing console logger does not abort
242
+ connection or overlay acquisition. Silence is not proof of correct bundling: older uninstrumented
243
+ copies and partial internal deduplication can escape detection. Keep the whole-package singleton
244
+ configuration even when no warning appears.
245
+
196
246
  ### Registration-free component helpers
197
247
 
198
- The following focused helpers are public, side-effect-free modules. They do not define a custom
199
- element, so they are suitable for server code, workers, or applications that need the same data
200
- normalization as a component without registering it:
248
+ These public, side-effect-free helpers share component data normalization without defining custom
249
+ elements, for server, worker or application code:
201
250
 
202
251
  ```ts
203
252
  import {
@@ -232,17 +281,17 @@ also renders that component.
232
281
 
233
282
  ### Optional autoloader
234
283
 
235
- `@aceshooting/lyra-ui/autoloader.js` exports `discover(root?, options?)`, `start(root?, options?)`,
236
- and `stop()`. It can load each known Lyra tag independently, allowing bundlers to split components
237
- while granular imports remain independent. Importing this entry alone has no side effect and
238
- registers nothing.
239
-
240
- - `discover()` scans once. `start()` performs the same initial scan, then observes dynamic and
241
- Turbo-style replacement subtrees; a later `start()` stops the previous watcher. `stop()` is
242
- idempotent, disconnects it, invalidates pending definitions, and removes loader-owned markers.
243
- - The optional root is a `Document`, `DocumentFragment`/open `ShadowRoot`, or `Element`; the default
244
- is `document`. Caller-owned open shadow roots are traversed iteratively. Each element resolves
245
- against its owning/scoped custom-element registry rather than an unrelated global registry.
284
+ `@aceshooting/lyra-ui/autoloader.js` exports `discover(root?, options?)`, `start(root?, options?)`
285
+ and `stop()`. It independently loads known tags for component splitting; granular imports stay
286
+ independent. Importing it has no side effects or registrations.
287
+
288
+ - `discover()` scans once. `start()` scans, then watches dynamic/Turbo-style replacement subtrees,
289
+ stopping any previous watcher. Idempotent `stop()` disconnects it, invalidates pending definitions
290
+ and removes loader-owned markers.
291
+ - Root defaults to `document`: accept a `Document`, `DocumentFragment`/open `ShadowRoot` or
292
+ `Element`. Traverse caller-owned open shadows iteratively and use each element's owning/scoped
293
+ custom-element registry, never an unrelated global registry.
294
+
246
295
  - `maxElements` (default `10_000`), `maxRoots` (`2_000`), `maxDepth` (`256`), and `maxWork`
247
296
  (`100_000`) bound one complete discovery operation. `maxConcurrency` (`16`) bounds concurrent
248
297
  definition and first-update tasks. Invalid limits throw `RangeError`; an initial `discover()` or
@@ -287,9 +336,9 @@ and both are safe to import in plain Node.
287
336
  ## Optional native scoped registries
288
337
 
289
338
  `utilities/scoped-registry.js` exports `supportsScopedRegistries()` and
290
- `createScopedRegistry(definitions, { document? })`. Native support is optional and checked at
291
- runtime; unsupported browsers and SSR reject creation explicitly. No polyfill or global fallback
292
- is installed. Ordinary component registration imports keep their existing global behavior.
339
+ `createScopedRegistry(definitions, { document? })`. Creation checks optional native support and
340
+ rejects unsupported browsers/SSR; no polyfill or global fallback is installed. Ordinary registration
341
+ imports retain global behavior.
293
342
 
294
343
  Use class-only imports and provide full tag names, including composed children:
295
344
 
@@ -338,26 +387,21 @@ creation in third-party factories is not intercepted; those factories must use t
338
387
 
339
388
  ## Collection identity
340
389
 
341
- Every host-supplied collection has one explicit identity policy. An actionable or keyed collection
342
- uses a stable, nonempty business identity and ignores malformed identities plus later duplicates
343
- before rendering, counting, focus reconciliation, selection lookup, persistence, or event dispatch.
344
- The first valid occurrence wins and reordering the input does not turn its array position into its
345
- identity. When repeated values are intentionally meaningful, the component keeps them and exposes
346
- an occurrence index in every state or event that must address one occurrence; the relevant
347
- component section says so.
348
-
349
- Lyra-owned controlled properties and action details name the domain instead of overloading the
350
- platform's `HTMLElement.id`: for example `panelId`, `commandId`, `cellId`, `stepId`, `viewId`,
351
- `attachmentId`, `cueId`, `highlightId`, and `spanId`. Controlled active/persisted fields and event
352
- details use the same domain name. Compound identities retain every required scope field (for
353
- example `{ invocationId, sourceKey }`). Published input-record schemas may retain an established
354
- generic `id`/`key`/`path` spelling; the component still applies its documented uniqueness or
355
- occurrence policy and exposes domain-named controlled state and action details.
356
-
357
- Treat an empty or whitespace-only required identity as missing. Unless a component's contract
358
- explicitly documents and tests an input normalization such as trimming surrounding whitespace,
359
- Lyra does not rewrite a valid retained identity merely to validate it. When normalization is part
360
- of that contract, the normalized value is the identity used consistently for duplicate detection,
361
- selection, persistence, keyed DOM ownership, and event details. Assign a new collection when the
362
- data changes, and keep the business identity stable across object replacement so those consumers
363
- continue to follow the same logical record.
390
+ Each host collection declares an identity policy. Actionable/keyed collections require stable,
391
+ nonempty business identities: ignore malformed identities and later duplicates before rendering,
392
+ counting, focus reconciliation, selection lookup, persistence or events. First valid occurrence
393
+ wins; reordering never makes array position its identity. Intentionally repeated values remain,
394
+ with an occurrence index in every state/event addressing one; the component documents this.
395
+
396
+ Controlled properties, persisted/active fields and action details use the same domain names rather than
397
+ `HTMLElement.id`: e.g. `panelId`, `commandId`, `cellId`, `stepId`, `viewId`, `attachmentId`, `cueId`,
398
+ `highlightId` and `spanId`. Compound identities retain all scope fields, e.g.
399
+ `{ invocationId, sourceKey }`. Published input records may retain established `id`/`key`/`path`
400
+ spellings while applying their documented uniqueness/occurrence policy and exposing domain-named
401
+ controlled state/action details.
402
+
403
+ Empty/whitespace-only required identities are missing. Valid retained identities are not rewritten
404
+ for validation unless the component explicitly documents and tests normalization, such as trimming.
405
+ Then use the normalized identity consistently for duplicates, selection, persistence, keyed DOM
406
+ ownership and event details. Assign a new collection when data changes; retain business identities
407
+ across object replacement so consumers follow the same logical records.
@@ -708,7 +708,11 @@ animationName: string, options?: LyraGetAnimationOptions): LyraResolvedElementAn
708
708
  - **`overlay-manager` → `activateOverlay(options): OverlayHandle` and
709
709
  `suspendLyraModalsFor(externalModal): () => void`** — per-`Document` coordination used by Lyra's
710
710
  modal and focus-returning overlay surfaces, including dialogs/drawers, Page/app navigation,
711
- command/tool surfaces, lightbox/tour, and responsive/floating/fullscreen panels. All entries share
711
+ command/tool surfaces, lightbox/tour, and responsive/floating/fullscreen panels. Components and
712
+ utility imports must use [one application-owned runtime per document](./imports-and-registration.md#one-runtime-per-document),
713
+ including lazy chunks; equal versions do not make separate package copies coordinate.
714
+ `[lr-runtime-duplicate]` detects unsupported split-runtime use without merging its state.
715
+ All entries in the supported runtime share
712
716
  one topmost stack: only the top entry handles Escape, Tab
713
717
  trapping, and backdrop dismissal. Content outside the active modal's composed path is inert,
714
718
  including lower overlays and page content added while it is open. Focus traversal crosses slots