@dungle-scrubs/admin-ui-soft 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GUIDE.md +110 -0
- package/LICENSE +21 -0
- package/README.md +36 -2
- package/THIRD-PARTY-NOTICES.md +25 -0
- package/UPSTREAM-VENDORED-CHANGES.md +317 -0
- package/VENDORED-CHANGES.md +60 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/ai/compositions/agent-console/agent-console.d.ts +109 -0
- package/dist/ai/compositions/agent-console/agent-console.js +644 -0
- package/dist/ai/compositions/attention-feed/attention-feed.d.ts +127 -0
- package/dist/ai/compositions/attention-feed/attention-feed.js +626 -0
- package/dist/ai/compositions/conversation-browser/conversation-browser.d.ts +126 -0
- package/dist/ai/compositions/conversation-browser/conversation-browser.js +364 -0
- package/dist/ai/compositions/redaction-marker/redaction-marker.d.ts +42 -0
- package/dist/ai/compositions/redaction-marker/redaction-marker.js +202 -0
- package/dist/ai/compositions/run-inspector/json-view.js +164 -0
- package/dist/ai/compositions/run-inspector/run-inspector.d.ts +66 -0
- package/dist/ai/compositions/run-inspector/run-inspector.js +703 -0
- package/dist/ai/compositions/run-inspector/run-model.js +155 -0
- package/dist/ai/compositions/tool-approval/json-args.js +54 -0
- package/dist/ai/compositions/tool-approval/tool-approval.d.ts +57 -0
- package/dist/ai/compositions/tool-approval/tool-approval.js +331 -0
- package/dist/ai/compositions/tool-call-row/tool-call-row.js +74 -0
- package/dist/ai/compositions/transcript-viewer/to-thread-messages.js +65 -0
- package/dist/ai/compositions/transcript-viewer/transcript-viewer.d.ts +63 -0
- package/dist/ai/compositions/transcript-viewer/transcript-viewer.js +471 -0
- package/dist/ai/compositions/usage-meter/usage-format.js +107 -0
- package/dist/ai/compositions/usage-meter/usage-meter.d.ts +32 -0
- package/dist/ai/compositions/usage-meter/usage-meter.js +258 -0
- package/dist/ai/testing/mock-clock.d.ts +31 -0
- package/dist/ai/testing/mock-clock.js +66 -0
- package/dist/ai/testing/mock-reply.d.ts +70 -0
- package/dist/ai/testing/mock-reply.js +100 -0
- package/dist/ai/testing/mock-runtime.d.ts +86 -0
- package/dist/ai/testing/mock-runtime.js +384 -0
- package/dist/ai/types.d.ts +323 -0
- package/dist/ai.css +1088 -0
- package/dist/ai.d.ts +160 -0
- package/dist/ai.js +158 -0
- package/dist/components/assistant-ui/elements/activity-graph.d.ts +14 -0
- package/dist/components/assistant-ui/elements/activity-graph.js +69 -0
- package/dist/components/assistant-ui/elements/agent-card.d.ts +21 -0
- package/dist/components/assistant-ui/elements/agent-card.js +75 -0
- package/dist/components/assistant-ui/elements/agent-handoff.d.ts +13 -0
- package/dist/components/assistant-ui/elements/agent-handoff.js +47 -0
- package/dist/components/assistant-ui/elements/agent-plan.d.ts +16 -0
- package/dist/components/assistant-ui/elements/agent-plan.js +93 -0
- package/dist/components/assistant-ui/elements/agent-status.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/agent-status.aui.js +161 -0
- package/dist/components/assistant-ui/elements/agent-status.d.ts +17 -0
- package/dist/components/assistant-ui/elements/agent-status.js +47 -0
- package/dist/components/assistant-ui/elements/approval-card.d.ts +31 -0
- package/dist/components/assistant-ui/elements/approval-card.js +99 -0
- package/dist/components/assistant-ui/elements/artifact-card.d.ts +12 -0
- package/dist/components/assistant-ui/elements/artifact-card.js +47 -0
- package/dist/components/assistant-ui/elements/assistant-modal.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/assistant-modal.aui.js +276 -0
- package/dist/components/assistant-ui/elements/assistant-sidebar.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/assistant-sidebar.aui.js +18 -0
- package/dist/components/assistant-ui/elements/attachment.aui.d.ts +9 -0
- package/dist/components/assistant-ui/elements/attachment.aui.js +143 -0
- package/dist/components/assistant-ui/elements/background-inbox.d.ts +18 -0
- package/dist/components/assistant-ui/elements/background-inbox.js +65 -0
- package/dist/components/assistant-ui/elements/canvas-split.d.ts +25 -0
- package/dist/components/assistant-ui/elements/canvas-split.js +106 -0
- package/dist/components/assistant-ui/elements/chart.d.ts +19 -0
- package/dist/components/assistant-ui/elements/chart.js +105 -0
- package/dist/components/assistant-ui/elements/chat-panel.d.ts +15 -0
- package/dist/components/assistant-ui/elements/chat-panel.js +82 -0
- package/dist/components/assistant-ui/elements/checkpoint-history.d.ts +17 -0
- package/dist/components/assistant-ui/elements/checkpoint-history.js +60 -0
- package/dist/components/assistant-ui/elements/code-diff.d.ts +18 -0
- package/dist/components/assistant-ui/elements/code-diff.js +89 -0
- package/dist/components/assistant-ui/elements/code-runner.d.ts +15 -0
- package/dist/components/assistant-ui/elements/code-runner.js +108 -0
- package/dist/components/assistant-ui/elements/command-palette.d.ts +20 -0
- package/dist/components/assistant-ui/elements/command-palette.js +129 -0
- package/dist/components/assistant-ui/elements/comparison-card.d.ts +18 -0
- package/dist/components/assistant-ui/elements/comparison-card.js +58 -0
- package/dist/components/assistant-ui/elements/composer-trigger-popover.aui.d.ts +51 -0
- package/dist/components/assistant-ui/elements/composer-trigger-popover.aui.js +104 -0
- package/dist/components/assistant-ui/elements/composer.d.ts +91 -0
- package/dist/components/assistant-ui/elements/composer.js +416 -0
- package/dist/components/assistant-ui/elements/computer-use.d.ts +19 -0
- package/dist/components/assistant-ui/elements/computer-use.js +84 -0
- package/dist/components/assistant-ui/elements/confidence-marker.d.ts +20 -0
- package/dist/components/assistant-ui/elements/confidence-marker.js +58 -0
- package/dist/components/assistant-ui/elements/connection-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/connection-state.js +59 -0
- package/dist/components/assistant-ui/elements/context-breakdown.d.ts +15 -0
- package/dist/components/assistant-ui/elements/context-breakdown.js +91 -0
- package/dist/components/assistant-ui/elements/context-display.aui.d.ts +25 -0
- package/dist/components/assistant-ui/elements/context-display.aui.js +26 -0
- package/dist/components/assistant-ui/elements/context-display.d.ts +43 -0
- package/dist/components/assistant-ui/elements/context-display.js +300 -0
- package/dist/components/assistant-ui/elements/conversation-map.aui.d.ts +9 -0
- package/dist/components/assistant-ui/elements/conversation-map.aui.js +177 -0
- package/dist/components/assistant-ui/elements/conversation-map.d.ts +19 -0
- package/dist/components/assistant-ui/elements/conversation-map.js +84 -0
- package/dist/components/assistant-ui/elements/conversation-search.d.ts +20 -0
- package/dist/components/assistant-ui/elements/conversation-search.js +75 -0
- package/dist/components/assistant-ui/elements/cost-meter.d.ts +19 -0
- package/dist/components/assistant-ui/elements/cost-meter.js +76 -0
- package/dist/components/assistant-ui/elements/data-table.d.ts +72 -0
- package/dist/components/assistant-ui/elements/data-table.js +368 -0
- package/dist/components/assistant-ui/elements/day-separator.d.ts +16 -0
- package/dist/components/assistant-ui/elements/day-separator.js +44 -0
- package/dist/components/assistant-ui/elements/diagram.d.ts +15 -0
- package/dist/components/assistant-ui/elements/diagram.js +65 -0
- package/dist/components/assistant-ui/elements/directive-text.aui.d.ts +11 -0
- package/dist/components/assistant-ui/elements/directive-text.aui.js +18 -0
- package/dist/components/assistant-ui/elements/directive-text.d.ts +32 -0
- package/dist/components/assistant-ui/elements/directive-text.js +35 -0
- package/dist/components/assistant-ui/elements/document-reference.d.ts +17 -0
- package/dist/components/assistant-ui/elements/document-reference.js +62 -0
- package/dist/components/assistant-ui/elements/draft-restore.d.ts +12 -0
- package/dist/components/assistant-ui/elements/draft-restore.js +43 -0
- package/dist/components/assistant-ui/elements/edit-message.d.ts +15 -0
- package/dist/components/assistant-ui/elements/edit-message.js +63 -0
- package/dist/components/assistant-ui/elements/elicitation-form.d.ts +23 -0
- package/dist/components/assistant-ui/elements/elicitation-form.js +112 -0
- package/dist/components/assistant-ui/elements/empty-state.d.ts +16 -0
- package/dist/components/assistant-ui/elements/empty-state.js +71 -0
- package/dist/components/assistant-ui/elements/error-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/error-state.js +52 -0
- package/dist/components/assistant-ui/elements/feedback-dialog.d.ts +15 -0
- package/dist/components/assistant-ui/elements/feedback-dialog.js +77 -0
- package/dist/components/assistant-ui/elements/file-tree.d.ts +20 -0
- package/dist/components/assistant-ui/elements/file-tree.js +74 -0
- package/dist/components/assistant-ui/elements/file.d.ts +52 -0
- package/dist/components/assistant-ui/elements/file.js +222 -0
- package/dist/components/assistant-ui/elements/flow-graph.d.ts +23 -0
- package/dist/components/assistant-ui/elements/flow-graph.js +72 -0
- package/dist/components/assistant-ui/elements/follow-up-suggestions.aui.d.ts +7 -0
- package/dist/components/assistant-ui/elements/follow-up-suggestions.aui.js +30 -0
- package/dist/components/assistant-ui/elements/generative-ui.d.ts +8 -0
- package/dist/components/assistant-ui/elements/generative-ui.js +27 -0
- package/dist/components/assistant-ui/elements/geo-map.d.ts +29 -0
- package/dist/components/assistant-ui/elements/geo-map.js +190 -0
- package/dist/components/assistant-ui/elements/guardrail-notice.d.ts +15 -0
- package/dist/components/assistant-ui/elements/guardrail-notice.js +59 -0
- package/dist/components/assistant-ui/elements/heat-graph.d.ts +9 -0
- package/dist/components/assistant-ui/elements/heat-graph.js +90 -0
- package/dist/components/assistant-ui/elements/image-gallery.d.ts +22 -0
- package/dist/components/assistant-ui/elements/image-gallery.js +192 -0
- package/dist/components/assistant-ui/elements/image-generation.d.ts +11 -0
- package/dist/components/assistant-ui/elements/image-generation.js +64 -0
- package/dist/components/assistant-ui/elements/image.d.ts +59 -0
- package/dist/components/assistant-ui/elements/image.js +416 -0
- package/dist/components/assistant-ui/elements/inline-citation.d.ts +23 -0
- package/dist/components/assistant-ui/elements/inline-citation.js +90 -0
- package/dist/components/assistant-ui/elements/job-progress.d.ts +25 -0
- package/dist/components/assistant-ui/elements/job-progress.js +102 -0
- package/dist/components/assistant-ui/elements/launcher-bubble.d.ts +15 -0
- package/dist/components/assistant-ui/elements/launcher-bubble.js +71 -0
- package/dist/components/assistant-ui/elements/link-preview.d.ts +17 -0
- package/dist/components/assistant-ui/elements/link-preview.js +77 -0
- package/dist/components/assistant-ui/elements/loading-state.d.ts +13 -0
- package/dist/components/assistant-ui/elements/loading-state.js +33 -0
- package/dist/components/assistant-ui/elements/logos.d.ts +10 -0
- package/dist/components/assistant-ui/elements/logos.js +63 -0
- package/dist/components/assistant-ui/elements/map-answer.d.ts +19 -0
- package/dist/components/assistant-ui/elements/map-answer.js +120 -0
- package/dist/components/assistant-ui/elements/markdown-text.d.ts +11 -0
- package/dist/components/assistant-ui/elements/markdown-text.js +152 -0
- package/dist/components/assistant-ui/elements/math-block.d.ts +25 -0
- package/dist/components/assistant-ui/elements/math-block.js +60 -0
- package/dist/components/assistant-ui/elements/mcp-config.aui.d.ts +28 -0
- package/dist/components/assistant-ui/elements/mcp-config.aui.js +380 -0
- package/dist/components/assistant-ui/elements/mcp-server-panel.d.ts +20 -0
- package/dist/components/assistant-ui/elements/mcp-server-panel.js +114 -0
- package/dist/components/assistant-ui/elements/media-player.d.ts +21 -0
- package/dist/components/assistant-ui/elements/media-player.js +302 -0
- package/dist/components/assistant-ui/elements/memory-chips.d.ts +16 -0
- package/dist/components/assistant-ui/elements/memory-chips.js +44 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.aui.d.ts +14 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.aui.js +43 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.d.ts +20 -0
- package/dist/components/assistant-ui/elements/mermaid-diagram.js +258 -0
- package/dist/components/assistant-ui/elements/message-actions.d.ts +17 -0
- package/dist/components/assistant-ui/elements/message-actions.js +57 -0
- package/dist/components/assistant-ui/elements/message-attachment.d.ts +18 -0
- package/dist/components/assistant-ui/elements/message-attachment.js +58 -0
- package/dist/components/assistant-ui/elements/message-branches.d.ts +12 -0
- package/dist/components/assistant-ui/elements/message-branches.js +55 -0
- package/dist/components/assistant-ui/elements/message-pair.d.ts +16 -0
- package/dist/components/assistant-ui/elements/message-pair.js +63 -0
- package/dist/components/assistant-ui/elements/message-queue.d.ts +15 -0
- package/dist/components/assistant-ui/elements/message-queue.js +70 -0
- package/dist/components/assistant-ui/elements/message-timing.aui.d.ts +30 -0
- package/dist/components/assistant-ui/elements/message-timing.aui.js +98 -0
- package/dist/components/assistant-ui/elements/message-timing.d.ts +14 -0
- package/dist/components/assistant-ui/elements/message-timing.js +26 -0
- package/dist/components/assistant-ui/elements/mobile-composer.d.ts +18 -0
- package/dist/components/assistant-ui/elements/mobile-composer.js +76 -0
- package/dist/components/assistant-ui/elements/model-picker.d.ts +19 -0
- package/dist/components/assistant-ui/elements/model-picker.js +68 -0
- package/dist/components/assistant-ui/elements/model-selector.aui.d.ts +23 -0
- package/dist/components/assistant-ui/elements/model-selector.aui.js +79 -0
- package/dist/components/assistant-ui/elements/model-selector.d.ts +130 -0
- package/dist/components/assistant-ui/elements/model-selector.js +399 -0
- package/dist/components/assistant-ui/elements/number-ticker.d.ts +10 -0
- package/dist/components/assistant-ui/elements/number-ticker.js +41 -0
- package/dist/components/assistant-ui/elements/onboarding.d.ts +17 -0
- package/dist/components/assistant-ui/elements/onboarding.js +69 -0
- package/dist/components/assistant-ui/elements/option-list.d.ts +39 -0
- package/dist/components/assistant-ui/elements/option-list.js +176 -0
- package/dist/components/assistant-ui/elements/permission-grant.d.ts +14 -0
- package/dist/components/assistant-ui/elements/permission-grant.js +84 -0
- package/dist/components/assistant-ui/elements/prompt-library.d.ts +20 -0
- package/dist/components/assistant-ui/elements/prompt-library.js +121 -0
- package/dist/components/assistant-ui/elements/question-flow.d.ts +24 -0
- package/dist/components/assistant-ui/elements/question-flow.js +180 -0
- package/dist/components/assistant-ui/elements/quota-banner.d.ts +14 -0
- package/dist/components/assistant-ui/elements/quota-banner.js +68 -0
- package/dist/components/assistant-ui/elements/quote-reply.d.ts +20 -0
- package/dist/components/assistant-ui/elements/quote-reply.js +66 -0
- package/dist/components/assistant-ui/elements/quote.aui.d.ts +61 -0
- package/dist/components/assistant-ui/elements/quote.aui.js +170 -0
- package/dist/components/assistant-ui/elements/read-aloud.d.ts +16 -0
- package/dist/components/assistant-ui/elements/read-aloud.js +66 -0
- package/dist/components/assistant-ui/elements/reasoning-effort.d.ts +17 -0
- package/dist/components/assistant-ui/elements/reasoning-effort.js +67 -0
- package/dist/components/assistant-ui/elements/reasoning-panel.d.ts +20 -0
- package/dist/components/assistant-ui/elements/reasoning-panel.js +60 -0
- package/dist/components/assistant-ui/elements/reasoning.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/reasoning.aui.js +70 -0
- package/dist/components/assistant-ui/elements/reasoning.d.ts +38 -0
- package/dist/components/assistant-ui/elements/reasoning.js +194 -0
- package/dist/components/assistant-ui/elements/recommendation-card.d.ts +16 -0
- package/dist/components/assistant-ui/elements/recommendation-card.js +65 -0
- package/dist/components/assistant-ui/elements/regenerate-menu.d.ts +18 -0
- package/dist/components/assistant-ui/elements/regenerate-menu.js +46 -0
- package/dist/components/assistant-ui/elements/research-report.d.ts +19 -0
- package/dist/components/assistant-ui/elements/research-report.js +63 -0
- package/dist/components/assistant-ui/elements/retrieval-chunks.d.ts +19 -0
- package/dist/components/assistant-ui/elements/retrieval-chunks.js +86 -0
- package/dist/components/assistant-ui/elements/reviewable-diff.d.ts +21 -0
- package/dist/components/assistant-ui/elements/reviewable-diff.js +104 -0
- package/dist/components/assistant-ui/elements/schedule-card.d.ts +19 -0
- package/dist/components/assistant-ui/elements/schedule-card.js +80 -0
- package/dist/components/assistant-ui/elements/score-breakdown.d.ts +19 -0
- package/dist/components/assistant-ui/elements/score-breakdown.js +107 -0
- package/dist/components/assistant-ui/elements/scroll-anchor.d.ts +15 -0
- package/dist/components/assistant-ui/elements/scroll-anchor.js +104 -0
- package/dist/components/assistant-ui/elements/settings-panel.d.ts +23 -0
- package/dist/components/assistant-ui/elements/settings-panel.js +108 -0
- package/dist/components/assistant-ui/elements/shared-conversation.d.ts +18 -0
- package/dist/components/assistant-ui/elements/shared-conversation.js +56 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.aui.d.ts +29 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.aui.js +31 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.d.ts +26 -0
- package/dist/components/assistant-ui/elements/shiki-highlighter.js +49 -0
- package/dist/components/assistant-ui/elements/sources.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/sources.aui.js +121 -0
- package/dist/components/assistant-ui/elements/sources.d.ts +21 -0
- package/dist/components/assistant-ui/elements/sources.js +109 -0
- package/dist/components/assistant-ui/elements/speaker-identity.d.ts +17 -0
- package/dist/components/assistant-ui/elements/speaker-identity.js +45 -0
- package/dist/components/assistant-ui/elements/spec-sheet.d.ts +17 -0
- package/dist/components/assistant-ui/elements/spec-sheet.js +39 -0
- package/dist/components/assistant-ui/elements/stopped-run.d.ts +12 -0
- package/dist/components/assistant-ui/elements/stopped-run.js +44 -0
- package/dist/components/assistant-ui/elements/streaming-text.d.ts +15 -0
- package/dist/components/assistant-ui/elements/streaming-text.js +45 -0
- package/dist/components/assistant-ui/elements/subagent-list.d.ts +17 -0
- package/dist/components/assistant-ui/elements/subagent-list.js +74 -0
- package/dist/components/assistant-ui/elements/suggestions.d.ts +14 -0
- package/dist/components/assistant-ui/elements/suggestions.js +25 -0
- package/dist/components/assistant-ui/elements/surfaces.d.ts +42 -0
- package/dist/components/assistant-ui/elements/surfaces.js +87 -0
- package/dist/components/assistant-ui/elements/syntax-highlighter.d.ts +7 -0
- package/dist/components/assistant-ui/elements/syntax-highlighter.js +41 -0
- package/dist/components/assistant-ui/elements/task-card.aui.d.ts +24 -0
- package/dist/components/assistant-ui/elements/task-card.aui.js +136 -0
- package/dist/components/assistant-ui/elements/task-card.d.ts +22 -0
- package/dist/components/assistant-ui/elements/task-card.js +104 -0
- package/dist/components/assistant-ui/elements/terminal-block.d.ts +27 -0
- package/dist/components/assistant-ui/elements/terminal-block.js +266 -0
- package/dist/components/assistant-ui/elements/thinking-indicator.d.ts +10 -0
- package/dist/components/assistant-ui/elements/thinking-indicator.js +30 -0
- package/dist/components/assistant-ui/elements/thread-list.aui.d.ts +39 -0
- package/dist/components/assistant-ui/elements/thread-list.aui.js +331 -0
- package/dist/components/assistant-ui/elements/thread-list.d.ts +19 -0
- package/dist/components/assistant-ui/elements/thread-list.js +72 -0
- package/dist/components/assistant-ui/elements/thread-search.d.ts +20 -0
- package/dist/components/assistant-ui/elements/thread-search.js +94 -0
- package/dist/components/assistant-ui/elements/thread.aui.d.ts +36 -0
- package/dist/components/assistant-ui/elements/thread.aui.js +625 -0
- package/dist/components/assistant-ui/elements/threadlist-sidebar.aui.d.ts +19 -0
- package/dist/components/assistant-ui/elements/threadlist-sidebar.aui.js +75 -0
- package/dist/components/assistant-ui/elements/timeline.d.ts +18 -0
- package/dist/components/assistant-ui/elements/timeline.js +40 -0
- package/dist/components/assistant-ui/elements/todo-list.d.ts +21 -0
- package/dist/components/assistant-ui/elements/todo-list.js +100 -0
- package/dist/components/assistant-ui/elements/tool-call.d.ts +17 -0
- package/dist/components/assistant-ui/elements/tool-call.js +70 -0
- package/dist/components/assistant-ui/elements/tool-error.d.ts +16 -0
- package/dist/components/assistant-ui/elements/tool-error.js +62 -0
- package/dist/components/assistant-ui/elements/tool-fallback.aui.d.ts +44 -0
- package/dist/components/assistant-ui/elements/tool-fallback.aui.js +542 -0
- package/dist/components/assistant-ui/elements/tool-group.aui.d.ts +37 -0
- package/dist/components/assistant-ui/elements/tool-group.aui.js +104 -0
- package/dist/components/assistant-ui/elements/tool-group.d.ts +20 -0
- package/dist/components/assistant-ui/elements/tool-group.js +71 -0
- package/dist/components/assistant-ui/elements/tool-timeline.d.ts +44 -0
- package/dist/components/assistant-ui/elements/tool-timeline.js +109 -0
- package/dist/components/assistant-ui/elements/tooltip-icon-button.d.ts +12 -0
- package/dist/components/assistant-ui/elements/tooltip-icon-button.js +30 -0
- package/dist/components/assistant-ui/elements/trace-waterfall.d.ts +33 -0
- package/dist/components/assistant-ui/elements/trace-waterfall.js +102 -0
- package/dist/components/assistant-ui/elements/typing-indicator.d.ts +9 -0
- package/dist/components/assistant-ui/elements/typing-indicator.js +45 -0
- package/dist/components/assistant-ui/elements/voice-conversation.aui.d.ts +11 -0
- package/dist/components/assistant-ui/elements/voice-conversation.aui.js +54 -0
- package/dist/components/assistant-ui/elements/voice-conversation.d.ts +21 -0
- package/dist/components/assistant-ui/elements/voice-conversation.js +110 -0
- package/dist/components/assistant-ui/elements/voice.aui.d.ts +22 -0
- package/dist/components/assistant-ui/elements/voice.aui.js +100 -0
- package/dist/components/assistant-ui/elements/voice.d.ts +15 -0
- package/dist/components/assistant-ui/elements/voice.js +400 -0
- package/dist/components/assistant-ui/elements/web-preview.d.ts +18 -0
- package/dist/components/assistant-ui/elements/web-preview.js +61 -0
- package/dist/components/assistant-ui/elements/web-search.d.ts +17 -0
- package/dist/components/assistant-ui/elements/web-search.js +54 -0
- package/dist/components/assistant-ui/utils/href.d.ts +13 -0
- package/dist/components/assistant-ui/utils/href.js +39 -0
- package/dist/components/assistant-ui/utils/range.d.ts +22 -0
- package/dist/components/assistant-ui/utils/range.js +48 -0
- package/dist/components/assistant-ui/utils/task.d.ts +14 -0
- package/dist/components/assistant-ui/utils/task.js +75 -0
- package/dist/components/icons/github.js +13 -0
- package/dist/components/theme-provider.d.ts +16 -0
- package/dist/components/theme-provider.js +116 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.js +53 -0
- package/dist/components/ui/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog.js +93 -0
- package/dist/components/ui/alert.d.ts +12 -0
- package/dist/components/ui/alert.js +42 -0
- package/dist/components/ui/aspect-ratio.d.ts +6 -0
- package/dist/components/ui/aspect-ratio.js +13 -0
- package/dist/components/ui/attachment.d.ts +25 -0
- package/dist/components/ui/attachment.js +103 -0
- package/dist/components/ui/avatar.d.ts +13 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/badge.d.ts +14 -0
- package/dist/components/ui/badge.js +30 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.js +71 -0
- package/dist/components/ui/bubble.d.ts +18 -0
- package/dist/components/ui/bubble.js +72 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button-group.js +41 -0
- package/dist/components/ui/button.d.ts +19 -0
- package/dist/components/ui/button.js +71 -0
- package/dist/components/ui/calendar.d.ts +12 -0
- package/dist/components/ui/calendar.js +108 -0
- package/dist/components/ui/card.d.ts +13 -0
- package/dist/components/ui/card.js +55 -0
- package/dist/components/ui/carousel.d.ts +30 -0
- package/dist/components/ui/carousel.js +131 -0
- package/dist/components/ui/chart.d.ts +46 -0
- package/dist/components/ui/chart.js +148 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.js +20 -0
- package/dist/components/ui/collapsible.d.ts +7 -0
- package/dist/components/ui/collapsible.js +23 -0
- package/dist/components/ui/combobox.d.ts +26 -0
- package/dist/components/ui/combobox.js +161 -0
- package/dist/components/ui/command.d.ts +21 -0
- package/dist/components/ui/command.js +87 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.js +132 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/dialog.js +91 -0
- package/dist/components/ui/diff-viewer.d.ts +100 -0
- package/dist/components/ui/diff-viewer.js +461 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.js +2 -0
- package/dist/components/ui/dot-matrix.d.ts +150 -0
- package/dist/components/ui/dot-matrix.js +248 -0
- package/dist/components/ui/drawer.d.ts +18 -0
- package/dist/components/ui/drawer.js +123 -0
- package/dist/components/ui/dropdown-menu.d.ts +31 -0
- package/dist/components/ui/dropdown-menu.js +136 -0
- package/dist/components/ui/empty.d.ts +13 -0
- package/dist/components/ui/empty.js +59 -0
- package/dist/components/ui/field.d.ts +26 -0
- package/dist/components/ui/field.js +109 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.js +36 -0
- package/dist/components/ui/input-group.d.ts +20 -0
- package/dist/components/ui/input-group.js +77 -0
- package/dist/components/ui/input-otp.d.ts +13 -0
- package/dist/components/ui/input-otp.js +46 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/input.js +14 -0
- package/dist/components/ui/item.d.ts +24 -0
- package/dist/components/ui/item.js +120 -0
- package/dist/components/ui/kbd.d.ts +5 -0
- package/dist/components/ui/kbd.js +19 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.js +12 -0
- package/dist/components/ui/marker.d.ts +12 -0
- package/dist/components/ui/marker.js +42 -0
- package/dist/components/ui/menubar.d.ts +31 -0
- package/dist/components/ui/menubar.js +135 -0
- package/dist/components/ui/message-scroller.d.ts +12 -0
- package/dist/components/ui/message-scroller.js +59 -0
- package/dist/components/ui/message.d.ts +12 -0
- package/dist/components/ui/message.js +48 -0
- package/dist/components/ui/native-select.d.ts +10 -0
- package/dist/components/ui/native-select.js +37 -0
- package/dist/components/ui/navigation-menu.d.ts +13 -0
- package/dist/components/ui/navigation-menu.js +82 -0
- package/dist/components/ui/number-roll.d.ts +21 -0
- package/dist/components/ui/number-roll.js +269 -0
- package/dist/components/ui/pagination.d.ts +19 -0
- package/dist/components/ui/pagination.js +79 -0
- package/dist/components/ui/popover.d.ts +11 -0
- package/dist/components/ui/popover.js +54 -0
- package/dist/components/ui/progress.d.ts +9 -0
- package/dist/components/ui/progress.js +44 -0
- package/dist/components/ui/questionnaire.d.ts +21 -0
- package/dist/components/ui/questionnaire.js +169 -0
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.js +26 -0
- package/dist/components/ui/resizable.d.ts +9 -0
- package/dist/components/ui/resizable.js +28 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.js +35 -0
- package/dist/components/ui/select.d.ts +17 -0
- package/dist/components/ui/select.js +96 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.js +14 -0
- package/dist/components/ui/sheet.d.ts +16 -0
- package/dist/components/ui/sheet.js +87 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/sidebar.js +386 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/skeleton.js +12 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.js +33 -0
- package/dist/components/ui/spinner.d.ts +4 -0
- package/dist/components/ui/spinner.js +15 -0
- package/dist/components/ui/switch.d.ts +7 -0
- package/dist/components/ui/switch.js +19 -0
- package/dist/components/ui/table.d.ts +12 -0
- package/dist/components/ui/table.js +65 -0
- package/dist/components/ui/tabs.d.ts +12 -0
- package/dist/components/ui/tabs.js +45 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +12 -0
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.js +121 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.js +51 -0
- package/dist/components/ui/toggle.d.ts +10 -0
- package/dist/components/ui/toggle.js +35 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/compositions/app-rail/app-rail.d.ts +19 -0
- package/dist/compositions/app-rail/app-rail.js +58 -0
- package/dist/compositions/app-shell/app-shell.d.ts +56 -0
- package/dist/compositions/app-shell/app-shell.js +143 -0
- package/dist/compositions/app-shell/theme-toggle.d.ts +10 -0
- package/dist/compositions/app-shell/theme-toggle.js +65 -0
- package/dist/compositions/confirm-action/confirm-action.d.ts +48 -0
- package/dist/compositions/confirm-action/confirm-action.js +48 -0
- package/dist/compositions/data-table/data-table-state.d.ts +23 -0
- package/dist/compositions/data-table/data-table-state.js +46 -0
- package/dist/compositions/data-table/data-table.d.ts +185 -0
- package/dist/compositions/data-table/data-table.js +615 -0
- package/dist/compositions/date-range-picker/date-range-options.d.ts +28 -0
- package/dist/compositions/date-range-picker/date-range-options.js +61 -0
- package/dist/compositions/date-range-picker/date-range-picker.d.ts +55 -0
- package/dist/compositions/date-range-picker/date-range-picker.js +409 -0
- package/dist/compositions/decision-queue/decision-queue.d.ts +114 -0
- package/dist/compositions/decision-queue/decision-queue.js +478 -0
- package/dist/compositions/event-feed/event-feed.d.ts +59 -0
- package/dist/compositions/event-feed/event-feed.js +105 -0
- package/dist/compositions/feedback.d.ts +20 -0
- package/dist/compositions/feedback.js +49 -0
- package/dist/compositions/fields.d.ts +64 -0
- package/dist/compositions/fields.js +293 -0
- package/dist/compositions/form-kit/form-context.d.ts +10 -0
- package/dist/compositions/form-kit/form-context.js +12 -0
- package/dist/compositions/form-kit/form-fields.d.ts +95 -0
- package/dist/compositions/form-kit/form-fields.js +233 -0
- package/dist/compositions/form-kit/form-kit.d.ts +128 -0
- package/dist/compositions/form-kit/form-kit.js +119 -0
- package/dist/compositions/inspector/inspector.d.ts +53 -0
- package/dist/compositions/inspector/inspector.js +80 -0
- package/dist/compositions/layout.d.ts +36 -0
- package/dist/compositions/layout.js +86 -0
- package/dist/compositions/state-blocks/state-blocks.d.ts +42 -0
- package/dist/compositions/state-blocks/state-blocks.js +81 -0
- package/dist/compositions/status-panel/status-panel.d.ts +94 -0
- package/dist/compositions/status-panel/status-panel.js +189 -0
- package/dist/fonts/InterVariable.woff2 +0 -0
- package/dist/fonts/inter.css +15 -0
- package/dist/hooks/use-attachment-src.js +35 -0
- package/dist/hooks/use-copy-to-clipboard.js +34 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +18 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +102 -0
- package/dist/lib/context-level.js +7 -0
- package/dist/lib/elapsed.js +61 -0
- package/dist/lib/iso-date.js +30 -0
- package/dist/lib/motion-loop.js +41 -0
- package/dist/lib/pointer.js +14 -0
- package/dist/lib/status-tone.d.ts +7 -0
- package/dist/lib/status-tone.js +55 -0
- package/dist/lib/triage-keys.js +229 -0
- package/dist/lib/utils.js +2 -0
- package/dist/motion/alert-toast/alert-toast.d.ts +51 -0
- package/dist/motion/alert-toast/alert-toast.js +226 -0
- package/dist/motion/branch-menu/branch-menu.d.ts +47 -0
- package/dist/motion/branch-menu/branch-menu.js +287 -0
- package/dist/motion/check-item/check-item.d.ts +24 -0
- package/dist/motion/check-item/check-item.js +110 -0
- package/dist/motion/dial/dial.d.ts +39 -0
- package/dist/motion/dial/dial.js +290 -0
- package/dist/motion/dictation-button/dictation-button.d.ts +45 -0
- package/dist/motion/dictation-button/dictation-button.js +232 -0
- package/dist/motion/hold-button/hold-button.d.ts +37 -0
- package/dist/motion/hold-button/hold-button.js +192 -0
- package/dist/motion/masonry-grid/masonry-grid.d.ts +42 -0
- package/dist/motion/masonry-grid/masonry-grid.js +145 -0
- package/dist/motion/prompt-composer/prompt-composer.d.ts +90 -0
- package/dist/motion/prompt-composer/prompt-composer.js +374 -0
- package/dist/motion/scrub-select/scrub-select.d.ts +33 -0
- package/dist/motion/scrub-select/scrub-select.js +346 -0
- package/dist/motion/spotlight-grid/spotlight-grid.d.ts +40 -0
- package/dist/motion/spotlight-grid/spotlight-grid.js +171 -0
- package/dist/motion/star-rating/star-rating.d.ts +32 -0
- package/dist/motion/star-rating/star-rating.js +191 -0
- package/dist/motion/status-glyph/status-glyph.d.ts +28 -0
- package/dist/motion/status-glyph/status-glyph.js +171 -0
- package/dist/motion/stepper/stepper.d.ts +56 -0
- package/dist/motion/stepper/stepper.js +211 -0
- package/dist/motion/swipe-row/swipe-row.d.ts +52 -0
- package/dist/motion/swipe-row/swipe-row.js +208 -0
- package/dist/motion/thinking-trace/thinking-trace.d.ts +32 -0
- package/dist/motion/thinking-trace/thinking-trace.js +186 -0
- package/dist/motion/tool-call-chip/tool-call-chip.d.ts +36 -0
- package/dist/motion/tool-call-chip/tool-call-chip.js +135 -0
- package/dist/motion/working-indicator/working-indicator.d.ts +38 -0
- package/dist/motion/working-indicator/working-indicator.js +171 -0
- package/dist/styles.css +828 -0
- package/dist/tokens.css +230 -0
- package/licenses/Inter-OFL.txt +92 -0
- package/licenses/assistant-ui-MIT.txt +21 -0
- package/licenses/shadcn-MIT.md +21 -0
- package/package.json +131 -3
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, floating, mono } from "./surfaces.js";
|
|
5
|
+
import { useEffect, useId } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { SearchIcon } from "lucide-react";
|
|
8
|
+
//#region src/components/assistant-ui/elements/command-palette.tsx
|
|
9
|
+
var command_palette_exports = /* @__PURE__ */ __exportAll({ CommandPalette: () => CommandPalette });
|
|
10
|
+
function CommandPalette({ commands, query, activeId, onQueryChange, onActiveChange, onRun, className, ...props }) {
|
|
11
|
+
const listId = useId();
|
|
12
|
+
const optionId = (id) => `${listId}-${id}`;
|
|
13
|
+
const matches = commands.filter((command) => command.label.toLowerCase().includes(query.toLowerCase()));
|
|
14
|
+
const groups = [...new Set(matches.map((command) => command.group))];
|
|
15
|
+
const ordered = groups.flatMap((group) => matches.filter((command) => command.group === group));
|
|
16
|
+
const move = (delta) => {
|
|
17
|
+
if (ordered.length === 0) return;
|
|
18
|
+
const at = ordered.findIndex((command) => command.id === activeId);
|
|
19
|
+
const next = ordered[((at === -1 ? delta > 0 ? -1 : 0 : at) + delta + ordered.length) % ordered.length];
|
|
20
|
+
if (next && onActiveChange) onActiveChange(next.id);
|
|
21
|
+
};
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
document.getElementById(optionId(activeId))?.scrollIntoView({ block: "nearest" });
|
|
24
|
+
}, [activeId, listId]);
|
|
25
|
+
const onKeyDown = (event) => {
|
|
26
|
+
if (event.nativeEvent.isComposing) return;
|
|
27
|
+
if (event.key === "ArrowDown") {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
move(1);
|
|
30
|
+
} else if (event.key === "ArrowUp") {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
move(-1);
|
|
33
|
+
} else if (event.key === "Enter") {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
const active = ordered.find((command) => command.id === activeId);
|
|
36
|
+
if (active && onRun) onRun(active.id);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
40
|
+
"data-slot": "command-palette",
|
|
41
|
+
className: cn(floating, "flex w-full max-w-sm flex-col overflow-hidden rounded-[20px]", className),
|
|
42
|
+
...props,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: "flex items-center gap-2.5 px-3.5 py-3",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(SearchIcon, { className: "text-muted-foreground size-3.5 shrink-0" }),
|
|
48
|
+
/* @__PURE__ */ jsx("input", {
|
|
49
|
+
value: query,
|
|
50
|
+
onChange: (event) => onQueryChange?.(event.target.value),
|
|
51
|
+
onKeyDown,
|
|
52
|
+
readOnly: !onRun,
|
|
53
|
+
placeholder: "Type a command",
|
|
54
|
+
"aria-label": "Type a command",
|
|
55
|
+
role: "combobox",
|
|
56
|
+
"aria-expanded": ordered.length > 0,
|
|
57
|
+
"aria-controls": listId,
|
|
58
|
+
"aria-autocomplete": "list",
|
|
59
|
+
"aria-readonly": !onRun || void 0,
|
|
60
|
+
"aria-activedescendant": ordered.some((command) => command.id === activeId) ? optionId(activeId) : void 0,
|
|
61
|
+
className: cn("text-foreground/85 placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent text-[13.5px] outline-none", !onRun && "text-muted-foreground")
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsx("span", {
|
|
64
|
+
className: cn(field, mono, "text-muted-foreground rounded px-1.5 py-0.5"),
|
|
65
|
+
children: "esc"
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("div", {
|
|
70
|
+
id: listId,
|
|
71
|
+
role: "listbox",
|
|
72
|
+
"aria-label": "Commands",
|
|
73
|
+
className: cn("border-foreground/[0.07] flex max-h-72 flex-col overflow-y-auto border-t p-1.5", ordered.length === 0 && "hidden"),
|
|
74
|
+
children: groups.map((group) => /* @__PURE__ */ jsxs("div", {
|
|
75
|
+
role: "group",
|
|
76
|
+
"aria-label": group,
|
|
77
|
+
className: "flex flex-col",
|
|
78
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
79
|
+
"aria-hidden": true,
|
|
80
|
+
className: cn(mono, "text-muted-foreground px-2 pt-2 pb-1"),
|
|
81
|
+
children: group
|
|
82
|
+
}), matches.filter((command) => command.group === group).map((command) => {
|
|
83
|
+
const className = cn("flex items-center gap-2 rounded-xl px-2 py-1.5 text-start transition-colors", onRun && command.id === activeId ? "bg-foreground/[0.06]" : onRun ? "hover:bg-foreground/[0.03]" : "text-muted-foreground");
|
|
84
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
85
|
+
className: "min-w-0 flex-1 truncate text-[13px]",
|
|
86
|
+
children: command.label
|
|
87
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
88
|
+
className: "flex shrink-0 gap-1",
|
|
89
|
+
children: command.keys.map((key) => /* @__PURE__ */ jsx("span", {
|
|
90
|
+
className: cn(field, mono, "text-muted-foreground rounded px-1.5 py-0.5"),
|
|
91
|
+
children: key
|
|
92
|
+
}, key))
|
|
93
|
+
})] });
|
|
94
|
+
return onRun ? /* @__PURE__ */ jsx("button", {
|
|
95
|
+
id: optionId(command.id),
|
|
96
|
+
type: "button",
|
|
97
|
+
role: "option",
|
|
98
|
+
tabIndex: -1,
|
|
99
|
+
"aria-selected": command.id === activeId,
|
|
100
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
101
|
+
onClick: () => onRun(command.id),
|
|
102
|
+
className,
|
|
103
|
+
children: content
|
|
104
|
+
}, command.id) : /* @__PURE__ */ jsx("div", {
|
|
105
|
+
id: optionId(command.id),
|
|
106
|
+
role: "option",
|
|
107
|
+
"aria-selected": command.id === activeId,
|
|
108
|
+
className,
|
|
109
|
+
children: content
|
|
110
|
+
}, command.id);
|
|
111
|
+
})]
|
|
112
|
+
}, group))
|
|
113
|
+
}),
|
|
114
|
+
matches.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
115
|
+
className: "border-foreground/[0.07] border-t p-1.5",
|
|
116
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
117
|
+
className: "text-muted-foreground block px-2 py-4 text-center text-xs break-words",
|
|
118
|
+
children: [
|
|
119
|
+
"No command matches “",
|
|
120
|
+
query,
|
|
121
|
+
"”"
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { CommandPalette, command_palette_exports };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace comparison_card_d_exports {
|
|
3
|
+
export { ComparisonCard, ComparisonOption };
|
|
4
|
+
}
|
|
5
|
+
export interface ComparisonOption {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
headline: string;
|
|
9
|
+
traits: readonly (string | false)[];
|
|
10
|
+
}
|
|
11
|
+
export declare function ComparisonCard({ traitLabels, options, recommendedId, reason, className, ...props }: Omit<ComponentProps<"div">, "children" | "traitLabels" | "options" | "recommendedId" | "reason"> & {
|
|
12
|
+
traitLabels: readonly string[];
|
|
13
|
+
options: readonly ComparisonOption[];
|
|
14
|
+
recommendedId: string;
|
|
15
|
+
reason: string;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { comparison_card_d_exports };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, paper } from "./surfaces.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { CheckIcon, MinusIcon } from "lucide-react";
|
|
7
|
+
//#region src/components/assistant-ui/elements/comparison-card.tsx
|
|
8
|
+
var comparison_card_exports = /* @__PURE__ */ __exportAll({ ComparisonCard: () => ComparisonCard });
|
|
9
|
+
function ComparisonCard({ traitLabels, options, recommendedId, reason, className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
"data-slot": "comparison-card",
|
|
12
|
+
className: cn(paper, "flex w-full max-w-md flex-col gap-3 rounded-2xl p-4", className),
|
|
13
|
+
...props,
|
|
14
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
15
|
+
className: "flex gap-2",
|
|
16
|
+
children: options.map((option) => {
|
|
17
|
+
const recommended = option.id === recommendedId;
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: cn("flex min-w-0 flex-1 flex-col gap-2 rounded-xl p-3 transition-colors", recommended ? "bg-info/[0.07] dark:bg-info/10" : field),
|
|
20
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
21
|
+
className: "flex flex-col gap-0.5",
|
|
22
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
23
|
+
className: "flex items-baseline gap-1.5",
|
|
24
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
25
|
+
className: "truncate text-[13px] font-medium",
|
|
26
|
+
children: option.name
|
|
27
|
+
}), recommended && /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: cn("font-mono text-[11px] tracking-tight", "shrink-0 text-info dark:text-info"),
|
|
29
|
+
children: "pick"
|
|
30
|
+
})]
|
|
31
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: "text-muted-foreground truncate text-xs",
|
|
33
|
+
children: option.headline
|
|
34
|
+
})]
|
|
35
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: "flex flex-col gap-1",
|
|
37
|
+
children: traitLabels.map((label, i) => {
|
|
38
|
+
const trait = option.traits[i];
|
|
39
|
+
const absent = !trait;
|
|
40
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
41
|
+
className: "flex items-center gap-1.5 text-xs",
|
|
42
|
+
children: [absent ? /* @__PURE__ */ jsx(MinusIcon, { className: "text-muted-foreground size-3 shrink-0" }) : /* @__PURE__ */ jsx(CheckIcon, { className: "size-3 shrink-0 text-success" }), /* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: cn("min-w-0 truncate", absent ? "text-muted-foreground" : "text-muted-foreground"),
|
|
44
|
+
children: absent ? label : trait
|
|
45
|
+
})]
|
|
46
|
+
}, `${i}-${label}`);
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
}, option.id);
|
|
50
|
+
})
|
|
51
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
52
|
+
className: "text-muted-foreground text-xs leading-relaxed",
|
|
53
|
+
children: reason
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ComparisonCard, comparison_card_exports };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC } from "react";
|
|
2
|
+
import { ComposerPrimitive, Unstable_DirectiveFormatter, Unstable_TriggerItem } from "@assistant-ui/react";
|
|
3
|
+
declare namespace composer_trigger_popover_aui_d_exports {
|
|
4
|
+
export { ComposerTriggerPopover };
|
|
5
|
+
}
|
|
6
|
+
type IconComponent = FC<{
|
|
7
|
+
className?: string;
|
|
8
|
+
}>;
|
|
9
|
+
type DirectiveBehaviorProps = {
|
|
10
|
+
/** Formatter used to serialize the selected item into composer text. */
|
|
11
|
+
formatter?: Unstable_DirectiveFormatter | undefined;
|
|
12
|
+
/** Called after the directive text has been inserted into the composer. */
|
|
13
|
+
onInserted?: ((item: Unstable_TriggerItem) => void) | undefined;
|
|
14
|
+
};
|
|
15
|
+
type ActionBehaviorProps = {
|
|
16
|
+
/** Formatter used to serialize the audit-trail chip (when `removeOnExecute` is false). */
|
|
17
|
+
formatter?: Unstable_DirectiveFormatter | undefined;
|
|
18
|
+
/** Invoked with the selected item at the moment of selection. */
|
|
19
|
+
onExecute: (item: Unstable_TriggerItem) => void;
|
|
20
|
+
/** If `true`, strip the trigger text from the composer after executing. @default false */
|
|
21
|
+
removeOnExecute?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
type ComposerTriggerPopoverBaseProps = Omit<ComponentPropsWithoutRef<typeof ComposerPrimitive.Unstable_TriggerPopover>, "children"> & {
|
|
24
|
+
/**
|
|
25
|
+
* Maps icon keys to components. Items look up via `item.metadata?.icon`
|
|
26
|
+
* (string); categories look up via their `id`.
|
|
27
|
+
*/
|
|
28
|
+
iconMap?: Record<string, IconComponent>;
|
|
29
|
+
/** Fallback icon when no entry in `iconMap` matches. */
|
|
30
|
+
fallbackIcon?: IconComponent;
|
|
31
|
+
/** Label shown on the back button. @default "Back" */
|
|
32
|
+
backLabel?: string;
|
|
33
|
+
/** Label shown when no categories are available. @default "No items available" */
|
|
34
|
+
emptyCategoriesLabel?: string;
|
|
35
|
+
/** Label shown when no items match. @default "No matching items" */
|
|
36
|
+
emptyItemsLabel?: string;
|
|
37
|
+
/** Label shown while an async adapter is resolving items. @default "Loading…" */
|
|
38
|
+
loadingLabel?: string;
|
|
39
|
+
};
|
|
40
|
+
type ComposerTriggerPopoverProps = ComposerTriggerPopoverBaseProps & ({
|
|
41
|
+
/** Insert-directive behavior. */
|
|
42
|
+
directive: DirectiveBehaviorProps;
|
|
43
|
+
action?: never;
|
|
44
|
+
} | {
|
|
45
|
+
/** Action behavior. */
|
|
46
|
+
action: ActionBehaviorProps;
|
|
47
|
+
directive?: never;
|
|
48
|
+
});
|
|
49
|
+
export declare const ComposerTriggerPopover: FC<ComposerTriggerPopoverProps>;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { composer_trigger_popover_aui_d_exports };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { memo, useRef } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronLeftIcon, ChevronRightIcon, SparklesIcon } from "lucide-react";
|
|
7
|
+
import { ComposerPrimitive, unstable_defaultDirectiveFormatter, unstable_useTriggerPopoverScopeContext } from "@assistant-ui/react";
|
|
8
|
+
//#region src/components/assistant-ui/elements/composer-trigger-popover.aui.tsx
|
|
9
|
+
var composer_trigger_popover_aui_exports = /* @__PURE__ */ __exportAll({ ComposerTriggerPopover: () => ComposerTriggerPopover });
|
|
10
|
+
function resolveIcon(iconKey, iconMap, fallback) {
|
|
11
|
+
if (iconKey && iconMap?.[iconKey]) return iconMap[iconKey];
|
|
12
|
+
return fallback;
|
|
13
|
+
}
|
|
14
|
+
const Categories = ({ iconMap, fallbackIcon, emptyLabel }) => /* @__PURE__ */ jsx(ComposerPrimitive.Unstable_TriggerPopoverCategories, { children: (categories) => /* @__PURE__ */ jsxs("div", {
|
|
15
|
+
"data-slot": "composer-trigger-popover-categories",
|
|
16
|
+
className: "flex flex-col py-1",
|
|
17
|
+
children: [categories.map((cat) => {
|
|
18
|
+
const Icon = resolveIcon(cat.id, iconMap, fallbackIcon);
|
|
19
|
+
return /* @__PURE__ */ jsxs(ComposerPrimitive.Unstable_TriggerPopoverCategoryItem, {
|
|
20
|
+
categoryId: cat.id,
|
|
21
|
+
className: "hover:bg-accent focus:bg-accent data-[highlighted]:bg-accent flex cursor-pointer items-center justify-between gap-2 px-3 py-2 text-sm transition-colors outline-none",
|
|
22
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
23
|
+
className: "flex items-center gap-2",
|
|
24
|
+
children: [/* @__PURE__ */ jsx(Icon, { className: "text-muted-foreground size-4" }), cat.label]
|
|
25
|
+
}), /* @__PURE__ */ jsx(ChevronRightIcon, { className: "text-muted-foreground size-4" })]
|
|
26
|
+
}, cat.id);
|
|
27
|
+
}), categories.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "text-muted-foreground px-3 py-2 text-sm",
|
|
29
|
+
children: emptyLabel
|
|
30
|
+
})]
|
|
31
|
+
}) });
|
|
32
|
+
const Items = ({ iconMap, fallbackIcon, backLabel, emptyLabel, loadingLabel }) => {
|
|
33
|
+
const { isLoading } = unstable_useTriggerPopoverScopeContext();
|
|
34
|
+
return /* @__PURE__ */ jsx(ComposerPrimitive.Unstable_TriggerPopoverItems, { children: (items) => /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
"data-slot": "composer-trigger-popover-items",
|
|
36
|
+
className: "flex flex-col",
|
|
37
|
+
children: [/* @__PURE__ */ jsxs(ComposerPrimitive.Unstable_TriggerPopoverBack, {
|
|
38
|
+
className: "text-muted-foreground hover:bg-accent flex cursor-pointer items-center gap-1.5 border-b px-3 py-2 text-xs tracking-wide uppercase transition-colors",
|
|
39
|
+
children: [/* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-3.5" }), backLabel]
|
|
40
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: "py-1",
|
|
42
|
+
children: [items.map((item, index) => {
|
|
43
|
+
const Icon = resolveIcon(typeof item.metadata?.icon === "string" ? item.metadata.icon : void 0, iconMap, fallbackIcon);
|
|
44
|
+
return /* @__PURE__ */ jsxs(ComposerPrimitive.Unstable_TriggerPopoverItem, {
|
|
45
|
+
item,
|
|
46
|
+
index,
|
|
47
|
+
className: "hover:bg-accent focus:bg-accent data-[highlighted]:bg-accent flex w-full cursor-pointer flex-col items-start gap-0.5 px-3 py-2 text-start transition-colors outline-none",
|
|
48
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
49
|
+
className: "flex items-center gap-2 text-sm font-medium",
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Icon, { className: "text-primary size-3.5" }), item.label]
|
|
51
|
+
}), item.description && /* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: "text-muted-foreground ms-5.5 text-xs leading-tight",
|
|
53
|
+
children: item.description
|
|
54
|
+
})]
|
|
55
|
+
}, item.id);
|
|
56
|
+
}), items.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: "text-muted-foreground px-3 py-2 text-sm",
|
|
58
|
+
children: isLoading ? loadingLabel : emptyLabel
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
}) });
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Pre-built popover UI for a trigger-driven picker (mentions, slash commands, etc).
|
|
65
|
+
* Pass exactly one of `directive` (inserts a chip) or `action` (fires a handler).
|
|
66
|
+
*/
|
|
67
|
+
const ComposerTriggerPopoverImpl = ({ iconMap, fallbackIcon = SparklesIcon, backLabel = "Back", emptyCategoriesLabel = "No items available", emptyItemsLabel = "No matching items", loadingLabel = "Loading…", className, directive, action, ...props }) => {
|
|
68
|
+
const warnedRef = useRef(false);
|
|
69
|
+
if (process.env.NODE_ENV !== "production" && !warnedRef.current && Boolean(directive) === Boolean(action)) {
|
|
70
|
+
warnedRef.current = true;
|
|
71
|
+
console.warn("[assistant-ui] ComposerTriggerPopover requires exactly one of `directive` or `action` props.");
|
|
72
|
+
}
|
|
73
|
+
return /* @__PURE__ */ jsxs(ComposerPrimitive.Unstable_TriggerPopover, {
|
|
74
|
+
"data-slot": "composer-trigger-popover",
|
|
75
|
+
className: cn("aui-composer-trigger-popover bg-popover text-popover-foreground absolute start-0 bottom-full z-50 mb-2 w-64 overflow-hidden rounded-xl border", className),
|
|
76
|
+
...props,
|
|
77
|
+
children: [
|
|
78
|
+
directive ? /* @__PURE__ */ jsx(ComposerPrimitive.Unstable_TriggerPopover.Directive, {
|
|
79
|
+
formatter: directive.formatter ?? unstable_defaultDirectiveFormatter,
|
|
80
|
+
onInserted: directive.onInserted
|
|
81
|
+
}) : action ? /* @__PURE__ */ jsx(ComposerPrimitive.Unstable_TriggerPopover.Action, {
|
|
82
|
+
formatter: action.formatter ?? unstable_defaultDirectiveFormatter,
|
|
83
|
+
onExecute: action.onExecute,
|
|
84
|
+
removeOnExecute: action.removeOnExecute
|
|
85
|
+
}) : null,
|
|
86
|
+
/* @__PURE__ */ jsx(Categories, {
|
|
87
|
+
iconMap,
|
|
88
|
+
fallbackIcon,
|
|
89
|
+
emptyLabel: emptyCategoriesLabel
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(Items, {
|
|
92
|
+
iconMap,
|
|
93
|
+
fallbackIcon,
|
|
94
|
+
backLabel,
|
|
95
|
+
emptyLabel: emptyItemsLabel,
|
|
96
|
+
loadingLabel
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
ComposerTriggerPopoverImpl.displayName = "ComposerTriggerPopover";
|
|
102
|
+
const ComposerTriggerPopover = memo(ComposerTriggerPopoverImpl);
|
|
103
|
+
//#endregion
|
|
104
|
+
export { ComposerTriggerPopover, composer_trigger_popover_aui_exports };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
declare namespace composer_d_exports {
|
|
4
|
+
export { Composer, ComposerActions, ComposerAttachButton, ComposerAttachment, ComposerAttachmentChip, ComposerAttachments, ComposerBar, ComposerCommand, ComposerCommandItem, ComposerContext, ComposerInput, ComposerMenu, ComposerMenuItem, ComposerModel, ComposerModelItem, ComposerModelTrigger, ComposerPerson, ComposerPersonItem, ComposerSend, ComposerToolbar, ComposerUsage, ComposerVoice, ComposerVoiceButton, applyMention, useMentionMatches, useSlashMatches };
|
|
5
|
+
}
|
|
6
|
+
export interface ComposerAttachment {
|
|
7
|
+
name: string;
|
|
8
|
+
meta: string;
|
|
9
|
+
state: "uploading" | "done" | "error";
|
|
10
|
+
progress?: number;
|
|
11
|
+
kind?: "image" | "text" | "archive";
|
|
12
|
+
}
|
|
13
|
+
export interface ComposerCommand {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
icon: LucideIcon;
|
|
17
|
+
}
|
|
18
|
+
export interface ComposerPerson {
|
|
19
|
+
name: string;
|
|
20
|
+
role: "agent" | "human";
|
|
21
|
+
}
|
|
22
|
+
export interface ComposerModel {
|
|
23
|
+
name: string;
|
|
24
|
+
meta: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ComposerUsage {
|
|
27
|
+
system: number;
|
|
28
|
+
tools: number;
|
|
29
|
+
messages: number;
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/** Commands whose name starts with the slash query, or none when not typing one. */
|
|
33
|
+
export declare function useSlashMatches(value: string, commands: readonly ComposerCommand[] | undefined): ComposerCommand[];
|
|
34
|
+
/** People matching a trailing @mention, or none when the caret is not in one. */
|
|
35
|
+
export declare function useMentionMatches(value: string, people: readonly ComposerPerson[] | undefined): ComposerPerson[];
|
|
36
|
+
/** Replaces the trailing @mention with the chosen name. */
|
|
37
|
+
export declare function applyMention(value: string, name: string): string;
|
|
38
|
+
export declare function Composer({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
39
|
+
export declare function ComposerBar({ dragActive, className, ...props }: ComponentProps<"div"> & {
|
|
40
|
+
dragActive?: boolean;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
export declare function ComposerMenu({ open, align, className, ...props }: ComponentProps<"div"> & {
|
|
43
|
+
open: boolean;
|
|
44
|
+
align?: "start" | "end";
|
|
45
|
+
}): import("react").JSX.Element;
|
|
46
|
+
export declare function ComposerMenuItem({ active, className, ...props }: ComponentProps<"button"> & {
|
|
47
|
+
active?: boolean;
|
|
48
|
+
}): import("react").JSX.Element;
|
|
49
|
+
export declare function ComposerCommandItem({ command, active, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
50
|
+
command: ComposerCommand;
|
|
51
|
+
active: boolean;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
export declare function ComposerPersonItem({ person, active, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
54
|
+
person: ComposerPerson;
|
|
55
|
+
active: boolean;
|
|
56
|
+
}): import("react").JSX.Element;
|
|
57
|
+
export declare function ComposerAttachments({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
58
|
+
export declare function ComposerAttachmentChip({ attachment, onRemove, className, ...props }: Omit<ComponentProps<"div">, "children"> & {
|
|
59
|
+
attachment: ComposerAttachment;
|
|
60
|
+
onRemove?: (name: string) => void;
|
|
61
|
+
}): import("react").JSX.Element;
|
|
62
|
+
export declare function ComposerInput({ onSubmit, onKeyDown, className, ...props }: Omit<ComponentProps<"input">, "onSubmit"> & {
|
|
63
|
+
onSubmit?: () => void;
|
|
64
|
+
}): import("react").JSX.Element;
|
|
65
|
+
export declare function ComposerVoice({ recording, seconds, className, ...props }: Omit<ComponentProps<"div">, "children"> & {
|
|
66
|
+
recording: boolean;
|
|
67
|
+
seconds: number;
|
|
68
|
+
}): import("react").JSX.Element;
|
|
69
|
+
export declare function ComposerToolbar({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
70
|
+
export declare function ComposerActions({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
71
|
+
export declare function ComposerAttachButton({ className, ...props }: Omit<ComponentProps<"button">, "children">): import("react").JSX.Element;
|
|
72
|
+
export declare function ComposerModelTrigger({ model, open, className, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
73
|
+
model: string;
|
|
74
|
+
open: boolean;
|
|
75
|
+
}): import("react").JSX.Element;
|
|
76
|
+
export declare function ComposerModelItem({ entry, selected, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
77
|
+
entry: ComposerModel;
|
|
78
|
+
selected: boolean;
|
|
79
|
+
}): import("react").JSX.Element;
|
|
80
|
+
export declare function ComposerContext({ usage, className, ...props }: Omit<ComponentProps<"div">, "children"> & {
|
|
81
|
+
usage: ComposerUsage;
|
|
82
|
+
}): import("react").JSX.Element;
|
|
83
|
+
export declare function ComposerVoiceButton({ active, className, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
84
|
+
active: boolean;
|
|
85
|
+
}): import("react").JSX.Element;
|
|
86
|
+
export declare function ComposerSend({ streaming, idle, className, ...props }: Omit<ComponentProps<"button">, "children"> & {
|
|
87
|
+
streaming: boolean;
|
|
88
|
+
idle: boolean;
|
|
89
|
+
}): import("react").JSX.Element;
|
|
90
|
+
//#endregion
|
|
91
|
+
export { composer_d_exports };
|