@mcp-b/react-components 0.29.0 → 0.30.1
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/dist/{AgentActivity-D3OvrC02.d.ts → AgentActivity-SP1WfLDW.d.ts} +2 -2
- package/dist/{AgentChat-Dy3cKCd-.d.ts → AgentChat-CV-GuYA6.d.ts} +21 -11
- package/dist/{AgentChatStartScreen-DXZ0hAX0.d.ts → AgentChatStartScreen-CO49yepa.d.ts} +2 -2
- package/dist/{AgentMessageParts-CyD2UB3V.d.ts → AgentMessageParts-C7L-Mv9U.d.ts} +2 -2
- package/dist/{AgentToolRunsContext-BVe4stgw.d.ts → AgentToolRunsContext-Cgve-Upx.d.ts} +1 -1
- package/dist/{BrowserLiveView-BV5qgFgI.d.ts → BrowserLiveView-tJTWkoyu.d.ts} +1 -1
- package/dist/{BrowserReplay-xWvRjRAC.d.ts → BrowserReplay-B0BQZr-N.d.ts} +1 -1
- package/dist/{Button-SBIz6Lqi.d.ts → Button-CZt3yywF.d.ts} +1 -1
- package/dist/{CodeBlock-BUfEhDia.js → CodeBlock-B5I7wje1.js} +4 -69
- package/dist/{CodeBlock-yMpGqScn.d.ts → CodeBlock-DzGhYyNe.d.ts} +5 -11
- package/dist/{Combobox-DI6xcQjc.d.ts → Combobox-WrrDDaEv.d.ts} +1 -1
- package/dist/{Dialog-BD8NBKaE.d.ts → Dialog-DeOSJ0Oy.d.ts} +1 -1
- package/dist/{FileTree-XOLP3Yvo.js → FileTree-DbQMpvxV.js} +64 -71
- package/dist/{IconButton-CFKhu6OR.d.ts → IconButton-BAUFhUk8.d.ts} +2 -2
- package/dist/{Menu-L6MZm-7N.d.ts → Menu-DVmjBIuM.d.ts} +1 -1
- package/dist/MenuDisclosureGroup-BUOZ42me.js +32 -0
- package/dist/{ModelSelector-CRdvHT_b.js → ModelSelector-DZcpUBgn.js} +32 -30
- package/dist/{PromptInput-B75Np5VB.d.ts → PromptInput-DOyee1kM.d.ts} +28 -90
- package/dist/{Select-B_13gg_J.d.ts → Select-D96d09ww.d.ts} +1 -1
- package/dist/{SessionCompaction-DMa1vv6Y.d.ts → SessionCompaction-CmTJFpzj.d.ts} +32 -2
- package/dist/{Tabs-C49J5m0Q.d.ts → Tabs-Ptrbaynh.d.ts} +1 -1
- package/dist/{ThinkChat-Bp-nAnoW.js → ThinkChat-yid8e_Jb.js} +46 -17
- package/dist/{ThinkChatActivity-Dq0lOAgw.d.ts → ThinkChatActivity-CgqpROz_.d.ts} +5 -5
- package/dist/{ThinkChatActivitySummary-F062wneC.d.ts → ThinkChatActivitySummary-teRjrPxW.d.ts} +3 -3
- package/dist/{ThinkChatContext-B-Nk84Wi.d.ts → ThinkChatContext-COIgzkYp.d.ts} +1 -1
- package/dist/{ThinkChatToolParts-BfroXQ4F.d.ts → ThinkChatToolParts-D4qcnnxt.d.ts} +3 -13
- package/dist/{ThinkExecutionRun-ChhWhOoU.d.ts → ThinkExecutionRun-lYYgyeE1.d.ts} +1 -1
- package/dist/{ThinkRecoveryNotice-D6gYcBbr.d.ts → ThinkRecoveryNotice-DGWr94rk.d.ts} +2 -2
- package/dist/{Toggle-JKZ43D5S.d.ts → Toggle-DLrIf5YH.d.ts} +1 -1
- package/dist/{ToggleGroup-BW1jrhAF.d.ts → ToggleGroup-CSBWfPXo.d.ts} +12 -12
- package/dist/{Workspace-Bn6In4wi.d.ts → Workspace-EhvvlHOB.d.ts} +2 -2
- package/dist/{WorkspaceExplorer-D0aiscG6.d.ts → WorkspaceExplorer-DygQnEyi.d.ts} +3 -3
- package/dist/{WorkspaceFile-DMtRMwVv.d.ts → WorkspaceFile-C8Riev9j.d.ts} +2 -2
- package/dist/{WorkspaceFileView-CKEmUyeT.js → WorkspaceFileView-BeUpr6TU.js} +73 -96
- package/dist/{WorkspaceLink-O-EBKUJ8.d.ts → WorkspaceLink-DQogVe8E.d.ts} +1 -1
- package/dist/{WorkspaceLink-BYYeTQLf.js → WorkspaceLink-DZeLe_jN.js} +3 -4
- package/dist/WorkspaceMessageResponse-BWbkIELl.js +100 -0
- package/dist/{attachment-preview-DIs50Q0h.js → attachment-preview-1CXJvrmb.js} +1 -1
- package/dist/components/{AgentActivity.d.ts → agents-sdk/AgentActivity.d.ts} +1 -1
- package/dist/components/{AgentActivity.js → agents-sdk/AgentActivity.js} +3 -3
- package/dist/components/{AgentActivityPreview.d.ts → agents-sdk/AgentActivityPreview.d.ts} +3 -3
- package/dist/components/{AgentActivityPreview.js → agents-sdk/AgentActivityPreview.js} +12 -10
- package/dist/components/{AgentChat.d.ts → agents-sdk/AgentChat.d.ts} +1 -1
- package/dist/components/{AgentChat.js → agents-sdk/AgentChat.js} +57 -32
- package/dist/components/{AgentToolRunsContext.d.ts → agents-sdk/AgentToolRunsContext.d.ts} +1 -1
- package/dist/components/{AgentToolRunsContext.js → agents-sdk/AgentToolRunsContext.js} +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +2 -0
- package/dist/components/{BrowserLiveView.js → agents-sdk/BrowserLiveView.js} +7 -7
- package/dist/components/agents-sdk/BrowserReplay.d.ts +2 -0
- package/dist/components/{BrowserReplay.js → agents-sdk/BrowserReplay.js} +7 -7
- package/dist/components/{BrowserRunPanel.d.ts → agents-sdk/BrowserRunPanel.d.ts} +1 -1
- package/dist/components/{BrowserRunPanel.js → agents-sdk/BrowserRunPanel.js} +6 -6
- package/dist/components/{McpConnectionRequest.d.ts → agents-sdk/McpConnectionRequest.d.ts} +3 -15
- package/dist/components/{McpConnectionRequest.js → agents-sdk/McpConnectionRequest.js} +46 -18
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +39 -0
- package/dist/components/agents-sdk/McpConnectorForm.js +151 -0
- package/dist/components/{McpPluginCatalog.d.ts → agents-sdk/McpPluginCatalog.d.ts} +3 -3
- package/dist/components/{McpPluginCatalog.js → agents-sdk/McpPluginCatalog.js} +23 -47
- package/dist/components/{McpServerPicker.d.ts → agents-sdk/McpServerPicker.d.ts} +14 -6
- package/dist/components/{McpServerPicker.js → agents-sdk/McpServerPicker.js} +35 -45
- package/dist/components/{ModelSelector.d.ts → agents-sdk/ModelSelector.d.ts} +4 -4
- package/dist/components/{ModelSelector.js → agents-sdk/ModelSelector.js} +1 -1
- package/dist/components/agents-sdk/PromptInputApproval.d.ts +44 -0
- package/dist/components/agents-sdk/PromptInputApproval.js +61 -0
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +11 -0
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -0
- package/dist/components/agents-sdk/SessionCompaction.d.ts +2 -0
- package/dist/components/{SessionCompaction.js → agents-sdk/SessionCompaction.js} +32 -11
- package/dist/components/{SubagentRunDetails.d.ts → agents-sdk/SubagentRunDetails.d.ts} +1 -1
- package/dist/components/{SubagentRunDetails.js → agents-sdk/SubagentRunDetails.js} +4 -4
- package/dist/components/{SubagentRunIndicator.d.ts → agents-sdk/SubagentRunIndicator.d.ts} +1 -1
- package/dist/components/{SubagentRunIndicator.js → agents-sdk/SubagentRunIndicator.js} +3 -3
- package/dist/components/{SubagentRunList.d.ts → agents-sdk/SubagentRunList.d.ts} +1 -1
- package/dist/components/{SubagentRunList.js → agents-sdk/SubagentRunList.js} +2 -2
- package/dist/components/{SubagentRunSelector.d.ts → agents-sdk/SubagentRunSelector.d.ts} +1 -1
- package/dist/components/{SubagentRunSelector.js → agents-sdk/SubagentRunSelector.js} +7 -7
- package/dist/components/{ThinkChat.d.ts → agents-sdk/ThinkChat.d.ts} +16 -16
- package/dist/components/{ThinkChat.js → agents-sdk/ThinkChat.js} +3 -3
- package/dist/components/{ThinkChatActivity.d.ts → agents-sdk/ThinkChatActivity.d.ts} +3 -3
- package/dist/components/{ThinkChatActivity.js → agents-sdk/ThinkChatActivity.js} +6 -6
- package/dist/components/{ThinkChatActivitySummary.d.ts → agents-sdk/ThinkChatActivitySummary.d.ts} +1 -1
- package/dist/components/{ThinkChatActivitySummary.js → agents-sdk/ThinkChatActivitySummary.js} +5 -4
- package/dist/components/{ThinkChatContext.d.ts → agents-sdk/ThinkChatContext.d.ts} +1 -1
- package/dist/components/{ThinkChatContext.js → agents-sdk/ThinkChatContext.js} +1 -1
- package/dist/components/{ThinkChatToolPanels.d.ts → agents-sdk/ThinkChatToolPanels.d.ts} +2 -2
- package/dist/components/{ThinkChatToolPanels.js → agents-sdk/ThinkChatToolPanels.js} +5 -5
- package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +2 -0
- package/dist/components/{ThinkChatToolParts.js → agents-sdk/ThinkChatToolParts.js} +3 -33
- package/dist/components/{ThinkExecutionDetail.d.ts → agents-sdk/ThinkExecutionDetail.d.ts} +2 -2
- package/dist/components/{ThinkExecutionDetail.js → agents-sdk/ThinkExecutionDetail.js} +5 -8
- package/dist/components/{ThinkExecutionRun.d.ts → agents-sdk/ThinkExecutionRun.d.ts} +1 -1
- package/dist/components/{ThinkExecutionRun.js → agents-sdk/ThinkExecutionRun.js} +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +35 -0
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +59 -0
- package/dist/components/{ThinkExecutionWorkbench.d.ts → agents-sdk/ThinkExecutionWorkbench.d.ts} +2 -2
- package/dist/components/{ThinkExecutionWorkbench.js → agents-sdk/ThinkExecutionWorkbench.js} +15 -32
- package/dist/components/{ThinkFullApp.d.ts → agents-sdk/ThinkFullApp.d.ts} +21 -9
- package/dist/components/{ThinkFullApp.js → agents-sdk/ThinkFullApp.js} +46 -29
- package/dist/components/{ThinkFullAppViewSwitch.d.ts → agents-sdk/ThinkFullAppViewSwitch.d.ts} +2 -2
- package/dist/components/{ThinkFullAppViewSwitch.js → agents-sdk/ThinkFullAppViewSwitch.js} +4 -4
- package/dist/components/{ThinkPendingApproval.d.ts → agents-sdk/ThinkPendingApproval.d.ts} +1 -1
- package/dist/components/{ThinkPendingApproval.js → agents-sdk/ThinkPendingApproval.js} +3 -3
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/{ThinkRecoveryNotice.js → agents-sdk/ThinkRecoveryNotice.js} +3 -3
- package/dist/components/{ThinkRoutine.d.ts → agents-sdk/ThinkRoutine.d.ts} +2 -2
- package/dist/components/{ThinkRoutine.js → agents-sdk/ThinkRoutine.js} +1 -1
- package/dist/components/{ThinkRoutineBrowser.d.ts → agents-sdk/ThinkRoutineBrowser.d.ts} +1 -1
- package/dist/components/{ThinkRoutineBrowser.js → agents-sdk/ThinkRoutineBrowser.js} +9 -9
- package/dist/components/{ThinkRoutineDetail.d.ts → agents-sdk/ThinkRoutineDetail.d.ts} +1 -1
- package/dist/components/{ThinkRoutineDetail.js → agents-sdk/ThinkRoutineDetail.js} +4 -4
- package/dist/components/{ThinkRoutineForm.d.ts → agents-sdk/ThinkRoutineForm.d.ts} +1 -1
- package/dist/components/{ThinkRoutineForm.js → agents-sdk/ThinkRoutineForm.js} +9 -9
- package/dist/components/{ThinkRoutineLibrary.d.ts → agents-sdk/ThinkRoutineLibrary.d.ts} +5 -2
- package/dist/components/{ThinkRoutineLibrary.js → agents-sdk/ThinkRoutineLibrary.js} +47 -44
- package/dist/components/{ThinkRoutineRuns.d.ts → agents-sdk/ThinkRoutineRuns.d.ts} +2 -2
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +59 -0
- package/dist/components/{ThinkThreadPicker.d.ts → agents-sdk/ThinkThreadPicker.d.ts} +1 -1
- package/dist/components/{ThinkThreadPicker.js → agents-sdk/ThinkThreadPicker.js} +12 -14
- package/dist/components/{ThinkThreadShell.d.ts → agents-sdk/ThinkThreadShell.d.ts} +2 -2
- package/dist/components/{ThinkThreadShell.js → agents-sdk/ThinkThreadShell.js} +3 -3
- package/dist/components/{Workspace.d.ts → agents-sdk/Workspace.d.ts} +1 -1
- package/dist/components/{Workspace.js → agents-sdk/Workspace.js} +5 -7
- package/dist/components/{WorkspaceBrowser.d.ts → agents-sdk/WorkspaceBrowser.d.ts} +2 -2
- package/dist/components/{WorkspaceBrowser.js → agents-sdk/WorkspaceBrowser.js} +3 -3
- package/dist/components/{WorkspaceExplorer.d.ts → agents-sdk/WorkspaceExplorer.d.ts} +4 -4
- package/dist/components/{WorkspaceExplorer.js → agents-sdk/WorkspaceExplorer.js} +5 -7
- package/dist/components/{WorkspaceFile.d.ts → agents-sdk/WorkspaceFile.d.ts} +1 -1
- package/dist/components/{WorkspaceFile.js → agents-sdk/WorkspaceFile.js} +1 -1
- package/dist/components/{WorkspaceFileView.d.ts → agents-sdk/WorkspaceFileView.d.ts} +2 -2
- package/dist/components/agents-sdk/WorkspaceFileView.js +2 -0
- package/dist/components/{WorkspaceHeader.d.ts → agents-sdk/WorkspaceHeader.d.ts} +1 -1
- package/dist/components/{WorkspaceHeader.js → agents-sdk/WorkspaceHeader.js} +3 -3
- package/dist/components/{WorkspaceLink.d.ts → agents-sdk/WorkspaceLink.d.ts} +1 -1
- package/dist/components/{WorkspaceLink.js → agents-sdk/WorkspaceLink.js} +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +12 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +2 -0
- package/dist/components/{WorkspaceMountManager.d.ts → agents-sdk/WorkspaceMountManager.d.ts} +1 -1
- package/dist/components/{WorkspaceMountManager.js → agents-sdk/WorkspaceMountManager.js} +9 -9
- package/dist/components/{Activity.d.ts → ai-sdk/Activity.d.ts} +4 -4
- package/dist/components/{Activity.js → ai-sdk/Activity.js} +6 -6
- package/dist/components/{AgentAttention.d.ts → ai-sdk/AgentAttention.d.ts} +2 -2
- package/dist/components/{AgentAttention.js → ai-sdk/AgentAttention.js} +3 -3
- package/dist/components/{AgentChatMessageEditor.d.ts → ai-sdk/AgentChatMessageEditor.d.ts} +1 -1
- package/dist/components/{AgentChatMessageEditor.js → ai-sdk/AgentChatMessageEditor.js} +5 -5
- package/dist/components/{AgentChatStartScreen.d.ts → ai-sdk/AgentChatStartScreen.d.ts} +1 -1
- package/dist/components/{AgentChatStartScreen.js → ai-sdk/AgentChatStartScreen.js} +5 -5
- package/dist/components/{AgentChatTurnError.d.ts → ai-sdk/AgentChatTurnError.d.ts} +1 -1
- package/dist/components/{AgentChatTurnError.js → ai-sdk/AgentChatTurnError.js} +2 -2
- package/dist/components/{AgentMessageParts.d.ts → ai-sdk/AgentMessageParts.d.ts} +1 -1
- package/dist/components/{AgentMessageParts.js → ai-sdk/AgentMessageParts.js} +4 -28
- package/dist/components/{Approval.d.ts → ai-sdk/Approval.d.ts} +1 -1
- package/dist/components/{Approval.js → ai-sdk/Approval.js} +5 -5
- package/dist/components/{Artifact.d.ts → ai-sdk/Artifact.d.ts} +2 -2
- package/dist/components/{Artifact.js → ai-sdk/Artifact.js} +4 -4
- package/dist/components/{ChainOfThought.d.ts → ai-sdk/ChainOfThought.d.ts} +3 -3
- package/dist/components/{ChainOfThought.js → ai-sdk/ChainOfThought.js} +4 -4
- package/dist/components/{Checkpoint.d.ts → ai-sdk/Checkpoint.d.ts} +2 -2
- package/dist/components/{Checkpoint.js → ai-sdk/Checkpoint.js} +4 -4
- package/dist/components/ai-sdk/CodeBlock.d.ts +2 -0
- package/dist/components/{CodeBlock.js → ai-sdk/CodeBlock.js} +2 -2
- package/dist/components/{Context.d.ts → ai-sdk/Context.d.ts} +2 -2
- package/dist/components/{Context.js → ai-sdk/Context.js} +5 -5
- package/dist/components/{Conversation.d.ts → ai-sdk/Conversation.d.ts} +2 -2
- package/dist/components/{Conversation.js → ai-sdk/Conversation.js} +5 -5
- package/dist/components/{ExpansionState.d.ts → ai-sdk/ExpansionState.d.ts} +1 -1
- package/dist/components/{ExpansionState.js → ai-sdk/ExpansionState.js} +1 -1
- package/dist/components/{Goal.d.ts → ai-sdk/Goal.d.ts} +1 -1
- package/dist/components/{Goal.js → ai-sdk/Goal.js} +6 -5
- package/dist/components/{InlineCitation.d.ts → ai-sdk/InlineCitation.d.ts} +1 -1
- package/dist/components/{InlineCitation.js → ai-sdk/InlineCitation.js} +4 -4
- package/dist/components/{MediaPreviewCard.d.ts → ai-sdk/MediaPreviewCard.d.ts} +2 -2
- package/dist/components/{MediaPreviewCard.js → ai-sdk/MediaPreviewCard.js} +5 -5
- package/dist/components/{Message.d.ts → ai-sdk/Message.d.ts} +2 -3
- package/dist/{Message-BF6SiKKL.js → components/ai-sdk/Message.js} +14 -99
- package/dist/components/{MessageScroller.d.ts → ai-sdk/MessageScroller.d.ts} +2 -2
- package/dist/components/{MessageScroller.js → ai-sdk/MessageScroller.js} +4 -4
- package/dist/components/{MessageScrollerVirtual.d.ts → ai-sdk/MessageScrollerVirtual.d.ts} +7 -8
- package/dist/components/{MessageScrollerVirtual.js → ai-sdk/MessageScrollerVirtual.js} +10 -10
- package/dist/components/{Plan.d.ts → ai-sdk/Plan.d.ts} +5 -6
- package/dist/components/{Plan.js → ai-sdk/Plan.js} +6 -6
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -0
- package/dist/components/{PromptInput.js → ai-sdk/PromptInput.js} +32 -130
- package/dist/components/{Queue.d.ts → ai-sdk/Queue.d.ts} +4 -4
- package/dist/components/{Queue.js → ai-sdk/Queue.js} +7 -7
- package/dist/components/{Reasoning.d.ts → ai-sdk/Reasoning.d.ts} +2 -2
- package/dist/components/{Reasoning.js → ai-sdk/Reasoning.js} +5 -5
- package/dist/components/{Sources.d.ts → ai-sdk/Sources.d.ts} +2 -2
- package/dist/components/{Sources.js → ai-sdk/Sources.js} +4 -4
- package/dist/components/{Task.d.ts → ai-sdk/Task.d.ts} +2 -2
- package/dist/components/{Task.js → ai-sdk/Task.js} +4 -4
- package/dist/components/{ToolApproval.d.ts → ai-sdk/ToolApproval.d.ts} +1 -1
- package/dist/components/{ToolApproval.js → ai-sdk/ToolApproval.js} +1 -1
- package/dist/components/{ToolInvocation.d.ts → ai-sdk/ToolInvocation.d.ts} +1 -1
- package/dist/components/{ToolInvocation.js → ai-sdk/ToolInvocation.js} +7 -9
- package/dist/components/ai-sdk/ToolPart.d.ts +11 -0
- package/dist/components/ai-sdk/ToolPart.js +15 -0
- package/dist/components/{ChatGptSignInScreen.d.ts → extension/ChatGptSignInScreen.d.ts} +1 -1
- package/dist/components/{ChatGptSignInScreen.js → extension/ChatGptSignInScreen.js} +5 -5
- package/dist/components/{CodexModelSelector.d.ts → extension/CodexModelSelector.d.ts} +3 -3
- package/dist/components/{CodexModelSelector.js → extension/CodexModelSelector.js} +6 -6
- package/dist/components/{ConversationTabPicker.d.ts → extension/ConversationTabPicker.d.ts} +1 -1
- package/dist/components/{ConversationTabPicker.js → extension/ConversationTabPicker.js} +7 -6
- package/dist/components/{Accordion.d.ts → foundations/Accordion.d.ts} +1 -1
- package/dist/components/{Accordion.js → foundations/Accordion.js} +3 -3
- package/dist/components/{AlertDialog.d.ts → foundations/AlertDialog.d.ts} +2 -2
- package/dist/components/{AlertDialog.js → foundations/AlertDialog.js} +2 -2
- package/dist/components/{AppIcon.d.ts → foundations/AppIcon.d.ts} +1 -1
- package/dist/components/{AppIcon.js → foundations/AppIcon.js} +2 -2
- package/dist/components/{Autocomplete.d.ts → foundations/Autocomplete.d.ts} +1 -1
- package/dist/components/{Autocomplete.js → foundations/Autocomplete.js} +2 -2
- package/dist/components/{Avatar.d.ts → foundations/Avatar.d.ts} +1 -1
- package/dist/components/{Avatar.js → foundations/Avatar.js} +2 -2
- package/dist/components/{Badge.d.ts → foundations/Badge.d.ts} +1 -1
- package/dist/components/{Badge.js → foundations/Badge.js} +1 -1
- package/dist/components/{Button.d.ts → foundations/Button.d.ts} +1 -1
- package/dist/components/{Button.js → foundations/Button.js} +2 -2
- package/dist/components/{Card.d.ts → foundations/Card.d.ts} +1 -1
- package/dist/components/{Card.js → foundations/Card.js} +2 -2
- package/dist/components/{Checkbox.d.ts → foundations/Checkbox.d.ts} +7 -3
- package/dist/components/{Checkbox.js → foundations/Checkbox.js} +9 -5
- package/dist/components/{CheckboxGroup.d.ts → foundations/CheckboxGroup.d.ts} +1 -1
- package/dist/components/{CheckboxGroup.js → foundations/CheckboxGroup.js} +2 -2
- package/dist/{Collapsible-N64ASIQr.d.ts → components/foundations/Collapsible.d.ts} +7 -7
- package/dist/components/{Collapsible.js → foundations/Collapsible.js} +3 -3
- package/dist/components/foundations/Combobox.d.ts +2 -0
- package/dist/components/{Combobox.js → foundations/Combobox.js} +2 -2
- package/dist/components/{ContextMenu.d.ts → foundations/ContextMenu.d.ts} +1 -1
- package/dist/components/{ContextMenu.js → foundations/ContextMenu.js} +3 -3
- package/dist/components/{DescriptionList.d.ts → foundations/DescriptionList.d.ts} +1 -1
- package/dist/components/{DescriptionList.js → foundations/DescriptionList.js} +1 -1
- package/dist/components/{DescriptionListParts.d.ts → foundations/DescriptionListParts.d.ts} +1 -1
- package/dist/components/{DescriptionListParts.js → foundations/DescriptionListParts.js} +2 -2
- package/dist/components/{Dialog.d.ts → foundations/Dialog.d.ts} +1 -1
- package/dist/components/{Dialog.js → foundations/Dialog.js} +2 -2
- package/dist/components/{EmptyState.d.ts → foundations/EmptyState.d.ts} +1 -1
- package/dist/components/{EmptyState.js → foundations/EmptyState.js} +2 -2
- package/dist/components/{Field.d.ts → foundations/Field.d.ts} +1 -1
- package/dist/components/{Field.js → foundations/Field.js} +2 -2
- package/dist/components/{Fieldset.d.ts → foundations/Fieldset.d.ts} +1 -1
- package/dist/components/{Fieldset.js → foundations/Fieldset.js} +2 -2
- package/dist/components/{Form.d.ts → foundations/Form.d.ts} +1 -1
- package/dist/components/{Form.js → foundations/Form.js} +2 -2
- package/dist/components/{FormattedDate.d.ts → foundations/FormattedDate.d.ts} +1 -1
- package/dist/components/{FormattedDate.js → foundations/FormattedDate.js} +1 -1
- package/dist/components/foundations/IconButton.d.ts +2 -0
- package/dist/components/{IconButton.js → foundations/IconButton.js} +1 -1
- package/dist/components/{Input.d.ts → foundations/Input.d.ts} +1 -1
- package/dist/components/{Input.js → foundations/Input.js} +2 -2
- package/dist/components/{Kbd.d.ts → foundations/Kbd.d.ts} +1 -1
- package/dist/components/{Kbd.js → foundations/Kbd.js} +2 -2
- package/dist/components/{Label.d.ts → foundations/Label.d.ts} +1 -1
- package/dist/components/{Label.js → foundations/Label.js} +2 -2
- package/dist/components/{LinkButton.d.ts → foundations/LinkButton.d.ts} +2 -2
- package/dist/components/{LinkButton.js → foundations/LinkButton.js} +1 -1
- package/dist/components/{Marker.d.ts → foundations/Marker.d.ts} +1 -1
- package/dist/components/{Marker.js → foundations/Marker.js} +2 -2
- package/dist/components/{Menu.d.ts → foundations/Menu.d.ts} +1 -1
- package/dist/components/{Menu.js → foundations/Menu.js} +2 -2
- package/dist/components/{Menubar.d.ts → foundations/Menubar.d.ts} +1 -1
- package/dist/components/{Menubar.js → foundations/Menubar.js} +3 -3
- package/dist/components/{Meter.d.ts → foundations/Meter.d.ts} +1 -1
- package/dist/components/{Meter.js → foundations/Meter.js} +2 -2
- package/dist/components/{NavigationMenu.d.ts → foundations/NavigationMenu.d.ts} +1 -1
- package/dist/components/{NavigationMenu.js → foundations/NavigationMenu.js} +2 -2
- package/dist/components/{NumberField.d.ts → foundations/NumberField.d.ts} +1 -1
- package/dist/components/{NumberField.js → foundations/NumberField.js} +2 -2
- package/dist/components/{Popover.d.ts → foundations/Popover.d.ts} +1 -1
- package/dist/components/{Popover.js → foundations/Popover.js} +3 -3
- package/dist/components/{PreviewCard.d.ts → foundations/PreviewCard.d.ts} +1 -1
- package/dist/components/{PreviewCard.js → foundations/PreviewCard.js} +2 -2
- package/dist/components/{Progress.d.ts → foundations/Progress.d.ts} +1 -1
- package/dist/components/{Progress.js → foundations/Progress.js} +2 -2
- package/dist/components/{RadioGroup.d.ts → foundations/RadioGroup.d.ts} +1 -1
- package/dist/components/{RadioGroup.js → foundations/RadioGroup.js} +2 -2
- package/dist/components/{ScrollArea.d.ts → foundations/ScrollArea.d.ts} +1 -1
- package/dist/components/{ScrollArea.js → foundations/ScrollArea.js} +2 -2
- package/dist/components/{SearchField.d.ts → foundations/SearchField.d.ts} +1 -1
- package/dist/components/{SearchField.js → foundations/SearchField.js} +3 -3
- package/dist/components/{Select.d.ts → foundations/Select.d.ts} +1 -1
- package/dist/components/{Select.js → foundations/Select.js} +3 -3
- package/dist/components/{Separator.d.ts → foundations/Separator.d.ts} +1 -1
- package/dist/components/{Separator.js → foundations/Separator.js} +2 -2
- package/dist/components/{Slider.d.ts → foundations/Slider.d.ts} +1 -1
- package/dist/components/{Slider.js → foundations/Slider.js} +2 -2
- package/dist/components/{StatusPill.d.ts → foundations/StatusPill.d.ts} +1 -1
- package/dist/components/{StatusPill.js → foundations/StatusPill.js} +2 -2
- package/dist/components/{Stepper.d.ts → foundations/Stepper.d.ts} +2 -2
- package/dist/components/{Stepper.js → foundations/Stepper.js} +3 -3
- package/dist/components/{Switch.d.ts → foundations/Switch.d.ts} +7 -7
- package/dist/components/{Switch.js → foundations/Switch.js} +8 -8
- package/dist/components/{Tabs.d.ts → foundations/Tabs.d.ts} +1 -1
- package/dist/components/{Tabs.js → foundations/Tabs.js} +2 -2
- package/dist/components/{Textarea.d.ts → foundations/Textarea.d.ts} +1 -1
- package/dist/components/{Textarea.js → foundations/Textarea.js} +2 -2
- package/dist/components/{ThemeProvider.d.ts → foundations/ThemeProvider.d.ts} +2 -2
- package/dist/components/{ThemeProvider.js → foundations/ThemeProvider.js} +2 -2
- package/dist/components/{Toast.d.ts → foundations/Toast.d.ts} +1 -1
- package/dist/components/{Toast.js → foundations/Toast.js} +3 -3
- package/dist/components/{Toggle.d.ts → foundations/Toggle.d.ts} +1 -1
- package/dist/components/{Toggle.js → foundations/Toggle.js} +2 -2
- package/dist/components/foundations/ToggleGroup.d.ts +2 -0
- package/dist/components/{ToggleGroup.js → foundations/ToggleGroup.js} +13 -13
- package/dist/components/{Toolbar.d.ts → foundations/Toolbar.d.ts} +1 -1
- package/dist/components/{Toolbar.js → foundations/Toolbar.js} +2 -2
- package/dist/components/{Tooltip.d.ts → foundations/Tooltip.d.ts} +1 -1
- package/dist/components/{Tooltip.js → foundations/Tooltip.js} +2 -2
- package/dist/components/{TransitionSurface.d.ts → foundations/TransitionSurface.d.ts} +1 -1
- package/dist/components/{TransitionSurface.js → foundations/TransitionSurface.js} +2 -2
- package/dist/components/{icons.d.ts → foundations/icons.d.ts} +1 -1
- package/dist/components/{icons.js → foundations/icons.js} +1 -1
- package/dist/components/{ActionGuide.d.ts → general-purpose/ActionGuide.d.ts} +2 -2
- package/dist/components/{ActionGuide.js → general-purpose/ActionGuide.js} +3 -3
- package/dist/components/general-purpose/AppFrame.d.ts +24 -0
- package/dist/components/general-purpose/AppFrame.js +25 -0
- package/dist/components/{AppTopBar.d.ts → general-purpose/AppTopBar.d.ts} +2 -2
- package/dist/components/{AppTopBar.js → general-purpose/AppTopBar.js} +5 -5
- package/dist/components/{Commit.d.ts → general-purpose/Commit.d.ts} +5 -12
- package/dist/components/{Commit.js → general-purpose/Commit.js} +11 -13
- package/dist/components/{EnvironmentVariables.d.ts → general-purpose/EnvironmentVariables.d.ts} +2 -4
- package/dist/components/{EnvironmentVariables.js → general-purpose/EnvironmentVariables.js} +9 -10
- package/dist/components/{FileTree.d.ts → general-purpose/FileTree.d.ts} +10 -1
- package/dist/components/{FileTree.js → general-purpose/FileTree.js} +1 -1
- package/dist/components/{Pricing.d.ts → general-purpose/Pricing.d.ts} +1 -1
- package/dist/components/{Pricing.js → general-purpose/Pricing.js} +1 -1
- package/dist/components/{PricingBillingToggle.d.ts → general-purpose/PricingBillingToggle.d.ts} +1 -1
- package/dist/components/{PricingBillingToggle.js → general-purpose/PricingBillingToggle.js} +7 -7
- package/dist/components/{PricingConfirmationDialog.d.ts → general-purpose/PricingConfirmationDialog.d.ts} +1 -1
- package/dist/components/{PricingConfirmationDialog.js → general-purpose/PricingConfirmationDialog.js} +3 -3
- package/dist/components/{PricingFAQ.d.ts → general-purpose/PricingFAQ.d.ts} +1 -1
- package/dist/components/{PricingFAQ.js → general-purpose/PricingFAQ.js} +3 -3
- package/dist/components/{PricingPage.d.ts → general-purpose/PricingPage.d.ts} +1 -1
- package/dist/components/{PricingPage.js → general-purpose/PricingPage.js} +2 -2
- package/dist/components/{PricingPlanCard.d.ts → general-purpose/PricingPlanCard.d.ts} +1 -1
- package/dist/components/{PricingPlanCard.js → general-purpose/PricingPlanCard.js} +8 -8
- package/dist/components/{PricingUsageCalculator.d.ts → general-purpose/PricingUsageCalculator.d.ts} +1 -1
- package/dist/components/{PricingUsageCalculator.js → general-purpose/PricingUsageCalculator.js} +6 -6
- package/dist/components/{ResizableSidePanel.d.ts → general-purpose/ResizableSidePanel.d.ts} +8 -2
- package/dist/components/{ResizableSidePanel.js → general-purpose/ResizableSidePanel.js} +14 -6
- package/dist/{ResponsiveSidebarShell-CsAh4NyL.d.ts → components/general-purpose/ResponsiveSidebarShell.d.ts} +2 -2
- package/dist/components/{ResponsiveSidebarShell.js → general-purpose/ResponsiveSidebarShell.js} +6 -6
- package/dist/components/{SettingsFormDialog.d.ts → general-purpose/SettingsFormDialog.d.ts} +1 -1
- package/dist/components/{SettingsFormDialog.js → general-purpose/SettingsFormDialog.js} +8 -7
- package/dist/components/{SetupChecklist.d.ts → general-purpose/SetupChecklist.d.ts} +4 -1
- package/dist/components/{SetupChecklist.js → general-purpose/SetupChecklist.js} +23 -17
- package/dist/components/{Shell.d.ts → general-purpose/Shell.d.ts} +1 -1
- package/dist/components/{Shell.js → general-purpose/Shell.js} +2 -2
- package/dist/components/{Terminal.d.ts → general-purpose/Terminal.d.ts} +3 -3
- package/dist/components/{Terminal.js → general-purpose/Terminal.js} +7 -7
- package/dist/components/{TestResults.d.ts → general-purpose/TestResults.d.ts} +2 -2
- package/dist/components/{TestResults.js → general-purpose/TestResults.js} +6 -6
- package/dist/components/{ThemeModeControl.d.ts → general-purpose/ThemeModeControl.d.ts} +1 -1
- package/dist/components/{ThemeModeControl.js → general-purpose/ThemeModeControl.js} +4 -4
- package/dist/components/{WebPreview.d.ts → general-purpose/WebPreview.d.ts} +4 -4
- package/dist/components/{WebPreview.js → general-purpose/WebPreview.js} +12 -12
- package/dist/components/{AgentConnection.d.ts → nanites/AgentConnection.d.ts} +2 -36
- package/dist/components/{AgentConnection.js → nanites/AgentConnection.js} +7 -149
- package/dist/components/{AgentToolDetail.d.ts → nanites/AgentToolDetail.d.ts} +4 -4
- package/dist/components/{AgentToolDetail.js → nanites/AgentToolDetail.js} +8 -8
- package/dist/components/{GithubMotionMark.d.ts → nanites/GithubMotionMark.d.ts} +1 -1
- package/dist/components/{GithubMotionMark.js → nanites/GithubMotionMark.js} +2 -2
- package/dist/components/{NaniteScene.d.ts → nanites/NaniteScene.d.ts} +1 -1
- package/dist/components/{NaniteScene.js → nanites/NaniteScene.js} +2 -2
- package/dist/{copy-button-7ttJAorN.js → copy-button-4YvddK4e.js} +1 -1
- package/dist/{copy-button-EBv_B9F6.d.ts → copy-button-C0JyjClr.d.ts} +1 -1
- package/dist/{format-S6uWyoSb.js → format-CmopcfqJ.js} +4 -1
- package/dist/mcp-server-U71zhxFF.js +26 -0
- package/dist/{navigation-link-Cob7KBlM.js → navigation-link-kqMa81v5.js} +5 -1
- package/dist/{progress-ring-BjqTZqBk.js → progress-ring-Dz_ztrW2.js} +1 -1
- package/dist/styles/activity-header.css +5 -1
- package/dist/styles/agent-activity-preview-overlay.css +43 -5
- package/dist/styles/app-frame.css +15 -0
- package/dist/styles/file-tree.css +17 -2
- package/dist/styles/index.css +3 -1
- package/dist/styles/mcp-server-picker.css +1 -3
- package/dist/styles/menu-disclosure-group.css +13 -0
- package/dist/styles/message-scroller.css +2 -3
- package/dist/styles/sources.css +8 -0
- package/dist/styles/think-execution-status.css +57 -0
- package/dist/styles/think-execution-workbench.css +1 -50
- package/dist/styles/think-full-app.css +1 -1
- package/dist/styles/think-routine-library.css +0 -27
- package/dist/styles/workspace-explorer.css +0 -9
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/BrowserLiveView.d.ts +0 -2
- package/dist/components/BrowserReplay.d.ts +0 -2
- package/dist/components/CodeBlock.d.ts +0 -2
- package/dist/components/Collapsible.d.ts +0 -2
- package/dist/components/Combobox.d.ts +0 -2
- package/dist/components/IconButton.d.ts +0 -2
- package/dist/components/Message.js +0 -2
- package/dist/components/PromptInput.d.ts +0 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +0 -2
- package/dist/components/SessionCompaction.d.ts +0 -2
- package/dist/components/ThinkChatToolParts.d.ts +0 -2
- package/dist/components/ThinkExecutionStatus.d.ts +0 -22
- package/dist/components/ThinkExecutionStatus.js +0 -36
- package/dist/components/ThinkRecoveryNotice.d.ts +0 -2
- package/dist/components/ThinkRoutineRuns.js +0 -76
- package/dist/components/ToggleGroup.d.ts +0 -2
- package/dist/components/WorkspaceFileView.js +0 -2
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import { n as mergeBaseClassName, t as cx } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Tooltip } from "
|
|
5
|
-
import { IconButton } from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { ThinkExecutionApproval, ThinkPendingApproval, getPausedExecution } from "./ThinkPendingApproval.js";
|
|
14
|
-
import { ToolApproval } from "./ToolApproval.js";
|
|
1
|
+
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { C as FileIcon, F as MonitorIcon, H as PlusIcon, J as SpinnerIcon, N as MicrophoneIcon, R as PaperclipIcon, X as StopIcon, Y as SquareIcon, a as ArrowUpIcon, d as CheckIcon, f as ChevronDownIcon, nt as WrenchIcon, rt as XIcon, tt as WarningIcon, w as FolderIcon } from "../../icons-B4mGvCvc.js";
|
|
3
|
+
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
6
|
+
import { Combobox } from "../foundations/Combobox.js";
|
|
7
|
+
import { Kbd } from "../foundations/Kbd.js";
|
|
8
|
+
import { Menu } from "../foundations/Menu.js";
|
|
9
|
+
import { Select } from "../foundations/Select.js";
|
|
10
|
+
import { Tabs } from "../foundations/Tabs.js";
|
|
11
|
+
import { t as AttachmentPreview } from "../../attachment-preview-1CXJvrmb.js";
|
|
12
|
+
import { i as formatErrorMessage, n as clamp, r as formatClock } from "../../format-CmopcfqJ.js";
|
|
15
13
|
import * as React from "react";
|
|
16
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
18
|
-
import { getToolApproval } from "@cloudflare/think/react";
|
|
19
|
-
//#region src/components/PromptInput.tsx
|
|
15
|
+
//#region src/components/ai-sdk/PromptInput.tsx
|
|
20
16
|
const PromptInputController = React.createContext(null);
|
|
21
17
|
const LocalAttachmentsContext = React.createContext(null);
|
|
22
18
|
function usePromptInputController() {
|
|
@@ -593,7 +589,7 @@ function PromptInputDictation({ voice, beforeStart, className, disabled, ref, ..
|
|
|
593
589
|
}
|
|
594
590
|
setIsStarting(true);
|
|
595
591
|
Promise.resolve().then(() => beforeStart?.(voice)).then(() => voice.start()).catch((reason) => {
|
|
596
|
-
setStartError(
|
|
592
|
+
setStartError(formatErrorMessage(reason));
|
|
597
593
|
}).finally(() => setIsStarting(false));
|
|
598
594
|
},
|
|
599
595
|
...props,
|
|
@@ -907,80 +903,14 @@ function PromptInputSubmit({ className, status = "ready", onStop, variant = "nor
|
|
|
907
903
|
children: children ?? (isQueueing ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : defaultSubmitIcon(status))
|
|
908
904
|
});
|
|
909
905
|
}
|
|
910
|
-
/**
|
|
911
|
-
* Resolve Think execution approvals that do not use the AI SDK
|
|
912
|
-
* `approval-requested` part: paused codemode executions and durable-pause
|
|
913
|
-
* approvals from `pendingApprovals()`. Pass the whole upstream Think agent
|
|
914
|
-
* stub; the component calls its client-callable RPCs directly:
|
|
915
|
-
*
|
|
916
|
-
* ```tsx
|
|
917
|
-
* <PromptInputApproval part={part} thinkStub={agent.stub} />
|
|
918
|
-
* ```
|
|
919
|
-
*
|
|
920
|
-
* On approve, upstream resumes or runs the parked execution and auto-continues
|
|
921
|
-
* the chat. Both RPCs are idempotent, so a stale click resolves to "already
|
|
922
|
-
* handled".
|
|
923
|
-
*/
|
|
924
|
-
/** The id a response must carry: the approval id, or the paused run's executionId. */
|
|
925
|
-
function getApprovalRequestId(part) {
|
|
926
|
-
if (part.state === "approval-requested") return getToolApproval(part)?.id;
|
|
927
|
-
return getPausedExecution(part)?.executionId;
|
|
928
|
-
}
|
|
929
|
-
/** Component-local identity: paused executions can ask for multiple approvals. */
|
|
930
|
-
function getApprovalStateKey(part) {
|
|
931
|
-
if (part.state === "approval-requested") return getToolApproval(part)?.id;
|
|
932
|
-
const paused = getPausedExecution(part);
|
|
933
|
-
if (!paused) return void 0;
|
|
934
|
-
const seq = paused.pending[0]?.seq;
|
|
935
|
-
return seq === void 0 ? paused.executionId : `${paused.executionId}:${seq}`;
|
|
936
|
-
}
|
|
937
|
-
/** Derives pending tool approvals straight from the messages — no app-owned shapes. */
|
|
938
|
-
function getPendingToolApprovals(messages, { pausedExecutions = false } = {}) {
|
|
939
|
-
const pending = [];
|
|
940
|
-
messages.forEach((message) => {
|
|
941
|
-
message.parts.forEach((part) => {
|
|
942
|
-
if (isToolUIPart(part) && (part.state === "approval-requested" || pausedExecutions && getPausedExecution(part))) pending.push(part);
|
|
943
|
-
});
|
|
944
|
-
});
|
|
945
|
-
return pending;
|
|
946
|
-
}
|
|
947
|
-
/**
|
|
948
|
-
* The composer's approval state: when a tool call awaits human approval the
|
|
949
|
-
* prompt input area becomes the confirmation. "Yes" approves on click; typing
|
|
950
|
-
* in the "No, and tell the agent what to do differently" row selects deny and
|
|
951
|
-
* sends the text as the native approval `reason`. Submit (or Enter) sends the
|
|
952
|
-
* current selection — approve by default.
|
|
953
|
-
*/
|
|
954
|
-
function PromptInputApproval({ part, approval: durableApproval, onRespond, thinkStub, onExecutionSettled, onSkip, question, count, className, ref, ...props }) {
|
|
955
|
-
const shared = {
|
|
956
|
-
className: cx("prompt-input__approval", className),
|
|
957
|
-
count,
|
|
958
|
-
onSkip,
|
|
959
|
-
question,
|
|
960
|
-
ref,
|
|
961
|
-
...props
|
|
962
|
-
};
|
|
963
|
-
if (part?.state === "approval-requested" && onRespond) return /* @__PURE__ */ jsx(ToolApproval, {
|
|
964
|
-
...shared,
|
|
965
|
-
part,
|
|
966
|
-
onRespond
|
|
967
|
-
});
|
|
968
|
-
if (part && thinkStub && getPausedExecution(part)) return /* @__PURE__ */ jsx(ThinkExecutionApproval, {
|
|
969
|
-
...shared,
|
|
970
|
-
part,
|
|
971
|
-
thinkStub,
|
|
972
|
-
onSettled: onExecutionSettled
|
|
973
|
-
});
|
|
974
|
-
if (durableApproval && thinkStub) return /* @__PURE__ */ jsx(ThinkPendingApproval, {
|
|
975
|
-
...shared,
|
|
976
|
-
approval: durableApproval,
|
|
977
|
-
thinkStub,
|
|
978
|
-
onSettled: onExecutionSettled
|
|
979
|
-
});
|
|
980
|
-
return null;
|
|
981
|
-
}
|
|
982
906
|
const PromptInputSelect = Select;
|
|
983
907
|
const PromptInputHoverCardContext = React.createContext(null);
|
|
908
|
+
function composePromptInputEventHandler(handler, followup) {
|
|
909
|
+
return (event) => {
|
|
910
|
+
handler?.(event);
|
|
911
|
+
if (!event.defaultPrevented) followup?.();
|
|
912
|
+
};
|
|
913
|
+
}
|
|
984
914
|
function PromptInputHoverCard({ openDelay = 0, closeDelay = 0, className, children, ref, ...props }) {
|
|
985
915
|
const [open, setOpen] = React.useState(false);
|
|
986
916
|
const timer = React.useRef(void 0);
|
|
@@ -1013,26 +943,26 @@ function PromptInputHoverCard({ openDelay = 0, closeDelay = 0, className, childr
|
|
|
1013
943
|
})
|
|
1014
944
|
});
|
|
1015
945
|
}
|
|
1016
|
-
function PromptInputHoverCardTrigger({ className, ref, ...props }) {
|
|
1017
|
-
const
|
|
946
|
+
function PromptInputHoverCardTrigger({ className, ref, onFocus, onBlur, onMouseEnter, onMouseLeave, ...props }) {
|
|
947
|
+
const context = React.useContext(PromptInputHoverCardContext);
|
|
1018
948
|
return /* @__PURE__ */ jsx("span", {
|
|
1019
949
|
ref,
|
|
1020
950
|
className: cx("prompt-input__hover-card-trigger", className),
|
|
1021
|
-
onFocus:
|
|
1022
|
-
onBlur:
|
|
1023
|
-
onMouseEnter:
|
|
1024
|
-
onMouseLeave:
|
|
951
|
+
onFocus: composePromptInputEventHandler(onFocus, context?.openNow),
|
|
952
|
+
onBlur: composePromptInputEventHandler(onBlur, context?.closeLater),
|
|
953
|
+
onMouseEnter: composePromptInputEventHandler(onMouseEnter, context?.openNow),
|
|
954
|
+
onMouseLeave: composePromptInputEventHandler(onMouseLeave, context?.closeLater),
|
|
1025
955
|
...props
|
|
1026
956
|
});
|
|
1027
957
|
}
|
|
1028
|
-
function PromptInputHoverCardContent({ className, ref, ...props }) {
|
|
1029
|
-
const
|
|
1030
|
-
if (!
|
|
958
|
+
function PromptInputHoverCardContent({ className, ref, onMouseEnter, onMouseLeave, ...props }) {
|
|
959
|
+
const context = React.useContext(PromptInputHoverCardContext);
|
|
960
|
+
if (!context?.open) return null;
|
|
1031
961
|
return /* @__PURE__ */ jsx("div", {
|
|
1032
962
|
ref,
|
|
1033
963
|
className: cx("prompt-input__hover-card-content", className),
|
|
1034
|
-
onMouseEnter:
|
|
1035
|
-
onMouseLeave:
|
|
964
|
+
onMouseEnter: composePromptInputEventHandler(onMouseEnter, context.openNow),
|
|
965
|
+
onMouseLeave: composePromptInputEventHandler(onMouseLeave, context.closeLater),
|
|
1036
966
|
...props
|
|
1037
967
|
});
|
|
1038
968
|
}
|
|
@@ -1067,34 +997,6 @@ const PromptInputCommandGroup = Combobox.Group;
|
|
|
1067
997
|
const PromptInputCommandGroupLabel = Combobox.GroupLabel;
|
|
1068
998
|
const PromptInputCommandItem = Combobox.Item;
|
|
1069
999
|
const PromptInputCommandSeparator = Combobox.Separator;
|
|
1070
|
-
/** Project whole upstream Agents MCP state into composer mention commands. */
|
|
1071
|
-
function mcpPromptInputCommands(mcp) {
|
|
1072
|
-
return Object.entries(mcp.servers).flatMap(([id, server]) => server.state === "ready" ? [{
|
|
1073
|
-
id: `mcp:${id}`,
|
|
1074
|
-
value: id,
|
|
1075
|
-
label: server.name,
|
|
1076
|
-
description: server.server_url,
|
|
1077
|
-
icon: /* @__PURE__ */ jsx(McpIcon, {}),
|
|
1078
|
-
keywords: [id, server.server_url],
|
|
1079
|
-
group: "Connected MCP servers",
|
|
1080
|
-
meta: "Connected"
|
|
1081
|
-
}] : []);
|
|
1082
|
-
}
|
|
1083
|
-
/** Project whole upstream skill descriptors into composer slash commands. */
|
|
1084
|
-
function skillPromptInputCommands(skills) {
|
|
1085
|
-
return skills.map((skill) => ({
|
|
1086
|
-
id: `skill:${skill.sourceId ?? "built-in"}:${skill.name}`,
|
|
1087
|
-
value: skill.name,
|
|
1088
|
-
label: skill.name,
|
|
1089
|
-
description: skill.description,
|
|
1090
|
-
icon: /* @__PURE__ */ jsx(BoxIcon, {}),
|
|
1091
|
-
...skill.sourceId ? {
|
|
1092
|
-
keywords: [skill.sourceId],
|
|
1093
|
-
meta: skill.sourceId
|
|
1094
|
-
} : {},
|
|
1095
|
-
group: "Skills"
|
|
1096
|
-
}));
|
|
1097
|
-
}
|
|
1098
1000
|
/**
|
|
1099
1001
|
* Controlled PromptInput textarea with slash-command discovery. The host owns
|
|
1100
1002
|
* both the command catalog and the draft policy applied after selection.
|
|
@@ -1384,4 +1286,4 @@ function createId() {
|
|
|
1384
1286
|
return globalThis.crypto?.randomUUID?.() ?? `prompt-input-${Date.now()}-${Math.random()}`;
|
|
1385
1287
|
}
|
|
1386
1288
|
//#endregion
|
|
1387
|
-
export { PromptInput, PromptInputActionAddAttachments, PromptInputActionAddScreenshot, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger,
|
|
1289
|
+
export { PromptInput, PromptInputActionAddAttachments, PromptInputActionAddScreenshot, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuItem, PromptInputActionMenuTrigger, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputCommand, PromptInputCommandComposer, PromptInputCommandEmpty, PromptInputCommandGroup, PromptInputCommandGroupLabel, PromptInputCommandInput, PromptInputCommandItem, PromptInputCommandList, PromptInputCommandSeparator, PromptInputContextSelector, PromptInputDictation, PromptInputFooter, PromptInputHeader, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardTrigger, PromptInputPermissionSelector, PromptInputProvider, PromptInputReferences, PromptInputSelect, PromptInputSubmit, PromptInputTab, PromptInputTabBody, PromptInputTabItem, PromptInputTabLabel, PromptInputTabsList, PromptInputTextarea, PromptInputTools, PromptInputTray, usePromptInputAttachments, usePromptInputController, useProviderAttachments };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as ButtonProps } from "
|
|
2
|
-
import {
|
|
3
|
-
import { ScrollArea } from "
|
|
1
|
+
import { r as ButtonProps } from "../../Button-CZt3yywF.js";
|
|
2
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
-
//#region src/components/Queue.d.ts
|
|
6
|
+
//#region src/components/ai-sdk/Queue.d.ts
|
|
7
7
|
interface QueueTodo {
|
|
8
8
|
id: string;
|
|
9
9
|
title: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Badge } from "
|
|
6
|
-
import { ScrollArea } from "
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { C as FileIcon, d as CheckIcon, m as ChevronRightIcon, v as DotIcon } from "../../icons-B4mGvCvc.js";
|
|
4
|
+
import { Button } from "../foundations/Button.js";
|
|
5
|
+
import { Badge } from "../foundations/Badge.js";
|
|
6
|
+
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
//#region src/components/Queue.tsx
|
|
9
|
+
//#region src/components/ai-sdk/Queue.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Container for a grouped list of queue items (e.g. messages, todos,
|
|
12
12
|
* attachments). Compose with QueueSection as direct children. Adapted from
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/components/Reasoning.d.ts
|
|
4
|
+
//#region src/components/ai-sdk/Reasoning.d.ts
|
|
5
5
|
interface ReasoningContextValue {
|
|
6
6
|
isStreaming: boolean;
|
|
7
7
|
isOpen: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import { Collapsible } from "
|
|
3
|
-
import { J as SpinnerIcon } from "
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { J as SpinnerIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import { ActivityContent, ActivityText, ActivityTrigger } from "./Activity.js";
|
|
5
|
-
import {
|
|
5
|
+
import { MessageResponse } from "./Message.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
//#region src/components/Reasoning.tsx
|
|
8
|
+
//#region src/components/ai-sdk/Reasoning.tsx
|
|
9
9
|
const ReasoningContext = React.createContext(null);
|
|
10
10
|
const AUTO_CLOSE_DELAY_MS = 1e3;
|
|
11
11
|
const MS_IN_S = 1e3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/components/Sources.d.ts
|
|
4
|
+
//#region src/components/ai-sdk/Sources.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Sources root. Wraps Base UI Collapsible.Root.
|
|
7
7
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import { Collapsible } from "
|
|
3
|
-
import { k as LinkIcon, m as ChevronRightIcon } from "
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { k as LinkIcon, m as ChevronRightIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/Sources.tsx
|
|
6
|
+
//#region src/components/ai-sdk/Sources.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Displays a collapsible list of citations used by an AI to generate a
|
|
9
9
|
* response. Compose with SourcesTrigger, SourcesContent, and one or more
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/components/Task.d.ts
|
|
4
|
+
//#region src/components/ai-sdk/Task.d.ts
|
|
5
5
|
interface TaskProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "unstyled"> {}
|
|
6
6
|
/**
|
|
7
7
|
* A collapsible task/workflow list. Compose with TaskTrigger, TaskContent,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import { Collapsible } from "
|
|
3
|
-
import { C as FileIcon, G as SearchIcon, m as ChevronRightIcon } from "
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { C as FileIcon, G as SearchIcon, m as ChevronRightIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/Task.tsx
|
|
6
|
+
//#region src/components/ai-sdk/Task.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A collapsible task/workflow list. Compose with TaskTrigger, TaskContent,
|
|
9
9
|
* TaskItem, and TaskItemFile to show structured progress for a multi-step
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ChatAddToolApproveResponseFunction, DynamicToolUIPart, ToolUIPart } from "ai";
|
|
3
3
|
|
|
4
|
-
//#region src/components/ToolApproval.d.ts
|
|
4
|
+
//#region src/components/ai-sdk/ToolApproval.d.ts
|
|
5
5
|
interface ToolApprovalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "part"> {
|
|
6
6
|
/** Whole upstream AI SDK tool part. Non-request states render nothing. */
|
|
7
7
|
part: ToolUIPart | DynamicToolUIPart;
|
|
@@ -2,7 +2,7 @@ import { Approval, ApprovalCount, ApprovalDecision, ApprovalHeader, ApprovalInpu
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { getToolName } from "ai";
|
|
5
|
-
//#region src/components/ToolApproval.tsx
|
|
5
|
+
//#region src/components/ai-sdk/ToolApproval.tsx
|
|
6
6
|
/** Actionable adapter for an AI SDK `approval-requested` tool part. */
|
|
7
7
|
function ToolApproval({ className, count, onRespond, onSkip, part, question, ref, ...props }) {
|
|
8
8
|
if (part.state !== "approval-requested") return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
2
2
|
|
|
3
|
-
//#region src/components/ToolInvocation.d.ts
|
|
3
|
+
//#region src/components/ai-sdk/ToolInvocation.d.ts
|
|
4
4
|
/** One whole static or dynamic AI SDK tool UI part. */
|
|
5
5
|
type ToolInvocationPart = ToolUIPart | DynamicToolUIPart;
|
|
6
6
|
interface ToolInvocationProps {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Activity, ActivityContent, ActivityPanel, ActivityTrigger } from "./Activity.js";
|
|
2
|
-
import { getToolDisplayName, isToolPartFailed, isToolPartWorking } from "./
|
|
3
|
-
import { t as summarizeToolInput } from "
|
|
2
|
+
import { getToolDisplayName, isToolPartFailed, isToolPartWorking } from "./ToolPart.js";
|
|
3
|
+
import { t as summarizeToolInput } from "../../summarize-tool-input-CqTcGRYy.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { getToolName } from "ai";
|
|
6
|
-
|
|
7
|
-
//#region src/components/ToolInvocation.tsx
|
|
6
|
+
//#region src/components/ai-sdk/ToolInvocation.tsx
|
|
8
7
|
function formatToolValue(value) {
|
|
9
8
|
if (value === void 0) return void 0;
|
|
10
9
|
return typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
@@ -33,7 +32,7 @@ function describeToolPart(part) {
|
|
|
33
32
|
action = `Running ${name}`;
|
|
34
33
|
break;
|
|
35
34
|
}
|
|
36
|
-
const detail = summarizeToolInput(
|
|
35
|
+
const detail = summarizeToolInput(part.input);
|
|
37
36
|
return detail ? `${action} · ${detail}` : action;
|
|
38
37
|
}
|
|
39
38
|
/**
|
|
@@ -46,19 +45,18 @@ function describeToolPart(part) {
|
|
|
46
45
|
* for known workspace, browser, fetch, session, skill, and execute tools.
|
|
47
46
|
*/
|
|
48
47
|
function ToolInvocation({ part, defaultOpen, isStreaming }) {
|
|
49
|
-
const state = getToolPartState(part);
|
|
50
48
|
const failed = isToolPartFailed(part);
|
|
51
49
|
const deniedReason = part.state === "output-denied" ? part.approval.reason : void 0;
|
|
52
|
-
const output = state === "error" ? part.errorText : state === "denied" ? deniedReason ?? "Denied" : formatToolValue(
|
|
50
|
+
const output = part.state === "output-error" ? part.errorText : part.state === "output-denied" ? deniedReason ?? "Denied" : part.state === "output-available" ? formatToolValue(part.output) : void 0;
|
|
53
51
|
const inputStatus = part.state === "approval-requested" ? "awaiting approval" : part.state === "approval-responded" ? part.approval.approved ? "approved" : "denied" : void 0;
|
|
54
|
-
const outputStatus = state === "denied" ? "denied" : failed ? "error" : part.state === "output-available" && part.preliminary ? "preliminary" : void 0;
|
|
52
|
+
const outputStatus = part.state === "output-denied" ? "denied" : failed ? "error" : part.state === "output-available" && part.preliminary ? "preliminary" : void 0;
|
|
55
53
|
return /* @__PURE__ */ jsxs(Activity, {
|
|
56
54
|
isStreaming: isStreaming ?? isToolPartWorking(part),
|
|
57
55
|
defaultOpen,
|
|
58
56
|
stateKey: part.toolCallId,
|
|
59
57
|
children: [/* @__PURE__ */ jsx(ActivityTrigger, { action: describeToolPart(part) }), /* @__PURE__ */ jsxs(ActivityContent, { children: [/* @__PURE__ */ jsx(ActivityPanel, {
|
|
60
58
|
label: part.title ?? getToolName(part),
|
|
61
|
-
text: formatToolValue(
|
|
59
|
+
text: formatToolValue(part.input),
|
|
62
60
|
status: inputStatus,
|
|
63
61
|
error: inputStatus === "denied"
|
|
64
62
|
}), output !== void 0 ? /* @__PURE__ */ jsx(ActivityPanel, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ai-sdk/ToolPart.d.ts
|
|
4
|
+
type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
5
|
+
/** Prefer AI SDK's provider/tool-authored title over its transport-facing key. */
|
|
6
|
+
declare function getToolDisplayName(part: AnyToolUIPart): string;
|
|
7
|
+
/** True while an AI SDK tool part still expects input, approval, or a final output. */
|
|
8
|
+
declare function isToolPartWorking(part: AnyToolUIPart): boolean;
|
|
9
|
+
declare function isToolPartFailed(part: AnyToolUIPart): boolean;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AnyToolUIPart, getToolDisplayName, isToolPartFailed, isToolPartWorking };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getToolName } from "ai";
|
|
2
|
+
//#region src/components/ai-sdk/ToolPart.ts
|
|
3
|
+
/** Prefer AI SDK's provider/tool-authored title over its transport-facing key. */
|
|
4
|
+
function getToolDisplayName(part) {
|
|
5
|
+
return part.title ?? getToolName(part);
|
|
6
|
+
}
|
|
7
|
+
/** True while an AI SDK tool part still expects input, approval, or a final output. */
|
|
8
|
+
function isToolPartWorking(part) {
|
|
9
|
+
return part.state === "input-streaming" || part.state === "input-available" || part.state === "approval-requested" || part.state === "approval-responded" && part.approval.approved || part.state === "output-available" && part.preliminary === true;
|
|
10
|
+
}
|
|
11
|
+
function isToolPartFailed(part) {
|
|
12
|
+
return part.state === "output-error" || part.state === "output-denied";
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getToolDisplayName, isToolPartFailed, isToolPartWorking };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { u as ModelSelectorLogo } from "
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { J as SpinnerIcon } from "../../icons-B4mGvCvc.js";
|
|
3
|
+
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { u as ModelSelectorLogo } from "../../ModelSelector-DZcpUBgn.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/ChatGptSignInScreen.tsx
|
|
7
|
+
//#region src/components/extension/ChatGptSignInScreen.tsx
|
|
8
8
|
/** Full-screen ChatGPT authentication prompt for MCP-B onboarding. */
|
|
9
9
|
function ChatGptSignInScreen({ busy = false, error = false, label = "Sign in with ChatGPT", title = "Welcome to MCP-B", brandName = "SigVelo", brandLogo = /* @__PURE__ */ jsx(SigVeloMark, {}), className, onPointerLeave, onPointerMove, onSignIn, secondaryAction, ref, ...props }) {
|
|
10
10
|
const handlePointerMove = (event) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as MenuProps } from "
|
|
2
|
-
import { CodexModel } from "
|
|
1
|
+
import { d as MenuProps } from "../../Menu-DVmjBIuM.js";
|
|
2
|
+
import { CodexModel } from "../../utils/codex-model-catalog.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/components/CodexModelSelector.d.ts
|
|
5
|
+
//#region src/components/extension/CodexModelSelector.d.ts
|
|
6
6
|
type ModelId<ModelT extends CodexModel> = ModelT["id"];
|
|
7
7
|
type ReasoningEffort<ModelT extends CodexModel> = ModelT["supportedReasoningEfforts"][number]["reasoningEffort"];
|
|
8
8
|
type ServiceTier<ModelT extends CodexModel> = ModelT["serviceTiers"][number]["id"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as cx } from "
|
|
2
|
-
import { W as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, m as ChevronRightIcon } from "
|
|
3
|
-
import { Tooltip } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { W as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, m as ChevronRightIcon } from "../../icons-B4mGvCvc.js";
|
|
3
|
+
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
5
|
+
import { a as titleCase } from "../../format-CmopcfqJ.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
//#region src/components/CodexModelSelector.tsx
|
|
8
|
+
//#region src/components/extension/CodexModelSelector.tsx
|
|
9
9
|
const defaultServiceTierValue = "codex-default-service-tier";
|
|
10
10
|
/**
|
|
11
11
|
* A compact Codex-style response settings picker: model, reasoning effort,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
2
|
+
import { Button } from "../foundations/Button.js";
|
|
3
|
+
import { Menu } from "../foundations/Menu.js";
|
|
4
|
+
import { i as formatErrorMessage } from "../../format-CmopcfqJ.js";
|
|
5
|
+
import { Avatar } from "../foundations/Avatar.js";
|
|
5
6
|
import * as React from "react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/ConversationTabPicker.tsx
|
|
8
|
+
//#region src/components/extension/ConversationTabPicker.tsx
|
|
8
9
|
function tabFallback(tab) {
|
|
9
10
|
const domain = tabDomain(tab);
|
|
10
11
|
if (domain && domain !== `Tab ${tab.id}`) return domain.charAt(0).toUpperCase();
|
|
@@ -61,7 +62,7 @@ function ConversationTabPickerMenu({ tabs, onSelect, maxVisible = 3, groupLabel
|
|
|
61
62
|
setAction(null);
|
|
62
63
|
setOpen(false);
|
|
63
64
|
} catch (cause) {
|
|
64
|
-
setAction({ error:
|
|
65
|
+
setAction({ error: formatErrorMessage(cause) });
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
return /* @__PURE__ */ jsxs(Menu.Root, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
3
3
|
|
|
4
|
-
//#region src/components/Accordion.d.ts
|
|
4
|
+
//#region src/components/foundations/Accordion.d.ts
|
|
5
5
|
interface AccordionProps extends React.ComponentPropsWithRef<typeof Accordion$1.Root> {}
|
|
6
6
|
interface AccordionItemProps extends React.ComponentPropsWithRef<typeof Accordion$1.Item> {}
|
|
7
7
|
interface AccordionTriggerProps extends React.ComponentPropsWithRef<typeof Accordion$1.Trigger> {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as mergeBaseClassName } from "
|
|
1
|
+
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
5
|
+
//#region src/components/foundations/Accordion.tsx
|
|
6
6
|
/**
|
|
7
7
|
* An accordion component for showing collapsible content sections.
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor } from "
|
|
1
|
+
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor } from "../../Button-CZt3yywF.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
4
4
|
|
|
5
|
-
//#region src/components/AlertDialog.d.ts
|
|
5
|
+
//#region src/components/foundations/AlertDialog.d.ts
|
|
6
6
|
interface AlertDialogProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Root> {}
|
|
7
7
|
interface AlertDialogTriggerProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Trigger> {}
|
|
8
8
|
interface AlertDialogBackdropProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Backdrop> {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as mergeBaseClassName } from "
|
|
1
|
+
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { buttonVariants } from "./Button.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
6
|
-
//#region src/components/AlertDialog.tsx
|
|
6
|
+
//#region src/components/foundations/AlertDialog.tsx
|
|
7
7
|
/**
|
|
8
8
|
* An alert dialog component for important confirmations and warnings.
|
|
9
9
|
* Unlike regular dialogs, alert dialogs require explicit user action to dismiss.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AvatarFallbackProps, AvatarImageProps, AvatarRootProps } from "./Avatar.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/components/AppIcon.d.ts
|
|
4
|
+
//#region src/components/foundations/AppIcon.d.ts
|
|
5
5
|
type AppIconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
type AppIconVariant = "artwork" | "surface" | "contrast";
|
|
7
7
|
interface AppIconRootProps extends Omit<AvatarRootProps, "shape" | "size"> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as mergeBaseClassName } from "
|
|
1
|
+
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Avatar } from "./Avatar.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppIcon.tsx
|
|
5
|
+
//#region src/components/foundations/AppIcon.tsx
|
|
6
6
|
/** Rounded app artwork with Base UI's image-loading fallback behavior. */
|
|
7
7
|
function AppIconRoot({ className, size = "md", variant = "artwork", ref, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(Avatar.Root, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as mergeBaseClassName } from "
|
|
1
|
+
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
|
|
5
|
-
//#region src/components/Autocomplete.tsx
|
|
5
|
+
//#region src/components/foundations/Autocomplete.tsx
|
|
6
6
|
function Input({ className, ref, ...props }) {
|
|
7
7
|
const classes = mergeBaseClassName("autocomplete__input", className);
|
|
8
8
|
return /* @__PURE__ */ jsx(Autocomplete$1.Input, {
|