@aceshooting/lyra-ui 21.0.0 → 21.1.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 (272) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +6 -3
  3. package/custom-elements.json +1 -1
  4. package/dist/ai/runtime.js +1 -1
  5. package/dist/ai/types.d.ts +13 -5
  6. package/dist/cli/lyra-rename-ledger.mjs +1 -0
  7. package/dist/cli/migrate-wa.mjs +33 -13
  8. package/dist/cli/migration-contract.json +1 -1
  9. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +5 -3
  10. package/dist/components/agent-tools/agent-trace/agent-trace.class.js +3 -2
  11. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +15 -3
  12. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.js +3 -3
  13. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +24 -8
  14. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +3 -3
  15. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +4 -0
  16. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +9 -5
  17. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.js +2 -2
  18. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +1 -1
  19. package/dist/components/agent-tools/tool-status.js +2 -2
  20. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +8 -0
  21. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +3 -2
  22. package/dist/components/agent-tools/tool-timeline/tool-timeline.styles.js +1 -1
  23. package/dist/components/agent-tools/trace-tree/span.d.ts +2 -2
  24. package/dist/components/charts/chart/box-plot.class.d.ts +3 -1
  25. package/dist/components/charts/chart/box-plot.class.js +9 -9
  26. package/dist/components/charts/chart/chart-bidi.d.ts +109 -0
  27. package/dist/components/charts/chart/chart-bidi.js +1 -0
  28. package/dist/components/charts/chart/chart.class.d.ts +17 -2
  29. package/dist/components/charts/chart/chart.class.js +10 -8
  30. package/dist/components/charts/chart/histogram.class.js +1 -1
  31. package/dist/components/charts/chart/lite-chart.class.d.ts +24 -5
  32. package/dist/components/charts/chart/lite-chart.class.js +9 -9
  33. package/dist/components/charts/chart/lite-chart.styles.js +1 -1
  34. package/dist/components/conversation/code-block/shiki-dark-theme.d.ts +2 -2
  35. package/dist/components/conversation/code-block/shiki-dark-theme.js +1 -1
  36. package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +18 -2
  37. package/dist/components/conversation/conversation-item/conversation-item.class.js +3 -3
  38. package/dist/components/conversation/conversation-item/conversation-item.styles.js +1 -1
  39. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  40. package/dist/components/conversation/markdown/markdown-core.class.d.ts +3 -1
  41. package/dist/components/conversation/markdown/markdown.class.d.ts +3 -1
  42. package/dist/components/conversation/message-actions/message-actions.class.d.ts +7 -2
  43. package/dist/components/conversation/message-actions/message-actions.class.js +2 -2
  44. package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -2
  45. package/dist/components/conversation/message-parts/message-parts.class.js +5 -3
  46. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +3 -2
  47. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
  48. package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +1 -5
  49. package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
  50. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +7 -1
  51. package/dist/components/conversation/streaming-text/streaming-text-core.class.js +3 -4
  52. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +7 -1
  53. package/dist/components/conversation/streaming-text/streaming-text.class.js +3 -4
  54. package/dist/components/conversation/thread-list/thread-list.class.d.ts +13 -2
  55. package/dist/components/conversation/thread-list/thread-list.class.js +3 -3
  56. package/dist/components/data/data-grid/data-grid.class.js +1 -1
  57. package/dist/components/data/document-library/document-library.class.js +2 -0
  58. package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
  59. package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
  60. package/dist/components/data/flow-node/flow-node.class.d.ts +6 -2
  61. package/dist/components/data/flow-node/flow-node.class.js +6 -2
  62. package/dist/components/data/flow-node/flow-node.styles.js +1 -1
  63. package/dist/components/data/gauge/gauge.styles.js +1 -1
  64. package/dist/components/data/heatmap/heatmap.class.d.ts +3 -0
  65. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  66. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  67. package/dist/components/data/sparkline/sparkline.class.d.ts +5 -3
  68. package/dist/components/data/stat/stat.class.d.ts +4 -3
  69. package/dist/components/data/table/table.class.d.ts +32 -5
  70. package/dist/components/data/table/table.class.js +3 -2
  71. package/dist/components/forms/button/button.class.d.ts +7 -1
  72. package/dist/components/forms/button/button.styles.js +1 -1
  73. package/dist/components/forms/date-picker/date-input.styles.js +1 -1
  74. package/dist/components/forms/input/input.styles.js +1 -1
  75. package/dist/components/forms/rubric-form/rubric-form.class.js +1 -0
  76. package/dist/components/layout/app-rail/app-rail.class.d.ts +50 -11
  77. package/dist/components/layout/app-rail/app-rail.class.js +2 -2
  78. package/dist/components/layout/command-palette/command-palette.class.js +1 -1
  79. package/dist/components/layout/menu/menu.class.d.ts +6 -5
  80. package/dist/components/layout/split-panel/split-panel.class.d.ts +2 -1
  81. package/dist/components/media/flag/language-map.d.ts +8 -0
  82. package/dist/components/media/flag/language-map.js +1 -1
  83. package/dist/components/media/map/map-loader.d.ts +7 -1
  84. package/dist/components/media/map/map.class.d.ts +111 -5
  85. package/dist/components/media/map/map.class.js +3 -3
  86. package/dist/components/media/media-card/media-card.class.d.ts +18 -5
  87. package/dist/components/media/media-card/media-card.class.js +1 -1
  88. package/dist/components/overlays/overlay/popover.class.d.ts +20 -0
  89. package/dist/components/overlays/overlay/popover.class.js +2 -2
  90. package/dist/components/retrieval/graph/graph.class.d.ts +3 -3
  91. package/dist/components/retrieval/graph/graph.class.js +1 -1
  92. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +5 -3
  93. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -2
  94. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +3 -3
  95. package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
  96. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +4 -1
  97. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -1
  98. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +4 -1
  99. package/dist/components/retrieval/source-picker/source-picker.class.js +5 -1
  100. package/dist/components/utility/icon/icon.class.d.ts +9 -3
  101. package/dist/components/utility/icon/icon.class.js +1 -1
  102. package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +14 -8
  103. package/dist/components/utility/mutation-observer/mutation-observer.class.js +1 -1
  104. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +6 -1
  105. package/dist/components/viewers/document-viewer/document-viewer.class.js +7 -1
  106. package/dist/components/viewers/document-viewer/registry.d.ts +12 -3
  107. package/dist/components/viewers/geojson-view/geojson-view.class.d.ts +13 -5
  108. package/dist/components/viewers/geojson-view/geojson-view.class.js +1 -1
  109. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +3 -2
  110. package/dist/custom-elements-jsx.d.ts +1 -1
  111. package/dist/events.d.ts +644 -1242
  112. package/dist/internal/anchored-overlay-runtime.d.ts +2 -2
  113. package/dist/internal/cell-range.d.ts +0 -6
  114. package/dist/internal/cell-range.js +1 -1
  115. package/dist/internal/css-token-length.d.ts +7 -0
  116. package/dist/internal/css-token-length.js +1 -0
  117. package/dist/internal/default-strings.generated.d.ts +1 -1
  118. package/dist/internal/default-strings.generated.js +1 -1
  119. package/dist/internal/deferred-focus-return.d.ts +7 -4
  120. package/dist/internal/deferred-focus-return.js +1 -1
  121. package/dist/internal/dev-mode-attribute-warning.d.ts +35 -0
  122. package/dist/internal/dev-mode-attribute-warning.js +1 -1
  123. package/dist/internal/localization-runtime.js +1 -1
  124. package/dist/internal/localization-types.d.ts +1 -1
  125. package/dist/internal/localization.js +2 -2
  126. package/dist/internal/package-metadata.d.ts +1 -1
  127. package/dist/internal/package-metadata.js +1 -1
  128. package/dist/internal/papaparse-loader.d.ts +1 -1
  129. package/dist/internal/papaparse-loader.js +1 -1
  130. package/dist/internal/positioner.d.ts +10 -0
  131. package/dist/internal/positioner.js +1 -1
  132. package/dist/internal/shared-unions.d.ts +2 -1
  133. package/dist/internal/slotted-overlay-controller.d.ts +20 -0
  134. package/dist/internal/slotted-overlay-controller.js +1 -0
  135. package/dist/internal/text-quote.d.ts +1 -1
  136. package/dist/internal/text-quote.js +1 -1
  137. package/dist/internal/theme-observation.d.ts +4 -0
  138. package/dist/internal/theme-observation.js +1 -0
  139. package/dist/internal/theme-watcher.js +1 -1
  140. package/dist/localization.d.ts +6 -1
  141. package/dist/localization.js +1 -1
  142. package/dist/lyra.d.ts +1 -1
  143. package/dist/lyra.js +1 -1
  144. package/dist/svelte.d.ts +1 -1
  145. package/dist/testing/lyra-tag-event-map.js +1 -1
  146. package/dist/translations/ar/agent-tools.js +1 -1
  147. package/dist/translations/cs/agent-tools.js +1 -1
  148. package/dist/translations/da/agent-tools.js +1 -1
  149. package/dist/translations/de/agent-tools.js +1 -1
  150. package/dist/translations/de-CH/agent-tools.js +1 -1
  151. package/dist/translations/es/agent-tools.js +1 -1
  152. package/dist/translations/fa/agent-tools.js +1 -1
  153. package/dist/translations/fi/agent-tools.js +1 -1
  154. package/dist/translations/fr/agent-tools.js +1 -1
  155. package/dist/translations/he/agent-tools.js +1 -1
  156. package/dist/translations/hi/agent-tools.js +1 -1
  157. package/dist/translations/hr/agent-tools.js +1 -1
  158. package/dist/translations/hu/agent-tools.js +1 -1
  159. package/dist/translations/id/agent-tools.js +1 -1
  160. package/dist/translations/it/agent-tools.js +1 -1
  161. package/dist/translations/ja/agent-tools.js +1 -1
  162. package/dist/translations/kk/agent-tools.js +1 -1
  163. package/dist/translations/ko/agent-tools.js +1 -1
  164. package/dist/translations/nb/agent-tools.js +1 -1
  165. package/dist/translations/nl/agent-tools.js +1 -1
  166. package/dist/translations/nn/agent-tools.js +1 -1
  167. package/dist/translations/pl/agent-tools.js +1 -1
  168. package/dist/translations/pt-BR/agent-tools.js +1 -1
  169. package/dist/translations/pt-PT/agent-tools.js +1 -1
  170. package/dist/translations/pt-PT/charts.js +1 -1
  171. package/dist/translations/pt-PT/conversation.js +1 -1
  172. package/dist/translations/pt-PT/data.js +1 -1
  173. package/dist/translations/pt-PT/forms.js +1 -1
  174. package/dist/translations/pt-PT/layout.js +1 -1
  175. package/dist/translations/pt-PT/media.js +1 -1
  176. package/dist/translations/pt-PT/retrieval.js +1 -1
  177. package/dist/translations/pt-PT/shared.js +1 -1
  178. package/dist/translations/pt-PT/utility.js +1 -1
  179. package/dist/translations/pt-PT/viewers.js +2 -2
  180. package/dist/translations/ro/agent-tools.js +1 -1
  181. package/dist/translations/ru/agent-tools.js +1 -1
  182. package/dist/translations/sl/agent-tools.js +1 -1
  183. package/dist/translations/sv/agent-tools.js +1 -1
  184. package/dist/translations/tr/agent-tools.js +1 -1
  185. package/dist/translations/uk/agent-tools.js +1 -1
  186. package/dist/translations/zh-CN/agent-tools.js +1 -1
  187. package/dist/translations/zh-TW/agent-tools.js +1 -1
  188. package/dist/utilities/index.d.ts +1 -1
  189. package/dist/utilities/index.js +1 -1
  190. package/dist/utilities/localization.d.ts +28 -10
  191. package/dist/vue.d.ts +1 -1
  192. package/llms/components/lr-accordion-item.md +2 -344
  193. package/llms/components/lr-accordion.md +2 -344
  194. package/llms/components/lr-app-rail-group.md +2 -721
  195. package/llms/components/lr-app-rail-item.md +2 -721
  196. package/llms/components/lr-app-rail.md +29 -4
  197. package/llms/components/lr-bar-chart.md +2 -87
  198. package/llms/components/lr-box-plot.md +1 -1
  199. package/llms/components/lr-breadcrumb-item.md +2 -67
  200. package/llms/components/lr-bubble-chart.md +2 -87
  201. package/llms/components/lr-button.md +7 -0
  202. package/llms/components/lr-chart.md +4 -5
  203. package/llms/components/lr-chip-group.md +2 -272
  204. package/llms/components/lr-conversation-item.md +20 -2
  205. package/llms/components/lr-date-input.md +2 -457
  206. package/llms/components/lr-date-picker.md +6 -2
  207. package/llms/components/lr-document-library.md +3 -3
  208. package/llms/components/lr-document-viewer.md +14 -5
  209. package/llms/components/lr-doughnut-chart.md +2 -87
  210. package/llms/components/lr-dropdown-item.md +2 -306
  211. package/llms/components/lr-dropdown.md +6 -0
  212. package/llms/components/lr-flag.md +9 -1
  213. package/llms/components/lr-flow-node.md +4 -1
  214. package/llms/components/lr-geojson-view.md +3 -90
  215. package/llms/components/lr-geojson-viewer.md +13 -5
  216. package/llms/components/lr-icon-button.md +4 -1
  217. package/llms/components/lr-icon.md +14 -6
  218. package/llms/components/lr-input.md +9 -2
  219. package/llms/components/lr-lite-chart.md +17 -9
  220. package/llms/components/lr-map.md +87 -2
  221. package/llms/components/lr-markdown-core.md +5 -4
  222. package/llms/components/lr-markdown.md +4 -2
  223. package/llms/components/lr-media-card.md +10 -5
  224. package/llms/components/lr-menu-item.md +2 -306
  225. package/llms/components/lr-menu.md +9 -6
  226. package/llms/components/lr-menubar-item.md +2 -125
  227. package/llms/components/lr-message-actions.md +4 -1
  228. package/llms/components/lr-message-parts.md +14 -5
  229. package/llms/components/lr-mutation-observer.md +12 -6
  230. package/llms/components/lr-navigation-menu-item.md +2 -237
  231. package/llms/components/lr-number-input.md +4 -0
  232. package/llms/components/lr-option.md +2 -712
  233. package/llms/components/lr-pie-chart.md +2 -87
  234. package/llms/components/lr-polar-area-chart.md +2 -87
  235. package/llms/components/lr-popover.md +10 -0
  236. package/llms/components/lr-prompt-input.md +5 -1
  237. package/llms/components/lr-radar-chart.md +2 -87
  238. package/llms/components/lr-reorder-item.md +2 -157
  239. package/llms/components/lr-result-field.md +2 -117
  240. package/llms/components/lr-retrieval-results.md +3 -1
  241. package/llms/components/lr-rubric-form.md +3 -2
  242. package/llms/components/lr-scatter-chart.md +2 -87
  243. package/llms/components/lr-selection-toolbar.md +4 -2
  244. package/llms/components/lr-source-card.md +2 -186
  245. package/llms/components/lr-source-picker.md +3 -1
  246. package/llms/components/lr-sparkline.md +9 -4
  247. package/llms/components/lr-split-panel.md +5 -3
  248. package/llms/components/lr-stat.md +4 -3
  249. package/llms/components/lr-streaming-text-core.md +7 -5
  250. package/llms/components/lr-streaming-text.md +9 -6
  251. package/llms/components/lr-swatch-picker.md +130 -0
  252. package/llms/components/lr-tag.md +2 -177
  253. package/llms/components/lr-thread-list.md +27 -4
  254. package/llms/components/lr-timeline-item.md +2 -120
  255. package/llms/components/lr-toast-item.md +2 -223
  256. package/llms/components/lr-tool-call-block.md +12 -3
  257. package/llms/components/lr-tool-call-chip.md +12 -6
  258. package/llms/components/lr-tool-param-form.md +3 -2
  259. package/llms/components/lr-tool-result-dialog.md +7 -3
  260. package/llms/components/lr-tool-result-view.md +4 -3
  261. package/llms/components/lr-tool-timeline.md +12 -5
  262. package/llms/components/lr-tree-item.md +2 -354
  263. package/llms/index.md +22 -4
  264. package/llms/migration.md +75 -1
  265. package/llms/peers.md +1 -1
  266. package/llms/shared.md +86 -39
  267. package/llms-full.txt +739 -163
  268. package/package.json +6 -6
  269. package/registrations.json +1 -1
  270. package/vscode-css-data.json +1 -1
  271. package/vscode-html-data.json +1 -1
  272. package/web-types.json +1 -1
package/llms/migration.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- GENERATED by scripts/build-llms.mjs from scripts/fixtures/component-inventory.json — do not edit this file. -->
1
+ <!-- GENERATED by scripts/build-llms.mjs from scripts/fixtures/component-inventory.json + scripts/fixtures/lyra-renames.json — do not edit this file. -->
2
2
 
3
3
  # Migrating to `lr-*`
4
4
 
@@ -68,6 +68,80 @@ set with a warning. Expand or classify them before applying, then rerun to verif
68
68
  | `lyra-v7` | `<lr-popup>` | `strategy="fixed"`, `placement="bottom-start"`, `distance="4"`, presence `flip`, presence `shift` |
69
69
  | `lyra-v7` | `<lr-tooltip>` | `distance="6"`, presence `without-arrow` |
70
70
 
71
+ ## Migrating from Lyra 21 to Lyra 22 (`--origin=lyra-v21`)
72
+
73
+ Lyra 21 minor releases and Lyra 22 rename some Lyra-only attributes, properties, events, CSS parts,
74
+ custom properties and slots. Each previous name keeps working as a deprecated alias until
75
+ Lyra 23 removes it. Names mirrored from Web Awesome or Shoelace, and their defaults, never
76
+ change. Run the CLI of the installed package after upgrading, within Lyra 21 or to Lyra 22. It
77
+ applies only the entries the installed release ships, so running it again after a later upgrade
78
+ picks up the rest:
79
+
80
+ ```bash
81
+ npx lyra-ui-migrate --origin=lyra-v21 --diff src > lyra-v21.patch
82
+ npx lyra-ui-migrate --origin=lyra-v21 --check --report=lyra-v21-migration.json src
83
+ ```
84
+
85
+ `--diff` prints a patch and writes nothing. The profile rewrites a name only where the rewrite
86
+ cannot change what the site reaches: attribute, property and slot bindings on the component in
87
+ HTML, Lit, JSX, Vue, Svelte and Angular templates; `exportparts` and `::part()` or attribute
88
+ selectors that name the component; and calls rooted at `querySelector('lr-…')`, `closest()` or
89
+ `createElement()`. Events bubble and custom properties inherit, so a listener moves only when no
90
+ other component already dispatches the new name, and an unowned listener or any custom-property
91
+ use only when, in addition, every component with the old name renamed it the same way and the
92
+ scanned code never dispatches the old name itself. Everything else is reported with a location;
93
+ the old name keeps working meanwhile.
94
+
95
+ | Code | Reported when |
96
+ |---|---|
97
+ | `RENAME_REVIEW` | An old name at a site that does not prove its component, or where another component keeps the name. |
98
+ | `RENAME_TARGET_SHARED_REVIEW` | The new name is already used by another component, so renaming would widen the site. |
99
+ | `NAME_GAINED_OWNER_REVIEW` | A listener, `::part()` selector or declaration of a name that more components use after the upgrade. |
100
+ | `POLARITY_REVIEW` | A boolean replaced by its inverse is bound, assigned or selected, or set statically where a framework assigns properties. |
101
+ | `DETAIL_SHAPE_REVIEW` | A listener may receive an event whose detail changed; details cannot be aliased. |
102
+ | `DEPRECATED_MEMBER_REVIEW`, `DEPRECATED_CONTENT_REVIEW` | A deprecated member, tag or kind of slotted content without a mechanical replacement. |
103
+ | `RENAME_CONFLICT_REVIEW` | The element already binds the new name, or the same receiver already listens to it with the same handler. |
104
+ | `UNUSED_ACKNOWLEDGEMENT` | An acknowledgement comment matches no report. |
105
+
106
+ After reviewing a site, add a comment containing `lyra-migrate-reviewed: CODE:name` (for example
107
+ `DETAIL_SHAPE_REVIEW:lr-close`) on the reported line, alone on the line above it, or directly before
108
+ the element's opening tag. Acknowledged reports no longer fail `--check`. Re-running the profile
109
+ is idempotent. Templates rendered on the server must be re-rendered after migrating, because Lit
110
+ hydration compares template strings.
111
+
112
+ | Component | Kind | Deprecated name | New name | Handling |
113
+ |---|---|---|---|---|
114
+ | `<lr-markdown>` | attribute | `code-block-chrome` | `code-block-header` | Rewritten on the component; selectors reported (not reflected) |
115
+ | `<lr-markdown>` | property | `codeBlockChrome` | `codeBlockHeader` | Rewritten where the component is proven |
116
+ | `<lr-markdown-core>` | attribute | `code-block-chrome` | `code-block-header` | Rewritten on the component; selectors reported (not reflected) |
117
+ | `<lr-markdown-core>` | property | `codeBlockChrome` | `codeBlockHeader` | Rewritten where the component is proven |
118
+ | `<lr-media-card>` | event | `lr-before-media-download` | `lr-media-download-request` | Rewritten where the reach is unchanged, otherwise reported |
119
+ | `<lr-message-parts>` | attribute | `code-block-chrome` | `code-block-header` | Rewritten on the component; selectors reported (not reflected) |
120
+ | `<lr-message-parts>` | property | `codeBlockChrome` | `codeBlockHeader` | Rewritten where the component is proven |
121
+ | `<lr-mutation-observer>` | attribute | `character-data` | `char-data` | Rewritten where the component is proven |
122
+ | `<lr-mutation-observer>` | property | `characterData` | `charData` | Rewritten where the component is proven |
123
+ | `<lr-streaming-text>` | attribute | `code-block-chrome` | `code-block-header` | Rewritten on the component; selectors reported (not reflected) |
124
+ | `<lr-streaming-text>` | property | `codeBlockChrome` | `codeBlockHeader` | Rewritten where the component is proven |
125
+ | `<lr-streaming-text-core>` | attribute | `code-block-chrome` | `code-block-header` | Rewritten on the component; selectors reported (not reflected) |
126
+ | `<lr-streaming-text-core>` | property | `codeBlockChrome` | `codeBlockHeader` | Rewritten where the component is proven |
127
+
128
+ | Component | Kind | Deprecated name | Replacement (manual) |
129
+ |---|---|---|---|
130
+ | `<lr-geojson-view>` | component | `lr-geojson-view` | `<lr-geojson-viewer>` |
131
+ | `<lr-icon>` | attribute | `fixed-width` | `inline-size: var(--lr-size-1-5em) on that icon (or the --lr-icon-fixed-width value it used)` |
132
+ | `<lr-icon>` | css-property | `--lr-icon-fixed-width` | `inline-size (the same value, on the fixed-width icons only)` |
133
+ | `<lr-icon>` | property | `fixedWidth` | `inline-size: var(--lr-size-1-5em) on that icon (or the --lr-icon-fixed-width value it used)` |
134
+ | `<lr-mutation-observer>` | attribute | `attributes` | `attr="*" (or just remove it where attr, attr-old-value or a non-empty attributeFilter is also set)` |
135
+ | `<lr-mutation-observer>` | property | `observeAttributes` | `attr="*" (or just remove it where attr, attr-old-value or a non-empty attributeFilter is also set)` |
136
+ | `<lr-sparkline>` | css-property | `--lr-sparkline-stroke-width` | `--line-width (the same value, declared on lr-sparkline itself)` |
137
+ | `<lr-sparkline>` | part | `area` | `::part(fill)` |
138
+ | `<lr-split-panel>` | part | `split-panel` | `::part(base)` |
139
+ | `<lr-stat>` | slot | (default slot) | `slot="start"` |
140
+
141
+ | Component | Slot | Reported content | Change |
142
+ |---|---|---|---|
143
+ | `<lr-menu>` | default | anything but `<hr>`, `<lr-divider>`, `<lr-dropdown-item>`, `<lr-menu-item>`, `<lr-menu-label>` | Only items, labels and separators belong in the menu list; move other content to slot="header" or slot="footer", which render it outside role="menu". |
144
+
71
145
  ## Classification summary
72
146
 
73
147
  | Ecosystem | Exact | Rewritten | Warning required | Conceptual only | Unsupported | Automatic | Manual |
package/llms/peers.md CHANGED
@@ -59,7 +59,7 @@ for the page.
59
59
  | `marked` | `^18.0.11` | `lr-agent-workspace`, `lr-dashboard-grid`, `lr-eval-run`, `lr-markdown`, `lr-markdown-core`, `lr-message-parts`, `lr-notebook-viewer`, `lr-rag-answer`, `lr-streaming-text`, `lr-streaming-text-core`, `lr-widget-renderer` |
60
60
  | `papaparse` | `^5.7.0` | `lr-csv-viewer`, `lr-dataset-viewer` |
61
61
  | `pdfjs-dist` | `^6.3.289` | `lr-pdf-viewer` |
62
- | `postal-mime` | `^3.0.1` | `lr-email-viewer` |
62
+ | `postal-mime` | `^3.0.1 || ^4.0.0` | `lr-email-viewer` |
63
63
  | `qrcode` | `^1.5.4` | `lr-qr-code` |
64
64
  | `react` | `>=19 <20` | type-only `@aceshooting/lyra-ui/custom-elements-jsx` entry (no runtime import) |
65
65
  | `shiki` | `^4.4.3` | `lr-agent-workspace`, `lr-code-block`, `lr-code-block-core`, `lr-dashboard-grid`, `lr-diff-view`, `lr-document-compare`, `lr-eval-result`, `lr-eval-run`, `lr-markdown`, `lr-markdown-core`, `lr-message-parts`, `lr-notebook-viewer`, `lr-rag-answer`, `lr-streaming-text`, `lr-streaming-text-core`, `lr-widget-renderer` |
package/llms/shared.md CHANGED
@@ -30,15 +30,40 @@ customary M+1 warning period — `lr-usage-badge`'s `compact`, `lr-chart`'s `hor
30
30
  a mechanical migration listed in the 9.0.0 changelog entry and in `migration.md`. From 9.0.0 onward
31
31
  the M+2 rule applies as written; treat the above as a documented exception, not a precedent.
32
32
 
33
+ Deprecation records also cover three things that are not a single member. Deprecated **slot
34
+ content** is a kind of content inside a slot that stays supported (for example, content other than
35
+ items in a menu's default slot); the slot's own description says which content is deprecated.
36
+ Deprecated **package entry points** (an import path) and deprecated **exported types** are listed
37
+ under "Deprecated package exports" at the end of `llms/index.md`; a deprecated type also carries
38
+ `@deprecated` in its declaration, so editors strike it through. Each component's own deprecations
39
+ are listed in its `llms/components/<tag>.md` header and in `custom-elements.json` (the declaration's
40
+ `deprecations`, plus a `deprecation` on each deprecated member). These records are the complete
41
+ list of deprecated APIs; audit an upgrade against them, not against console output.
42
+
43
+ **Development warnings.** Some deprecations also log a development-mode `console.warn` naming the
44
+ element, the deprecated API, and its replacement. A warning only ever fires for usage a component
45
+ can observe cheaply and exactly — setting a deprecated property or attribute, connecting a
46
+ deprecated tag, or vetoing through a deprecated alias event — and **not every deprecated API
47
+ warns**: many deprecations have no runtime warning, among them `lr-icon`'s `auto-width`,
48
+ `lr-stat`'s default-slot icon, `lr-menu`'s non-item default-slot content, the `lr-before-*` alias
49
+ events of `lr-chart`, `lr-box-plot`, `lr-graph-legend` and `lr-graph-query-builder`, and
50
+ `lr-command-palette`'s `lr-open` alias event, and deprecated CSS parts, custom properties, and
51
+ custom states are styling hooks a component cannot observe, so they never warn. A silent console
52
+ is therefore not evidence that an application uses no deprecated API. Where a warning exists, it
53
+ fires once per page for each element name and deprecated API, and only when Lit runs its
54
+ development build; production builds never warn. The deprecated form keeps working either
55
+ way, and moving to the replacement removes the warning. A test suite that fails on console output
56
+ while deliberately exercising a deprecated form can pre-seed Lit's development-mode
57
+ `globalThis.litIssuedWarnings` set, before the element renders, with the key
58
+ `lyra-deprecated:<tag>:<kind>:<name>` — `<kind>` and `<name>` as in the deprecation record.
59
+
33
60
  ### Release history and upgrade notes
34
61
 
35
- `since` records when a tag first appeared; it is not a history of later additions, fixes, or
36
- breaking changes. For every release after 9.0.0 — including minor and patch releases — read the
37
- package's shipped [CHANGELOG.md](../CHANGELOG.md) before upgrading. Family-wide breaking-change
38
- summaries sit at the start of the applicable authored `llms/<family>.md` file; each generated
39
- `llms/components/<tag>.md` header links that family summary when one exists. Component-specific
40
- version notes remain in the component's own section. `llms/migration.md` is narrower: it covers
41
- `wa-*`/`sl-*` renames and compatibility decisions, not Lyra release history.
62
+ `since` records when a tag first appeared, not later changes. Before upgrading, read the
63
+ package's [CHANGELOG.md](../CHANGELOG.md) (every release, including minor and patch).
64
+ Family-wide breaking-change summaries open each authored `llms/<family>.md`, and each generated
65
+ `llms/components/<tag>.md` header links its family summary. `llms/migration.md` covers only
66
+ `wa-*`/`sl-*` renames, not Lyra release history.
42
67
 
43
68
  The major-version landmarks after 9.0.0 are:
44
69
 
@@ -2101,17 +2126,21 @@ override takes precedence over either page-level choice.
2101
2126
 
2102
2127
  To keep `<html lang>`/`dir` in step with `setLyraLocale()` — which everything _outside_ this library
2103
2128
  reads, from `:lang()` rules to spellcheck to a screen reader's pronunciation — use
2104
- `bridgeLyraLocale()` from `@aceshooting/lyra-ui/utilities/localization.js` (see
2129
+ `bridgeLyraLocale()` from `@aceshooting/lyra-ui/localization.js` (see
2105
2130
  [Shared helpers](#shared-helpers-utilities)).
2106
2131
 
2107
2132
  The side-effect-free `@aceshooting/lyra-ui/localization.js` entry exports
2108
2133
  `registerLyraLocale`, `setLyraLocale`, `getLyraLocale`, `getLyraLocaleDirection`,
2109
2134
  `getRegisteredLyraLocales`, `getRegisteredLyraLocaleKeys`, `subscribeLyraLocaleRegistry`,
2110
- `resolveLyraLocale`, `resolveLyraDirection`, `resolveLyraString`, `LYRA_DEFAULT_STRINGS`, and the types
2135
+ `subscribeLyraLocale`, `bridgeLyraLocale`, `resolveLyraLocale`, `resolveLyraDirection`,
2136
+ `resolveLyraString`, `resolveLyraScopedString`, `LYRA_DEFAULT_STRINGS`, and the types
2111
2137
  `LyraLocaleStrings`, `LyraLocaleMeta`, `LyraLocaleDirection`, `LyraMessageKey`, `LyraMessage`,
2112
- `LyraPluralMessage` and `LyraPluralCategory`. The package root continues to re-export the same
2113
- surface for compatibility and remains registration-free; use the dedicated entry when the
2114
- application only needs locale setup and the narrower import graph.
2138
+ `LyraPluralMessage`, `LyraPluralCategory`, `LyraLocaleBridgeOptions` and `LyraLocaleBridgeCleanup`.
2139
+ The package root continues to re-export the runtime for compatibility and remains registration-free;
2140
+ use the dedicated entry when the application only needs locale setup and the narrower import graph.
2141
+ The `@aceshooting/lyra-ui/utilities/localization.js` entry point is deprecated, with removal not
2142
+ before 23.0.0: every name it exports is exported here as the identical binding, so change the import
2143
+ specifier to `@aceshooting/lyra-ui/localization.js` and nothing else.
2115
2144
  **`LYRA_DEFAULT_STRINGS` is the authoritative key list** (matching the `LyraMessageKey` union) —
2116
2145
  read it to find the key to override rather than guessing one. Date, number, byte, relative-time and
2117
2146
  calendar output goes through `Intl`.
@@ -2134,14 +2163,20 @@ category selection walks the same chain, so the two can never disagree:
2134
2163
  ceiling retains its exact tag, base language and English fallback without constructing an
2135
2164
  unbounded prefix ladder; malformed over-complex inherited input goes directly to English.
2136
2165
  2. **Then any registered, well-formed BCP-47 catalog sharing the base language**, which is how a
2137
- _regional-only_ catalog is reached from a less specific tag: `lang="zh"` and `lang="zh-Hans"`
2138
- both find the shipped `zh-CN` catalog, while `lang="pt"` reaches `pt-BR` and an exact `lang="pt-PT"`
2139
- selects the European Portuguese catalog. Order within this
2140
- step is deterministic and independent of import order — most shared subtags first
2141
- (`zh-Hant-TW` prefers a registered `zh-TW` over `zh-CN`), then alphabetically as the tie-break
2142
- (bare `zh` with both registered picks `zh-CN`). Register the regional tag you actually mean if
2143
- the tie-break isn't the answer you want. Legacy/custom tags are exact/truncation-addressable
2144
- only and do not become regional siblings accidentally.
2166
+ _regional-only_ catalog is reached from a less specific tag (`lang="zh"` finds `zh-CN`,
2167
+ `lang="pt"` finds `pt-BR`). Order is deterministic and independent of import order:
2168
+ 1. **Same likely script** — the explicit script subtag, else CLDR likely subtags via
2169
+ `Intl.Locale#maximize()`. `zh-Hant`, `zh-HK`, `zh-MO` and `zh-Hant-CN` reach Traditional
2170
+ `zh-TW`; `zh`, `zh-Hans`, `zh-SG` and `zh-Hans-HK` reach Simplified `zh-CN`. An unknown
2171
+ script (none, `Zzzz`, or no `Intl.Locale`) never matches.
2172
+ 2. **Same likely region** — a region-less tag reaches its CLDR default region: bare `pt` picks
2173
+ `pt-BR` even with `pt-PT` imported.
2174
+ 3. **Most shared subtags**, counting each occurrence (`pt-AO` and `pt-MZ` pick `pt-PT`;
2175
+ `qaa-Hant-TW` picks `qaa-TW` over `qaa-CN`).
2176
+ 4. **Alphabetical**, as a stable tie-break.
2177
+
2178
+ Register the regional tag you mean if the ordering isn't what you want. Legacy/custom tags are
2179
+ exact/truncation-addressable only and never become regional siblings.
2145
2180
  3. **Then `en`**, always available through the built-in English defaults.
2146
2181
 
2147
2182
  Step 1 always beats step 2: with both `zh` and `zh-CN` registered, `zh-Hans-CN` resolves to `zh`.
@@ -2184,7 +2219,7 @@ through to the next valid tier.
2184
2219
  sorted, deduped and canonically spelled. `subscribeLyraLocaleRegistry(listener: () => void): () =>
2185
2220
  void` fires when registry membership grows, including for a newly registered locale that is not
2186
2221
  active; extending an existing catalog does not change membership and does not fire it.
2187
- `subscribeLyraLocale()` (on `@aceshooting/lyra-ui/utilities/localization.js`) instead fires when the
2222
+ `subscribeLyraLocale()` (also on `@aceshooting/lyra-ui/localization.js`) instead fires when the
2188
2223
  active selection changes or a registration can alter the active locale's messages/direction, and
2189
2224
  filters unrelated registrations. Both return an idempotent unsubscribe. Delivery uses the eligible
2190
2225
  starting listener snapshots: one callback failure cannot prevent later active, component or
@@ -2227,11 +2262,11 @@ import "@aceshooting/lyra-ui/translations/ar.js"; // declares dir: 'rtl'; direct
2227
2262
  import "@aceshooting/lyra-ui/translations/fa.js"; // fa-IR falls back to this base catalog
2228
2263
  import "@aceshooting/lyra-ui/translations/he.js"; // he-IL falls back to this base catalog
2229
2264
  import "@aceshooting/lyra-ui/translations/it.js"; // Italian
2230
- import "@aceshooting/lyra-ui/translations/pt-BR.js"; // serves generic pt and pt-BR
2231
- import "@aceshooting/lyra-ui/translations/pt-PT.js"; // European Portuguese
2265
+ import "@aceshooting/lyra-ui/translations/pt-BR.js"; // Brazilian: serves pt and pt-BR
2266
+ import "@aceshooting/lyra-ui/translations/pt-PT.js"; // European: serves pt-PT, pt-AO, pt-MZ
2232
2267
  import "@aceshooting/lyra-ui/translations/ro.js"; // Romanian
2233
- import "@aceshooting/lyra-ui/translations/zh-CN.js"; // serves zh, zh-Hans and zh-Hans-CN
2234
- import "@aceshooting/lyra-ui/translations/zh-TW.js"; // Traditional Chinese
2268
+ import "@aceshooting/lyra-ui/translations/zh-CN.js"; // Simplified: serves zh, zh-Hans, zh-SG and zh-Hans-CN
2269
+ import "@aceshooting/lyra-ui/translations/zh-TW.js"; // Traditional: serves zh-Hant, zh-HK and zh-MO
2235
2270
  ```
2236
2271
 
2237
2272
  Persian and Hebrew use CLDR plural categories (`fa`: `one`/`other`; `he`:
@@ -2243,10 +2278,11 @@ and `he` declare `dir: 'rtl'`, so `getLyraLocaleDirection()`
2243
2278
  answers for them (and for `ar-EG`, `fa-IR`, `he-IL`) — but locale selection still does not _force_
2244
2279
  writing direction: set `dir="rtl"` on the page or an ancestor yourself.
2245
2280
 
2246
- `de-CH`, `pt-BR`, `pt-PT`, `zh-CN`, and `zh-TW` are regional catalogs. Step 2 of the lookup order above
2247
- still makes each reachable from a less-specific language tag, while an exact `lang="de-CH"`,
2248
- `lang="pt-PT"` or `lang="zh-TW"` selects its dedicated regional catalog. They are listed under their real tags in
2249
- `getRegisteredLyraLocales()`.
2281
+ `de-CH`, `pt-BR`, `pt-PT`, `zh-CN`, and `zh-TW` are regional catalogs: an exact tag always selects
2282
+ its own catalog, and a less specific tag reaches one through step 2 only when nothing on its
2283
+ truncation walk answers first (with `de` imported, `lang="de-AT"` resolves to `de`, never `de-CH`).
2284
+ The same routing drives plural selection and `getLyraLocaleDirection()`. They are listed under
2285
+ their real tags in `getRegisteredLyraLocales()`.
2250
2286
 
2251
2287
  Import only the locales the application can actually offer — each is a separate module, so unimported
2252
2288
  ones cost nothing. A catalog registered this way is merged like any other, so a later
@@ -2382,6 +2418,14 @@ import {
2382
2418
  validates them on `tool-upsert` events and `tool-call` parts: a non-finite or non-number time, or
2383
2419
  a `redactedFields` that is not an array of at most 100 strings of at most 4,096 characters, fails
2384
2420
  the event as `invalid_stream_event`.
2421
+ - **Tool display name and incomplete calls** (21.1.0) — `ToolInvocation.displayName` is the
2422
+ application's own, already-translated tool label; `<lr-message-parts>` (both `tool-display`
2423
+ modes) and `<lr-tool-timeline>` show it in place of `name`, which still selects the result
2424
+ renderer. `status: 'incomplete'` marks a call that ended without a result (an interrupted stream,
2425
+ a cancelled run); set it yourself on a `tool-upsert` or `tool-call` part, since the adapters never
2426
+ infer it. The runtime accepts both on `tool-upsert` events, `tool-call` parts and message
2427
+ snapshots; a `displayName` that is not a string of at most `maxIdentifierCharacters` fails the
2428
+ event as `invalid_stream_event`, and a later upsert that omits it keeps the retained one.
2385
2429
  - **Resource limits** — pass a partial `AgentStreamLimits` to `createAgentStreamState()`, or adapter
2386
2430
  limit options to the relevant adapter. The exported `DEFAULT_AGENT_STREAM_LIMITS`,
2387
2431
  `DEFAULT_AI_SDK_ADAPTER_LIMITS`, `DEFAULT_AG_UI_ADAPTER_LIMITS`, and
@@ -3222,9 +3266,12 @@ readonly politeness: AnnouncementPoliteness; messageTtlMs: number; announce(text
3222
3266
  release(): void }`, and `AnnouncerTimerHost { setTimeout(handler: () => void, timeout: number):
3223
3267
  number; clearTimeout(handle: number): void }`.
3224
3268
  - **`localization` → `subscribeLyraLocale(listener): () => void` and
3225
- `bridgeLyraLocale(options?): () => void`** — the _active-locale_ half of the locale runtime,
3226
- which the side-effect-free `@aceshooting/lyra-ui/localization.js` entry does not carry (that one
3227
- has `subscribeLyraLocaleRegistry()`, which answers a different question — see "Localization").
3269
+ `bridgeLyraLocale(options?): () => void`** — the _active-locale_ half of the locale runtime.
3270
+ **This `utilities/localization.js` entry point is deprecated**, with removal not before 23.0.0:
3271
+ import every name below from the side-effect-free `@aceshooting/lyra-ui/localization.js` entry,
3272
+ which exports the identical bindings and types. The extensionless `@aceshooting/lyra-ui/utilities`
3273
+ barrel keeps exporting them. `subscribeLyraLocale()` is distinct from
3274
+ `subscribeLyraLocaleRegistry()`, which answers a different question — see "Localization".
3228
3275
  `subscribeLyraLocale()` fires whenever the active selection changes, and when a newly registered
3229
3276
  or extended catalog can alter that selection's messages or direction. Registrations unrelated to
3230
3277
  the active lookup chain are filtered. An application can therefore re-render its **own**
@@ -3247,8 +3294,7 @@ number; clearTimeout(handle: number): void }`.
3247
3294
  Its exact options record is `LyraLocaleBridgeOptions { target?: Element; direction?: boolean }`.
3248
3295
 
3249
3296
  ```ts
3250
- import { bridgeLyraLocale } from "@aceshooting/lyra-ui/utilities/localization.js";
3251
- import { setLyraLocale } from "@aceshooting/lyra-ui/localization.js";
3297
+ import { bridgeLyraLocale, setLyraLocale } from "@aceshooting/lyra-ui/localization.js";
3252
3298
  import "@aceshooting/lyra-ui/translations/ar.js";
3253
3299
 
3254
3300
  const stop = bridgeLyraLocale(); // mirrors onto <html>
@@ -3259,13 +3305,13 @@ number; clearTimeout(handle: number): void }`.
3259
3305
  `resolveLyraScopedString(/* public names: host, key, defaults, overrides, fallback, values */):
3260
3306
  unknown` is a scoped variant of `resolveLyraString()` (see "Localization"): the same
3261
3307
  override → fallback → registered-locale-catalog resolution chain, but against a caller-supplied
3262
- `defaults` record instead of the complete `LYRA_DEFAULT_STRINGS` catalog. It lives on this
3263
- tree-shakable entry rather than the side-effect-free `@aceshooting/lyra-ui/localization.js` one so
3264
- that resolving a handful of an application's own messages never pulls in the full compatibility
3265
- catalog to do it — pass a small `defaults` object of just the keys used.
3308
+ `defaults` record instead of the complete `LYRA_DEFAULT_STRINGS` catalog, so resolving a handful
3309
+ of an application's own messages never needs the full compatibility catalog — pass a small
3310
+ `defaults` object of just the keys used. `@aceshooting/lyra-ui/localization.js` is side-effect-free,
3311
+ so a bundler drops the unused catalog; an unbundled graph that imports it still loads the catalog.
3266
3312
 
3267
3313
  ```ts
3268
- import { resolveLyraScopedString } from "@aceshooting/lyra-ui/utilities/localization.js";
3314
+ import { resolveLyraScopedString } from "@aceshooting/lyra-ui/localization.js";
3269
3315
 
3270
3316
  const label = resolveLyraScopedString(host, "save", { save: "Save" });
3271
3317
  ```
@@ -3662,6 +3708,7 @@ These named interfaces and helper signatures are available to typed integrations
3662
3708
  `ToolInvocation {
3663
3709
  id: unknown;
3664
3710
  name: unknown;
3711
+ displayName: unknown;
3665
3712
  args: unknown;
3666
3713
  status: unknown;
3667
3714
  result: unknown;