@adia-ai/a2ui-corpus 0.0.3 → 0.0.5
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 +68 -0
- package/README.md +24 -4
- package/chunk-embeddings.json +1 -0
- package/chunks/_index.json +4 -15
- package/chunks/accordion-basic.json +1 -1
- package/chunks/accordion-combinations.json +1 -1
- package/chunks/accordion-edge-cases.json +1 -1
- package/chunks/accordion-multiple.json +1 -1
- package/chunks/accordion-open.json +1 -1
- package/chunks/action-list-basic.json +1 -1
- package/chunks/action-list-combo.json +1 -1
- package/chunks/action-list-danger.json +1 -1
- package/chunks/action-list-disabled.json +1 -1
- package/chunks/action-list-edge.json +1 -1
- package/chunks/action-list-icon.json +1 -1
- package/chunks/agent-artifact-code.json +1 -1
- package/chunks/agent-artifact-tone.json +1 -1
- package/chunks/agent-feedback-bar-basic.json +1 -1
- package/chunks/agent-feedback-bar-save.json +1 -1
- package/chunks/agent-questions-multi.json +1 -1
- package/chunks/agent-questions-single.json +1 -1
- package/chunks/agent-reasoning-iterations.json +1 -1
- package/chunks/agent-reasoning-plan-and-thoughts.json +1 -1
- package/chunks/agent-reasoning-steps-only.json +1 -1
- package/chunks/agent-suggestions-basic.json +1 -1
- package/chunks/agent-suggestions-ghost.json +1 -1
- package/chunks/agent-suggestions-icons.json +1 -1
- package/chunks/agent-trace-feedback.json +1 -1
- package/chunks/agent-trace-metrics.json +1 -1
- package/chunks/agent-trace-pills.json +1 -1
- package/chunks/alert-closable.json +1 -1
- package/chunks/alert-combinations.json +1 -1
- package/chunks/alert-edge-cases.json +1 -1
- package/chunks/alert-icon.json +1 -1
- package/chunks/alert-text.json +1 -1
- package/chunks/alert-variant.json +1 -1
- package/chunks/auth-account-deleted-actions.json +1 -1
- package/chunks/auth-account-deleted.json +1 -1
- package/chunks/auth-card-content.json +1 -1
- package/chunks/auth-card-header.json +1 -1
- package/chunks/auth-email-entry.json +1 -1
- package/chunks/auth-email-verify-confirm.json +1 -1
- package/chunks/auth-email-verify.json +1 -1
- package/chunks/auth-forbidden-actions.json +1 -1
- package/chunks/auth-forbidden.json +1 -1
- package/chunks/auth-invite-actions.json +1 -1
- package/chunks/auth-invite-team-card.json +1 -1
- package/chunks/auth-link-expired-form.json +1 -1
- package/chunks/auth-link-expired.json +1 -1
- package/chunks/auth-locked-account.json +1 -1
- package/chunks/auth-locked-recovery-options.json +1 -1
- package/chunks/auth-mfa-enrollment-submit.json +1 -1
- package/chunks/auth-mfa-enrollment.json +1 -1
- package/chunks/auth-mfa-fallback-actions.json +1 -1
- package/chunks/auth-mfa-recovery.json +1 -1
- package/chunks/auth-new-password-form.json +1 -1
- package/chunks/auth-new-password.json +1 -1
- package/chunks/auth-oauth-fallback-actions.json +1 -1
- package/chunks/auth-oauth-interstitial.json +1 -1
- package/chunks/auth-password-challenge.json +1 -1
- package/chunks/auth-password-reset-form.json +1 -1
- package/chunks/auth-password-reset.json +1 -1
- package/chunks/auth-profile-form.json +1 -1
- package/chunks/auth-profile-setup.json +1 -1
- package/chunks/auth-reset-sent.json +1 -1
- package/chunks/auth-session-expired-actions.json +1 -1
- package/chunks/auth-session-expired.json +1 -1
- package/chunks/auth-signin-card-email.json +1 -1
- package/chunks/auth-signin-card-magic-link.json +1 -1
- package/chunks/auth-signin-card-mfa.json +1 -1
- package/chunks/auth-signin-card-otp.json +1 -1
- package/chunks/auth-signin-card-password.json +1 -1
- package/chunks/auth-signin-card-recovery.json +1 -1
- package/chunks/auth-signout-actions.json +1 -1
- package/chunks/auth-signout.json +1 -1
- package/chunks/auth-signup-email-entry.json +1 -1
- package/chunks/auth-signup-entry.json +1 -1
- package/chunks/auth-signup-social-auths.json +1 -1
- package/chunks/auth-signup-verify.json +1 -1
- package/chunks/auth-social-auths.json +1 -1
- package/chunks/auth-sso-providers.json +1 -1
- package/chunks/auth-sso-required.json +1 -1
- package/chunks/auth-team-invite.json +1 -1
- package/chunks/avatar-avatar-group.json +1 -1
- package/chunks/avatar-shape.json +1 -1
- package/chunks/avatar-size.json +1 -1
- package/chunks/avatar-src.json +1 -1
- package/chunks/avatar-text.json +1 -1
- package/chunks/badge-combinations.json +1 -1
- package/chunks/badge-edge-cases.json +1 -1
- package/chunks/badge-size.json +1 -1
- package/chunks/badge-text.json +1 -1
- package/chunks/badge-variant.json +1 -1
- package/chunks/block-combo.json +1 -1
- package/chunks/block-edge.json +1 -1
- package/chunks/block-margin.json +1 -1
- package/chunks/block-padding.json +1 -1
- package/chunks/breadcrumb-basic.json +1 -1
- package/chunks/breadcrumb-combo.json +1 -1
- package/chunks/breadcrumb-edge.json +1 -1
- package/chunks/breadcrumb-links.json +1 -1
- package/chunks/breadcrumb-long.json +1 -1
- package/chunks/breadcrumb-separator.json +1 -1
- package/chunks/bulk-action-toolbar-swap.json +1 -1
- package/chunks/button-block.json +1 -1
- package/chunks/button-combinations.json +1 -1
- package/chunks/button-disabled.json +1 -1
- package/chunks/button-edge-cases.json +1 -1
- package/chunks/button-icon.json +1 -1
- package/chunks/button-size.json +1 -1
- package/chunks/button-text-icon.json +1 -1
- package/chunks/button-text.json +1 -1
- package/chunks/button-trailing.json +1 -1
- package/chunks/button-type.json +1 -1
- package/chunks/button-variant-solid.json +1 -1
- package/chunks/button-variant.json +1 -1
- package/chunks/calendar-picker-default.json +1 -1
- package/chunks/calendar-picker-disabled.json +1 -1
- package/chunks/calendar-picker-format.json +1 -1
- package/chunks/calendar-picker-label.json +1 -1
- package/chunks/calendar-picker-max.json +1 -1
- package/chunks/calendar-picker-min-max.json +1 -1
- package/chunks/calendar-picker-min.json +1 -1
- package/chunks/calendar-picker-name.json +1 -1
- package/chunks/calendar-picker-open.json +1 -1
- package/chunks/calendar-picker-placeholder.json +1 -1
- package/chunks/calendar-picker-required.json +1 -1
- package/chunks/calendar-picker-value.json +1 -1
- package/chunks/canvas-basic.json +1 -1
- package/chunks/canvas-history.json +1 -1
- package/chunks/canvas-theme.json +1 -1
- package/chunks/card-elevation.json +1 -1
- package/chunks/card-header-body-footer.json +1 -1
- package/chunks/card-raw.json +1 -1
- package/chunks/card-size-lg.json +1 -1
- package/chunks/card-size-md.json +1 -1
- package/chunks/card-size.json +1 -1
- package/chunks/card-variant-filled.json +1 -1
- package/chunks/card-variant-ghost.json +1 -1
- package/chunks/card-variant-outlined.json +1 -1
- package/chunks/card-variant.json +1 -1
- package/chunks/chart-average.json +1 -1
- package/chunks/chart-color.json +1 -1
- package/chunks/chart-data-stream.json +1 -1
- package/chunks/chart-deprecated.json +1 -1
- package/chunks/chart-format.json +1 -1
- package/chunks/chart-hideGrid.json +1 -1
- package/chunks/chart-hideValues.json +1 -1
- package/chunks/chart-in-card-chart-plus-breakdown.json +1 -1
- package/chunks/chart-in-card-chart-plus-stat.json +1 -1
- package/chunks/chart-in-card-chart-with-filter-pills.json +1 -1
- package/chunks/chart-in-card-full-chart.json +1 -1
- package/chunks/chart-in-card-sparkline-tile.json +1 -1
- package/chunks/chart-in-card-stat-with-sparkline.json +1 -1
- package/chunks/chart-in-card-trend-footer.json +1 -1
- package/chunks/chart-legend-for.json +1 -1
- package/chunks/chart-legend-on-toggle.json +1 -1
- package/chunks/chart-legend-position.json +1 -1
- package/chunks/chart-legend-shape.json +1 -1
- package/chunks/chart-legend-static.json +1 -1
- package/chunks/chart-radius.json +1 -1
- package/chunks/chart-size.json +1 -1
- package/chunks/chart-sizing.json +1 -1
- package/chunks/chart-smooth.json +1 -1
- package/chunks/chart-states.json +1 -1
- package/chunks/chart-title.json +1 -1
- package/chunks/chart-type.json +1 -1
- package/chunks/chat-basic.json +1 -1
- package/chunks/chat-streaming.json +1 -1
- package/chunks/chat-with-input.json +1 -1
- package/chunks/check-checked.json +1 -1
- package/chunks/check-combinations.json +1 -1
- package/chunks/check-disabled.json +1 -1
- package/chunks/check-edge-cases.json +1 -1
- package/chunks/check-indeterminate.json +1 -1
- package/chunks/check-label.json +1 -1
- package/chunks/check-size.json +1 -1
- package/chunks/code-bare.json +1 -1
- package/chunks/code-combo.json +1 -1
- package/chunks/code-disabled-readonly.json +1 -1
- package/chunks/code-edge.json +1 -1
- package/chunks/code-editable.json +1 -1
- package/chunks/code-form-association.json +1 -1
- package/chunks/code-inline.json +1 -1
- package/chunks/code-language.json +1 -1
- package/chunks/code-line-numbers.json +1 -1
- package/chunks/code-lint-gutter.json +1 -1
- package/chunks/code-long-code.json +1 -1
- package/chunks/code-no-language.json +1 -1
- package/chunks/color-picker-default.json +1 -1
- package/chunks/color-picker-disabled.json +1 -1
- package/chunks/color-picker-format.json +1 -1
- package/chunks/color-picker-name.json +1 -1
- package/chunks/color-picker-value.json +1 -1
- package/chunks/command-combo.json +1 -1
- package/chunks/command-edge.json +1 -1
- package/chunks/command-grouped.json +1 -1
- package/chunks/command-inline.json +1 -1
- package/chunks/command-open.json +1 -1
- package/chunks/command-placeholder.json +1 -1
- package/chunks/command-shortcuts.json +1 -1
- package/chunks/commerce-pricing-tiers.json +1 -1
- package/chunks/conversion-funnel-4-step-funnel.json +1 -1
- package/chunks/conversion-funnel-wide-summary.json +1 -1
- package/chunks/conversion-funnel-with-segment-compare.json +1 -1
- package/chunks/dashboard-acquisition-panel.json +1 -1
- package/chunks/dashboard-admin-page.json +1 -1
- package/chunks/dashboard-audience-kpis.json +1 -1
- package/chunks/dashboard-audience-panel.json +1 -1
- package/chunks/dashboard-behavior-panel.json +1 -1
- package/chunks/dashboard-chart-recent.json +1 -1
- package/chunks/dashboard-cohort-retention.json +1 -1
- package/chunks/dashboard-conversion-panel.json +1 -1
- package/chunks/dashboard-country-list.json +1 -1
- package/chunks/dashboard-filter-bar.json +1 -1
- package/chunks/dashboard-funnel.json +1 -1
- package/chunks/dashboard-kpi-grid.json +1 -1
- package/chunks/dashboard-notifications-feed.json +1 -1
- package/chunks/dashboard-notifications-panel.json +1 -1
- package/chunks/dashboard-overview-panel.json +1 -1
- package/chunks/dashboard-page-header.json +1 -1
- package/chunks/dashboard-pages-table.json +1 -1
- package/chunks/dashboard-quick-actions.json +1 -1
- package/chunks/dashboard-reports-panel.json +1 -1
- package/chunks/dashboard-reports-table.json +1 -1
- package/chunks/dashboard-spark-cards.json +1 -1
- package/chunks/dashboard-storage-card.json +1 -1
- package/chunks/dashboard-tabs.json +1 -1
- package/chunks/dashboard-team-actions-storage.json +1 -1
- package/chunks/dashboard-team-list.json +1 -1
- package/chunks/dashboard-traffic-channels.json +1 -1
- package/chunks/dashboard-transactions-table.json +1 -1
- package/chunks/description-list-align.json +1 -1
- package/chunks/description-list-inline.json +1 -1
- package/chunks/description-list-items.json +1 -1
- package/chunks/description-list-layout.json +1 -1
- package/chunks/description-list-programmatic.json +1 -1
- package/chunks/description-list-stacked.json +1 -1
- package/chunks/divider-combo.json +1 -1
- package/chunks/divider-edge.json +1 -1
- package/chunks/divider-horizontal.json +1 -1
- package/chunks/divider-label.json +1 -1
- package/chunks/divider-vertical-label.json +1 -1
- package/chunks/divider-vertical.json +1 -1
- package/chunks/drawer-2fa-key.json +1 -1
- package/chunks/drawer-2fa-sms.json +1 -1
- package/chunks/drawer-2fa-totp.json +1 -1
- package/chunks/drawer-cancel-sub.json +1 -1
- package/chunks/drawer-change-plan.json +1 -1
- package/chunks/drawer-custom-roles.json +1 -1
- package/chunks/drawer-data-start.json +1 -1
- package/chunks/drawer-delete-account.json +1 -1
- package/chunks/drawer-delete-workspace.json +1 -1
- package/chunks/drawer-discord.json +1 -1
- package/chunks/drawer-edge-cases.json +1 -1
- package/chunks/drawer-figma.json +1 -1
- package/chunks/drawer-first-dashboard.json +1 -1
- package/chunks/drawer-footer.json +1 -1
- package/chunks/drawer-gcal.json +1 -1
- package/chunks/drawer-github.json +1 -1
- package/chunks/drawer-header-grid.json +1 -1
- package/chunks/drawer-invite.json +1 -1
- package/chunks/drawer-multi-section.json +1 -1
- package/chunks/drawer-open.json +1 -1
- package/chunks/drawer-payment-method.json +1 -1
- package/chunks/drawer-permanent.json +1 -1
- package/chunks/drawer-report.json +1 -1
- package/chunks/drawer-revoke-session.json +1 -1
- package/chunks/drawer-role.json +1 -1
- package/chunks/drawer-side.json +1 -1
- package/chunks/drawer-size.json +1 -1
- package/chunks/drawer-slack.json +1 -1
- package/chunks/drawer-smtp.json +1 -1
- package/chunks/drawer-source.json +1 -1
- package/chunks/drawer-text.json +1 -1
- package/chunks/drawer-transaction.json +1 -1
- package/chunks/embed-aspect.json +1 -1
- package/chunks/embed-default.json +1 -1
- package/chunks/embed-height.json +1 -1
- package/chunks/embed-src.json +1 -1
- package/chunks/embed-width.json +1 -1
- package/chunks/empty-state-action.json +1 -1
- package/chunks/empty-state-basic.json +1 -1
- package/chunks/empty-state-description.json +1 -1
- package/chunks/empty-state-error.json +1 -1
- package/chunks/empty-state-heading.json +1 -1
- package/chunks/empty-state-icon.json +1 -1
- package/chunks/error-404-actions.json +1 -1
- package/chunks/error-404.json +1 -1
- package/chunks/error-500-actions.json +1 -1
- package/chunks/error-500.json +1 -1
- package/chunks/error-maintenance-actions.json +1 -1
- package/chunks/error-maintenance.json +1 -1
- package/chunks/field-controls.json +1 -1
- package/chunks/field-default.json +1 -1
- package/chunks/field-error.json +1 -1
- package/chunks/field-hint.json +1 -1
- package/chunks/field-inline.json +1 -1
- package/chunks/field-no-label.json +1 -1
- package/chunks/field-required.json +1 -1
- package/chunks/filter-bar-active-filters.json +1 -1
- package/chunks/filter-bar-filter-bar-with-table.json +1 -1
- package/chunks/filter-bar-saved-views.json +1 -1
- package/chunks/form-drawer-edit-form.json +1 -1
- package/chunks/form-drawer-simple-form.json +1 -1
- package/chunks/form-drawer-tall-form.json +1 -1
- package/chunks/heatmap-data-stream.json +1 -1
- package/chunks/heatmap-day-grid.json +1 -1
- package/chunks/heatmap-matrix.json +1 -1
- package/chunks/icon-combinations.json +1 -1
- package/chunks/icon-edge-cases.json +1 -1
- package/chunks/icon-label.json +1 -1
- package/chunks/icon-name.json +1 -1
- package/chunks/icon-size.json +1 -1
- package/chunks/image-alt.json +1 -1
- package/chunks/image-default.json +1 -1
- package/chunks/image-fallback.json +1 -1
- package/chunks/image-fit.json +1 -1
- package/chunks/image-height.json +1 -1
- package/chunks/image-radius.json +1 -1
- package/chunks/image-src.json +1 -1
- package/chunks/image-width.json +1 -1
- package/chunks/input-combinations.json +1 -1
- package/chunks/input-disabled.json +1 -1
- package/chunks/input-edge-cases.json +1 -1
- package/chunks/input-error.json +1 -1
- package/chunks/input-label.json +1 -1
- package/chunks/input-name.json +1 -1
- package/chunks/input-pattern.json +1 -1
- package/chunks/input-placeholder.json +1 -1
- package/chunks/input-prefix-suffix.json +1 -1
- package/chunks/input-prefix.json +1 -1
- package/chunks/input-raw.json +1 -1
- package/chunks/input-readonly.json +1 -1
- package/chunks/input-required.json +1 -1
- package/chunks/input-size.json +1 -1
- package/chunks/input-suffix.json +1 -1
- package/chunks/input-type.json +1 -1
- package/chunks/input-value.json +1 -1
- package/chunks/inspector-default.json +1 -1
- package/chunks/inspector-imperative.json +1 -1
- package/chunks/inspector-nested.json +1 -1
- package/chunks/inspector-value.json +1 -1
- package/chunks/kbd-combinations.json +1 -1
- package/chunks/kbd-in-context.json +1 -1
- package/chunks/kbd-single-keys.json +1 -1
- package/chunks/kbd-size.json +1 -1
- package/chunks/layout-align.json +1 -1
- package/chunks/layout-col.json +1 -1
- package/chunks/layout-combo.json +1 -1
- package/chunks/layout-edge.json +1 -1
- package/chunks/layout-grid.json +1 -1
- package/chunks/layout-justify.json +1 -1
- package/chunks/layout-row.json +1 -1
- package/chunks/layout-stack.json +1 -1
- package/chunks/layout-wrap.json +1 -1
- package/chunks/list-basic.json +1 -1
- package/chunks/list-combo.json +1 -1
- package/chunks/list-description.json +1 -1
- package/chunks/list-divider.json +1 -1
- package/chunks/list-edge.json +1 -1
- package/chunks/list-icon.json +1 -1
- package/chunks/list-spacing.json +1 -1
- package/chunks/member-edit-drawer.json +1 -1
- package/chunks/menu-basic.json +1 -1
- package/chunks/menu-combo.json +1 -1
- package/chunks/menu-disabled.json +1 -1
- package/chunks/menu-divider.json +1 -1
- package/chunks/menu-edge.json +1 -1
- package/chunks/menu-gap.json +1 -1
- package/chunks/menu-icon.json +1 -1
- package/chunks/menu-open.json +1 -1
- package/chunks/menu-placement.json +1 -1
- package/chunks/menu-variant.json +1 -1
- package/chunks/modal-basic.json +1 -1
- package/chunks/modal-closable.json +1 -1
- package/chunks/modal-combinations.json +1 -1
- package/chunks/modal-edge-cases.json +1 -1
- package/chunks/modal-open.json +1 -1
- package/chunks/modal-size-xl.json +1 -1
- package/chunks/modal-size.json +1 -1
- package/chunks/modal-text.json +1 -1
- package/chunks/modal-trigger.json +1 -1
- package/chunks/noodles-animated.json +1 -1
- package/chunks/noodles-color.json +1 -1
- package/chunks/noodles-curve.json +1 -1
- package/chunks/noodles-editable.json +1 -1
- package/chunks/noodles-portSize.json +1 -1
- package/chunks/noodles-readonly.json +1 -1
- package/chunks/noodles-showPorts.json +1 -1
- package/chunks/noodles-strokeWidth.json +1 -1
- package/chunks/noodles-tension.json +1 -1
- package/chunks/onb-completion.json +1 -1
- package/chunks/onb-extension-install.json +1 -1
- package/chunks/onb-hero-welcome.json +1 -1
- package/chunks/onb-import-picker.json +1 -1
- package/chunks/onb-mobile-handoff.json +1 -1
- package/chunks/onb-notification-prefs.json +1 -1
- package/chunks/onb-persona-picker.json +1 -1
- package/chunks/onb-provider-tiles.json +1 -1
- package/chunks/onb-settings-review.json +1 -1
- package/chunks/onb-step-footer.json +1 -1
- package/chunks/onb-step-header.json +1 -1
- package/chunks/onb-step-progress.json +1 -1
- package/chunks/onb-story-pane.json +1 -1
- package/chunks/onb-tutorial-steps.json +1 -1
- package/chunks/option-card-default.json +1 -1
- package/chunks/option-card-dense.json +1 -1
- package/chunks/option-card-disabled.json +1 -1
- package/chunks/option-card-heading-rich.json +1 -1
- package/chunks/option-card-icon.json +1 -1
- package/chunks/option-card-spillover.json +1 -1
- package/chunks/otp-input-disabled.json +1 -1
- package/chunks/otp-input-length.json +1 -1
- package/chunks/otp-input-name.json +1 -1
- package/chunks/otp-input-value.json +1 -1
- package/chunks/pagination-basic.json +1 -1
- package/chunks/pagination-combo.json +1 -1
- package/chunks/pagination-edge.json +1 -1
- package/chunks/pagination-first-page.json +1 -1
- package/chunks/pagination-last-page.json +1 -1
- package/chunks/pagination-many-pages.json +1 -1
- package/chunks/pagination-page.json +1 -1
- package/chunks/pagination-siblings.json +1 -1
- package/chunks/pagination-size.json +1 -1
- package/chunks/pagination-total.json +1 -1
- package/chunks/pagination-variant.json +1 -1
- package/chunks/pane-basic.json +1 -1
- package/chunks/pane-collapsed.json +1 -1
- package/chunks/pane-combo.json +1 -1
- package/chunks/pane-edge.json +1 -1
- package/chunks/pane-maxWidth.json +1 -1
- package/chunks/pane-minWidth.json +1 -1
- package/chunks/pane-resizable.json +1 -1
- package/chunks/pane-sections.json +1 -1
- package/chunks/pipeline-status-complete.json +1 -1
- package/chunks/pipeline-status-message.json +1 -1
- package/chunks/pipeline-status-stage.json +1 -1
- package/chunks/playground-a2ui.json +1 -1
- package/chunks/playground-app-shell.json +1 -1
- package/chunks/playground-chat.json +1 -1
- package/chunks/playground-construct-canvas.json +1 -1
- package/chunks/playground-gen-ui.json +1 -1
- package/chunks/playground-render-preview.json +1 -1
- package/chunks/playground-streams-bridge.json +1 -1
- package/chunks/playground-table-toolbar.json +1 -1
- package/chunks/popover-combo.json +1 -1
- package/chunks/popover-edge.json +1 -1
- package/chunks/popover-gap.json +1 -1
- package/chunks/popover-open.json +1 -1
- package/chunks/popover-placement.json +1 -1
- package/chunks/popover-rich-content.json +1 -1
- package/chunks/popover-trigger-click.json +1 -1
- package/chunks/popover-trigger-hover.json +1 -1
- package/chunks/popover-trigger.json +1 -1
- package/chunks/progress-indeterminate.json +1 -1
- package/chunks/progress-row-basic.json +1 -1
- package/chunks/progress-row-combo.json +1 -1
- package/chunks/progress-row-edge.json +1 -1
- package/chunks/progress-row-indeterminate.json +1 -1
- package/chunks/progress-row-label.json +1 -1
- package/chunks/progress-row-meta.json +1 -1
- package/chunks/progress-row-multiple.json +1 -1
- package/chunks/progress-row-value.json +1 -1
- package/chunks/progress-row-variant.json +1 -1
- package/chunks/progress-sizes.json +1 -1
- package/chunks/progress-value.json +1 -1
- package/chunks/progress-variant.json +1 -1
- package/chunks/radio-checked.json +1 -1
- package/chunks/radio-combinations.json +1 -1
- package/chunks/radio-disabled.json +1 -1
- package/chunks/radio-edge-cases.json +1 -1
- package/chunks/radio-error.json +1 -1
- package/chunks/radio-group.json +1 -1
- package/chunks/radio-label.json +1 -1
- package/chunks/radio-name.json +1 -1
- package/chunks/radio-required.json +1 -1
- package/chunks/radio-size.json +1 -1
- package/chunks/radio-value.json +1 -1
- package/chunks/range-combinations.json +1 -1
- package/chunks/range-default.json +1 -1
- package/chunks/range-disabled.json +1 -1
- package/chunks/range-edge-cases.json +1 -1
- package/chunks/range-error.json +1 -1
- package/chunks/range-label.json +1 -1
- package/chunks/range-name.json +1 -1
- package/chunks/range-required.json +1 -1
- package/chunks/range-suffix.json +1 -1
- package/chunks/range-value.json +1 -1
- package/chunks/rating-allowHalf.json +1 -1
- package/chunks/rating-basic.json +1 -1
- package/chunks/rating-icon.json +1 -1
- package/chunks/rating-interactive.json +1 -1
- package/chunks/rating-max.json +1 -1
- package/chunks/rating-name.json +1 -1
- package/chunks/rating-readonly.json +1 -1
- package/chunks/rating-size.json +1 -1
- package/chunks/rating-value.json +1 -1
- package/chunks/record-detail-drawer-simple-detail.json +1 -1
- package/chunks/record-detail-drawer-tabbed-detail.json +1 -1
- package/chunks/reg-address-form.json +1 -1
- package/chunks/reg-billing-card.json +1 -1
- package/chunks/reg-brand-scrape.json +1 -1
- package/chunks/reg-departments-toggle.json +1 -1
- package/chunks/reg-extended-profile.json +1 -1
- package/chunks/reg-final-done.json +1 -1
- package/chunks/reg-helpdesk-grid.json +1 -1
- package/chunks/reg-import-picker.json +1 -1
- package/chunks/reg-integrations-grid.json +1 -1
- package/chunks/reg-invite-form.json +1 -1
- package/chunks/reg-legal-entity.json +1 -1
- package/chunks/reg-org-chart-review.json +1 -1
- package/chunks/reg-profile-identity.json +1 -1
- package/chunks/reg-step-footer.json +1 -1
- package/chunks/reg-step-header.json +1 -1
- package/chunks/reg-step-progress.json +1 -1
- package/chunks/reg-story-pane.json +1 -1
- package/chunks/reg-success-summary.json +1 -1
- package/chunks/reg-team-size.json +1 -1
- package/chunks/reg-usecase-picker.json +1 -1
- package/chunks/reg-workspace-name.json +1 -1
- package/chunks/retention-cohort-default-retention.json +1 -1
- package/chunks/retention-cohort-stat-pair.json +1 -1
- package/chunks/retention-cohort-with-legend.json +1 -1
- package/chunks/richtext-code-blocks.json +1 -1
- package/chunks/richtext-default-slot.json +1 -1
- package/chunks/richtext-markdown.json +1 -1
- package/chunks/richtext-rich-markdown.json +1 -1
- package/chunks/richtext-src.json +1 -1
- package/chunks/search-debounce.json +1 -1
- package/chunks/search-default.json +1 -1
- package/chunks/search-disabled.json +1 -1
- package/chunks/search-name.json +1 -1
- package/chunks/search-placeholder.json +1 -1
- package/chunks/search-value.json +1 -1
- package/chunks/segment-basic.json +1 -1
- package/chunks/segment-disabled.json +1 -1
- package/chunks/segment-icons.json +1 -1
- package/chunks/segment-text.json +1 -1
- package/chunks/segment-value.json +1 -1
- package/chunks/segmented-basic.json +1 -1
- package/chunks/segmented-combo.json +1 -1
- package/chunks/segmented-disabled.json +1 -1
- package/chunks/segmented-edge.json +1 -1
- package/chunks/segmented-pre-selected.json +1 -1
- package/chunks/segmented-value.json +1 -1
- package/chunks/select-avatar.json +1 -1
- package/chunks/select-basic.json +1 -1
- package/chunks/select-combinations.json +1 -1
- package/chunks/select-disabled.json +1 -1
- package/chunks/select-edge-cases.json +1 -1
- package/chunks/select-error.json +1 -1
- package/chunks/select-free-text.json +1 -1
- package/chunks/select-grouped.json +1 -1
- package/chunks/select-icon.json +1 -1
- package/chunks/select-label.json +1 -1
- package/chunks/select-multiple.json +1 -1
- package/chunks/select-name.json +1 -1
- package/chunks/select-open.json +1 -1
- package/chunks/select-placeholder.json +1 -1
- package/chunks/select-readonly.json +1 -1
- package/chunks/select-required.json +1 -1
- package/chunks/select-searchable.json +1 -1
- package/chunks/select-size.json +1 -1
- package/chunks/select-value.json +1 -1
- package/chunks/settings-billing-plan.json +1 -1
- package/chunks/settings-general-form.json +1 -1
- package/chunks/settings-integrations.json +1 -1
- package/chunks/settings-members-invite.json +1 -1
- package/chunks/settings-profile-security.json +1 -1
- package/chunks/skeleton-card-placeholder.json +1 -1
- package/chunks/skeleton-height.json +1 -1
- package/chunks/skeleton-radius.json +1 -1
- package/chunks/skeleton-static.json +1 -1
- package/chunks/skeleton-width-height.json +1 -1
- package/chunks/skeleton-width.json +1 -1
- package/chunks/slider-disabled.json +1 -1
- package/chunks/slider-error.json +1 -1
- package/chunks/slider-label.json +1 -1
- package/chunks/slider-name.json +1 -1
- package/chunks/slider-required.json +1 -1
- package/chunks/slider-suffix.json +1 -1
- package/chunks/slider-value.json +1 -1
- package/chunks/stat-basic.json +1 -1
- package/chunks/stat-change.json +1 -1
- package/chunks/stat-chart-slot.json +1 -1
- package/chunks/stat-data-stream.json +1 -1
- package/chunks/stat-grid.json +1 -1
- package/chunks/stat-icon.json +1 -1
- package/chunks/stat-label.json +1 -1
- package/chunks/stat-trend.json +1 -1
- package/chunks/stat-value.json +1 -1
- package/chunks/stepper-horizontal.json +1 -1
- package/chunks/stepper-interactive.json +1 -1
- package/chunks/stepper-step.json +1 -1
- package/chunks/stepper-vertical.json +1 -1
- package/chunks/stream-basic.json +1 -1
- package/chunks/stream-hide-cursor.json +1 -1
- package/chunks/stream-pace.json +1 -1
- package/chunks/stream-streaming.json +1 -1
- package/chunks/swiper-autoplay.json +1 -1
- package/chunks/swiper-basic.json +1 -1
- package/chunks/swiper-combo.json +1 -1
- package/chunks/swiper-gap.json +1 -1
- package/chunks/swiper-interval.json +1 -1
- package/chunks/swiper-loop.json +1 -1
- package/chunks/swiper-peek.json +1 -1
- package/chunks/swiper-slides-per-view.json +1 -1
- package/chunks/swiper-snap.json +1 -1
- package/chunks/switch-checked.json +1 -1
- package/chunks/switch-combinations.json +1 -1
- package/chunks/switch-disabled.json +1 -1
- package/chunks/switch-edge-cases.json +1 -1
- package/chunks/switch-label.json +1 -1
- package/chunks/switch-size.json +1 -1
- package/chunks/table-cell-types.json +1 -1
- package/chunks/table-data-stream.json +1 -1
- package/chunks/table-density.json +1 -1
- package/chunks/table-expandable.json +1 -1
- package/chunks/table-loading.json +1 -1
- package/chunks/table-paginate.json +1 -1
- package/chunks/table-raw.json +1 -1
- package/chunks/table-search.json +1 -1
- package/chunks/table-selectable.json +1 -1
- package/chunks/table-sortable.json +1 -1
- package/chunks/table-striped.json +1 -1
- package/chunks/tabs-basic.json +1 -1
- package/chunks/tabs-combinations.json +1 -1
- package/chunks/tabs-disabled.json +1 -1
- package/chunks/tabs-edge-cases.json +1 -1
- package/chunks/tabs-icon.json +1 -1
- package/chunks/tabs-keyboard.json +1 -1
- package/chunks/tabs-orientation.json +1 -1
- package/chunks/tabs-value.json +1 -1
- package/chunks/tabs-vertical.json +1 -1
- package/chunks/tag-combinations.json +1 -1
- package/chunks/tag-disabled.json +1 -1
- package/chunks/tag-removable.json +1 -1
- package/chunks/tag-size.json +1 -1
- package/chunks/tag-text.json +1 -1
- package/chunks/tag-variant.json +1 -1
- package/chunks/text-lines.json +1 -1
- package/chunks/text-truncate.json +1 -1
- package/chunks/text-variant.json +1 -1
- package/chunks/textarea-combinations.json +1 -1
- package/chunks/textarea-disabled.json +1 -1
- package/chunks/textarea-edge-cases.json +1 -1
- package/chunks/textarea-error.json +1 -1
- package/chunks/textarea-label.json +1 -1
- package/chunks/textarea-placeholder.json +1 -1
- package/chunks/textarea-readonly.json +1 -1
- package/chunks/textarea-resize.json +1 -1
- package/chunks/textarea-rows.json +1 -1
- package/chunks/timeline-compact.json +1 -1
- package/chunks/timeline-error.json +1 -1
- package/chunks/timeline-horizontal.json +1 -1
- package/chunks/timeline-icons.json +1 -1
- package/chunks/timeline-outcomes.json +1 -1
- package/chunks/timeline-variant.json +1 -1
- package/chunks/timeline-vertical.json +1 -1
- package/chunks/toast-closable.json +1 -1
- package/chunks/toast-combo.json +1 -1
- package/chunks/toast-duration.json +1 -1
- package/chunks/toast-edge.json +1 -1
- package/chunks/toast-position.json +1 -1
- package/chunks/toast-text.json +1 -1
- package/chunks/toast-variant.json +1 -1
- package/chunks/toggle-group-combo.json +1 -1
- package/chunks/toggle-group-disabled.json +1 -1
- package/chunks/toggle-group-edge.json +1 -1
- package/chunks/toggle-group-icon-group.json +1 -1
- package/chunks/toggle-group-pre-selected.json +1 -1
- package/chunks/toggle-group-single-vs-multi.json +1 -1
- package/chunks/toggle-group-single.json +1 -1
- package/chunks/toggle-group-text-group.json +1 -1
- package/chunks/toggle-group-value.json +1 -1
- package/chunks/toolbar-align.json +1 -1
- package/chunks/toolbar-basic.json +1 -1
- package/chunks/toolbar-bordered.json +1 -1
- package/chunks/toolbar-combo.json +1 -1
- package/chunks/toolbar-dividers.json +1 -1
- package/chunks/toolbar-edge.json +1 -1
- package/chunks/toolbar-gap.json +1 -1
- package/chunks/toolbar-overflow-none.json +1 -1
- package/chunks/toolbar-overflow.json +1 -1
- package/chunks/tooltip-combinations.json +1 -1
- package/chunks/tooltip-delay.json +1 -1
- package/chunks/tooltip-edge-cases.json +1 -1
- package/chunks/tooltip-placement.json +1 -1
- package/chunks/tooltip-text.json +1 -1
- package/chunks/tree-basic.json +1 -1
- package/chunks/tree-combo.json +1 -1
- package/chunks/tree-edge.json +1 -1
- package/chunks/tree-expand-collapse.json +1 -1
- package/chunks/tree-selection.json +1 -1
- package/chunks/upload-accept.json +1 -1
- package/chunks/upload-default.json +1 -1
- package/chunks/upload-disabled.json +1 -1
- package/chunks/upload-hint.json +1 -1
- package/chunks/upload-label-hint.json +1 -1
- package/chunks/upload-label.json +1 -1
- package/chunks/upload-multiple.json +1 -1
- package/chunks/upload-name.json +1 -1
- package/chunks/upload-value.json +1 -1
- package/chunks/wizard-drawer-three-step-wizard.json +1 -1
- package/exemplars/prose/auth-login/a2ui.json +7 -4
- package/exemplars/prose/auth-login/chunks/prose-auth-login-card-1.json +1 -0
- package/exemplars/prose/auth-login/chunks/prose-auth-login-card-13.json +3 -2
- package/exemplars/prose/auth-login/chunks/prose-auth-login-card-2.json +3 -2
- package/exemplars/prose/hero/a2ui.json +5 -5
- package/exemplars/prose/testimonials/a2ui.json +12 -12
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-1.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-2.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-3.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-4.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-5.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-6.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-7.json +1 -1
- package/exemplars/prose/testimonials/chunks/prose-testimonials-card-8.json +5 -5
- package/exemplars/ui/auth-login/a2ui.json +6 -3
- package/exemplars/ui/auth-login/chunks/auth-login-card-2.json +1 -0
- package/exemplars/ui/auth-login/chunks/auth-login-card-3.json +3 -2
- package/exemplars/ui/auth-login/chunks/auth-login-card-9.json +2 -1
- package/manifest.json +1 -1
- package/package.json +3 -1
- package/pattern-embeddings.json +1 -0
- package/patterns/_index.json +1 -1
- package/scripts/chunk-library.js +72 -23
- package/chunks/genui-feed-message.json +0 -14
package/patterns/_index.json
CHANGED
package/scripts/chunk-library.js
CHANGED
|
@@ -83,41 +83,90 @@ export function listChunksByKind(kind) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
* Keyword scoring over chunk metadata. Used as the floor when embeddings
|
|
87
|
+
* are unavailable AND blended into the final score when they are.
|
|
88
|
+
*/
|
|
89
|
+
function keywordScore(name, rec, query) {
|
|
90
|
+
const q = query.toLowerCase();
|
|
91
|
+
const tokens = q.split(/[\s\-_]+/).filter(Boolean);
|
|
92
|
+
const haystack = [
|
|
93
|
+
name,
|
|
94
|
+
rec.primary || '',
|
|
95
|
+
...(rec.slots || []).map((s) => s.name || ''),
|
|
96
|
+
...(rec.instances?.[0]?.slots || []).map((s) => s.name || ''),
|
|
97
|
+
Object.values(rec.attrs || {}).join(' '),
|
|
98
|
+
].join(' ').toLowerCase();
|
|
99
|
+
|
|
100
|
+
let score = 0;
|
|
101
|
+
if (name.toLowerCase().startsWith(q)) score += 10;
|
|
102
|
+
if (haystack.includes(q)) score += 5;
|
|
103
|
+
for (const tok of tokens) {
|
|
104
|
+
if (name.toLowerCase().includes(tok)) score += 2;
|
|
105
|
+
if (haystack.includes(tok)) score += 1;
|
|
106
|
+
}
|
|
107
|
+
return score;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Search chunks. Two-mode:
|
|
112
|
+
* - Sync (default): keyword-only scoring; no API calls.
|
|
113
|
+
* - Async (`searchChunksAsync`): blends semantic embedding cosine score
|
|
114
|
+
* (when chunk-embeddings.json + an OPENAI/VOYAGE key are available)
|
|
115
|
+
* with keyword score; falls back to keyword-only on any failure.
|
|
91
116
|
*
|
|
92
|
-
*
|
|
117
|
+
* The sync path is preserved for callers that need a synchronous result
|
|
118
|
+
* (e.g. compose_from_chunks's retrieval-first tier doesn't want to await
|
|
119
|
+
* a network round trip just to short-circuit on a strong keyword hit).
|
|
93
120
|
*/
|
|
94
121
|
export function searchChunks(query, { kind, limit = 20 } = {}) {
|
|
95
122
|
const { chunks } = load();
|
|
96
123
|
if (!query || typeof query !== 'string') return [];
|
|
97
|
-
const q = query.toLowerCase();
|
|
98
|
-
const tokens = q.split(/[\s\-_]+/).filter(Boolean);
|
|
99
124
|
|
|
100
125
|
const candidates = [];
|
|
101
126
|
for (const [name, rec] of chunks) {
|
|
102
127
|
if (kind && rec.kind !== kind) continue;
|
|
103
|
-
const
|
|
104
|
-
name,
|
|
105
|
-
rec.primary || '',
|
|
106
|
-
...(rec.slots || []).map((s) => s.name || ''),
|
|
107
|
-
...(rec.instances?.[0]?.slots || []).map((s) => s.name || ''),
|
|
108
|
-
Object.values(rec.attrs || {}).join(' '),
|
|
109
|
-
].join(' ').toLowerCase();
|
|
110
|
-
|
|
111
|
-
let score = 0;
|
|
112
|
-
if (name.toLowerCase().startsWith(q)) score += 10;
|
|
113
|
-
if (haystack.includes(q)) score += 5;
|
|
114
|
-
for (const tok of tokens) {
|
|
115
|
-
if (name.toLowerCase().includes(tok)) score += 2;
|
|
116
|
-
if (haystack.includes(tok)) score += 1;
|
|
117
|
-
}
|
|
128
|
+
const score = keywordScore(name, rec, query);
|
|
118
129
|
if (score > 0) candidates.push({ name, score, kind: rec.kind, primary: rec.primary });
|
|
119
130
|
}
|
|
131
|
+
candidates.sort((a, b) => b.score - a.score);
|
|
132
|
+
return candidates.slice(0, limit);
|
|
133
|
+
}
|
|
120
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Embedding-blended search. Returns the top `limit` chunks ranked by
|
|
137
|
+
* (keyword + 5×cosine) when embeddings are available; falls back to
|
|
138
|
+
* keyword-only when not. Scoring weights are tuned so a perfect cosine
|
|
139
|
+
* match (1.0) contributes ~5 to the score, comparable to a name-prefix hit.
|
|
140
|
+
*/
|
|
141
|
+
export async function searchChunksAsync(query, { kind, limit = 20 } = {}) {
|
|
142
|
+
const { chunks } = load();
|
|
143
|
+
if (!query || typeof query !== 'string') return [];
|
|
144
|
+
|
|
145
|
+
let cosineByName = null;
|
|
146
|
+
try {
|
|
147
|
+
const { scoreAll, available } = await import('../../retrieval/chunk-embedding-retriever.js');
|
|
148
|
+
if (await available()) {
|
|
149
|
+
cosineByName = await scoreAll(query);
|
|
150
|
+
}
|
|
151
|
+
} catch { /* embeddings unavailable — keyword-only */ }
|
|
152
|
+
|
|
153
|
+
const candidates = [];
|
|
154
|
+
for (const [name, rec] of chunks) {
|
|
155
|
+
if (kind && rec.kind !== kind) continue;
|
|
156
|
+
const kw = keywordScore(name, rec, query);
|
|
157
|
+
const cos = cosineByName?.get(name) || 0;
|
|
158
|
+
const blended = kw + cos * 5;
|
|
159
|
+
if (blended > 0) {
|
|
160
|
+
candidates.push({
|
|
161
|
+
name,
|
|
162
|
+
score: blended,
|
|
163
|
+
keywordScore: kw,
|
|
164
|
+
cosineScore: cos,
|
|
165
|
+
kind: rec.kind,
|
|
166
|
+
primary: rec.primary,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
121
170
|
candidates.sort((a, b) => b.score - a.score);
|
|
122
171
|
return candidates.slice(0, limit);
|
|
123
172
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "genui-feed-message",
|
|
3
|
-
"kind": "block",
|
|
4
|
-
"primary": "col-ui",
|
|
5
|
-
"page": "/site/examples/gen-ui-feed",
|
|
6
|
-
"slots": [],
|
|
7
|
-
"nested": [],
|
|
8
|
-
"attrs": {
|
|
9
|
-
"gap": "8"
|
|
10
|
-
},
|
|
11
|
-
"html": "<col-ui gap=\"8\" id=\"gen-feed\" data-chunk=\"genui-feed-message\">\n\n <!-- ═══════════ USER TURN 1 ═══════════ -->\n <article>\n <row-ui gap=\"2\" align=\"center\">\n <avatar-ui text=\"Jane Smith\" size=\"sm\"></avatar-ui>\n <text-ui strong>Jane</text-ui>\n <text-ui color=\"subtle\">·</text-ui>\n <text-ui color=\"subtle\">2 min ago</text-ui>\n </row-ui>\n <p>Pull our Q4 revenue breakdown — I need to see the trend, the outliers, where the data came from, and a follow-up meeting on the calendar.</p>\n </article>\n\n <!-- ═══════════ ASSISTANT TURN 1 ═══════════ -->\n <article>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"sparkle\" color=\"accent\"></icon-ui>\n <text-ui strong>Assistant</text-ui>\n <text-ui color=\"subtle\">·</text-ui>\n <text-ui color=\"subtle\">now</text-ui>\n </row-ui>\n\n <col-ui gap=\"4\">\n\n <!-- (5) Alert — info banner -->\n <alert-ui\n variant=\"info\"\n icon=\"info\"\n text=\"Pulled from the finance warehouse as of today 09:12 UTC. Figures are unaudited.\"\n ></alert-ui>\n\n <!-- (1) Reasoning trace -->\n <agent-reasoning-ui\n id=\"reasoning-1\"\n heading=\"Analyzing the request\"\n collapsed\n no-autocollapse\n ></agent-reasoning-ui>\n\n <!-- (6) Pipeline status -->\n <pipeline-status-ui stage=\"parsing\" status=\"completed\" message=\"Parsing intent\"></pipeline-status-ui>\n <pipeline-status-ui stage=\"retrieval\" status=\"completed\" message=\"Retrieving data\"></pipeline-status-ui>\n <pipeline-status-ui stage=\"rendering\" message=\"Rendering\"></pipeline-status-ui>\n\n <!-- (2) Tool call — accordion with status header + json body -->\n <accordion-ui>\n <accordion-item-ui>\n <span slot=\"trigger\">\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"check-circle\" color=\"success\"></icon-ui>\n <text-ui strong>get_revenue</text-ui>\n <text-ui color=\"subtle\">returned 4 rows · 340ms</text-ui>\n <badge-ui text=\"DONE\" variant=\"success\"></badge-ui>\n </row-ui>\n </span>\n <code-ui language=\"json\" text='{\n \"from\": \"2025-01-01\",\n \"to\": \"2025-12-31\",\n \"group\": \"quarter\"\n}'></code-ui>\n </accordion-item-ui>\n </accordion-ui>\n\n <!-- (4) Metrics trace -->\n <agent-trace-ui id=\"trace-1\"></agent-trace-ui>\n\n <!-- (7) KPI stat grid -->\n <grid-ui columns=\"4\" gap=\"4\">\n <card-ui size=\"sm\"><section><stat-ui label=\"Q4 Revenue\" value=\"$2.45M\" change=\"+23%\" trend=\"up\" icon=\"currency-dollar\"></stat-ui></section></card-ui>\n <card-ui size=\"sm\"><section><stat-ui label=\"Net New ARR\" value=\"$580K\" change=\"+41%\" trend=\"up\" icon=\"chart-line-up\"></stat-ui></section></card-ui>\n <card-ui size=\"sm\"><section><stat-ui label=\"Gross Margin\" value=\"78.2%\" change=\"+1.4%\" trend=\"up\" icon=\"percent\"></stat-ui></section></card-ui>\n <card-ui size=\"sm\"><section><stat-ui label=\"Churn\" value=\"3.1%\" change=\"-0.6%\" trend=\"down\" icon=\"trend-down\"></stat-ui></section></card-ui>\n </grid-ui>\n\n <!-- (8) Chart card -->\n <card-ui>\n <header>\n <h3>Revenue by quarter</h3>\n <text-ui slot=\"description\" color=\"subtle\" size=\"sm\">4-quarter rolling trend, all regions</text-ui>\n </header>\n <section>\n <chart-ui id=\"chart-rev\" type=\"bar\" x=\"label\" y=\"value\"></chart-ui>\n </section>\n </card-ui>\n\n <!-- (10) Heatmap -->\n <card-ui>\n <header>\n <h3>Deal closes · last 90 days</h3>\n <text-ui slot=\"description\" color=\"subtle\" size=\"sm\">Each cell = one weekday</text-ui>\n </header>\n <section>\n <heatmap-ui id=\"hm-closes\" type=\"day-grid\" rows=\"7\" cols=\"13\" start-date=\"2025-10-20\"></heatmap-ui>\n </section>\n </card-ui>\n\n <!-- (9) Data table -->\n <card-ui>\n <header>\n <h3>Top accounts this quarter</h3>\n <text-ui slot=\"description\" color=\"subtle\" size=\"sm\">Sorted by revenue · click to drill</text-ui>\n </header>\n <section bleed>\n <table-ui id=\"top-accounts\" paginate=\"5\"></table-ui>\n </section>\n </card-ui>\n\n <!-- (11) Description list -->\n <card-ui>\n <header>\n <h3>Query parameters</h3>\n </header>\n <section>\n <description-list-ui layout=\"stacked\">\n <dt>Period</dt><dd>2025-01-01 → 2025-12-31</dd>\n <dt>Currency</dt><dd>USD, converted at month-end FX</dd>\n <dt>Source</dt><dd>warehouse.finance.revenue_v4</dd>\n <dt>Filter</dt><dd>status = \"won\", excluded internal test accounts</dd>\n <dt>Refreshed</dt><dd>2026-04-20 09:12 UTC</dd>\n </description-list-ui>\n </section>\n </card-ui>\n\n <!-- (14) Code block — the SQL behind the answer -->\n <code-ui\n language=\"sql\"\n text='SELECT\n date_trunc(quarter, closed_at) AS quarter,\n sum(amount_usd) AS revenue,\n count(distinct account_id) AS accounts\nFROM warehouse.finance.revenue_v4\nWHERE status = \"won\"\n AND closed_at BETWEEN \"2025-01-01\" AND \"2025-12-31\"\nGROUP BY 1\nORDER BY 1;'\n ></code-ui>\n\n <!-- (12) Citations row — chips of sources -->\n <row-ui gap=\"2\" wrap>\n <tag-ui text=\"¹ warehouse.revenue_v4\"></tag-ui>\n <tag-ui text=\"² salesforce.opportunity\"></tag-ui>\n <tag-ui text=\"³ board-prep.notion.so\"></tag-ui>\n <tag-ui text=\"⁴ q4-cohort-analysis\"></tag-ui>\n </row-ui>\n\n <!-- (18) Follow-up suggestions -->\n <agent-suggestions-ui id=\"sug-1\"></agent-suggestions-ui>\n\n </col-ui>\n </article>\n\n <!-- ═══════════ USER TURN 2 ═══════════ -->\n <article>\n <row-ui gap=\"2\" align=\"center\">\n <avatar-ui text=\"Jane Smith\" size=\"sm\"></avatar-ui>\n <text-ui strong>Jane</text-ui>\n <text-ui color=\"subtle\">·</text-ui>\n <text-ui color=\"subtle\">just now</text-ui>\n </row-ui>\n <p>Great — drop the regional photos in too, plus a link to last quarter's prep notes, the field-visit map, and a draft for the board email. Then schedule the review meeting.</p>\n </article>\n\n <!-- ═══════════ ASSISTANT TURN 2 ═══════════ -->\n <article>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"sparkle\" color=\"accent\"></icon-ui>\n <text-ui strong>Assistant</text-ui>\n <text-ui color=\"subtle\">·</text-ui>\n <text-ui color=\"subtle\">now</text-ui>\n </row-ui>\n\n <col-ui gap=\"4\">\n\n <!-- (15) Image grid -->\n <grid-ui columns=\"3\" gap=\"3\">\n <image-ui src=\"https://picsum.photos/seed/rev-1/480/320\" alt=\"Quarterly chart export\" radius=\"md\" style=\"aspect-ratio:3/2\"></image-ui>\n <image-ui src=\"https://picsum.photos/seed/rev-2/480/320\" alt=\"Top account visualization\" radius=\"md\" style=\"aspect-ratio:3/2\"></image-ui>\n <image-ui src=\"https://picsum.photos/seed/rev-3/480/320\" alt=\"Regional breakdown\" radius=\"md\" style=\"aspect-ratio:3/2\"></image-ui>\n </grid-ui>\n\n <!-- (13) Link preview — card with media slot -->\n <card-ui>\n <image-ui slot=\"media\" src=\"https://picsum.photos/seed/q4-prep/960/360\" alt=\"\" style=\"aspect-ratio:8/3\"></image-ui>\n <header>\n <h3>Q4 Board Prep — Revenue & Outlook Draft</h3>\n <text-ui slot=\"description\" color=\"subtle\" size=\"sm\">confluence.internal · 6 min read</text-ui>\n </header>\n <section>\n <text-ui>Sarah Chen's shared draft covers ARR trajectory, cohort retention, and the segmentation the board will want to see.</text-ui>\n </section>\n </card-ui>\n\n <!-- (16) Map + list -->\n <grid-ui columns=\"5\" gap=\"4\">\n <image-ui span=\"3\" src=\"https://picsum.photos/seed/map-q4/640/480\" alt=\"Map of field-visit locations\" radius=\"md\" style=\"aspect-ratio:4/3\"></image-ui>\n <card-ui span=\"2\">\n <header>\n <h3>Field visits · Q4</h3>\n </header>\n <section>\n <list-ui divider>\n <list-item-ui>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"map-pin\" color=\"accent\"></icon-ui>\n <col-ui gap=\"0\">\n <text-ui strong>San Francisco</text-ui>\n <text-ui color=\"subtle\" size=\"sm\">Acme Corp · Globex · 3 more</text-ui>\n </col-ui>\n </row-ui>\n </list-item-ui>\n <list-item-ui>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"map-pin\" color=\"accent\"></icon-ui>\n <col-ui gap=\"0\">\n <text-ui strong>New York</text-ui>\n <text-ui color=\"subtle\" size=\"sm\">Stark Industries · 2 more</text-ui>\n </col-ui>\n </row-ui>\n </list-item-ui>\n <list-item-ui>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"map-pin\" color=\"accent\"></icon-ui>\n <col-ui gap=\"0\">\n <text-ui strong>London</text-ui>\n <text-ui color=\"subtle\" size=\"sm\">Umbrella Corp</text-ui>\n </col-ui>\n </row-ui>\n </list-item-ui>\n <list-item-ui>\n <row-ui gap=\"2\" align=\"center\">\n <icon-ui name=\"map-pin\" color=\"accent\"></icon-ui>\n <col-ui gap=\"0\">\n <text-ui strong>Berlin</text-ui>\n <text-ui color=\"subtle\" size=\"sm\">Wayne Enterprises</text-ui>\n </col-ui>\n </row-ui>\n </list-item-ui>\n </list-ui>\n </section>\n </card-ui>\n </grid-ui>\n\n <!-- (3) Artifact stub — promoted to canvas -->\n <card-ui>\n <section>\n <row-ui gap=\"3\" align=\"center\">\n <icon-ui name=\"file-code\" color=\"accent\"></icon-ui>\n <col-ui gap=\"0\" grow>\n <text-ui strong>q4-board-deck.a2ui</text-ui>\n <text-ui color=\"subtle\" size=\"sm\">A2UI · 42 lines · interactive</text-ui>\n </col-ui>\n <button-ui text=\"Open in canvas\" icon=\"arrows-out-simple\" variant=\"outline\" size=\"sm\"></button-ui>\n </row-ui>\n </section>\n </card-ui>\n\n <!-- (3b) Artifact — inline expanded -->\n <agent-artifact-ui title=\"q4-followup.js\" kind=\"code\" icon=\"file-code\" tone=\"accent\">\n <button-ui slot=\"secondary\" text=\"Copy\" icon=\"copy\" variant=\"ghost\" size=\"sm\"></button-ui>\n <code-ui language=\"js\" text='// Email draft — send after the sync\nexport const message = {\n to: [\"board@acme.io\"],\n subject: \"Q4 revenue & outlook — pre-read\",\n body: `\n Q4 came in at $2.45M (+23% QoQ).\n Top 10 accounts contributed 62% of net-new ARR.\n Detailed breakdown in the attached doc.\n - Sarah\n `.trim(),\n};'></code-ui>\n </agent-artifact-ui>\n\n <!-- (17) Form — schedule a review meeting -->\n <card-ui>\n <header>\n <h3>Schedule review meeting</h3>\n <text-ui slot=\"description\" color=\"subtle\" size=\"sm\">I'll send the invite once you confirm</text-ui>\n </header>\n <section>\n <col-ui gap=\"3\">\n <field-ui label=\"Title\">\n <input-ui value=\"Q4 revenue review · board prep\"></input-ui>\n </field-ui>\n <row-ui gap=\"3\">\n <field-ui label=\"Date\">\n <calendar-picker-ui value=\"2026-04-24\" grow></calendar-picker-ui>\n </field-ui>\n <field-ui label=\"Time\">\n <select-ui grow>\n <option value=\"09:00\">9:00 AM</option>\n <option value=\"10:00\">10:00 AM</option>\n <option value=\"14:00\" selected>2:00 PM</option>\n <option value=\"16:00\">4:00 PM</option>\n </select-ui>\n </field-ui>\n </row-ui>\n <field-ui label=\"Attendees\">\n <input-ui value=\"sarah@acme.io, alex@acme.io, board@acme.io\"></input-ui>\n </field-ui>\n <field-ui label=\"Attach Q4 revenue deck\" inline>\n <check-ui checked></check-ui>\n </field-ui>\n </col-ui>\n </section>\n <footer divider>\n <small slot=\"description\">Invite sends immediately after confirm.</small>\n <span slot=\"action\">\n <button-ui text=\"Cancel\" variant=\"ghost\"></button-ui>\n <button-ui text=\"Send invite\" variant=\"primary\" icon=\"paper-plane-tilt\"></button-ui>\n </span>\n </footer>\n </card-ui>\n\n <!-- (18) Follow-up suggestions -->\n <agent-suggestions-ui id=\"sug-2\"></agent-suggestions-ui>\n\n </col-ui>\n </article>\n\n</col-ui>",
|
|
12
|
-
"source": "site/pages/examples/gen-ui-feed/index.html",
|
|
13
|
-
"captured_at": "2026-04-28T04:46:20.743Z"
|
|
14
|
-
}
|