@mcp-b/react-components 0.63.0 → 0.64.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/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
package/dist/icons-GoybMAB2.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, Bookmark, Box, Brain, CalendarDays, Check, ChevronDown, ChevronRight, CircleStop, CodeXml, Copy, Dot, Download, Ellipsis, EllipsisVertical, Eye, EyeOff, File, Folder, FolderOpen, Info, Keyboard, Laptop, Link2, ListRestart, LoaderCircle, Lock, Mail, Maximize2, MessageSquare, Mic, Minus, Monitor, Moon, PanelLeft, Paperclip, Pause, Pencil, Pin, Play, Plus, Puzzle, RefreshCw, Search, Split, Square, Sun, Target, Terminal, Trash2, TriangleAlert, User, Users, Wrench, X } from "lucide-react";
|
|
3
|
-
import { SiDiscord, SiModelcontextprotocol } from "react-icons/si";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/_internal/icons.tsx
|
|
6
|
-
function icon(Component) {
|
|
7
|
-
return function DesignSystemIcon({ size = 16, strokeWidth = 1.75, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
-
size,
|
|
10
|
-
strokeWidth,
|
|
11
|
-
"aria-hidden": "true",
|
|
12
|
-
focusable: "false",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function brandIcon(Component) {
|
|
18
|
-
return function DesignSystemBrandIcon({ size = 16, ...props }) {
|
|
19
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
20
|
-
size,
|
|
21
|
-
"aria-hidden": "true",
|
|
22
|
-
focusable: "false",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const ChevronRightIcon = icon(ChevronRight);
|
|
28
|
-
const ChevronDownIcon = icon(ChevronDown);
|
|
29
|
-
const CheckIcon = icon(Check);
|
|
30
|
-
const CodeIcon = icon(CodeXml);
|
|
31
|
-
const XIcon = icon(X);
|
|
32
|
-
const PencilIcon = icon(Pencil);
|
|
33
|
-
const CopyIcon = icon(Copy);
|
|
34
|
-
const EyeIcon = icon(Eye);
|
|
35
|
-
const EyeOffIcon = icon(EyeOff);
|
|
36
|
-
const FolderIcon = icon(Folder);
|
|
37
|
-
const FolderOpenIcon = icon(FolderOpen);
|
|
38
|
-
const FileIcon = icon(File);
|
|
39
|
-
const PaperclipIcon = icon(Paperclip);
|
|
40
|
-
const MicrophoneIcon = icon(Mic);
|
|
41
|
-
const StopIcon = icon(CircleStop);
|
|
42
|
-
const PlusIcon = icon(Plus);
|
|
43
|
-
const MinusIcon = icon(Minus);
|
|
44
|
-
const PlayIcon = icon(Play);
|
|
45
|
-
const PauseIcon = icon(Pause);
|
|
46
|
-
const SquareIcon = icon(Square);
|
|
47
|
-
const SplitIcon = icon(Split);
|
|
48
|
-
const ArrowLeftIcon = icon(ArrowLeft);
|
|
49
|
-
const ArrowRightIcon = icon(ArrowRight);
|
|
50
|
-
const ArrowDownIcon = icon(ArrowDown);
|
|
51
|
-
const ArrowUpIcon = icon(ArrowUp);
|
|
52
|
-
const ArrowUpRightIcon = icon(ArrowUpRight);
|
|
53
|
-
const BookmarkIcon = icon(Bookmark);
|
|
54
|
-
const ArchiveIcon = icon(Archive);
|
|
55
|
-
const DownloadIcon = icon(Download);
|
|
56
|
-
const RefreshIcon = icon(RefreshCw);
|
|
57
|
-
const DotIcon = icon(Dot);
|
|
58
|
-
const EllipsisIcon = icon(Ellipsis);
|
|
59
|
-
function SpinnerIcon({ className, size = 16, strokeWidth = 1.75, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
61
|
-
size,
|
|
62
|
-
strokeWidth,
|
|
63
|
-
"aria-hidden": "true",
|
|
64
|
-
focusable: "false",
|
|
65
|
-
className: cx("sigvelo-icon--spinner", className),
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
const SearchIcon = icon(Search);
|
|
70
|
-
const SidebarIcon = icon(PanelLeft);
|
|
71
|
-
const TerminalIcon = icon(Terminal);
|
|
72
|
-
const LinkIcon = icon(Link2);
|
|
73
|
-
const KeyboardIcon = icon(Keyboard);
|
|
74
|
-
const QueueIcon = icon(ListRestart);
|
|
75
|
-
const TrashIcon = icon(Trash2);
|
|
76
|
-
const WarningIcon = icon(TriangleAlert);
|
|
77
|
-
const BoxIcon = icon(Box);
|
|
78
|
-
const BrainIcon = icon(Brain);
|
|
79
|
-
const CalendarIcon = icon(CalendarDays);
|
|
80
|
-
const WrenchIcon = icon(Wrench);
|
|
81
|
-
const InfoIcon = icon(Info);
|
|
82
|
-
const MonitorIcon = icon(Monitor);
|
|
83
|
-
const MessageSquareIcon = icon(MessageSquare);
|
|
84
|
-
const MailIcon = icon(Mail);
|
|
85
|
-
const UserIcon = icon(User);
|
|
86
|
-
const UsersIcon = icon(Users);
|
|
87
|
-
const McpIcon = brandIcon(SiModelcontextprotocol);
|
|
88
|
-
/** Discord Blurple. Callers override with `color` or a `className` that sets color. */
|
|
89
|
-
function DiscordIcon({ size = 16, color = "#5865F2", className, ...props }) {
|
|
90
|
-
return /* @__PURE__ */ jsx(SiDiscord, {
|
|
91
|
-
size,
|
|
92
|
-
color,
|
|
93
|
-
"aria-hidden": "true",
|
|
94
|
-
focusable: "false",
|
|
95
|
-
className: cx("sigvelo-brand-mark", "sigvelo-brand-mark--discord", className),
|
|
96
|
-
...props
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/** Four-color Slack hash. Official fills live on the paths, not currentColor. */
|
|
100
|
-
function SlackIcon({ size = 16, className, ...props }) {
|
|
101
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
102
|
-
width: size,
|
|
103
|
-
height: size,
|
|
104
|
-
viewBox: "0 0 200 200",
|
|
105
|
-
fill: "none",
|
|
106
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
107
|
-
"aria-hidden": "true",
|
|
108
|
-
focusable: "false",
|
|
109
|
-
className: cx("sigvelo-brand-mark", "sigvelo-brand-mark--colorful", className),
|
|
110
|
-
...props,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ jsx("path", {
|
|
113
|
-
d: "M53.0056 121.477C53.0056 130.921 45.3784 138.555 35.9413 138.555C26.5042 138.555 18.877 130.921 18.877 121.477C18.877 112.032 26.5042 104.398 35.9413 104.398H53.0056V121.477ZM61.5378 121.477C61.5378 112.032 69.165 104.398 78.6021 104.398C88.0392 104.398 95.6664 112.032 95.6664 121.477V164.172C95.6664 173.617 88.0392 181.25 78.6021 181.25C69.165 181.25 61.5378 173.617 61.5378 164.172V121.477Z",
|
|
114
|
-
fill: "#E01E5A"
|
|
115
|
-
}),
|
|
116
|
-
/* @__PURE__ */ jsx("path", {
|
|
117
|
-
d: "M78.6044 52.9062C69.1673 52.9062 61.5401 45.2728 61.5401 35.8281C61.5401 26.3834 69.1673 18.75 78.6044 18.75C88.0415 18.75 95.6688 26.3834 95.6688 35.8281V52.9062H78.6044ZM78.6044 61.5747C88.0415 61.5747 95.6688 69.2081 95.6688 78.6528C95.6688 88.0975 88.0415 95.7309 78.6044 95.7309H35.8143C26.3772 95.7309 18.75 88.0975 18.75 78.6528C18.75 69.2081 26.3772 61.5747 35.8143 61.5747H78.6044Z",
|
|
118
|
-
fill: "#36C5F0"
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ jsx("path", {
|
|
121
|
-
d: "M146.991 78.6528C146.991 69.2081 154.618 61.5747 164.055 61.5747C173.492 61.5747 181.12 69.2081 181.12 78.6528C181.12 88.0975 173.492 95.7309 164.055 95.7309H146.991V78.6528ZM138.459 78.6528C138.459 88.0975 130.831 95.7309 121.394 95.7309C111.957 95.7309 104.33 88.0975 104.33 78.6528V35.8281C104.33 26.3834 111.957 18.75 121.394 18.75C130.831 18.75 138.459 26.3834 138.459 35.8281V78.6528Z",
|
|
122
|
-
fill: "#2EB67D"
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ jsx("path", {
|
|
125
|
-
d: "M121.394 147.094C130.831 147.094 138.459 154.727 138.459 164.172C138.459 173.617 130.831 181.25 121.394 181.25C111.957 181.25 104.33 173.617 104.33 164.172V147.094H121.394ZM121.394 138.555C111.957 138.555 104.33 130.921 104.33 121.477C104.33 112.032 111.957 104.398 121.394 104.398H164.184C173.622 104.398 181.249 112.032 181.249 121.477C181.249 130.921 173.622 138.555 164.184 138.555H121.394Z",
|
|
126
|
-
fill: "#ECB22E"
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
const MoonIcon = icon(Moon);
|
|
132
|
-
const SunIcon = icon(Sun);
|
|
133
|
-
const TargetIcon = icon(Target);
|
|
134
|
-
const MaximizeIcon = icon(Maximize2);
|
|
135
|
-
const EllipsisVerticalIcon = icon(EllipsisVertical);
|
|
136
|
-
const LaptopIcon = icon(Laptop);
|
|
137
|
-
const LockIcon = icon(Lock);
|
|
138
|
-
const PinIcon = icon(Pin);
|
|
139
|
-
const PuzzleIcon = icon(Puzzle);
|
|
140
|
-
//#endregion
|
|
141
|
-
export { SquareIcon as $, LockIcon as A, PauseIcon as B, FileIcon as C, KeyboardIcon as D, InfoIcon as E, MicrophoneIcon as F, PuzzleIcon as G, PinIcon as H, MinusIcon as I, SearchIcon as J, QueueIcon as K, MonitorIcon as L, MaximizeIcon as M, McpIcon as N, LaptopIcon as O, MessageSquareIcon as P, SplitIcon as Q, MoonIcon as R, EyeOffIcon as S, FolderOpenIcon as T, PlayIcon as U, PencilIcon as V, PlusIcon as W, SlackIcon as X, SidebarIcon as Y, SpinnerIcon as Z, DotIcon as _, ArrowUpIcon as a, UserIcon as at, EllipsisVerticalIcon as b, BoxIcon as c, WrenchIcon as ct, CheckIcon as d, StopIcon as et, ChevronDownIcon as f, DiscordIcon as g, CopyIcon as h, ArrowRightIcon as i, TrashIcon as it, MailIcon as j, LinkIcon as k, BrainIcon as l, XIcon as lt, CodeIcon as m, ArrowDownIcon as n, TargetIcon as nt, ArrowUpRightIcon as o, UsersIcon as ot, ChevronRightIcon as p, RefreshIcon as q, ArrowLeftIcon as r, TerminalIcon as rt, BookmarkIcon as s, WarningIcon as st, ArchiveIcon as t, SunIcon as tt, CalendarIcon as u, DownloadIcon as v, FolderIcon as w, EyeIcon as x, EllipsisIcon as y, PaperclipIcon as z };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { n as clamp } from "./format-CWaZEp5o.js";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/_internal/progress-ring.tsx
|
|
4
|
-
/**
|
|
5
|
-
* Bare single-fraction progress ring shared by the Context usage trigger and
|
|
6
|
-
* the plan summary pill. Decorative: callers own the accessible label.
|
|
7
|
-
*/
|
|
8
|
-
function ProgressRing({ percent, size, stroke }) {
|
|
9
|
-
const radius = (size - stroke) / 2;
|
|
10
|
-
const circumference = 2 * Math.PI * radius;
|
|
11
|
-
const offset = circumference - clamp(percent, 0, 100) / 100 * circumference;
|
|
12
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
13
|
-
width: size,
|
|
14
|
-
height: size,
|
|
15
|
-
viewBox: `0 0 ${size} ${size}`,
|
|
16
|
-
focusable: "false",
|
|
17
|
-
"aria-hidden": "true",
|
|
18
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
19
|
-
cx: size / 2,
|
|
20
|
-
cy: size / 2,
|
|
21
|
-
r: radius,
|
|
22
|
-
fill: "none",
|
|
23
|
-
stroke: "var(--sigvelo-color-neutral-border-subtle)",
|
|
24
|
-
strokeWidth: stroke
|
|
25
|
-
}), /* @__PURE__ */ jsx("circle", {
|
|
26
|
-
cx: size / 2,
|
|
27
|
-
cy: size / 2,
|
|
28
|
-
r: radius,
|
|
29
|
-
fill: "none",
|
|
30
|
-
stroke: "var(--sigvelo-color-primary-bg)",
|
|
31
|
-
strokeWidth: stroke,
|
|
32
|
-
strokeDasharray: circumference,
|
|
33
|
-
strokeDashoffset: offset,
|
|
34
|
-
strokeLinecap: "round",
|
|
35
|
-
transform: `rotate(-90 ${size / 2} ${size / 2})`
|
|
36
|
-
})]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
export { ProgressRing as t };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/_internal/provider-logos.tsx
|
|
5
|
-
function Svg({ children, size = 16, fill = "currentColor", className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
7
|
-
width: size,
|
|
8
|
-
height: size,
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
fill,
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
-
"aria-hidden": "true",
|
|
13
|
-
focusable: "false",
|
|
14
|
-
className: cx("sigvelo-brand-mark", className),
|
|
15
|
-
...props,
|
|
16
|
-
children
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const OpenAILogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
20
|
-
...props,
|
|
21
|
-
children: /* @__PURE__ */ jsx("path", { d: "M22.28 9.81a5.99 5.99 0 0 0-.52-4.91 6.05 6.05 0 0 0-6.52-2.9A6.05 6.05 0 0 0 10.58 0a6.05 6.05 0 0 0-5.77 4.18 5.99 5.99 0 0 0-4 2.9 6.05 6.05 0 0 0 .74 7.09 5.99 5.99 0 0 0 .52 4.91 6.05 6.05 0 0 0 6.52 2.9A5.99 5.99 0 0 0 13.25 24a6.05 6.05 0 0 0 5.77-4.19 5.99 5.99 0 0 0 4-2.9 6.05 6.05 0 0 0-.74-7.1ZM13.25 22.44a4.48 4.48 0 0 1-2.88-1.04l.14-.08 4.79-2.76a.78.78 0 0 0 .39-.68v-6.75l2.02 1.17c.02 0 .04.03.04.05v5.58a4.5 4.5 0 0 1-4.5 4.5ZM3.57 18.3a4.5 4.5 0 0 1-.54-3.03l.14.09 4.79 2.76a.78.78 0 0 0 .78 0l5.85-3.37v2.33c0 .02 0 .04-.03.06L9.72 19.94a4.5 4.5 0 0 1-6.15-1.64ZM2.31 7.88a4.48 4.48 0 0 1 2.35-1.97v5.69a.78.78 0 0 0 .39.67l5.83 3.36-2.02 1.17a.07.07 0 0 1-.07 0l-4.83-2.8A4.5 4.5 0 0 1 2.3 7.9Zm16.64 3.87L13.1 8.37l2.02-1.17c.02 0 .05-.01.07 0l4.83 2.8a4.5 4.5 0 0 1-.67 8.11V12.4a.77.77 0 0 0-.4-.66Zm2-3.03-.14-.09-4.78-2.78a.78.78 0 0 0-.79 0L9.4 9.25V6.92c0-.02 0-.04.02-.05l4.83-2.79a4.5 4.5 0 0 1 6.68 4.66Zm-12.68 4.17-2.02-1.17a.07.07 0 0 1-.04-.06V6.1a4.5 4.5 0 0 1 7.38-3.45l-.14.08L8.66 5.5a.78.78 0 0 0-.4.68v6.74Zm1.1-2.36 2.6-1.5 2.61 1.5v3l-2.6 1.5-2.6-1.5Z" })
|
|
22
|
-
});
|
|
23
|
-
const AnthropicLogo = ({ className, ...props }) => /* @__PURE__ */ jsxs(Svg, {
|
|
24
|
-
className: cx("sigvelo-brand-mark--colorful", className),
|
|
25
|
-
fill: "#D97757",
|
|
26
|
-
...props,
|
|
27
|
-
children: [/* @__PURE__ */ jsx("path", { d: "M13.83 4H17.3L24 20h-3.47l-1.37-3.52h-7L10.82 20H7.36ZM13.25 13.58h4.8l-2.4-6.15Z" }), /* @__PURE__ */ jsx("path", { d: "M0 4h3.47l6.7 16H6.7Z" })]
|
|
28
|
-
});
|
|
29
|
-
const GoogleLogo = ({ className, ...props }) => /* @__PURE__ */ jsxs(Svg, {
|
|
30
|
-
className: cx("sigvelo-brand-mark--colorful", className),
|
|
31
|
-
fill: "none",
|
|
32
|
-
...props,
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ jsx("path", {
|
|
35
|
-
fill: "#4285F4",
|
|
36
|
-
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ jsx("path", {
|
|
39
|
-
fill: "#34A853",
|
|
40
|
-
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ jsx("path", {
|
|
43
|
-
fill: "#FBBC05",
|
|
44
|
-
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ jsx("path", {
|
|
47
|
-
fill: "#EA4335",
|
|
48
|
-
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
const MetaLogo = ({ className, ...props }) => /* @__PURE__ */ jsx(Svg, {
|
|
53
|
-
className: cx("sigvelo-brand-mark--colorful", className),
|
|
54
|
-
fill: "#0668E1",
|
|
55
|
-
...props,
|
|
56
|
-
children: /* @__PURE__ */ jsx("path", { d: "M2 12.5c0-3.5 1.8-6.5 4.4-6.5 1.8 0 3.2 1.3 4.9 3.8 2.2 3.2 3.3 5 4.6 5 1 0 1.5-.8 1.5-2.3 0-2.1-1-4.3-2.7-4.3-1 0-2 .6-3.2 2l-1.3-1.7C11.5 6.8 12.9 6 14.5 6c3 0 5.5 3.3 5.5 7 0 3.3-1.6 5-3.8 5-2.3 0-3.6-1.6-6-5.3C8.9 10.4 8 9.2 6.8 9.2 5.4 9.2 4.3 10.6 4.3 13c0 1.8.5 3 1.3 3 .6 0 1.1-.3 1.8-1.1l1.3 1.7C7.6 17.6 6.3 18 5.3 18 3.3 18 2 16 2 12.5Z" })
|
|
57
|
-
});
|
|
58
|
-
const KimiLogo = (props) => /* @__PURE__ */ jsxs(Svg, {
|
|
59
|
-
...props,
|
|
60
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
61
|
-
cx: "12",
|
|
62
|
-
cy: "12",
|
|
63
|
-
r: "9.5",
|
|
64
|
-
fill: "none",
|
|
65
|
-
stroke: "currentColor",
|
|
66
|
-
strokeWidth: "1.5"
|
|
67
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
68
|
-
d: "M8 7.5v9M8 12l4.5-4.5M8 12l5 4.5M14 7.5h2.5v9H14z",
|
|
69
|
-
fill: "none",
|
|
70
|
-
stroke: "currentColor",
|
|
71
|
-
strokeWidth: "1.5",
|
|
72
|
-
strokeLinecap: "round",
|
|
73
|
-
strokeLinejoin: "round"
|
|
74
|
-
})]
|
|
75
|
-
});
|
|
76
|
-
const FallbackLogo = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
77
|
-
...props,
|
|
78
|
-
children: /* @__PURE__ */ jsx("circle", {
|
|
79
|
-
cx: "12",
|
|
80
|
-
cy: "12",
|
|
81
|
-
r: "3"
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* Resolves a provider string to its logo component.
|
|
86
|
-
* Unknown providers get a neutral dot fallback.
|
|
87
|
-
*/
|
|
88
|
-
function ProviderLogo({ provider, ...props }) {
|
|
89
|
-
switch (provider.toLowerCase()) {
|
|
90
|
-
case "openai": return /* @__PURE__ */ jsx(OpenAILogo, { ...props });
|
|
91
|
-
case "anthropic": return /* @__PURE__ */ jsx(AnthropicLogo, { ...props });
|
|
92
|
-
case "google": return /* @__PURE__ */ jsx(GoogleLogo, { ...props });
|
|
93
|
-
case "meta": return /* @__PURE__ */ jsx(MetaLogo, { ...props });
|
|
94
|
-
case "kimi": return /* @__PURE__ */ jsx(KimiLogo, { ...props });
|
|
95
|
-
default: return /* @__PURE__ */ jsx(FallbackLogo, { ...props });
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { ProviderLogo as t };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Select } from "./components/foundations/Select.js";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/_internal/option-select.tsx
|
|
4
|
-
/** A select over a fixed list of labelled string options. */
|
|
5
|
-
function OptionSelect({ "aria-label": ariaLabel, children, disabled, name, onValueChange, options, value }) {
|
|
6
|
-
return /* @__PURE__ */ jsxs(Select.Root, {
|
|
7
|
-
disabled,
|
|
8
|
-
name,
|
|
9
|
-
items: options,
|
|
10
|
-
value,
|
|
11
|
-
onValueChange: (nextValue) => {
|
|
12
|
-
if (nextValue !== null) onValueChange(nextValue);
|
|
13
|
-
},
|
|
14
|
-
children: [
|
|
15
|
-
children,
|
|
16
|
-
/* @__PURE__ */ jsxs(Select.Trigger, {
|
|
17
|
-
"aria-label": ariaLabel,
|
|
18
|
-
children: [/* @__PURE__ */ jsx(Select.Value, {}), /* @__PURE__ */ jsx(Select.Icon, {})]
|
|
19
|
-
}),
|
|
20
|
-
/* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
21
|
-
sideOffset: 4,
|
|
22
|
-
children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: options.map((option) => /* @__PURE__ */ jsxs(Select.Item, {
|
|
23
|
-
value: option.value,
|
|
24
|
-
children: [/* @__PURE__ */ jsx(Select.ItemText, { children: option.label }), /* @__PURE__ */ jsx(Select.ItemIndicator, {})]
|
|
25
|
-
}, option.value)) }) })
|
|
26
|
-
}) })
|
|
27
|
-
]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/components/_internal/scheduled-table-source.ts
|
|
32
|
-
/** What each scheduled run does with the table's rows. */
|
|
33
|
-
function scheduledTableSourceNote(source) {
|
|
34
|
-
if ("script" in source) return "Reads current rows for each scheduled run";
|
|
35
|
-
return "data" in source ? "Repeats these rows on schedule" : "Uses this saved file for each scheduled run";
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
export { OptionSelect as n, scheduledTableSourceNote as t };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { composerLinkHref } from "./utils/composer-link.js";
|
|
2
|
-
import { canRequestFavicon } from "./utils/favicon.js";
|
|
3
|
-
import { markSrcForHref } from "./utils/mcp-server-catalog.js";
|
|
4
|
-
import { C as FileIcon, k as LinkIcon } from "./icons-GoybMAB2.js";
|
|
5
|
-
import { Tooltip } from "./components/foundations/Tooltip.js";
|
|
6
|
-
import { ComposerLink } from "./components/ai-sdk/ComposerLink.js";
|
|
7
|
-
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
//#region src/components/_internal/workspace-assets.tsx
|
|
11
|
-
/** HTTP(S) URL from a field value, or nothing. */
|
|
12
|
-
function httpUrl(value) {
|
|
13
|
-
try {
|
|
14
|
-
const url = new URL(value.trim());
|
|
15
|
-
if (url.protocol === "http:" || url.protocol === "https:") return url.href;
|
|
16
|
-
} catch {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/** Product or site mark for a URL. Decorative — sit it next to visible text. */
|
|
21
|
-
function FaviconMark({ fallback, href, variant }) {
|
|
22
|
-
const src = href ? markSrcForHref(href) : void 0;
|
|
23
|
-
const [failedSrc, setFailedSrc] = React.useState(null);
|
|
24
|
-
const show = src !== void 0 && failedSrc !== src && canRequestFavicon(src);
|
|
25
|
-
if (!show && fallback == null) return null;
|
|
26
|
-
return /* @__PURE__ */ jsxs(AppIcon.Root, {
|
|
27
|
-
size: "xs",
|
|
28
|
-
variant,
|
|
29
|
-
"aria-hidden": "true",
|
|
30
|
-
children: [show ? /* @__PURE__ */ jsx(AppIcon.Image, {
|
|
31
|
-
alt: "",
|
|
32
|
-
fit: "contain",
|
|
33
|
-
src,
|
|
34
|
-
onLoadingStatusChange: (status) => {
|
|
35
|
-
if (status === "error") setFailedSrc(src);
|
|
36
|
-
}
|
|
37
|
-
}) : null, /* @__PURE__ */ jsx(AppIcon.Fallback, { children: fallback ?? null })]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Every link out of the app. It sits in a line of text and keeps the exact
|
|
42
|
-
* destination. A web page opens in a new tab beside its site's mark, labeled
|
|
43
|
-
* with the hostname unless given; a mail or phone address opens its app.
|
|
44
|
-
* `compact` shows the mark alone and keeps the label as the link's name.
|
|
45
|
-
*/
|
|
46
|
-
function OutboundLink({ children, compact, href, ...props }) {
|
|
47
|
-
const web = httpUrl(href);
|
|
48
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
49
|
-
className: "outbound-link",
|
|
50
|
-
href,
|
|
51
|
-
title: href,
|
|
52
|
-
target: web ? "_blank" : void 0,
|
|
53
|
-
rel: web ? "noreferrer" : void 0,
|
|
54
|
-
...props,
|
|
55
|
-
children: [web ? /* @__PURE__ */ jsx(FaviconMark, {
|
|
56
|
-
href: web,
|
|
57
|
-
fallback: /* @__PURE__ */ jsx(LinkIcon, {}),
|
|
58
|
-
variant: "inline"
|
|
59
|
-
}) : null, /* @__PURE__ */ jsx("span", {
|
|
60
|
-
className: compact ? "sigvelo-visually-hidden" : "sigvelo-truncate",
|
|
61
|
-
children: children ?? (web ? new URL(web).hostname : href)
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Supplementary tooltip on an already-interactive control. Paths, globs, and
|
|
67
|
-
* enable labels belong here — not as persistent body copy.
|
|
68
|
-
*/
|
|
69
|
-
function Hint({ children, content }) {
|
|
70
|
-
if (content == null || content === false || content === "") return children;
|
|
71
|
-
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
72
|
-
render: children,
|
|
73
|
-
delay: 0
|
|
74
|
-
}), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
75
|
-
side: "top",
|
|
76
|
-
sideOffset: 6,
|
|
77
|
-
children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: content })
|
|
78
|
-
}) })] });
|
|
79
|
-
}
|
|
80
|
-
/** File/thread/site identity, same icon+label mark as the composer. */
|
|
81
|
-
function WorkspaceComposerLink({ icon, kind = "file", label, onOpen, value }) {
|
|
82
|
-
const resolvedIcon = icon ?? (kind === "file" ? /* @__PURE__ */ jsx(FileIcon, {}) : void 0);
|
|
83
|
-
if (!onOpen) return /* @__PURE__ */ jsxs("span", {
|
|
84
|
-
className: "composer-link",
|
|
85
|
-
"data-composer-link": kind,
|
|
86
|
-
children: [resolvedIcon ? /* @__PURE__ */ jsx("span", {
|
|
87
|
-
className: "composer-link__icon",
|
|
88
|
-
"aria-hidden": "true",
|
|
89
|
-
children: resolvedIcon
|
|
90
|
-
}) : null, /* @__PURE__ */ jsx("span", {
|
|
91
|
-
className: "composer-link__label",
|
|
92
|
-
children: label
|
|
93
|
-
})]
|
|
94
|
-
});
|
|
95
|
-
return /* @__PURE__ */ jsx(ComposerLink, {
|
|
96
|
-
href: composerLinkHref({
|
|
97
|
-
kind,
|
|
98
|
-
value,
|
|
99
|
-
label
|
|
100
|
-
}),
|
|
101
|
-
icon: resolvedIcon,
|
|
102
|
-
onClick: onOpen,
|
|
103
|
-
children: label
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
export { httpUrl as a, WorkspaceComposerLink as i, Hint as n, OutboundLink as r, FaviconMark as t };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { Z as SpinnerIcon } from "./icons-GoybMAB2.js";
|
|
3
|
-
import { a as formatErrorMessage } from "./format-CWaZEp5o.js";
|
|
4
|
-
import { Button } from "./components/foundations/Button.js";
|
|
5
|
-
import { EmptyState } from "./components/foundations/EmptyState.js";
|
|
6
|
-
import { ResponsiveSidebarAppBar } from "./components/general-purpose/ResponsiveSidebarShell.js";
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { useQuery } from "@tanstack/react-query";
|
|
10
|
-
//#region src/components/_internal/workspace-concept-panel.tsx
|
|
11
|
-
/** The entry whose file is at `path`, from the concept's shared list query. */
|
|
12
|
-
function useConceptEntry(source, path) {
|
|
13
|
-
return useQuery(source.queryOptions).data?.find((entry) => entry.path === path);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Workbench list of one concept's entries. The title stays visible while the
|
|
17
|
-
* list scrolls, and loading, failure, and empty read the same in every panel:
|
|
18
|
-
* a failure with nothing loaded is an error with Retry, never an empty list.
|
|
19
|
-
*/
|
|
20
|
-
function WorkspaceConceptPanel({ children, className, emptyDescription, item, queryOptions, ...props }) {
|
|
21
|
-
const titleId = React.useId();
|
|
22
|
-
const query = useQuery(queryOptions);
|
|
23
|
-
const rows = children(query.data);
|
|
24
|
-
const heading = item.label;
|
|
25
|
-
return /* @__PURE__ */ jsxs("section", {
|
|
26
|
-
...props,
|
|
27
|
-
"aria-labelledby": props["aria-labelledby"] ?? (props["aria-label"] ? void 0 : titleId),
|
|
28
|
-
className: cx("workspace-concept-panel", className),
|
|
29
|
-
children: [/* @__PURE__ */ jsx(ResponsiveSidebarAppBar, {
|
|
30
|
-
className: "workspace-concept-panel__header",
|
|
31
|
-
label: `${heading} controls`,
|
|
32
|
-
title: heading,
|
|
33
|
-
titleRender: (titleProps) => /* @__PURE__ */ jsx("h2", {
|
|
34
|
-
...titleProps,
|
|
35
|
-
id: titleId,
|
|
36
|
-
children: titleProps.children
|
|
37
|
-
})
|
|
38
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
39
|
-
className: "workspace-concept-panel__body",
|
|
40
|
-
children: rows.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
41
|
-
className: "workspace-concept-list",
|
|
42
|
-
children: rows
|
|
43
|
-
}) : query.error ? /* @__PURE__ */ jsx(EmptyState, {
|
|
44
|
-
icon: item.icon,
|
|
45
|
-
title: `${heading} unavailable`,
|
|
46
|
-
description: formatErrorMessage(query.error),
|
|
47
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
48
|
-
size: "sm",
|
|
49
|
-
variant: "surface",
|
|
50
|
-
color: "neutral",
|
|
51
|
-
onClick: () => void query.refetch(),
|
|
52
|
-
children: "Retry"
|
|
53
|
-
})
|
|
54
|
-
}) : query.isPending ? /* @__PURE__ */ jsx(EmptyState, {
|
|
55
|
-
icon: /* @__PURE__ */ jsx(SpinnerIcon, {}),
|
|
56
|
-
title: `Loading ${heading.toLowerCase()}`
|
|
57
|
-
}) : /* @__PURE__ */ jsx(EmptyState, {
|
|
58
|
-
icon: item.icon,
|
|
59
|
-
title: `No ${heading.toLowerCase()} yet`,
|
|
60
|
-
description: emptyDescription
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
export { useConceptEntry as n, WorkspaceConceptPanel as t };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { it as TrashIcon } from "./icons-GoybMAB2.js";
|
|
2
|
-
import { Button } from "./components/foundations/Button.js";
|
|
3
|
-
import { IconButton } from "./components/foundations/IconButton.js";
|
|
4
|
-
import { AlertDialog } from "./components/foundations/AlertDialog.js";
|
|
5
|
-
import * as React from "react";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/_internal/workspace-delete.tsx
|
|
8
|
-
/**
|
|
9
|
-
* Header trash control for a workspace file. The card owns the confirm dialog;
|
|
10
|
-
* the host deletes the file.
|
|
11
|
-
*/
|
|
12
|
-
function WorkspaceDeleteControl({ name, onDelete }) {
|
|
13
|
-
const triggerRef = React.useRef(null);
|
|
14
|
-
const [open, setOpen] = React.useState(false);
|
|
15
|
-
const [busy, setBusy] = React.useState(false);
|
|
16
|
-
const [errorMessage, setErrorMessage] = React.useState("");
|
|
17
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(IconButton, {
|
|
18
|
-
ref: triggerRef,
|
|
19
|
-
type: "button",
|
|
20
|
-
label: `Delete ${name}`,
|
|
21
|
-
tooltip: "Delete",
|
|
22
|
-
size: "xs",
|
|
23
|
-
variant: "ghost",
|
|
24
|
-
color: "neutral",
|
|
25
|
-
disabled: busy,
|
|
26
|
-
"aria-haspopup": "dialog",
|
|
27
|
-
onClick: () => {
|
|
28
|
-
setErrorMessage("");
|
|
29
|
-
setOpen(true);
|
|
30
|
-
},
|
|
31
|
-
children: /* @__PURE__ */ jsx(TrashIcon, {})
|
|
32
|
-
}), /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
33
|
-
open,
|
|
34
|
-
onOpenChange: (nextOpen, eventDetails) => {
|
|
35
|
-
if (busy) {
|
|
36
|
-
eventDetails.cancel();
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
setOpen(nextOpen);
|
|
40
|
-
if (!nextOpen) setErrorMessage("");
|
|
41
|
-
},
|
|
42
|
-
children: /* @__PURE__ */ jsxs(AlertDialog.Portal, { children: [/* @__PURE__ */ jsx(AlertDialog.Backdrop, {}), /* @__PURE__ */ jsx(AlertDialog.Viewport, { children: /* @__PURE__ */ jsxs(AlertDialog.Popup, {
|
|
43
|
-
finalFocus: triggerRef,
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ jsxs(AlertDialog.Title, { children: [
|
|
46
|
-
"Delete ",
|
|
47
|
-
name,
|
|
48
|
-
"?"
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ jsx(AlertDialog.Description, { children: "This deletes the file. This cannot be undone." }),
|
|
51
|
-
errorMessage ? /* @__PURE__ */ jsx("p", {
|
|
52
|
-
role: "alert",
|
|
53
|
-
children: errorMessage
|
|
54
|
-
}) : null,
|
|
55
|
-
/* @__PURE__ */ jsxs(AlertDialog.Footer, { children: [/* @__PURE__ */ jsx(AlertDialog.Close, {
|
|
56
|
-
disabled: busy,
|
|
57
|
-
children: "Cancel"
|
|
58
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
59
|
-
type: "button",
|
|
60
|
-
color: "destructive",
|
|
61
|
-
disabled: busy,
|
|
62
|
-
onClick: () => {
|
|
63
|
-
if (busy) return;
|
|
64
|
-
setBusy(true);
|
|
65
|
-
setErrorMessage("");
|
|
66
|
-
Promise.resolve(onDelete()).then(() => {
|
|
67
|
-
setOpen(false);
|
|
68
|
-
}).catch((error) => {
|
|
69
|
-
setErrorMessage(error instanceof Error && error.message.trim() ? error.message : "The file could not be deleted. Try again.");
|
|
70
|
-
}).finally(() => {
|
|
71
|
-
setBusy(false);
|
|
72
|
-
});
|
|
73
|
-
},
|
|
74
|
-
children: busy ? "Deleting…" : "Delete"
|
|
75
|
-
})] })
|
|
76
|
-
]
|
|
77
|
-
}) })] })
|
|
78
|
-
})] });
|
|
79
|
-
}
|
|
80
|
-
//#endregion
|
|
81
|
-
export { WorkspaceDeleteControl as t };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle } from "./components/foundations/Card.js";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/_internal/workspace-entity-card.tsx
|
|
6
|
-
/**
|
|
7
|
-
* One anatomy for workspace and connected-app cards: a mark column, the name,
|
|
8
|
-
* one quiet line under it, then detail at the name's indent. Controls sit on
|
|
9
|
-
* the name's row.
|
|
10
|
-
*/
|
|
11
|
-
function WorkspaceEntityCard({ actions, children, className, detail, icon, meta, name, onOpen, ...props }) {
|
|
12
|
-
const titleId = React.useId();
|
|
13
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
14
|
-
render: /* @__PURE__ */ jsx("article", {}),
|
|
15
|
-
...props,
|
|
16
|
-
"aria-labelledby": props["aria-labelledby"] ?? (props["aria-label"] ? void 0 : titleId),
|
|
17
|
-
size: "sm",
|
|
18
|
-
hover: onOpen != null,
|
|
19
|
-
className: cx("workspace-entity-card", className),
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ jsxs(CardHeader, {
|
|
22
|
-
render: /* @__PURE__ */ jsx("header", {}),
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ jsxs(CardTitle, {
|
|
25
|
-
id: titleId,
|
|
26
|
-
className: "workspace-entity-card__title",
|
|
27
|
-
render: (titleProps) => /* @__PURE__ */ jsx("h3", {
|
|
28
|
-
...titleProps,
|
|
29
|
-
children: titleProps.children
|
|
30
|
-
}),
|
|
31
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
32
|
-
className: "workspace-entity-card__icon",
|
|
33
|
-
"aria-hidden": "true",
|
|
34
|
-
children: icon
|
|
35
|
-
}), onOpen ? /* @__PURE__ */ jsx("button", {
|
|
36
|
-
type: "button",
|
|
37
|
-
className: "workspace-entity-card__open sigvelo-truncate",
|
|
38
|
-
onClick: onOpen,
|
|
39
|
-
children: name
|
|
40
|
-
}) : name]
|
|
41
|
-
}),
|
|
42
|
-
meta ? /* @__PURE__ */ jsx(CardDescription, {
|
|
43
|
-
className: "workspace-entity-card__meta",
|
|
44
|
-
children: meta
|
|
45
|
-
}) : null,
|
|
46
|
-
actions ? /* @__PURE__ */ jsx(CardAction, {
|
|
47
|
-
className: "workspace-entity-card__actions",
|
|
48
|
-
children: actions
|
|
49
|
-
}) : null
|
|
50
|
-
]
|
|
51
|
-
}),
|
|
52
|
-
detail ? /* @__PURE__ */ jsx(CardContent, {
|
|
53
|
-
className: "workspace-entity-card__detail",
|
|
54
|
-
children: detail
|
|
55
|
-
}) : null,
|
|
56
|
-
children
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { WorkspaceEntityCard as t };
|