sparkdesign 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -111
- package/dist/_basePickBy-DnQN8w3y.js +151 -0
- package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
- package/dist/_baseUniq-B-N2NQ50.js +614 -0
- package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
- package/dist/arc-BQBhijZ6.js +83 -0
- package/dist/arc-mWQt0Yph.cjs +1 -0
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
- package/dist/channel-BQn0o8bs.js +5 -0
- package/dist/channel-DaN7XniJ.cjs +1 -0
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
- package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
- package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
- package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
- package/dist/clone-Cde_NQ8V.js +8 -0
- package/dist/clone-DCNjWuM2.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
- package/dist/graph-DIbblrZP.cjs +1 -0
- package/dist/graph-DPcK91G3.js +247 -0
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
- package/dist/katex.css +1 -0
- package/dist/layout-Byuh8f-J.cjs +1 -0
- package/dist/layout-CdLdvj1j.js +1335 -0
- package/dist/linear-C2Q_PI9B.js +259 -0
- package/dist/linear-C69aPBW1.cjs +1 -0
- package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
- package/dist/mermaid.core-gFR0XUlD.js +15300 -0
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
- package/dist/qoder-design.css +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
- package/dist/registry/basic/alert-dialog.d.ts +40 -0
- package/dist/registry/basic/avatar.d.ts +30 -0
- package/dist/registry/basic/button.d.ts +16 -0
- package/dist/registry/basic/collapse.d.ts +22 -0
- package/dist/registry/basic/collapsible-card.d.ts +34 -0
- package/dist/registry/basic/collapsible.d.ts +15 -0
- package/dist/registry/basic/dropdown-menu.d.ts +52 -0
- package/dist/registry/basic/icon-button.d.ts +12 -0
- package/dist/registry/basic/icons-inline.d.ts +51 -0
- package/dist/registry/basic/kbd.d.ts +23 -0
- package/dist/registry/basic/option-list.d.ts +16 -0
- package/dist/registry/basic/pagination.d.ts +33 -0
- package/dist/registry/basic/progress.d.ts +18 -0
- package/dist/registry/basic/radio-group.d.ts +25 -0
- package/dist/registry/basic/resizable.d.ts +318 -0
- package/dist/registry/basic/scrollbar.d.ts +12 -0
- package/dist/registry/basic/select.d.ts +35 -0
- package/dist/registry/basic/shimmering-text.d.ts +27 -0
- package/dist/registry/basic/sidebar-menu.d.ts +23 -0
- package/dist/registry/basic/skeleton.d.ts +10 -0
- package/dist/registry/basic/slider.d.ts +16 -0
- package/dist/registry/basic/sonner.d.ts +23 -0
- package/dist/registry/basic/spinner.d.ts +5 -0
- package/dist/registry/basic/switch.d.ts +20 -0
- package/dist/registry/basic/table.d.ts +18 -0
- package/dist/registry/basic/tabs.d.ts +29 -0
- package/dist/registry/basic/tag.d.ts +23 -0
- package/dist/registry/basic/theme-from-document.d.ts +10 -0
- package/dist/registry/basic/toggle.d.ts +29 -0
- package/dist/registry/basic/tooltip.d.ts +34 -0
- package/dist/registry/basic/typography.d.ts +76 -0
- package/dist/registry/chat/ask-user-part.d.ts +24 -0
- package/dist/registry/chat/browser-action-part.d.ts +28 -0
- package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
- package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
- package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
- package/dist/registry/chat/chat-input/compound.d.ts +97 -0
- package/dist/registry/chat/chat-input/context.d.ts +64 -0
- package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
- package/dist/registry/chat/chat-input/index.d.ts +34 -0
- package/dist/registry/chat/chat-input/types.d.ts +79 -0
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
- package/dist/registry/chat/code-block-part.d.ts +23 -0
- package/dist/registry/chat/file-attachment.d.ts +19 -0
- package/dist/registry/chat/file-card.d.ts +10 -0
- package/dist/registry/chat/file-review-part.d.ts +30 -0
- package/dist/registry/chat/folder-button.d.ts +20 -0
- package/dist/registry/chat/generated-images-grid.d.ts +15 -0
- package/dist/registry/chat/generation-status-bar.d.ts +19 -0
- package/dist/registry/chat/hint-banner.d.ts +28 -0
- package/dist/registry/chat/image-attachment.d.ts +19 -0
- package/dist/registry/chat/image-generating.d.ts +15 -0
- package/dist/registry/chat/markdown.d.ts +8 -0
- package/dist/registry/chat/mermaid-part.d.ts +17 -0
- package/dist/registry/chat/permission-card.d.ts +24 -0
- package/dist/registry/chat/plan-part.d.ts +30 -0
- package/dist/registry/chat/queue-indicator.d.ts +27 -0
- package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
- package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
- package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
- package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
- package/dist/registry/chat/related-prompts.d.ts +23 -0
- package/dist/registry/chat/response/compound.d.ts +25 -0
- package/dist/registry/chat/response/context.d.ts +9 -0
- package/dist/registry/chat/response/index.d.ts +15 -0
- package/dist/registry/chat/response/types.d.ts +99 -0
- package/dist/registry/chat/send-button.d.ts +17 -0
- package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
- package/dist/registry/chat/task-part.d.ts +28 -0
- package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
- package/dist/registry/chat/thinking-indicator.d.ts +14 -0
- package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
- package/dist/registry/chat/user-message.d.ts +6 -0
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
- package/dist/registry/chat/user-question/compound.d.ts +37 -0
- package/dist/registry/chat/user-question/context.d.ts +55 -0
- package/dist/registry/chat/user-question/index.d.ts +15 -0
- package/dist/registry/chat/user-question/types.d.ts +52 -0
- package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
- package/dist/registry/chat/user-question-answer.d.ts +13 -0
- package/dist/registry/lib/file-icon-maps.d.ts +20 -0
- package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
- package/dist/registry/lib/utils.d.ts +11 -0
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
- package/dist/scale/computed.css +103 -0
- package/dist/scale/config.css +110 -0
- package/dist/scale/index.css +30 -0
- package/dist/scale/presets/compact.css +30 -0
- package/dist/scale/presets/dense.css +64 -0
- package/dist/scale/presets/sharp.css +40 -0
- package/dist/scale/presets/soft.css +16 -0
- package/dist/scale.css +13 -0
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
- package/dist/spark-design.cjs.js +265 -0
- package/dist/spark-design.es.js +13486 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
- package/dist/src/components/basic/Avatar/index.d.ts +7 -0
- package/dist/src/components/basic/Button/index.d.ts +7 -0
- package/dist/src/components/basic/Collapse/index.d.ts +15 -0
- package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
- package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
- package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
- package/dist/src/components/basic/IconButton/index.d.ts +7 -0
- package/dist/src/components/basic/Kbd/index.d.ts +7 -0
- package/dist/src/components/basic/OptionList/index.d.ts +7 -0
- package/dist/src/components/basic/Pagination/index.d.ts +7 -0
- package/dist/src/components/basic/Progress/index.d.ts +7 -0
- package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
- package/dist/src/components/basic/Resizable/index.d.ts +7 -0
- package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
- package/dist/src/components/basic/Select/index.d.ts +17 -0
- package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
- package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
- package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
- package/dist/src/components/basic/Slider/index.d.ts +7 -0
- package/dist/src/components/basic/Spinner/index.d.ts +7 -0
- package/dist/src/components/basic/Switch/index.d.ts +38 -0
- package/dist/src/components/basic/Table/index.d.ts +7 -0
- package/dist/src/components/basic/Tabs/index.d.ts +7 -0
- package/dist/src/components/basic/Tag/index.d.ts +10 -0
- package/dist/src/components/basic/Toast/index.d.ts +12 -0
- package/dist/src/components/basic/Toggle/index.d.ts +7 -0
- package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
- package/dist/src/components/basic/Typography/index.d.ts +7 -0
- package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
- package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
- package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
- package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
- package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/FileCard/index.d.ts +3 -0
- package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
- package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
- package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
- package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
- package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
- package/dist/src/components/chat/Markdown/index.d.ts +7 -0
- package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
- package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
- package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
- package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
- package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
- package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
- package/dist/src/components/chat/Response/index.d.ts +16 -0
- package/dist/src/components/chat/SendButton/index.d.ts +5 -0
- package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
- package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
- package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
- package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
- package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
- package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
- package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
- package/dist/src/components/index.d.ts +138 -0
- package/dist/src/icons/context.d.ts +26 -0
- package/dist/src/icons/types.d.ts +18 -0
- package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
- package/dist/src/lib/file-icon.d.ts +16 -0
- package/dist/src/lib/i18n.d.ts +12 -0
- package/dist/src/lib/index.d.ts +10 -0
- package/dist/src/lib/motion.d.ts +22 -0
- package/dist/src/lib/utils.d.ts +11 -0
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
- package/dist/theme-base.css +270 -0
- package/dist/theme.css +17 -0
- package/dist/themes/dark-parchment.css +133 -0
- package/dist/themes/dark-qoder.css +133 -0
- package/dist/themes/light-parchment.css +124 -0
- package/dist/themes/light-qoder.css +132 -0
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
- package/dist/tokens/CLAUDE.md +305 -0
- package/dist/tokens/index.css +35 -0
- package/dist/tokens/scale/computed.css +103 -0
- package/dist/tokens/scale/config.css +110 -0
- package/dist/tokens/scale/index.css +30 -0
- package/dist/tokens/scale/presets/compact.css +30 -0
- package/dist/tokens/scale/presets/dense.css +64 -0
- package/dist/tokens/scale/presets/sharp.css +40 -0
- package/dist/tokens/scale/presets/soft.css +16 -0
- package/dist/tokens/scale.css +13 -0
- package/dist/tokens/scrollbar-utility.css +35 -0
- package/dist/tokens/theme-base.css +270 -0
- package/dist/tokens/theme.css +17 -0
- package/dist/tokens/themes/dark-parchment.css +133 -0
- package/dist/tokens/themes/dark-qoder.css +133 -0
- package/dist/tokens/themes/light-parchment.css +124 -0
- package/dist/tokens/themes/light-qoder.css +132 -0
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
- package/package.json +128 -19
- /package/{dist → cli/dist}/commands/add.js +0 -0
- /package/{dist → cli/dist}/commands/diff.js +0 -0
- /package/{dist → cli/dist}/commands/init.js +0 -0
- /package/{dist → cli/dist}/commands/list.js +0 -0
- /package/{dist → cli/dist}/index.js +0 -0
- /package/{dist → cli/dist}/utils/config.js +0 -0
- /package/{dist → cli/dist}/utils/registry.js +0 -0
- /package/{dist → cli/dist}/utils/tokens.js +0 -0
- /package/{dist → cli/dist}/utils/transform.js +0 -0
- /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
- /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
- /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
- /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
- /package/{registry → cli/registry}/basic/button.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
- /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
- /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
- /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
- /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
- /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
- /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
- /package/{registry → cli/registry}/basic/progress.tsx +0 -0
- /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
- /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
- /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
- /package/{registry → cli/registry}/basic/select.tsx +0 -0
- /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
- /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
- /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
- /package/{registry → cli/registry}/basic/slider.tsx +0 -0
- /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
- /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
- /package/{registry → cli/registry}/basic/switch.tsx +0 -0
- /package/{registry → cli/registry}/basic/table.tsx +0 -0
- /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
- /package/{registry → cli/registry}/basic/tag.tsx +0 -0
- /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
- /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
- /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
- /package/{registry → cli/registry}/basic/typography.tsx +0 -0
- /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
- /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
- /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
- /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
- /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
- /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
- /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
- /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
- /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/response/types.ts +0 -0
- /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
- /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
- /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
- /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
- /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
- /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
- /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
- /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
- /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
- /package/{registry → cli/registry}/lib/utils.ts +0 -0
- /package/{registry → cli/registry}/meta.json +0 -0
- /package/{registry → cli/registry}/tokens/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
- /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
- /package/{registry → cli/registry}/tokens/scale.css +0 -0
- /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
- /package/{registry → cli/registry}/tokens/theme.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
- /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (HintBannerProps) - 提示横幅
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: registry/chat - 唯一来源,主库再导出并注入图标
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export interface HintBannerProps {
|
|
8
|
+
type?: 'wiki' | 'credits';
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
highlightText?: string;
|
|
12
|
+
language?: string;
|
|
13
|
+
rechargeText?: string;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
onGenerate?: () => void;
|
|
16
|
+
onRecharge?: () => void;
|
|
17
|
+
onLanguageChange?: (language: string) => void;
|
|
18
|
+
closeIcon?: ReactNode;
|
|
19
|
+
arrowDownSIcon?: ReactNode;
|
|
20
|
+
suggestionIcon?: ReactNode;
|
|
21
|
+
/** 供 Portal 浮层继承(与 ChatInput FolderButton 一致),不传则由 dropdown-menu 使用 getThemeFromDocument() 兜底 */
|
|
22
|
+
dataStyle?: string;
|
|
23
|
+
dataTheme?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function HintBanner({ type, title, description, highlightText, language, rechargeText, onClose, onGenerate, onRecharge, onLanguageChange, closeIcon, arrowDownSIcon, suggestionIcon, dataStyle, dataTheme, }: HintBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace HintBanner {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
declare const SIZE_CLASS: {
|
|
4
|
+
readonly sm: "w-12 h-12";
|
|
5
|
+
readonly md: "w-16 h-16";
|
|
6
|
+
readonly lg: "w-20 h-20";
|
|
7
|
+
};
|
|
8
|
+
export interface ImageAttachmentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
9
|
+
src: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
onRemove?: (e: React.MouseEvent) => void;
|
|
12
|
+
previewable?: boolean;
|
|
13
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
14
|
+
size?: keyof typeof SIZE_CLASS;
|
|
15
|
+
closeIcon?: ReactNode;
|
|
16
|
+
closeLargeIcon?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const ImageAttachment: import("react").ForwardRefExoticComponent<ImageAttachmentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ImageGeneratingProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
width?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
speed?: number;
|
|
6
|
+
caption?: string;
|
|
7
|
+
captionClassName?: string;
|
|
8
|
+
showOverlay?: boolean;
|
|
9
|
+
overlayText?: string;
|
|
10
|
+
sparklingIcon?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function ImageGenerating({ width, height, speed, caption, captionClassName, className, style: styleProp, showOverlay, overlayText, sparklingIcon, ...props }: ImageGeneratingProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace ImageGenerating {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MarkdownBodyProps {
|
|
2
|
+
children: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function MarkdownBody({ children, className }: MarkdownBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace MarkdownBody {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (MermaidPartProps) - content (Mermaid 源码);可选 headerIcon,未指定则用内联 SVG
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: registry/chat - 从 QodeChatPanel 移植,全 token 化;mermaid 动态 import,未安装时降级提示
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactNode } from 'react';
|
|
7
|
+
export interface MermaidPartProps {
|
|
8
|
+
content?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
headerIcon?: ReactNode;
|
|
11
|
+
/** 布局风格,与 data-style 一致(如 soft/neutral/sharp),用于图表节点圆角等;不传则从 document 读取 */
|
|
12
|
+
dataStyle?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function MermaidPart({ content, className, headerIcon, dataStyle }: MermaidPartProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace MermaidPart {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface PermissionCardAction extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PermissionCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
command: string;
|
|
10
|
+
commandIntent?: string;
|
|
11
|
+
isLoadingIntent?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
actions?: {
|
|
14
|
+
deny?: PermissionCardAction;
|
|
15
|
+
allowOnce?: PermissionCardAction;
|
|
16
|
+
};
|
|
17
|
+
closeIcon?: ReactNode;
|
|
18
|
+
warningIcon?: ReactNode;
|
|
19
|
+
/** 主库 i18n:展开/折叠按钮文案 */
|
|
20
|
+
expandLabel?: string;
|
|
21
|
+
collapseLabel?: string;
|
|
22
|
+
commaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const PermissionCard: import("react").ForwardRefExoticComponent<PermissionCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (PlanPartProps) - title、description、content、View/Build/Built;可选 headerIcon/downloadIcon/builtIcon,未指定则用内联 SVG
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: registry/chat - 从 QodeChatPanel 移植,全 token 化
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export interface PlanPartProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
content: string;
|
|
11
|
+
viewText?: string;
|
|
12
|
+
buildText?: string;
|
|
13
|
+
builtText?: string;
|
|
14
|
+
isBuilt?: boolean;
|
|
15
|
+
isGenerating?: boolean;
|
|
16
|
+
onView?: () => void;
|
|
17
|
+
onBuild?: () => void;
|
|
18
|
+
onDownload?: () => void;
|
|
19
|
+
defaultExpanded?: boolean;
|
|
20
|
+
contentMaxHeight?: number;
|
|
21
|
+
collapsible?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
headerIcon?: ReactNode;
|
|
24
|
+
downloadIcon?: ReactNode;
|
|
25
|
+
builtIcon?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare function PlanPart({ title, description, content, viewText, buildText, builtText, isBuilt, isGenerating, onView, onBuild, onDownload, defaultExpanded, contentMaxHeight, collapsible, className, headerIcon, downloadIcon, builtIcon, }: PlanPartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace PlanPart {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface QueueIndicatorItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
attachmentCount?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface QueueIndicatorLabels {
|
|
8
|
+
title?: string;
|
|
9
|
+
sendNowTip?: string;
|
|
10
|
+
removeTip?: string;
|
|
11
|
+
fileLabel?: string;
|
|
12
|
+
filesLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface QueueIndicatorProps {
|
|
15
|
+
items: QueueIndicatorItem[];
|
|
16
|
+
onRemoveItem?: (itemId: string) => void;
|
|
17
|
+
onSendNow?: (itemId: string) => void;
|
|
18
|
+
isStreaming?: boolean;
|
|
19
|
+
hasStatusCardBelow?: boolean;
|
|
20
|
+
labels?: QueueIndicatorLabels;
|
|
21
|
+
defaultExpanded?: boolean;
|
|
22
|
+
storageKey?: string;
|
|
23
|
+
arrowUpIcon?: ReactNode;
|
|
24
|
+
closeIcon?: ReactNode;
|
|
25
|
+
arrowDownSIcon?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare const QueueIndicator: import("react").NamedExoticComponent<QueueIndicatorProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReasoningStepHeaderProps, ReasoningStepDetailsProps, ReasoningStepDetailRowProps } from './types';
|
|
2
|
+
export declare function ReasoningStepHeader({ className }: ReasoningStepHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace ReasoningStepHeader {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ReasoningStepDetailRow({ detail, depth, pathKey, }: ReasoningStepDetailRowProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace ReasoningStepDetailRow {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ReasoningStepDetails({ className, children }: ReasoningStepDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace ReasoningStepDetails {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ReasoningStepDefaultLayout(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace ReasoningStepDefaultLayout {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReasoningStepContextValue, ReasoningStepRootProps } from './types';
|
|
3
|
+
export declare function useReasoningStepContext(): ReasoningStepContextValue;
|
|
4
|
+
export declare function ReasoningStepRootProvider({ text, description, status, icon, showIcon, details, children, detailsChildren, duration, spread, disableExpandAnimation, defaultExpanded, expanded: expandedProp, onExpandedChange, eyeIcon, arrowRightIcon, }: ReasoningStepRootProps & {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
detailsChildren?: ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare namespace ReasoningStepRootProvider {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: ReasoningStepProps
|
|
3
|
+
* [OUTPUT]: ReasoningStep compound component
|
|
4
|
+
* [POS]: registry/chat/reasoning-step - ReasoningStep 复合组件主入口
|
|
5
|
+
*
|
|
6
|
+
* 设计模式:shadcn 风格复合组件
|
|
7
|
+
* - ReasoningStep = 便捷导出(Root + DefaultLayout)
|
|
8
|
+
* - ReasoningStep.Root/Header/Details/DetailRow = 复合子组件
|
|
9
|
+
*/
|
|
10
|
+
import { useReasoningStepContext } from './context';
|
|
11
|
+
import type { ReasoningStepProps, ReasoningStepCompound, ReasoningStepDetail, ReasoningStepStatus } from './types';
|
|
12
|
+
export declare const ReasoningStep: React.FC<ReasoningStepProps> & ReasoningStepCompound;
|
|
13
|
+
export type { ReasoningStepProps, ReasoningStepDetail, ReasoningStepStatus };
|
|
14
|
+
export { useReasoningStepContext };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: N/A
|
|
3
|
+
* [OUTPUT]: Type definitions for ReasoningStep compound component
|
|
4
|
+
* [POS]: registry/chat/reasoning-step - ReasoningStep 组件类型定义
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export type ReasoningStepDetail = {
|
|
8
|
+
type: 'action';
|
|
9
|
+
action: string;
|
|
10
|
+
desc?: string;
|
|
11
|
+
details?: ReasoningStepDetail[];
|
|
12
|
+
} | {
|
|
13
|
+
type: 'file';
|
|
14
|
+
filename: string;
|
|
15
|
+
lines?: string;
|
|
16
|
+
path?: string;
|
|
17
|
+
fileType?: string;
|
|
18
|
+
details?: ReasoningStepDetail[];
|
|
19
|
+
};
|
|
20
|
+
export type ReasoningStepStatus = 'completed' | 'in-progress';
|
|
21
|
+
export interface ReasoningStepRootProps {
|
|
22
|
+
/** 主文本 */
|
|
23
|
+
text: ReactNode;
|
|
24
|
+
/** 描述文本 */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** 状态 */
|
|
27
|
+
status?: ReasoningStepStatus;
|
|
28
|
+
/** 自定义图标 */
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
/** 是否显示图标 */
|
|
31
|
+
showIcon?: boolean;
|
|
32
|
+
/** 详情数据 */
|
|
33
|
+
details?: ReasoningStepDetail[];
|
|
34
|
+
/** 子组件 */
|
|
35
|
+
children?: ReactNode;
|
|
36
|
+
/** 动画持续时间 */
|
|
37
|
+
duration?: number;
|
|
38
|
+
/** 动画扩散度 */
|
|
39
|
+
spread?: number;
|
|
40
|
+
/** 禁用展开动画 */
|
|
41
|
+
disableExpandAnimation?: boolean;
|
|
42
|
+
/** 默认展开 */
|
|
43
|
+
defaultExpanded?: boolean;
|
|
44
|
+
/** 受控展开状态 */
|
|
45
|
+
expanded?: boolean;
|
|
46
|
+
/** 展开状态变化回调 */
|
|
47
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
48
|
+
/** 自定义眼睛图标 */
|
|
49
|
+
eyeIcon?: ReactNode;
|
|
50
|
+
/** 自定义箭头图标 */
|
|
51
|
+
arrowRightIcon?: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
export type ReasoningStepProps = ReasoningStepRootProps;
|
|
54
|
+
export interface ReasoningStepHeaderProps {
|
|
55
|
+
className?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface ReasoningStepDetailsProps {
|
|
58
|
+
className?: string;
|
|
59
|
+
children?: ReactNode;
|
|
60
|
+
}
|
|
61
|
+
export interface ReasoningStepDetailRowProps {
|
|
62
|
+
detail: ReasoningStepDetail;
|
|
63
|
+
depth?: number;
|
|
64
|
+
pathKey?: string;
|
|
65
|
+
className?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ReasoningStepContextValue {
|
|
68
|
+
status: ReasoningStepStatus;
|
|
69
|
+
isExpanded: boolean;
|
|
70
|
+
isHovered: boolean;
|
|
71
|
+
setIsHovered: (hovered: boolean) => void;
|
|
72
|
+
toggleExpanded: () => void;
|
|
73
|
+
effectiveExpanded: boolean;
|
|
74
|
+
effectiveShowIcon: boolean;
|
|
75
|
+
hasExpandableContent: boolean;
|
|
76
|
+
text: ReactNode;
|
|
77
|
+
description?: string;
|
|
78
|
+
details?: ReasoningStepDetail[];
|
|
79
|
+
detailsChildren?: ReactNode;
|
|
80
|
+
duration: number;
|
|
81
|
+
spread: number;
|
|
82
|
+
disableExpandAnimation: boolean;
|
|
83
|
+
detailIndent: string;
|
|
84
|
+
expandedNestedKeys: Set<string>;
|
|
85
|
+
toggleNested: (pathKey: string) => void;
|
|
86
|
+
icon?: ReactNode;
|
|
87
|
+
eyeIcon: ReactNode;
|
|
88
|
+
arrowRightIcon: ReactNode;
|
|
89
|
+
}
|
|
90
|
+
export interface ReasoningStepCompound {
|
|
91
|
+
Root: React.FC<ReasoningStepRootProps>;
|
|
92
|
+
Header: React.FC<ReasoningStepHeaderProps>;
|
|
93
|
+
Details: React.FC<ReasoningStepDetailsProps>;
|
|
94
|
+
DetailRow: React.FC<ReasoningStepDetailRowProps>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (RelatedPromptsProps) - 推荐 prompt 列表
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 输入框上方的相关推荐 prompt 列表
|
|
4
|
+
* [POS]: registry/chat - 唯一来源,主库可注入 defaultIcon
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export interface RelatedPromptItem {
|
|
8
|
+
text: string;
|
|
9
|
+
prompt: string;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface RelatedPromptsProps {
|
|
13
|
+
items: RelatedPromptItem[];
|
|
14
|
+
onSelect?: (item: RelatedPromptItem) => void;
|
|
15
|
+
singleLineText?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
/** 主库可注入 useIcon('chat3');不传则用 Chat3Line */
|
|
18
|
+
defaultIcon?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function RelatedPrompts({ items, onSelect, singleLineText, className, defaultIcon, }: RelatedPromptsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
export declare namespace RelatedPrompts {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ResponseThinkingProps, ResponseStepsProps, ResponseStepProps, ResponseContentProps, ResponseImageGeneratingProps, ResponseDefaultLayoutProps } from './types';
|
|
2
|
+
export declare function ResponseThinking({ className }: ResponseThinkingProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export declare namespace ResponseThinking {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ResponseSteps({ className, children }: ResponseStepsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace ResponseSteps {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ResponseStepComponent({ step, status }: ResponseStepProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace ResponseStepComponent {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ResponseContent({ markdown, streaming, onStreamComplete, className, }: ResponseContentProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace ResponseContent {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function ResponseImageGenerating({ width, height, className, }: ResponseImageGeneratingProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare namespace ResponseImageGenerating {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function ResponseDefaultLayout({ className }: ResponseDefaultLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare namespace ResponseDefaultLayout {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ResponseContextValue, ResponseRootProps, ResponseRound } from './types';
|
|
2
|
+
declare const DEMO_ROUNDS: ResponseRound[];
|
|
3
|
+
declare const DEMO_FINAL_MD = "## Plan\n\nI will organize your **1,000 local photos** by building an index, clustering them into albums, and then performing a safe rename + move operation.\n\n### Folder structure\n\n```text\nPictures/\n Organized/\n 2026-01-18 \u2014 San Francisco \u2014 Golden Gate Park/\n 2026-01-05 \u2014 Home \u2014 Documents/\n 2025-12-31 \u2014 New Year's Eve/\n _Duplicates/\n _Unsorted/\n```\n\n### Naming scheme\n\n`YYYY-MM-DD_HH-mm-ss__<Location>__<Scene>__<Counter>.<ext>`\n\nExample:\n\n`2026-01-18_15-42-11__San-Francisco__Outdoor__001.jpg`\n\n### Safety checks\n\n- [x] Dry-run all operations\n- [x] Detect collisions and append counters\n- [x] Keep an audit log (CSV)\n- [ ] Execute moves (requires confirmation)\n\n---\n\n## Next step\n\nIf you want, I can generate a **preview report** first (top 50 renames + album summary) before applying changes.\n";
|
|
4
|
+
export declare function useResponseContext(): ResponseContextValue;
|
|
5
|
+
export declare function ResponseRootProvider({ simulate, phase, rounds, finalMarkdown, onSimulateComplete, onStepChange, thinkingIndicator, children, }: ResponseRootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare namespace ResponseRootProvider {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
export { DEMO_ROUNDS, DEMO_FINAL_MD };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: ResponseProps
|
|
3
|
+
* [OUTPUT]: Response compound component
|
|
4
|
+
* [POS]: registry/chat/response - Response 复合组件主入口
|
|
5
|
+
*
|
|
6
|
+
* 设计模式:shadcn 风格复合组件
|
|
7
|
+
* - Response = 便捷导出(Root + DefaultLayout)
|
|
8
|
+
* - Response.Root/Thinking/Steps/Step/Content/ImageGenerating = 复合子组件
|
|
9
|
+
*/
|
|
10
|
+
import type { HTMLAttributes } from 'react';
|
|
11
|
+
import { useResponseContext, DEMO_ROUNDS, DEMO_FINAL_MD } from './context';
|
|
12
|
+
import type { ResponseProps, ResponseCompound, ResponsePhase, ResponseStep, ResponseStepToolType, ResponseRound, ResponseBlock, BlockType } from './types';
|
|
13
|
+
export declare const Response: React.FC<ResponseProps & HTMLAttributes<HTMLDivElement>> & ResponseCompound;
|
|
14
|
+
export type { ResponseProps, ResponsePhase, ResponseStep, ResponseStepToolType, ResponseRound, ResponseBlock, BlockType, ResponseCompound, };
|
|
15
|
+
export { useResponseContext, DEMO_ROUNDS, DEMO_FINAL_MD };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: N/A
|
|
3
|
+
* [OUTPUT]: Type definitions for Response compound component
|
|
4
|
+
* [POS]: registry/chat/response - Response 组件类型定义
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
import type { ReasoningStepDetail } from '../reasoning-step';
|
|
8
|
+
export type ResponsePhase = 'thinking' | 'streaming' | 'done' | 'imageGenerating';
|
|
9
|
+
export type ResponseStepToolType = 'read' | 'edit' | 'search';
|
|
10
|
+
export interface ResponseStep {
|
|
11
|
+
text: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
details?: ReasoningStepDetail[];
|
|
14
|
+
toolType?: ResponseStepToolType;
|
|
15
|
+
}
|
|
16
|
+
export interface ResponseRound {
|
|
17
|
+
step: ResponseStep;
|
|
18
|
+
simpleMd: string;
|
|
19
|
+
}
|
|
20
|
+
export type BlockType = 'think' | 'composer' | 'md';
|
|
21
|
+
export interface ResponseBlock {
|
|
22
|
+
type: BlockType;
|
|
23
|
+
step?: ResponseStep;
|
|
24
|
+
md?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ResponseRootProps {
|
|
27
|
+
/** 是否启用流式模拟 */
|
|
28
|
+
simulate?: boolean;
|
|
29
|
+
/** 当前阶段 */
|
|
30
|
+
phase?: ResponsePhase;
|
|
31
|
+
/** 响应轮次数据 */
|
|
32
|
+
rounds?: ResponseRound[];
|
|
33
|
+
/** 最终 Markdown 内容 */
|
|
34
|
+
finalMarkdown?: string;
|
|
35
|
+
/** 模拟完成回调 */
|
|
36
|
+
onSimulateComplete?: () => void;
|
|
37
|
+
/** 步骤变化回调 */
|
|
38
|
+
onStepChange?: (text: string, toolType?: ResponseStepToolType) => void;
|
|
39
|
+
/** 自定义 ThinkingIndicator(主库注入 Lottie) */
|
|
40
|
+
thinkingIndicator?: ReactNode;
|
|
41
|
+
/** 自定义 className */
|
|
42
|
+
className?: string;
|
|
43
|
+
/** 子组件 */
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}
|
|
46
|
+
export interface ResponseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>, ResponseRootProps {
|
|
47
|
+
}
|
|
48
|
+
export interface ResponseThinkingProps {
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ResponseStepsProps {
|
|
52
|
+
className?: string;
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export interface ResponseStepProps {
|
|
56
|
+
step: ResponseStep;
|
|
57
|
+
status?: 'completed' | 'in-progress';
|
|
58
|
+
}
|
|
59
|
+
export interface ResponseContentProps {
|
|
60
|
+
/** Markdown 内容 */
|
|
61
|
+
markdown?: string;
|
|
62
|
+
/** 是否流式渲染 */
|
|
63
|
+
streaming?: boolean;
|
|
64
|
+
/** 流式渲染完成回调 */
|
|
65
|
+
onStreamComplete?: () => void;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ResponseImageGeneratingProps {
|
|
69
|
+
width?: string;
|
|
70
|
+
height?: string;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ResponseDefaultLayoutProps {
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ResponseContextValue {
|
|
77
|
+
phase: ResponsePhase;
|
|
78
|
+
simulate: boolean;
|
|
79
|
+
rounds: ResponseRound[];
|
|
80
|
+
finalMarkdown: string;
|
|
81
|
+
blocks: ResponseBlock[];
|
|
82
|
+
visibleIndex: number;
|
|
83
|
+
setVisibleIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
84
|
+
isSimDone: boolean;
|
|
85
|
+
currentBlock: ResponseBlock | null;
|
|
86
|
+
showThink: boolean;
|
|
87
|
+
onSimulateComplete?: () => void;
|
|
88
|
+
onStepChange?: (text: string, toolType?: ResponseStepToolType) => void;
|
|
89
|
+
thinkingIndicator: ReactNode;
|
|
90
|
+
}
|
|
91
|
+
export interface ResponseCompound {
|
|
92
|
+
Root: React.FC<ResponseRootProps>;
|
|
93
|
+
Thinking: React.FC<ResponseThinkingProps>;
|
|
94
|
+
Steps: React.FC<ResponseStepsProps>;
|
|
95
|
+
Step: React.FC<ResponseStepProps>;
|
|
96
|
+
Content: React.FC<ResponseContentProps>;
|
|
97
|
+
ImageGenerating: React.FC<ResponseImageGeneratingProps>;
|
|
98
|
+
DefaultLayout: React.FC<ResponseDefaultLayoutProps>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const sendButtonVariants: (props?: ({
|
|
4
|
+
status?: "normal" | "generating" | "recording" | "stopRecording" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare const sendButtonIconVariants: (props?: ({
|
|
7
|
+
status?: "normal" | "generating" | "recording" | "stopRecording" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface SendButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof sendButtonVariants> {
|
|
10
|
+
status?: 'normal' | 'generating' | 'recording' | 'stopRecording';
|
|
11
|
+
/** 主库可注入 useIcon('send');不传则用 registry 内联图标 */
|
|
12
|
+
sendIcon?: ReactNode;
|
|
13
|
+
stopIcon?: ReactNode;
|
|
14
|
+
micIcon?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const SendButton: import("react").ForwardRefExoticComponent<SendButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export { sendButtonVariants, sendButtonIconVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface StreamingMarkdownBlockProps {
|
|
2
|
+
content: string;
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
onStreamComplete?: () => void;
|
|
5
|
+
tokenDelayMs?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function StreamingMarkdownBlock({ content, isActive, onStreamComplete, tokenDelayMs, className, }: StreamingMarkdownBlockProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TaskPartProps) - tasks、title、currentTaskId;可选 headerIcon/circleIcon/completedIcon/skippedIcon/loaderIcon,未指定则用内联 SVG
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: registry/chat - 从 QodeChatPanel 移植,全 token 化
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export type TaskStatus = 'completed' | 'uncompleted' | 'skipped' | 'cancelled';
|
|
8
|
+
export interface TaskPartTask {
|
|
9
|
+
id?: string;
|
|
10
|
+
text: string;
|
|
11
|
+
status?: TaskStatus;
|
|
12
|
+
}
|
|
13
|
+
export interface TaskPartProps {
|
|
14
|
+
tasks?: TaskPartTask[];
|
|
15
|
+
title?: string;
|
|
16
|
+
currentTaskId?: string;
|
|
17
|
+
defaultExpanded?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
headerIcon?: ReactNode;
|
|
20
|
+
uncompletedIcon?: ReactNode;
|
|
21
|
+
completedIcon?: ReactNode;
|
|
22
|
+
skippedIcon?: ReactNode;
|
|
23
|
+
loaderIcon?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function TaskPart({ tasks, title, currentTaskId, defaultExpanded, className, headerIcon, uncompletedIcon, completedIcon, skippedIcon, loaderIcon, }: TaskPartProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace TaskPart {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: (TerminalCodeBlockPartProps) - command、output、autoRanCommand;可选 headerIcon/externalLinkIcon,未指定则用内联 SVG
|
|
3
|
+
* [OUTPUT]: (JSX.Element)
|
|
4
|
+
* [POS]: registry/chat - 从 QodeChatPanel 移植,全 token 化;不依赖 prism,纯样式
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export interface TerminalCodeBlockPartProps {
|
|
8
|
+
command?: string;
|
|
9
|
+
output?: string;
|
|
10
|
+
autoRanCommand?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
headerIcon?: ReactNode;
|
|
13
|
+
externalLinkIcon?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function TerminalCodeBlockPart({ command, output, autoRanCommand, className, headerIcon, externalLinkIcon, }: TerminalCodeBlockPartProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare namespace TerminalCodeBlockPart {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ThinkingIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
text?: string;
|
|
4
|
+
textClassName?: string;
|
|
5
|
+
shimmer?: boolean;
|
|
6
|
+
shimmerDuration?: number;
|
|
7
|
+
shimmerSpread?: number;
|
|
8
|
+
/** 主库可注入 Lottie 等自定义动画;不传则用 CSS 三点脉动 */
|
|
9
|
+
loader?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function ThinkingIndicator({ text, textClassName, shimmer, shimmerDuration, shimmerSpread, className, loader, ...props }: ThinkingIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare namespace ThinkingIndicator {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ToolInvocationStatus = 'running' | 'success' | 'error';
|
|
3
|
+
export interface ToolInvocationCardProps {
|
|
4
|
+
toolName: string;
|
|
5
|
+
params?: string;
|
|
6
|
+
status: ToolInvocationStatus;
|
|
7
|
+
response?: string;
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
statusText?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
timeIcon?: ReactNode;
|
|
12
|
+
checkboxCircleIcon?: ReactNode;
|
|
13
|
+
closeCircleIcon?: ReactNode;
|
|
14
|
+
arrowDownIcon?: ReactNode;
|
|
15
|
+
runningText?: string;
|
|
16
|
+
ranText?: string;
|
|
17
|
+
failedText?: string;
|
|
18
|
+
responseLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ToolInvocationCard: import("react").NamedExoticComponent<ToolInvocationCardProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface UserMessageProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
maxWidth?: string | number;
|
|
5
|
+
}
|
|
6
|
+
export declare const UserMessage: import("react").ForwardRefExoticComponent<UserMessageProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [INPUT]: 单题数据、answers/customInputs、handlers、labels、当前题/焦点/禁用状态
|
|
3
|
+
* [OUTPUT]: (JSX.Element) - 单题区块(题干 + OptionList + 自定义输入)
|
|
4
|
+
* [POS]: registry/chat/user-question
|
|
5
|
+
*/
|
|
6
|
+
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
7
|
+
import type { UserQuestionItem, UserQuestionLabels } from './types';
|
|
8
|
+
export interface UserQuestionCardProps {
|
|
9
|
+
question: UserQuestionItem;
|
|
10
|
+
qIndex: number;
|
|
11
|
+
labels: Required<UserQuestionLabels>;
|
|
12
|
+
answers: Record<string, string[]>;
|
|
13
|
+
customInputs: Record<string, string>;
|
|
14
|
+
focusedOptionIndex: number;
|
|
15
|
+
isCurrentQuestion: boolean;
|
|
16
|
+
isSubmitting: boolean;
|
|
17
|
+
allQuestionsAnswered: boolean;
|
|
18
|
+
questionsLength: number;
|
|
19
|
+
questionRefs: MutableRefObject<Map<number, HTMLDivElement>>;
|
|
20
|
+
customInputRefs: MutableRefObject<Map<string, HTMLInputElement>>;
|
|
21
|
+
setCurrentQuestionIndex: (i: number) => void;
|
|
22
|
+
setFocusedOptionIndex: (i: number) => void;
|
|
23
|
+
setAnswers: Dispatch<SetStateAction<Record<string, string[]>>>;
|
|
24
|
+
setCustomInputs: Dispatch<SetStateAction<Record<string, string>>>;
|
|
25
|
+
getSelectedOptionIndex: (i: number) => number;
|
|
26
|
+
shouldScrollToQuestionRef: MutableRefObject<boolean>;
|
|
27
|
+
onOptionClick: (questionText: string, optionLabel: string, questionIndex: number) => void;
|
|
28
|
+
onContinue: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function UserQuestionCard({ question, qIndex, labels, answers, customInputs, focusedOptionIndex, isCurrentQuestion, isSubmitting, allQuestionsAnswered, questionsLength, questionRefs, customInputRefs, setCurrentQuestionIndex, setFocusedOptionIndex, setAnswers, setCustomInputs, getSelectedOptionIndex, shouldScrollToQuestionRef, onOptionClick, onContinue, }: UserQuestionCardProps): import("react/jsx-runtime").JSX.Element;
|