@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,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Button } from "../../ui/button.js";
|
|
4
|
+
import { cn } from "../../../lib/utils.js";
|
|
5
|
+
import { mono, paper } from "./surfaces.js";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { ChevronRightIcon, PlugIcon } from "lucide-react";
|
|
8
|
+
//#region src/components/assistant-ui/elements/mcp-server-panel.tsx
|
|
9
|
+
var mcp_server_panel_exports = /* @__PURE__ */ __exportAll({ McpServerPanel: () => McpServerPanel });
|
|
10
|
+
const DOT = {
|
|
11
|
+
connected: "bg-success",
|
|
12
|
+
connecting: "bg-foreground/30 animate-pulse",
|
|
13
|
+
"needs-auth": "bg-warning",
|
|
14
|
+
failed: "bg-destructive"
|
|
15
|
+
};
|
|
16
|
+
const LABEL = {
|
|
17
|
+
connected: "connected",
|
|
18
|
+
connecting: "connecting",
|
|
19
|
+
"needs-auth": "needs auth",
|
|
20
|
+
failed: "failed"
|
|
21
|
+
};
|
|
22
|
+
function McpServerPanel({ servers, expandedId, onToggle, onAuthorize, className, ...props }) {
|
|
23
|
+
const connected = servers.filter((server) => server.status === "connected").length;
|
|
24
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
25
|
+
"data-slot": "mcp-server-panel",
|
|
26
|
+
className: cn(paper, "flex w-full max-w-sm flex-col gap-1 rounded-2xl p-3", className),
|
|
27
|
+
...props,
|
|
28
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: "flex items-baseline justify-between px-1 pb-1",
|
|
30
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: "text-[13.5px] font-medium",
|
|
32
|
+
children: "Servers"
|
|
33
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
34
|
+
className: cn(mono, "text-muted-foreground tabular-nums"),
|
|
35
|
+
children: [
|
|
36
|
+
connected,
|
|
37
|
+
" of ",
|
|
38
|
+
servers.length,
|
|
39
|
+
" connected"
|
|
40
|
+
]
|
|
41
|
+
})]
|
|
42
|
+
}), servers.map((server) => {
|
|
43
|
+
const expanded = expandedId === server.id;
|
|
44
|
+
const rowClassName = cn("flex items-center gap-2.5 rounded-xl px-1.5 py-2 text-start", onToggle && "hover:bg-foreground/[0.04] transition-colors");
|
|
45
|
+
const row = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: cn("text-muted-foreground size-3 shrink-0 transition-transform duration-200 motion-reduce:transition-none", expanded && "rotate-90") }),
|
|
47
|
+
/* @__PURE__ */ jsx(PlugIcon, { className: "text-muted-foreground size-3.5 shrink-0" }),
|
|
48
|
+
/* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: "min-w-0 flex-1 truncate text-[13.5px]",
|
|
50
|
+
children: server.name
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsxs("span", {
|
|
53
|
+
className: cn(mono, "text-muted-foreground shrink-0"),
|
|
54
|
+
children: [
|
|
55
|
+
server.tools.length,
|
|
56
|
+
" ",
|
|
57
|
+
server.tools.length === 1 ? "tool" : "tools"
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
"aria-hidden": true,
|
|
62
|
+
className: cn("size-1.5 shrink-0 rounded-full", DOT[server.status])
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "sr-only",
|
|
66
|
+
children: LABEL[server.status]
|
|
67
|
+
})
|
|
68
|
+
] });
|
|
69
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
70
|
+
className: "flex flex-col",
|
|
71
|
+
children: [onToggle ? /* @__PURE__ */ jsx("button", {
|
|
72
|
+
type: "button",
|
|
73
|
+
"aria-expanded": expanded,
|
|
74
|
+
onClick: () => onToggle(server.id),
|
|
75
|
+
className: rowClassName,
|
|
76
|
+
children: row
|
|
77
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
78
|
+
className: rowClassName,
|
|
79
|
+
children: row
|
|
80
|
+
}), expanded && /* @__PURE__ */ jsxs("div", {
|
|
81
|
+
className: "fade-in slide-in-from-top-1 animate-in flex flex-col gap-1.5 px-1.5 ps-8 pb-2 duration-200",
|
|
82
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
83
|
+
className: "flex items-center gap-2",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-muted-foreground"),
|
|
87
|
+
children: server.transport
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ jsxs("span", {
|
|
90
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-muted-foreground"),
|
|
91
|
+
children: ["· ", LABEL[server.status]]
|
|
92
|
+
}),
|
|
93
|
+
server.status === "needs-auth" && onAuthorize && /* @__PURE__ */ jsx(Button, {
|
|
94
|
+
variant: "outline",
|
|
95
|
+
size: "xs",
|
|
96
|
+
className: "ms-auto",
|
|
97
|
+
onClick: () => onAuthorize(server.id),
|
|
98
|
+
children: "Authorize"
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
102
|
+
className: "flex flex-wrap gap-1",
|
|
103
|
+
children: server.tools.map((tool) => /* @__PURE__ */ jsx("span", {
|
|
104
|
+
className: cn("bg-muted", "font-mono text-[11px] tracking-tight", "text-muted-foreground rounded-md px-1.5 py-0.5"),
|
|
105
|
+
children: tool
|
|
106
|
+
}, tool))
|
|
107
|
+
})]
|
|
108
|
+
})]
|
|
109
|
+
}, server.id);
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { McpServerPanel, mcp_server_panel_exports };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace media_player_d_exports {
|
|
3
|
+
export { AudioPlayer, AudioPlayerProps, VideoPlayer, VideoPlayerProps };
|
|
4
|
+
}
|
|
5
|
+
export interface AudioPlayerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
6
|
+
src: string;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
artwork?: string | undefined;
|
|
9
|
+
durationMs?: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface VideoPlayerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
12
|
+
src: string;
|
|
13
|
+
poster?: string | undefined;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
ratio?: "16:9" | "4:3" | "1:1" | "9:16" | "auto" | undefined;
|
|
16
|
+
durationMs?: number | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare function AudioPlayer({ src, title, artwork, durationMs, className, ...props }: AudioPlayerProps): import("react").JSX.Element;
|
|
19
|
+
export declare function VideoPlayer({ src, poster, title, ratio, durationMs, className, ...props }: VideoPlayerProps): import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { media_player_d_exports };
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, inkButton, mono, paper } from "./surfaces.js";
|
|
5
|
+
import { useEffect, useRef, useState } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { PauseIcon, PlayIcon } from "lucide-react";
|
|
8
|
+
//#region src/components/assistant-ui/elements/media-player.tsx
|
|
9
|
+
var media_player_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
+
AudioPlayer: () => AudioPlayer,
|
|
11
|
+
VideoPlayer: () => VideoPlayer
|
|
12
|
+
});
|
|
13
|
+
function formatDuration(seconds) {
|
|
14
|
+
const wholeSeconds = Math.max(0, Math.floor(seconds));
|
|
15
|
+
return `${Math.floor(wholeSeconds / 60)}:${(wholeSeconds % 60).toString().padStart(2, "0")}`;
|
|
16
|
+
}
|
|
17
|
+
function useMediaDuration(mediaRef, src, durationMs) {
|
|
18
|
+
const [metadata, setMetadata] = useState({ src });
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const media = mediaRef.current;
|
|
21
|
+
if (!media || media.readyState < HTMLMediaElement.HAVE_METADATA) return;
|
|
22
|
+
if (Number.isFinite(media.duration) && media.duration >= 0) setMetadata({
|
|
23
|
+
src,
|
|
24
|
+
duration: media.duration
|
|
25
|
+
});
|
|
26
|
+
}, [mediaRef, src]);
|
|
27
|
+
const fallbackDuration = durationMs !== void 0 && Number.isFinite(durationMs) ? Math.max(0, durationMs / 1e3) : void 0;
|
|
28
|
+
return {
|
|
29
|
+
duration: metadata.src === src ? metadata.duration ?? fallbackDuration : fallbackDuration,
|
|
30
|
+
setDurationFromMetadata: (duration) => {
|
|
31
|
+
if (Number.isFinite(duration) && duration >= 0) setMetadata({
|
|
32
|
+
src,
|
|
33
|
+
duration
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AudioPlayer({ src, title, artwork, durationMs, className, ...props }) {
|
|
39
|
+
const audioRef = useRef(null);
|
|
40
|
+
const [playback, setPlayback] = useState({
|
|
41
|
+
src,
|
|
42
|
+
currentTime: 0,
|
|
43
|
+
playing: false,
|
|
44
|
+
hasError: false
|
|
45
|
+
});
|
|
46
|
+
const { duration, setDurationFromMetadata } = useMediaDuration(audioRef, src, durationMs);
|
|
47
|
+
const { currentTime, playing, hasError } = playback.src === src ? playback : {
|
|
48
|
+
src,
|
|
49
|
+
currentTime: 0,
|
|
50
|
+
playing: false,
|
|
51
|
+
hasError: false
|
|
52
|
+
};
|
|
53
|
+
const update = (patch) => setPlayback((current) => ({
|
|
54
|
+
...current.src === src ? current : {
|
|
55
|
+
src,
|
|
56
|
+
currentTime: 0,
|
|
57
|
+
playing: false,
|
|
58
|
+
hasError: false
|
|
59
|
+
},
|
|
60
|
+
...patch
|
|
61
|
+
}));
|
|
62
|
+
const displayTitle = title ?? "Audio";
|
|
63
|
+
const playbackLabel = title ? ` ${title}` : " audio";
|
|
64
|
+
const durationLabel = duration === void 0 ? "--:--" : formatDuration(duration);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (audioRef.current?.error) setPlayback({
|
|
67
|
+
src,
|
|
68
|
+
currentTime: 0,
|
|
69
|
+
playing: false,
|
|
70
|
+
hasError: true
|
|
71
|
+
});
|
|
72
|
+
}, [src]);
|
|
73
|
+
const togglePlayback = () => {
|
|
74
|
+
const audio = audioRef.current;
|
|
75
|
+
if (!audio || hasError) return;
|
|
76
|
+
if (playing) {
|
|
77
|
+
audio.pause();
|
|
78
|
+
update({ playing: false });
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
audio.play().then(() => update({ playing: true }), () => update(audio.error ? {
|
|
82
|
+
hasError: true,
|
|
83
|
+
playing: false
|
|
84
|
+
} : { playing: false }));
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
87
|
+
"data-slot": "audio-player",
|
|
88
|
+
className: cn(paper, "flex w-full max-w-md items-center gap-3 rounded-2xl p-3", className),
|
|
89
|
+
...props,
|
|
90
|
+
children: [
|
|
91
|
+
artwork ? /* @__PURE__ */ jsx("img", {
|
|
92
|
+
src: artwork,
|
|
93
|
+
alt: "",
|
|
94
|
+
className: "size-10 shrink-0 rounded-lg object-cover"
|
|
95
|
+
}) : null,
|
|
96
|
+
/* @__PURE__ */ jsx("button", {
|
|
97
|
+
type: "button",
|
|
98
|
+
"aria-label": `${playing ? "Pause" : "Play"}${playbackLabel}`,
|
|
99
|
+
disabled: hasError,
|
|
100
|
+
onClick: togglePlayback,
|
|
101
|
+
className: cn(inkButton, "flex size-9 shrink-0 items-center justify-center rounded-full disabled:cursor-default disabled:opacity-40"),
|
|
102
|
+
children: playing ? /* @__PURE__ */ jsx(PauseIcon, {
|
|
103
|
+
"aria-hidden": true,
|
|
104
|
+
className: "size-4"
|
|
105
|
+
}) : /* @__PURE__ */ jsx(PlayIcon, {
|
|
106
|
+
"aria-hidden": true,
|
|
107
|
+
className: "ml-0.5 size-4"
|
|
108
|
+
})
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ jsxs("div", {
|
|
111
|
+
className: "flex min-w-0 flex-1 flex-col gap-1.5",
|
|
112
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
113
|
+
className: "truncate text-[13.5px] font-medium",
|
|
114
|
+
children: displayTitle
|
|
115
|
+
}), /* @__PURE__ */ jsx("input", {
|
|
116
|
+
type: "range",
|
|
117
|
+
min: 0,
|
|
118
|
+
max: duration ?? 0,
|
|
119
|
+
step: .1,
|
|
120
|
+
value: Math.min(currentTime, duration ?? 0),
|
|
121
|
+
"aria-label": "Seek",
|
|
122
|
+
"aria-valuetext": `${formatDuration(currentTime)} of ${durationLabel}`,
|
|
123
|
+
disabled: hasError,
|
|
124
|
+
onChange: (event) => {
|
|
125
|
+
const nextTime = Number(event.currentTarget.value);
|
|
126
|
+
if (!Number.isFinite(nextTime)) return;
|
|
127
|
+
const resolvedTime = Math.min(nextTime, duration ?? nextTime);
|
|
128
|
+
if (audioRef.current) audioRef.current.currentTime = resolvedTime;
|
|
129
|
+
update({ currentTime: resolvedTime });
|
|
130
|
+
},
|
|
131
|
+
className: "accent-foreground w-full cursor-pointer disabled:cursor-default"
|
|
132
|
+
})]
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ jsxs("span", {
|
|
135
|
+
className: cn(mono, "text-muted-foreground shrink-0 tabular-nums"),
|
|
136
|
+
children: [
|
|
137
|
+
formatDuration(currentTime),
|
|
138
|
+
" / ",
|
|
139
|
+
durationLabel
|
|
140
|
+
]
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ jsx("audio", {
|
|
143
|
+
ref: audioRef,
|
|
144
|
+
src,
|
|
145
|
+
preload: "metadata",
|
|
146
|
+
className: "hidden",
|
|
147
|
+
onLoadedMetadata: (event) => {
|
|
148
|
+
setDurationFromMetadata(event.currentTarget.duration);
|
|
149
|
+
},
|
|
150
|
+
onTimeUpdate: (event) => update({ currentTime: event.currentTarget.currentTime }),
|
|
151
|
+
onPlay: () => update({ playing: true }),
|
|
152
|
+
onPause: () => update({ playing: false }),
|
|
153
|
+
onError: () => update({
|
|
154
|
+
hasError: true,
|
|
155
|
+
playing: false
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
hasError ? /* @__PURE__ */ jsx("span", {
|
|
159
|
+
role: "alert",
|
|
160
|
+
className: "text-muted-foreground shrink-0 text-xs",
|
|
161
|
+
children: "Can't play this audio"
|
|
162
|
+
}) : null
|
|
163
|
+
]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function VideoPlayer({ src, poster, title, ratio = "16:9", durationMs, className, ...props }) {
|
|
167
|
+
const videoRef = useRef(null);
|
|
168
|
+
const [playback, setPlayback] = useState({
|
|
169
|
+
src,
|
|
170
|
+
currentTime: 0,
|
|
171
|
+
playing: false,
|
|
172
|
+
hasError: false
|
|
173
|
+
});
|
|
174
|
+
const { duration, setDurationFromMetadata } = useMediaDuration(videoRef, src, durationMs);
|
|
175
|
+
const { currentTime, playing, hasError } = playback.src === src ? playback : {
|
|
176
|
+
src,
|
|
177
|
+
currentTime: 0,
|
|
178
|
+
playing: false,
|
|
179
|
+
hasError: false
|
|
180
|
+
};
|
|
181
|
+
const update = (patch) => setPlayback((current) => ({
|
|
182
|
+
...current.src === src ? current : {
|
|
183
|
+
src,
|
|
184
|
+
currentTime: 0,
|
|
185
|
+
playing: false,
|
|
186
|
+
hasError: false
|
|
187
|
+
},
|
|
188
|
+
...patch
|
|
189
|
+
}));
|
|
190
|
+
const displayTitle = title ?? "Video";
|
|
191
|
+
const durationLabel = duration === void 0 ? "--:--" : formatDuration(duration);
|
|
192
|
+
const ratioClassName = ratio === "1:1" ? "aspect-square" : ratio === "4:3" ? "aspect-[4/3]" : ratio === "16:9" ? "aspect-video" : ratio === "9:16" ? "aspect-[9/16]" : void 0;
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
if (videoRef.current?.error) setPlayback({
|
|
195
|
+
src,
|
|
196
|
+
currentTime: 0,
|
|
197
|
+
playing: false,
|
|
198
|
+
hasError: true
|
|
199
|
+
});
|
|
200
|
+
}, [src]);
|
|
201
|
+
const togglePlayback = () => {
|
|
202
|
+
const video = videoRef.current;
|
|
203
|
+
if (!video || hasError) return;
|
|
204
|
+
if (playing) {
|
|
205
|
+
video.pause();
|
|
206
|
+
update({ playing: false });
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
video.play().then(() => update({ playing: true }), () => update(video.error ? {
|
|
210
|
+
hasError: true,
|
|
211
|
+
playing: false
|
|
212
|
+
} : { playing: false }));
|
|
213
|
+
};
|
|
214
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
215
|
+
"data-slot": "video-player",
|
|
216
|
+
className: cn(paper, "flex w-full max-w-xl flex-col gap-2.5 rounded-2xl p-2.5", className),
|
|
217
|
+
...props,
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ jsx("div", {
|
|
220
|
+
className: cn(field, "overflow-hidden rounded-xl", ratioClassName),
|
|
221
|
+
children: /* @__PURE__ */ jsx("video", {
|
|
222
|
+
ref: videoRef,
|
|
223
|
+
src,
|
|
224
|
+
poster,
|
|
225
|
+
playsInline: true,
|
|
226
|
+
preload: "metadata",
|
|
227
|
+
"aria-label": displayTitle,
|
|
228
|
+
className: cn("block max-w-full", ratio !== "auto" && "h-full w-full object-contain"),
|
|
229
|
+
onLoadedMetadata: (event) => {
|
|
230
|
+
setDurationFromMetadata(event.currentTarget.duration);
|
|
231
|
+
},
|
|
232
|
+
onTimeUpdate: (event) => update({ currentTime: event.currentTarget.currentTime }),
|
|
233
|
+
onPlay: () => update({ playing: true }),
|
|
234
|
+
onPause: () => update({ playing: false }),
|
|
235
|
+
onError: () => update({
|
|
236
|
+
hasError: true,
|
|
237
|
+
playing: false
|
|
238
|
+
})
|
|
239
|
+
})
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ jsxs("div", {
|
|
242
|
+
className: "flex items-center gap-3 px-1",
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ jsx("button", {
|
|
245
|
+
type: "button",
|
|
246
|
+
"aria-label": `${playing ? "Pause" : "Play"} ${displayTitle}`,
|
|
247
|
+
disabled: hasError,
|
|
248
|
+
onClick: togglePlayback,
|
|
249
|
+
className: cn(inkButton, "flex size-8 shrink-0 items-center justify-center rounded-full disabled:cursor-default disabled:opacity-40"),
|
|
250
|
+
children: playing ? /* @__PURE__ */ jsx(PauseIcon, {
|
|
251
|
+
"aria-hidden": true,
|
|
252
|
+
className: "size-3.5"
|
|
253
|
+
}) : /* @__PURE__ */ jsx(PlayIcon, {
|
|
254
|
+
"aria-hidden": true,
|
|
255
|
+
className: "ml-0.5 size-3.5"
|
|
256
|
+
})
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ jsx("input", {
|
|
259
|
+
type: "range",
|
|
260
|
+
min: 0,
|
|
261
|
+
max: duration ?? 0,
|
|
262
|
+
step: .1,
|
|
263
|
+
value: Math.min(currentTime, duration ?? 0),
|
|
264
|
+
"aria-label": "Seek",
|
|
265
|
+
"aria-valuetext": `${formatDuration(currentTime)} of ${durationLabel}`,
|
|
266
|
+
disabled: hasError,
|
|
267
|
+
onChange: (event) => {
|
|
268
|
+
const nextTime = Number(event.currentTarget.value);
|
|
269
|
+
if (!Number.isFinite(nextTime)) return;
|
|
270
|
+
const resolvedTime = Math.min(nextTime, duration ?? nextTime);
|
|
271
|
+
if (videoRef.current) videoRef.current.currentTime = resolvedTime;
|
|
272
|
+
update({ currentTime: resolvedTime });
|
|
273
|
+
},
|
|
274
|
+
className: "accent-foreground w-full cursor-pointer disabled:cursor-default"
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ jsxs("span", {
|
|
277
|
+
className: cn(mono, "text-muted-foreground shrink-0 tabular-nums"),
|
|
278
|
+
children: [
|
|
279
|
+
formatDuration(currentTime),
|
|
280
|
+
" / ",
|
|
281
|
+
durationLabel
|
|
282
|
+
]
|
|
283
|
+
}),
|
|
284
|
+
hasError ? /* @__PURE__ */ jsx("span", {
|
|
285
|
+
role: "alert",
|
|
286
|
+
className: "text-muted-foreground shrink-0 text-xs",
|
|
287
|
+
children: "Can't play this video"
|
|
288
|
+
}) : null
|
|
289
|
+
]
|
|
290
|
+
}),
|
|
291
|
+
title ? /* @__PURE__ */ jsx("div", {
|
|
292
|
+
className: "min-w-0 px-1 pb-0.5",
|
|
293
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
294
|
+
className: "truncate text-[13.5px] font-medium",
|
|
295
|
+
children: title
|
|
296
|
+
})
|
|
297
|
+
}) : null
|
|
298
|
+
]
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
export { AudioPlayer, VideoPlayer, media_player_exports };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
declare namespace memory_chips_d_exports {
|
|
3
|
+
export { MemoryChange, MemoryChip, MemoryChips };
|
|
4
|
+
}
|
|
5
|
+
export type MemoryChange = "added" | "updated" | "existing";
|
|
6
|
+
export interface MemoryChip {
|
|
7
|
+
id: string;
|
|
8
|
+
text: string;
|
|
9
|
+
change: MemoryChange;
|
|
10
|
+
}
|
|
11
|
+
export declare function MemoryChips({ chips, onForget, className, ...props }: Omit<ComponentProps<"div">, "children" | "chips" | "onForget"> & {
|
|
12
|
+
chips: readonly MemoryChip[];
|
|
13
|
+
onForget?: (id: string) => void;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { memory_chips_d_exports };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cn } from "../../../lib/utils.js";
|
|
4
|
+
import { field, mono } from "./surfaces.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { BrainIcon, XIcon } from "lucide-react";
|
|
7
|
+
//#region src/components/assistant-ui/elements/memory-chips.tsx
|
|
8
|
+
var memory_chips_exports = /* @__PURE__ */ __exportAll({ MemoryChips: () => MemoryChips });
|
|
9
|
+
function MemoryChips({ chips, onForget, className, ...props }) {
|
|
10
|
+
const fresh = chips.filter((chip) => chip.change !== "existing").length;
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
+
"data-slot": "memory-chips",
|
|
13
|
+
className: cn("flex w-full max-w-sm flex-col gap-2", className),
|
|
14
|
+
...props,
|
|
15
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
16
|
+
className: "flex items-center gap-1.5",
|
|
17
|
+
children: [/* @__PURE__ */ jsx(BrainIcon, { className: "text-muted-foreground size-3.5" }), /* @__PURE__ */ jsx("span", {
|
|
18
|
+
className: cn(mono, "text-muted-foreground"),
|
|
19
|
+
children: fresh > 0 ? `remembered ${fresh}` : "memory"
|
|
20
|
+
})]
|
|
21
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: "flex flex-wrap gap-1.5",
|
|
23
|
+
children: chips.map((chip) => /* @__PURE__ */ jsxs("span", {
|
|
24
|
+
className: cn("fade-in zoom-in-95 animate-in fill-mode-both group flex items-center gap-1 rounded-full py-1 pl-2.5 text-xs duration-300", onForget ? "pr-1" : "pr-2.5", chip.change === "existing" ? cn(field, "text-muted-foreground") : "bg-foreground/[0.07] text-foreground dark:bg-foreground/[0.1]"),
|
|
25
|
+
children: [
|
|
26
|
+
chip.change !== "existing" && /* @__PURE__ */ jsx("span", {
|
|
27
|
+
"aria-hidden": true,
|
|
28
|
+
className: "bg-foreground/70 size-1.5 shrink-0 rounded-full"
|
|
29
|
+
}),
|
|
30
|
+
chip.text,
|
|
31
|
+
onForget && /* @__PURE__ */ jsx("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
"aria-label": `Forget "${chip.text}"`,
|
|
34
|
+
onClick: () => onForget(chip.id),
|
|
35
|
+
className: cn("flex items-center justify-center rounded-full text-muted-foreground outline-none transition-[background-color,color,scale] duration-150 hover:bg-foreground/[0.06] hover:text-foreground/90 active:scale-[0.96] focus-visible:ring-1 focus-visible:ring-foreground/20 motion-reduce:transition-none dark:hover:bg-foreground/[0.09]", "size-4"),
|
|
36
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-2.5" })
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
}, chip.id))
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { MemoryChips, memory_chips_exports };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MermaidZoom } from "./mermaid-diagram.js";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
import { SyntaxHighlighterProps } from "@assistant-ui/react-markdown";
|
|
4
|
+
declare namespace mermaid_diagram_aui_d_exports {
|
|
5
|
+
export { MermaidDiagram, MermaidDiagramProps, MermaidZoom };
|
|
6
|
+
}
|
|
7
|
+
export type MermaidDiagramProps = SyntaxHighlighterProps & {
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const MermaidDiagram: FC<MermaidDiagramProps> & {
|
|
11
|
+
Zoom: typeof MermaidZoom;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { MermaidDiagram, MermaidZoom, mermaid_diagram_aui_d_exports };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { MermaidDiagram as MermaidDiagram$1, MermaidZoom } from "./mermaid-diagram.js";
|
|
4
|
+
import { memo } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useAuiState } from "@assistant-ui/react";
|
|
7
|
+
//#region src/components/assistant-ui/elements/mermaid-diagram.aui.tsx
|
|
8
|
+
var mermaid_diagram_aui_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
MermaidDiagram: () => MermaidDiagram,
|
|
10
|
+
MermaidZoom: () => MermaidZoom
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Use it by passing to `componentsByLanguage` for mermaid in `markdown-text.tsx`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const MarkdownTextImpl = () => {
|
|
17
|
+
* return (
|
|
18
|
+
* <MarkdownTextPrimitive
|
|
19
|
+
* remarkPlugins={[remarkGfm]}
|
|
20
|
+
* className="aui-md"
|
|
21
|
+
* components={defaultComponents}
|
|
22
|
+
* componentsByLanguage={{
|
|
23
|
+
* mermaid: {
|
|
24
|
+
* SyntaxHighlighter: MermaidDiagram
|
|
25
|
+
* },
|
|
26
|
+
* }}
|
|
27
|
+
* />
|
|
28
|
+
* );
|
|
29
|
+
* };
|
|
30
|
+
*/
|
|
31
|
+
const MermaidDiagramImpl = ({ code, className, node: _node, components: _components, language: _language }) => {
|
|
32
|
+
const isStreaming = useAuiState((s) => s.optional.part?.status.type === "running");
|
|
33
|
+
return /* @__PURE__ */ jsx(MermaidDiagram$1, {
|
|
34
|
+
code,
|
|
35
|
+
...className !== void 0 ? { className } : {},
|
|
36
|
+
streaming: isStreaming
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const MermaidDiagram = memo(MermaidDiagramImpl);
|
|
40
|
+
MermaidDiagram.displayName = "MermaidDiagram";
|
|
41
|
+
MermaidDiagram.Zoom = MermaidZoom;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { MermaidDiagram, MermaidZoom, mermaid_diagram_aui_exports };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
declare namespace mermaid_diagram_d_exports {
|
|
3
|
+
export { MermaidDiagram, MermaidDiagramProps, MermaidZoom };
|
|
4
|
+
}
|
|
5
|
+
export type MermaidDiagramProps = {
|
|
6
|
+
code: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Renders a skeleton instead of the diagram while `true`. */
|
|
9
|
+
streaming?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type MermaidZoomProps = {
|
|
12
|
+
svg: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
declare function MermaidZoom({ svg, children }: MermaidZoomProps): import("react").JSX.Element;
|
|
16
|
+
declare const MermaidDiagram: FC<MermaidDiagramProps> & {
|
|
17
|
+
Zoom: typeof MermaidZoom;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { MermaidDiagram, MermaidZoom, mermaid_diagram_d_exports };
|