@aceshooting/lyra-ui 27.0.0 → 28.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -63
- package/README.md +7 -3
- package/dist/cli/css-declarations.mjs +1 -0
- package/dist/cli/lyra-rename-ledger.mjs +1 -1
- package/dist/cli/migrate-wa.mjs +9 -4
- package/dist/cli/migration-contract.json +1 -1
- package/dist/cli/migration-renames.mjs +2 -2
- package/dist/cli/migration-theme-scopes.mjs +3 -0
- package/dist/cli/theme-scope-vocabulary.generated.mjs +1 -0
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
- package/dist/components/agent-tools/agent-question/agent-question.class.js +1 -1
- package/dist/components/agent-tools/agent-run/agent-run.class.js +1 -1
- package/dist/components/agent-tools/agent-trace/agent-trace.class.js +1 -1
- package/dist/components/agent-tools/approval-queue/approval-queue.class.js +1 -1
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +1 -1
- package/dist/components/agent-tools/background-runs/background-runs.class.js +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.js +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.js +1 -1
- package/dist/components/agent-tools/change-review/change-review.class.js +1 -1
- package/dist/components/agent-tools/commit-card/commit-card.class.js +1 -1
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +1 -1
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.js +1 -1
- package/dist/components/agent-tools/connector-manager/connector-manager.class.js +1 -1
- package/dist/components/agent-tools/context-inspector/context-inspector.class.js +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
- package/dist/components/agent-tools/eval-result/eval-result.class.js +1 -1
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +1 -1
- package/dist/components/agent-tools/mcp-app/mcp-app.class.js +1 -1
- package/dist/components/agent-tools/permission-grant/permission-grant.class.js +1 -1
- package/dist/components/agent-tools/permission-rules/permission-rules.class.js +1 -1
- package/dist/components/agent-tools/policy-summary/policy-summary.class.js +1 -1
- package/dist/components/agent-tools/prompt-studio/prompt-studio.class.js +1 -1
- package/dist/components/agent-tools/result-card/result-field.class.js +1 -1
- package/dist/components/agent-tools/schema-viewer/schema-viewer.class.js +1 -1
- package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +1 -1
- package/dist/components/agent-tools/stack-trace/stack-trace.class.js +1 -1
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
- package/dist/components/agent-tools/task-list/task-list.class.js +2 -2
- package/dist/components/agent-tools/terminal/terminal.class.js +1 -1
- package/dist/components/agent-tools/test-results/test-results.class.js +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js +1 -1
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.js +1 -1
- package/dist/components/agent-tools/tool-call-block/tool-call-block.class.js +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +1 -1
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +1 -1
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.js +1 -1
- package/dist/components/agent-tools/tool-result-view/tool-result-view.class.js +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js +1 -1
- package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +1 -1
- package/dist/components/agent-tools/trace-tree/trace-tree.class.js +2 -2
- package/dist/components/charts/chart/box-plot.class.d.ts +4 -2
- package/dist/components/charts/chart/box-plot.class.js +6 -5
- package/dist/components/charts/chart/chart-token-cache.js +2 -2
- package/dist/components/charts/chart/chart.class.d.ts +6 -4
- package/dist/components/charts/chart/chart.class.js +8 -7
- package/dist/components/charts/chart/histogram.class.js +1 -1
- package/dist/components/charts/chart/lite-chart.class.js +1 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +1 -1
- package/dist/components/conversation/audio-visualizer/audio-visualizer.class.js +1 -1
- package/dist/components/conversation/branch-picker/branch-picker.class.js +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.js +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.js +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.class.js +1 -1
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +1 -1
- package/dist/components/conversation/handoff-divider/handoff-divider.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
- package/dist/components/conversation/markdown/markdown.class.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.class.js +1 -1
- package/dist/components/conversation/message-feedback/message-feedback.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.js +1 -1
- package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.js +1 -1
- package/dist/components/conversation/prompt-queue/prompt-queue.class.js +1 -1
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
- package/dist/components/conversation/realtime-session/realtime-session.class.js +1 -1
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.js +1 -1
- package/dist/components/conversation/stream-status/stream-status.class.js +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.class.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.js +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.js +1 -1
- package/dist/components/data/calendar/calendar.class.js +1 -1
- package/dist/components/data/condition-builder/condition-builder.class.js +1 -1
- package/dist/components/data/context-meter/context-meter.class.js +1 -1
- package/dist/components/data/data-grid/data-grid.class.d.ts +2 -2
- package/dist/components/data/data-grid/data-grid.class.js +3 -3
- package/dist/components/data/document-library/document-library.class.js +1 -1
- package/dist/components/data/env-list/env-list.class.js +1 -1
- package/dist/components/data/file-tree/file-tree.class.d.ts +2 -2
- package/dist/components/data/file-tree/file-tree.class.js +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
- package/dist/components/data/flow-controls/flow-controls.class.js +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
- package/dist/components/data/flow-node/flow-node.class.js +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.class.js +1 -1
- package/dist/components/data/funnel/funnel.class.js +1 -1
- package/dist/components/data/gauge/gauge.class.js +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +1 -1
- package/dist/components/data/heatmap/heatmap.class.d.ts +2 -1
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/pagination/pagination.class.d.ts +2 -0
- package/dist/components/data/pagination/pagination.class.js +1 -1
- package/dist/components/data/pagination/pagination.styles.js +1 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.js +1 -1
- package/dist/components/data/sparkline/sparkline.class.js +1 -1
- package/dist/components/data/stat/stat.class.js +1 -1
- package/dist/components/data/table/table.class.d.ts +23 -2
- package/dist/components/data/table/table.class.js +5 -3
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.js +1 -1
- package/dist/components/data/tree/tree.class.js +1 -1
- package/dist/components/data/word-cloud/word-cloud.class.js +1 -1
- package/dist/components/forms/button/button.class.js +1 -1
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +8 -4
- package/dist/components/forms/color-picker/color-picker.class.js +2 -2
- package/dist/components/forms/combobox/combobox.class.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.js +1 -1
- package/dist/components/forms/currency-picker/currency-picker.class.js +1 -1
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/date-picker/date-picker.class.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +7 -4
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +5 -5
- package/dist/components/forms/icon-button/icon-button.class.d.ts +4 -0
- package/dist/components/forms/icon-button/icon-button.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.js +1 -1
- package/dist/components/forms/input/input.class.js +1 -1
- package/dist/components/forms/input/native-time-input.class.js +1 -1
- package/dist/components/forms/input/number-input.class.js +1 -1
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.js +1 -1
- package/dist/components/forms/radio/radio-group.class.js +1 -1
- package/dist/components/forms/radio/radio.class.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.js +4 -4
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/signature-pad/signature-pad.class.js +1 -1
- package/dist/components/forms/slider/slider.class.js +1 -1
- package/dist/components/forms/switch/switch.class.js +1 -1
- package/dist/components/forms/textarea/textarea.class.js +1 -1
- package/dist/components/forms/time-range/time-range.class.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.js +1 -1
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +70 -7
- package/dist/components/layout/app-rail/app-rail.class.js +16 -4
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.js +1 -1
- package/dist/components/layout/breadcrumb/breadcrumb.class.js +1 -1
- package/dist/components/layout/card/card.class.js +1 -1
- package/dist/components/layout/carousel/carousel.class.js +1 -1
- package/dist/components/layout/command-palette/command-palette.class.js +1 -1
- package/dist/components/layout/dashboard-grid/dashboard-grid.class.js +1 -1
- package/dist/components/layout/details/accordion-item.class.js +1 -1
- package/dist/components/layout/details/details.class.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.js +1 -1
- package/dist/components/layout/menu/menu.class.js +1 -1
- package/dist/components/layout/menubar/menubar.class.js +1 -1
- package/dist/components/layout/multi-split/multi-split.class.js +1 -1
- package/dist/components/layout/navigation-menu/navigation-menu.class.js +1 -1
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/reorder-list/reorder-item.class.js +1 -1
- package/dist/components/layout/reorder-list/reorder-list.class.js +1 -1
- package/dist/components/layout/responsive-panel/responsive-panel.class.js +1 -1
- package/dist/components/layout/scroller/scroller.class.js +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +7 -4
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/split-panel/split-panel.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.styles.js +1 -1
- package/dist/components/layout/widget/widget.class.js +1 -1
- package/dist/components/media/animated-image/animated-image.class.js +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.class.js +2 -2
- package/dist/components/media/av-player/av-player.class.js +1 -1
- package/dist/components/media/avatar-group/avatar-group.class.js +1 -1
- package/dist/components/media/drop-zone/drop-zone.class.js +1 -1
- package/dist/components/media/file-icon/file-icon.class.js +1 -1
- package/dist/components/media/file-input/file-input.class.js +1 -1
- package/dist/components/media/flag/flag.class.js +1 -1
- package/dist/components/media/image-comparer/image-comparer.class.js +1 -1
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +2 -1
- package/dist/components/media/image-viewer/image-viewer.class.js +4 -2
- package/dist/components/media/image-viewer/image-viewer.styles.js +1 -1
- package/dist/components/media/lightbox/lightbox.class.js +1 -1
- package/dist/components/media/map/map.class.js +1 -1
- package/dist/components/media/media-card/media-card.class.js +1 -1
- package/dist/components/media/pan-zoom/pan-zoom.class.js +1 -1
- package/dist/components/media/qr-code/qr-code.class.d.ts +2 -2
- package/dist/components/media/qr-code/qr-code.class.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.js +1 -1
- package/dist/components/media/video/video.class.js +1 -1
- package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +1 -1
- package/dist/components/overlays/alert/alert.class.js +1 -1
- package/dist/components/overlays/badge/tag.class.js +1 -1
- package/dist/components/overlays/callout/callout.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.class.js +1 -1
- package/dist/components/overlays/chip/chip.class.js +1 -1
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/confirm.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/kbd/kbd.class.js +1 -1
- package/dist/components/overlays/overlay/popover.class.js +1 -1
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/components/overlays/progress/progress-bar.class.js +1 -1
- package/dist/components/overlays/progress/progress-ring.class.js +1 -1
- package/dist/components/overlays/rating/rating.class.js +1 -1
- package/dist/components/overlays/skeleton/skeleton.class.js +1 -1
- package/dist/components/overlays/spinner/spinner.class.js +1 -1
- package/dist/components/overlays/toast/toast-item.class.js +1 -1
- package/dist/components/overlays/toast/toast.class.js +1 -1
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +1 -1
- package/dist/components/retrieval/claim-evidence/claim-evidence.class.js +1 -1
- package/dist/components/retrieval/community-card/community-card.class.js +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.class.js +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +1 -1
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.js +1 -1
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.class.js +1 -1
- package/dist/components/retrieval/grounding-summary/grounding-summary.class.js +2 -2
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +1 -1
- package/dist/components/retrieval/knowledge-base/knowledge-base.class.js +1 -1
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.js +1 -1
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +1 -1
- package/dist/components/retrieval/memory-panel/memory-panel.class.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +1 -1
- package/dist/components/retrieval/node-palette/node-palette.class.js +1 -1
- package/dist/components/retrieval/path-strip/path-strip.class.js +1 -1
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.js +1 -1
- package/dist/components/retrieval/rag-answer/rag-answer.class.js +1 -1
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +1 -1
- package/dist/components/retrieval/research-progress/research-progress.class.js +1 -1
- package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.js +1 -1
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +1 -1
- package/dist/components/retrieval/retrieval-search/retrieval-search.class.js +1 -1
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.js +1 -1
- package/dist/components/retrieval/source-card/source-card.class.js +1 -1
- package/dist/components/retrieval/source-list/source-list.class.js +1 -1
- package/dist/components/retrieval/source-picker/source-picker.class.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.js +1 -1
- package/dist/components/utility/diff-view/diff-view.class.js +1 -1
- package/dist/components/utility/export-button/export-button.class.js +1 -1
- package/dist/components/utility/icon/icon.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.js +1 -1
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
- package/dist/components/utility/poll-status/poll-status.class.js +1 -1
- package/dist/components/utility/random-content/random-content.class.js +1 -1
- package/dist/components/utility/tour/tour.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +2 -2
- package/dist/components/viewers/document-compare/document-compare.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.js +1 -1
- package/dist/components/viewers/geojson-view/geojson-view.class.js +1 -1
- package/dist/components/viewers/geojson-view/geojson-viewer.class.js +1 -1
- package/dist/components/viewers/highlight-layer/highlight-layer.class.js +1 -1
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.class.d.ts +1 -1
- package/dist/components/viewers/page-rail/page-rail.class.js +3 -3
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +1 -1
- package/dist/events.d.ts +6 -1
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/default-strings/agent-tools.generated.js +1 -0
- package/dist/internal/default-strings/charts.generated.js +1 -0
- package/dist/internal/default-strings/conversation.generated.js +1 -0
- package/dist/internal/default-strings/data.generated.js +1 -0
- package/dist/internal/default-strings/forms.generated.js +1 -0
- package/dist/internal/default-strings/layout.generated.js +1 -0
- package/dist/internal/default-strings/media.generated.js +1 -0
- package/dist/internal/default-strings/overlays.generated.js +1 -0
- package/dist/internal/default-strings/retrieval.generated.js +1 -0
- package/dist/internal/default-strings/shared.generated.js +1 -0
- package/dist/internal/default-strings/utility.generated.js +1 -0
- package/dist/internal/default-strings/viewers.generated.js +5 -0
- package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.production.js +1 -1
- package/dist/internal/document-tokens.d.ts +11 -0
- package/dist/internal/document-tokens.generated.js +15 -0
- package/dist/internal/document-tokens.js +3 -0
- package/dist/internal/form-associated.d.ts +1 -1
- package/dist/internal/form-associated.js +1 -1
- package/dist/internal/glass-surface.styles.js +1 -1
- package/dist/internal/host-tokens.styles.js +1 -0
- package/dist/internal/image-zoom.js +1 -0
- package/dist/internal/intl-cache.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +2 -2
- package/dist/internal/lyra-element.d.ts +4 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/nonmodal-overlay-manager.js +1 -1
- package/dist/internal/opaque-content-border.styles.js +1 -1
- package/dist/internal/open-overlay-ancestors.js +1 -0
- package/dist/internal/open-overlay-raise.styles.js +1 -0
- package/dist/internal/optional-peer-failure.js +1 -0
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/prefix.js +1 -1
- package/dist/internal/specialist-host-tokens.styles.js +1 -0
- package/dist/internal/specialist-tokens.generated.js +2 -0
- package/dist/internal/step-value.js +1 -1
- package/dist/internal/theme-observation.js +1 -1
- package/dist/internal/theme-scopes.d.ts +11 -0
- package/dist/internal/theme-scopes.js +1 -0
- package/dist/looks/shadcn.css +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/styles/design-tokens.css +1 -1
- package/dist/styles/tokens-root.css +1 -1
- package/dist/surfaces/glass.css +1 -1
- package/dist/testing/happy-dom-shims.d.ts +22 -1
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/interaction-drivers.d.ts +66 -7
- package/dist/testing/interaction-drivers.js +1 -1
- package/dist/testing/jsdom-shims.d.ts +70 -0
- package/dist/testing/jsdom-shims.js +1 -0
- package/dist/theme/look-inputs.d.ts +1 -1
- package/dist/theme/look-inputs.js +37 -41
- package/dist/theme/theme.d.ts +13 -0
- package/dist/theme/theme.js +1 -1
- package/dist/theme.css +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/scoped-registry.d.ts +3 -0
- package/dist/utilities/scoped-registry.js +1 -1
- package/dist/utilities/theme-scopes.d.ts +1 -0
- package/dist/utilities/theme-scopes.js +1 -0
- package/dist/utilities/tokens.d.ts +1 -0
- package/dist/utilities/tokens.js +1 -0
- package/llms/components/lr-app-rail.md +51 -4
- package/llms/components/lr-box-plot.md +5 -0
- package/llms/components/lr-chart.md +6 -0
- package/llms/components/lr-emoji-picker.md +13 -8
- package/llms/components/lr-heatmap.md +10 -2
- package/llms/components/lr-icon-button.md +13 -1
- package/llms/components/lr-image-viewer.md +8 -0
- package/llms/components/lr-pagination.md +4 -2
- package/llms/components/lr-segmented.md +7 -3
- package/llms/components/lr-table.md +14 -12
- package/llms/components/lr-thread-list.md +4 -3
- package/llms/migration.md +9 -0
- package/llms/peers.md +1 -1
- package/llms/shared/events-and-types.md +41 -0
- package/llms/shared/frameworks-and-ssr.md +16 -0
- package/llms/shared/imports-and-registration.md +4 -3
- package/llms/shared/native-styles-and-utilities.md +38 -3
- package/llms/shared/styles-and-tokens.md +242 -102
- package/llms/shared/testing-and-utilities.md +104 -7
- package/llms/shared.md +445 -115
- package/llms/tokens.md +31 -49
- package/locales.json +138 -138
- package/package.json +16 -8
- package/registrations.json +1 -1
- package/dist/internal/default-strings.generated.js +0 -5
- package/dist/internal/specialist-tokens.styles.js +0 -1
- package/dist/internal/tokens/palette.styles.js +0 -1
- package/dist/internal/tokens.styles.js +0 -1
|
@@ -10,7 +10,7 @@ that need form-value or validity behavior: it supplies
|
|
|
10
10
|
`form`/`labels`/`validity`/`validationMessage`/`willValidate`. The shim is a no-op where the
|
|
11
11
|
platform already provides internals, so it is safe in a shared setup file.
|
|
12
12
|
|
|
13
|
-
`installHappyDomShims()` installs that shim plus
|
|
13
|
+
`installHappyDomShims()` installs that shim plus Happy DOM gap fixes, each a no-op where
|
|
14
14
|
the engine already behaves (feature-detected, so safe in a shared setup file and never part of a
|
|
15
15
|
production bundle): `installHappyDomShadowFocusShim()` makes `ShadowRoot.activeElement` return
|
|
16
16
|
`null` for a sibling or detached shadow root instead of throwing a `TypeError` (own-root and
|
|
@@ -20,6 +20,73 @@ only targets in the element's own or an ancestor shadow scope (sibling and desce
|
|
|
20
20
|
targets are dropped); `null` clears it and removes the attribute; a changed `aria-controls`
|
|
21
21
|
attribute resolves ids in the element's own root instead.
|
|
22
22
|
|
|
23
|
+
`installHappyDomShims()` also calls `installHappyDomCascadeLayerShim()`. Happy DOM 20 drops every
|
|
24
|
+
rule inside an `@layer` block from its CSSOM, while `CSS.supports('at-rule(@layer)')` still reports
|
|
25
|
+
support. Lyra's stylesheets declare their probe properties (`--_lr-style-resolver`, the
|
|
26
|
+
`--_lr-*-installed` markers, the token-layer sentinel) inside cascade layers, so under Happy DOM
|
|
27
|
+
`theme.css` looked absent: `setLyraStyle()` warned that a stylesheet was missing and took its
|
|
28
|
+
no-stylesheet fallback. The shim passes the text that `CSSStyleSheet.replaceSync()`/`replace()`
|
|
29
|
+
parse (the path used by `<style>`, `<link rel="stylesheet">` and constructed sheets) through the
|
|
30
|
+
exported `flattenCascadeLayers(css)`. That function drops `@layer a, b;` statements and unwraps
|
|
31
|
+
each layer block in place, leaving comments, strings, `url(...)` and `@import … layer(x)` as they
|
|
32
|
+
are. The probes then resolve as they do in a browser. Layer precedence is not modelled: the
|
|
33
|
+
unwrapped rules cascade in source order, so assert behaviour, not values that depend on which layer
|
|
34
|
+
wins. `insertRule()` is unchanged. The shim detects the defect by parsing a layered rule, so it is
|
|
35
|
+
a no-op in every browser and without a `CSSStyleSheet` global; it installs once and returns a
|
|
36
|
+
function that restores the original methods. Install it before any stylesheet is parsed (in the
|
|
37
|
+
same `setupFiles` entry): a sheet parsed earlier keeps the rules it dropped.
|
|
38
|
+
|
|
39
|
+
`installHappyDomShims()` also supplies `ShadowRoot.styleSheets` when the environment lacks it.
|
|
40
|
+
The live collection lists non-null `<style>` and stylesheet-link sheets in that shadow tree,
|
|
41
|
+
in tree order, with indexed access, `length`, `item()` and iteration. Retained collections reflect
|
|
42
|
+
insertions and removals; nested shadow trees and constructed `adoptedStyleSheets` remain separate.
|
|
43
|
+
This lets marked application scopes discover and adopt their token provider under Happy DOM.
|
|
44
|
+
An existing platform collection is never replaced, and plain Node remains unchanged.
|
|
45
|
+
|
|
46
|
+
When Happy DOM lacks the HTML `dir="ltr"`/`dir="rtl"` presentational hints,
|
|
47
|
+
`installHappyDomShims()` adds zero-specificity direction rules to the document head. This restores
|
|
48
|
+
computed direction and inherited component direction while preserving explicit author CSS.
|
|
49
|
+
The shim probes support before installing, is idempotent, and never runs in a native browser.
|
|
50
|
+
It does not emulate `dir="auto"` text analysis or the `:dir()` pseudo-class.
|
|
51
|
+
|
|
52
|
+
### jsdom: `installJsdomShims()`
|
|
53
|
+
|
|
54
|
+
jsdom implements no `adoptedStyleSheets`, so Lit renders one `<style>` element per component
|
|
55
|
+
shadow root. jsdom registers each of those sheets on the document, not the shadow root, and every
|
|
56
|
+
`getComputedStyle()` call then matches the element against every rule of every sheet. With a few
|
|
57
|
+
hundred Lyra elements on the page a single computed-style read can take over 100 ms, and Lyra
|
|
58
|
+
reads computed style to decide which slotted text is visible, so whole tests slow to a crawl.
|
|
59
|
+
|
|
60
|
+
`installJsdomShims()` installs the two jsdom shims. `installJsdomAdoptedStyleSheetsShim()` adds an inert
|
|
61
|
+
`adoptedStyleSheets` to `Document` and `ShadowRoot`, so Lit adopts each component's constructed
|
|
62
|
+
stylesheet instead of appending `<style>` elements. Adopted sheets are stored and read back (the
|
|
63
|
+
same array until reassigned, so `push()` persists) but never applied; jsdom could not cascade them
|
|
64
|
+
per shadow root anyway. `getComputedStyle()` then sees only the document's own sheets and inline
|
|
65
|
+
styles, so assert behaviour and DOM rather than component styling. A jsdom release without
|
|
66
|
+
`CSSStyleSheet.prototype.replace()`/`replaceSync()`, which Lit also requires, gets inert versions
|
|
67
|
+
that record the text. The shim installs only when `navigator.userAgent` carries jsdom's
|
|
68
|
+
`jsdom/<version>` signature and `adoptedStyleSheets` is missing, so it is a no-op in browsers,
|
|
69
|
+
under Happy DOM and in plain Node projects. It installs once and returns a function that removes
|
|
70
|
+
what it added.
|
|
71
|
+
|
|
72
|
+
jsdom's `ElementInternals` has no form association, so every Lyra form control (`lr-button`,
|
|
73
|
+
`lr-input`, `lr-checkbox`, …) throws in its constructor there. `installJsdomFormAssociatedShim()`
|
|
74
|
+
adds, only where missing, an inert `setFormValue()`, a `setValidity()` that `validity`,
|
|
75
|
+
`validationMessage`, `checkValidity()` and `reportValidity()` reflect, `willValidate`, `form` (the
|
|
76
|
+
host's closest `<form>`) and a `Set` for `states`. Nothing is submitted and no `invalid` event
|
|
77
|
+
fires. It has the same jsdom detection, install-once and restore behaviour.
|
|
78
|
+
|
|
79
|
+
Lit decides whether it can adopt stylesheets when its module is first evaluated, so call the shim
|
|
80
|
+
in a `setupFiles` entry before anything imports Lit or a Lyra component. Importing
|
|
81
|
+
`@aceshooting/lyra-ui/testing` does not load Lit:
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
// vitest.setup.ts (environment: 'jsdom')
|
|
85
|
+
import { installJsdomShims } from '@aceshooting/lyra-ui/testing';
|
|
86
|
+
|
|
87
|
+
installJsdomShims();
|
|
88
|
+
```
|
|
89
|
+
|
|
23
90
|
## Constructing a validated test event: `createLyraEvent()`
|
|
24
91
|
|
|
25
92
|
`@aceshooting/lyra-ui/testing` also exports
|
|
@@ -52,8 +119,9 @@ semantics of their own that this factory does not model.
|
|
|
52
119
|
|
|
53
120
|
## Driving a component's real activation path: interaction drivers
|
|
54
121
|
|
|
55
|
-
For the exact gap `createLyraEvent()` leaves open — choosing an option,
|
|
56
|
-
decision, toggling a switch, activating a step
|
|
122
|
+
For the exact gap `createLyraEvent()` leaves open — choosing an option, a swatch or a currency,
|
|
123
|
+
submitting a confirm decision, toggling a switch, activating a step, opening and closing a
|
|
124
|
+
popover — `@aceshooting/lyra-ui/testing` exports a small
|
|
57
125
|
set of typed interaction drivers, one per interaction, that go through the real component's own
|
|
58
126
|
activation path (its own shadow-part lookup and `.click()`, the same as its own tests) instead of
|
|
59
127
|
a downstream suite reverse-engineering internal detail shapes or shadow-part selectors itself:
|
|
@@ -61,17 +129,43 @@ a downstream suite reverse-engineering internal detail shapes or shadow-part sel
|
|
|
61
129
|
```ts
|
|
62
130
|
import {
|
|
63
131
|
chooseOption,
|
|
132
|
+
chooseSwatch,
|
|
133
|
+
chooseCurrency,
|
|
134
|
+
openPopover,
|
|
135
|
+
closePopover,
|
|
64
136
|
submitConfirmDecision,
|
|
65
137
|
toggleSwitch,
|
|
66
138
|
activateStep,
|
|
67
139
|
} from '@aceshooting/lyra-ui/testing';
|
|
68
140
|
|
|
69
141
|
await chooseOption(combobox, 'banana'); // opens the listbox, clicks the matching [part="option"] row
|
|
142
|
+
await chooseSwatch(swatchPicker, 'ruby'); // clicks the matching swatch radio
|
|
143
|
+
await chooseCurrency(currencyPicker, 'EUR'); // opens the composed listbox, clicks the EUR option
|
|
144
|
+
await openPopover(popover); // clicks the slotted (or `for`) trigger, waits for lr-after-show
|
|
145
|
+
await closePopover(popover); // presses Escape, waits for lr-after-hide; { via: 'trigger' } clicks instead
|
|
70
146
|
await submitConfirmDecision(confirmBar, 'approved'); // clicks [part="approve-button"]
|
|
71
147
|
await toggleSwitch(switchEl); // calls switchEl.click(), lr-switch's own activation path
|
|
72
148
|
await activateStep(stepper, 'review'); // clicks the [part="step"] button for that stepId (or pass an index)
|
|
73
149
|
```
|
|
74
150
|
|
|
151
|
+
`chooseSwatch(picker, value)` clicks the `<lr-swatch-picker>` radio whose value matches (the first
|
|
152
|
+
enabled one when values repeat). When it resolves, `lr-change` (only if the selection moved) and
|
|
153
|
+
`lr-activate` have fired. `chooseCurrency(picker, code)` drives the select, or the lazily loaded
|
|
154
|
+
combobox of a `searchable` picker, that `<lr-currency-picker>` composes. The code must match the
|
|
155
|
+
catalog exactly (`"EUR"`). When it resolves, the picker has emitted `input`, `lr-input`, `change`
|
|
156
|
+
and `lr-change` once if the value changed.
|
|
157
|
+
|
|
158
|
+
`openPopover(popover, { timeoutMs? })` clicks the `<lr-popover>` interaction trigger (the slotted
|
|
159
|
+
`trigger` element, else its `for` target) and resolves after `lr-show` and `lr-after-show`. A
|
|
160
|
+
`hover`/`focus` popover opens and pins, as for a user's click. `closePopover(popover, { via?,
|
|
161
|
+
timeoutMs? })` presses Escape on the focused element by default, which closes the topmost overlay,
|
|
162
|
+
or clicks the trigger again with `via: 'trigger'`. It resolves after `lr-hide` and `lr-after-hide`,
|
|
163
|
+
with focus back on the trigger. Both resolve at once when the popover is already in the requested
|
|
164
|
+
state. They throw when the interaction is refused: an `lr-show`/`lr-hide` veto, a disabled popover
|
|
165
|
+
or trigger, `trigger="manual"`, no trigger, or Escape going to a newer overlay. Use `show()`/`hide()`
|
|
166
|
+
for manual and `showAt()` popovers. A missing `lr-after-*` event rejects after `timeoutMs`
|
|
167
|
+
(default 2000).
|
|
168
|
+
|
|
75
169
|
`chooseOption()` accepts any of `<lr-combobox>`, `<lr-select>`, `<lr-model-select>`,
|
|
76
170
|
`<lr-locale-picker>` and `<lr-voice-picker>` — every component that independently implements the
|
|
77
171
|
same `[part="option"]` row plus `data-value` delegated-click pattern for its own listbox/popup.
|
|
@@ -87,13 +181,14 @@ immediately after it see the render reached by that interaction. Host-driven asy
|
|
|
87
181
|
still need their own completion check. Each driver also throws a plain `Error` — never a
|
|
88
182
|
silent no-op — when the requested interaction cannot actually happen: the target is disabled, the
|
|
89
183
|
option owner/stepper is read-only or has no matching row/step currently rendered, or the confirm
|
|
90
|
-
bar is already decided. That is the exact failure mode a hand-rolled event misses (for example
|
|
184
|
+
bar is already decided, or a popover's lifecycle event was vetoed. That is the exact failure mode a hand-rolled event misses (for example
|
|
91
185
|
dispatching a confirm event without `cancelable`, which makes a `preventDefault()`-based
|
|
92
186
|
pending-state handler a silent no-op that still looks tested) — these drivers exercise the
|
|
93
187
|
component for real, so a precondition that blocks the interaction is surfaced as a thrown error
|
|
94
188
|
instead of quietly doing nothing.
|
|
95
189
|
|
|
96
|
-
Pure DOM operations only (`Element.click()`, shadow-part queries,
|
|
190
|
+
Pure DOM operations only (`Element.click()`, an Escape `KeyboardEvent`, shadow-part queries,
|
|
191
|
+
public properties) — no
|
|
97
192
|
`@web/test-runner`/CDP-only helper, so they also run under a downstream suite's own
|
|
98
193
|
happy-dom/jsdom environment, not only a real browser.
|
|
99
194
|
|
|
@@ -407,7 +502,8 @@ arrowPadding?: number; hoverBridge?: HTMLElement; onPlaced?: (result: PlacementR
|
|
|
407
502
|
(`next`); the `value` getter/setter (`next`); `defaultValue`; `customError`; `disabled`; `required`; readonly
|
|
408
503
|
`effectiveDisabled`; the `form` getter/setter (`owner`); readonly `labels`, `validity`,
|
|
409
504
|
`validationMessage`, and `willValidate`; `setFormValue(next)`; `getForm()`; `checkValidity()`;
|
|
410
|
-
`reportValidity()`; `setCustomValidity(message)`; `resetValidity()`; `formResetCallback()`;
|
|
505
|
+
`reportValidity()`; `setCustomValidity(message)`; `resetValidity()`; `formResetCallback()`;
|
|
506
|
+
`formDisabledCallback(disabled)`; and
|
|
411
507
|
`formStateRestoreCallback(state, reason)`.
|
|
412
508
|
Writing `null` to `defaultValue` removes its markup value and resets the default to the adapter's
|
|
413
509
|
empty value; reading it still returns `TValue`. This does not overwrite a dirty live value.
|
|
@@ -430,7 +526,8 @@ HTMLFormElement | null; set form(owner: FormOwnerValue); readonly labels: NodeLi
|
|
|
430
526
|
validity: ValidityState; readonly validationMessage: string; readonly willValidate: boolean;
|
|
431
527
|
setFormValue(next: TValue): void; getForm(): HTMLFormElement | null; checkValidity(): boolean;
|
|
432
528
|
reportValidity(): boolean; setCustomValidity(message: string): void; resetValidity(): void;
|
|
433
|
-
formResetCallback(): void;
|
|
529
|
+
formResetCallback(): void; formDisabledCallback(disabled: boolean): void;
|
|
530
|
+
formStateRestoreCallback(state: FormSubmissionValue, reason:
|
|
434
531
|
'autocomplete' | 'restore'): void }`. The exported subclass seam is
|
|
435
532
|
`FormAssociatedSubclassInterface<TValue> { protected captureLiveValueCheckpoint(): { readonly
|
|
436
533
|
value: TValue; readonly dirty: boolean }; protected restoreLiveValueCheckpoint(checkpoint: {
|