@aceshooting/lyra-ui 30.2.0 → 30.4.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 (93) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/dist/ai/adapters/a2ui.d.ts +10 -4
  3. package/dist/ai/adapters/a2ui.js +1 -1
  4. package/dist/ai/adapters/ag-ui.d.ts +17 -4
  5. package/dist/ai/adapters/ag-ui.js +1 -1
  6. package/dist/ai/adapters/ai-sdk.js +1 -1
  7. package/dist/ai/runtime.js +1 -1
  8. package/dist/components/agent-tools/mcp-app/mcp-app-protocol.d.ts +15 -0
  9. package/dist/components/agent-tools/mcp-app/mcp-app-protocol.js +36 -0
  10. package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +31 -4
  11. package/dist/components/agent-tools/mcp-app/mcp-app.class.js +4 -4
  12. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +2 -2
  13. package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
  14. package/dist/components/conversation/message-actions/message-actions.class.d.ts +3 -3
  15. package/dist/components/conversation/message-parts/message-parts.class.d.ts +13 -4
  16. package/dist/components/conversation/message-parts/message-parts.class.js +12 -10
  17. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  18. package/dist/components/conversation/message-parts/message-parts.js +1 -1
  19. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +1 -1
  20. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
  21. package/dist/components/forms/select/select.class.js +1 -1
  22. package/dist/components/layout/app-rail/app-rail.class.d.ts +1 -1
  23. package/dist/components/layout/app-rail/app-rail.class.js +1 -1
  24. package/dist/components/layout/multi-split/multi-split.class.d.ts +4 -1
  25. package/dist/components/layout/multi-split/multi-split.class.js +6 -3
  26. package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
  27. package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
  28. package/dist/components/layout/page/page.class.d.ts +3 -1
  29. package/dist/components/layout/page/page.class.js +1 -1
  30. package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +6 -4
  31. package/dist/components/layout/responsive-panel/responsive-panel.class.js +1 -1
  32. package/dist/components/layout/scroller/scroller.class.d.ts +1 -1
  33. package/dist/components/layout/scroller/scroller.class.js +1 -1
  34. package/dist/components/layout/split-panel/split-panel.class.d.ts +1 -1
  35. package/dist/components/layout/split-panel/split-panel.class.js +1 -1
  36. package/dist/components/layout/stepper/stepper.class.d.ts +1 -1
  37. package/dist/components/layout/stepper/stepper.class.js +1 -1
  38. package/dist/components/layout/widget/widget.class.d.ts +1 -1
  39. package/dist/components/layout/widget/widget.class.js +1 -1
  40. package/dist/components/media/file-input/file-input.styles.js +1 -1
  41. package/dist/components/media/map/map-control-chrome.js +1 -0
  42. package/dist/components/media/map/map-control-options.d.ts +6 -2
  43. package/dist/components/media/map/map-control-options.js +1 -1
  44. package/dist/components/media/map/map-controls-lifecycle.js +1 -1
  45. package/dist/components/media/map/map-controls-readiness.js +1 -0
  46. package/dist/components/media/map/map.class.d.ts +39 -2
  47. package/dist/components/media/map/map.class.js +13 -7
  48. package/dist/components/media/map/map.styles.js +1 -1
  49. package/dist/components/overlays/dialog/dialog.class.d.ts +2 -2
  50. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  51. package/dist/components/utility/copy-button/copy-button.class.d.ts +13 -15
  52. package/dist/components/utility/copy-button/copy-button.class.js +3 -3
  53. package/dist/components/utility/copy-button/copy-button.styles.js +1 -1
  54. package/dist/components/utility/tour/tour.class.d.ts +2 -2
  55. package/dist/components/utility/tour/tour.class.js +1 -1
  56. package/dist/events.d.ts +10 -1
  57. package/dist/framework-types.d.ts +1 -1
  58. package/dist/internal/localization-types.d.ts +1 -1
  59. package/dist/internal/localization.js +1 -1
  60. package/dist/internal/modal-host.styles.js +1 -0
  61. package/dist/internal/modal-surface-controller.js +1 -1
  62. package/dist/internal/overlay-stack.d.ts +1 -1
  63. package/dist/internal/overlay-stack.js +1 -1
  64. package/dist/internal/package-metadata.js +1 -1
  65. package/dist/internal/scoped-definitions.generated.js +1 -1
  66. package/dist/internal/style-property-lease.js +1 -1
  67. package/dist/lyra.d.ts +1 -1
  68. package/llms/components/lr-app-rail.md +4 -0
  69. package/llms/components/lr-badge.md +3 -0
  70. package/llms/components/lr-copy-button.md +15 -7
  71. package/llms/components/lr-file-input.md +5 -0
  72. package/llms/components/lr-map.md +80 -8
  73. package/llms/components/lr-mcp-app.md +94 -4
  74. package/llms/components/lr-message-parts.md +18 -0
  75. package/llms/components/lr-multi-split.md +4 -0
  76. package/llms/components/lr-page.md +5 -1
  77. package/llms/components/lr-responsive-panel.md +5 -1
  78. package/llms/components/lr-select.md +3 -2
  79. package/llms/components/lr-token-input.md +4 -3
  80. package/llms/components/lr-tooltip.md +4 -4
  81. package/llms/peers.md +1 -1
  82. package/llms/shared/ai-and-peers.md +88 -3
  83. package/llms/shared/events-and-types.md +25 -1
  84. package/llms/shared/localization-and-rtl.md +29 -0
  85. package/llms/shared/styles-and-tokens.md +75 -14
  86. package/llms/shared.md +217 -18
  87. package/locales.json +1 -1
  88. package/package.json +8 -4
  89. package/registrations.json +1 -1
  90. package/skills/compose-lyra-interfaces/SKILL.md +5 -3
  91. package/skills/compose-lyra-interfaces/references/composition-patterns.md +8 -1
  92. package/skills/lyra-ui/SKILL.md +17 -8
  93. package/skills/lyra-ui/lyra-gen.md +95 -0
@@ -595,6 +595,14 @@ readonly noData?:true;}>;}
595
595
  * @csspart initialization-activate - Localized button covering an `initialization="interaction"`
596
596
  * placeholder until the first input builds the map.
597
597
  * @csspart initialization-control - Decorative outline of a requested native control before construction.
598
+ * @csspart initialization-navigation - Decorative navigation control placeholder.
599
+ * @csspart initialization-scale - Decorative scale control placeholder.
600
+ * @csspart initialization-geolocate - Decorative geolocation control placeholder.
601
+ * @csspart initialization-attribution - Decorative attribution control placeholder.
602
+ * @csspart initialization-skeleton - Decorative map skeleton before construction.
603
+ * @csspart initialization-activate-label - Visible activation prompt; hiding it preserves the button's localized accessible name.
604
+ * @csspart initialization-controls - Decorative requested controls, also exposing controls.
605
+ * @csspart initialization-corner - Decorative control corner, also exposing its controls-top-left, controls-top-right, controls-bottom-left or controls-bottom-right token.
598
606
  * @event lr-map-style-load - `detail: { generation }` (`LyraMapReadinessDetail`). Fired once per
599
607
  * connection/style after generated and registered overlays, images, style overrides and their
600
608
  * asynchronous preparation are restored.
@@ -680,6 +688,19 @@ readonly noData?:true;}>;}
680
688
  * @csspart configuration-error - Localized control or URL configuration feedback.
681
689
  * @csspart geolocate - Native user-activated geolocation button.
682
690
  * @csspart geolocate-control - Native geolocation control wrapper, for group-level layout offsets.
691
+ * @csspart geolocate-icon - Decorative native geolocation icon span.
692
+ * @csspart geolocate-waiting - Additional geolocate button token while the peer awaits a position.
693
+ * @csspart geolocate-active - Additional geolocate button token while actively tracking.
694
+ * @csspart geolocate-background - Additional geolocate button token while tracking in the background.
695
+ * @csspart geolocate-error - Additional geolocate button token for active or background location errors.
696
+ * @csspart controls - Native or deferred control layout container; each row shares its available inline space.
697
+ * @csspart controls-top - Native or deferred top control row; use display: contents for a custom flattened layout.
698
+ * @csspart controls-bottom - Native or deferred bottom control row.
699
+ * @csspart controls-attribution-expanded - Additional token on controls, both rows and all four corners while any native attribution in that container is expanded.
700
+ * @csspart controls-top-left - Native or deferred top-left corner, following the control position vocabulary.
701
+ * @csspart controls-top-right - Native or deferred top-right control corner.
702
+ * @csspart controls-bottom-left - Native or deferred bottom-left control corner.
703
+ * @csspart controls-bottom-right - Native or deferred bottom-right control corner.
683
704
  * @csspart container - The MapLibre container. Its generated canvas is the actual focusable map
684
705
  * region and receives the host-first accessible name and effective locale.
685
706
  * @slot anchor - Content placed at `anchorLngLat`: above the point, flipped below near the top edge
@@ -736,11 +757,17 @@ readonly noData?:true;}>;}
736
757
  * @csspart attribution - MapLibre-generated map attribution.
737
758
  * @csspart attribution-toggle - MapLibre's compact-attribution disclosure control with a decorative information glyph.
738
759
  * @csspart attribution-content - Native attribution credits, independently positionable from the compact disclosure control.
760
+ * @csspart attribution-link - Each native attribution link, with a minimum 24px target in both axes.
761
+ * @csspart attribution-expanded - Additional token on attribution, attribution-toggle and attribution-content while credits are expanded.
739
762
  * @csspart navigation - Standard peer NavigationControl group, added through `controls` or the map getter.
740
763
  * @csspart zoom-in - Peer zoom-in button with a localized accessible name and tokenized target.
764
+ * @csspart zoom-in-icon - Decorative native zoom-in icon span.
741
765
  * @csspart zoom-out - Peer zoom-out button.
766
+ * @csspart zoom-out-icon - Decorative native zoom-out icon span.
742
767
  * @csspart compass - Peer compass/reset-north button; its glyph retains the peer's bearing rotation.
768
+ * @csspart compass-icon - Decorative native compass span; native bearing transforms remain on this node.
743
769
  * @csspart scale - Standard peer ScaleControl bar. Units and updates remain owned by MapLibre.
770
+ * @cssprop [--lr-map-scale-bar-display=block] - Display of the decorative scale ruler; set to none for a text-only scale.
744
771
  * @csspart error - Visible localized message shown instead of `container` when `mapStyle` is
745
772
  * missing, the optional peer is unavailable, WebGL2 cannot be created, or map initialization
746
773
  * fails; the transition is announced through the shared light-DOM assertive region.
@@ -1149,7 +1176,7 @@ label?:string;
1149
1176
  /** Optional engine. Set before connecting; changes take effect after disconnect/reconnect.
1150
1177
  * `modular` loads `@aceshooting/lyra-map`; `maplibre` explicitly selects the full `maplibre-gl`
1151
1178
  * peer. No engine is substituted when the selected peer is unavailable. */
1152
- engine:LyraMapEngine;private loading;private failure?;private readonly announcements;private loadLibrary;private visible;private constructionScheduler?;private constructionMode;private constructionDelay?;private containerEl?;private anchorEl?;private anchorBoundaryEl?;private _map?;private _styleLoaded;private _appliedChoroplethSourceId?;private _appliedFillLayerId?;private _appliedDataLayerIds;private _appliedDataLayerShapes;private _appliedGeoJson;private _nextDataLayerId;private nextPointIconId;private appliedPointPaint;private appliedPointMuting;private appliedPointIcons;private _maplibreModule?;private _webglReady;private _markerInstances;private _markerLabels;private _markerPopupIds;private readonly markerActivationDetails;private _configuredPopups;private _nextPopupId;private peerChromeObserver?;private observedPeerContainer?;private mapResizeObserver?;private observedMapContainer?;private _markerColors;private _markerSources;private _connectGeneration;private _styleGeneration;private readonly readiness;private ownedFeatures?;private externalFeatures?;private externalFeatureWorkStarted;private externalIdStyle;private externalIdCounter;private readonly externalSourceIds;private readonly appliedGeoLabels;private readonly peerEvents;private optionalFeatureWorkStarted;
1179
+ engine:LyraMapEngine;private loading;private failure?;private readonly announcements;private loadLibrary;private visible;private constructionScheduler?;private constructionMode;private constructionDelay?;private containerEl?;private anchorEl?;private anchorBoundaryEl?;private _map?;private _styleLoaded;private _appliedChoroplethSourceId?;private _appliedFillLayerId?;private _appliedDataLayerIds;private _appliedDataLayerShapes;private _appliedGeoJson;private _nextDataLayerId;private nextPointIconId;private appliedPointPaint;private appliedPointMuting;private appliedPointIcons;private _maplibreModule?;private _webglReady;private _markerInstances;private _markerLabels;private _markerPopupIds;private readonly markerActivationDetails;private _configuredPopups;private _nextPopupId;private peerChromeObserver?;private observedPeerContainer?;private mapResizeObserver?;private observedMapContainer?;private _markerColors;private _markerSources;private _connectGeneration;private _styleGeneration;private readonly readiness;private readonly controlsReadiness;private ownedFeatures?;private externalFeatures?;private externalFeatureWorkStarted;private externalIdStyle;private externalIdCounter;private readonly externalSourceIds;private readonly appliedGeoLabels;private readonly peerEvents;private optionalFeatureWorkStarted;
1153
1180
  /** Explicit basemap layer opt-in; all other basemap features remain noninteractive. Each entry
1154
1181
  * names one layer by `layerId`, or selects every current style layer whose `source`,
1155
1182
  * `sourceLayer` and `layerType` match the fields it gives (for example
@@ -1185,6 +1212,16 @@ get map():LyraMapInstance|undefined;
1185
1212
  */
1186
1213
  whenStyleReady():Promise<void>;
1187
1214
  /**
1215
+ * Resolves after the current connection's configured native controls, including default
1216
+ * attribution unless disabled, are installed and their chrome is synchronized. Callable before
1217
+ * deferred construction, including initialization="interaction". An explicitly empty control
1218
+ * configuration resolves after construction. Rejects with AbortError on disconnect or controls
1219
+ * replacement, and MapReadinessError on initialization, invalid configuration or control loading
1220
+ * failure. Style-only changes preserve this barrier. A completed promise describes its captured
1221
+ * configuration; call again after assigning controls.
1222
+ */
1223
+ whenControlsReady():Promise<void>;
1224
+ /**
1188
1225
  * Resolves when the current style, camera, sources and component preparation are idle. Each
1189
1226
  * call checks current work; the first idle is not reused after a later update. Rejects with
1190
1227
  * AbortError on disconnect/style replacement and MapReadinessError on a current peer or
@@ -1349,7 +1386,7 @@ undoDrawing():boolean;
1349
1386
  completeDrawing():boolean;
1350
1387
  /** Cancels an armed or started drawing and clears its temporary resources and mode. An armed
1351
1388
  * mode whose drawing runtime is still loading is cancelled synchronously as well. */
1352
- cancelDrawing():boolean;private cancelMapDrawing;private resetDrawingMode;private syncDrawing;private drawingRuntime;private drawingHost;private showDrawingError;private drawingErrorMessage;private drawMapCenter;private cancelMapPick;private pickMapCenter;private handleMapInteraction;private cancelFeaturePreparation;private generatedFeatureRequirements;private externalSourceEffects?;private externalLayerInput;private dataLayerOrderGroups;private nativeLayerOrder;private applyDataLayerOrder;private reconcileGeneratedLayers;private resolveStyleOverride;private appliedChoroplethPaintKey?;private applyChoropleth;private choroplethColorExpression;private choroplethNoDataColor;private choroplethOutlineExpression;private resolveChoroplethSourceId;private removeChoropleth;private readonly appliedLayerPaintKeys;private readonly appliedRowRanges;private applyDataLayers;private applyDataLayerRange;private applyDataLayerRendering;private paintDataLayer;private applyGeoLabel;private applyGeometryLayers;private paintGeometryLayers;private lineColor;private mutedPointOpacity;private paintPoints;private pointIconColor;private removePointIcons;private applyPointIcons;private paintPointIcons;private clusterColorExpression;private applyClusterLayers;private paintClusterLayers;private applyHeatmapLayer;private paintHeatmapLayer;private heatmapColorExpression;private styleHasTextFonts;private styleProvidesGlyphs;private resolveDataLayerSourceId;private removeDataLayer;private applyMarkers;private readonly configuredMarkerElements;private configureMarkerInteraction;private emitMarkerActivation;private get effectiveMapLabel();private popupId;private configurePopupSemantics;private stopObservingMapAllocation;private observeMapAllocation;private stopObservingPeerChrome;private peerControlsResizeObserver?;private peerControlsResizeFrame?;private schedulePeerControlInsets;private measurePeerControlInsets;private syncPeerChromeParts;private observePeerChrome;private syncPopupSemantics;private syncMapSemantics;private formatDistance;private formatArea;private drawingSummary;private drawingLabelText;private formatCount;private legendLimitText;private onLegendSlotChange;
1389
+ cancelDrawing():boolean;private cancelMapDrawing;private resetDrawingMode;private syncDrawing;private drawingRuntime;private drawingHost;private showDrawingError;private drawingErrorMessage;private drawMapCenter;private cancelMapPick;private pickMapCenter;private handleMapInteraction;private cancelFeaturePreparation;private generatedFeatureRequirements;private externalSourceEffects?;private externalLayerInput;private dataLayerOrderGroups;private nativeLayerOrder;private applyDataLayerOrder;private reconcileGeneratedLayers;private resolveStyleOverride;private appliedChoroplethPaintKey?;private applyChoropleth;private choroplethColorExpression;private choroplethNoDataColor;private choroplethOutlineExpression;private resolveChoroplethSourceId;private removeChoropleth;private readonly appliedLayerPaintKeys;private readonly appliedRowRanges;private applyDataLayers;private applyDataLayerRange;private applyDataLayerRendering;private paintDataLayer;private applyGeoLabel;private applyGeometryLayers;private paintGeometryLayers;private lineColor;private mutedPointOpacity;private paintPoints;private pointIconColor;private removePointIcons;private applyPointIcons;private paintPointIcons;private clusterColorExpression;private applyClusterLayers;private paintClusterLayers;private applyHeatmapLayer;private paintHeatmapLayer;private heatmapColorExpression;private styleHasTextFonts;private styleProvidesGlyphs;private resolveDataLayerSourceId;private removeDataLayer;private applyMarkers;private readonly configuredMarkerElements;private configureMarkerInteraction;private emitMarkerActivation;private get effectiveMapLabel();private popupId;private configurePopupSemantics;private stopObservingMapAllocation;private observeMapAllocation;private stopObservingPeerChrome;private peerControlsResizeObserver?;private peerControlsResizeFrame?;private schedulePeerControlInsets;private measurePeerControlInsets;private syncPeerChromeParts;private syncPeerAttributionExpansion;private observePeerChrome;private syncPopupSemantics;private syncMapSemantics;private formatDistance;private formatArea;private drawingSummary;private drawingLabelText;private formatCount;private legendLimitText;private onLegendSlotChange;
1353
1390
  /**
1354
1391
  * The continuous gradient bar plus its two endpoint captions, or nothing when `legendGradient`
1355
1392
  * holds fewer than two usable stops. Part names mirror `lr-heatmap`'s