@adia-ai/a2ui-corpus 0.0.2 → 0.0.4
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 +88 -0
- package/README.md +26 -6
- package/chunk-embeddings.json +1 -0
- package/chunks/_index.json +8056 -0
- package/chunks/accordion-basic.json +15 -0
- package/chunks/accordion-combinations.json +15 -0
- package/chunks/accordion-edge-cases.json +15 -0
- package/chunks/accordion-multiple.json +15 -0
- package/chunks/accordion-open.json +15 -0
- package/chunks/action-list-basic.json +15 -0
- package/chunks/action-list-combo.json +15 -0
- package/chunks/action-list-danger.json +15 -0
- package/chunks/action-list-disabled.json +15 -0
- package/chunks/action-list-edge.json +15 -0
- package/chunks/action-list-icon.json +15 -0
- package/chunks/agent-artifact-code.json +15 -0
- package/chunks/agent-artifact-tone.json +15 -0
- package/chunks/agent-feedback-bar-basic.json +15 -0
- package/chunks/agent-feedback-bar-save.json +15 -0
- package/chunks/agent-questions-multi.json +15 -0
- package/chunks/agent-questions-single.json +15 -0
- package/chunks/agent-reasoning-iterations.json +15 -0
- package/chunks/agent-reasoning-plan-and-thoughts.json +15 -0
- package/chunks/agent-reasoning-steps-only.json +15 -0
- package/chunks/agent-suggestions-basic.json +15 -0
- package/chunks/agent-suggestions-ghost.json +15 -0
- package/chunks/agent-suggestions-icons.json +15 -0
- package/chunks/agent-trace-feedback.json +15 -0
- package/chunks/agent-trace-metrics.json +15 -0
- package/chunks/agent-trace-pills.json +15 -0
- package/chunks/alert-closable.json +15 -0
- package/chunks/alert-combinations.json +15 -0
- package/chunks/alert-edge-cases.json +15 -0
- package/chunks/alert-icon.json +15 -0
- package/chunks/alert-text.json +15 -0
- package/chunks/alert-variant.json +15 -0
- package/chunks/auth-account-deleted-actions.json +15 -0
- package/chunks/auth-account-deleted.json +18 -0
- package/chunks/auth-card-content.json +247 -0
- package/chunks/auth-card-header.json +192 -0
- package/chunks/auth-email-entry.json +16 -0
- package/chunks/auth-email-verify-confirm.json +16 -0
- package/chunks/auth-email-verify.json +18 -0
- package/chunks/auth-forbidden-actions.json +15 -0
- package/chunks/auth-forbidden.json +18 -0
- package/chunks/auth-invite-actions.json +15 -0
- package/chunks/auth-invite-team-card.json +12 -0
- package/chunks/auth-link-expired-form.json +16 -0
- package/chunks/auth-link-expired.json +18 -0
- package/chunks/auth-locked-account.json +18 -0
- package/chunks/auth-locked-recovery-options.json +14 -0
- package/chunks/auth-mfa-enrollment-submit.json +16 -0
- package/chunks/auth-mfa-enrollment.json +18 -0
- package/chunks/auth-mfa-fallback-actions.json +14 -0
- package/chunks/auth-mfa-recovery.json +14 -0
- package/chunks/auth-new-password-form.json +14 -0
- package/chunks/auth-new-password.json +18 -0
- package/chunks/auth-oauth-fallback-actions.json +15 -0
- package/chunks/auth-oauth-interstitial.json +17 -0
- package/chunks/auth-password-challenge.json +14 -0
- package/chunks/auth-password-reset-form.json +16 -0
- package/chunks/auth-password-reset.json +18 -0
- package/chunks/auth-profile-form.json +14 -0
- package/chunks/auth-profile-setup.json +18 -0
- package/chunks/auth-reset-sent.json +17 -0
- package/chunks/auth-session-expired-actions.json +15 -0
- package/chunks/auth-session-expired.json +18 -0
- package/chunks/auth-signin-card-email.json +19 -0
- package/chunks/auth-signin-card-magic-link.json +14 -0
- package/chunks/auth-signin-card-mfa.json +18 -0
- package/chunks/auth-signin-card-otp.json +14 -0
- package/chunks/auth-signin-card-password.json +18 -0
- package/chunks/auth-signin-card-recovery.json +18 -0
- package/chunks/auth-signout-actions.json +15 -0
- package/chunks/auth-signout.json +18 -0
- package/chunks/auth-signup-email-entry.json +16 -0
- package/chunks/auth-signup-entry.json +19 -0
- package/chunks/auth-signup-social-auths.json +14 -0
- package/chunks/auth-signup-verify.json +17 -0
- package/chunks/auth-social-auths.json +14 -0
- package/chunks/auth-sso-providers.json +15 -0
- package/chunks/auth-sso-required.json +18 -0
- package/chunks/auth-team-invite.json +19 -0
- package/chunks/avatar-avatar-group.json +15 -0
- package/chunks/avatar-shape.json +15 -0
- package/chunks/avatar-size.json +15 -0
- package/chunks/avatar-src.json +15 -0
- package/chunks/avatar-text.json +15 -0
- package/chunks/badge-combinations.json +15 -0
- package/chunks/badge-edge-cases.json +15 -0
- package/chunks/badge-size.json +15 -0
- package/chunks/badge-text.json +15 -0
- package/chunks/badge-variant.json +15 -0
- package/chunks/block-combo.json +15 -0
- package/chunks/block-edge.json +15 -0
- package/chunks/block-margin.json +15 -0
- package/chunks/block-padding.json +15 -0
- package/chunks/breadcrumb-basic.json +15 -0
- package/chunks/breadcrumb-combo.json +15 -0
- package/chunks/breadcrumb-edge.json +15 -0
- package/chunks/breadcrumb-links.json +15 -0
- package/chunks/breadcrumb-long.json +15 -0
- package/chunks/breadcrumb-separator.json +15 -0
- package/chunks/bulk-action-toolbar-swap.json +15 -0
- package/chunks/button-block.json +15 -0
- package/chunks/button-combinations.json +15 -0
- package/chunks/button-disabled.json +15 -0
- package/chunks/button-edge-cases.json +15 -0
- package/chunks/button-icon.json +15 -0
- package/chunks/button-size.json +15 -0
- package/chunks/button-text-icon.json +15 -0
- package/chunks/button-text.json +15 -0
- package/chunks/button-trailing.json +15 -0
- package/chunks/button-type.json +15 -0
- package/chunks/button-variant-solid.json +15 -0
- package/chunks/button-variant.json +15 -0
- package/chunks/calendar-picker-default.json +15 -0
- package/chunks/calendar-picker-disabled.json +15 -0
- package/chunks/calendar-picker-format.json +15 -0
- package/chunks/calendar-picker-label.json +15 -0
- package/chunks/calendar-picker-max.json +15 -0
- package/chunks/calendar-picker-min-max.json +15 -0
- package/chunks/calendar-picker-min.json +15 -0
- package/chunks/calendar-picker-name.json +15 -0
- package/chunks/calendar-picker-open.json +15 -0
- package/chunks/calendar-picker-placeholder.json +15 -0
- package/chunks/calendar-picker-required.json +15 -0
- package/chunks/calendar-picker-value.json +15 -0
- package/chunks/canvas-basic.json +15 -0
- package/chunks/canvas-history.json +15 -0
- package/chunks/canvas-theme.json +15 -0
- package/chunks/card-elevation.json +15 -0
- package/chunks/card-header-body-footer.json +15 -0
- package/chunks/card-raw.json +15 -0
- package/chunks/card-size-lg.json +15 -0
- package/chunks/card-size-md.json +15 -0
- package/chunks/card-size.json +15 -0
- package/chunks/card-variant-filled.json +15 -0
- package/chunks/card-variant-ghost.json +15 -0
- package/chunks/card-variant-outlined.json +15 -0
- package/chunks/card-variant.json +15 -0
- package/chunks/chart-average.json +15 -0
- package/chunks/chart-color.json +15 -0
- package/chunks/chart-data-stream.json +15 -0
- package/chunks/chart-deprecated.json +15 -0
- package/chunks/chart-format.json +15 -0
- package/chunks/chart-hideGrid.json +15 -0
- package/chunks/chart-hideValues.json +15 -0
- package/chunks/chart-in-card-chart-plus-breakdown.json +15 -0
- package/chunks/chart-in-card-chart-plus-stat.json +15 -0
- package/chunks/chart-in-card-chart-with-filter-pills.json +15 -0
- package/chunks/chart-in-card-full-chart.json +15 -0
- package/chunks/chart-in-card-sparkline-tile.json +15 -0
- package/chunks/chart-in-card-stat-with-sparkline.json +15 -0
- package/chunks/chart-in-card-trend-footer.json +15 -0
- package/chunks/chart-legend-for.json +15 -0
- package/chunks/chart-legend-on-toggle.json +15 -0
- package/chunks/chart-legend-position.json +15 -0
- package/chunks/chart-legend-shape.json +15 -0
- package/chunks/chart-legend-static.json +15 -0
- package/chunks/chart-radius.json +15 -0
- package/chunks/chart-size.json +15 -0
- package/chunks/chart-sizing.json +15 -0
- package/chunks/chart-smooth.json +15 -0
- package/chunks/chart-states.json +15 -0
- package/chunks/chart-title.json +15 -0
- package/chunks/chart-type.json +15 -0
- package/chunks/chat-basic.json +15 -0
- package/chunks/chat-streaming.json +15 -0
- package/chunks/chat-with-input.json +15 -0
- package/chunks/check-checked.json +15 -0
- package/chunks/check-combinations.json +15 -0
- package/chunks/check-disabled.json +15 -0
- package/chunks/check-edge-cases.json +15 -0
- package/chunks/check-indeterminate.json +15 -0
- package/chunks/check-label.json +15 -0
- package/chunks/check-size.json +15 -0
- package/chunks/code-bare.json +15 -0
- package/chunks/code-combo.json +15 -0
- package/chunks/code-disabled-readonly.json +15 -0
- package/chunks/code-edge.json +15 -0
- package/chunks/code-editable.json +15 -0
- package/chunks/code-form-association.json +15 -0
- package/chunks/code-inline.json +15 -0
- package/chunks/code-language.json +15 -0
- package/chunks/code-line-numbers.json +15 -0
- package/chunks/code-lint-gutter.json +15 -0
- package/chunks/code-long-code.json +15 -0
- package/chunks/code-no-language.json +15 -0
- package/chunks/color-picker-default.json +15 -0
- package/chunks/color-picker-disabled.json +15 -0
- package/chunks/color-picker-format.json +15 -0
- package/chunks/color-picker-name.json +15 -0
- package/chunks/color-picker-value.json +15 -0
- package/chunks/command-combo.json +15 -0
- package/chunks/command-edge.json +15 -0
- package/chunks/command-grouped.json +15 -0
- package/chunks/command-inline.json +15 -0
- package/chunks/command-open.json +15 -0
- package/chunks/command-placeholder.json +15 -0
- package/chunks/command-shortcuts.json +15 -0
- package/chunks/commerce-pricing-tiers.json +16 -0
- package/chunks/conversion-funnel-4-step-funnel.json +15 -0
- package/chunks/conversion-funnel-wide-summary.json +15 -0
- package/chunks/conversion-funnel-with-segment-compare.json +15 -0
- package/chunks/dashboard-acquisition-panel.json +17 -0
- package/chunks/dashboard-admin-page.json +50 -0
- package/chunks/dashboard-audience-kpis.json +15 -0
- package/chunks/dashboard-audience-panel.json +19 -0
- package/chunks/dashboard-behavior-panel.json +17 -0
- package/chunks/dashboard-chart-recent.json +15 -0
- package/chunks/dashboard-cohort-retention.json +12 -0
- package/chunks/dashboard-conversion-panel.json +18 -0
- package/chunks/dashboard-country-list.json +12 -0
- package/chunks/dashboard-filter-bar.json +12 -0
- package/chunks/dashboard-funnel.json +12 -0
- package/chunks/dashboard-kpi-grid.json +15 -0
- package/chunks/dashboard-notifications-feed.json +12 -0
- package/chunks/dashboard-notifications-panel.json +17 -0
- package/chunks/dashboard-overview-panel.json +23 -0
- package/chunks/dashboard-page-header.json +14 -0
- package/chunks/dashboard-pages-table.json +12 -0
- package/chunks/dashboard-quick-actions.json +12 -0
- package/chunks/dashboard-reports-panel.json +17 -0
- package/chunks/dashboard-reports-table.json +12 -0
- package/chunks/dashboard-spark-cards.json +15 -0
- package/chunks/dashboard-storage-card.json +12 -0
- package/chunks/dashboard-tabs.json +14 -0
- package/chunks/dashboard-team-actions-storage.json +19 -0
- package/chunks/dashboard-team-list.json +12 -0
- package/chunks/dashboard-traffic-channels.json +15 -0
- package/chunks/dashboard-transactions-table.json +12 -0
- package/chunks/description-list-align.json +15 -0
- package/chunks/description-list-inline.json +15 -0
- package/chunks/description-list-items.json +15 -0
- package/chunks/description-list-layout.json +15 -0
- package/chunks/description-list-programmatic.json +15 -0
- package/chunks/description-list-stacked.json +15 -0
- package/chunks/divider-combo.json +15 -0
- package/chunks/divider-edge.json +15 -0
- package/chunks/divider-horizontal.json +15 -0
- package/chunks/divider-label.json +15 -0
- package/chunks/divider-vertical-label.json +15 -0
- package/chunks/divider-vertical.json +15 -0
- package/chunks/drawer-2fa-key.json +15 -0
- package/chunks/drawer-2fa-sms.json +15 -0
- package/chunks/drawer-2fa-totp.json +15 -0
- package/chunks/drawer-cancel-sub.json +15 -0
- package/chunks/drawer-change-plan.json +15 -0
- package/chunks/drawer-custom-roles.json +15 -0
- package/chunks/drawer-data-start.json +15 -0
- package/chunks/drawer-delete-account.json +15 -0
- package/chunks/drawer-delete-workspace.json +15 -0
- package/chunks/drawer-discord.json +15 -0
- package/chunks/drawer-edge-cases.json +15 -0
- package/chunks/drawer-figma.json +15 -0
- package/chunks/drawer-first-dashboard.json +15 -0
- package/chunks/drawer-footer.json +15 -0
- package/chunks/drawer-gcal.json +15 -0
- package/chunks/drawer-github.json +15 -0
- package/chunks/drawer-header-grid.json +15 -0
- package/chunks/drawer-invite.json +15 -0
- package/chunks/drawer-multi-section.json +15 -0
- package/chunks/drawer-open.json +15 -0
- package/chunks/drawer-payment-method.json +15 -0
- package/chunks/drawer-permanent.json +15 -0
- package/chunks/drawer-report.json +15 -0
- package/chunks/drawer-revoke-session.json +15 -0
- package/chunks/drawer-role.json +15 -0
- package/chunks/drawer-side.json +15 -0
- package/chunks/drawer-size.json +15 -0
- package/chunks/drawer-slack.json +15 -0
- package/chunks/drawer-smtp.json +15 -0
- package/chunks/drawer-source.json +15 -0
- package/chunks/drawer-text.json +15 -0
- package/chunks/drawer-transaction.json +15 -0
- package/chunks/embed-aspect.json +15 -0
- package/chunks/embed-default.json +15 -0
- package/chunks/embed-height.json +15 -0
- package/chunks/embed-src.json +15 -0
- package/chunks/embed-width.json +15 -0
- package/chunks/empty-state-action.json +15 -0
- package/chunks/empty-state-basic.json +15 -0
- package/chunks/empty-state-description.json +15 -0
- package/chunks/empty-state-error.json +15 -0
- package/chunks/empty-state-heading.json +15 -0
- package/chunks/empty-state-icon.json +15 -0
- package/chunks/error-404-actions.json +15 -0
- package/chunks/error-404.json +18 -0
- package/chunks/error-500-actions.json +15 -0
- package/chunks/error-500.json +18 -0
- package/chunks/error-maintenance-actions.json +15 -0
- package/chunks/error-maintenance.json +18 -0
- package/chunks/field-controls.json +15 -0
- package/chunks/field-default.json +15 -0
- package/chunks/field-error.json +15 -0
- package/chunks/field-hint.json +15 -0
- package/chunks/field-inline.json +15 -0
- package/chunks/field-no-label.json +15 -0
- package/chunks/field-required.json +15 -0
- package/chunks/filter-bar-active-filters.json +15 -0
- package/chunks/filter-bar-filter-bar-with-table.json +15 -0
- package/chunks/filter-bar-saved-views.json +15 -0
- package/chunks/form-drawer-edit-form.json +15 -0
- package/chunks/form-drawer-simple-form.json +15 -0
- package/chunks/form-drawer-tall-form.json +15 -0
- package/chunks/genui-feed-message.json +14 -0
- package/chunks/heatmap-data-stream.json +15 -0
- package/chunks/heatmap-day-grid.json +15 -0
- package/chunks/heatmap-matrix.json +15 -0
- package/chunks/icon-combinations.json +15 -0
- package/chunks/icon-edge-cases.json +15 -0
- package/chunks/icon-label.json +15 -0
- package/chunks/icon-name.json +15 -0
- package/chunks/icon-size.json +15 -0
- package/chunks/image-alt.json +15 -0
- package/chunks/image-default.json +15 -0
- package/chunks/image-fallback.json +15 -0
- package/chunks/image-fit.json +15 -0
- package/chunks/image-height.json +15 -0
- package/chunks/image-radius.json +15 -0
- package/chunks/image-src.json +15 -0
- package/chunks/image-width.json +15 -0
- package/chunks/input-combinations.json +15 -0
- package/chunks/input-disabled.json +15 -0
- package/chunks/input-edge-cases.json +15 -0
- package/chunks/input-error.json +15 -0
- package/chunks/input-label.json +15 -0
- package/chunks/input-name.json +15 -0
- package/chunks/input-pattern.json +15 -0
- package/chunks/input-placeholder.json +15 -0
- package/chunks/input-prefix-suffix.json +15 -0
- package/chunks/input-prefix.json +15 -0
- package/chunks/input-raw.json +15 -0
- package/chunks/input-readonly.json +15 -0
- package/chunks/input-required.json +15 -0
- package/chunks/input-size.json +15 -0
- package/chunks/input-suffix.json +15 -0
- package/chunks/input-type.json +15 -0
- package/chunks/input-value.json +15 -0
- package/chunks/inspector-default.json +15 -0
- package/chunks/inspector-imperative.json +15 -0
- package/chunks/inspector-nested.json +15 -0
- package/chunks/inspector-value.json +15 -0
- package/chunks/kbd-combinations.json +15 -0
- package/chunks/kbd-in-context.json +15 -0
- package/chunks/kbd-single-keys.json +15 -0
- package/chunks/kbd-size.json +15 -0
- package/chunks/layout-align.json +15 -0
- package/chunks/layout-col.json +15 -0
- package/chunks/layout-combo.json +15 -0
- package/chunks/layout-edge.json +15 -0
- package/chunks/layout-grid.json +15 -0
- package/chunks/layout-justify.json +15 -0
- package/chunks/layout-row.json +15 -0
- package/chunks/layout-stack.json +15 -0
- package/chunks/layout-wrap.json +15 -0
- package/chunks/list-basic.json +15 -0
- package/chunks/list-combo.json +15 -0
- package/chunks/list-description.json +15 -0
- package/chunks/list-divider.json +15 -0
- package/chunks/list-edge.json +15 -0
- package/chunks/list-icon.json +15 -0
- package/chunks/list-spacing.json +15 -0
- package/chunks/member-edit-drawer.json +15 -0
- package/chunks/menu-basic.json +15 -0
- package/chunks/menu-combo.json +15 -0
- package/chunks/menu-disabled.json +15 -0
- package/chunks/menu-divider.json +15 -0
- package/chunks/menu-edge.json +15 -0
- package/chunks/menu-gap.json +15 -0
- package/chunks/menu-icon.json +15 -0
- package/chunks/menu-open.json +15 -0
- package/chunks/menu-placement.json +15 -0
- package/chunks/menu-variant.json +15 -0
- package/chunks/modal-basic.json +15 -0
- package/chunks/modal-closable.json +15 -0
- package/chunks/modal-combinations.json +15 -0
- package/chunks/modal-edge-cases.json +15 -0
- package/chunks/modal-open.json +15 -0
- package/chunks/modal-size-xl.json +15 -0
- package/chunks/modal-size.json +15 -0
- package/chunks/modal-text.json +15 -0
- package/chunks/modal-trigger.json +15 -0
- package/chunks/noodles-animated.json +15 -0
- package/chunks/noodles-color.json +15 -0
- package/chunks/noodles-curve.json +15 -0
- package/chunks/noodles-editable.json +15 -0
- package/chunks/noodles-portSize.json +15 -0
- package/chunks/noodles-readonly.json +15 -0
- package/chunks/noodles-showPorts.json +15 -0
- package/chunks/noodles-strokeWidth.json +15 -0
- package/chunks/noodles-tension.json +15 -0
- package/chunks/onb-completion.json +14 -0
- package/chunks/onb-extension-install.json +14 -0
- package/chunks/onb-hero-welcome.json +14 -0
- package/chunks/onb-import-picker.json +14 -0
- package/chunks/onb-mobile-handoff.json +14 -0
- package/chunks/onb-notification-prefs.json +16 -0
- package/chunks/onb-persona-picker.json +14 -0
- package/chunks/onb-provider-tiles.json +14 -0
- package/chunks/onb-settings-review.json +14 -0
- package/chunks/onb-step-footer.json +108 -0
- package/chunks/onb-step-header.json +108 -0
- package/chunks/onb-step-progress.json +108 -0
- package/chunks/onb-story-pane.json +108 -0
- package/chunks/onb-tutorial-steps.json +14 -0
- package/chunks/option-card-default.json +15 -0
- package/chunks/option-card-dense.json +15 -0
- package/chunks/option-card-disabled.json +15 -0
- package/chunks/option-card-heading-rich.json +15 -0
- package/chunks/option-card-icon.json +15 -0
- package/chunks/option-card-spillover.json +15 -0
- package/chunks/otp-input-disabled.json +15 -0
- package/chunks/otp-input-length.json +15 -0
- package/chunks/otp-input-name.json +15 -0
- package/chunks/otp-input-value.json +15 -0
- package/chunks/pagination-basic.json +15 -0
- package/chunks/pagination-combo.json +15 -0
- package/chunks/pagination-edge.json +15 -0
- package/chunks/pagination-first-page.json +15 -0
- package/chunks/pagination-last-page.json +15 -0
- package/chunks/pagination-many-pages.json +15 -0
- package/chunks/pagination-page.json +15 -0
- package/chunks/pagination-siblings.json +15 -0
- package/chunks/pagination-size.json +15 -0
- package/chunks/pagination-total.json +15 -0
- package/chunks/pagination-variant.json +15 -0
- package/chunks/pane-basic.json +15 -0
- package/chunks/pane-collapsed.json +15 -0
- package/chunks/pane-combo.json +15 -0
- package/chunks/pane-edge.json +15 -0
- package/chunks/pane-maxWidth.json +15 -0
- package/chunks/pane-minWidth.json +15 -0
- package/chunks/pane-resizable.json +15 -0
- package/chunks/pane-sections.json +15 -0
- package/chunks/pipeline-status-complete.json +15 -0
- package/chunks/pipeline-status-message.json +15 -0
- package/chunks/pipeline-status-stage.json +15 -0
- package/chunks/playground-a2ui.json +12 -0
- package/chunks/playground-app-shell.json +14 -0
- package/chunks/playground-chat.json +15 -0
- package/chunks/playground-construct-canvas.json +14 -0
- package/chunks/playground-gen-ui.json +14 -0
- package/chunks/playground-render-preview.json +12 -0
- package/chunks/playground-streams-bridge.json +12 -0
- package/chunks/playground-table-toolbar.json +16 -0
- package/chunks/popover-combo.json +15 -0
- package/chunks/popover-edge.json +15 -0
- package/chunks/popover-gap.json +15 -0
- package/chunks/popover-open.json +15 -0
- package/chunks/popover-placement.json +15 -0
- package/chunks/popover-rich-content.json +15 -0
- package/chunks/popover-trigger-click.json +15 -0
- package/chunks/popover-trigger-hover.json +15 -0
- package/chunks/popover-trigger.json +15 -0
- package/chunks/progress-indeterminate.json +15 -0
- package/chunks/progress-row-basic.json +15 -0
- package/chunks/progress-row-combo.json +15 -0
- package/chunks/progress-row-edge.json +15 -0
- package/chunks/progress-row-indeterminate.json +15 -0
- package/chunks/progress-row-label.json +15 -0
- package/chunks/progress-row-meta.json +15 -0
- package/chunks/progress-row-multiple.json +15 -0
- package/chunks/progress-row-value.json +15 -0
- package/chunks/progress-row-variant.json +15 -0
- package/chunks/progress-sizes.json +15 -0
- package/chunks/progress-value.json +15 -0
- package/chunks/progress-variant.json +15 -0
- package/chunks/radio-checked.json +15 -0
- package/chunks/radio-combinations.json +15 -0
- package/chunks/radio-disabled.json +15 -0
- package/chunks/radio-edge-cases.json +15 -0
- package/chunks/radio-error.json +15 -0
- package/chunks/radio-group.json +15 -0
- package/chunks/radio-label.json +15 -0
- package/chunks/radio-name.json +15 -0
- package/chunks/radio-required.json +15 -0
- package/chunks/radio-size.json +15 -0
- package/chunks/radio-value.json +15 -0
- package/chunks/range-combinations.json +15 -0
- package/chunks/range-default.json +15 -0
- package/chunks/range-disabled.json +15 -0
- package/chunks/range-edge-cases.json +15 -0
- package/chunks/range-error.json +15 -0
- package/chunks/range-label.json +15 -0
- package/chunks/range-name.json +15 -0
- package/chunks/range-required.json +15 -0
- package/chunks/range-suffix.json +15 -0
- package/chunks/range-value.json +15 -0
- package/chunks/rating-allowHalf.json +15 -0
- package/chunks/rating-basic.json +15 -0
- package/chunks/rating-icon.json +15 -0
- package/chunks/rating-interactive.json +15 -0
- package/chunks/rating-max.json +15 -0
- package/chunks/rating-name.json +15 -0
- package/chunks/rating-readonly.json +15 -0
- package/chunks/rating-size.json +15 -0
- package/chunks/rating-value.json +15 -0
- package/chunks/record-detail-drawer-simple-detail.json +15 -0
- package/chunks/record-detail-drawer-tabbed-detail.json +15 -0
- package/chunks/reg-address-form.json +14 -0
- package/chunks/reg-billing-card.json +14 -0
- package/chunks/reg-brand-scrape.json +14 -0
- package/chunks/reg-departments-toggle.json +14 -0
- package/chunks/reg-extended-profile.json +14 -0
- package/chunks/reg-final-done.json +14 -0
- package/chunks/reg-helpdesk-grid.json +14 -0
- package/chunks/reg-import-picker.json +14 -0
- package/chunks/reg-integrations-grid.json +14 -0
- package/chunks/reg-invite-form.json +14 -0
- package/chunks/reg-legal-entity.json +14 -0
- package/chunks/reg-org-chart-review.json +14 -0
- package/chunks/reg-profile-identity.json +20 -0
- package/chunks/reg-step-footer.json +188 -0
- package/chunks/reg-step-header.json +189 -0
- package/chunks/reg-step-progress.json +188 -0
- package/chunks/reg-story-pane.json +188 -0
- package/chunks/reg-success-summary.json +14 -0
- package/chunks/reg-team-size.json +14 -0
- package/chunks/reg-usecase-picker.json +16 -0
- package/chunks/reg-workspace-name.json +20 -0
- package/chunks/retention-cohort-default-retention.json +15 -0
- package/chunks/retention-cohort-stat-pair.json +15 -0
- package/chunks/retention-cohort-with-legend.json +15 -0
- package/chunks/richtext-code-blocks.json +15 -0
- package/chunks/richtext-default-slot.json +15 -0
- package/chunks/richtext-markdown.json +15 -0
- package/chunks/richtext-rich-markdown.json +15 -0
- package/chunks/richtext-src.json +15 -0
- package/chunks/search-debounce.json +15 -0
- package/chunks/search-default.json +15 -0
- package/chunks/search-disabled.json +15 -0
- package/chunks/search-name.json +15 -0
- package/chunks/search-placeholder.json +15 -0
- package/chunks/search-value.json +15 -0
- package/chunks/segment-basic.json +15 -0
- package/chunks/segment-disabled.json +15 -0
- package/chunks/segment-icons.json +15 -0
- package/chunks/segment-text.json +15 -0
- package/chunks/segment-value.json +15 -0
- package/chunks/segmented-basic.json +15 -0
- package/chunks/segmented-combo.json +15 -0
- package/chunks/segmented-disabled.json +15 -0
- package/chunks/segmented-edge.json +15 -0
- package/chunks/segmented-pre-selected.json +15 -0
- package/chunks/segmented-value.json +15 -0
- package/chunks/select-avatar.json +15 -0
- package/chunks/select-basic.json +15 -0
- package/chunks/select-combinations.json +15 -0
- package/chunks/select-disabled.json +15 -0
- package/chunks/select-edge-cases.json +15 -0
- package/chunks/select-error.json +15 -0
- package/chunks/select-free-text.json +15 -0
- package/chunks/select-grouped.json +15 -0
- package/chunks/select-icon.json +15 -0
- package/chunks/select-label.json +15 -0
- package/chunks/select-multiple.json +15 -0
- package/chunks/select-name.json +15 -0
- package/chunks/select-open.json +15 -0
- package/chunks/select-placeholder.json +15 -0
- package/chunks/select-readonly.json +15 -0
- package/chunks/select-required.json +15 -0
- package/chunks/select-searchable.json +15 -0
- package/chunks/select-size.json +15 -0
- package/chunks/select-value.json +15 -0
- package/chunks/settings-billing-plan.json +14 -0
- package/chunks/settings-general-form.json +14 -0
- package/chunks/settings-integrations.json +14 -0
- package/chunks/settings-members-invite.json +14 -0
- package/chunks/settings-profile-security.json +14 -0
- package/chunks/skeleton-card-placeholder.json +15 -0
- package/chunks/skeleton-height.json +15 -0
- package/chunks/skeleton-radius.json +15 -0
- package/chunks/skeleton-static.json +15 -0
- package/chunks/skeleton-width-height.json +15 -0
- package/chunks/skeleton-width.json +15 -0
- package/chunks/slider-disabled.json +15 -0
- package/chunks/slider-error.json +15 -0
- package/chunks/slider-label.json +15 -0
- package/chunks/slider-name.json +15 -0
- package/chunks/slider-required.json +15 -0
- package/chunks/slider-suffix.json +15 -0
- package/chunks/slider-value.json +15 -0
- package/chunks/stat-basic.json +15 -0
- package/chunks/stat-change.json +15 -0
- package/chunks/stat-chart-slot.json +15 -0
- package/chunks/stat-data-stream.json +15 -0
- package/chunks/stat-grid.json +15 -0
- package/chunks/stat-icon.json +15 -0
- package/chunks/stat-label.json +15 -0
- package/chunks/stat-trend.json +15 -0
- package/chunks/stat-value.json +15 -0
- package/chunks/stepper-horizontal.json +15 -0
- package/chunks/stepper-interactive.json +15 -0
- package/chunks/stepper-step.json +15 -0
- package/chunks/stepper-vertical.json +15 -0
- package/chunks/stream-basic.json +15 -0
- package/chunks/stream-hide-cursor.json +15 -0
- package/chunks/stream-pace.json +15 -0
- package/chunks/stream-streaming.json +15 -0
- package/chunks/swiper-autoplay.json +15 -0
- package/chunks/swiper-basic.json +15 -0
- package/chunks/swiper-combo.json +15 -0
- package/chunks/swiper-gap.json +15 -0
- package/chunks/swiper-interval.json +15 -0
- package/chunks/swiper-loop.json +15 -0
- package/chunks/swiper-peek.json +15 -0
- package/chunks/swiper-slides-per-view.json +15 -0
- package/chunks/swiper-snap.json +15 -0
- package/chunks/switch-checked.json +15 -0
- package/chunks/switch-combinations.json +15 -0
- package/chunks/switch-disabled.json +15 -0
- package/chunks/switch-edge-cases.json +15 -0
- package/chunks/switch-label.json +15 -0
- package/chunks/switch-size.json +15 -0
- package/chunks/table-cell-types.json +15 -0
- package/chunks/table-data-stream.json +15 -0
- package/chunks/table-density.json +15 -0
- package/chunks/table-expandable.json +15 -0
- package/chunks/table-loading.json +15 -0
- package/chunks/table-paginate.json +15 -0
- package/chunks/table-raw.json +15 -0
- package/chunks/table-search.json +15 -0
- package/chunks/table-selectable.json +15 -0
- package/chunks/table-sortable.json +15 -0
- package/chunks/table-striped.json +15 -0
- package/chunks/tabs-basic.json +15 -0
- package/chunks/tabs-combinations.json +15 -0
- package/chunks/tabs-disabled.json +15 -0
- package/chunks/tabs-edge-cases.json +15 -0
- package/chunks/tabs-icon.json +15 -0
- package/chunks/tabs-keyboard.json +15 -0
- package/chunks/tabs-orientation.json +15 -0
- package/chunks/tabs-value.json +15 -0
- package/chunks/tabs-vertical.json +15 -0
- package/chunks/tag-combinations.json +15 -0
- package/chunks/tag-disabled.json +15 -0
- package/chunks/tag-removable.json +15 -0
- package/chunks/tag-size.json +15 -0
- package/chunks/tag-text.json +15 -0
- package/chunks/tag-variant.json +15 -0
- package/chunks/text-lines.json +15 -0
- package/chunks/text-truncate.json +15 -0
- package/chunks/text-variant.json +15 -0
- package/chunks/textarea-combinations.json +15 -0
- package/chunks/textarea-disabled.json +15 -0
- package/chunks/textarea-edge-cases.json +15 -0
- package/chunks/textarea-error.json +15 -0
- package/chunks/textarea-label.json +15 -0
- package/chunks/textarea-placeholder.json +15 -0
- package/chunks/textarea-readonly.json +15 -0
- package/chunks/textarea-resize.json +15 -0
- package/chunks/textarea-rows.json +15 -0
- package/chunks/timeline-compact.json +15 -0
- package/chunks/timeline-error.json +15 -0
- package/chunks/timeline-horizontal.json +15 -0
- package/chunks/timeline-icons.json +15 -0
- package/chunks/timeline-outcomes.json +15 -0
- package/chunks/timeline-variant.json +15 -0
- package/chunks/timeline-vertical.json +15 -0
- package/chunks/toast-closable.json +15 -0
- package/chunks/toast-combo.json +15 -0
- package/chunks/toast-duration.json +15 -0
- package/chunks/toast-edge.json +15 -0
- package/chunks/toast-position.json +15 -0
- package/chunks/toast-text.json +15 -0
- package/chunks/toast-variant.json +15 -0
- package/chunks/toggle-group-combo.json +15 -0
- package/chunks/toggle-group-disabled.json +15 -0
- package/chunks/toggle-group-edge.json +15 -0
- package/chunks/toggle-group-icon-group.json +15 -0
- package/chunks/toggle-group-pre-selected.json +15 -0
- package/chunks/toggle-group-single-vs-multi.json +15 -0
- package/chunks/toggle-group-single.json +15 -0
- package/chunks/toggle-group-text-group.json +15 -0
- package/chunks/toggle-group-value.json +15 -0
- package/chunks/toolbar-align.json +15 -0
- package/chunks/toolbar-basic.json +15 -0
- package/chunks/toolbar-bordered.json +15 -0
- package/chunks/toolbar-combo.json +15 -0
- package/chunks/toolbar-dividers.json +15 -0
- package/chunks/toolbar-edge.json +15 -0
- package/chunks/toolbar-gap.json +15 -0
- package/chunks/toolbar-overflow-none.json +30 -0
- package/chunks/toolbar-overflow.json +15 -0
- package/chunks/tooltip-combinations.json +15 -0
- package/chunks/tooltip-delay.json +15 -0
- package/chunks/tooltip-edge-cases.json +15 -0
- package/chunks/tooltip-placement.json +15 -0
- package/chunks/tooltip-text.json +15 -0
- package/chunks/tree-basic.json +15 -0
- package/chunks/tree-combo.json +15 -0
- package/chunks/tree-edge.json +15 -0
- package/chunks/tree-expand-collapse.json +15 -0
- package/chunks/tree-selection.json +15 -0
- package/chunks/upload-accept.json +15 -0
- package/chunks/upload-default.json +15 -0
- package/chunks/upload-disabled.json +15 -0
- package/chunks/upload-hint.json +15 -0
- package/chunks/upload-label-hint.json +15 -0
- package/chunks/upload-label.json +15 -0
- package/chunks/upload-multiple.json +15 -0
- package/chunks/upload-name.json +15 -0
- package/chunks/upload-value.json +15 -0
- package/chunks/wizard-drawer-three-step-wizard.json +15 -0
- 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/auth-login/index.html +3 -9
- 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/exemplars/ui/auth-login/index.html +2 -6
- package/manifest.json +1 -1
- package/package.json +12 -5
- package/pattern-embeddings.json +1 -0
- package/patterns/_index.json +1 -1
- package/scripts/chunk-library.js +172 -0
package/patterns/_index.json
CHANGED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gen-UI training-chunk library.
|
|
3
|
+
*
|
|
4
|
+
* Loads the harvester's per-chunk JSON records + aggregate index from
|
|
5
|
+
* `packages/a2ui/corpus/chunks/` into in-memory Maps for fast retrieval.
|
|
6
|
+
*
|
|
7
|
+
* Used by:
|
|
8
|
+
* - packages/a2ui/mcp/server.js — exposes search_chunks / get_chunk / lookup_chunk tools
|
|
9
|
+
* - packages/a2ui/compose/engines/zettel/chunk-synthesizer.js — Phase C.2
|
|
10
|
+
*
|
|
11
|
+
* Spec: docs/specs/genui-chunk-marker.md (Draft v0.1.0).
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { readFileSync, readdirSync, existsSync } from 'node:fs';
|
|
15
|
+
import { join, dirname } from 'node:path';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
|
|
18
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const CHUNKS_DIR = join(__dirname, '..', 'chunks');
|
|
20
|
+
|
|
21
|
+
let _state = null;
|
|
22
|
+
|
|
23
|
+
function load() {
|
|
24
|
+
if (_state) return _state;
|
|
25
|
+
|
|
26
|
+
const indexPath = join(CHUNKS_DIR, '_index.json');
|
|
27
|
+
if (!existsSync(indexPath)) {
|
|
28
|
+
_state = { index: null, chunks: new Map(), byPrimary: new Map(), byKind: new Map() };
|
|
29
|
+
return _state;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const index = JSON.parse(readFileSync(indexPath, 'utf8'));
|
|
33
|
+
const chunks = new Map(); // name → record
|
|
34
|
+
const byPrimary = new Map(); // tagName → Set<name>
|
|
35
|
+
const byKind = new Map(); // kind → Set<name>
|
|
36
|
+
|
|
37
|
+
for (const file of readdirSync(CHUNKS_DIR)) {
|
|
38
|
+
if (file === '_index.json' || !file.endsWith('.json')) continue;
|
|
39
|
+
const rec = JSON.parse(readFileSync(join(CHUNKS_DIR, file), 'utf8'));
|
|
40
|
+
const name = rec.name;
|
|
41
|
+
chunks.set(name, rec);
|
|
42
|
+
|
|
43
|
+
const primary = rec.primary || rec.instances?.[0]?.primary || 'unknown';
|
|
44
|
+
if (!byPrimary.has(primary)) byPrimary.set(primary, new Set());
|
|
45
|
+
byPrimary.get(primary).add(name);
|
|
46
|
+
|
|
47
|
+
const kind = rec.kind || 'block';
|
|
48
|
+
if (!byKind.has(kind)) byKind.set(kind, new Set());
|
|
49
|
+
byKind.get(kind).add(name);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
_state = { index, chunks, byPrimary, byKind };
|
|
53
|
+
return _state;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function getChunk(name) {
|
|
57
|
+
const { chunks } = load();
|
|
58
|
+
return chunks.get(name) || null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function getAllChunks() {
|
|
62
|
+
const { chunks } = load();
|
|
63
|
+
return [...chunks.values()];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function getChunkIndex() {
|
|
67
|
+
const { index } = load();
|
|
68
|
+
return index;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function lookupChunksByPrimary(componentName) {
|
|
72
|
+
const { byPrimary, chunks } = load();
|
|
73
|
+
const names = byPrimary.get(componentName);
|
|
74
|
+
if (!names) return [];
|
|
75
|
+
return [...names].map((n) => chunks.get(n)).filter(Boolean);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function listChunksByKind(kind) {
|
|
79
|
+
const { byKind, chunks } = load();
|
|
80
|
+
const names = byKind.get(kind);
|
|
81
|
+
if (!names) return [];
|
|
82
|
+
return [...names].map((n) => chunks.get(n)).filter(Boolean);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
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.
|
|
116
|
+
*
|
|
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).
|
|
120
|
+
*/
|
|
121
|
+
export function searchChunks(query, { kind, limit = 20 } = {}) {
|
|
122
|
+
const { chunks } = load();
|
|
123
|
+
if (!query || typeof query !== 'string') return [];
|
|
124
|
+
|
|
125
|
+
const candidates = [];
|
|
126
|
+
for (const [name, rec] of chunks) {
|
|
127
|
+
if (kind && rec.kind !== kind) continue;
|
|
128
|
+
const score = keywordScore(name, rec, query);
|
|
129
|
+
if (score > 0) candidates.push({ name, score, kind: rec.kind, primary: rec.primary });
|
|
130
|
+
}
|
|
131
|
+
candidates.sort((a, b) => b.score - a.score);
|
|
132
|
+
return candidates.slice(0, limit);
|
|
133
|
+
}
|
|
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
|
+
}
|
|
170
|
+
candidates.sort((a, b) => b.score - a.score);
|
|
171
|
+
return candidates.slice(0, limit);
|
|
172
|
+
}
|