@aceshooting/lyra-ui 30.3.0 → 30.5.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 +30 -0
- package/README.md +1 -2
- package/dist/components/conversation/message-actions/message-actions.class.d.ts +3 -3
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +1 -1
- package/dist/components/layout/app-rail/app-rail.class.js +1 -1
- package/dist/components/layout/multi-split/multi-split.class.d.ts +4 -1
- package/dist/components/layout/multi-split/multi-split.class.js +6 -3
- package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +3 -1
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +6 -4
- package/dist/components/layout/responsive-panel/responsive-panel.class.js +1 -1
- package/dist/components/layout/scroller/scroller.class.d.ts +1 -1
- package/dist/components/layout/scroller/scroller.class.js +1 -1
- package/dist/components/layout/split-panel/split-panel.class.d.ts +1 -1
- package/dist/components/layout/split-panel/split-panel.class.js +1 -1
- package/dist/components/layout/stepper/stepper.class.d.ts +1 -1
- package/dist/components/layout/stepper/stepper.class.js +1 -1
- package/dist/components/layout/widget/widget.class.d.ts +1 -1
- package/dist/components/layout/widget/widget.class.js +1 -1
- package/dist/components/media/map/map-control-options.d.ts +12 -2
- package/dist/components/media/map/map-control-options.js +1 -1
- package/dist/components/media/map/map-controls-lifecycle.js +1 -1
- package/dist/components/media/map/map.class.d.ts +47 -8
- package/dist/components/media/map/map.class.js +13 -13
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +2 -2
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +13 -15
- package/dist/components/utility/copy-button/copy-button.class.js +3 -3
- package/dist/components/utility/copy-button/copy-button.styles.js +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +2 -2
- package/dist/components/utility/tour/tour.class.js +1 -1
- package/dist/events.d.ts +6 -1
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/modal-host.styles.js +1 -0
- package/dist/internal/modal-surface-controller.js +1 -1
- package/dist/internal/overlay-stack.d.ts +1 -1
- package/dist/internal/overlay-stack.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/style-property-lease.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/llms/components/lr-app-rail.md +4 -0
- package/llms/components/lr-badge.md +3 -0
- package/llms/components/lr-copy-button.md +15 -7
- package/llms/components/lr-map.md +50 -6
- package/llms/components/lr-multi-split.md +4 -0
- package/llms/components/lr-page.md +5 -1
- package/llms/components/lr-responsive-panel.md +5 -1
- package/llms/components/lr-token-input.md +4 -3
- package/llms/components/lr-tooltip.md +4 -4
- package/llms/peers.md +1 -1
- package/llms/shared/ai-and-peers.md +11 -0
- package/llms/shared/styles-and-tokens.md +75 -14
- package/llms/shared.md +86 -14
- package/package.json +5 -5
- package/skills/compose-lyra-interfaces/references/composition-patterns.md +1 -1
- package/skills/lyra-ui/SKILL.md +3 -2
- package/skills/lyra-ui/lyra-gen.md +26 -1
|
@@ -452,6 +452,12 @@ owned overlay layer; `interactiveBasemapLayers = []` explicitly enrolls basemap
|
|
|
452
452
|
`lr-map-click`, `lr-map-contextmenu`, `lr-map-feature-enter`, and `lr-map-feature-leave` report routed interaction data;
|
|
453
453
|
legacy `lr-map-click` and cluster payloads remain available. `pickMode = false` enables a temporary
|
|
454
454
|
coordinate-picking session when set to true; `lr-map-pick` also supports keyboard center selection.
|
|
455
|
+
`keyboardActivation = false` (attribute `keyboard-activation`) opts in to keyboard activation: while
|
|
456
|
+
the map canvas has focus, an unmodified, non-repeated Enter or Space activates the interactive feature
|
|
457
|
+
at the view center (the camera center, inside any `cameraPadding`) through the same hit query and
|
|
458
|
+
priority as a click there, and emits `lr-map-click` with `trigger: 'keyboard'` (pointer clicks carry no
|
|
459
|
+
`trigger`). An empty center still emits a click without `feature`. It does nothing in pick mode, while
|
|
460
|
+
drawing is armed, or while the map is disabled or inert; unset, both keys are left to the browser.
|
|
455
461
|
`setFeatureState(target, patch)`, `getFeatureState(target)`, and `removeFeatureState(target, key?)`
|
|
456
462
|
use stable source/feature IDs and an optional `origin` (`choropleth`, `data-layer`, `overlay`, or
|
|
457
463
|
`basemap`). Check boolean admission and retain application state across source identity changes;
|
|
@@ -1063,7 +1069,7 @@ intensity?: LyraMapHeatmapZoomValue; opacity?: number }`, where `LyraMapHeatmapZ
|
|
|
1063
1069
|
engine (`maplibre-gl`, or the companion's granular control entries). Requested controls load
|
|
1064
1070
|
on demand; unavailable controls show localized feedback while the map remains usable. Geolocation
|
|
1065
1071
|
starts only on user activation. Attribution is enabled by default; set `attribution: false` to
|
|
1066
|
-
disable it. Attribution options accept `position`, `compact`, and `customAttribution` as a string,
|
|
1072
|
+
disable it. Attribution options accept `position`, `compact`, `initialExpanded`, and `customAttribution` as a string,
|
|
1067
1073
|
`LyraMapAttributionLink { readonly label: string; readonly url: string }`, or a readonly array of
|
|
1068
1074
|
either. Labels are escaped text; links open in a new tab with `rel="noopener noreferrer"`.
|
|
1069
1075
|
Link URLs must be absolute HTTP(S), no longer than 2,048 characters, with no credentials or
|
|
@@ -1071,7 +1077,24 @@ intensity?: LyraMapHeatmapZoomValue; opacity?: number }`, where `LyraMapHeatmapZ
|
|
|
1071
1077
|
limited to 4,096 characters. Admission snapshots own data properties without invoking accessors.
|
|
1072
1078
|
An invalid item rejects the whole custom option and shows localized feedback while retaining
|
|
1073
1079
|
provider credits. Image exports include link labels as text alongside provider credits, without
|
|
1074
|
-
the link URLs or markup.
|
|
1080
|
+
the link URLs or markup. `initialExpanded?: boolean` sets the compact credits disclosure once, when
|
|
1081
|
+
the control is installed and only while the native control is compact; omit it to keep the native
|
|
1082
|
+
initial state. It never hides noncompact credits, and later resizing, dragging or user activation
|
|
1083
|
+
stay native: it is not a controlled state. Changing it replaces the control; position- or
|
|
1084
|
+
order-only changes keep the current user-selected state, and reconnecting applies it again. A
|
|
1085
|
+
malformed value is rejected like other malformed attribution options, with the default credits
|
|
1086
|
+
retained. `lr-map-attribution-toggle` (`LyraMapAttributionToggleDetail { expanded }`) reports each
|
|
1087
|
+
later settled change of the owned (or default) attribution control: synchronous native changes
|
|
1088
|
+
coalesce to their result, repeats are not reported, and installation, seeding, replacement and
|
|
1089
|
+
reconnect emit nothing. Persist `expanded` and pass it as `initialExpanded` for a later
|
|
1090
|
+
installation:
|
|
1091
|
+
|
|
1092
|
+
```js
|
|
1093
|
+
mapElement.controls = { attribution: { compact: true, initialExpanded: saved ?? false } };
|
|
1094
|
+
mapElement.addEventListener('lr-map-attribution-toggle', event => { saved = event.detail.expanded; });
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
For example:
|
|
1075
1098
|
|
|
1076
1099
|
```js
|
|
1077
1100
|
mapElement.controls = {
|
|
@@ -1271,6 +1294,18 @@ camera as it is now and return `undefined` before the map exists, for a non-fini
|
|
|
1271
1294
|
the engine cannot project. Pair `project()` with `lr-map-move` to keep an overlay glued to a moving
|
|
1272
1295
|
map.
|
|
1273
1296
|
|
|
1297
|
+
`getVisibleBounds(options?: LyraMapVisibleBoundsOptions): LyraMapBounds | null` synchronously reads
|
|
1298
|
+
the visible box as frozen `[[west, south], [east, north]]`. By default it is the box inside the
|
|
1299
|
+
applied `cameraPadding`, the one `lr-map-move` and `lr-map-view-change` report; `{ padded: false }`
|
|
1300
|
+
reads the whole viewport. `west` is wrapped into [-180, 180] and `east` keeps the span, so it can
|
|
1301
|
+
exceed 180 across the antimeridian; latitudes are clamped to [-90, 90]. It returns `null` before the
|
|
1302
|
+
engine exists or when the engine cannot report a box. Use it instead of reading bounds from `.map`:
|
|
1303
|
+
|
|
1304
|
+
```js
|
|
1305
|
+
const box = mapElement.getVisibleBounds({ padded: false });
|
|
1306
|
+
if (box) loadTiles({ west: box[0][0], south: box[0][1], east: box[1][0], north: box[1][1] });
|
|
1307
|
+
```
|
|
1308
|
+
|
|
1274
1309
|
There is deliberately no declarative `bounds` property. `center` and `zoom` already describe the
|
|
1275
1310
|
camera; a third camera input would need a precedence rule against them, and a framework that
|
|
1276
1311
|
rebuilds its arrays on every render would refit on every render, pulling the camera away from a user
|
|
@@ -1340,7 +1375,8 @@ Also `lr-map-marker-activate` (non-cancelable; frozen `LyraMapMarkerActivationDe
|
|
|
1340
1375
|
marker, source }`; `id` is the trimmed explicit identity or `undefined`, `marker` is the accepted
|
|
1341
1376
|
declarative snapshot, and `source` is `'pointer' | 'keyboard'`), and `lr-map-click`
|
|
1342
1377
|
(frozen `detail: { readonly lngLat: readonly [lng, lat], readonly feature?, readonly origin?,
|
|
1343
|
-
readonly sourceId?, readonly noData? }
|
|
1378
|
+
readonly sourceId?, readonly noData?, readonly trigger? }`, `trigger` being `'keyboard'` only for a
|
|
1379
|
+
`keyboardActivation`; the tuple and any hit GeoJSON feature are detached and
|
|
1344
1380
|
recursively frozen). `noData` is `true` only for a choropleth hit whose `field` value is missing,
|
|
1345
1381
|
`null` or not a number while `choropleth.noData` is configured, and is absent otherwise.
|
|
1346
1382
|
`feature` resolves against the choropleth fill layer **and** every applied `dataLayers`
|
|
@@ -1396,8 +1432,10 @@ user-activated geolocate control locates the user.
|
|
|
1396
1432
|
Failures: `lr-map-geolocate-error` (frozen `LyraMapGeolocateErrorDetail { code }`, a
|
|
1397
1433
|
`LyraMapGeolocationErrorCode`) and `lr-map-geolocate-out-of-bounds` (`{ code: 'out-of-bounds' }`)
|
|
1398
1434
|
expose no coordinates or native messages; `lr-map-export-error` (frozen
|
|
1399
|
-
`LyraMapImageExportErrorDetail { code }`) reports a sanitized `exportImage()` failure.
|
|
1400
|
-
|
|
1435
|
+
`LyraMapImageExportErrorDetail { code }`) reports a sanitized `exportImage()` failure.
|
|
1436
|
+
Attribution: `lr-map-attribution-toggle` (`LyraMapAttributionToggleDetail { expanded }`) after the owned
|
|
1437
|
+
attribution control's credits are shown or hidden. None of these events is cancelable; all bubble and
|
|
1438
|
+
are composed.
|
|
1401
1439
|
|
|
1402
1440
|
The outer marker-activation detail is frozen, while an opaque marker `unsafeHtml` value remains the
|
|
1403
1441
|
original supplied value at the MapLibre popup and marker-activation boundary. Treat it as trusted
|
|
@@ -1442,7 +1480,13 @@ its rows expose `controls-top` and `controls-bottom`, and each `initialization-c
|
|
|
1442
1480
|
matching corner token. `initialization-control` outlines explicitly requested controls, with
|
|
1443
1481
|
`initialization-navigation`, `initialization-scale`, `initialization-geolocate` or
|
|
1444
1482
|
`initialization-attribution` identifying the kind. Placeholder corners and order follow those options;
|
|
1445
|
-
implicit default attribution has no placeholder.
|
|
1483
|
+
implicit default attribution has no placeholder. Once the map is constructed, the activation surface
|
|
1484
|
+
and skeleton are gone, but `initialization-controls` stays (`aria-hidden`, inert, no pointer events)
|
|
1485
|
+
with outlines only for requested controls whose lazy code is still installing. Those controls load and
|
|
1486
|
+
install in one pass, so their outlines are removed together when the pass settles, whether every
|
|
1487
|
+
control installed or one failed; a later `controls` change replaces them and disconnecting clears them.
|
|
1488
|
+
Already installed controls gain no outline. Outlines paint with the same glass or solid surface material
|
|
1489
|
+
as the installed controls, so the swap does not change their fill. For `initialization="interaction"`,
|
|
1446
1490
|
`initialization-activate` starts the map and `initialization-activate-label` styles its visible label.
|
|
1447
1491
|
Hiding that label retains the button's localized accessible name. Pick mode renders `pick-controls` with
|
|
1448
1492
|
`pick-center` and `pick-cancel`; draw mode renders `drawing-controls` with `drawing-add`,
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-multi-split`
|
|
18
18
|
|
|
19
|
+
The floating drawer enters the browser top layer within the split's allocation. An intrinsically
|
|
20
|
+
sized split reserves its opening block-size footprint until the drawer closes; definite parent
|
|
21
|
+
sizes, scrolling, and resizing remain live.
|
|
22
|
+
|
|
19
23
|
The floating pane remains interactive when opened outside an existing native `dialog.showModal()`. An internal native modal surface preserves the authored host and content; Escape, close vetoes, and focus return keep their usual behavior. Ordinary inline rendering is unchanged.
|
|
20
24
|
|
|
21
25
|
Resizable panels for dashboard layouts. Direct **light-DOM children are the panels**; a divider is
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-page`
|
|
18
18
|
|
|
19
|
-
The mobile navigation drawer
|
|
19
|
+
The mobile navigation drawer enters the browser top layer, escaping fixed headers and transformed
|
|
20
|
+
or clipped ancestors while keeping its host and navigation content in place. It also remains
|
|
21
|
+
interactive when opened outside an existing native `dialog.showModal()`, using an internal native
|
|
22
|
+
modal surface. Escape, close vetoes, and focus return keep their usual behavior; desktop navigation
|
|
23
|
+
remains in the page grid.
|
|
20
24
|
|
|
21
25
|
Semantic application/page shell with page-wide banner/header/subheader/footer regions, a compact
|
|
22
26
|
menu, primary navigation, main header/content/footer, and an aside. It derives mobile versus
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-responsive-panel`
|
|
18
18
|
|
|
19
|
-
The overlay
|
|
19
|
+
The overlay surface enters the browser top layer, so sticky headers, clipped ancestors, and
|
|
20
|
+
stacking contexts cannot cover it. The host stays in its authored slot, and ordinary inline/overlay
|
|
21
|
+
transitions retain the same body and slotted content. When opened outside an existing native
|
|
22
|
+
`dialog.showModal()`, an internal native modal surface preserves interactivity. Escape, close
|
|
23
|
+
vetoes, and focus return keep their usual behavior.
|
|
20
24
|
|
|
21
25
|
The same slotted content either docked inline in its containing layout or presented as a
|
|
22
26
|
full-screen/bottom-sheet/side-anchored overlay, depending on the panel's allocated inline size.
|
|
@@ -51,7 +51,8 @@ token editor. The former camel-case `autoCorrect` property is removed; use the n
|
|
|
51
51
|
lowercase IDL. `size: '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' = 'm'` (reflected —
|
|
52
52
|
same scale as `lr-input`'s `size`, scaling the input-wrapper's row height and text size across six
|
|
53
53
|
tiers, and both `2xs`/`xs`/`s`/`m`/`l`/`xl` and `small`/`medium`/`large` are accepted; the remove
|
|
54
|
-
button
|
|
54
|
+
button retains the shared `--lr-icon-button-size` minimum hit area across all sizes), `pill`
|
|
55
|
+
(reflected, default `false` —
|
|
55
56
|
rounds the token row's corners by changing the private radius default to `--lr-radius-pill`; the
|
|
56
57
|
chips share the public `--lr-token-input-radius` hook with the row, and an inherited or direct
|
|
57
58
|
value remains authoritative),
|
|
@@ -167,8 +168,8 @@ text the part is hidden and no glyph is painted.
|
|
|
167
168
|
`--lr-token-input-control-min-height` floor only; set it to a length to both floor and cap the row,
|
|
168
169
|
e.g. to pixel-match a sibling field in the same toolbar row). An uncapped row grows as tokens wrap.
|
|
169
170
|
A capped row explicitly clips inline overflow and becomes a block-axis scrollport, preserving every
|
|
170
|
-
wrapped token and
|
|
171
|
-
the destination token into view. `--lr-token-input-input-inline-size`
|
|
171
|
+
wrapped token and remove/edit action with its shared `--lr-icon-button-size` floor instead of
|
|
172
|
+
clipping them; keyboard focus scrolls the destination token into view. `--lr-token-input-input-inline-size`
|
|
172
173
|
(the editable input's `flex-basis` inside the wrapped token row; undeclared by default, falling back
|
|
173
174
|
inline to `--lr-size-8rem`), `--lr-token-input-min-input-inline-size` (default `--lr-size-4rem`, the
|
|
174
175
|
floor that input keeps once tokens have consumed the row), and `--lr-token-input-editor-inline-size`
|
|
@@ -44,8 +44,8 @@ later text renders normally.
|
|
|
44
44
|
leaves the tooltip entirely under programmatic control. Note the name collision: this string
|
|
45
45
|
property and the `trigger` _slot_ are different things — the slot holds the element, this property
|
|
46
46
|
says which of its interactions count.
|
|
47
|
-
- `manual: boolean = false` — equivalent to including `manual`
|
|
48
|
-
|
|
47
|
+
- `manual: boolean = false` (attribute `manual`, not reflected) — equivalent to including `manual`
|
|
48
|
+
in `trigger`; use `<lr-tooltip manual>` for a tooltip driven only from script
|
|
49
49
|
- `showDelay: number = 150` (attribute `show-delay`) and `hideDelay: number = 0` (attribute
|
|
50
50
|
`hide-delay`) — independent milliseconds values, so a tooltip can linger after the pointer leaves without also
|
|
51
51
|
being slow to appear; `hideDelay` `0` closes the tooltip at once. A non-finite value falls back to the default; a negative one clamps to
|
|
@@ -208,7 +208,7 @@ or cross-document adoption cancels the old realm, and reconnect creates fresh ob
|
|
|
208
208
|
`lr-popover` when click-to-open ownership is desired.
|
|
209
209
|
|
|
210
210
|
**`showAt()` composed with `lr-graph`** — anchoring a popover to a clicked graph node. Note:
|
|
211
|
-
`lr-graph.getNodePosition()` and the `lr-node-
|
|
211
|
+
`lr-graph.getNodePosition()` and the `lr-node-activate` event's `{ x, y }` are in the graph's own
|
|
212
212
|
_local drawing space_ (pre pan/zoom), not viewport pixels, so they can't be passed to `showAt()`
|
|
213
213
|
directly. For `renderer="svg"` (the default), read the clicked node's own rendered element instead,
|
|
214
214
|
whose `getBoundingClientRect()` is already viewport-relative; for `renderer="canvas"` (no per-node
|
|
@@ -225,7 +225,7 @@ graph.addEventListener("click", (event) => {
|
|
|
225
225
|
if (!nodeEl) return; // clicked empty canvas/background, not a node
|
|
226
226
|
const rect = nodeEl.getBoundingClientRect();
|
|
227
227
|
detail.showAt({
|
|
228
|
-
x: rect.left
|
|
228
|
+
x: rect.left,
|
|
229
229
|
y: rect.top,
|
|
230
230
|
width: rect.width,
|
|
231
231
|
height: rect.height,
|
package/llms/peers.md
CHANGED
|
@@ -40,7 +40,7 @@ for the page.
|
|
|
40
40
|
| `@aceshooting/lyra-3d` | `^1.0.0` | `lr-chart-3d`, `lr-embedding-explorer`, `lr-graph`, `lr-image-viewer`, `lr-knowledge-graph-explorer`, `lr-model-viewer`, `lr-video` |
|
|
41
41
|
| `@aceshooting/lyra-flags` | `^2.3.1` | _(loaded by a shared internal module)_ |
|
|
42
42
|
| `@aceshooting/lyra-map` | `^1.3.0` | `lr-geojson-viewer`, `lr-map` |
|
|
43
|
-
| `@aceshooting/lyra-translations` | `^30.
|
|
43
|
+
| `@aceshooting/lyra-translations` | `^30.5.0` | _(not referenced by any component)_ |
|
|
44
44
|
| `@aiden0z/pptx-renderer` | `^1.4.0` | `lr-pptx-viewer` |
|
|
45
45
|
| `@sgratzl/chartjs-chart-boxplot` | `^4.0.0` | `lr-box-plot` |
|
|
46
46
|
| `chart.js` | `^4.0.1` | `lr-bar-chart`, `lr-box-plot`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
|
|
@@ -185,6 +185,17 @@ state = reduceAgentStream(state, {
|
|
|
185
185
|
- **Build voice sessions:** `lr-realtime-session`; it composes the existing audio visualizer,
|
|
186
186
|
push-to-talk control, and transcript feed while leaving transport ownership with the host.
|
|
187
187
|
|
|
188
|
+
For catalog-bound generated views, use the independently versioned `@aceshooting/lyra-gen`
|
|
189
|
+
companion; its format differs from widget-v2. Read its
|
|
190
|
+
[integration guide](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/README.md)
|
|
191
|
+
and installed explicit `exports` map before importing runtime modules. The
|
|
192
|
+
[compatibility guide](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/docs/compatibility.md)
|
|
193
|
+
defines its 1.x contract and qualification limits; only the A2UI candidate entry is separately
|
|
194
|
+
experimental. Its
|
|
195
|
+
[guided demo](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/docs/guided-demo.md)
|
|
196
|
+
is shipped application source with simulated data and scripted en/fr/ar replies, not an exported
|
|
197
|
+
runtime entry or a model service. Core locale catalogs do not translate that example-owned copy.
|
|
198
|
+
|
|
188
199
|
Family registration entry points are additive: importing
|
|
189
200
|
`@aceshooting/lyra-ui/components/conversation`, `/agent-tools`, or `/retrieval` registers and
|
|
190
201
|
exports that complete family. Granular component entry points remain the smallest bundles and are
|
|
@@ -323,8 +323,9 @@ needs to sit inside a Lyra UI without looking foreign, and the file's header lis
|
|
|
323
323
|
| Typography | `--lr-font`, `--lr-font-mono`, the ten `--lr-font-size-*` steps, the four `--lr-font-weight-*` steps |
|
|
324
324
|
| State and motion | `--lr-focus-ring`, `--lr-focus-ring-color`, `--lr-focus-ring-width`, `--lr-focus-ring-offset`, `--lr-opacity-disabled`, `--lr-opacity-muted`, `--lr-duration-fast`, `--lr-duration-base`, `--lr-easing-standard`, `--lr-easing-emphasized`, `--lr-transition-fast`, `--lr-transition-base`, `--lr-transition-interactive` |
|
|
325
325
|
|
|
326
|
-
The grid is stable as a whole because its contrast
|
|
327
|
-
|
|
326
|
+
The grid is stable as a whole because its [contrast contract](#semantic-colour-contrast-contract)
|
|
327
|
+
covers matching `on`/`fill` tiers **and** the loud-fill accent text used on quiet fills and page
|
|
328
|
+
surfaces. Custom palettes must preserve both kinds of pairing.
|
|
328
329
|
|
|
329
330
|
**Visible but internal** (read them at your own risk; they may change in any release): `--lr-size-*`,
|
|
330
331
|
`--lr-layer-*`, `--lr-color-mix-*`, `--lr-hover-brightness`, `--lr-line-height-*`,
|
|
@@ -460,19 +461,32 @@ the semantic grid instead; it picks the right value per mode and supports theme
|
|
|
460
461
|
layer to build on. Its _shape_ is identical in light and dark; the generator resolves different
|
|
461
462
|
ramp steps into each mode's literal fallback, so a rule written against it is mode-independent.
|
|
462
463
|
|
|
463
|
-
- `fill` — a background
|
|
464
|
-
outline.
|
|
464
|
+
- `fill` — a background; `fill-loud` also supplies accent text and icons. `on` — text and icons
|
|
465
|
+
that sit **on** the matching `fill`. `border` — an outline.
|
|
465
466
|
- `emphasis` runs `quiet → normal → loud`. Louder means more prominent, not lighter or darker: in
|
|
466
467
|
light mode it descends the ramp and in dark mode it climbs it.
|
|
467
468
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
469
|
+
#### Semantic colour contrast contract
|
|
470
|
+
|
|
471
|
+
The built-in palettes and looks meet these minimum ratios
|
|
472
|
+
for every variant in both modes:
|
|
473
|
+
|
|
474
|
+
| Foreground or boundary | Background | Minimum contrast |
|
|
475
|
+
| --- | --- | --- |
|
|
476
|
+
| `on-quiet`, `on-normal`, `on-loud` | The matching `fill-quiet`, `fill-normal`, `fill-loud` | 4.5:1 |
|
|
477
|
+
| `fill-loud`, when used as accent text | The same variant's `fill-quiet` | 4.5:1 |
|
|
478
|
+
| `fill-loud`, when used as accent text | Page and raised surfaces | 4.5:1 |
|
|
479
|
+
| `border-normal`, `border-loud` | Page surface | 3:1 |
|
|
480
|
+
|
|
481
|
+
For example, a non-neutral `lr-badge` with `appearance="filled-outlined"` or `"filled"` uses
|
|
482
|
+
`fill-loud` text on `fill-quiet`; its `"outlined"` and `"plain"` appearances use that text on the
|
|
483
|
+
surrounding surface. A current `lr-app-rail-item` uses brand loud-fill text on the brand quiet
|
|
484
|
+
fill. The flat `--lr-color-brand` alias is the loud fill, so it inherits these accent-text
|
|
485
|
+
requirements. A matching `on-loud`/`fill-loud` pair alone does not qualify a custom palette.
|
|
486
|
+
|
|
487
|
+
`border-quiet` is deliberately exempt: it exists for decoration that is not load-bearing — a rule
|
|
488
|
+
between table rows, a hairline inside an already-bounded card — so never use it as a control's only
|
|
489
|
+
boundary. Other cross-tier pairings require their own contrast check.
|
|
476
490
|
|
|
477
491
|
**Every slot has its own `--lr-theme-*` override**, named after the slot, so one decision can be
|
|
478
492
|
rethemed without forking anything beneath it:
|
|
@@ -487,7 +501,44 @@ rethemed without forking anything beneath it:
|
|
|
487
501
|
|
|
488
502
|
The full runtime chain for one colour is your `--lr-theme-*` input, else the grid slot's generated
|
|
489
503
|
fallback. To move a whole tone, set its nine `--lr-theme-color-<variant>-*` inputs; the ramp remains
|
|
490
|
-
a design-tool input rather than a consumer override point.
|
|
504
|
+
a design-tool input rather than a consumer override point. Static CSS inputs are applied as
|
|
505
|
+
authored: Lyra does not repair their contrast. Qualify every affected pairing above in light and
|
|
506
|
+
dark mode, including inherited slots when overriding only part of a row. Also check the actual
|
|
507
|
+
surrounding surface and rendered hover/press states, especially with component foreground or
|
|
508
|
+
background overrides and translucent surfaces.
|
|
509
|
+
|
|
510
|
+
For a complete static brand row, this example meets the contract on the **Lyra look with a solid
|
|
511
|
+
surface**: its page/raised colours are `#ffffff`/`#f6f8fa` in light mode and
|
|
512
|
+
`#1a1a1a`/`#22272e` in dark mode. Put the inputs on an explicit scope such as
|
|
513
|
+
`<section class="app-brand" data-lr-look="lyra" data-lr-surface="solid" data-lr-accent="custom" data-lr-theme="light" data-lr-theme-scope>`;
|
|
514
|
+
change `data-lr-theme` to `dark` to select the second row. Import `theme.css` as usual.
|
|
515
|
+
|
|
516
|
+
```css
|
|
517
|
+
.app-brand[data-lr-theme='light'] {
|
|
518
|
+
--lr-theme-color-brand-fill-quiet: #eef2ff;
|
|
519
|
+
--lr-theme-color-brand-fill-normal: #c7d2fe;
|
|
520
|
+
--lr-theme-color-brand-fill-loud: #4338ca;
|
|
521
|
+
--lr-theme-color-brand-on-quiet: #312e81;
|
|
522
|
+
--lr-theme-color-brand-on-normal: #312e81;
|
|
523
|
+
--lr-theme-color-brand-on-loud: #ffffff;
|
|
524
|
+
--lr-theme-color-brand-border-quiet: #c7d2fe;
|
|
525
|
+
--lr-theme-color-brand-border-normal: #6366f1;
|
|
526
|
+
--lr-theme-color-brand-border-loud: #4338ca;
|
|
527
|
+
}
|
|
528
|
+
.app-brand[data-lr-theme='dark'] {
|
|
529
|
+
--lr-theme-color-brand-fill-quiet: #1e1b4b;
|
|
530
|
+
--lr-theme-color-brand-fill-normal: #3730a3;
|
|
531
|
+
--lr-theme-color-brand-fill-loud: #a5b4fc;
|
|
532
|
+
--lr-theme-color-brand-on-quiet: #e0e7ff;
|
|
533
|
+
--lr-theme-color-brand-on-normal: #ffffff;
|
|
534
|
+
--lr-theme-color-brand-on-loud: #1e1b4b;
|
|
535
|
+
--lr-theme-color-brand-border-quiet: #3730a3;
|
|
536
|
+
--lr-theme-color-brand-border-normal: #818cf8;
|
|
537
|
+
--lr-theme-color-brand-border-loud: #a5b4fc;
|
|
538
|
+
}
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
Recheck these values when changing the look, surfaces, interaction fills or component overrides.
|
|
491
542
|
|
|
492
543
|
The flat names are aliases into the grid, kept because they read well at the call site:
|
|
493
544
|
|
|
@@ -914,7 +965,17 @@ accentBackground is an absolute CSS color used as the accent ramps' reference su
|
|
|
914
965
|
|
|
915
966
|
A LyraLook is a named token definition. Define an application look with defineLyraLook({ id, tokens }), then pass it as the look choice. A look supplies --lr-theme-* inputs; overrides applies an independent map of those inputs to the document root. Both accept CSS strings or per-mode { light, dark } values. Overrides replace the previous map wholesale; compose them with object spread. Values are validated, trimmed, and deep-frozen. Invalid entries are ignored, and maps are limited to 512 entries.
|
|
916
967
|
|
|
917
|
-
The token grammar rejects CSS-wide keywords, control characters, unsafe punctuation, unbalanced
|
|
968
|
+
The token grammar rejects CSS-wide keywords, control characters, unsafe punctuation, unbalanced
|
|
969
|
+
functions or quotes, and functions outside the documented color and layout set. For resolvable
|
|
970
|
+
colors and references, runtime token maps floor body/quiet text against page and raised surfaces;
|
|
971
|
+
synthesize or correct semantic on-colors when the corresponding fill is supplied; and qualify
|
|
972
|
+
strong-overlay text, boundaries, focus, chart series and terminal colors. This does not repair the
|
|
973
|
+
loud-fill accent-text cross-pairings in the [semantic contrast contract](#semantic-colour-contrast-contract):
|
|
974
|
+
explicit look/override maps and static CSS must supply compatible values. Runtime `accent`
|
|
975
|
+
derivation qualifies those cross-pairings when it generates the ramp; CSS or component overrides
|
|
976
|
+
of the resulting foreground/background still need checking. The snapshot and stored record retain
|
|
977
|
+
the normalized requested values. Inline style ownership records only properties Lyra wrote and
|
|
978
|
+
restores an earlier author value when a choice is cleared.
|
|
918
979
|
|
|
919
980
|
**Saved styles and the no-flash bootstrap.** getLyraStyle() re-reads storage on each call, so a value written by another tab is visible. If storage is unavailable, the runtime reports its last applied style and continues applying changes without persistence. lyraThemeBootstrap is a self-contained IIFE string for a script in head before stylesheets; it restores the saved style before first paint. createLyraThemeBootstrap({ storageKey }) produces the same string for an application-owned key. Both runtime and bootstrap safely read v1 records using mode: "auto", surface, and tokens, translating them to the current style axes. Keep this reader when migrating old saved preferences; new writes use the current style record.
|
|
920
981
|
|
package/llms/shared.md
CHANGED
|
@@ -1267,8 +1267,9 @@ needs to sit inside a Lyra UI without looking foreign, and the file's header lis
|
|
|
1267
1267
|
| Typography | `--lr-font`, `--lr-font-mono`, the ten `--lr-font-size-*` steps, the four `--lr-font-weight-*` steps |
|
|
1268
1268
|
| State and motion | `--lr-focus-ring`, `--lr-focus-ring-color`, `--lr-focus-ring-width`, `--lr-focus-ring-offset`, `--lr-opacity-disabled`, `--lr-opacity-muted`, `--lr-duration-fast`, `--lr-duration-base`, `--lr-easing-standard`, `--lr-easing-emphasized`, `--lr-transition-fast`, `--lr-transition-base`, `--lr-transition-interactive` |
|
|
1269
1269
|
|
|
1270
|
-
The grid is stable as a whole because its contrast
|
|
1271
|
-
|
|
1270
|
+
The grid is stable as a whole because its [contrast contract](#semantic-colour-contrast-contract)
|
|
1271
|
+
covers matching `on`/`fill` tiers **and** the loud-fill accent text used on quiet fills and page
|
|
1272
|
+
surfaces. Custom palettes must preserve both kinds of pairing.
|
|
1272
1273
|
|
|
1273
1274
|
**Visible but internal** (read them at your own risk; they may change in any release): `--lr-size-*`,
|
|
1274
1275
|
`--lr-layer-*`, `--lr-color-mix-*`, `--lr-hover-brightness`, `--lr-line-height-*`,
|
|
@@ -1404,19 +1405,32 @@ the semantic grid instead; it picks the right value per mode and supports theme
|
|
|
1404
1405
|
layer to build on. Its _shape_ is identical in light and dark; the generator resolves different
|
|
1405
1406
|
ramp steps into each mode's literal fallback, so a rule written against it is mode-independent.
|
|
1406
1407
|
|
|
1407
|
-
- `fill` — a background
|
|
1408
|
-
outline.
|
|
1408
|
+
- `fill` — a background; `fill-loud` also supplies accent text and icons. `on` — text and icons
|
|
1409
|
+
that sit **on** the matching `fill`. `border` — an outline.
|
|
1409
1410
|
- `emphasis` runs `quiet → normal → loud`. Louder means more prominent, not lighter or darker: in
|
|
1410
1411
|
light mode it descends the ramp and in dark mode it climbs it.
|
|
1411
1412
|
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1413
|
+
#### Semantic colour contrast contract
|
|
1414
|
+
|
|
1415
|
+
The built-in palettes and looks meet these minimum ratios
|
|
1416
|
+
for every variant in both modes:
|
|
1417
|
+
|
|
1418
|
+
| Foreground or boundary | Background | Minimum contrast |
|
|
1419
|
+
| --- | --- | --- |
|
|
1420
|
+
| `on-quiet`, `on-normal`, `on-loud` | The matching `fill-quiet`, `fill-normal`, `fill-loud` | 4.5:1 |
|
|
1421
|
+
| `fill-loud`, when used as accent text | The same variant's `fill-quiet` | 4.5:1 |
|
|
1422
|
+
| `fill-loud`, when used as accent text | Page and raised surfaces | 4.5:1 |
|
|
1423
|
+
| `border-normal`, `border-loud` | Page surface | 3:1 |
|
|
1424
|
+
|
|
1425
|
+
For example, a non-neutral `lr-badge` with `appearance="filled-outlined"` or `"filled"` uses
|
|
1426
|
+
`fill-loud` text on `fill-quiet`; its `"outlined"` and `"plain"` appearances use that text on the
|
|
1427
|
+
surrounding surface. A current `lr-app-rail-item` uses brand loud-fill text on the brand quiet
|
|
1428
|
+
fill. The flat `--lr-color-brand` alias is the loud fill, so it inherits these accent-text
|
|
1429
|
+
requirements. A matching `on-loud`/`fill-loud` pair alone does not qualify a custom palette.
|
|
1430
|
+
|
|
1431
|
+
`border-quiet` is deliberately exempt: it exists for decoration that is not load-bearing — a rule
|
|
1432
|
+
between table rows, a hairline inside an already-bounded card — so never use it as a control's only
|
|
1433
|
+
boundary. Other cross-tier pairings require their own contrast check.
|
|
1420
1434
|
|
|
1421
1435
|
**Every slot has its own `--lr-theme-*` override**, named after the slot, so one decision can be
|
|
1422
1436
|
rethemed without forking anything beneath it:
|
|
@@ -1431,7 +1445,44 @@ rethemed without forking anything beneath it:
|
|
|
1431
1445
|
|
|
1432
1446
|
The full runtime chain for one colour is your `--lr-theme-*` input, else the grid slot's generated
|
|
1433
1447
|
fallback. To move a whole tone, set its nine `--lr-theme-color-<variant>-*` inputs; the ramp remains
|
|
1434
|
-
a design-tool input rather than a consumer override point.
|
|
1448
|
+
a design-tool input rather than a consumer override point. Static CSS inputs are applied as
|
|
1449
|
+
authored: Lyra does not repair their contrast. Qualify every affected pairing above in light and
|
|
1450
|
+
dark mode, including inherited slots when overriding only part of a row. Also check the actual
|
|
1451
|
+
surrounding surface and rendered hover/press states, especially with component foreground or
|
|
1452
|
+
background overrides and translucent surfaces.
|
|
1453
|
+
|
|
1454
|
+
For a complete static brand row, this example meets the contract on the **Lyra look with a solid
|
|
1455
|
+
surface**: its page/raised colours are `#ffffff`/`#f6f8fa` in light mode and
|
|
1456
|
+
`#1a1a1a`/`#22272e` in dark mode. Put the inputs on an explicit scope such as
|
|
1457
|
+
`<section class="app-brand" data-lr-look="lyra" data-lr-surface="solid" data-lr-accent="custom" data-lr-theme="light" data-lr-theme-scope>`;
|
|
1458
|
+
change `data-lr-theme` to `dark` to select the second row. Import `theme.css` as usual.
|
|
1459
|
+
|
|
1460
|
+
```css
|
|
1461
|
+
.app-brand[data-lr-theme='light'] {
|
|
1462
|
+
--lr-theme-color-brand-fill-quiet: #eef2ff;
|
|
1463
|
+
--lr-theme-color-brand-fill-normal: #c7d2fe;
|
|
1464
|
+
--lr-theme-color-brand-fill-loud: #4338ca;
|
|
1465
|
+
--lr-theme-color-brand-on-quiet: #312e81;
|
|
1466
|
+
--lr-theme-color-brand-on-normal: #312e81;
|
|
1467
|
+
--lr-theme-color-brand-on-loud: #ffffff;
|
|
1468
|
+
--lr-theme-color-brand-border-quiet: #c7d2fe;
|
|
1469
|
+
--lr-theme-color-brand-border-normal: #6366f1;
|
|
1470
|
+
--lr-theme-color-brand-border-loud: #4338ca;
|
|
1471
|
+
}
|
|
1472
|
+
.app-brand[data-lr-theme='dark'] {
|
|
1473
|
+
--lr-theme-color-brand-fill-quiet: #1e1b4b;
|
|
1474
|
+
--lr-theme-color-brand-fill-normal: #3730a3;
|
|
1475
|
+
--lr-theme-color-brand-fill-loud: #a5b4fc;
|
|
1476
|
+
--lr-theme-color-brand-on-quiet: #e0e7ff;
|
|
1477
|
+
--lr-theme-color-brand-on-normal: #ffffff;
|
|
1478
|
+
--lr-theme-color-brand-on-loud: #1e1b4b;
|
|
1479
|
+
--lr-theme-color-brand-border-quiet: #3730a3;
|
|
1480
|
+
--lr-theme-color-brand-border-normal: #818cf8;
|
|
1481
|
+
--lr-theme-color-brand-border-loud: #a5b4fc;
|
|
1482
|
+
}
|
|
1483
|
+
```
|
|
1484
|
+
|
|
1485
|
+
Recheck these values when changing the look, surfaces, interaction fills or component overrides.
|
|
1435
1486
|
|
|
1436
1487
|
The flat names are aliases into the grid, kept because they read well at the call site:
|
|
1437
1488
|
|
|
@@ -1858,7 +1909,17 @@ accentBackground is an absolute CSS color used as the accent ramps' reference su
|
|
|
1858
1909
|
|
|
1859
1910
|
A LyraLook is a named token definition. Define an application look with defineLyraLook({ id, tokens }), then pass it as the look choice. A look supplies --lr-theme-* inputs; overrides applies an independent map of those inputs to the document root. Both accept CSS strings or per-mode { light, dark } values. Overrides replace the previous map wholesale; compose them with object spread. Values are validated, trimmed, and deep-frozen. Invalid entries are ignored, and maps are limited to 512 entries.
|
|
1860
1911
|
|
|
1861
|
-
The token grammar rejects CSS-wide keywords, control characters, unsafe punctuation, unbalanced
|
|
1912
|
+
The token grammar rejects CSS-wide keywords, control characters, unsafe punctuation, unbalanced
|
|
1913
|
+
functions or quotes, and functions outside the documented color and layout set. For resolvable
|
|
1914
|
+
colors and references, runtime token maps floor body/quiet text against page and raised surfaces;
|
|
1915
|
+
synthesize or correct semantic on-colors when the corresponding fill is supplied; and qualify
|
|
1916
|
+
strong-overlay text, boundaries, focus, chart series and terminal colors. This does not repair the
|
|
1917
|
+
loud-fill accent-text cross-pairings in the [semantic contrast contract](#semantic-colour-contrast-contract):
|
|
1918
|
+
explicit look/override maps and static CSS must supply compatible values. Runtime `accent`
|
|
1919
|
+
derivation qualifies those cross-pairings when it generates the ramp; CSS or component overrides
|
|
1920
|
+
of the resulting foreground/background still need checking. The snapshot and stored record retain
|
|
1921
|
+
the normalized requested values. Inline style ownership records only properties Lyra wrote and
|
|
1922
|
+
restores an earlier author value when a choice is cleared.
|
|
1862
1923
|
|
|
1863
1924
|
**Saved styles and the no-flash bootstrap.** getLyraStyle() re-reads storage on each call, so a value written by another tab is visible. If storage is unavailable, the runtime reports its last applied style and continues applying changes without persistence. lyraThemeBootstrap is a self-contained IIFE string for a script in head before stylesheets; it restores the saved style before first paint. createLyraThemeBootstrap({ storageKey }) produces the same string for an application-owned key. Both runtime and bootstrap safely read v1 records using mode: "auto", surface, and tokens, translating them to the current style axes. Keep this reader when migrating old saved preferences; new writes use the current style record.
|
|
1864
1925
|
|
|
@@ -2927,6 +2988,17 @@ state = reduceAgentStream(state, {
|
|
|
2927
2988
|
- **Build voice sessions:** `lr-realtime-session`; it composes the existing audio visualizer,
|
|
2928
2989
|
push-to-talk control, and transcript feed while leaving transport ownership with the host.
|
|
2929
2990
|
|
|
2991
|
+
For catalog-bound generated views, use the independently versioned `@aceshooting/lyra-gen`
|
|
2992
|
+
companion; its format differs from widget-v2. Read its
|
|
2993
|
+
[integration guide](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/README.md)
|
|
2994
|
+
and installed explicit `exports` map before importing runtime modules. The
|
|
2995
|
+
[compatibility guide](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/docs/compatibility.md)
|
|
2996
|
+
defines its 1.x contract and qualification limits; only the A2UI candidate entry is separately
|
|
2997
|
+
experimental. Its
|
|
2998
|
+
[guided demo](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-gen/docs/guided-demo.md)
|
|
2999
|
+
is shipped application source with simulated data and scripted en/fr/ar replies, not an exported
|
|
3000
|
+
runtime entry or a model service. Core locale catalogs do not translate that example-owned copy.
|
|
3001
|
+
|
|
2930
3002
|
Family registration entry points are additive: importing
|
|
2931
3003
|
`@aceshooting/lyra-ui/components/conversation`, `/agent-tools`, or `/retrieval` registers and
|
|
2932
3004
|
exports that complete family. Granular component entry points remain the smallest bundles and are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aceshooting/lyra-ui",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.5.0",
|
|
4
4
|
"description": "Free, independent Lit web components: an open-source alternative to Shoelace and Web Awesome with accessible forms, dashboards, charts, and agent UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -2631,7 +2631,7 @@
|
|
|
2631
2631
|
"@aceshooting/lyra-3d": "^1.0.0",
|
|
2632
2632
|
"@aceshooting/lyra-flags": "^2.3.1",
|
|
2633
2633
|
"@aceshooting/lyra-map": "^1.3.0",
|
|
2634
|
-
"@aceshooting/lyra-translations": "^30.
|
|
2634
|
+
"@aceshooting/lyra-translations": "^30.5.0",
|
|
2635
2635
|
"@aiden0z/pptx-renderer": "^1.4.0",
|
|
2636
2636
|
"@sgratzl/chartjs-chart-boxplot": "^4.0.0",
|
|
2637
2637
|
"chart.js": "^4.0.1",
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
"@lit-labs/ssr": "^4.1.0",
|
|
2770
2770
|
"@modelcontextprotocol/client": "2.4.0",
|
|
2771
2771
|
"@modelcontextprotocol/core": "2.4.0",
|
|
2772
|
-
"@modelcontextprotocol/ext-apps": "2.0.
|
|
2772
|
+
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
2773
2773
|
"@open-wc/testing": "^5.0.0",
|
|
2774
2774
|
"@sgratzl/chartjs-chart-boxplot": "^4.4.5",
|
|
2775
2775
|
"@types/d3-drag": "^3.0.7",
|
|
@@ -2811,7 +2811,7 @@
|
|
|
2811
2811
|
"mammoth": "^1.13.0",
|
|
2812
2812
|
"maplibre-gl": "^6.16.0",
|
|
2813
2813
|
"marked": "^18.1.2",
|
|
2814
|
-
"oxc-parser": "^0.
|
|
2814
|
+
"oxc-parser": "^0.156.0",
|
|
2815
2815
|
"papaparse": "^5.7.0",
|
|
2816
2816
|
"pdfjs-dist": "^6.4.299",
|
|
2817
2817
|
"pixelmatch": "^8.0.0",
|
|
@@ -2821,7 +2821,7 @@
|
|
|
2821
2821
|
"qrcode": "^1.5.4",
|
|
2822
2822
|
"react": "^19.3.1",
|
|
2823
2823
|
"shiki": "^4.5.0",
|
|
2824
|
-
"svelte": "^5.57.
|
|
2824
|
+
"svelte": "^5.57.3",
|
|
2825
2825
|
"typescript": "^7.0.2",
|
|
2826
2826
|
"vue": "^3.5.44",
|
|
2827
2827
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
@@ -14,7 +14,7 @@ contract in the `lyra-ui` skill or the package reference before emitting markup.
|
|
|
14
14
|
| Data display | Native text/list for small static content | Table, data grid, tree, virtual list, chart, or viewer when their interaction contract is required |
|
|
15
15
|
| Feedback | Inline text near the action | Alert, progress, skeleton, spinner, empty state, toast, or live announcement based on urgency and persistence |
|
|
16
16
|
| Transient UI | Inline disclosure when space permits | Popover, dropdown, drawer, or dialog when focus/dismissal/stacking behavior is genuinely needed |
|
|
17
|
-
| Generated answers | Existing widget-v2 renderer for widget-v2 documents |
|
|
17
|
+
| Generated answers | Existing widget-v2 renderer for widget-v2 documents | `lyra-gen` for catalog-bound views; follow the sibling skill's `lyra-gen.md` and installed `docs/compatibility.md` for the supported profile and limits |
|
|
18
18
|
|
|
19
19
|
Do not nest a component merely to obtain padding or a border. Use layout utilities and semantic
|
|
20
20
|
containers for visual grouping; reserve interactive components for interactions they own.
|
package/skills/lyra-ui/SKILL.md
CHANGED
|
@@ -95,10 +95,11 @@ independently; choose releases compatible with the installed packages and their
|
|
|
95
95
|
- **`@aceshooting/lyra-docs`**: experimental `<lr-docx-editor>`; read its installed README for the
|
|
96
96
|
bundled engine, registration, stylesheet imports, async editing commands, save receipts and limits. Core document viewers
|
|
97
97
|
stay in `node_modules/@aceshooting/lyra-ui/llms/components/`.
|
|
98
|
-
- **`@aceshooting/lyra-gen`**: independently versioned
|
|
98
|
+
- **`@aceshooting/lyra-gen`**: independently versioned generated views, interactive chat and saved/live
|
|
99
99
|
dashboards. Read [lyra-gen.md](lyra-gen.md) for boundary, validation, authority and locale ownership,
|
|
100
100
|
then the installed companion guide for the task. Its view format differs from widget-v2;
|
|
101
|
-
|
|
101
|
+
its explicit compatibility profile owns qualification limits and the experimental A2UI candidate
|
|
102
|
+
entry. A roadmap or adapter does not establish released support or protocol conformance.
|
|
102
103
|
- **`@aceshooting/lyra-map`** (optional peer): the default modular renderer for `<lr-map>`. Configure
|
|
103
104
|
`lyraMapWorkerPlugin()` from `@aceshooting/lyra-map/vite`, or supply a compatible worker URL.
|
|
104
105
|
Read `node_modules/@aceshooting/lyra-ui/llms/components/lr-map.md` and the companion README before imperative map mutations:
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Lyra Gen companion
|
|
2
2
|
|
|
3
|
-
`@aceshooting/lyra-gen` is independently versioned
|
|
3
|
+
`@aceshooting/lyra-gen` is independently versioned. Pin the installed version,
|
|
4
4
|
check its Lyra UI peer range and release status, then read its `README.md` and the relevant guide
|
|
5
5
|
below. Package, view-format and catalog versions are separate contracts. Use granular imports;
|
|
6
6
|
the root registers no elements, while `@aceshooting/lyra-gen/gen-view.js` registers `lr-gen-view`.
|
|
7
|
+
Use only entries in the installed package's explicit `exports` map. Its `examples/` files are
|
|
8
|
+
application source recipes, not importable package subpaths; `docs/compatibility.md` owns the
|
|
9
|
+
implementation-path migration and separately experimental entry boundary.
|
|
10
|
+
|
|
11
|
+
The 1.x compatibility contract covers the declared view/chat/dashboard, static SSR, pinned SDK
|
|
12
|
+
and owned protocol profiles; only `adapters/a2ui-candidate.js` is an experimental exported API.
|
|
13
|
+
Read the installed compatibility guide's qualification limits before making release or performance
|
|
14
|
+
claims; provider/comparator campaigns and human assistive-technology review are not implied.
|
|
7
15
|
|
|
8
16
|
## Choose and validate the boundary
|
|
9
17
|
|
|
@@ -32,6 +40,22 @@ const admitted = validateView(receivedValue, selected.value);
|
|
|
32
40
|
// Render only admitted.value when admitted.ok is true, using the same selected catalog.
|
|
33
41
|
```
|
|
34
42
|
|
|
43
|
+
## Composite answer blocks
|
|
44
|
+
|
|
45
|
+
`answerBlocksCatalog()` from `catalog.js` is an opt-in overlay (id `<base id>+blocks`) adding
|
|
46
|
+
`kpi-row`, `comparison` and `steps`. Each is expanded during validation into `row`/`stat`, `table`
|
|
47
|
+
and a read-only `stepper`, with child ids `<id>--<index>`. Generate views against the overlay's own
|
|
48
|
+
catalog reference; the base catalog and stored views are unchanged.
|
|
49
|
+
|
|
50
|
+
## Opt-in error isolation
|
|
51
|
+
|
|
52
|
+
Strict rejection is the default. Pass `recovery: 'isolate'` to `validateView`, the parse routes,
|
|
53
|
+
chat options or `<lr-gen-view recovery="isolate">` to replace a component-local failure (bad
|
|
54
|
+
properties, unknown role, missing accessible name) by an in-place fallback while siblings keep
|
|
55
|
+
their state, focus and actions; check `result.isolated`. Identity, binding, action, URL/security,
|
|
56
|
+
budget and root failures still reject the whole view. Persist the original input, not an isolated
|
|
57
|
+
view, and isolate again on load.
|
|
58
|
+
|
|
35
59
|
## Preserve state and host authority
|
|
36
60
|
|
|
37
61
|
Bind `.document`, `.catalog` and JSON-valued `.bindingState` as properties. For `.controlled`
|
|
@@ -74,6 +98,7 @@ than expanding this skill into a second API reference.
|
|
|
74
98
|
| Task | Guide |
|
|
75
99
|
|---|---|
|
|
76
100
|
| Presets, schemas, examples and structured inputs | `docs/catalog-presets.md`, `docs/structured-input.md` |
|
|
101
|
+
| Local scripted Markets, Weather and editable travel-budget walkthrough | `docs/guided-demo.md` (example-owned en/fr/ar copy; no model request) |
|
|
77
102
|
| Chat, stable `renderPart` shells and SDK parts | `docs/interactive-chat.md`, `docs/ai-sdk.md` |
|
|
78
103
|
| Rendering, state, readiness and approval | `docs/rendering.md`, `docs/approval.md` |
|
|
79
104
|
| Saved/live dashboards | `docs/dashboards.md`, `docs/dashboard-composition.md` |
|