@dungle-scrubs/admin-ui-soft 0.0.0-stage → 0.0.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 +133 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { ghostButton, mono, paper } from "./surfaces.js";
|
|
5
|
+
import { announced, clamp, pct, progressOf, take } from "../utils/range.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { CheckIcon, CircleAlertIcon, CircleSlashIcon, Loader2Icon, XIcon } from "lucide-react";
|
|
8
|
+
//#region src/components/assistant-ui/elements/job-progress.tsx
|
|
9
|
+
var job_progress_exports = /* @__PURE__ */ __exportAll({ JobProgress: () => JobProgress });
|
|
10
|
+
function formatElapsed(elapsedMs) {
|
|
11
|
+
const seconds = Math.max(0, Math.round(Number.isFinite(elapsedMs) ? elapsedMs / 1e3 : 0));
|
|
12
|
+
const minutes = Math.floor(seconds / 60);
|
|
13
|
+
const remainder = seconds % 60;
|
|
14
|
+
return {
|
|
15
|
+
dateTime: `PT${seconds}S`,
|
|
16
|
+
label: minutes === 0 ? `${seconds}s` : remainder === 0 ? `${minutes}m` : `${minutes}m ${remainder}s`
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function JobProgress({ title, stages, stageIndex, stageProgress, eta, onCancel, outcome, elapsedMs, className, ...props }) {
|
|
20
|
+
const stage = progressOf(stageIndex, stages.length);
|
|
21
|
+
const progress = clamp(stageProgress, 0, 1);
|
|
22
|
+
const totalWeight = stages.reduce((sum, item) => sum + item.weight, 0) || 1;
|
|
23
|
+
const completed = take(stages, stage).reduce((sum, item) => sum + item.weight, 0);
|
|
24
|
+
const current = stages[stage];
|
|
25
|
+
const overall = pct(completed + (current ? current.weight * progress : 0), totalWeight);
|
|
26
|
+
const finished = stage >= stages.length;
|
|
27
|
+
const running = !finished && outcome === void 0;
|
|
28
|
+
const state = outcome?.status ?? (finished ? "done" : "running");
|
|
29
|
+
const elapsed = !running && elapsedMs !== void 0 ? formatElapsed(elapsedMs) : void 0;
|
|
30
|
+
const statusWord = outcome?.status === "success" ? "done" : outcome?.status ?? "done";
|
|
31
|
+
const announcement = outcome ? `Job ${outcome.status === "success" ? "done" : outcome.status === "partial" ? "partly done" : outcome.status}` : current ? `Current stage: ${current.name}` : finished ? "Job done" : "Job running";
|
|
32
|
+
const outcomeBar = outcome?.status === "success" ? "bg-success" : outcome?.status === "partial" ? "bg-warning dark:bg-warning" : outcome?.status === "failed" ? "bg-destructive dark:bg-destructive" : outcome?.status === "cancelled" ? "bg-foreground/20" : void 0;
|
|
33
|
+
const progressPercent = outcome?.status === "success" ? 100 : overall;
|
|
34
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
"data-slot": "job-progress",
|
|
36
|
+
"data-state": state,
|
|
37
|
+
className: cn(paper, "flex w-full max-w-sm flex-col gap-3 rounded-2xl p-4", className),
|
|
38
|
+
...props,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: "flex items-center gap-2.5",
|
|
42
|
+
children: [
|
|
43
|
+
outcome?.status === "partial" ? /* @__PURE__ */ jsx(CircleAlertIcon, { className: "size-3.5 shrink-0 text-warning dark:text-warning" }) : outcome?.status === "failed" ? /* @__PURE__ */ jsx(XIcon, { className: "size-3.5 shrink-0 text-destructive dark:text-destructive" }) : outcome?.status === "cancelled" ? /* @__PURE__ */ jsx(CircleSlashIcon, { className: "text-muted-foreground size-3.5 shrink-0" }) : !running ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5 shrink-0 text-success" }) : /* @__PURE__ */ jsx(Loader2Icon, { className: "text-muted-foreground size-3.5 shrink-0 animate-spin motion-reduce:animate-none" }),
|
|
44
|
+
/* @__PURE__ */ jsx("span", {
|
|
45
|
+
className: "min-w-0 flex-1 truncate text-[13.5px] font-medium",
|
|
46
|
+
children: title
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: cn(mono, "text-muted-foreground shrink-0 tabular-nums"),
|
|
50
|
+
children: elapsed ? /* @__PURE__ */ jsx("time", {
|
|
51
|
+
dateTime: elapsed.dateTime,
|
|
52
|
+
children: elapsed.label
|
|
53
|
+
}) : !running ? statusWord : eta
|
|
54
|
+
}),
|
|
55
|
+
running && onCancel ? /* @__PURE__ */ jsx("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
"aria-label": "Cancel the job",
|
|
58
|
+
onClick: onCancel,
|
|
59
|
+
className: cn(ghostButton, "size-6 shrink-0"),
|
|
60
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-3.5" })
|
|
61
|
+
}) : null
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx("span", {
|
|
65
|
+
role: "progressbar",
|
|
66
|
+
"aria-label": `${title} progress`,
|
|
67
|
+
"aria-valuemin": 0,
|
|
68
|
+
"aria-valuemax": 100,
|
|
69
|
+
"aria-valuenow": announced(progressPercent),
|
|
70
|
+
className: "bg-foreground/[0.06] h-1 w-full overflow-hidden rounded-full",
|
|
71
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
72
|
+
className: cn("block h-full rounded-full transition-[width] duration-500 ease-out motion-reduce:transition-none", outcomeBar ?? (finished ? "bg-success" : "bg-info dark:bg-info")),
|
|
73
|
+
style: { width: `${progressPercent}%` }
|
|
74
|
+
})
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsxs("div", {
|
|
77
|
+
className: "flex flex-col gap-0.5",
|
|
78
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: "flex flex-wrap gap-x-3 gap-y-1",
|
|
80
|
+
children: stages.map((item, i) => /* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: cn(mono, i < stage ? "text-muted-foreground" : i === stage ? "text-foreground/90" : "text-muted-foreground"),
|
|
82
|
+
children: item.name
|
|
83
|
+
}, item.name))
|
|
84
|
+
}), current?.description ? /* @__PURE__ */ jsx("p", {
|
|
85
|
+
className: "text-muted-foreground text-xs leading-4 break-words",
|
|
86
|
+
children: current.description
|
|
87
|
+
}) : null]
|
|
88
|
+
}),
|
|
89
|
+
outcome?.summary ? /* @__PURE__ */ jsx("p", {
|
|
90
|
+
className: "text-muted-foreground text-[13px] leading-snug break-words",
|
|
91
|
+
children: outcome.summary
|
|
92
|
+
}) : null,
|
|
93
|
+
/* @__PURE__ */ jsx("span", {
|
|
94
|
+
className: "sr-only",
|
|
95
|
+
role: "status",
|
|
96
|
+
children: announcement
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { JobProgress, job_progress_exports };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace launcher_bubble_d_exports {
|
|
3
|
+
export { LauncherBubble };
|
|
4
|
+
}
|
|
5
|
+
export declare function LauncherBubble({ open, unread, greeting, prompts, onToggle, onPick, onStart, className, ...props }: Omit<ComponentProps<"div">, "children" | "open" | "unread" | "greeting" | "prompts" | "onToggle" | "onPick" | "onStart"> & {
|
|
6
|
+
open: boolean;
|
|
7
|
+
unread: number;
|
|
8
|
+
greeting: string;
|
|
9
|
+
prompts: readonly string[];
|
|
10
|
+
onToggle?: () => void;
|
|
11
|
+
onPick?: (prompt: string) => void;
|
|
12
|
+
onStart?: () => void;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { launcher_bubble_d_exports };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import "./surfaces.js";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { MessageCircleIcon, XIcon } from "lucide-react";
|
|
7
|
+
//#region src/components/assistant-ui/elements/launcher-bubble.tsx
|
|
8
|
+
var launcher_bubble_exports = /* @__PURE__ */ __exportAll({ LauncherBubble: () => LauncherBubble });
|
|
9
|
+
function LauncherBubble({ open, unread, greeting, prompts, onToggle, onPick, onStart, className, ...props }) {
|
|
10
|
+
const bubble = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("span", {
|
|
11
|
+
className: "grid",
|
|
12
|
+
children: [/* @__PURE__ */ jsx(MessageCircleIcon, { className: cn("size-5 transition-[opacity,rotate] duration-200 [grid-area:1/1]", open && "rotate-90 opacity-0") }), /* @__PURE__ */ jsx(XIcon, { className: cn("size-5 transition-[opacity,rotate] duration-200 [grid-area:1/1]", !open && "-rotate-90 opacity-0") })]
|
|
13
|
+
}), unread > 0 && !open && /* @__PURE__ */ jsx("span", {
|
|
14
|
+
className: cn("font-mono text-[11px] tracking-tight", "bg-foreground text-background ring-background absolute -top-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full tabular-nums ring-2"),
|
|
15
|
+
children: unread
|
|
16
|
+
})] });
|
|
17
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
18
|
+
"data-slot": "launcher-bubble",
|
|
19
|
+
className: cn("flex w-full max-w-[19rem] flex-col items-end gap-2.5", className),
|
|
20
|
+
...props,
|
|
21
|
+
children: [
|
|
22
|
+
open && /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: cn("bg-popover border border-border shadow-lg", "fade-in zoom-in-95 slide-in-from-bottom-2 animate-in flex w-full flex-col gap-3 rounded-[20px] p-4 duration-200"),
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "flex flex-col gap-1",
|
|
27
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
28
|
+
className: "text-[13.5px] font-medium",
|
|
29
|
+
children: greeting
|
|
30
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-muted-foreground"),
|
|
32
|
+
children: "typically replies in a minute"
|
|
33
|
+
})]
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: "flex flex-col gap-1.5",
|
|
37
|
+
children: prompts.map((prompt) => onPick ? /* @__PURE__ */ jsx("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
onClick: () => onPick(prompt),
|
|
40
|
+
className: cn("bg-muted", "hover:bg-foreground/[0.07] text-muted-foreground rounded-xl px-3 py-2 text-start text-[13px] transition-colors"),
|
|
41
|
+
children: prompt
|
|
42
|
+
}, prompt) : /* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: cn("bg-muted", "text-muted-foreground rounded-xl px-3 py-2 text-[13px]"),
|
|
44
|
+
children: prompt
|
|
45
|
+
}, prompt))
|
|
46
|
+
}),
|
|
47
|
+
onStart && /* @__PURE__ */ jsx("button", {
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: onStart,
|
|
50
|
+
className: cn("bg-foreground text-background transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:opacity-90 active:scale-[0.96] motion-reduce:transition-none", "flex h-8 items-center justify-center rounded-full text-xs font-medium"),
|
|
51
|
+
children: "Start a conversation"
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
onToggle && /* @__PURE__ */ jsx("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
"aria-expanded": open,
|
|
58
|
+
"aria-label": open ? "Close the assistant" : "Open the assistant",
|
|
59
|
+
onClick: onToggle,
|
|
60
|
+
className: cn("bg-foreground text-background transition-[opacity,scale] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:opacity-90 active:scale-[0.96] motion-reduce:transition-none", "relative flex size-12 shrink-0 items-center justify-center rounded-full"),
|
|
61
|
+
children: bubble
|
|
62
|
+
}),
|
|
63
|
+
!onToggle && !open && /* @__PURE__ */ jsx("div", {
|
|
64
|
+
className: "bg-foreground text-background relative flex size-12 shrink-0 items-center justify-center rounded-full",
|
|
65
|
+
children: bubble
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { LauncherBubble, launcher_bubble_exports };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace link_preview_d_exports {
|
|
3
|
+
export { LinkPreview, LinkPreviewProps };
|
|
4
|
+
}
|
|
5
|
+
export interface LinkPreviewProps extends Omit<ComponentProps<"article">, "children" | "title"> {
|
|
6
|
+
href: string;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
description?: string | undefined;
|
|
9
|
+
image?: string | undefined;
|
|
10
|
+
imageAlt?: string | undefined;
|
|
11
|
+
siteName?: string | undefined;
|
|
12
|
+
favicon?: string | undefined;
|
|
13
|
+
layout?: "card" | "compact" | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function LinkPreview({ href, title, description, image, imageAlt, siteName, favicon, layout, className, ...props }: LinkPreviewProps): import("react").JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { link_preview_d_exports };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, mono, paper } from "./surfaces.js";
|
|
5
|
+
import { hostOf, safeHref } from "../utils/href.js";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/assistant-ui/elements/link-preview.tsx
|
|
9
|
+
var link_preview_exports = /* @__PURE__ */ __exportAll({ LinkPreview: () => LinkPreview });
|
|
10
|
+
function LinkPreview({ href, title, description, image, imageAlt, siteName, favicon, layout = "card", className, ...props }) {
|
|
11
|
+
const [failedImage, setFailedImage] = useState();
|
|
12
|
+
const [failedFavicon, setFailedFavicon] = useState();
|
|
13
|
+
const safeUrl = safeHref(href);
|
|
14
|
+
const host = hostOf(href);
|
|
15
|
+
const site = siteName ?? host;
|
|
16
|
+
const label = title || host || safeUrl || "Untitled link";
|
|
17
|
+
const hasImage = image !== void 0 && image !== "" && failedImage !== image;
|
|
18
|
+
const hasFavicon = favicon !== void 0 && favicon !== "" && failedFavicon !== favicon;
|
|
19
|
+
const imageFrame = hasImage ? /* @__PURE__ */ jsx("div", {
|
|
20
|
+
"data-slot": "link-preview-image",
|
|
21
|
+
className: cn(field, "relative shrink-0 overflow-hidden", layout === "card" ? "aspect-video w-full" : "size-16"),
|
|
22
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
23
|
+
src: image,
|
|
24
|
+
alt: imageAlt ?? "",
|
|
25
|
+
className: "size-full object-cover",
|
|
26
|
+
onError: () => setFailedImage(image)
|
|
27
|
+
})
|
|
28
|
+
}) : null;
|
|
29
|
+
return /* @__PURE__ */ jsxs("article", {
|
|
30
|
+
"data-slot": "link-preview",
|
|
31
|
+
"data-layout": layout,
|
|
32
|
+
className: cn(paper, "focus-within:ring-foreground/20 relative flex w-full max-w-sm overflow-hidden rounded-2xl transition-transform duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] outline-none focus-within:ring-1 hover:-translate-y-px motion-reduce:transition-none", layout === "card" ? "flex-col" : "items-stretch", className),
|
|
33
|
+
...props,
|
|
34
|
+
children: [imageFrame, /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
className: "flex min-w-0 flex-1 flex-col gap-1 p-3",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsxs("div", {
|
|
38
|
+
className: "flex min-w-0 items-center gap-1.5",
|
|
39
|
+
children: [hasFavicon ? /* @__PURE__ */ jsx("img", {
|
|
40
|
+
"data-slot": "link-preview-favicon",
|
|
41
|
+
src: favicon,
|
|
42
|
+
alt: "",
|
|
43
|
+
className: "size-4 shrink-0 rounded-sm object-cover",
|
|
44
|
+
onError: () => setFailedFavicon(favicon)
|
|
45
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
46
|
+
"aria-hidden": true,
|
|
47
|
+
"data-slot": "link-preview-site-initial",
|
|
48
|
+
className: cn(field, "text-muted-foreground flex size-4 shrink-0 items-center justify-center rounded-sm text-[9px] font-medium"),
|
|
49
|
+
children: site?.charAt(0).toUpperCase() ?? "?"
|
|
50
|
+
}), site ? /* @__PURE__ */ jsx("span", {
|
|
51
|
+
className: cn(mono, "text-muted-foreground truncate"),
|
|
52
|
+
children: site
|
|
53
|
+
}) : null]
|
|
54
|
+
}),
|
|
55
|
+
safeUrl ? /* @__PURE__ */ jsxs("a", {
|
|
56
|
+
href: safeUrl,
|
|
57
|
+
target: "_blank",
|
|
58
|
+
rel: "noopener noreferrer",
|
|
59
|
+
className: "text-foreground/90 line-clamp-2 text-[13.5px] leading-5 font-medium after:absolute after:inset-0 after:z-10",
|
|
60
|
+
children: [label, /* @__PURE__ */ jsx("span", {
|
|
61
|
+
className: "sr-only",
|
|
62
|
+
children: "(opens in a new tab)"
|
|
63
|
+
})]
|
|
64
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "text-foreground/90 line-clamp-2 text-[13.5px] leading-5 font-medium",
|
|
66
|
+
children: label
|
|
67
|
+
}),
|
|
68
|
+
description ? /* @__PURE__ */ jsx("span", {
|
|
69
|
+
className: "text-muted-foreground line-clamp-2 text-xs leading-relaxed",
|
|
70
|
+
children: description
|
|
71
|
+
}) : null
|
|
72
|
+
]
|
|
73
|
+
})]
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { LinkPreview, link_preview_exports };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace loading_state_d_exports {
|
|
3
|
+
export { GenerationLoader, GenerationLoaderProps, GenerationLoaderVariant };
|
|
4
|
+
}
|
|
5
|
+
export type GenerationLoaderVariant = "dots" | "squares" | "rounded";
|
|
6
|
+
export interface GenerationLoaderProps extends Omit<ComponentProps<"div">, "children"> {
|
|
7
|
+
label: string;
|
|
8
|
+
tick: number;
|
|
9
|
+
variant?: GenerationLoaderVariant;
|
|
10
|
+
}
|
|
11
|
+
export declare function GenerationLoader({ label, tick, variant, className, ...props }: GenerationLoaderProps): import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { loading_state_d_exports };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { ShimmerLabel } from "./surfaces.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/assistant-ui/elements/loading-state.tsx
|
|
7
|
+
var loading_state_exports = /* @__PURE__ */ __exportAll({ GenerationLoader: () => GenerationLoader });
|
|
8
|
+
const CELL_SHAPES = {
|
|
9
|
+
dots: "rounded-full",
|
|
10
|
+
squares: "rounded-[1px]",
|
|
11
|
+
rounded: "rounded-[3px]"
|
|
12
|
+
};
|
|
13
|
+
function GenerationLoader({ label, tick, variant = "dots", className, ...props }) {
|
|
14
|
+
const pixelOffset = Math.floor(tick / 3);
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
"data-slot": "generation-loader",
|
|
17
|
+
className: cn("flex flex-col items-center gap-4", className),
|
|
18
|
+
...props,
|
|
19
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
20
|
+
"aria-hidden": true,
|
|
21
|
+
className: "grid grid-cols-3 gap-1",
|
|
22
|
+
children: Array.from({ length: 9 }, (_, index) => {
|
|
23
|
+
const active = (index * 2 + pixelOffset) % 9 < 3;
|
|
24
|
+
return /* @__PURE__ */ jsx("span", { className: cn("bg-foreground size-2 transition-opacity duration-300 motion-reduce:transition-none", CELL_SHAPES[variant], active ? "opacity-90" : "opacity-15") }, index);
|
|
25
|
+
})
|
|
26
|
+
}), /* @__PURE__ */ jsx(ShimmerLabel, {
|
|
27
|
+
className: "text-muted-foreground relative inline-block text-sm",
|
|
28
|
+
children: label
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { GenerationLoader, loading_state_exports };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace logos_d_exports {
|
|
3
|
+
export { ClaudeLogo, GeminiLogo, LogoProps, OpenAILogo };
|
|
4
|
+
}
|
|
5
|
+
export type LogoProps = ComponentProps<"svg">;
|
|
6
|
+
declare function ClaudeLogo(props: LogoProps): import("react").JSX.Element;
|
|
7
|
+
declare function OpenAILogo(props: LogoProps): import("react").JSX.Element;
|
|
8
|
+
declare function GeminiLogo(props: LogoProps): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ClaudeLogo, GeminiLogo, OpenAILogo, logos_d_exports };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/assistant-ui/elements/logos.tsx
|
|
6
|
+
var logos_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
ClaudeLogo: () => ClaudeLogo,
|
|
8
|
+
GeminiLogo: () => GeminiLogo,
|
|
9
|
+
OpenAILogo: () => OpenAILogo
|
|
10
|
+
});
|
|
11
|
+
function ClaudeLogo(props) {
|
|
12
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
13
|
+
viewBox: "0 0 256 257",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
...props,
|
|
17
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
18
|
+
fill: "#D97757",
|
|
19
|
+
d: "m50.228 170.321 50.357-28.257.843-2.463-.843-1.361h-2.462l-8.426-.518-28.775-.778-24.952-1.037-24.175-1.296-6.092-1.297L0 125.796l.583-3.759 5.12-3.434 7.324.648 16.202 1.101 24.304 1.685 17.629 1.037 26.118 2.722h4.148l.583-1.685-1.426-1.037-1.101-1.037-25.147-17.045-27.22-18.017-14.258-10.37-7.713-5.25-3.888-4.925-1.685-10.758 7-7.713 9.397.649 2.398.648 9.527 7.323 20.35 15.75L94.817 91.9l3.889 3.24 1.555-1.102.195-.777-1.75-2.917-14.453-26.118-15.425-26.572-6.87-11.018-1.814-6.61c-.648-2.723-1.102-4.991-1.102-7.778l7.972-10.823L71.42 0 82.05 1.426l4.472 3.888 6.61 15.101 10.694 23.786 16.591 32.34 4.861 9.592 2.592 8.879.973 2.722h1.685v-1.556l1.36-18.211 2.528-22.36 2.463-28.776.843-8.1 4.018-9.722 7.971-5.25 6.222 2.981 5.12 7.324-.713 4.73-3.046 19.768-5.962 30.98-3.889 20.739h2.268l2.593-2.593 10.499-13.934 17.628-22.036 7.778-8.749 9.073-9.657 5.833-4.601h11.018l8.1 12.055-3.628 12.443-11.342 14.388-9.398 12.184-13.48 18.147-8.426 14.518.778 1.166 2.01-.194 30.46-6.481 16.462-2.982 19.637-3.37 8.88 4.148.971 4.213-3.5 8.62-20.998 5.184-24.628 4.926-36.682 8.685-.454.324.519.648 16.526 1.555 7.065.389h17.304l32.21 2.398 8.426 5.574 5.055 6.805-.843 5.184-12.962 6.611-17.498-4.148-40.83-9.721-14-3.5h-1.944v1.167l11.666 11.406 21.387 19.314 26.767 24.887 1.36 6.157-3.434 4.86-3.63-.518-23.526-17.693-9.073-7.972-20.545-17.304h-1.36v1.814l4.73 6.935 25.017 37.59 1.296 11.536-1.814 3.76-6.481 2.268-7.13-1.297-14.647-20.544-15.1-23.138-12.185-20.739-1.49.843-7.194 77.448-3.37 3.953-7.778 2.981-6.48-4.925-3.436-7.972 3.435-15.749 4.148-20.544 3.37-16.333 3.046-20.285 1.815-6.74-.13-.454-1.49.194-15.295 20.999-23.267 31.433-18.406 19.702-4.407 1.75-7.648-3.954.713-7.064 4.277-6.286 25.47-32.405 15.36-20.092 9.917-11.6-.065-1.686h-.583L44.07 198.125l-12.055 1.555-5.185-4.86.648-7.972 2.463-2.593 20.35-13.999-.064.065Z"
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function OpenAILogo(props) {
|
|
24
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
25
|
+
viewBox: "0 0 256 260",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
...props,
|
|
30
|
+
children: /* @__PURE__ */ jsx("path", { d: "M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z" })
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function GeminiLogo(props) {
|
|
34
|
+
const id = useId();
|
|
35
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
fill: `url(#${id})`,
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
...props,
|
|
41
|
+
children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
|
|
42
|
+
id,
|
|
43
|
+
x1: "2",
|
|
44
|
+
y1: "12",
|
|
45
|
+
x2: "22",
|
|
46
|
+
y2: "12",
|
|
47
|
+
gradientUnits: "userSpaceOnUse",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#4285F4" }),
|
|
50
|
+
/* @__PURE__ */ jsx("stop", {
|
|
51
|
+
offset: "0.5",
|
|
52
|
+
stopColor: "#9B72CB"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ jsx("stop", {
|
|
55
|
+
offset: "1",
|
|
56
|
+
stopColor: "#D96570"
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}) }), /* @__PURE__ */ jsx("path", { d: "M12 1c.53 5.94 4.06 9.47 10 10-5.94.53-9.47 4.06-10 10-.53-5.94-4.06-9.47-10-10C7.94 10.47 11.47 6.94 12 1Z" })]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { ClaudeLogo, GeminiLogo, OpenAILogo, logos_exports };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace map_answer_d_exports {
|
|
3
|
+
export { MapAnswer, MapPin };
|
|
4
|
+
}
|
|
5
|
+
export interface MapPin {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
detail: string;
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function MapAnswer({ pins, activeId, route, onSelect, className, ...props }: Omit<ComponentProps<"div">, "children" | "pins" | "activeId" | "route" | "onSelect"> & {
|
|
13
|
+
pins: readonly MapPin[];
|
|
14
|
+
activeId: string;
|
|
15
|
+
route?: boolean;
|
|
16
|
+
onSelect?: (id: string) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { map_answer_d_exports };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, mono, paper } from "./surfaces.js";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/assistant-ui/elements/map-answer.tsx
|
|
7
|
+
var map_answer_exports = /* @__PURE__ */ __exportAll({ MapAnswer: () => MapAnswer });
|
|
8
|
+
function MapAnswer({ pins, activeId, route, onSelect, className, ...props }) {
|
|
9
|
+
const path = pins.map((pin) => `${pin.x},${pin.y}`).join(" ");
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
"data-slot": "map-answer",
|
|
12
|
+
className: cn(paper, "flex w-full max-w-sm flex-col overflow-hidden rounded-2xl", className),
|
|
13
|
+
...props,
|
|
14
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
15
|
+
className: cn(field, "relative h-40"),
|
|
16
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
17
|
+
viewBox: "0 0 100 100",
|
|
18
|
+
preserveAspectRatio: "none",
|
|
19
|
+
"aria-hidden": true,
|
|
20
|
+
className: "absolute inset-0 size-full",
|
|
21
|
+
children: [
|
|
22
|
+
[
|
|
23
|
+
18,
|
|
24
|
+
42,
|
|
25
|
+
66,
|
|
26
|
+
88
|
|
27
|
+
].map((y) => /* @__PURE__ */ jsx("line", {
|
|
28
|
+
x1: "0",
|
|
29
|
+
x2: "100",
|
|
30
|
+
y1: y,
|
|
31
|
+
y2: y,
|
|
32
|
+
className: "stroke-foreground/[0.06]",
|
|
33
|
+
strokeWidth: "0.6"
|
|
34
|
+
}, `h${y}`)),
|
|
35
|
+
[
|
|
36
|
+
22,
|
|
37
|
+
50,
|
|
38
|
+
74
|
|
39
|
+
].map((x) => /* @__PURE__ */ jsx("line", {
|
|
40
|
+
x1: x,
|
|
41
|
+
x2: x,
|
|
42
|
+
y1: "0",
|
|
43
|
+
y2: "100",
|
|
44
|
+
className: "stroke-foreground/[0.06]",
|
|
45
|
+
strokeWidth: "0.6"
|
|
46
|
+
}, `v${x}`)),
|
|
47
|
+
route && pins.length > 1 && /* @__PURE__ */ jsx("polyline", {
|
|
48
|
+
points: path,
|
|
49
|
+
fill: "none",
|
|
50
|
+
strokeWidth: "1.2",
|
|
51
|
+
strokeDasharray: "3 2",
|
|
52
|
+
strokeLinecap: "round",
|
|
53
|
+
className: "stroke-info/60 dark:stroke-info/60"
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}), pins.map((pin, index) => {
|
|
57
|
+
const className = "focus-visible:ring-ring/50 absolute flex size-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full outline-none focus-visible:ring-[3px]";
|
|
58
|
+
const content = /* @__PURE__ */ jsx("span", {
|
|
59
|
+
className: cn("flex items-center justify-center rounded-full border-2 border-background font-medium text-[9px] leading-none text-background transition-all duration-200 motion-reduce:transition-none", pin.id === activeId ? "bg-info size-4 dark:bg-info" : "bg-foreground/55 size-3.5"),
|
|
60
|
+
children: index + 1
|
|
61
|
+
});
|
|
62
|
+
return onSelect ? /* @__PURE__ */ jsx("button", {
|
|
63
|
+
type: "button",
|
|
64
|
+
"aria-label": pin.label,
|
|
65
|
+
"aria-current": pin.id === activeId || void 0,
|
|
66
|
+
onClick: () => onSelect(pin.id),
|
|
67
|
+
className,
|
|
68
|
+
style: {
|
|
69
|
+
left: `${pin.x}%`,
|
|
70
|
+
top: `${pin.y}%`
|
|
71
|
+
},
|
|
72
|
+
children: content
|
|
73
|
+
}, pin.id) : /* @__PURE__ */ jsx("span", {
|
|
74
|
+
role: "img",
|
|
75
|
+
"aria-label": pin.label,
|
|
76
|
+
"aria-current": pin.id === activeId || void 0,
|
|
77
|
+
className,
|
|
78
|
+
style: {
|
|
79
|
+
left: `${pin.x}%`,
|
|
80
|
+
top: `${pin.y}%`
|
|
81
|
+
},
|
|
82
|
+
children: content
|
|
83
|
+
}, pin.id);
|
|
84
|
+
})]
|
|
85
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
86
|
+
className: "flex flex-col",
|
|
87
|
+
children: pins.map((pin, index) => {
|
|
88
|
+
const className = cn("border-foreground/[0.06] flex items-baseline gap-2 border-t px-3.5 py-2 text-start transition-colors", "focus-visible:ring-ring/40 outline-none last:rounded-b-[calc(1rem-1px)] focus-visible:ring-1 focus-visible:ring-inset", pin.id === activeId ? "bg-foreground/[0.03]" : onSelect ? "hover:bg-foreground/[0.02] focus-visible:bg-foreground/[0.02]" : void 0);
|
|
89
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx("span", {
|
|
91
|
+
"aria-hidden": true,
|
|
92
|
+
className: cn("flex size-4 shrink-0 translate-y-0.5 items-center justify-center self-start rounded-full text-[9px] font-medium leading-none", pin.id === activeId ? "bg-info text-background dark:bg-info" : "bg-foreground/55 text-background"),
|
|
93
|
+
children: index + 1
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ jsx("span", {
|
|
96
|
+
className: "text-foreground/85 min-w-0 flex-1 truncate text-[13px]",
|
|
97
|
+
children: pin.label
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ jsx("span", {
|
|
100
|
+
className: cn(mono, "text-muted-foreground shrink-0"),
|
|
101
|
+
children: pin.detail
|
|
102
|
+
})
|
|
103
|
+
] });
|
|
104
|
+
return onSelect ? /* @__PURE__ */ jsx("button", {
|
|
105
|
+
type: "button",
|
|
106
|
+
"aria-current": pin.id === activeId || void 0,
|
|
107
|
+
onClick: () => onSelect(pin.id),
|
|
108
|
+
className,
|
|
109
|
+
children: content
|
|
110
|
+
}, pin.id) : /* @__PURE__ */ jsx("div", {
|
|
111
|
+
"aria-current": pin.id === activeId || void 0,
|
|
112
|
+
className,
|
|
113
|
+
children: content
|
|
114
|
+
}, pin.id);
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
export { MapAnswer, map_answer_exports };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextMessagePartProps } from "@assistant-ui/react";
|
|
2
|
+
import { unstable_memoizeMarkdownComponents } from "@assistant-ui/react-markdown";
|
|
3
|
+
declare namespace markdown_text_d_exports {
|
|
4
|
+
export { MarkdownText };
|
|
5
|
+
}
|
|
6
|
+
type MarkdownTextProps = Partial<TextMessagePartProps> & {
|
|
7
|
+
components?: Parameters<typeof unstable_memoizeMarkdownComponents>[0];
|
|
8
|
+
};
|
|
9
|
+
export declare const MarkdownText: import("react").NamedExoticComponent<MarkdownTextProps>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { markdown_text_d_exports };
|