langgraph-vue3-chatbot 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +146 -0
- package/dist-lib/assets/index-CX1UtZzJ.css +1 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_stream-markdown_markstream-vue-DYxpcVy9.js +5 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_stream-markdown_markstream-vue-DYxpcVy9.js.map +1 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_stream-monaco_markstream-vue-DYxpcVy9.js +5 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_stream-monaco_markstream-vue-DYxpcVy9.js.map +1 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_vue-i18n_markstream-vue-DYxpcVy9.js +5 -0
- package/dist-lib/chunks/__vite-optional-peer-dep_vue-i18n_markstream-vue-DYxpcVy9.js.map +1 -0
- package/dist-lib/chunks/_basePickBy-CW66PkAm.js +152 -0
- package/dist-lib/chunks/_basePickBy-CW66PkAm.js.map +1 -0
- package/dist-lib/chunks/_baseUniq-kZ8qh66z.js +615 -0
- package/dist-lib/chunks/_baseUniq-kZ8qh66z.js.map +1 -0
- package/dist-lib/chunks/arc-YPpteDR0.js +84 -0
- package/dist-lib/chunks/arc-YPpteDR0.js.map +1 -0
- package/dist-lib/chunks/architecture-7HQA4BMR-D9tgy59a.js +7 -0
- package/dist-lib/chunks/architecture-7HQA4BMR-D9tgy59a.js.map +1 -0
- package/dist-lib/chunks/architectureDiagram-VXUJARFQ-DxlahZGO.js +4667 -0
- package/dist-lib/chunks/architectureDiagram-VXUJARFQ-DxlahZGO.js.map +1 -0
- package/dist-lib/chunks/blockDiagram-VD42YOAC-D8bzGblL.js +2266 -0
- package/dist-lib/chunks/blockDiagram-VD42YOAC-D8bzGblL.js.map +1 -0
- package/dist-lib/chunks/c4Diagram-YG6GDRKO-D5AugQZD.js +1582 -0
- package/dist-lib/chunks/c4Diagram-YG6GDRKO-D5AugQZD.js.map +1 -0
- package/dist-lib/chunks/channel-BZVSXMdI.js +6 -0
- package/dist-lib/chunks/channel-BZVSXMdI.js.map +1 -0
- package/dist-lib/chunks/chunk-4BX2VUAB-DmDiFaYQ.js +10 -0
- package/dist-lib/chunks/chunk-4BX2VUAB-DmDiFaYQ.js.map +1 -0
- package/dist-lib/chunks/chunk-55IACEB6-Bixz-4ri.js +9 -0
- package/dist-lib/chunks/chunk-55IACEB6-Bixz-4ri.js.map +1 -0
- package/dist-lib/chunks/chunk-B4BG7PRW-roOoJ-H5.js +1377 -0
- package/dist-lib/chunks/chunk-B4BG7PRW-roOoJ-H5.js.map +1 -0
- package/dist-lib/chunks/chunk-DI55MBZ5-BKgq73Yz.js +1383 -0
- package/dist-lib/chunks/chunk-DI55MBZ5-BKgq73Yz.js.map +1 -0
- package/dist-lib/chunks/chunk-FMBD7UC4-0NCLBOZ4.js +20 -0
- package/dist-lib/chunks/chunk-FMBD7UC4-0NCLBOZ4.js.map +1 -0
- package/dist-lib/chunks/chunk-QN33PNHL-SdmLXfvj.js +21 -0
- package/dist-lib/chunks/chunk-QN33PNHL-SdmLXfvj.js.map +1 -0
- package/dist-lib/chunks/chunk-QZHKN3VN-BJRRsz_0.js +16 -0
- package/dist-lib/chunks/chunk-QZHKN3VN-BJRRsz_0.js.map +1 -0
- package/dist-lib/chunks/chunk-TZMSLE5B-BHz9sY22.js +65 -0
- package/dist-lib/chunks/chunk-TZMSLE5B-BHz9sY22.js.map +1 -0
- package/dist-lib/chunks/classDiagram-2ON5EDUG-D9YAjz9U.js +17 -0
- package/dist-lib/chunks/classDiagram-2ON5EDUG-D9YAjz9U.js.map +1 -0
- package/dist-lib/chunks/classDiagram-v2-WZHVMYZB-D9YAjz9U.js +17 -0
- package/dist-lib/chunks/classDiagram-v2-WZHVMYZB-D9YAjz9U.js.map +1 -0
- package/dist-lib/chunks/clone-Cr8OkUI6.js +9 -0
- package/dist-lib/chunks/clone-Cr8OkUI6.js.map +1 -0
- package/dist-lib/chunks/cose-bilkent-S5V4N54A-Dup1Il7f.js +2607 -0
- package/dist-lib/chunks/cose-bilkent-S5V4N54A-Dup1Il7f.js.map +1 -0
- package/dist-lib/chunks/cytoscape.esm-ZmItrg9y.js +18732 -0
- package/dist-lib/chunks/cytoscape.esm-ZmItrg9y.js.map +1 -0
- package/dist-lib/chunks/d2_markstream-vue-DjWw6Iqb.js +5 -0
- package/dist-lib/chunks/d2_markstream-vue-DjWw6Iqb.js.map +1 -0
- package/dist-lib/chunks/dagre-6UL2VRFP-BN-tqdJt.js +448 -0
- package/dist-lib/chunks/dagre-6UL2VRFP-BN-tqdJt.js.map +1 -0
- package/dist-lib/chunks/defaultLocale-BgPVtth8.js +172 -0
- package/dist-lib/chunks/defaultLocale-BgPVtth8.js.map +1 -0
- package/dist-lib/chunks/diagram-PSM6KHXK-q1AJt2KR.js +535 -0
- package/dist-lib/chunks/diagram-PSM6KHXK-q1AJt2KR.js.map +1 -0
- package/dist-lib/chunks/diagram-QEK2KX5R-DvWZHdbC.js +222 -0
- package/dist-lib/chunks/diagram-QEK2KX5R-DvWZHdbC.js.map +1 -0
- package/dist-lib/chunks/diagram-S2PKOQOG-Bh2eYDqp.js +144 -0
- package/dist-lib/chunks/diagram-S2PKOQOG-Bh2eYDqp.js.map +1 -0
- package/dist-lib/chunks/erDiagram-Q2GNP2WA-duuiZhAe.js +843 -0
- package/dist-lib/chunks/erDiagram-Q2GNP2WA-duuiZhAe.js.map +1 -0
- package/dist-lib/chunks/flowDiagram-NV44I4VS-2bX7uP_Y.js +1628 -0
- package/dist-lib/chunks/flowDiagram-NV44I4VS-2bX7uP_Y.js.map +1 -0
- package/dist-lib/chunks/ganttDiagram-JELNMOA3-DeLxp-TU.js +2664 -0
- package/dist-lib/chunks/ganttDiagram-JELNMOA3-DeLxp-TU.js.map +1 -0
- package/dist-lib/chunks/gitGraph-G5XIXVHT-DPDyQFCQ.js +7 -0
- package/dist-lib/chunks/gitGraph-G5XIXVHT-DPDyQFCQ.js.map +1 -0
- package/dist-lib/chunks/gitGraphDiagram-V2S2FVAM-C4N7S6Sn.js +713 -0
- package/dist-lib/chunks/gitGraphDiagram-V2S2FVAM-C4N7S6Sn.js.map +1 -0
- package/dist-lib/chunks/graph-CpqhRkc9.js +248 -0
- package/dist-lib/chunks/graph-CpqhRkc9.js.map +1 -0
- package/dist-lib/chunks/index-C6AmdgXa.js +29103 -0
- package/dist-lib/chunks/index-C6AmdgXa.js.map +1 -0
- package/dist-lib/chunks/index2-h2xJzRF5.js +71 -0
- package/dist-lib/chunks/index2-h2xJzRF5.js.map +1 -0
- package/dist-lib/chunks/index3-D85ShV5u.js +71 -0
- package/dist-lib/chunks/index3-D85ShV5u.js.map +1 -0
- package/dist-lib/chunks/index4-BZ3LQ3Gs.js +625 -0
- package/dist-lib/chunks/index4-BZ3LQ3Gs.js.map +1 -0
- package/dist-lib/chunks/index5-V5z7JyjJ.js +593 -0
- package/dist-lib/chunks/index5-V5z7JyjJ.js.map +1 -0
- package/dist-lib/chunks/index6-NgOhDjHq.js +197 -0
- package/dist-lib/chunks/index6-NgOhDjHq.js.map +1 -0
- package/dist-lib/chunks/index7-DbtRL8R1.js +218 -0
- package/dist-lib/chunks/index7-DbtRL8R1.js.map +1 -0
- package/dist-lib/chunks/info-VBDWY6EO-DmNdFwBm.js +7 -0
- package/dist-lib/chunks/info-VBDWY6EO-DmNdFwBm.js.map +1 -0
- package/dist-lib/chunks/infoDiagram-HS3SLOUP-C4KOQ4z8.js +25 -0
- package/dist-lib/chunks/infoDiagram-HS3SLOUP-C4KOQ4z8.js.map +1 -0
- package/dist-lib/chunks/infographic_markstream-vue-DjWw6Iqb.js +5 -0
- package/dist-lib/chunks/infographic_markstream-vue-DjWw6Iqb.js.map +1 -0
- package/dist-lib/chunks/init-DjUOC4st.js +17 -0
- package/dist-lib/chunks/init-DjUOC4st.js.map +1 -0
- package/dist-lib/chunks/journeyDiagram-XKPGCS4Q-BdwiHNvc.js +837 -0
- package/dist-lib/chunks/journeyDiagram-XKPGCS4Q-BdwiHNvc.js.map +1 -0
- package/dist-lib/chunks/kanban-definition-3W4ZIXB7-DEdDjhZy.js +721 -0
- package/dist-lib/chunks/kanban-definition-3W4ZIXB7-DEdDjhZy.js.map +1 -0
- package/dist-lib/chunks/katex-BpkHWDoa.js +11604 -0
- package/dist-lib/chunks/katex-BpkHWDoa.js.map +1 -0
- package/dist-lib/chunks/languageIconExtended-OLNeqZ3A.js +120 -0
- package/dist-lib/chunks/languageIconExtended-OLNeqZ3A.js.map +1 -0
- package/dist-lib/chunks/layout-BsfUazBi.js +1336 -0
- package/dist-lib/chunks/layout-BsfUazBi.js.map +1 -0
- package/dist-lib/chunks/linear-733vJvdS.js +260 -0
- package/dist-lib/chunks/linear-733vJvdS.js.map +1 -0
- package/dist-lib/chunks/mermaid-parser.core-BjQ4GviQ.js +17831 -0
- package/dist-lib/chunks/mermaid-parser.core-BjQ4GviQ.js.map +1 -0
- package/dist-lib/chunks/mermaid.core-CfwBoKEG.js +15318 -0
- package/dist-lib/chunks/mermaid.core-CfwBoKEG.js.map +1 -0
- package/dist-lib/chunks/mhchem-TJ3MgtXi.js +2307 -0
- package/dist-lib/chunks/mhchem-TJ3MgtXi.js.map +1 -0
- package/dist-lib/chunks/mindmap-definition-VGOIOE7T-DWXCpr2L.js +787 -0
- package/dist-lib/chunks/mindmap-definition-VGOIOE7T-DWXCpr2L.js.map +1 -0
- package/dist-lib/chunks/ordinal-DfAQgscy.js +62 -0
- package/dist-lib/chunks/ordinal-DfAQgscy.js.map +1 -0
- package/dist-lib/chunks/packet-DYOGHKS2-LKfYfvMi.js +7 -0
- package/dist-lib/chunks/packet-DYOGHKS2-LKfYfvMi.js.map +1 -0
- package/dist-lib/chunks/pie-VRWISCQL-CCCGK1h8.js +7 -0
- package/dist-lib/chunks/pie-VRWISCQL-CCCGK1h8.js.map +1 -0
- package/dist-lib/chunks/pieDiagram-ADFJNKIX-HEACu4aq.js +162 -0
- package/dist-lib/chunks/pieDiagram-ADFJNKIX-HEACu4aq.js.map +1 -0
- package/dist-lib/chunks/quadrantDiagram-AYHSOK5B-P2mJBm9J.js +1025 -0
- package/dist-lib/chunks/quadrantDiagram-AYHSOK5B-P2mJBm9J.js.map +1 -0
- package/dist-lib/chunks/radar-ZZBFDIW7-B1WQ7hOI.js +7 -0
- package/dist-lib/chunks/radar-ZZBFDIW7-B1WQ7hOI.js.map +1 -0
- package/dist-lib/chunks/requirementDiagram-UZGBJVZJ-BTSc_5mV.js +853 -0
- package/dist-lib/chunks/requirementDiagram-UZGBJVZJ-BTSc_5mV.js.map +1 -0
- package/dist-lib/chunks/safeRaf-BfLvr4ec.js +23 -0
- package/dist-lib/chunks/safeRaf-BfLvr4ec.js.map +1 -0
- package/dist-lib/chunks/sankeyDiagram-TZEHDZUN-DCpV3VxC.js +811 -0
- package/dist-lib/chunks/sankeyDiagram-TZEHDZUN-DCpV3VxC.js.map +1 -0
- package/dist-lib/chunks/sequenceDiagram-WL72ISMW-hw66SVMK.js +2519 -0
- package/dist-lib/chunks/sequenceDiagram-WL72ISMW-hw66SVMK.js.map +1 -0
- package/dist-lib/chunks/stateDiagram-FKZM4ZOC-0TmJOl3D.js +264 -0
- package/dist-lib/chunks/stateDiagram-FKZM4ZOC-0TmJOl3D.js.map +1 -0
- package/dist-lib/chunks/stateDiagram-v2-4FDKWEC3-B-LCArfl.js +17 -0
- package/dist-lib/chunks/stateDiagram-v2-4FDKWEC3-B-LCArfl.js.map +1 -0
- package/dist-lib/chunks/timeline-definition-IT6M3QCI-DG4YKjjA.js +802 -0
- package/dist-lib/chunks/timeline-definition-IT6M3QCI-DG4YKjjA.js.map +1 -0
- package/dist-lib/chunks/treemap-GDKQZRPO-BUNvhTR0.js +7 -0
- package/dist-lib/chunks/treemap-GDKQZRPO-BUNvhTR0.js.map +1 -0
- package/dist-lib/chunks/xychartDiagram-PRI3JC2R-Tw2Icm50.js +1341 -0
- package/dist-lib/chunks/xychartDiagram-PRI3JC2R-Tw2Icm50.js.map +1 -0
- package/dist-lib/components/ai-bot/AskAiBot.vue.d.ts +41 -0
- package/dist-lib/components/ai-bot/AskAiBot.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ChatBot.vue.d.ts +47 -0
- package/dist-lib/components/ai-bot/ChatBot.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ChatHeader.vue.d.ts +16 -0
- package/dist-lib/components/ai-bot/ChatHeader.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ChatInput.vue.d.ts +46 -0
- package/dist-lib/components/ai-bot/ChatInput.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ChatMessages.vue.d.ts +23 -0
- package/dist-lib/components/ai-bot/ChatMessages.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ChatSuggestions.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ChatSuggestions.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/FloatButton.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/FloatButton.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/GeneratedFiles.vue.d.ts +9 -0
- package/dist-lib/components/ai-bot/GeneratedFiles.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/InputAttachmentsDisplay.vue.d.ts +3 -0
- package/dist-lib/components/ai-bot/InputAttachmentsDisplay.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/TodoList.vue.d.ts +28 -0
- package/dist-lib/components/ai-bot/TodoList.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ToolCall.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ToolCall.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/Attachment.vue.d.ts +23 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/Attachment.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentEmpty.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentEmpty.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCard.vue.d.ts +22 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCard.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCardContent.vue.d.ts +21 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCardContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCardTrigger.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentHoverCardTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentInfo.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentInfo.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentPreview.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentPreview.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentRemove.vue.d.ts +22 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/AttachmentRemove.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/Attachments.vue.d.ts +21 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/Attachments.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/context.d.ts +16 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/context.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/index.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/types.d.ts +9 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/types.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/utils.d.ts +4 -0
- package/dist-lib/components/ai-bot/ai-elements/attachments/utils.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/Conversation.vue.d.ts +39 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/Conversation.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationContent.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationEmptyState.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationEmptyState.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationScrollButton.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/ConversationScrollButton.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/index.d.ts +5 -0
- package/dist-lib/components/ai-bot/ai-elements/conversation/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/Loader.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/Loader.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/LoaderIcon.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/LoaderIcon.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/index.d.ts +3 -0
- package/dist-lib/components/ai-bot/ai-elements/loader/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/Message.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ai-elements/message/Message.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageAction.vue.d.ts +25 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageAction.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageActions.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageActions.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageAvatar.vue.d.ts +9 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageAvatar.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranch.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranch.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchContent.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchNext.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchNext.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchPage.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchPage.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchPrevious.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchPrevious.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchSelector.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageBranchSelector.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageContent.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageResponse.vue.d.ts +9 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageResponse.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageToolbar.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/message/MessageToolbar.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/context.d.ts +12 -0
- package/dist-lib/components/ai-bot/ai-elements/message/context.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/message/index.d.ts +14 -0
- package/dist-lib/components/ai-bot/ai-elements/message/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelector.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelector.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorContent.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorDialog.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorDialog.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorEmpty.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorEmpty.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorGroup.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorInput.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorInput.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorItem.vue.d.ts +16 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorList.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorList.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorLogo.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorLogo.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorLogoGroup.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorLogoGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorName.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorName.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorSeparator.vue.d.ts +3 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorSeparator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorShortcut.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorShortcut.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorTrigger.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/ModelSelectorTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/index.d.ts +15 -0
- package/dist-lib/components/ai-bot/ai-elements/model-selector/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/Queue.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/Queue.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItem.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemAction.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemAction.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemActions.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemActions.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemAttachment.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemAttachment.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemContent.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemDescription.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemDescription.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemFile.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemFile.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemImage.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemImage.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemIndicator.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueItemIndicator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueList.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueList.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSection.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSection.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionContent.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionLabel.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionLabel.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionTrigger.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/QueueSectionTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/index.d.ts +16 -0
- package/dist-lib/components/ai-bot/ai-elements/queue/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/shimmer/Shimmer.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ai-elements/shimmer/Shimmer.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/shimmer/index.d.ts +2 -0
- package/dist-lib/components/ai-bot/ai-elements/shimmer/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/Suggestion.vue.d.ts +27 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/Suggestion.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/Suggestions.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/Suggestions.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/index.d.ts +3 -0
- package/dist-lib/components/ai-bot/ai-elements/suggestion/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/index.d.ts +8 -0
- package/dist-lib/components/ai-bot/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/input-types.d.ts +54 -0
- package/dist-lib/components/ai-bot/lib/input-types.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/message-types.d.ts +33 -0
- package/dist-lib/components/ai-bot/lib/message-types.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/models.d.ts +10 -0
- package/dist-lib/components/ai-bot/lib/models.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/prompt-input.d.ts +5 -0
- package/dist-lib/components/ai-bot/lib/prompt-input.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/thread.d.ts +5 -0
- package/dist-lib/components/ai-bot/lib/thread.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/tool-events.d.ts +11 -0
- package/dist-lib/components/ai-bot/lib/tool-events.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/lib/utils.d.ts +3 -0
- package/dist-lib/components/ai-bot/lib/utils.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/avatar/Avatar.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/avatar/Avatar.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/avatar/AvatarFallback.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/avatar/AvatarFallback.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/avatar/AvatarImage.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/avatar/AvatarImage.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/avatar/index.d.ts +4 -0
- package/dist-lib/components/ai-bot/ui/avatar/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/badge/Badge.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/badge/Badge.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/badge/index.d.ts +7 -0
- package/dist-lib/components/ai-bot/ui/badge/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button/Button.vue.d.ts +23 -0
- package/dist-lib/components/ai-bot/ui/button/Button.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button/index.d.ts +8 -0
- package/dist-lib/components/ai-bot/ui/button/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroup.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroupSeparator.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroupSeparator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroupText.vue.d.ts +22 -0
- package/dist-lib/components/ai-bot/ui/button-group/ButtonGroupText.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/button-group/index.d.ts +9 -0
- package/dist-lib/components/ai-bot/ui/button-group/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/collapsible/Collapsible.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/collapsible/Collapsible.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/collapsible/CollapsibleContent.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/collapsible/CollapsibleContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/collapsible/CollapsibleTrigger.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/collapsible/CollapsibleTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/collapsible/index.d.ts +4 -0
- package/dist-lib/components/ai-bot/ui/collapsible/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/Command.vue.d.ts +36 -0
- package/dist-lib/components/ai-bot/ui/command/Command.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandDialog.vue.d.ts +28 -0
- package/dist-lib/components/ai-bot/ui/command/CommandDialog.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandEmpty.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/command/CommandEmpty.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandGroup.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ui/command/CommandGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandInput.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ui/command/CommandInput.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandItem.vue.d.ts +22 -0
- package/dist-lib/components/ai-bot/ui/command/CommandItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandList.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/command/CommandList.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandSeparator.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/command/CommandSeparator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/CommandShortcut.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/command/CommandShortcut.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/command/index.d.ts +91 -0
- package/dist-lib/components/ai-bot/ui/command/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/Dialog.vue.d.ts +21 -0
- package/dist-lib/components/ai-bot/ui/dialog/Dialog.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogClose.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogContent.vue.d.ts +35 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogDescription.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogFooter.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogFooter.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogHeader.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogOverlay.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogScrollContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogTitle.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/dialog/DialogTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dialog/index.d.ts +11 -0
- package/dist-lib/components/ai-bot/ui/dialog/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenu.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +26 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSub.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +19 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/index.d.ts +16 -0
- package/dist-lib/components/ai-bot/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCard.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCard.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCardContent.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCardContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/hover-card/HoverCardTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/hover-card/index.d.ts +4 -0
- package/dist-lib/components/ai-bot/ui/hover-card/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input/Input.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ui/input/Input.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input/index.d.ts +2 -0
- package/dist-lib/components/ai-bot/ui/input/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroup.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupAddon.vue.d.ts +21 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupAddon.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupButton.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupButton.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupInput.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupInput.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupText.vue.d.ts +17 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupText.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupTextarea.vue.d.ts +7 -0
- package/dist-lib/components/ai-bot/ui/input-group/InputGroupTextarea.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/input-group/index.d.ts +16 -0
- package/dist-lib/components/ai-bot/ui/input-group/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/ScrollArea.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/ScrollBar.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/index.d.ts +3 -0
- package/dist-lib/components/ai-bot/ui/scroll-area/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/Select.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ui/select/Select.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist-lib/components/ai-bot/ui/select/SelectContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectGroup.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/select/SelectGroup.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectItem.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/select/SelectItem.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/select/SelectItemText.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/select/SelectLabel.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/select/SelectScrollDownButton.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/select/SelectScrollUpButton.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist-lib/components/ai-bot/ui/select/SelectSeparator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectTrigger.vue.d.ts +21 -0
- package/dist-lib/components/ai-bot/ui/select/SelectTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/select/SelectValue.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/select/index.d.ts +12 -0
- package/dist-lib/components/ai-bot/ui/select/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/separator/Separator.vue.d.ts +11 -0
- package/dist-lib/components/ai-bot/ui/separator/Separator.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/separator/index.d.ts +2 -0
- package/dist-lib/components/ai-bot/ui/separator/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tabs/Tabs.vue.d.ts +24 -0
- package/dist-lib/components/ai-bot/ui/tabs/Tabs.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsList.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist-lib/components/ai-bot/ui/tabs/TabsTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tabs/index.d.ts +5 -0
- package/dist-lib/components/ai-bot/ui/tabs/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist-lib/components/ai-bot/ui/textarea/Textarea.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/textarea/index.d.ts +2 -0
- package/dist-lib/components/ai-bot/ui/textarea/index.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tooltip/Tooltip.vue.d.ts +20 -0
- package/dist-lib/components/ai-bot/ui/tooltip/Tooltip.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipContent.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipProvider.vue.d.ts +16 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipProvider.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist-lib/components/ai-bot/ui/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
- package/dist-lib/components/ai-bot/ui/tooltip/index.d.ts +5 -0
- package/dist-lib/components/ai-bot/ui/tooltip/index.d.ts.map +1 -0
- package/dist-lib/index.d.ts +3 -0
- package/dist-lib/index.d.ts.map +1 -0
- package/dist-lib/index.js +6 -0
- package/dist-lib/index.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
import { defineComponent as gn, getCurrentInstance as Yn, computed as E, ref as O, watch as I, onBeforeUnmount as Wn, onUnmounted as yn, openBlock as D, createBlock as Pe, unref as k, createElementBlock as q, normalizeClass as ce, normalizeStyle as je, renderSlot as qe, createElementVNode as s, toDisplayString as Xe, createCommentVNode as K, Fragment as An, withDirectives as un, vShow as sn, onMounted as In, Teleport as Rn, withModifiers as Un, nextTick as we } from "vue";
|
|
2
|
+
import { l as kn, u as bn, g as Ve, y as Xn, m as Gn, x as cn, a as Jn, k as Kn, b as dn, c as vn, r as fn, d as Qn } from "./index-C6AmdgXa.js";
|
|
3
|
+
import { i as oe, t as Zn } from "./safeRaf-BfLvr4ec.js";
|
|
4
|
+
var et = Object.defineProperty, nt = Object.defineProperties, tt = Object.getOwnPropertyDescriptors, mn = Object.getOwnPropertySymbols, ot = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable, pn = (h, f, x) => f in h ? et(h, f, { enumerable: !0, configurable: !0, writable: !0, value: x }) : h[f] = x, Ye = (h, f) => {
|
|
5
|
+
for (var x in f || (f = {})) ot.call(f, x) && pn(h, x, f[x]);
|
|
6
|
+
if (mn) for (var x of mn(f)) lt.call(f, x) && pn(h, x, f[x]);
|
|
7
|
+
return h;
|
|
8
|
+
}, hn = (h, f) => nt(h, tt(f)), Y = (h, f, x) => new Promise((i, R) => {
|
|
9
|
+
var T = (c) => {
|
|
10
|
+
try {
|
|
11
|
+
m(x.next(c));
|
|
12
|
+
} catch (Q) {
|
|
13
|
+
R(Q);
|
|
14
|
+
}
|
|
15
|
+
}, C = (c) => {
|
|
16
|
+
try {
|
|
17
|
+
m(x.throw(c));
|
|
18
|
+
} catch (Q) {
|
|
19
|
+
R(Q);
|
|
20
|
+
}
|
|
21
|
+
}, m = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(T, C);
|
|
22
|
+
m((x = x.apply(h, f)).next());
|
|
23
|
+
});
|
|
24
|
+
const it = { class: "markstream-vue" }, at = { class: "html-preview-frame__header" }, rt = { class: "html-preview-frame__title" }, ut = { class: "html-preview-frame__label" }, st = ["srcdoc"], ct = /* @__PURE__ */ kn(/* @__PURE__ */ gn({ __name: "HtmlPreviewFrame", props: { code: {}, isDark: { type: Boolean }, onClose: { type: Function }, title: {} }, setup(h) {
|
|
25
|
+
const f = h, { t: x } = bn(), i = E(() => {
|
|
26
|
+
const T = f.code || "", C = T.trim().toLowerCase();
|
|
27
|
+
return C.startsWith("<!doctype") || C.startsWith("<html") || C.startsWith("<body") ? T : `<!doctype html>
|
|
28
|
+
<html lang="en">
|
|
29
|
+
<head>
|
|
30
|
+
<meta charset="utf-8" />
|
|
31
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
32
|
+
<style>
|
|
33
|
+
html, body {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-color: ${f.isDark ? "#020617" : "#ffffff"};
|
|
38
|
+
color: ${f.isDark ? "#e5e7eb" : "#020617"};
|
|
39
|
+
}
|
|
40
|
+
body {
|
|
41
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', ui-sans-serif, sans-serif;
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
${T}
|
|
47
|
+
</body>
|
|
48
|
+
</html>`;
|
|
49
|
+
});
|
|
50
|
+
function R(T) {
|
|
51
|
+
var C;
|
|
52
|
+
T.key !== "Escape" && T.key !== "Esc" || (C = f.onClose) == null || C.call(f);
|
|
53
|
+
}
|
|
54
|
+
return In(() => {
|
|
55
|
+
typeof window < "u" && window.addEventListener("keydown", R);
|
|
56
|
+
}), yn(() => {
|
|
57
|
+
typeof window < "u" && window.removeEventListener("keydown", R);
|
|
58
|
+
}), (T, C) => (D(), Pe(Rn, { to: "body" }, [s("div", it, [s("div", { class: ce(["html-preview-frame__backdrop", { "html-preview-frame__backdrop--dark": f.isDark }]), onClick: C[2] || (C[2] = (m) => {
|
|
59
|
+
var c;
|
|
60
|
+
return (c = f.onClose) == null ? void 0 : c.call(f);
|
|
61
|
+
}) }, [s("div", { class: ce(["html-preview-frame", { "html-preview-frame--dark": f.isDark }]), onClick: C[1] || (C[1] = Un(() => {
|
|
62
|
+
}, ["stop"])) }, [s("div", at, [s("div", rt, [C[3] || (C[3] = s("span", { class: "html-preview-frame__dot" }, null, -1)), s("span", ut, Xe(f.title || k(x)("common.preview") || "Preview"), 1)]), s("button", { type: "button", class: ce(["html-preview-frame__close", { "html-preview-frame__close--dark": f.isDark }]), onClick: C[0] || (C[0] = (m) => {
|
|
63
|
+
var c;
|
|
64
|
+
return (c = f.onClose) == null ? void 0 : c.call(f);
|
|
65
|
+
}) }, " × ", 2)]), s("iframe", { class: "html-preview-frame__iframe", sandbox: "allow-scripts allow-same-origin", srcdoc: i.value }, null, 8, st)], 2)], 2)])]));
|
|
66
|
+
} }), [["__scopeId", "data-v-296dd89d"]]);
|
|
67
|
+
let ue = null, We = null, ge = null, se = null, Ae = null, Ie = null;
|
|
68
|
+
const Re = /* @__PURE__ */ new WeakMap();
|
|
69
|
+
let dt = 0;
|
|
70
|
+
const vt = { key: 0, class: "code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5", style: { color: "var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))", "background-color": "var(--vscode-editor-background, var(--markstream-code-fallback-bg))" } }, ft = { class: "flex items-center gap-x-2 flex-1 overflow-hidden" }, mt = ["innerHTML"], pt = { class: "text-sm font-medium font-mono truncate" }, ht = { class: "flex items-center gap-x-2" }, wt = ["aria-pressed"], gt = ["disabled"], yt = ["disabled"], kt = ["disabled"], bt = ["aria-label"], xt = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, Ct = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, St = ["aria-pressed"], Bt = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, Mt = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, Ot = ["aria-label"], Et = { class: "code-editor-layer" }, Pt = { class: "code-loading-placeholder" }, _t = { class: "sr-only", "aria-live": "polite", role: "status" }, wn = "__markstreamMonacoPassiveTouch__", Ue = /* @__PURE__ */ kn(/* @__PURE__ */ gn({ __name: "CodeBlockNode", props: { node: {}, isDark: { type: Boolean }, loading: { type: Boolean, default: !0 }, stream: { type: Boolean, default: !0 }, darkTheme: { default: void 0 }, lightTheme: { default: void 0 }, isShowPreview: { type: Boolean, default: !0 }, monacoOptions: {}, enableFontSizeControl: { type: Boolean, default: !0 }, minWidth: { default: void 0 }, maxWidth: { default: void 0 }, themes: {}, showHeader: { type: Boolean, default: !0 }, showCopyButton: { type: Boolean, default: !0 }, showExpandButton: { type: Boolean, default: !0 }, showPreviewButton: { type: Boolean, default: !0 }, showCollapseButton: { type: Boolean, default: !0 }, showFontSizeButtons: { type: Boolean, default: !0 }, showTooltips: { type: Boolean }, customId: {} }, emits: ["previewCode", "copy"], setup(h, { emit: f }) {
|
|
71
|
+
var x;
|
|
72
|
+
const i = h, R = f;
|
|
73
|
+
typeof window < "u" && function() {
|
|
74
|
+
var n;
|
|
75
|
+
try {
|
|
76
|
+
const e = window;
|
|
77
|
+
if (e[wn]) return;
|
|
78
|
+
const t = (n = window.Element) == null ? void 0 : n.prototype, o = t == null ? void 0 : t.addEventListener;
|
|
79
|
+
if (!t || !o) return;
|
|
80
|
+
t.addEventListener = function(l, r, d) {
|
|
81
|
+
return l === "touchstart" && function(a, p) {
|
|
82
|
+
if (!a) return !1;
|
|
83
|
+
const u = a;
|
|
84
|
+
return !(typeof u.closest != "function" || !u.closest(".monaco-editor, .monaco-diff-editor") || p && typeof p == "object" && "passive" in p);
|
|
85
|
+
}(this, d) ? o.call(this, l, r, function(a) {
|
|
86
|
+
return a == null ? { passive: !0 } : typeof a == "boolean" ? { capture: a, passive: !0 } : typeof a == "object" ? "passive" in a ? a : hn(Ye({}, a), { passive: !0 }) : { passive: !0 };
|
|
87
|
+
}(d)) : o.call(this, l, r, d);
|
|
88
|
+
}, e[wn] = !0;
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
}();
|
|
92
|
+
const T = Yn(), C = E(() => {
|
|
93
|
+
const n = T == null ? void 0 : T.vnode.props;
|
|
94
|
+
return !(!n || !n.onPreviewCode && !n.onPreviewCode);
|
|
95
|
+
}), { t: m } = bn(), c = O(null), Q = O(null), le = O(!1), W = O(Ve(i.node.language)), ie = E(() => Xn(W.value)), P = O(!1), _ = O(!1), Z = O(!1), U = O(!1), ye = O(!1);
|
|
96
|
+
let ae = null;
|
|
97
|
+
const ee = O(null);
|
|
98
|
+
let _e = 0;
|
|
99
|
+
const xn = Gn(), de = O(null), X = O(typeof window > "u");
|
|
100
|
+
typeof window < "u" && I(() => Q.value, (n) => {
|
|
101
|
+
var e;
|
|
102
|
+
if ((e = de.value) == null || e.destroy(), de.value = null, !n) return void (X.value = !1);
|
|
103
|
+
const t = xn(n, { rootMargin: "400px" });
|
|
104
|
+
de.value = t, X.value = t.isVisible.value, t.whenVisible.then(() => {
|
|
105
|
+
X.value = !0;
|
|
106
|
+
});
|
|
107
|
+
}, { immediate: !0 }), Wn(() => {
|
|
108
|
+
var n;
|
|
109
|
+
(n = de.value) == null || n.destroy(), de.value = null;
|
|
110
|
+
});
|
|
111
|
+
let A = null, ke = null, be = () => {
|
|
112
|
+
}, Fe = () => {
|
|
113
|
+
}, xe = () => null, V = () => ({ getModel: () => ({ getLineCount: () => 1 }), getOption: () => 14, updateOptions: () => {
|
|
114
|
+
} }), H = () => ({ getModel: () => ({ getLineCount: () => 1 }), getOption: () => 14, updateOptions: () => {
|
|
115
|
+
} }), De = () => {
|
|
116
|
+
}, ve = () => {
|
|
117
|
+
}, G = null, Ge = () => {
|
|
118
|
+
var n;
|
|
119
|
+
return String((n = i.node.language) != null ? n : "plaintext");
|
|
120
|
+
}, Ne = () => Y(null, null, function* () {
|
|
121
|
+
});
|
|
122
|
+
const fe = [], ze = [], F = E(() => i.node.diff), Je = E(() => F.value ? "diff" : "single"), Cn = O(Je.value), Ce = O(!1), Sn = E(() => {
|
|
123
|
+
var n;
|
|
124
|
+
const e = (n = i.monacoOptions) == null ? void 0 : n.wordWrap;
|
|
125
|
+
return e == null || String(e) !== "off";
|
|
126
|
+
}), Ke = E(() => typeof window < "u" && !Ce.value && !U.value), Se = O(!1);
|
|
127
|
+
typeof window < "u" && Y(null, null, function* () {
|
|
128
|
+
try {
|
|
129
|
+
const n = yield Qn();
|
|
130
|
+
if (!n) return void (Ce.value = !0);
|
|
131
|
+
const e = n.useMonaco, t = n.detectLanguage;
|
|
132
|
+
if (typeof t == "function" && (Ge = t), typeof e == "function") {
|
|
133
|
+
const o = ln();
|
|
134
|
+
if (o && i.themes && Array.isArray(i.themes) && !i.themes.includes(o)) throw new Error("Preferred theme not in provided themes array");
|
|
135
|
+
const l = e(hn(Ye({ wordWrap: "on", wrappingIndent: "same", themes: i.themes, theme: o }, i.monacoOptions || {}), { onThemeChange() {
|
|
136
|
+
He();
|
|
137
|
+
} }));
|
|
138
|
+
A = l.createEditor || A, ke = l.createDiffEditor || ke, be = l.updateCode || be, Fe = l.updateDiff || Fe, xe = l.getEditor || xe, V = l.getEditorView || V, H = l.getDiffEditorView || H, De = l.cleanupEditor || De, ve = l.safeClean || l.cleanupEditor || ve, Ne = l.setTheme || Ne, ye.value = !0, c.value && (yield he(c.value));
|
|
139
|
+
}
|
|
140
|
+
} catch {
|
|
141
|
+
Ce.value = !0;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
const $ = O(typeof ((x = i.monacoOptions) == null ? void 0 : x.fontSize) == "number" ? i.monacoOptions.fontSize : Number.NaN), g = O($.value), Bn = E(() => {
|
|
145
|
+
const n = $.value, e = g.value;
|
|
146
|
+
return typeof n == "number" && Number.isFinite(n) && n > 0 && typeof e == "number" && Number.isFinite(e) && e > 0;
|
|
147
|
+
}), Qe = E(() => {
|
|
148
|
+
var n;
|
|
149
|
+
const e = (n = i.monacoOptions) == null ? void 0 : n.fontSize;
|
|
150
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return e;
|
|
151
|
+
const t = g.value;
|
|
152
|
+
return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : 12;
|
|
153
|
+
}), Mn = E(() => {
|
|
154
|
+
var n;
|
|
155
|
+
const e = (n = i.monacoOptions) == null ? void 0 : n.lineHeight;
|
|
156
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : Math.round(1.5 * Qe.value);
|
|
157
|
+
}), On = E(() => {
|
|
158
|
+
var n;
|
|
159
|
+
const e = (n = i.monacoOptions) == null ? void 0 : n.tabSize;
|
|
160
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 4;
|
|
161
|
+
}), En = E(() => {
|
|
162
|
+
var n;
|
|
163
|
+
const e = (n = i.monacoOptions) == null ? void 0 : n.fontFamily;
|
|
164
|
+
return Ye({ fontSize: `${Qe.value}px`, lineHeight: `${Mn.value}px`, tabSize: On.value }, typeof e == "string" && e.trim() ? { "--markstream-code-font-family": e.trim() } : {});
|
|
165
|
+
});
|
|
166
|
+
function Ze() {
|
|
167
|
+
var n, e, t, o, l;
|
|
168
|
+
try {
|
|
169
|
+
const r = F.value ? (t = (e = (n = H()) == null ? void 0 : n.getModifiedEditor) == null ? void 0 : e.call(n)) != null ? t : H() : V(), d = xe(), a = (o = d == null ? void 0 : d.EditorOption) == null ? void 0 : o.fontInfo;
|
|
170
|
+
if (r && a != null) {
|
|
171
|
+
const p = (l = r.getOption) == null ? void 0 : l.call(r, a), u = p == null ? void 0 : p.fontSize;
|
|
172
|
+
if (typeof u == "number" && Number.isFinite(u) && u > 0) return u;
|
|
173
|
+
}
|
|
174
|
+
} catch {
|
|
175
|
+
}
|
|
176
|
+
try {
|
|
177
|
+
const r = c.value;
|
|
178
|
+
if (r) {
|
|
179
|
+
const d = r.querySelector(".view-lines .view-line");
|
|
180
|
+
if (d) try {
|
|
181
|
+
if (typeof window < "u" && typeof window.getComputedStyle == "function") {
|
|
182
|
+
const a = window.getComputedStyle(d).fontSize, p = a && a.match(/^(\d+(?:\.\d+)?)/);
|
|
183
|
+
if (p) return Number.parseFloat(p[1]);
|
|
184
|
+
}
|
|
185
|
+
} catch {
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
} catch {
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
function Le(n) {
|
|
193
|
+
var e, t;
|
|
194
|
+
try {
|
|
195
|
+
const r = xe(), d = (e = r == null ? void 0 : r.EditorOption) == null ? void 0 : e.lineHeight;
|
|
196
|
+
if (d != null) {
|
|
197
|
+
const a = (t = n == null ? void 0 : n.getOption) == null ? void 0 : t.call(n, d);
|
|
198
|
+
if (typeof a == "number" && a > 0) return a;
|
|
199
|
+
}
|
|
200
|
+
} catch {
|
|
201
|
+
}
|
|
202
|
+
const o = function() {
|
|
203
|
+
try {
|
|
204
|
+
const r = c.value;
|
|
205
|
+
if (!r) return null;
|
|
206
|
+
const d = r.querySelector(".view-lines .view-line");
|
|
207
|
+
if (d) {
|
|
208
|
+
const a = Math.ceil(d.getBoundingClientRect().height);
|
|
209
|
+
if (a > 0) return a;
|
|
210
|
+
}
|
|
211
|
+
} catch {
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
}();
|
|
215
|
+
if (o && o > 0) return o;
|
|
216
|
+
const l = Number.isFinite(g.value) && g.value > 0 ? g.value : 12;
|
|
217
|
+
return Math.max(12, Math.round(1.35 * l));
|
|
218
|
+
}
|
|
219
|
+
function Te() {
|
|
220
|
+
var n;
|
|
221
|
+
if (Number.isFinite(g.value) && g.value > 0 && Number.isFinite($.value)) return g.value;
|
|
222
|
+
const e = Ze();
|
|
223
|
+
return typeof ((n = i.monacoOptions) == null ? void 0 : n.fontSize) == "number" ? ($.value = i.monacoOptions.fontSize, g.value = i.monacoOptions.fontSize, g.value) : e && e > 0 ? ($.value = e, g.value = e, e) : ($.value = 12, g.value = 12, 12);
|
|
224
|
+
}
|
|
225
|
+
function en() {
|
|
226
|
+
var n, e, t, o, l, r, d, a, p, u, S, w, b, y;
|
|
227
|
+
try {
|
|
228
|
+
const v = F.value ? H() : V();
|
|
229
|
+
if (!v) return null;
|
|
230
|
+
if (F.value && (v != null && v.getOriginalEditor) && (v != null && v.getModifiedEditor)) {
|
|
231
|
+
const B = (n = v.getOriginalEditor) == null ? void 0 : n.call(v), L = (e = v.getModifiedEditor) == null ? void 0 : e.call(v);
|
|
232
|
+
(t = B == null ? void 0 : B.layout) == null || t.call(B), (o = L == null ? void 0 : L.layout) == null || o.call(L);
|
|
233
|
+
const Ee = ((l = B == null ? void 0 : B.getContentHeight) == null ? void 0 : l.call(B)) || 0, an = ((r = L == null ? void 0 : L.getContentHeight) == null ? void 0 : r.call(L)) || 0, rn = Math.max(Ee, an);
|
|
234
|
+
if (rn > 0) return Math.ceil(rn + 1);
|
|
235
|
+
const $n = ((p = (a = (d = B == null ? void 0 : B.getModel) == null ? void 0 : d.call(B)) == null ? void 0 : a.getLineCount) == null ? void 0 : p.call(a)) || 1, jn = ((w = (S = (u = L == null ? void 0 : L.getModel) == null ? void 0 : u.call(L)) == null ? void 0 : S.getLineCount) == null ? void 0 : w.call(S)) || 1, qn = Math.max($n, jn), Vn = Math.max(Le(B), Le(L));
|
|
236
|
+
return Math.ceil(qn * (Vn + 1.5) + 0 + 1);
|
|
237
|
+
}
|
|
238
|
+
if (v != null && v.getContentHeight) {
|
|
239
|
+
(b = v == null ? void 0 : v.layout) == null || b.call(v);
|
|
240
|
+
const B = v.getContentHeight();
|
|
241
|
+
if (B > 0) return Math.ceil(B + 1);
|
|
242
|
+
}
|
|
243
|
+
const N = (y = v == null ? void 0 : v.getModel) == null ? void 0 : y.call(v);
|
|
244
|
+
let M = 1;
|
|
245
|
+
N && typeof N.getLineCount == "function" && (M = N.getLineCount());
|
|
246
|
+
const te = Le(v);
|
|
247
|
+
return Math.ceil(M * (te + 1.5) + 0 + 1);
|
|
248
|
+
} catch {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function He() {
|
|
253
|
+
var n, e, t, o, l, r, d, a;
|
|
254
|
+
const p = c.value, u = Q.value;
|
|
255
|
+
if (!p || !u) return;
|
|
256
|
+
const S = p.querySelector(".monaco-editor") || p, w = S.querySelector(".monaco-editor-background") || S, b = S.querySelector(".view-lines") || S;
|
|
257
|
+
let y = null, v = null, N = null;
|
|
258
|
+
try {
|
|
259
|
+
typeof window < "u" && typeof window.getComputedStyle == "function" && (y = window.getComputedStyle(S), v = w === S ? y : window.getComputedStyle(w), N = b === S ? y : window.getComputedStyle(b));
|
|
260
|
+
} catch {
|
|
261
|
+
y = null, v = null, N = null;
|
|
262
|
+
}
|
|
263
|
+
const M = String((n = y == null ? void 0 : y.getPropertyValue("--vscode-editor-foreground")) != null ? n : "").trim(), te = String((e = y == null ? void 0 : y.getPropertyValue("--vscode-editor-background")) != null ? e : "").trim(), B = String((o = (t = y == null ? void 0 : y.getPropertyValue("--vscode-editor-selectionBackground")) != null ? t : y == null ? void 0 : y.getPropertyValue("--vscode-editor-hoverHighlightBackground")) != null ? o : "").trim(), L = M || String((r = (l = N == null ? void 0 : N.color) != null ? l : y == null ? void 0 : y.color) != null ? r : "").trim(), Ee = te || String((a = (d = v == null ? void 0 : v.backgroundColor) != null ? d : y == null ? void 0 : y.backgroundColor) != null ? a : "").trim();
|
|
264
|
+
L && u.style.setProperty("--vscode-editor-foreground", L), Ee && u.style.setProperty("--vscode-editor-background", Ee), B && u.style.setProperty("--vscode-editor-selectionBackground", B);
|
|
265
|
+
}
|
|
266
|
+
function J() {
|
|
267
|
+
try {
|
|
268
|
+
const n = c.value;
|
|
269
|
+
if (!n) return;
|
|
270
|
+
const e = n.getBoundingClientRect(), t = window.scrollY + e.top, o = en();
|
|
271
|
+
if (o != null && o > 0) {
|
|
272
|
+
const l = e.height;
|
|
273
|
+
n.style.minHeight = "0px", n.style.height = `${Math.ceil(o)}px`, n.style.maxHeight = "none", n.style.overflow = "visible";
|
|
274
|
+
const r = Math.ceil(o) - l;
|
|
275
|
+
r !== 0 && t < window.scrollY && window.scrollBy(0, r);
|
|
276
|
+
}
|
|
277
|
+
} catch {
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function me() {
|
|
281
|
+
for (var n, e; fe.length > 0; ) try {
|
|
282
|
+
(e = (n = fe.pop()) == null ? void 0 : n.dispose) == null || e.call(n);
|
|
283
|
+
} catch {
|
|
284
|
+
}
|
|
285
|
+
ae != null && (Zn(ae), ae = null);
|
|
286
|
+
}
|
|
287
|
+
function pe() {
|
|
288
|
+
for (var n; ze.length > 0; ) try {
|
|
289
|
+
(n = ze.pop()) == null || n();
|
|
290
|
+
} catch {
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function nn() {
|
|
294
|
+
if (pe(), !F.value) return;
|
|
295
|
+
const n = c.value;
|
|
296
|
+
if (!n) return;
|
|
297
|
+
const e = n.querySelector(".monaco-diff-editor");
|
|
298
|
+
if (!e || e.classList.contains("side-by-side")) return;
|
|
299
|
+
const t = Array.from(e.querySelectorAll(".editor.original .diff-hidden-lines")), o = Array.from(e.querySelectorAll(".editor.modified .diff-hidden-lines")), l = Math.min(t.length, o.length);
|
|
300
|
+
for (let r = 0; r < l; r++) {
|
|
301
|
+
const d = t[r], a = o[r].querySelector("a"), p = d.querySelector(".center > div:first-child");
|
|
302
|
+
if (!a || !p) continue;
|
|
303
|
+
const u = document.createElement("button");
|
|
304
|
+
u.type = "button", u.className = "markstream-inline-fold-proxy";
|
|
305
|
+
const S = a.getAttribute("title") || "Show Unchanged Region";
|
|
306
|
+
u.title = S, u.setAttribute("aria-label", S);
|
|
307
|
+
const w = a.querySelector(".codicon"), b = document.createElement("span");
|
|
308
|
+
b.className = (w == null ? void 0 : w.className) || "codicon codicon-unfold", u.append(b);
|
|
309
|
+
const y = (M) => {
|
|
310
|
+
M.preventDefault(), M.stopPropagation();
|
|
311
|
+
}, v = (M) => {
|
|
312
|
+
M.preventDefault(), M.stopPropagation(), a.click();
|
|
313
|
+
}, N = (M) => {
|
|
314
|
+
M.key !== "Enter" && M.key !== " " || (M.preventDefault(), M.stopPropagation(), a.click());
|
|
315
|
+
};
|
|
316
|
+
u.addEventListener("mousedown", y), u.addEventListener("click", v), u.addEventListener("keydown", N), p.replaceChildren(u), ze.push(() => {
|
|
317
|
+
u.removeEventListener("mousedown", y), u.removeEventListener("click", v), u.removeEventListener("keydown", N), p.contains(u) && p.replaceChildren();
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function Be() {
|
|
322
|
+
ae == null && (ae = oe(() => {
|
|
323
|
+
ae = null, oe(() => {
|
|
324
|
+
nn(), _.value || (P.value ? J() : ne());
|
|
325
|
+
});
|
|
326
|
+
}));
|
|
327
|
+
}
|
|
328
|
+
function re(n, e, t) {
|
|
329
|
+
const o = Math.min(e, t), l = e > t + 1;
|
|
330
|
+
return n.style.minHeight = "0px", n.style.height = `${Math.ceil(o)}px`, n.style.maxHeight = `${Math.ceil(t)}px`, n.style.overflow = l ? "auto" : "hidden", Math.ceil(o);
|
|
331
|
+
}
|
|
332
|
+
function ne() {
|
|
333
|
+
var n;
|
|
334
|
+
try {
|
|
335
|
+
const e = c.value;
|
|
336
|
+
if (!e) return;
|
|
337
|
+
const t = e.getBoundingClientRect(), o = window.scrollY + t.top, l = t.height, r = function() {
|
|
338
|
+
var u, S;
|
|
339
|
+
const w = (S = (u = i.monacoOptions) == null ? void 0 : u.MAX_HEIGHT) != null ? S : 500;
|
|
340
|
+
if (typeof w == "number") return w;
|
|
341
|
+
const b = String(w).match(/^(\d+(?:\.\d+)?)/);
|
|
342
|
+
return b ? Number.parseFloat(b[1]) : 500;
|
|
343
|
+
}();
|
|
344
|
+
if (_e > 0 && (_e--, ee.value != null)) {
|
|
345
|
+
const u = re(e, ee.value, r) - l;
|
|
346
|
+
return void (u !== 0 && o < window.scrollY && window.scrollBy(0, u));
|
|
347
|
+
}
|
|
348
|
+
const d = en();
|
|
349
|
+
if (d != null && d > 0) {
|
|
350
|
+
const u = re(e, d, r) - l;
|
|
351
|
+
return void (u !== 0 && o < window.scrollY && window.scrollBy(0, u));
|
|
352
|
+
}
|
|
353
|
+
if (ee.value != null) {
|
|
354
|
+
const u = re(e, ee.value, r) - l;
|
|
355
|
+
return void (u !== 0 && o < window.scrollY && window.scrollBy(0, u));
|
|
356
|
+
}
|
|
357
|
+
const a = Math.ceil(((n = e.getBoundingClientRect) == null ? void 0 : n.call(e).height) || 0);
|
|
358
|
+
if (a > 0) {
|
|
359
|
+
const u = re(e, a, r) - l;
|
|
360
|
+
return void (u !== 0 && o < window.scrollY && window.scrollBy(0, u));
|
|
361
|
+
}
|
|
362
|
+
const p = Number.parseFloat(e.style.height);
|
|
363
|
+
if (!Number.isNaN(p) && p > 0) {
|
|
364
|
+
const u = re(e, p, r) - l;
|
|
365
|
+
u !== 0 && o < window.scrollY && window.scrollBy(0, u);
|
|
366
|
+
} else {
|
|
367
|
+
const u = re(e, r, r) - l;
|
|
368
|
+
u !== 0 && o < window.scrollY && window.scrollBy(0, u);
|
|
369
|
+
}
|
|
370
|
+
} catch {
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
const $e = E(() => i.isShowPreview && (W.value === "html" || W.value === "svg"));
|
|
374
|
+
I(() => i.node.language, (n) => {
|
|
375
|
+
W.value = Ve(n);
|
|
376
|
+
}), I(() => i.node.code, (n) => Y(null, null, function* () {
|
|
377
|
+
var e, t;
|
|
378
|
+
if (i.stream !== !1) {
|
|
379
|
+
if (W.value || (W.value = Ve(Ge(n))), A && !Z.value && c.value) try {
|
|
380
|
+
yield he(c.value);
|
|
381
|
+
} catch {
|
|
382
|
+
}
|
|
383
|
+
F.value ? Fe(String((e = i.node.originalCode) != null ? e : ""), String((t = i.node.updatedCode) != null ? t : ""), ie.value) : be(n, ie.value), P.value && oe(() => J());
|
|
384
|
+
}
|
|
385
|
+
}));
|
|
386
|
+
const Pn = E(() => {
|
|
387
|
+
const n = W.value;
|
|
388
|
+
return n ? cn[n] || n.charAt(0).toUpperCase() + n.slice(1) : cn[""];
|
|
389
|
+
}), _n = E(() => (Jn.value, Kn(W.value || ""))), Fn = E(() => {
|
|
390
|
+
const n = {}, e = (l) => {
|
|
391
|
+
if (l != null) return typeof l == "number" ? `${l}px` : String(l);
|
|
392
|
+
}, t = e(i.minWidth), o = e(i.maxWidth);
|
|
393
|
+
return t && (n.minWidth = t), o && (n.maxWidth = o), n;
|
|
394
|
+
}), Me = E(() => i.showTooltips !== !1);
|
|
395
|
+
function Dn() {
|
|
396
|
+
return Y(this, null, function* () {
|
|
397
|
+
try {
|
|
398
|
+
typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(i.node.code)), le.value = !0, R("copy", i.node.code), setTimeout(() => {
|
|
399
|
+
le.value = !1;
|
|
400
|
+
}, 1e3);
|
|
401
|
+
} catch (n) {
|
|
402
|
+
console.error("复制失败:", n);
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
function tn(n) {
|
|
407
|
+
const e = n.currentTarget || n.target;
|
|
408
|
+
return !e || e.disabled ? null : e;
|
|
409
|
+
}
|
|
410
|
+
function j(n, e, t = "top") {
|
|
411
|
+
if (!Me.value) return;
|
|
412
|
+
const o = tn(n);
|
|
413
|
+
if (!o) return;
|
|
414
|
+
const l = n, r = (l == null ? void 0 : l.clientX) != null && (l == null ? void 0 : l.clientY) != null ? { x: l.clientX, y: l.clientY } : void 0;
|
|
415
|
+
fn(o, e, t, !1, r, i.isDark);
|
|
416
|
+
}
|
|
417
|
+
function z() {
|
|
418
|
+
Me.value && dn();
|
|
419
|
+
}
|
|
420
|
+
function on(n) {
|
|
421
|
+
if (!Me.value) return;
|
|
422
|
+
const e = tn(n);
|
|
423
|
+
if (!e) return;
|
|
424
|
+
const t = le.value ? m("common.copied") || "Copied" : m("common.copy") || "Copy", o = n, l = (o == null ? void 0 : o.clientX) != null && (o == null ? void 0 : o.clientY) != null ? { x: o.clientX, y: o.clientY } : void 0;
|
|
425
|
+
fn(e, t, "top", !1, l, i.isDark);
|
|
426
|
+
}
|
|
427
|
+
function Nn() {
|
|
428
|
+
P.value = !P.value;
|
|
429
|
+
const n = F.value ? H() : V(), e = c.value;
|
|
430
|
+
n && e && (P.value ? (Oe(!0), e.style.maxHeight = "none", e.style.overflow = "visible", J()) : (Oe(!1), e.style.overflow = "auto", ne()));
|
|
431
|
+
}
|
|
432
|
+
function zn() {
|
|
433
|
+
var n, e, t;
|
|
434
|
+
if (_.value = !_.value, _.value) {
|
|
435
|
+
if (c.value) {
|
|
436
|
+
const o = Math.ceil(((e = (n = c.value).getBoundingClientRect) == null ? void 0 : e.call(n).height) || 0);
|
|
437
|
+
o > 0 && (ee.value = o);
|
|
438
|
+
}
|
|
439
|
+
Oe(!1);
|
|
440
|
+
} else {
|
|
441
|
+
P.value && Oe(!0), c.value && ee.value != null && (c.value.style.height = `${ee.value}px`);
|
|
442
|
+
const o = F.value ? H() : V();
|
|
443
|
+
try {
|
|
444
|
+
(t = o == null ? void 0 : o.layout) == null || t.call(o);
|
|
445
|
+
} catch {
|
|
446
|
+
}
|
|
447
|
+
_e = 2, oe(() => {
|
|
448
|
+
P.value ? J() : ne();
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function Ln() {
|
|
453
|
+
if (!$e.value) return;
|
|
454
|
+
const n = W.value;
|
|
455
|
+
if (C.value) {
|
|
456
|
+
const e = n === "html" ? "text/html" : "image/svg+xml", t = n === "html" ? m("artifacts.htmlPreviewTitle") || "HTML Preview" : m("artifacts.svgPreviewTitle") || "SVG Preview";
|
|
457
|
+
return void R("previewCode", { node: i.node, artifactType: e, artifactTitle: t, id: `temp-${n}-${Date.now()}` });
|
|
458
|
+
}
|
|
459
|
+
n === "html" && (Se.value = !Se.value);
|
|
460
|
+
}
|
|
461
|
+
function Oe(n) {
|
|
462
|
+
var e, t;
|
|
463
|
+
try {
|
|
464
|
+
if (F.value) {
|
|
465
|
+
const o = H();
|
|
466
|
+
(e = o == null ? void 0 : o.updateOptions) == null || e.call(o, { automaticLayout: n });
|
|
467
|
+
} else {
|
|
468
|
+
const o = V();
|
|
469
|
+
(t = o == null ? void 0 : o.updateOptions) == null || t.call(o, { automaticLayout: n });
|
|
470
|
+
}
|
|
471
|
+
} catch {
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
function he(n) {
|
|
475
|
+
return A ? G || (Z.value && U.value ? Promise.resolve() : (Z.value = !0, G = Y(null, null, function* () {
|
|
476
|
+
yield function(t) {
|
|
477
|
+
return Y(this, null, function* () {
|
|
478
|
+
var o, l, r;
|
|
479
|
+
if (!A) return;
|
|
480
|
+
me(), pe(), function(a) {
|
|
481
|
+
a.replaceChildren();
|
|
482
|
+
}(t), F.value ? (ve(), ke ? yield ke(t, String((o = i.node.originalCode) != null ? o : ""), String((l = i.node.updatedCode) != null ? l : ""), ie.value) : yield A(t, i.node.code, ie.value)) : yield A(t, i.node.code, ie.value);
|
|
483
|
+
const d = F.value ? H() : V();
|
|
484
|
+
if (typeof ((r = i.monacoOptions) == null ? void 0 : r.fontSize) == "number") d == null || d.updateOptions({ fontSize: i.monacoOptions.fontSize, automaticLayout: !1 }), $.value = i.monacoOptions.fontSize, g.value = i.monacoOptions.fontSize;
|
|
485
|
+
else {
|
|
486
|
+
const a = Ze();
|
|
487
|
+
a && a > 0 ? ($.value = a, g.value = a) : ($.value = 12, g.value = 12);
|
|
488
|
+
}
|
|
489
|
+
P.value || _.value || ne(), i.loading === !1 && (yield we(), oe(() => {
|
|
490
|
+
P.value && !_.value ? J() : _.value || ne();
|
|
491
|
+
})), yield we(), U.value = !0, function() {
|
|
492
|
+
var a, p, u, S;
|
|
493
|
+
if (me(), F.value) {
|
|
494
|
+
const w = H(), b = (a = w == null ? void 0 : w.getOriginalEditor) == null ? void 0 : a.call(w), y = (p = w == null ? void 0 : w.getModifiedEditor) == null ? void 0 : p.call(w), v = (N, M) => {
|
|
495
|
+
try {
|
|
496
|
+
const te = N == null ? void 0 : N[M];
|
|
497
|
+
if (typeof te != "function") return;
|
|
498
|
+
const B = te.call(N, () => Be());
|
|
499
|
+
B && fe.push(B);
|
|
500
|
+
} catch {
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
v(w, "onDidUpdateDiff"), v(b, "onDidContentSizeChange"), v(y, "onDidContentSizeChange"), v(b, "onDidLayoutChange"), v(y, "onDidLayoutChange");
|
|
504
|
+
} else {
|
|
505
|
+
const w = V();
|
|
506
|
+
try {
|
|
507
|
+
const b = (u = w == null ? void 0 : w.onDidContentSizeChange) == null ? void 0 : u.call(w, () => Be());
|
|
508
|
+
b && fe.push(b);
|
|
509
|
+
} catch {
|
|
510
|
+
}
|
|
511
|
+
try {
|
|
512
|
+
const b = (S = w == null ? void 0 : w.onDidLayoutChange) == null ? void 0 : S.call(w, () => Be());
|
|
513
|
+
b && fe.push(b);
|
|
514
|
+
} catch {
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}(), He(), nn(), Be();
|
|
518
|
+
});
|
|
519
|
+
}(n);
|
|
520
|
+
}).finally(() => {
|
|
521
|
+
G = null;
|
|
522
|
+
}), G)) : null;
|
|
523
|
+
}
|
|
524
|
+
I(Me, (n) => {
|
|
525
|
+
n || dn();
|
|
526
|
+
}), I(() => g.value, (n, e) => {
|
|
527
|
+
const t = F.value ? H() : V();
|
|
528
|
+
t && typeof n == "number" && Number.isFinite(n) && n > 0 && (t.updateOptions({ fontSize: n }), P.value && !_.value && J());
|
|
529
|
+
}, { flush: "post", immediate: !1 });
|
|
530
|
+
const Tn = I(() => [c.value, F.value, i.stream, i.loading, ye.value, X.value], (n) => Y(null, [n], function* ([e, t, o, l, r, d]) {
|
|
531
|
+
if (!e || !A || !d || o === !1 && l !== !1) return;
|
|
532
|
+
const a = he(e);
|
|
533
|
+
if (a) {
|
|
534
|
+
try {
|
|
535
|
+
yield a;
|
|
536
|
+
} catch {
|
|
537
|
+
U.value = !1;
|
|
538
|
+
}
|
|
539
|
+
Tn();
|
|
540
|
+
}
|
|
541
|
+
}));
|
|
542
|
+
function ln() {
|
|
543
|
+
return i.isDark ? i.darkTheme : i.lightTheme;
|
|
544
|
+
}
|
|
545
|
+
I(Je, (n, e) => Y(null, null, function* () {
|
|
546
|
+
if (n !== e && (Cn.value = n, A && c.value && Z.value && (i.stream !== !1 || i.loading === !1) && X.value)) try {
|
|
547
|
+
U.value = !1, Z.value = !1, G = null, me(), pe(), ve(), yield we(), yield he(c.value);
|
|
548
|
+
} catch {
|
|
549
|
+
U.value = !1;
|
|
550
|
+
}
|
|
551
|
+
})), I(() => [i.isDark, i.darkTheme, i.lightTheme, ye.value], () => {
|
|
552
|
+
ye.value && function() {
|
|
553
|
+
const n = ln();
|
|
554
|
+
n && function(e, t) {
|
|
555
|
+
const o = function(l) {
|
|
556
|
+
if (l == null) return null;
|
|
557
|
+
if (typeof l == "string") return l;
|
|
558
|
+
if (typeof l == "object" && l && "name" in l) return String(l.name);
|
|
559
|
+
if (typeof l == "object") {
|
|
560
|
+
const r = Re.get(l);
|
|
561
|
+
if (r) return r;
|
|
562
|
+
try {
|
|
563
|
+
const a = JSON.stringify(l);
|
|
564
|
+
if (a) return Re.set(l, a), a;
|
|
565
|
+
} catch {
|
|
566
|
+
}
|
|
567
|
+
const d = "__theme_" + ++dt;
|
|
568
|
+
return Re.set(l, d), d;
|
|
569
|
+
}
|
|
570
|
+
return String(l);
|
|
571
|
+
}(t);
|
|
572
|
+
return o ? (Ie = e, ue || Ae !== o ? ue ? (se === o || We === o || (ge = t, se = o), ue) : (ge = t, se = o, ue = Y(null, null, function* () {
|
|
573
|
+
for (; se && ge != null; ) {
|
|
574
|
+
const l = ge, r = se;
|
|
575
|
+
if (ge = null, se = null, Ae !== r) try {
|
|
576
|
+
We = r, yield (Ie ?? e)(l), Ae = r;
|
|
577
|
+
} catch {
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}).finally(() => {
|
|
581
|
+
ue = null, We = null;
|
|
582
|
+
}), ue) : Promise.resolve()) : Promise.resolve();
|
|
583
|
+
}(Ne, n).then(() => {
|
|
584
|
+
U.value && oe(() => He());
|
|
585
|
+
});
|
|
586
|
+
}();
|
|
587
|
+
}), I(() => [i.monacoOptions, X.value], () => {
|
|
588
|
+
var n, e;
|
|
589
|
+
if (!A || !X.value) return;
|
|
590
|
+
const t = F.value ? H() : V(), o = typeof ((n = i.monacoOptions) == null ? void 0 : n.fontSize) == "number" ? i.monacoOptions.fontSize : Number.isFinite(g.value) ? g.value : void 0;
|
|
591
|
+
typeof o == "number" && Number.isFinite(o) && o > 0 && ((e = t == null ? void 0 : t.updateOptions) == null || e.call(t, { fontSize: o })), P.value && !_.value ? J() : _.value || ne();
|
|
592
|
+
}, { deep: !0 });
|
|
593
|
+
const Hn = I(() => [i.loading, X.value], (n) => Y(null, [n], function* ([e, t]) {
|
|
594
|
+
t && (e || (yield we(), oe(() => {
|
|
595
|
+
Y(null, null, function* () {
|
|
596
|
+
var o;
|
|
597
|
+
if (Z.value) if (F.value && c.value) {
|
|
598
|
+
const l = G;
|
|
599
|
+
if (l) try {
|
|
600
|
+
yield l;
|
|
601
|
+
} catch {
|
|
602
|
+
}
|
|
603
|
+
U.value = !1, Z.value = !1, G = null, me(), pe(), ve(), c.value.replaceChildren(), yield we(), yield he(c.value);
|
|
604
|
+
} else be(String((o = i.node.code) != null ? o : ""), ie.value);
|
|
605
|
+
_.value || (P.value ? J() : ne()), Hn();
|
|
606
|
+
});
|
|
607
|
+
})));
|
|
608
|
+
}), { immediate: !0, flush: "post" });
|
|
609
|
+
return yn(() => {
|
|
610
|
+
me(), pe(), De();
|
|
611
|
+
}), (n, e) => Ce.value ? (D(), Pe(k(vn), { key: 0, node: h.node, loading: i.loading }, null, 8, ["node", "loading"])) : (D(), q("div", { key: 1, ref_key: "container", ref: Q, style: je(Fn.value), class: ce(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm", [i.isDark ? "border-gray-700/30 bg-gray-900" : "border-gray-200 bg-white", { "is-rendering": i.loading, "is-dark": i.isDark }]]) }, [i.showHeader ? (D(), q("div", vt, [qe(n.$slots, "header-left", {}, () => [s("div", ft, [s("span", { class: "icon-slot h-4 w-4 flex-shrink-0", innerHTML: _n.value }, null, 8, mt), s("span", pt, Xe(Pn.value), 1)])], !0), qe(n.$slots, "header-right", {}, () => [s("div", ht, [i.showCollapseButton ? (D(), q("button", { key: 0, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-pressed": _.value, onClick: zn, onMouseenter: e[0] || (e[0] = (t) => j(t, _.value ? k(m)("common.expand") || "Expand" : k(m)("common.collapse") || "Collapse")), onFocus: e[1] || (e[1] = (t) => j(t, _.value ? k(m)("common.expand") || "Expand" : k(m)("common.collapse") || "Collapse")), onMouseleave: z, onBlur: z }, [(D(), q("svg", { style: je({ rotate: _.value ? "0deg" : "90deg" }), xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [...e[17] || (e[17] = [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m9 18l6-6l-6-6" }, null, -1)])], 4))], 40, wt)) : K("", !0), i.showFontSizeButtons && i.enableFontSizeControl ? (D(), q(An, { key: 1 }, [s("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !!Number.isFinite(g.value) && g.value <= 10, onClick: e[2] || (e[2] = (t) => function() {
|
|
612
|
+
const o = Te(), l = Math.max(10, o - 1);
|
|
613
|
+
g.value = l;
|
|
614
|
+
}()), onMouseenter: e[3] || (e[3] = (t) => j(t, k(m)("common.decrease") || "Decrease")), onFocus: e[4] || (e[4] = (t) => j(t, k(m)("common.decrease") || "Decrease")), onMouseleave: z, onBlur: z }, [...e[18] || (e[18] = [s("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h14" })], -1)])], 40, gt), s("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !Bn.value || g.value === $.value, onClick: e[5] || (e[5] = (t) => (Te(), void (Number.isFinite($.value) && (g.value = $.value)))), onMouseenter: e[6] || (e[6] = (t) => j(t, k(m)("common.reset") || "Reset")), onFocus: e[7] || (e[7] = (t) => j(t, k(m)("common.reset") || "Reset")), onMouseleave: z, onBlur: z }, [...e[19] || (e[19] = [s("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [s("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [s("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }), s("path", { d: "M3 3v5h5" })])], -1)])], 40, yt), s("button", { type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", disabled: !!Number.isFinite(g.value) && g.value >= 36, onClick: e[8] || (e[8] = (t) => function() {
|
|
615
|
+
const o = Te(), l = Math.min(36, o + 1);
|
|
616
|
+
g.value = l;
|
|
617
|
+
}()), onMouseenter: e[9] || (e[9] = (t) => j(t, k(m)("common.increase") || "Increase")), onFocus: e[10] || (e[10] = (t) => j(t, k(m)("common.increase") || "Increase")), onMouseleave: z, onBlur: z }, [...e[20] || (e[20] = [s("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M5 12h14m-7-7v14" })], -1)])], 40, kt)], 64)) : K("", !0), i.showCopyButton ? (D(), q("button", { key: 2, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": le.value ? k(m)("common.copied") || "Copied" : k(m)("common.copy") || "Copy", onClick: Dn, onMouseenter: e[11] || (e[11] = (t) => on(t)), onFocus: e[12] || (e[12] = (t) => on(t)), onMouseleave: z, onBlur: z }, [le.value ? (D(), q("svg", Ct, [...e[22] || (e[22] = [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M20 6L9 17l-5-5" }, null, -1)])])) : (D(), q("svg", xt, [...e[21] || (e[21] = [s("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [s("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }), s("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })], -1)])]))], 40, bt)) : K("", !0), i.showExpandButton ? (D(), q("button", { key: 3, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-pressed": P.value, onClick: Nn, onMouseenter: e[13] || (e[13] = (t) => j(t, P.value ? k(m)("common.collapse") || "Collapse" : k(m)("common.expand") || "Expand")), onFocus: e[14] || (e[14] = (t) => j(t, P.value ? k(m)("common.collapse") || "Collapse" : k(m)("common.expand") || "Expand")), onMouseleave: z, onBlur: z }, [P.value ? (D(), q("svg", Bt, [...e[23] || (e[23] = [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" }, null, -1)])])) : (D(), q("svg", Mt, [...e[24] || (e[24] = [s("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" }, null, -1)])]))], 40, St)) : K("", !0), $e.value && i.showPreviewButton ? (D(), q("button", { key: 4, type: "button", class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": k(m)("common.preview") || "Preview", onClick: Ln, onMouseenter: e[15] || (e[15] = (t) => j(t, k(m)("common.preview") || "Preview")), onFocus: e[16] || (e[16] = (t) => j(t, k(m)("common.preview") || "Preview")), onMouseleave: z, onBlur: z }, [...e[25] || (e[25] = [s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24" }, [s("g", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd" }, [s("path", { d: "M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496" }), s("path", { d: "M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23" })])], -1)])], 40, Ot)) : K("", !0)])], !0)])) : K("", !0), un(s("div", Et, [s("div", { ref_key: "codeEditor", ref: c, class: ce(["code-editor-container", [h.stream ? "" : "code-height-placeholder", { "is-hidden": Ke.value }]]) }, null, 2), Ke.value ? (D(), Pe(k(vn), { key: 0, class: ce(["code-pre-fallback", { "is-wrap": Sn.value }]), style: je(En.value), node: h.node }, null, 8, ["class", "style", "node"])) : K("", !0)], 512), [[sn, !(_.value || !h.stream && h.loading)]]), Se.value && !C.value && $e.value && W.value === "html" ? (D(), Pe(ct, { key: 1, code: h.node.code, "is-dark": i.isDark, "on-close": () => Se.value = !1 }, null, 8, ["code", "is-dark", "on-close"])) : K("", !0), un(s("div", Pt, [qe(n.$slots, "loading", { loading: h.loading, stream: h.stream }, () => [e[26] || (e[26] = s("div", { class: "loading-skeleton" }, [s("div", { class: "skeleton-line" }), s("div", { class: "skeleton-line" }), s("div", { class: "skeleton-line short" })], -1))], !0)], 512), [[sn, !h.stream && h.loading]]), s("span", _t, Xe(le.value ? k(m)("common.copied") || "Copied" : ""), 1)], 6));
|
|
618
|
+
} }), [["__scopeId", "data-v-2b7591c2"]]);
|
|
619
|
+
Ue.install = (h) => {
|
|
620
|
+
h.component(Ue.__name, Ue);
|
|
621
|
+
};
|
|
622
|
+
export {
|
|
623
|
+
Ue as default
|
|
624
|
+
};
|
|
625
|
+
//# sourceMappingURL=index4-BZ3LQ3Gs.js.map
|