@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.
- package/CHANGELOG.md +56 -0
- package/README.md +6 -3
- package/custom-elements.json +1 -1
- package/dist/ai/runtime.js +1 -1
- package/dist/ai/types.d.ts +13 -5
- package/dist/cli/lyra-rename-ledger.mjs +1 -0
- package/dist/cli/migrate-wa.mjs +33 -13
- package/dist/cli/migration-contract.json +1 -1
- package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +5 -3
- package/dist/components/agent-tools/agent-trace/agent-trace.class.js +3 -2
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +15 -3
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.js +3 -3
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +24 -8
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +3 -3
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +4 -0
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +9 -5
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.js +2 -2
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +1 -1
- package/dist/components/agent-tools/tool-status.js +2 -2
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +8 -0
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +3 -2
- package/dist/components/agent-tools/tool-timeline/tool-timeline.styles.js +1 -1
- package/dist/components/agent-tools/trace-tree/span.d.ts +2 -2
- package/dist/components/charts/chart/box-plot.class.d.ts +3 -1
- package/dist/components/charts/chart/box-plot.class.js +9 -9
- package/dist/components/charts/chart/chart-bidi.d.ts +109 -0
- package/dist/components/charts/chart/chart-bidi.js +1 -0
- package/dist/components/charts/chart/chart.class.d.ts +17 -2
- package/dist/components/charts/chart/chart.class.js +10 -8
- package/dist/components/charts/chart/histogram.class.js +1 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +24 -5
- package/dist/components/charts/chart/lite-chart.class.js +9 -9
- package/dist/components/charts/chart/lite-chart.styles.js +1 -1
- package/dist/components/conversation/code-block/shiki-dark-theme.d.ts +2 -2
- package/dist/components/conversation/code-block/shiki-dark-theme.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +18 -2
- package/dist/components/conversation/conversation-item/conversation-item.class.js +3 -3
- package/dist/components/conversation/conversation-item/conversation-item.styles.js +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +3 -1
- package/dist/components/conversation/markdown/markdown.class.d.ts +3 -1
- package/dist/components/conversation/message-actions/message-actions.class.d.ts +7 -2
- package/dist/components/conversation/message-actions/message-actions.class.js +2 -2
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -2
- package/dist/components/conversation/message-parts/message-parts.class.js +5 -3
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +3 -2
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +1 -5
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +7 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +3 -4
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +7 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.js +3 -4
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +13 -2
- package/dist/components/conversation/thread-list/thread-list.class.js +3 -3
- package/dist/components/data/data-grid/data-grid.class.js +1 -1
- package/dist/components/data/document-library/document-library.class.js +2 -0
- package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
- package/dist/components/data/flow-node/flow-node.class.d.ts +6 -2
- package/dist/components/data/flow-node/flow-node.class.js +6 -2
- package/dist/components/data/flow-node/flow-node.styles.js +1 -1
- package/dist/components/data/gauge/gauge.styles.js +1 -1
- package/dist/components/data/heatmap/heatmap.class.d.ts +3 -0
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/sparkline/sparkline.class.d.ts +5 -3
- package/dist/components/data/stat/stat.class.d.ts +4 -3
- package/dist/components/data/table/table.class.d.ts +32 -5
- package/dist/components/data/table/table.class.js +3 -2
- package/dist/components/forms/button/button.class.d.ts +7 -1
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/forms/date-picker/date-input.styles.js +1 -1
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.js +1 -0
- package/dist/components/layout/app-rail/app-rail.class.d.ts +50 -11
- package/dist/components/layout/app-rail/app-rail.class.js +2 -2
- package/dist/components/layout/command-palette/command-palette.class.js +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +6 -5
- package/dist/components/layout/split-panel/split-panel.class.d.ts +2 -1
- package/dist/components/media/flag/language-map.d.ts +8 -0
- package/dist/components/media/flag/language-map.js +1 -1
- package/dist/components/media/map/map-loader.d.ts +7 -1
- package/dist/components/media/map/map.class.d.ts +111 -5
- package/dist/components/media/map/map.class.js +3 -3
- package/dist/components/media/media-card/media-card.class.d.ts +18 -5
- package/dist/components/media/media-card/media-card.class.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +20 -0
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/retrieval/graph/graph.class.d.ts +3 -3
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +5 -3
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +3 -2
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +3 -3
- package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +4 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +5 -1
- package/dist/components/retrieval/source-picker/source-picker.class.d.ts +4 -1
- package/dist/components/retrieval/source-picker/source-picker.class.js +5 -1
- package/dist/components/utility/icon/icon.class.d.ts +9 -3
- package/dist/components/utility/icon/icon.class.js +1 -1
- package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +14 -8
- package/dist/components/utility/mutation-observer/mutation-observer.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +6 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.js +7 -1
- package/dist/components/viewers/document-viewer/registry.d.ts +12 -3
- package/dist/components/viewers/geojson-view/geojson-view.class.d.ts +13 -5
- package/dist/components/viewers/geojson-view/geojson-view.class.js +1 -1
- package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +3 -2
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/events.d.ts +644 -1242
- package/dist/internal/anchored-overlay-runtime.d.ts +2 -2
- package/dist/internal/cell-range.d.ts +0 -6
- package/dist/internal/cell-range.js +1 -1
- package/dist/internal/css-token-length.d.ts +7 -0
- package/dist/internal/css-token-length.js +1 -0
- package/dist/internal/default-strings.generated.d.ts +1 -1
- package/dist/internal/default-strings.generated.js +1 -1
- package/dist/internal/deferred-focus-return.d.ts +7 -4
- package/dist/internal/deferred-focus-return.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.d.ts +35 -0
- package/dist/internal/dev-mode-attribute-warning.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +2 -2
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/papaparse-loader.d.ts +1 -1
- package/dist/internal/papaparse-loader.js +1 -1
- package/dist/internal/positioner.d.ts +10 -0
- package/dist/internal/positioner.js +1 -1
- package/dist/internal/shared-unions.d.ts +2 -1
- package/dist/internal/slotted-overlay-controller.d.ts +20 -0
- package/dist/internal/slotted-overlay-controller.js +1 -0
- package/dist/internal/text-quote.d.ts +1 -1
- package/dist/internal/text-quote.js +1 -1
- package/dist/internal/theme-observation.d.ts +4 -0
- package/dist/internal/theme-observation.js +1 -0
- package/dist/internal/theme-watcher.js +1 -1
- package/dist/localization.d.ts +6 -1
- package/dist/localization.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/translations/ar/agent-tools.js +1 -1
- package/dist/translations/cs/agent-tools.js +1 -1
- package/dist/translations/da/agent-tools.js +1 -1
- package/dist/translations/de/agent-tools.js +1 -1
- package/dist/translations/de-CH/agent-tools.js +1 -1
- package/dist/translations/es/agent-tools.js +1 -1
- package/dist/translations/fa/agent-tools.js +1 -1
- package/dist/translations/fi/agent-tools.js +1 -1
- package/dist/translations/fr/agent-tools.js +1 -1
- package/dist/translations/he/agent-tools.js +1 -1
- package/dist/translations/hi/agent-tools.js +1 -1
- package/dist/translations/hr/agent-tools.js +1 -1
- package/dist/translations/hu/agent-tools.js +1 -1
- package/dist/translations/id/agent-tools.js +1 -1
- package/dist/translations/it/agent-tools.js +1 -1
- package/dist/translations/ja/agent-tools.js +1 -1
- package/dist/translations/kk/agent-tools.js +1 -1
- package/dist/translations/ko/agent-tools.js +1 -1
- package/dist/translations/nb/agent-tools.js +1 -1
- package/dist/translations/nl/agent-tools.js +1 -1
- package/dist/translations/nn/agent-tools.js +1 -1
- package/dist/translations/pl/agent-tools.js +1 -1
- package/dist/translations/pt-BR/agent-tools.js +1 -1
- package/dist/translations/pt-PT/agent-tools.js +1 -1
- package/dist/translations/pt-PT/charts.js +1 -1
- package/dist/translations/pt-PT/conversation.js +1 -1
- package/dist/translations/pt-PT/data.js +1 -1
- package/dist/translations/pt-PT/forms.js +1 -1
- package/dist/translations/pt-PT/layout.js +1 -1
- package/dist/translations/pt-PT/media.js +1 -1
- package/dist/translations/pt-PT/retrieval.js +1 -1
- package/dist/translations/pt-PT/shared.js +1 -1
- package/dist/translations/pt-PT/utility.js +1 -1
- package/dist/translations/pt-PT/viewers.js +2 -2
- package/dist/translations/ro/agent-tools.js +1 -1
- package/dist/translations/ru/agent-tools.js +1 -1
- package/dist/translations/sl/agent-tools.js +1 -1
- package/dist/translations/sv/agent-tools.js +1 -1
- package/dist/translations/tr/agent-tools.js +1 -1
- package/dist/translations/uk/agent-tools.js +1 -1
- package/dist/translations/zh-CN/agent-tools.js +1 -1
- package/dist/translations/zh-TW/agent-tools.js +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/localization.d.ts +28 -10
- package/dist/vue.d.ts +1 -1
- package/llms/components/lr-accordion-item.md +2 -344
- package/llms/components/lr-accordion.md +2 -344
- package/llms/components/lr-app-rail-group.md +2 -721
- package/llms/components/lr-app-rail-item.md +2 -721
- package/llms/components/lr-app-rail.md +29 -4
- package/llms/components/lr-bar-chart.md +2 -87
- package/llms/components/lr-box-plot.md +1 -1
- package/llms/components/lr-breadcrumb-item.md +2 -67
- package/llms/components/lr-bubble-chart.md +2 -87
- package/llms/components/lr-button.md +7 -0
- package/llms/components/lr-chart.md +4 -5
- package/llms/components/lr-chip-group.md +2 -272
- package/llms/components/lr-conversation-item.md +20 -2
- package/llms/components/lr-date-input.md +2 -457
- package/llms/components/lr-date-picker.md +6 -2
- package/llms/components/lr-document-library.md +3 -3
- package/llms/components/lr-document-viewer.md +14 -5
- package/llms/components/lr-doughnut-chart.md +2 -87
- package/llms/components/lr-dropdown-item.md +2 -306
- package/llms/components/lr-dropdown.md +6 -0
- package/llms/components/lr-flag.md +9 -1
- package/llms/components/lr-flow-node.md +4 -1
- package/llms/components/lr-geojson-view.md +3 -90
- package/llms/components/lr-geojson-viewer.md +13 -5
- package/llms/components/lr-icon-button.md +4 -1
- package/llms/components/lr-icon.md +14 -6
- package/llms/components/lr-input.md +9 -2
- package/llms/components/lr-lite-chart.md +17 -9
- package/llms/components/lr-map.md +87 -2
- package/llms/components/lr-markdown-core.md +5 -4
- package/llms/components/lr-markdown.md +4 -2
- package/llms/components/lr-media-card.md +10 -5
- package/llms/components/lr-menu-item.md +2 -306
- package/llms/components/lr-menu.md +9 -6
- package/llms/components/lr-menubar-item.md +2 -125
- package/llms/components/lr-message-actions.md +4 -1
- package/llms/components/lr-message-parts.md +14 -5
- package/llms/components/lr-mutation-observer.md +12 -6
- package/llms/components/lr-navigation-menu-item.md +2 -237
- package/llms/components/lr-number-input.md +4 -0
- package/llms/components/lr-option.md +2 -712
- package/llms/components/lr-pie-chart.md +2 -87
- package/llms/components/lr-polar-area-chart.md +2 -87
- package/llms/components/lr-popover.md +10 -0
- package/llms/components/lr-prompt-input.md +5 -1
- package/llms/components/lr-radar-chart.md +2 -87
- package/llms/components/lr-reorder-item.md +2 -157
- package/llms/components/lr-result-field.md +2 -117
- package/llms/components/lr-retrieval-results.md +3 -1
- package/llms/components/lr-rubric-form.md +3 -2
- package/llms/components/lr-scatter-chart.md +2 -87
- package/llms/components/lr-selection-toolbar.md +4 -2
- package/llms/components/lr-source-card.md +2 -186
- package/llms/components/lr-source-picker.md +3 -1
- package/llms/components/lr-sparkline.md +9 -4
- package/llms/components/lr-split-panel.md +5 -3
- package/llms/components/lr-stat.md +4 -3
- package/llms/components/lr-streaming-text-core.md +7 -5
- package/llms/components/lr-streaming-text.md +9 -6
- package/llms/components/lr-swatch-picker.md +130 -0
- package/llms/components/lr-tag.md +2 -177
- package/llms/components/lr-thread-list.md +27 -4
- package/llms/components/lr-timeline-item.md +2 -120
- package/llms/components/lr-toast-item.md +2 -223
- package/llms/components/lr-tool-call-block.md +12 -3
- package/llms/components/lr-tool-call-chip.md +12 -6
- package/llms/components/lr-tool-param-form.md +3 -2
- package/llms/components/lr-tool-result-dialog.md +7 -3
- package/llms/components/lr-tool-result-view.md +4 -3
- package/llms/components/lr-tool-timeline.md +12 -5
- package/llms/components/lr-tree-item.md +2 -354
- package/llms/index.md +22 -4
- package/llms/migration.md +75 -1
- package/llms/peers.md +1 -1
- package/llms/shared.md +86 -39
- package/llms-full.txt +739 -163
- package/package.json +6 -6
- package/registrations.json +1 -1
- package/vscode-css-data.json +1 -1
- package/vscode-html-data.json +1 -1
- 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
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
`
|
|
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/
|
|
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
|
-
`
|
|
2135
|
+
`subscribeLyraLocale`, `bridgeLyraLocale`, `resolveLyraLocale`, `resolveLyraDirection`,
|
|
2136
|
+
`resolveLyraString`, `resolveLyraScopedString`, `LYRA_DEFAULT_STRINGS`, and the types
|
|
2111
2137
|
`LyraLocaleStrings`, `LyraLocaleMeta`, `LyraLocaleDirection`, `LyraMessageKey`, `LyraMessage`,
|
|
2112
|
-
`LyraPluralMessage` and `
|
|
2113
|
-
|
|
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
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
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/
|
|
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
|
|
2231
|
-
import "@aceshooting/lyra-ui/translations/pt-PT.js"; // European
|
|
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
|
|
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
|
|
2247
|
-
|
|
2248
|
-
`
|
|
2249
|
-
`
|
|
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
|
-
|
|
3227
|
-
|
|
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/
|
|
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
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
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/
|
|
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;
|