@adia-ai/web-components 0.0.1
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/README.md +195 -0
- package/a2ui/dockables/action.js +152 -0
- package/a2ui/dockables/base.js +30 -0
- package/a2ui/dockables/controller.js +97 -0
- package/a2ui/dockables/data-source.js +103 -0
- package/a2ui/dockables/index.js +6 -0
- package/a2ui/dockables/lifecycle.js +84 -0
- package/a2ui/dockables/provider.js +59 -0
- package/a2ui/index.js +19 -0
- package/a2ui/manifest-runtime.js +226 -0
- package/a2ui/registry.js +200 -0
- package/a2ui/renderer.js +361 -0
- package/a2ui/root.js +152 -0
- package/a2ui/stream.js +243 -0
- package/a2ui/surface-manifest.js +294 -0
- package/a2ui/surface.js +222 -0
- package/a2ui/wire-factory.js +134 -0
- package/a2ui/wiring-engine.js +209 -0
- package/a2ui/wiring-registry.js +342 -0
- package/components/accordion/accordion.a2ui.json +129 -0
- package/components/accordion/accordion.css +133 -0
- package/components/accordion/accordion.js +125 -0
- package/components/accordion/accordion.yaml +527 -0
- package/components/action-list/action-list.a2ui.json +64 -0
- package/components/action-list/action-list.css +115 -0
- package/components/action-list/action-list.js +149 -0
- package/components/action-list/action-list.yaml +56 -0
- package/components/agent-artifact/agent-artifact.a2ui.json +99 -0
- package/components/agent-artifact/agent-artifact.css +94 -0
- package/components/agent-artifact/agent-artifact.js +169 -0
- package/components/agent-artifact/agent-artifact.yaml +71 -0
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +91 -0
- package/components/agent-feedback-bar/agent-feedback-bar.css +33 -0
- package/components/agent-feedback-bar/agent-feedback-bar.js +152 -0
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +65 -0
- package/components/agent-questions/agent-questions.a2ui.json +89 -0
- package/components/agent-questions/agent-questions.css +146 -0
- package/components/agent-questions/agent-questions.js +189 -0
- package/components/agent-questions/agent-questions.yaml +63 -0
- package/components/agent-reasoning/agent-reasoning.a2ui.json +100 -0
- package/components/agent-reasoning/agent-reasoning.css +273 -0
- package/components/agent-reasoning/agent-reasoning.js +469 -0
- package/components/agent-reasoning/agent-reasoning.yaml +70 -0
- package/components/agent-suggestions/agent-suggestions.a2ui.json +87 -0
- package/components/agent-suggestions/agent-suggestions.css +18 -0
- package/components/agent-suggestions/agent-suggestions.js +87 -0
- package/components/agent-suggestions/agent-suggestions.yaml +59 -0
- package/components/agent-trace/agent-trace.a2ui.json +78 -0
- package/components/agent-trace/agent-trace.css +275 -0
- package/components/agent-trace/agent-trace.js +216 -0
- package/components/agent-trace/agent-trace.yaml +53 -0
- package/components/alert/alert.a2ui.json +211 -0
- package/components/alert/alert.css +88 -0
- package/components/alert/alert.js +96 -0
- package/components/alert/alert.yaml +205 -0
- package/components/avatar/avatar.a2ui.json +215 -0
- package/components/avatar/avatar.css +159 -0
- package/components/avatar/avatar.js +157 -0
- package/components/avatar/avatar.yaml +559 -0
- package/components/badge/badge.a2ui.json +169 -0
- package/components/badge/badge.css +78 -0
- package/components/badge/badge.js +53 -0
- package/components/badge/badge.yaml +612 -0
- package/components/block/block.a2ui.json +135 -0
- package/components/block/block.css +29 -0
- package/components/block/block.js +23 -0
- package/components/block/block.yaml +115 -0
- package/components/breadcrumb/breadcrumb.a2ui.json +86 -0
- package/components/breadcrumb/breadcrumb.css +78 -0
- package/components/breadcrumb/breadcrumb.js +44 -0
- package/components/breadcrumb/breadcrumb.yaml +84 -0
- package/components/button/button.a2ui.json +172 -0
- package/components/button/button.css +168 -0
- package/components/button/button.js +60 -0
- package/components/button/button.yaml +120 -0
- package/components/calendar-picker/calendar-picker.a2ui.json +139 -0
- package/components/calendar-picker/calendar-picker.css +321 -0
- package/components/calendar-picker/calendar-picker.js +324 -0
- package/components/calendar-picker/calendar-picker.yaml +243 -0
- package/components/canvas/canvas.a2ui.json +75 -0
- package/components/canvas/canvas.css +52 -0
- package/components/canvas/canvas.js +179 -0
- package/components/canvas/canvas.yaml +62 -0
- package/components/card/card.a2ui.json +276 -0
- package/components/card/card.css +362 -0
- package/components/card/card.js +58 -0
- package/components/card/card.yaml +527 -0
- package/components/chart/chart.a2ui.json +298 -0
- package/components/chart/chart.css +512 -0
- package/components/chart/chart.js +1075 -0
- package/components/chart/chart.yaml +540 -0
- package/components/chat/chat-input.css +141 -0
- package/components/chat/chat-input.js +242 -0
- package/components/chat/chat.a2ui.json +181 -0
- package/components/chat/chat.css +193 -0
- package/components/chat/chat.js +155 -0
- package/components/chat/chat.yaml +230 -0
- package/components/check/check.a2ui.json +134 -0
- package/components/check/check.css +126 -0
- package/components/check/check.js +58 -0
- package/components/check/check.yaml +109 -0
- package/components/code/code.a2ui.json +153 -0
- package/components/code/code.css +133 -0
- package/components/code/code.js +114 -0
- package/components/code/code.yaml +163 -0
- package/components/col/col.a2ui.json +104 -0
- package/components/col/col.css +36 -0
- package/components/col/col.js +19 -0
- package/components/col/col.yaml +364 -0
- package/components/color-picker/color-picker.a2ui.json +100 -0
- package/components/color-picker/color-picker.css +182 -0
- package/components/color-picker/color-picker.js +537 -0
- package/components/color-picker/color-picker.yaml +105 -0
- package/components/command/command.a2ui.json +221 -0
- package/components/command/command.css +251 -0
- package/components/command/command.js +284 -0
- package/components/command/command.yaml +186 -0
- package/components/description-list/description-list.a2ui.json +89 -0
- package/components/description-list/description-list.css +70 -0
- package/components/description-list/description-list.js +75 -0
- package/components/description-list/description-list.yaml +59 -0
- package/components/divider/divider.a2ui.json +126 -0
- package/components/divider/divider.css +102 -0
- package/components/divider/divider.js +47 -0
- package/components/divider/divider.yaml +366 -0
- package/components/drawer/drawer.a2ui.json +199 -0
- package/components/drawer/drawer.css +342 -0
- package/components/drawer/drawer.js +263 -0
- package/components/drawer/drawer.yaml +366 -0
- package/components/embed/embed.a2ui.json +150 -0
- package/components/embed/embed.css +28 -0
- package/components/embed/embed.js +63 -0
- package/components/embed/embed.yaml +224 -0
- package/components/empty-state/empty-state.a2ui.json +133 -0
- package/components/empty-state/empty-state.css +58 -0
- package/components/empty-state/empty-state.js +87 -0
- package/components/empty-state/empty-state.yaml +314 -0
- package/components/footer/footer.a2ui.json +79 -0
- package/components/footer/footer.yaml +239 -0
- package/components/grid/grid.a2ui.json +171 -0
- package/components/grid/grid.css +37 -0
- package/components/grid/grid.js +21 -0
- package/components/grid/grid.yaml +577 -0
- package/components/header/header.a2ui.json +76 -0
- package/components/header/header.yaml +336 -0
- package/components/heatmap/heatmap.a2ui.json +150 -0
- package/components/heatmap/heatmap.css +146 -0
- package/components/heatmap/heatmap.js +246 -0
- package/components/heatmap/heatmap.yaml +131 -0
- package/components/icon/icon.a2ui.json +79 -0
- package/components/icon/icon.css +20 -0
- package/components/icon/icon.js +26 -0
- package/components/icon/icon.yaml +233 -0
- package/components/image/image.a2ui.json +261 -0
- package/components/image/image.css +76 -0
- package/components/image/image.js +102 -0
- package/components/image/image.yaml +477 -0
- package/components/index.js +85 -0
- package/components/input/input.a2ui.json +284 -0
- package/components/input/input.css +162 -0
- package/components/input/input.js +148 -0
- package/components/input/input.yaml +496 -0
- package/components/inspector/inspector.a2ui.json +67 -0
- package/components/inspector/inspector.css +31 -0
- package/components/inspector/inspector.js +133 -0
- package/components/inspector/inspector.yaml +58 -0
- package/components/kbd/kbd.a2ui.json +96 -0
- package/components/kbd/kbd.css +62 -0
- package/components/kbd/kbd.js +24 -0
- package/components/kbd/kbd.yaml +213 -0
- package/components/list/list.a2ui.json +145 -0
- package/components/list/list.css +103 -0
- package/components/list/list.js +236 -0
- package/components/list/list.yaml +122 -0
- package/components/menu/menu.a2ui.json +146 -0
- package/components/menu/menu.css +146 -0
- package/components/menu/menu.js +296 -0
- package/components/menu/menu.yaml +123 -0
- package/components/modal/modal.a2ui.json +136 -0
- package/components/modal/modal.css +153 -0
- package/components/modal/modal.js +181 -0
- package/components/modal/modal.yaml +114 -0
- package/components/noodles/noodles.a2ui.json +145 -0
- package/components/noodles/noodles.css +118 -0
- package/components/noodles/noodles.js +470 -0
- package/components/noodles/noodles.yaml +123 -0
- package/components/otp-input/otp-input.a2ui.json +104 -0
- package/components/otp-input/otp-input.css +78 -0
- package/components/otp-input/otp-input.js +170 -0
- package/components/otp-input/otp-input.yaml +218 -0
- package/components/pagination/pagination.a2ui.json +122 -0
- package/components/pagination/pagination.css +162 -0
- package/components/pagination/pagination.js +185 -0
- package/components/pagination/pagination.yaml +165 -0
- package/components/pane/pane.a2ui.json +94 -0
- package/components/pane/pane.css +166 -0
- package/components/pane/pane.js +140 -0
- package/components/pane/pane.yaml +197 -0
- package/components/pipeline-status/pipeline-status.a2ui.json +90 -0
- package/components/pipeline-status/pipeline-status.css +162 -0
- package/components/pipeline-status/pipeline-status.js +176 -0
- package/components/pipeline-status/pipeline-status.yaml +99 -0
- package/components/popover/popover.a2ui.json +181 -0
- package/components/popover/popover.css +57 -0
- package/components/popover/popover.js +170 -0
- package/components/popover/popover.yaml +257 -0
- package/components/progress/progress.a2ui.json +199 -0
- package/components/progress/progress.css +88 -0
- package/components/progress/progress.js +64 -0
- package/components/progress/progress.yaml +342 -0
- package/components/progress-row/progress-row.a2ui.json +100 -0
- package/components/progress-row/progress-row.css +57 -0
- package/components/progress-row/progress-row.js +92 -0
- package/components/progress-row/progress-row.yaml +87 -0
- package/components/radio/radio.a2ui.json +232 -0
- package/components/radio/radio.css +102 -0
- package/components/radio/radio.js +73 -0
- package/components/radio/radio.yaml +248 -0
- package/components/range/range.a2ui.json +151 -0
- package/components/range/range.css +148 -0
- package/components/range/range.js +177 -0
- package/components/range/range.yaml +188 -0
- package/components/rating/rating.a2ui.json +105 -0
- package/components/rating/rating.css +92 -0
- package/components/rating/rating.js +138 -0
- package/components/rating/rating.yaml +74 -0
- package/components/richtext/richtext.a2ui.json +82 -0
- package/components/richtext/richtext.css +225 -0
- package/components/richtext/richtext.js +74 -0
- package/components/richtext/richtext.yaml +89 -0
- package/components/row/row.a2ui.json +102 -0
- package/components/row/row.css +51 -0
- package/components/row/row.js +39 -0
- package/components/row/row.yaml +358 -0
- package/components/search/search.a2ui.json +186 -0
- package/components/search/search.css +28 -0
- package/components/search/search.js +124 -0
- package/components/search/search.yaml +154 -0
- package/components/section/section.a2ui.json +78 -0
- package/components/section/section.yaml +338 -0
- package/components/segment/segment.a2ui.json +100 -0
- package/components/segment/segment.css +81 -0
- package/components/segment/segment.js +32 -0
- package/components/segment/segment.yaml +216 -0
- package/components/segmented/segmented.a2ui.json +106 -0
- package/components/segmented/segmented.css +67 -0
- package/components/segmented/segmented.js +149 -0
- package/components/segmented/segmented.yaml +91 -0
- package/components/select/select.a2ui.json +203 -0
- package/components/select/select.css +277 -0
- package/components/select/select.js +388 -0
- package/components/select/select.yaml +375 -0
- package/components/skeleton/skeleton.a2ui.json +120 -0
- package/components/skeleton/skeleton.css +47 -0
- package/components/skeleton/skeleton.js +43 -0
- package/components/skeleton/skeleton.yaml +153 -0
- package/components/slider/slider.a2ui.json +162 -0
- package/components/slider/slider.css +137 -0
- package/components/slider/slider.js +162 -0
- package/components/slider/slider.yaml +299 -0
- package/components/stack/stack.a2ui.json +62 -0
- package/components/stack/stack.css +28 -0
- package/components/stack/stack.js +18 -0
- package/components/stack/stack.yaml +54 -0
- package/components/stat/stat.a2ui.json +246 -0
- package/components/stat/stat.css +101 -0
- package/components/stat/stat.js +91 -0
- package/components/stat/stat.yaml +206 -0
- package/components/stepper/stepper.a2ui.json +77 -0
- package/components/stepper/stepper.css +243 -0
- package/components/stepper/stepper.js +118 -0
- package/components/stepper/stepper.yaml +73 -0
- package/components/stream/stream.a2ui.json +98 -0
- package/components/stream/stream.css +37 -0
- package/components/stream/stream.js +99 -0
- package/components/stream/stream.yaml +87 -0
- package/components/swiper/swiper.a2ui.json +140 -0
- package/components/swiper/swiper.css +267 -0
- package/components/swiper/swiper.js +285 -0
- package/components/swiper/swiper.yaml +268 -0
- package/components/switch/switch.a2ui.json +134 -0
- package/components/switch/switch.css +104 -0
- package/components/switch/switch.js +53 -0
- package/components/switch/switch.yaml +322 -0
- package/components/table/cell-types.js +296 -0
- package/components/table/table.a2ui.json +458 -0
- package/components/table/table.css +531 -0
- package/components/table/table.js +1392 -0
- package/components/table/table.yaml +528 -0
- package/components/tabs/tab.js +34 -0
- package/components/tabs/tabs.a2ui.json +174 -0
- package/components/tabs/tabs.css +162 -0
- package/components/tabs/tabs.js +226 -0
- package/components/tabs/tabs.yaml +255 -0
- package/components/tag/tag.a2ui.json +148 -0
- package/components/tag/tag.css +118 -0
- package/components/tag/tag.js +88 -0
- package/components/tag/tag.yaml +125 -0
- package/components/text/text.a2ui.json +99 -0
- package/components/text/text.css +65 -0
- package/components/text/text.js +35 -0
- package/components/text/text.yaml +360 -0
- package/components/textarea/textarea.a2ui.json +91 -0
- package/components/textarea/textarea.css +93 -0
- package/components/textarea/textarea.js +114 -0
- package/components/textarea/textarea.yaml +79 -0
- package/components/timeline/timeline.a2ui.json +82 -0
- package/components/timeline/timeline.css +389 -0
- package/components/timeline/timeline.js +171 -0
- package/components/timeline/timeline.yaml +185 -0
- package/components/toast/toast.a2ui.json +199 -0
- package/components/toast/toast.css +211 -0
- package/components/toast/toast.js +146 -0
- package/components/toast/toast.yaml +184 -0
- package/components/toggle-group/toggle-group.a2ui.json +126 -0
- package/components/toggle-group/toggle-group.css +102 -0
- package/components/toggle-group/toggle-group.js +147 -0
- package/components/toggle-group/toggle-group.yaml +98 -0
- package/components/toolbar/toolbar.a2ui.json +131 -0
- package/components/toolbar/toolbar.css +132 -0
- package/components/toolbar/toolbar.js +366 -0
- package/components/toolbar/toolbar.yaml +238 -0
- package/components/tooltip/tooltip.a2ui.json +148 -0
- package/components/tooltip/tooltip.css +39 -0
- package/components/tooltip/tooltip.js +96 -0
- package/components/tooltip/tooltip.yaml +201 -0
- package/components/tree/tree.a2ui.json +119 -0
- package/components/tree/tree.css +133 -0
- package/components/tree/tree.js +253 -0
- package/components/tree/tree.yaml +92 -0
- package/components/upload/upload.a2ui.json +185 -0
- package/components/upload/upload.css +115 -0
- package/components/upload/upload.js +189 -0
- package/components/upload/upload.yaml +302 -0
- package/core/anchor.js +187 -0
- package/core/controller.js +182 -0
- package/core/element.js +257 -0
- package/core/form.js +217 -0
- package/core/icons.js +180 -0
- package/core/markdown.js +95 -0
- package/core/polyfills.js +23 -0
- package/core/provider.js +262 -0
- package/core/signals.js +113 -0
- package/core/template.js +226 -0
- package/core/transport.js +77 -0
- package/package.json +38 -0
- package/patterns/adia-chat/adia-chat.a2ui.json +149 -0
- package/patterns/adia-chat/adia-chat.css +10 -0
- package/patterns/adia-chat/adia-chat.js +297 -0
- package/patterns/adia-chat/adia-chat.yaml +118 -0
- package/patterns/adia-chat/css/adia-chat.empty.css +12 -0
- package/patterns/adia-chat/css/adia-chat.layout.css +60 -0
- package/patterns/adia-chat/css/adia-chat.markdown.css +74 -0
- package/patterns/adia-chat/css/adia-chat.messages.css +87 -0
- package/patterns/adia-chat/css/adia-chat.streaming.css +30 -0
- package/patterns/adia-chat/css/adia-chat.tokens.css +95 -0
- package/patterns/adia-chat/index.html +93 -0
- package/patterns/adia-editor/adia-editor.a2ui.json +58 -0
- package/patterns/adia-editor/adia-editor.css +6 -0
- package/patterns/adia-editor/adia-editor.js +56 -0
- package/patterns/adia-editor/adia-editor.yaml +36 -0
- package/patterns/adia-editor/css/adia-editor.layout.css +86 -0
- package/patterns/adia-editor/css/adia-editor.tokens.css +28 -0
- package/patterns/adia-editor/index.html +179 -0
- package/patterns/app-nav/app-nav.a2ui.json +89 -0
- package/patterns/app-nav/app-nav.css +92 -0
- package/patterns/app-nav/app-nav.js +99 -0
- package/patterns/app-nav/app-nav.yaml +54 -0
- package/patterns/app-nav-group/app-nav-group.a2ui.json +82 -0
- package/patterns/app-nav-group/app-nav-group.css +261 -0
- package/patterns/app-nav-group/app-nav-group.js +116 -0
- package/patterns/app-nav-group/app-nav-group.yaml +59 -0
- package/patterns/app-nav-item/app-nav-item.a2ui.json +83 -0
- package/patterns/app-nav-item/app-nav-item.css +156 -0
- package/patterns/app-nav-item/app-nav-item.js +42 -0
- package/patterns/app-nav-item/app-nav-item.yaml +62 -0
- package/patterns/app-shell/app-shell.a2ui.json +114 -0
- package/patterns/app-shell/app-shell.css +14 -0
- package/patterns/app-shell/app-shell.js +251 -0
- package/patterns/app-shell/app-shell.yaml +66 -0
- package/patterns/app-shell/css/app-shell.collapsed.css +86 -0
- package/patterns/app-shell/css/app-shell.helpers.css +42 -0
- package/patterns/app-shell/css/app-shell.main.css +58 -0
- package/patterns/app-shell/css/app-shell.shell.css +44 -0
- package/patterns/app-shell/css/app-shell.sidebar.css +116 -0
- package/patterns/app-shell/css/app-shell.templates.css +214 -0
- package/patterns/app-shell/css/app-shell.tokens.css +116 -0
- package/patterns/app-shell/index.html +112 -0
- package/patterns/gen-ui/gen-ui.a2ui.json +72 -0
- package/patterns/gen-ui/gen-ui.css +83 -0
- package/patterns/gen-ui/gen-ui.js +136 -0
- package/patterns/gen-ui/gen-ui.yaml +43 -0
- package/patterns/index.js +10 -0
- package/patterns/section-nav/section-nav.a2ui.json +91 -0
- package/patterns/section-nav/section-nav.css +59 -0
- package/patterns/section-nav/section-nav.js +42 -0
- package/patterns/section-nav/section-nav.yaml +58 -0
- package/patterns/section-nav-group/section-nav-group.a2ui.json +95 -0
- package/patterns/section-nav-group/section-nav-group.css +74 -0
- package/patterns/section-nav-group/section-nav-group.js +84 -0
- package/patterns/section-nav-group/section-nav-group.yaml +66 -0
- package/patterns/section-nav-item/section-nav-item.a2ui.json +97 -0
- package/patterns/section-nav-item/section-nav-item.css +96 -0
- package/patterns/section-nav-item/section-nav-item.js +66 -0
- package/patterns/section-nav-item/section-nav-item.yaml +70 -0
- package/styles/colors/index.css +6 -0
- package/styles/colors/parameters.css +52 -0
- package/styles/colors/primitives-accent.css +89 -0
- package/styles/colors/primitives-brand.css +89 -0
- package/styles/colors/primitives-danger.css +89 -0
- package/styles/colors/primitives-info.css +89 -0
- package/styles/colors/primitives-neutral.css +91 -0
- package/styles/colors/primitives-shared.css +57 -0
- package/styles/colors/primitives-success.css +89 -0
- package/styles/colors/primitives-warning.css +89 -0
- package/styles/colors/primitives.css +17 -0
- package/styles/colors/scrims.css +182 -0
- package/styles/colors/semantics.css +595 -0
- package/styles/colors/surfaces.css +43 -0
- package/styles/fonts.css +99 -0
- package/styles/layouts/admin.css +7 -0
- package/styles/prose.css +186 -0
- package/styles/styles.css +193 -0
- package/styles/themes.css +155 -0
- package/styles/tokens.css +304 -0
- package/styles/typography.css +853 -0
- package/traits/active-state.js +24 -0
- package/traits/anchor-positioning.js +66 -0
- package/traits/attention-pulse.js +30 -0
- package/traits/confetti-burst.js +65 -0
- package/traits/confetti.js +57 -0
- package/traits/count-up.js +42 -0
- package/traits/define.js +76 -0
- package/traits/dirty-state.js +38 -0
- package/traits/drag-ghost.js +38 -0
- package/traits/draggable.js +73 -0
- package/traits/fade-presence.js +52 -0
- package/traits/focus-trap.js +63 -0
- package/traits/focusable.js +38 -0
- package/traits/glow-focus.js +33 -0
- package/traits/gradient-shift.js +32 -0
- package/traits/haptic-feedback.js +28 -0
- package/traits/hotkey.js +62 -0
- package/traits/hoverable.js +26 -0
- package/traits/index.js +55 -0
- package/traits/inertia-drag.js +133 -0
- package/traits/intersection-observer.js +33 -0
- package/traits/keyboard-nav.js +36 -0
- package/traits/magnetic-hover.js +37 -0
- package/traits/noise-texture.js +30 -0
- package/traits/parallax.js +42 -0
- package/traits/portal.js +27 -0
- package/traits/pressable.js +75 -0
- package/traits/resizable.js +100 -0
- package/traits/resize-observer.js +31 -0
- package/traits/ripple.js +53 -0
- package/traits/roving-tabindex.js +67 -0
- package/traits/scale-press.js +43 -0
- package/traits/scroll-lock.js +27 -0
- package/traits/shimmer-loading.js +44 -0
- package/traits/snap-to-grid.js +28 -0
- package/traits/sound-feedback.js +30 -0
- package/traits/spring-animate.js +56 -0
- package/traits/tilt-hover.js +37 -0
- package/traits/tossable.js +178 -0
- package/traits/typeahead.js +63 -0
- package/traits/typewriter.js +35 -0
- package/traits/validation.js +118 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { AdiaElement } from '@core/element.js';
|
|
2
|
+
import { registry } from '../../a2ui/registry.js';
|
|
3
|
+
import '../tabs/tabs.js';
|
|
4
|
+
import '../tabs/tab.js';
|
|
5
|
+
import '../code/code.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* <inspector-ui> — Developer tools pane for inspecting A2UI state.
|
|
9
|
+
*
|
|
10
|
+
* Composes <tabs-ui> with four panes:
|
|
11
|
+
* Catalog — A2UI registry type-to-tag mapping
|
|
12
|
+
* Surface — current surface schema (JSON)
|
|
13
|
+
* Messages — message log
|
|
14
|
+
* Code — rendered HTML
|
|
15
|
+
*
|
|
16
|
+
* Usage (declarative — initial surface payload):
|
|
17
|
+
* <inspector-ui>
|
|
18
|
+
* { "hello": "world" }
|
|
19
|
+
* </inspector-ui>
|
|
20
|
+
*
|
|
21
|
+
* Usage (imperative):
|
|
22
|
+
* const inspector = document.querySelector('inspector-ui');
|
|
23
|
+
* inspector.update(schema, messages);
|
|
24
|
+
* inspector.setHTML(renderedHTML);
|
|
25
|
+
*
|
|
26
|
+
* Attributes:
|
|
27
|
+
* value — active tab: 'catalog' | 'surface' | 'messages' | 'code'
|
|
28
|
+
* (default: 'surface')
|
|
29
|
+
*/
|
|
30
|
+
class AdiaInspector extends AdiaElement {
|
|
31
|
+
static properties = {
|
|
32
|
+
value: { type: String, default: 'surface', reflect: true },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
static template = () => null;
|
|
36
|
+
|
|
37
|
+
#tabs = null;
|
|
38
|
+
#panes = {};
|
|
39
|
+
|
|
40
|
+
connected() {
|
|
41
|
+
const declarative = this.textContent?.trim() || '';
|
|
42
|
+
this.innerHTML = '';
|
|
43
|
+
this.#build(declarative);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
disconnected() {
|
|
47
|
+
this.#tabs?.removeEventListener('change', this.#onChange);
|
|
48
|
+
this.#tabs = null;
|
|
49
|
+
this.#panes = {};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
render() {
|
|
53
|
+
if (this.#tabs && this.#tabs.getAttribute('value') !== this.value) {
|
|
54
|
+
this.#tabs.setAttribute('value', this.value);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#onChange = (e) => {
|
|
59
|
+
if (e.detail?.value && e.detail.value !== this.value) {
|
|
60
|
+
this.value = e.detail.value;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
#build(initialSurface) {
|
|
65
|
+
const catalogText = [...registry.entries()]
|
|
66
|
+
.map(([type, tag]) => `${type} → <${tag}>`)
|
|
67
|
+
.join('\n');
|
|
68
|
+
|
|
69
|
+
this.#tabs = document.createElement('tabs-ui');
|
|
70
|
+
this.#tabs.setAttribute('value', this.value || 'surface');
|
|
71
|
+
this.#tabs.addEventListener('change', this.#onChange);
|
|
72
|
+
|
|
73
|
+
this.#addPane('catalog', `Catalog (${registry.size})`, catalogText);
|
|
74
|
+
this.#addPane('surface', 'Surface', initialSurface || '{}', { language: 'json' });
|
|
75
|
+
this.#addPane('messages', 'Messages', '(no messages)');
|
|
76
|
+
this.#addPane('code', 'Code', '(empty)', { language: 'html', lineNumbers: true });
|
|
77
|
+
|
|
78
|
+
this.appendChild(this.#tabs);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#addPane(value, text, body, opts = {}) {
|
|
82
|
+
const tab = document.createElement('tab-ui');
|
|
83
|
+
tab.setAttribute('value', value);
|
|
84
|
+
tab.setAttribute('text', text);
|
|
85
|
+
|
|
86
|
+
const pane = document.createElement('code-ui');
|
|
87
|
+
if (opts.language) pane.setAttribute('language', opts.language);
|
|
88
|
+
if (opts.lineNumbers) pane.setAttribute('line-numbers', '');
|
|
89
|
+
pane.setAttribute('text', body);
|
|
90
|
+
|
|
91
|
+
tab.appendChild(pane);
|
|
92
|
+
this.#tabs.appendChild(tab);
|
|
93
|
+
this.#panes[value] = pane;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Refresh the surface state and message log.
|
|
98
|
+
* @param {object} schema — surface schema object (JSON-serializable)
|
|
99
|
+
* @param {object[]} messages — array of A2UI messages
|
|
100
|
+
*/
|
|
101
|
+
update(schema, messages) {
|
|
102
|
+
if (this.#panes.surface) {
|
|
103
|
+
this.#panes.surface.setAttribute('text', JSON.stringify(schema, null, 2));
|
|
104
|
+
}
|
|
105
|
+
if (this.#panes.messages) {
|
|
106
|
+
const log = Array.isArray(messages) && messages.length
|
|
107
|
+
? messages
|
|
108
|
+
.map((m, i) => `${i + 1}. ${m.type || m.messageType || 'unknown'}${m.surfaceId ? ` [${m.surfaceId}]` : ''}`)
|
|
109
|
+
.join('\n')
|
|
110
|
+
: '(no messages)';
|
|
111
|
+
this.#panes.messages.setAttribute('text', log);
|
|
112
|
+
}
|
|
113
|
+
const msgTab = this.#tabs?.querySelector('tab-ui[value="messages"]');
|
|
114
|
+
if (msgTab) {
|
|
115
|
+
const count = Array.isArray(messages) ? messages.length : 0;
|
|
116
|
+
msgTab.setAttribute('text', `Messages (${count})`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Update the Code tab.
|
|
122
|
+
* @param {string} html — HTML string to display
|
|
123
|
+
*/
|
|
124
|
+
setHTML(html) {
|
|
125
|
+
if (this.#panes.code) {
|
|
126
|
+
this.#panes.code.setAttribute('text', html || '(empty)');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
customElements.define('inspector-ui', AdiaInspector);
|
|
132
|
+
|
|
133
|
+
export { AdiaInspector };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
|
+
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
|
+
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
+
name: AdiaInspector
|
|
5
|
+
tag: inspector-ui
|
|
6
|
+
component: Inspector
|
|
7
|
+
category: agent
|
|
8
|
+
version: 1
|
|
9
|
+
description: Developer tools pane for inspecting A2UI state.
|
|
10
|
+
props:
|
|
11
|
+
value:
|
|
12
|
+
description: Active tab. One of 'catalog', 'surface', 'messages', 'code'.
|
|
13
|
+
type: string
|
|
14
|
+
default: surface
|
|
15
|
+
active:
|
|
16
|
+
description: Active tab (alias for `value`, accepts same enum).
|
|
17
|
+
type: string
|
|
18
|
+
default: ""
|
|
19
|
+
events: {}
|
|
20
|
+
slots:
|
|
21
|
+
default:
|
|
22
|
+
description: "Default slot — primary child content."
|
|
23
|
+
states:
|
|
24
|
+
- name: idle
|
|
25
|
+
description: Default, ready for interaction.
|
|
26
|
+
traits: []
|
|
27
|
+
tokens: {}
|
|
28
|
+
a2ui:
|
|
29
|
+
rules: []
|
|
30
|
+
anti_patterns: []
|
|
31
|
+
examples:
|
|
32
|
+
- name: basic-inspector
|
|
33
|
+
description: Basic Inspector usage
|
|
34
|
+
a2ui: >-
|
|
35
|
+
[
|
|
36
|
+
{
|
|
37
|
+
"id": "root",
|
|
38
|
+
"component": "Card",
|
|
39
|
+
"children": [
|
|
40
|
+
"sec"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "sec",
|
|
45
|
+
"component": "Section",
|
|
46
|
+
"children": [
|
|
47
|
+
"comp"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "comp",
|
|
52
|
+
"component": "Inspector"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
keywords:
|
|
56
|
+
- inspector
|
|
57
|
+
synonyms: {}
|
|
58
|
+
related: []
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Kbd.json",
|
|
4
|
+
"title": "Kbd",
|
|
5
|
+
"description": "Keyboard key cap. Purely decorative, content from innerHTML.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "common_types.json#/$defs/CatalogComponentCommon"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"component": {
|
|
17
|
+
"const": "Kbd"
|
|
18
|
+
},
|
|
19
|
+
"size": {
|
|
20
|
+
"description": "Size variant",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"component"
|
|
27
|
+
],
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"x-adiaui": {
|
|
30
|
+
"anti_patterns": [],
|
|
31
|
+
"category": "display",
|
|
32
|
+
"events": {},
|
|
33
|
+
"examples": [
|
|
34
|
+
{
|
|
35
|
+
"description": "Card displaying a grid of keyboard shortcut rows with key badges and descriptions.",
|
|
36
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"hdr\",\n \"sec\"\n ]\n },\n {\n \"id\": \"hdr\",\n \"component\": \"Header\",\n \"children\": [\n \"title\"\n ]\n },\n {\n \"id\": \"title\",\n \"component\": \"Text\",\n \"slot\": \"heading\",\n \"textContent\": \"Keyboard Shortcuts\"\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"grid\"\n ]\n },\n {\n \"id\": \"grid\",\n \"component\": \"Grid\",\n \"columns\": 1,\n \"gap\": \"2\",\n \"children\": [\n \"r1\",\n \"r2\",\n \"r3\",\n \"r4\",\n \"r5\",\n \"r6\"\n ]\n },\n {\n \"id\": \"r1\",\n \"component\": \"Row\",\n \"children\": [\n \"k1\",\n \"d1\"\n ]\n },\n {\n \"id\": \"k1\",\n \"component\": \"Kbd\",\n \"text\": \"Ctrl+K\"\n },\n {\n \"id\": \"d1\",\n \"component\": \"Text\",\n \"textContent\": \"Open command palette\"\n },\n {\n \"id\": \"r2\",\n \"component\": \"Row\",\n \"children\": [\n \"k2\",\n \"d2\"\n ]\n },\n {\n \"id\": \"k2\",\n \"component\": \"Kbd\",\n \"text\": \"Ctrl+S\"\n },\n {\n \"id\": \"d2\",\n \"component\": \"Text\",\n \"textContent\": \"Save current file\"\n },\n {\n \"id\": \"r3\",\n \"component\": \"Row\",\n \"children\": [\n \"k3\",\n \"d3\"\n ]\n },\n {\n \"id\": \"k3\",\n \"component\": \"Kbd\",\n \"text\": \"Ctrl+Z\"\n },\n {\n \"id\": \"d3\",\n \"component\": \"Text\",\n \"textContent\": \"Undo last action\"\n },\n {\n \"id\": \"r4\",\n \"component\": \"Row\",\n \"children\": [\n \"k4\",\n \"d4\"\n ]\n },\n {\n \"id\": \"k4\",\n \"component\": \"Kbd\",\n \"text\": \"Ctrl+Shift+P\"\n },\n {\n \"id\": \"d4\",\n \"component\": \"Text\",\n \"textContent\": \"Toggle preview\"\n },\n {\n \"id\": \"r5\",\n \"component\": \"Row\",\n \"children\": [\n \"k5\",\n \"d5\"\n ]\n },\n {\n \"id\": \"k5\",\n \"component\": \"Kbd\",\n \"text\": \"Ctrl+N\"\n },\n {\n \"id\": \"d5\",\n \"component\": \"Text\",\n \"textContent\": \"Create new document\"\n },\n {\n \"id\": \"r6\",\n \"component\": \"Row\",\n \"children\": [\n \"k6\",\n \"d6\"\n ]\n },\n {\n \"id\": \"k6\",\n \"component\": \"Kbd\",\n \"text\": \"Esc\"\n },\n {\n \"id\": \"d6\",\n \"component\": \"Text\",\n \"textContent\": \"Close dialog\"\n }\n]",
|
|
37
|
+
"name": "kbd-shortcuts"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"keywords": [
|
|
41
|
+
"kbd",
|
|
42
|
+
"command",
|
|
43
|
+
"shortcut",
|
|
44
|
+
"hotkey",
|
|
45
|
+
"keyboard",
|
|
46
|
+
"keybinding"
|
|
47
|
+
],
|
|
48
|
+
"name": "AdiaKbd",
|
|
49
|
+
"related": [
|
|
50
|
+
"grid"
|
|
51
|
+
],
|
|
52
|
+
"slots": {
|
|
53
|
+
"default": {
|
|
54
|
+
"description": "Key label text"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"states": [
|
|
58
|
+
{
|
|
59
|
+
"description": "Default, ready for interaction.",
|
|
60
|
+
"name": "idle"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"synonyms": {
|
|
64
|
+
"command": [
|
|
65
|
+
"command",
|
|
66
|
+
"palette",
|
|
67
|
+
"kbd",
|
|
68
|
+
"shortcut"
|
|
69
|
+
],
|
|
70
|
+
"hotkey": [
|
|
71
|
+
"kbd",
|
|
72
|
+
"shortcut",
|
|
73
|
+
"command"
|
|
74
|
+
],
|
|
75
|
+
"keybinding": [
|
|
76
|
+
"kbd",
|
|
77
|
+
"shortcut",
|
|
78
|
+
"command"
|
|
79
|
+
],
|
|
80
|
+
"keyboard": [
|
|
81
|
+
"kbd",
|
|
82
|
+
"shortcut",
|
|
83
|
+
"command"
|
|
84
|
+
],
|
|
85
|
+
"shortcut": [
|
|
86
|
+
"kbd",
|
|
87
|
+
"shortcut",
|
|
88
|
+
"command"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"tag": "kbd-ui",
|
|
92
|
+
"tokens": {},
|
|
93
|
+
"traits": [],
|
|
94
|
+
"version": 1
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@scope (kbd-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* ── Tokens ── */
|
|
4
|
+
--kbd-bg: var(--a-bg-muted);
|
|
5
|
+
--kbd-fg: var(--a-fg);
|
|
6
|
+
--kbd-border: var(--a-border-subtle);
|
|
7
|
+
--kbd-radius: var(--a-radius-sm);
|
|
8
|
+
--kbd-font: var(--a-font-family-code);
|
|
9
|
+
|
|
10
|
+
/* Size — defaults to md */
|
|
11
|
+
--kbd-font-size: var(--a-ui-sm);
|
|
12
|
+
--kbd-height: 1.25rem;
|
|
13
|
+
--kbd-min-width: 1.25rem;
|
|
14
|
+
--kbd-px: var(--a-space-1);
|
|
15
|
+
--kbd-weight: var(--a-weight-medium);
|
|
16
|
+
|
|
17
|
+
/* Size: sm */
|
|
18
|
+
--kbd-font-size-sm: var(--a-ui-tiny);
|
|
19
|
+
--kbd-height-sm: 1rem;
|
|
20
|
+
--kbd-min-width-sm: 1rem;
|
|
21
|
+
|
|
22
|
+
/* Size: lg */
|
|
23
|
+
--kbd-font-size-lg: var(--a-ui-sm);
|
|
24
|
+
--kbd-height-lg: 1.5rem;
|
|
25
|
+
--kbd-min-width-lg: 1.5rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:scope {
|
|
29
|
+
/* ── Base ── */
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
min-width: var(--kbd-min-width);
|
|
35
|
+
height: var(--kbd-height);
|
|
36
|
+
padding-inline: var(--kbd-px);
|
|
37
|
+
font-family: var(--kbd-font);
|
|
38
|
+
font-size: var(--kbd-font-size);
|
|
39
|
+
font-weight: var(--kbd-weight);
|
|
40
|
+
line-height: 1;
|
|
41
|
+
color: var(--kbd-fg);
|
|
42
|
+
background: var(--kbd-bg);
|
|
43
|
+
border: 1px solid var(--kbd-border);
|
|
44
|
+
border-bottom-width: 2px;
|
|
45
|
+
border-radius: var(--kbd-radius);
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
user-select: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Sizes */
|
|
52
|
+
:scope[size="sm"] {
|
|
53
|
+
--kbd-font-size: var(--kbd-font-size-sm);
|
|
54
|
+
--kbd-height: var(--kbd-height-sm);
|
|
55
|
+
--kbd-min-width: var(--kbd-min-width-sm);
|
|
56
|
+
}
|
|
57
|
+
:scope[size="lg"] {
|
|
58
|
+
--kbd-font-size: var(--kbd-font-size-lg);
|
|
59
|
+
--kbd-height: var(--kbd-height-lg);
|
|
60
|
+
--kbd-min-width: var(--kbd-min-width-lg);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <kbd-ui>⌘</kbd-ui><kbd-ui>K</kbd-ui>
|
|
3
|
+
* <kbd-ui>Ctrl+C</kbd-ui>
|
|
4
|
+
*
|
|
5
|
+
* Keyboard key cap. Purely decorative — content comes from innerHTML.
|
|
6
|
+
* Em-relative sizing so it scales with surrounding text.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { AdiaElement } from '@core/element.js';
|
|
10
|
+
|
|
11
|
+
class AdiaKbd extends AdiaElement {
|
|
12
|
+
static properties = {
|
|
13
|
+
size: { type: String, default: '', reflect: true },
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
static template = () => null;
|
|
17
|
+
|
|
18
|
+
connected() {
|
|
19
|
+
this.setAttribute('role', 'presentation');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
customElements.define('kbd-ui', AdiaKbd);
|
|
23
|
+
|
|
24
|
+
export { AdiaKbd };
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
|
+
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
|
+
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
+
name: AdiaKbd
|
|
5
|
+
tag: kbd-ui
|
|
6
|
+
component: Kbd
|
|
7
|
+
category: display
|
|
8
|
+
version: 1
|
|
9
|
+
description: Keyboard key cap. Purely decorative, content from innerHTML.
|
|
10
|
+
props:
|
|
11
|
+
size:
|
|
12
|
+
description: Size variant
|
|
13
|
+
type: string
|
|
14
|
+
default: ""
|
|
15
|
+
events: {}
|
|
16
|
+
slots:
|
|
17
|
+
default:
|
|
18
|
+
description: Key label text
|
|
19
|
+
states:
|
|
20
|
+
- name: idle
|
|
21
|
+
description: Default, ready for interaction.
|
|
22
|
+
traits: []
|
|
23
|
+
tokens: {}
|
|
24
|
+
a2ui:
|
|
25
|
+
rules: []
|
|
26
|
+
anti_patterns: []
|
|
27
|
+
examples:
|
|
28
|
+
- name: kbd-shortcuts
|
|
29
|
+
description: Card displaying a grid of keyboard shortcut rows with key badges and descriptions.
|
|
30
|
+
a2ui: >-
|
|
31
|
+
[
|
|
32
|
+
{
|
|
33
|
+
"id": "root",
|
|
34
|
+
"component": "Card",
|
|
35
|
+
"children": [
|
|
36
|
+
"hdr",
|
|
37
|
+
"sec"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "hdr",
|
|
42
|
+
"component": "Header",
|
|
43
|
+
"children": [
|
|
44
|
+
"title"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "title",
|
|
49
|
+
"component": "Text",
|
|
50
|
+
"slot": "heading",
|
|
51
|
+
"textContent": "Keyboard Shortcuts"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "sec",
|
|
55
|
+
"component": "Section",
|
|
56
|
+
"children": [
|
|
57
|
+
"grid"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "grid",
|
|
62
|
+
"component": "Grid",
|
|
63
|
+
"columns": 1,
|
|
64
|
+
"gap": "2",
|
|
65
|
+
"children": [
|
|
66
|
+
"r1",
|
|
67
|
+
"r2",
|
|
68
|
+
"r3",
|
|
69
|
+
"r4",
|
|
70
|
+
"r5",
|
|
71
|
+
"r6"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "r1",
|
|
76
|
+
"component": "Row",
|
|
77
|
+
"children": [
|
|
78
|
+
"k1",
|
|
79
|
+
"d1"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "k1",
|
|
84
|
+
"component": "Kbd",
|
|
85
|
+
"text": "Ctrl+K"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "d1",
|
|
89
|
+
"component": "Text",
|
|
90
|
+
"textContent": "Open command palette"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "r2",
|
|
94
|
+
"component": "Row",
|
|
95
|
+
"children": [
|
|
96
|
+
"k2",
|
|
97
|
+
"d2"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "k2",
|
|
102
|
+
"component": "Kbd",
|
|
103
|
+
"text": "Ctrl+S"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "d2",
|
|
107
|
+
"component": "Text",
|
|
108
|
+
"textContent": "Save current file"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "r3",
|
|
112
|
+
"component": "Row",
|
|
113
|
+
"children": [
|
|
114
|
+
"k3",
|
|
115
|
+
"d3"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "k3",
|
|
120
|
+
"component": "Kbd",
|
|
121
|
+
"text": "Ctrl+Z"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "d3",
|
|
125
|
+
"component": "Text",
|
|
126
|
+
"textContent": "Undo last action"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "r4",
|
|
130
|
+
"component": "Row",
|
|
131
|
+
"children": [
|
|
132
|
+
"k4",
|
|
133
|
+
"d4"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "k4",
|
|
138
|
+
"component": "Kbd",
|
|
139
|
+
"text": "Ctrl+Shift+P"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "d4",
|
|
143
|
+
"component": "Text",
|
|
144
|
+
"textContent": "Toggle preview"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "r5",
|
|
148
|
+
"component": "Row",
|
|
149
|
+
"children": [
|
|
150
|
+
"k5",
|
|
151
|
+
"d5"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "k5",
|
|
156
|
+
"component": "Kbd",
|
|
157
|
+
"text": "Ctrl+N"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "d5",
|
|
161
|
+
"component": "Text",
|
|
162
|
+
"textContent": "Create new document"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "r6",
|
|
166
|
+
"component": "Row",
|
|
167
|
+
"children": [
|
|
168
|
+
"k6",
|
|
169
|
+
"d6"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "k6",
|
|
174
|
+
"component": "Kbd",
|
|
175
|
+
"text": "Esc"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "d6",
|
|
179
|
+
"component": "Text",
|
|
180
|
+
"textContent": "Close dialog"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
keywords:
|
|
184
|
+
- kbd
|
|
185
|
+
- command
|
|
186
|
+
- shortcut
|
|
187
|
+
- hotkey
|
|
188
|
+
- keyboard
|
|
189
|
+
- keybinding
|
|
190
|
+
synonyms:
|
|
191
|
+
command:
|
|
192
|
+
- command
|
|
193
|
+
- palette
|
|
194
|
+
- kbd
|
|
195
|
+
- shortcut
|
|
196
|
+
hotkey:
|
|
197
|
+
- kbd
|
|
198
|
+
- shortcut
|
|
199
|
+
- command
|
|
200
|
+
keybinding:
|
|
201
|
+
- kbd
|
|
202
|
+
- shortcut
|
|
203
|
+
- command
|
|
204
|
+
keyboard:
|
|
205
|
+
- kbd
|
|
206
|
+
- shortcut
|
|
207
|
+
- command
|
|
208
|
+
shortcut:
|
|
209
|
+
- kbd
|
|
210
|
+
- shortcut
|
|
211
|
+
- command
|
|
212
|
+
related:
|
|
213
|
+
- grid
|