@aceshooting/lyra-ui 30.5.0 → 30.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +1 -1
  3. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -4
  4. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +5 -5
  5. package/dist/components/conversation/code-block/onig.provenance.json +1 -1
  6. package/dist/components/conversation/markdown/markdown-base.class.d.ts +1 -1
  7. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  8. package/dist/components/conversation/markdown/markdown-core.class.d.ts +11 -1
  9. package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
  10. package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
  11. package/dist/components/conversation/markdown/markdown-shared.d.ts +7 -2
  12. package/dist/components/conversation/markdown/markdown-shared.js +3 -3
  13. package/dist/components/conversation/markdown/markdown.class.d.ts +11 -1
  14. package/dist/components/conversation/markdown/markdown.class.js +1 -1
  15. package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
  16. package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
  17. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  18. package/dist/components/conversation/model-select/model-select.class.d.ts +8 -1
  19. package/dist/components/conversation/model-select/model-select.class.js +2 -2
  20. package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +5 -0
  21. package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
  22. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  23. package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -0
  24. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  25. package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
  26. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +6 -0
  27. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  28. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +9 -2
  29. package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -2
  30. package/dist/components/conversation/widget-renderer/default-registry.js +1 -1
  31. package/dist/components/conversation/widget-renderer/registry.d.ts +1 -27
  32. package/dist/components/conversation/widget-renderer/registry.js +1 -1
  33. package/dist/components/conversation/widget-renderer/resolve.d.ts +1 -29
  34. package/dist/components/conversation/widget-renderer/resolve.js +1 -1
  35. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  36. package/dist/components/conversation/widget-renderer/widget-renderer.class.js +1 -1
  37. package/dist/components/forms/catalog-picker-base.d.ts +3 -1
  38. package/dist/components/forms/catalog-picker-base.js +3 -3
  39. package/dist/components/forms/combobox/combobox.class.d.ts +9 -2
  40. package/dist/components/forms/combobox/combobox.class.js +2 -2
  41. package/dist/components/forms/date-picker/date-input.class.d.ts +9 -2
  42. package/dist/components/forms/date-picker/date-input.class.js +2 -2
  43. package/dist/components/forms/input/input-shared.d.ts +9 -2
  44. package/dist/components/forms/input/input-shared.js +2 -2
  45. package/dist/components/forms/input/time-input.class.d.ts +9 -2
  46. package/dist/components/forms/input/time-input.class.js +2 -2
  47. package/dist/components/forms/input/time-input.styles.js +1 -1
  48. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +18 -3
  49. package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
  50. package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -2
  51. package/dist/components/forms/phone-input/phone-input.class.js +2 -2
  52. package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
  53. package/dist/components/forms/select/select.class.d.ts +9 -2
  54. package/dist/components/forms/select/select.class.js +2 -2
  55. package/dist/components/forms/textarea/textarea.class.d.ts +9 -2
  56. package/dist/components/forms/textarea/textarea.class.js +2 -2
  57. package/dist/components/forms/token-input/token-input.class.d.ts +9 -2
  58. package/dist/components/forms/token-input/token-input.class.js +2 -2
  59. package/dist/components/forms/token-input/token-input.styles.js +1 -1
  60. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +35 -7
  61. package/dist/components/layout/dock-panel/dock-panel.class.js +8 -5
  62. package/dist/components/layout/dock-panel/dock-panel.styles.js +1 -1
  63. package/dist/components/layout/menu/menu-item.class.d.ts +7 -4
  64. package/dist/components/layout/menu/menu-item.class.js +3 -2
  65. package/dist/components/layout/multi-split/multi-split.class.d.ts +73 -6
  66. package/dist/components/layout/multi-split/multi-split.class.js +4 -4
  67. package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
  68. package/dist/components/layout/page/page.class.d.ts +7 -0
  69. package/dist/components/layout/page/page.styles.js +1 -1
  70. package/dist/components/media/flag/language-map.js +1 -1
  71. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +1 -5
  72. package/dist/components/media/image-viewer/image-viewer-panorama.js +1 -8
  73. package/dist/components/media/image-viewer/image-viewer.class.d.ts +1 -1
  74. package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
  75. package/dist/components/media/map/map-control-options.d.ts +7 -3
  76. package/dist/components/media/map/map-control-options.js +1 -1
  77. package/dist/components/media/map/map-controls-lifecycle.js +1 -1
  78. package/dist/components/media/map/map-feature-loader.js +1 -1
  79. package/dist/components/media/map/map-loader.d.ts +10 -4
  80. package/dist/components/media/map/map-loader.js +1 -1
  81. package/dist/components/media/map/map-scene-admission.js +1 -0
  82. package/dist/components/media/map/map-scene-completion-adapter.js +1 -0
  83. package/dist/components/media/map/map-scene-completion-camera.js +1 -0
  84. package/dist/components/media/map/map-scene-configuration-controller.js +1 -0
  85. package/dist/components/media/map/map-scene-configuration.d.ts +15 -0
  86. package/dist/components/media/map/map-scene-configuration.js +1 -0
  87. package/dist/components/media/map/map-scene-controls.js +1 -0
  88. package/dist/components/media/map/map-scene-elevated-lines.js +36 -0
  89. package/dist/components/media/map/map-scene-errors.js +1 -0
  90. package/dist/components/media/map/map-scene-line-encoding.js +1 -0
  91. package/dist/components/media/map/map-scene-line-layer.js +1 -0
  92. package/dist/components/media/map/map-scene-lines.js +1 -0
  93. package/dist/components/media/map/map-scene-owner.js +1 -0
  94. package/dist/components/media/map/map-scene-position-registry.js +1 -0
  95. package/dist/components/media/map/map-scene-render-controller.js +1 -0
  96. package/dist/components/media/map/map-scene-render-input.js +1 -0
  97. package/dist/components/media/map/map-scene-source-snapshot.js +1 -0
  98. package/dist/components/media/map/map-scene-status.js +1 -0
  99. package/dist/components/media/map/map-scene-types.d.ts +60 -0
  100. package/dist/components/media/map/map.class.d.ts +60 -12
  101. package/dist/components/media/map/map.class.js +23 -6
  102. package/dist/components/media/map/map.styles.js +1 -1
  103. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +1 -1
  104. package/dist/components/media/sequence-playback/sequence-playback.class.js +1 -1
  105. package/dist/components/media/video/video.class.d.ts +1 -1
  106. package/dist/components/media/video/video.class.js +1 -1
  107. package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -1
  108. package/dist/components/retrieval/graph/graph-curvature.js +1 -0
  109. package/dist/components/retrieval/graph/graph-engine-columns.js +1 -1
  110. package/dist/components/retrieval/graph/graph-model.d.ts +4 -0
  111. package/dist/components/retrieval/graph/graph-node-renderer.d.ts +13 -0
  112. package/dist/components/retrieval/graph/graph-node-renderer.js +1 -0
  113. package/dist/components/retrieval/graph/graph-source-controller.js +1 -1
  114. package/dist/components/retrieval/graph/graph-spatial-controller.js +3 -1
  115. package/dist/components/retrieval/graph/graph-spatial.js +1 -1
  116. package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -1
  117. package/dist/components/retrieval/graph/graph.class.d.ts +11 -3
  118. package/dist/components/retrieval/graph/graph.class.js +4 -4
  119. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +8 -2
  120. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +4 -2
  121. package/dist/events.d.ts +36 -1
  122. package/dist/framework-types.d.ts +1 -1
  123. package/dist/internal/collection-policy.js +1 -0
  124. package/dist/internal/collection-snapshot.js +1 -1
  125. package/dist/internal/default-strings/media.generated.js +1 -1
  126. package/dist/internal/default-strings/retrieval.generated.js +1 -1
  127. package/dist/internal/engine-3d-loader.d.ts +8 -2
  128. package/dist/internal/engine-3d-loader.js +1 -1
  129. package/dist/internal/form-control.styles.js +1 -1
  130. package/dist/internal/locale-loaders.generated.js +1 -1
  131. package/dist/internal/localization-runtime.js +1 -1
  132. package/dist/internal/localization-types.d.ts +1 -1
  133. package/dist/internal/localization.js +1 -1
  134. package/dist/internal/map-camera-follow-controller.d.ts +9 -0
  135. package/dist/internal/map-camera-follow-controller.js +1 -0
  136. package/dist/internal/map-camera-follow-data.js +1 -0
  137. package/dist/internal/map-camera-follow-scene.js +1 -0
  138. package/dist/internal/map-camera-session-controller.d.ts +59 -0
  139. package/dist/internal/map-camera-session-controller.js +1 -0
  140. package/dist/internal/map-camera-session-data.d.ts +16 -0
  141. package/dist/internal/map-camera-session-data.js +1 -0
  142. package/dist/internal/map-camera-session.js +1 -0
  143. package/dist/internal/map-custom-layer-attachment.js +1 -0
  144. package/dist/internal/map-custom-layer-controller.js +1 -0
  145. package/dist/internal/map-custom-layer-types.d.ts +63 -0
  146. package/dist/internal/map-scene-layer-runtime.js +1 -0
  147. package/dist/internal/map-scene-session.js +1 -0
  148. package/dist/internal/media-panorama.d.ts +5 -0
  149. package/dist/internal/media-panorama.js +8 -0
  150. package/dist/internal/package-metadata.js +1 -1
  151. package/dist/internal/sequence-playback-binding.js +1 -0
  152. package/dist/internal/typed-columns.d.ts +3 -1
  153. package/dist/internal/typed-columns.js +1 -1
  154. package/dist/internal/variants.d.ts +7 -0
  155. package/dist/internal/widget-default-registry.js +1 -0
  156. package/dist/internal/widget-document.d.ts +29 -0
  157. package/dist/internal/widget-document.js +1 -0
  158. package/dist/internal/widget-type-registry.d.ts +27 -0
  159. package/dist/internal/widget-type-registry.js +1 -0
  160. package/dist/lyra.d.ts +1 -1
  161. package/dist/lyra.js +1 -1
  162. package/dist/map-camera-session.d.ts +10 -0
  163. package/dist/map-camera-session.js +1 -0
  164. package/dist/map-custom-layers.d.ts +16 -0
  165. package/dist/map-custom-layers.js +1 -0
  166. package/dist/sequence-time-binding.d.ts +3 -0
  167. package/dist/sequence-time-binding.js +1 -0
  168. package/dist/simulation-clock.d.ts +3 -0
  169. package/dist/simulation-clock.js +1 -0
  170. package/dist/time-index.d.ts +3 -0
  171. package/dist/time-index.js +1 -0
  172. package/llms/components/lr-artifact-panel.md +8 -3
  173. package/llms/components/lr-combobox.md +2 -0
  174. package/llms/components/lr-country-picker.md +2 -0
  175. package/llms/components/lr-currency-picker.md +2 -0
  176. package/llms/components/lr-date-picker.md +2 -0
  177. package/llms/components/lr-dock-panel.md +28 -10
  178. package/llms/components/lr-graph.md +121 -3
  179. package/llms/components/lr-input.md +2 -0
  180. package/llms/components/lr-knowledge-graph-explorer.md +6 -1
  181. package/llms/components/lr-locale-picker.md +8 -1
  182. package/llms/components/lr-map.md +401 -7
  183. package/llms/components/lr-markdown-core.md +2 -1
  184. package/llms/components/lr-markdown.md +12 -1
  185. package/llms/components/lr-menu.md +5 -2
  186. package/llms/components/lr-model-select.md +2 -0
  187. package/llms/components/lr-multi-split.md +53 -4
  188. package/llms/components/lr-native-time-input.md +2 -0
  189. package/llms/components/lr-number-input.md +2 -0
  190. package/llms/components/lr-page.md +9 -1
  191. package/llms/components/lr-phone-input.md +2 -0
  192. package/llms/components/lr-select.md +2 -0
  193. package/llms/components/lr-sequence-playback.md +44 -0
  194. package/llms/components/lr-streaming-text-core.md +3 -2
  195. package/llms/components/lr-streaming-text.md +4 -1
  196. package/llms/components/lr-suggestion-chips.md +6 -2
  197. package/llms/components/lr-textarea.md +2 -0
  198. package/llms/components/lr-time-input.md +2 -0
  199. package/llms/components/lr-time-zone-picker.md +2 -0
  200. package/llms/components/lr-token-input.md +2 -0
  201. package/llms/components/lr-unit-picker.md +2 -0
  202. package/llms/components/lr-voice-picker.md +2 -0
  203. package/llms/peers.md +7 -7
  204. package/llms/shared/imports-and-registration.md +1 -1
  205. package/llms/shared/localization-and-rtl.md +15 -1
  206. package/llms/shared/testing-and-utilities.md +261 -0
  207. package/llms/shared.md +277 -2
  208. package/locales.json +1 -1
  209. package/package.json +41 -21
  210. package/registrations.json +1 -1
  211. package/skills/lyra-ui/lyra-gen.md +2 -0
  212. /package/dist/{components/media/image-viewer/image-viewer-panorama.styles.js → internal/media-panorama.styles.js} +0 -0
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-number-input`
18
18
 
19
+ Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
20
+
19
21
  A numeric field with the complete `lr-input` form, validation and native-editing contract, plus its
20
22
  own increment/decrement stepper pair. Its constructor and `connectedCallback()` both force
21
23
  `type = 'number'`; all inherited `lr-input` form and editing APIs remain available.
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 22 parts, 23 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 22 parts, 26 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
14
14
 
15
15
  ---
@@ -140,6 +140,14 @@ var(--lr-color-mix-partner) var(--lr-color-mix-active))`),
140
140
  `--lr-page-navigation-drawer-bg` (default `var(--lr-color-surface-overlay)`), and
141
141
  `--lr-page-navigation-drawer-shadow` (default `var(--lr-shadow-l)`).
142
142
 
143
+ The sticky banner, header, and subheader each paint an opaque surface so main content scrolling
144
+ underneath never shows through: `--lr-page-banner-bg`, `--lr-page-header-bg`, and
145
+ `--lr-page-subheader-bg` (each default `var(--lr-color-surface)`, so they follow light and dark
146
+ themes). They are inherited inline fallbacks like the paints above, so set one on the Page or any
147
+ ancestor to retheme only that region; `::part(header)` and its siblings still win. A region named in
148
+ `disable-sticky` drops back to a transparent background, and the non-sticky `footer` is never
149
+ painted.
150
+
143
151
  `disable-sticky` is a whitespace-token attribute, not a comma-separated value. Accepted tokens are
144
152
  `banner`, `header`, `subheader`, `menu`, and `aside`; each only disables that region. Sticky offsets
145
153
  use the three configured height properties, so set them to the real minimum heights when those rows
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-phone-input`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  A form-associated, country-aware telephone field. The submitted `value` is either canonical E.164
20
22
  (for example `+352621123456`) or `''` while the editable input is empty, incomplete, or invalid.
21
23
  Numbering-plan metadata and national formatting stay outside Lyra's base bundle: supply a
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-select`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  Floating form-control panels follow the [shared surface treatment](../shared/styles-and-tokens.md).
20
22
  Editing fields and inline color editors retain opaque interiors.
21
23
 
@@ -109,3 +109,47 @@ dimming at `itemCount <= 1`), `--lr-focus-ring-*`.
109
109
  announcement of the Play/Pause state change.
110
110
 
111
111
  ---
112
+
113
+ ### Shared epoch-time binding
114
+
115
+ Import `createSimulationClock` from `@aceshooting/lyra-ui/simulation-clock.js`, `createTimeIndex`
116
+ from `@aceshooting/lyra-ui/time-index.js`, and `bindSequencePlayback` from
117
+ `@aceshooting/lyra-ui/sequence-time-binding.js`. Register the control separately with
118
+ `@aceshooting/lyra-ui/components/lr-sequence-playback.js`; the helper registers nothing.
119
+
120
+ ```js
121
+ const samples = createTimeIndex([Date.UTC(2026, 0, 1), Date.UTC(2026, 0, 1) + 4000,
122
+ Date.UTC(2026, 0, 1) + 13000]);
123
+ const clock = createSimulationClock({ range: [samples.instantAt(0), samples.instantAt(2)],
124
+ instant: samples.instantAt(0) });
125
+ const release = bindSequencePlayback(playback, clock, samples);
126
+ const unsubscribe = clock.subscribe(({ instant }) => updateApplicationViews(instant));
127
+ // When the application scope ends:
128
+ release(); unsubscribe(); clock.dispose();
129
+ ```
130
+
131
+ The bound slider remains sample-index based; irregular sample durations come from the shared clock.
132
+ `itemCount` and `currentIndex` report the displayed count and lower sample index. The binding owns
133
+ those values: direct property/attribute writes do not seek shared time. `intervalMs` and
134
+ `withoutLoop` remain dormant while bound. Playback is forward-only and stops at the clock range end.
135
+ `goTo()` requests a sample timestamp, pauses, then emits one step even at the same index;
136
+ `next()`/`previous()` retain replay state and do nothing at their displayed endpoints. Clock range
137
+ clamping wins: event detail reports the actual mapped index, not an unreachable requested sample.
138
+ Empty bindings disable navigation/play without pausing other clock consumers. Singleton `goTo(0)`
139
+ can explicitly seek/pause; disabled UI prevents accidental activation.
140
+
141
+ `lr-play`/`lr-pause` reflect effective replay transitions; `lr-sequence-step` retains exactly
142
+ `{ currentIndex }`. Fractional movement within a sample emits no step, crossing several samples
143
+ emits one, and manual actions do not duplicate their subscription-driven projection. A pause
144
+ transition precedes its manual step. Commands are synchronous except commands issued during clock
145
+ fan-out, whose accepted projection is deferred to the next delivery. Reentrant release/disconnect
146
+ retires the old event continuation.
147
+
148
+ Attach/detach and restoration emit no synthetic play/pause/step events. Release restores standalone
149
+ index values paused. Host `hidden = true`, disconnect, adoption, or abort releases only that
150
+ control; other subscribers continue. Clock disposal releases all of its bindings and subscribers.
151
+ Show/reconnect requires explicit rebinding. Ancestor
152
+ CSS visibility is not observed. Import helper and control from the same package module instance;
153
+ duplicate installed copies do not share private attachment authority. Unsupported, inactive or
154
+ already-bound hosts fail before ownership transfer. See the shared clock utilities guide for
155
+ scheduling, live/replay, disposal and error-code contracts.
@@ -20,7 +20,7 @@ A build-lean `<lr-streaming-text>` variant for a consumer whose fenced-code `lan
20
20
  covers every language it will ever stream, or who never renders fenced code at all. Every
21
21
  capability — token coalescing, `contentMode` auto-detection, the blinking cursor, the
22
22
  `lr-content-settled` event, the `languages` property, and the full forwarded Markdown configuration
23
- surface (`tabSize`, `htmlMode`, `withoutGfm`, `linkTarget`, `internalLinkPrefix`, `headingOffset`,
23
+ surface (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`, `internalLinkPrefix`, `headingOffset`,
24
24
  `withoutSyntaxHighlighting`, `headingAnchors`, `math`, `maxHeight`) — is identical to `<lr-streaming-text>`;
25
25
  only which Markdown element Markdown mode composes differs: this variant renders
26
26
  `<lr-markdown-core>` (`../markdown/markdown-core.js`) instead of `<lr-markdown>`, so importing this
@@ -45,7 +45,8 @@ concrete-grammar priority and combined-map reuse as `<lr-streaming-text>`. The r
45
45
  `<lr-markdown-core>`'s configuration surface forwards verbatim too, sharing the same properties,
46
46
  attribute names, and defaults described under `<lr-streaming-text>`'s own **Properties** above:
47
47
  `tabSize: number = 4` (attribute `tab-size`); `htmlMode: 'sanitize' | 'escape' | 'trusted' =
48
- 'sanitize'` (attribute `html-mode`); `withoutGfm: boolean = false` (attribute `without-gfm`); `linkTarget: string | null = '_blank'`
48
+ 'sanitize'` (attribute `html-mode`); `withoutGfm: boolean = false` (attribute `without-gfm`);
49
+ `withoutImages: boolean = false` (attribute `without-images`); `linkTarget: string | null = '_blank'`
49
50
  (attribute `link-target`, still guarded by the composed element's own
50
51
  `rel="noopener noreferrer"` whenever a `target` is emitted); `internalLinkPrefix: string = ''`
51
52
  (attribute `internal-link-prefix`); `headingOffset: number = 0` (attribute `heading-offset`);
@@ -57,6 +57,9 @@ properties existed:
57
57
  the composed `<lr-markdown>`'s own `htmlMode`.
58
58
  - `withoutGfm: boolean = false` (attribute `without-gfm`) — forwarded to the composed
59
59
  `<lr-markdown>`'s own `withoutGfm`.
60
+ - `withoutImages: boolean = false` (attribute `without-images`) — forwarded to the composed
61
+ `<lr-markdown>`'s own `withoutImages`; set it when streaming untrusted language-model output so
62
+ an answer's images render as alt text instead of loading.
60
63
  - `linkTarget: string | null = '_blank'` (attribute `link-target`) — forwarded to the composed
61
64
  `<lr-markdown>`'s own `linkTarget`; the composed element always applies its own
62
65
  `rel="noopener noreferrer"` guard whenever a `target` is emitted, including a forwarded
@@ -166,7 +169,7 @@ showing the previous stream's stale final content for the length of the window.
166
169
  Rendering itself is never reimplemented here: Markdown mode composes `<lr-markdown>` directly,
167
170
  forwarding this component's own `streaming` through as that component's `streaming` hint prop,
168
171
  `streamingRender`, `codeBlockHeader`, `languages` verbatim, and the rest of `<lr-markdown>`'s
169
- configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `linkTarget`,
172
+ configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`,
170
173
  `internalLinkPrefix`, `headingOffset`, `withoutSyntaxHighlighting`, `headingAnchors`, `math`, `maxHeight` —
171
174
  see **Properties** above); plain-text mode
172
175
  renders into a `white-space: pre-wrap` span instead. The
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [conversation](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/conversation.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 6 parts, 4 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 6 parts, 6 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
14
14
 
15
15
  ---
@@ -53,7 +53,11 @@ start). `--lr-suggestion-chips-hover-bg` (default `var(--lr-color-brand-quiet)`)
53
53
  background on hover. `--lr-suggestion-chips-hover-border` (default `var(--lr-color-brand)`) — a
54
54
  `chip`'s border color on hover. All three are declared as `var()` fallbacks at the point of use, not
55
55
  on `:host`. `--lr-suggestion-chips-disabled-opacity` (default `var(--lr-opacity-disabled)`) — opacity of a chip whose
56
- suggestion sets `disabled`. Plus shared tokens `--lr-space-xs/-m/-2xs`,
56
+ suggestion sets `disabled`. `--lr-suggestion-chips-label-lines` (default `1`; `3` when `wrap` is
57
+ set) — how many lines a `chip-label` shows before it is clamped with an ellipsis, so full-question
58
+ starter prompts stay readable in a narrow chat column. `--lr-suggestion-chips-chip-max-inline-size`
59
+ (default `var(--lr-size-16rem)`) — each chip's maximum inline size; in a `wrap` row it is further
60
+ clamped to the row's inline size, so a chip never overflows its container. Plus shared tokens `--lr-space-xs/-m/-2xs`,
57
61
  `--lr-color-border/-surface/-text/-text-quiet`, `--lr-radius-pill`, `--lr-font-size-xs`,
58
62
  `--lr-focus-ring-width/-color/-offset`.
59
63
 
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-textarea`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  A multiline plain-text input primitive, form-associated (participates in native `<form>`
20
22
  submission/validation/reset via `name`/`value`/`disabled`/`required`/`checkValidity()`/
21
23
  `reportValidity()`). Ships an opt-in `label`/`hint`/`errorText` form-control chrome mirroring
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-time-input`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  A locale-aware segmented field and column picker mirroring `wa-time-input`. Its wire and submitted
20
22
  value is always timezone-free, 24-hour ASCII: `HH:mm`, or `HH:mm:ss` when seconds are visible.
21
23
  Locale changes segment order, separators, digits, and day-period labels — never the wire value.
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-time-zone-picker`
18
18
 
19
+ Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
20
+
19
21
  A form-associated identifier selector. Import
20
22
  `@aceshooting/lyra-ui/components/lr-time-zone-picker.js`. It follows the
21
23
  [shared field contract](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/components/lr-country-picker.md),
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-token-input`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  An editable form-associated token list. Enter, comma, Tab, or blur commits a token; Tab is not
20
22
  prevented, so focus still advances normally. Backspace removes the last token. `value` is a
21
23
  readonly owned `readonly string[]` snapshot and repeated values are submitted under `name`; mutate
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-unit-picker`
18
18
 
19
+ Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
20
+
19
21
  A form-associated measurement-unit selector. Import
20
22
  `@aceshooting/lyra-ui/components/lr-unit-picker.js`. It follows the
21
23
  [shared field contract](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/components/lr-country-picker.md),
@@ -16,6 +16,8 @@
16
16
 
17
17
  ## `lr-voice-picker`
18
18
 
19
+ `labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
20
+
19
21
  Override `--lr-voice-picker-trigger-padding`, `--lr-voice-picker-font-size`, and `--lr-voice-picker-expand-size` for trigger spacing, text size, and the expand control’s minimum target cap.
20
22
 
21
23
  The voice list follows the [shared surface treatment](../shared/styles-and-tokens.md);
package/llms/peers.md CHANGED
@@ -37,20 +37,20 @@ for the page.
37
37
 
38
38
  | Peer | Range | Needed by |
39
39
  |---|---|---|
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` |
40
+ | `@aceshooting/lyra-3d` | `^1.2.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
- | `@aceshooting/lyra-map` | `^1.3.0` | `lr-geojson-viewer`, `lr-map` |
43
- | `@aceshooting/lyra-translations` | `^30.5.0` | _(not referenced by any component)_ |
42
+ | `@aceshooting/lyra-map` | `^1.5.0` | `lr-geojson-viewer`, `lr-map` |
43
+ | `@aceshooting/lyra-translations` | `^30.8.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` |
47
47
  | `chartjs-plugin-annotation` | `^3.0.0` | `lr-bar-chart`, `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` |
48
48
  | `chartjs-plugin-datalabels` | `^2.2.0` | `lr-bar-chart`, `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` |
49
49
  | `chartjs-plugin-zoom` | `^2.0.0` | `lr-bar-chart`, `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` |
50
- | `d3-drag` | `^3.0.0` | `lr-graph`, `lr-knowledge-graph-explorer` |
51
- | `d3-force` | `^3.0.0` | `lr-graph`, `lr-knowledge-graph-explorer` |
52
- | `d3-selection` | `^3.0.0` | `lr-graph`, `lr-knowledge-graph-explorer` |
53
- | `d3-zoom` | `^3.0.0` | `lr-graph`, `lr-knowledge-graph-explorer` |
50
+ | `d3-drag` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
51
+ | `d3-force` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
52
+ | `d3-selection` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
53
+ | `d3-zoom` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
54
54
  | `dompurify` | `^3.4.14` | `lr-agent-workspace`, `lr-dashboard-grid`, `lr-docx-viewer`, `lr-email-viewer`, `lr-eval-run`, `lr-geojson-viewer`, `lr-html-viewer`, `lr-icon`, `lr-icon-button`, `lr-include`, `lr-map`, `lr-markdown`, `lr-markdown-core`, `lr-message-parts`, `lr-notebook-viewer`, `lr-rag-answer`, `lr-streaming-text`, `lr-streaming-text-core`, `lr-svg-viewer`, `lr-video`, `lr-video-playlist`, `lr-widget-renderer` |
55
55
  | `emoji-picker-element-data` | `^1.8.0` | `lr-emoji-picker` |
56
56
  | `epubjs` | `^0.3.93` | `lr-ebook-viewer` |
@@ -183,7 +183,7 @@ The entry points, then:
183
183
  `@aceshooting/lyra-ui/localization.js` (side-effect-free locale runtime),
184
184
  `@aceshooting/lyra-ui/autoloader.js` (side-effect-free on-demand tag loading),
185
185
  `@aceshooting/lyra-ui/autoloader-cdn.js` (browser-guarded auto-start side effect),
186
- `@aceshooting/lyra-translations/<locale>.js` (the seventy message catalogs, in the companion package),
186
+ `@aceshooting/lyra-translations/<locale>.js` (the eighty message catalogs, in the companion package),
187
187
  `@aceshooting/lyra-ui/events` (the global typed-event map — types only, no runtime),
188
188
  `@aceshooting/lyra-ui/ai` (provider-neutral data types), `@aceshooting/lyra-ui/testing`
189
189
  (happy-dom shims, `createLyraEvent()` for building a validated test event, a small set of
@@ -109,6 +109,9 @@ transport. The helper neither reloads the page nor changes module URLs to bypass
109
109
  category selection walks the same chain, so the two can never disagree:
110
110
 
111
111
  1. **The BCP-47 truncation walk, most specific first**, with any explicitly registered delta parent chain inserted immediately after its child — `zh-Hans-CN` → `zh-Hans` → `zh`.
112
+ A tag without a script subtag whose CLDR likely script differs from its bare language's walks
113
+ that implied script just before the bare language: `sr-ME` (likely `sr-Latn-ME`) →
114
+ `sr-Latn` → `sr`, while `sr-RS` (likely Cyrillic, like bare `sr`) goes straight to `sr`.
112
115
  Casing and `_` separators are normalized, so `pt_BR` and `pt-br` are the same key. Lookup chains
113
116
  are memoized and capped at 64 candidates. A structurally valid tag beyond the normal complexity
114
117
  ceiling retains its exact tag, base language and English fallback without constructing an
@@ -200,7 +203,7 @@ silently defeats a registered catalog — omit it, or pass `undefined`.
200
203
 
201
204
  ### Ready-made catalogs: `@aceshooting/lyra-translations/<locale>.js`
202
205
 
203
- Seventy catalogs ship in the companion package `@aceshooting/lyra-translations` (`pnpm add @aceshooting/lyra-translations`, same version as `@aceshooting/lyra-ui`), each covering every key in `LYRA_DEFAULT_STRINGS`.
206
+ Eighty catalogs ship in the companion package `@aceshooting/lyra-translations` (`pnpm add @aceshooting/lyra-translations`, same version as `@aceshooting/lyra-ui`), each covering every key in `LYRA_DEFAULT_STRINGS`.
204
207
  The public `@aceshooting/lyra-ui/locales.json` manifest lists their canonical identities, authored
205
208
  source spellings, import paths, and structural coverage. It also distinguishes translation
206
209
  coverage from linguistic review tier. The catalogs are **side-effect-only modules**: import one
@@ -222,6 +225,8 @@ import "@aceshooting/lyra-translations/ro.js"; // Romanian
222
225
  import "@aceshooting/lyra-translations/zh-CN.js"; // Simplified: serves zh, zh-Hans, zh-SG and zh-Hans-CN
223
226
  import "@aceshooting/lyra-translations/zh-TW.js"; // Traditional: serves zh-Hant and zh-MO
224
227
  import "@aceshooting/lyra-translations/zh-HK.js"; // Hong Kong: differences over zh-TW
228
+ import "@aceshooting/lyra-translations/sr.js"; // Serbian Cyrillic: serves sr, sr-Cyrl, sr-RS, sr-BA
229
+ import "@aceshooting/lyra-translations/sr-Latn.js"; // Serbian Latin: serves sr-Latn, sr-Latn-RS, sr-ME
225
230
  ```
226
231
 
227
232
  Persian and Hebrew use CLDR plural categories (`fa`: `one`/`other`; `he`:
@@ -242,6 +247,15 @@ they register only the messages that differ and resolve every other message thro
242
247
  (`de`, the built-in English, `es`, `fr`, `zh-TW`), and importing one also imports its parent catalog (`en-GB` has none: English is built in).
243
248
  The four regional additions are AI-assisted translations; no human or native-speaker review is claimed.
244
249
 
250
+ Serbian ships in both scripts as two complete catalogs: `sr` (Cyrillic, the CLDR default for bare
251
+ `sr`) and `sr-Latn` (Latin). Script decides, not region: `sr-Latn-*` tags and script-less tags whose
252
+ likely script is Latin (`sr-ME`) reach `sr-Latn`; `sr-Cyrl-*`, `sr-RS`, `sr-BA` and `sr-XK` reach
253
+ `sr`. The `sk`, `bg`, `lt`, `lv`, `et`, `ca`, `ga`, `mt`, `sr` and `sr-Latn` catalogs are
254
+ AI-assisted translations with structural verification only (keys, placeholders, ICU syntax and CLDR
255
+ plural categories); they await native-speaker review, and no human or native-speaker review is
256
+ claimed. Regional tags such as `ca-ES-valencia`, `ga-IE` and `mt-MT` reach their base catalog by
257
+ truncation.
258
+
245
259
  Import only the locales the application can actually offer — each is a separate module, so unimported
246
260
  ones cost nothing. A catalog registered this way is merged like any other, so a later
247
261
  `registerLyraLocale('de', { close: '…' })` still overrides individual keys, and a per-instance
@@ -841,6 +841,267 @@ so a bundler drops the unused catalog; an unbundled graph that imports it still
841
841
  - `formResetCallback()` restores the _content attribute_ default, so `el.value = 'x'` never redefines
842
842
  what `form.reset()` restores to (native `defaultValue`/`defaultSelected` semantics).
843
843
 
844
+ ### Shared simulation clock and irregular time indices
845
+
846
+ These granular modules are registration-free and require no map or 3D engine:
847
+
848
+ - `@aceshooting/lyra-ui/simulation-clock.js`: `createSimulationClock(options, capabilities?)`,
849
+ `SimulationClockError`; types `SimulationClock`, `SimulationClockOptions`,
850
+ `SimulationClockCapabilities`, `ClockScheduler`, `ClockSnapshot`, `SimulationClockMode`,
851
+ `SimulationClockReason`, `SimulationClockErrorCode`.
852
+ - `@aceshooting/lyra-ui/time-index.js`: `createTimeIndex(timestamps)`, `TimeIndexError`;
853
+ types `TimeIndex`, `TimeLocation`, `TimeIndexErrorCode`.
854
+ - `@aceshooting/lyra-ui/sequence-time-binding.js`: `bindSequencePlayback(control, clock, index,
855
+ options?)`, `SequenceTimeBindingError`; types `SequenceTimeBindingOptions`,
856
+ `SequenceTimeBindingErrorCode`. Register the sequence control separately.
857
+ - `@aceshooting/lyra-ui/map-camera-session.js`: `createMapCameraSession(map, options?)`,
858
+ `MapCameraSessionError`; saved viewpoints, tours sampled from a shared clock and scene-object
859
+ following for a ready `lr-map`. Register the map separately.
860
+
861
+ #### Clock contract
862
+
863
+ `SimulationClockOptions` has readonly `range: readonly [number, number]`, `instant: number` and
864
+ optional `rate: number` (default 1). Numbers are epoch milliseconds within ±8.64e15; fractional
865
+ milliseconds are allowed. Range start must not exceed end. Instants clamp to range; rates must be
866
+ finite and positive, without a fixed maximum. Plain records and tuples reject accessors/invalid
867
+ structure. Optional second-argument `SimulationClockCapabilities` carries the deliberately trusted
868
+ `scheduler?: ClockScheduler` and `onSubscriberError?: (error: unknown) => void` callbacks separately
869
+ from plain data. Scheduler methods are `monotonicNow(): number`, `epochNow(): number`,
870
+ `requestFrame(callback: () => void): unknown`, `cancelFrame(handle: unknown): void`.
871
+
872
+ `clock.snapshot` is immutable `ClockSnapshot { instant, range, mode, playing, rate, revision, reason }`.
873
+ `mode` is `'replay' | 'live'`. `reason` is
874
+ `'initial' | 'tick' | 'seek' | 'play' | 'pause' | 'rate' | 'range' | 'mode' | 'live'`.
875
+ `currentInstant()` samples current time without notification. `play()`, `pause()`, `seek(instant)`,
876
+ `stepTo(instant)`, `setRate(rate)`, `setRange(range)`, `setMode(mode)` update shared state.
877
+ Seek pauses and enters replay; stepTo preserves replay playing unless clamped at end, and leaves
878
+ live for paused replay. Play from live starts replay at current live instant; play at end does not
879
+ rewind. Pause from live freezes replay. Selecting an already-current mode does nothing. No looping
880
+ or reverse playback is implied. Live follows clamped wall time, including wall-clock corrections;
881
+ rate affects replay only. Applications own rolling ranges and incoming data.
882
+
883
+ `subscribe(listener, { signal? })` immediately supplies caught-up state and returns an idempotent
884
+ release function. Each registration is independent, including repeated use of one callback.
885
+ Reentrant writes coalesce into one later desired-state delivery. Listener errors are isolated.
886
+ Every subscriber in a fan-out sees the same instant/revision, not a promise of simultaneous paint.
887
+ Use revision checks before committing asynchronous map/chart work. Time zones/locales belong to
888
+ `Intl.DateTimeFormat` presentation and never change the shared instant.
889
+
890
+ Replay derives from a monotonic anchor rather than counting frames. Hidden/background documents
891
+ skip intermediate frames and catch up; they do not pause analytical replay or burst old updates.
892
+ No subscribers means no delivery scheduling, while replay still advances analytically. Import,
893
+ construction and paused use are SSR-safe and side-effect free; replay/live needs a usable injected
894
+ time source in SSR even without subscribers. Browser delivery uses one owner-realm animation-frame
895
+ chain. `dispose()` cancels jobs, clears subscribers and silently releases bindings. It is idempotent;
896
+ final getters remain readable, while later mutation/subscribe throws `disposed`.
897
+
898
+ `SimulationClockError(code, message?)` exposes readonly `code`:
899
+ `'invalid-options' | 'invalid-instant' | 'invalid-range' | 'invalid-rate' |
900
+ 'invalid-capabilities' | 'invalid-listener' | 'disposed'`. Failures leave rejected commands
901
+ unpublished. Developer diagnostics are not localized product copy; applications localize by code.
902
+
903
+ #### Time index contract
904
+
905
+ `createTimeIndex` snapshots and freezes at most 10,000 strictly increasing timestamps. Empty and
906
+ singleton inputs are legal. Duplicate, descending, sparse, accessor, nonfinite and out-of-Date-range
907
+ values fail rather than sorting, truncating or reindexing. `TimeIndex` exposes readonly
908
+ `timestamps`, `length`, `instantAt(index): number`, and `locate(instant): TimeLocation | undefined`.
909
+ `TimeLocation` has readonly `lowerIndex`, `upperIndex`, `nearestIndex`, `fraction`; exact samples
910
+ have equal indices/fraction zero, endpoint queries clamp, nearest ties choose lower. Empty indices
911
+ return undefined. Consumers explicitly select hold/nearest/linear interpretation; the utility never
912
+ interpolates application records, geographic wrapping, categories or physical trajectories.
913
+ `TimeIndexError(code, message?)` codes are
914
+ `'invalid-timestamps' | 'invalid-instant' | 'invalid-index'`.
915
+
916
+ Binding signature: `bindSequencePlayback(control: HTMLElement, clock: SimulationClock,
917
+ index: TimeIndex, options?: SequenceTimeBindingOptions): () => void`; options has readonly
918
+ `signal?: AbortSignal`. Clock/index must come from these factories in the same package module graph.
919
+ `SequenceTimeBindingError(code, message?)` codes are `'unsupported-control' | 'inactive-control' |
920
+ 'already-bound' | 'invalid-clock' | 'invalid-index' | 'invalid-options'`. A disposed clock raises
921
+ `SimulationClockError('disposed')`. Abort signals are trusted lifecycle capabilities; a preaborted
922
+ signal performs no attachment. Releasing never pauses other consumers.
923
+
924
+ - **`simulation-clock-contracts`** — Shared replay and live time.
925
+ Import: `@aceshooting/lyra-ui/simulation-clock.js`.
926
+ `createSimulationClock(options: SimulationClockOptions, capabilities?: SimulationClockCapabilities): SimulationClock`
927
+ `SimulationClockOptions {
928
+ readonly range: readonly [number, number];
929
+ readonly instant: number;
930
+ readonly rate?: number;
931
+ }`
932
+ `ClockScheduler {
933
+ monotonicNow(): number;
934
+ epochNow(): number;
935
+ requestFrame(callback: () => void): unknown;
936
+ cancelFrame(handle: unknown): void;
937
+ }`
938
+ `SimulationClockCapabilities {
939
+ readonly scheduler?: ClockScheduler;
940
+ readonly onSubscriberError?: (error: unknown) => void;
941
+ }`
942
+ `ClockSnapshot {
943
+ readonly instant: number;
944
+ readonly range: readonly [number, number];
945
+ readonly mode: SimulationClockMode;
946
+ readonly playing: boolean;
947
+ readonly rate: number;
948
+ readonly revision: number;
949
+ readonly reason: SimulationClockReason;
950
+ }`
951
+ `SimulationClock {
952
+ readonly snapshot: ClockSnapshot;
953
+ currentInstant(): number;
954
+ seek(instant: number): void;
955
+ stepTo(instant: number): void;
956
+ play(): void;
957
+ pause(): void;
958
+ setRate(rate: number): void;
959
+ setRange(range: readonly [number, number]): void;
960
+ setMode(mode: SimulationClockMode): void;
961
+ subscribe(listener: (snapshot: ClockSnapshot) => void, options?: { readonly signal?: AbortSignal }): () => void;
962
+ dispose(): void;
963
+ }`
964
+
965
+ - **`time-index-contracts`** — Immutable irregular timestamp indices.
966
+ Import: `@aceshooting/lyra-ui/time-index.js`.
967
+ `createTimeIndex(timestamps: readonly number[]): TimeIndex`
968
+ `TimeLocation {
969
+ readonly lowerIndex: number;
970
+ readonly upperIndex: number;
971
+ readonly nearestIndex: number;
972
+ readonly fraction: number;
973
+ }`
974
+ `TimeIndex {
975
+ readonly timestamps: readonly number[];
976
+ readonly length: number;
977
+ locate(instant: number): TimeLocation | undefined;
978
+ instantAt(index: number): number;
979
+ }`
980
+
981
+ - **`sequence-time-binding-contracts`** — Shared time binding for a registered sequence control.
982
+ Import: `@aceshooting/lyra-ui/sequence-time-binding.js`.
983
+ `bindSequencePlayback(control: HTMLElement, clock: SimulationClock, index: TimeIndex, options?: SequenceTimeBindingOptions): () => void`
984
+ `SequenceTimeBindingOptions { readonly signal?: AbortSignal; }`
985
+
986
+ - **`map-camera-session-contracts`** — Saved viewpoints, clock-driven tours and object following
987
+ for a ready `lr-map`; see the `lr-map` camera sessions section of the media reference.
988
+ Import: `@aceshooting/lyra-ui/map-camera-session.js`.
989
+ `createMapCameraSession(map: HTMLElement, options?: MapCameraSessionOptions): MapCameraSession`
990
+ `MapCameraSessionOptions { readonly signal?: AbortSignal; }`
991
+ `MapViewpoint {
992
+ readonly center: readonly [number, number];
993
+ readonly zoom: number;
994
+ readonly bearing: number;
995
+ readonly pitch: number;
996
+ }`
997
+ `MapCameraTransition {
998
+ readonly kind?: 'jump' | 'ease' | 'fly';
999
+ readonly duration?: number;
1000
+ }`
1001
+ `MapCameraKeyframe {
1002
+ readonly instant: number;
1003
+ readonly view: MapViewpoint;
1004
+ readonly interpolation?: 'linear' | 'hold';
1005
+ }`
1006
+ `MapCameraTour { readonly keyframes: readonly MapCameraKeyframe[]; }`
1007
+ `MapCameraFollowOptions {
1008
+ readonly objectId: string;
1009
+ readonly mode: 'ground';
1010
+ readonly zoom?: number;
1011
+ readonly bearing?: number;
1012
+ readonly pitch?: number;
1013
+ }`
1014
+ `MapCameraSession {
1015
+ readonly snapshot: MapCameraSessionSnapshot;
1016
+ capture(): MapViewpoint;
1017
+ restore(viewpoint: MapViewpoint, transition?: MapCameraTransition): void;
1018
+ tour(clock: SimulationClock, tour: MapCameraTour): void;
1019
+ follow(options: MapCameraFollowOptions): void;
1020
+ stop(): void;
1021
+ subscribe(listener: (snapshot: MapCameraSessionSnapshot) => void, options?: MapCameraSessionOptions): () => void;
1022
+ dispose(): void;
1023
+ }`
1024
+ `MapCameraSessionError(code)` exposes `code: MapCameraSessionErrorCode`. Snapshot, reason, mode
1025
+ and tracking types are `MapCameraSessionSnapshot`, `MapCameraSessionReason`, `MapCameraSessionMode`,
1026
+ `MapCameraTrackingStatus` and `MapCameraTrackingIssue`.
1027
+
1028
+ - **`map-custom-layers-contracts`** — Trusted custom WebGL2 layers (beams, coverage cones, clouds,
1029
+ particles) on a connected `lr-map`, sharing its context, camera and depth; see the `lr-map` custom
1030
+ 3D layers section of the media reference. Import: `@aceshooting/lyra-ui/map-custom-layers.js`.
1031
+ `addMapCustomLayer(map: HTMLElement, layer: LyraMapCustomLayer, options?: LyraMapCustomLayerOptions): LyraMapCustomLayerHandle`
1032
+ `LyraMapCustomLayer {
1033
+ readonly id: string;
1034
+ readonly label: string;
1035
+ readonly before?: string;
1036
+ create(context: LyraMapCustomLayerContext): LyraMapCustomLayerInstance;
1037
+ }`
1038
+ `LyraMapCustomLayerContext {
1039
+ readonly gl: WebGL2RenderingContext;
1040
+ readonly signal: AbortSignal;
1041
+ readonly geographic: LyraMapGeographicServices;
1042
+ requestRender(): void;
1043
+ reportState(state: 'ready' | 'loading' | 'unavailable', code?: 'terrain' | 'resource'): void;
1044
+ }`
1045
+ `LyraMapCustomLayerFrame {
1046
+ readonly revision: number;
1047
+ readonly time: number;
1048
+ readonly width: number;
1049
+ readonly height: number;
1050
+ readonly pixelRatio: number;
1051
+ readonly reducedMotion: boolean;
1052
+ readonly geographic: LyraMapGeographicFrame;
1053
+ }`
1054
+ `LyraMapCustomLayerInstance {
1055
+ prerender?(frame: LyraMapCustomLayerFrame): void;
1056
+ render(frame: LyraMapCustomLayerFrame): void;
1057
+ dispose(): void;
1058
+ pick?(point: readonly [x: number, y: number], revision: number): Promise<LyraMapCustomLayerPick | null>;
1059
+ }`
1060
+ `LyraMapCustomLayerPick { readonly id: string; readonly position?: LyraMapPosition; }`
1061
+ `LyraMapCustomLayerOptions { readonly onStateChange?: (status: LyraMapCustomLayerStatus) => void; }`
1062
+ `LyraMapCustomLayerStatus { readonly state: LyraMapCustomLayerState; readonly code?: LyraMapCustomLayerCode; }`
1063
+ `LyraMapCustomLayerHandle {
1064
+ readonly id: string;
1065
+ readonly status: LyraMapCustomLayerStatus;
1066
+ requestRender(): void;
1067
+ setVisible(visible: boolean): void;
1068
+ pick(point: readonly [x: number, y: number]): Promise<LyraMapCustomLayerPick | null>;
1069
+ remove(): void;
1070
+ }`
1071
+ `LyraMapGeographicServices {
1072
+ readonly limits: Readonly<Record<string, number>>;
1073
+ resolve(position: LyraMapPosition): LyraMapResolvedPosition;
1074
+ frameFor(position: LyraMapPosition): LyraMapGeographicOrigin;
1075
+ fromEnu(origin: Extract<LyraMapResolvedPosition, { status: 'resolved' }>, point: readonly [east: number, north: number, up: number]): LyraMapPosition;
1076
+ }`
1077
+ `LyraMapGeographicFrame {
1078
+ resolve(position: LyraMapPosition): LyraMapResolvedPosition;
1079
+ project(position: LyraMapPosition): LyraMapProjectedPosition;
1080
+ encode(position: LyraMapResolvedPosition, origin: LyraMapGeographicOrigin): readonly [number, number, number];
1081
+ shader(origin: LyraMapGeographicOrigin): LyraMapGeographicShader;
1082
+ }`
1083
+ `LyraMapGeographicOrigin { readonly tile: { readonly z: number; readonly x: number; readonly y: number; readonly wrap: number }; readonly key: string; }`
1084
+ `LyraMapProjectedPosition {
1085
+ readonly point?: readonly [number, number];
1086
+ readonly visible: boolean;
1087
+ readonly status: 'resolved' | 'terrain-pending' | 'terrain-unavailable' | 'visibility-pending' | 'clipped' | 'occluded';
1088
+ }`
1089
+ `LyraMapGeographicShader {
1090
+ readonly key: string;
1091
+ readonly vertexPrelude: string;
1092
+ readonly fragmentPrelude: string;
1093
+ readonly defines: string;
1094
+ readonly positionEncoding: 'tile-xy-meters-z';
1095
+ readonly projectFunction: 'lrProjectPosition';
1096
+ readonly horizonPositionFunction: 'lrHorizonPosition';
1097
+ readonly horizonOccludedFunction: 'lrHorizonOccluded';
1098
+ readonly horizonMode: 'none' | 'sphere';
1099
+ readonly uniforms: readonly LyraMapGeographicUniform[];
1100
+ }`
1101
+ `LyraMapGeographicUniform`, `LyraMapResolvedPosition`, `LyraMapCustomLayerState`
1102
+ (`'loading' | 'ready' | 'unavailable' | 'removed'`) and `LyraMapCustomLayerCode`
1103
+ (`'engine' | 'render' | 'invalid' | 'context-lost' | 'terrain' | 'resource'`) complete the types.
1104
+
844
1105
  ## Reference artifacts
845
1106
 
846
1107
  The package includes authored family and shared references plus derived index, component, token,