@mcp-b/react-components 0.63.0 → 0.64.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-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 +100 -36
- package/dist/components/extension/FirstRunSetup.js +3974 -1016
- 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
|
@@ -0,0 +1,985 @@
|
|
|
1
|
+
import { Button } from "./components/foundations/Button.js";
|
|
2
|
+
import { r as useWorkspaceDragAndDrop } from "./workspace-drag-B6hMXUNt.js";
|
|
3
|
+
import { i as PortalContext } from "./context-Ddsp8HgD.js";
|
|
4
|
+
import { FormattedDate } from "./components/foundations/FormattedDate.js";
|
|
5
|
+
import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
6
|
+
import { SearchField } from "./components/foundations/SearchField.js";
|
|
7
|
+
import { describeWorkspaceFile } from "./components/agents-sdk/WorkspaceFile.js";
|
|
8
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-CjfzpN6X.js";
|
|
9
|
+
import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
|
|
10
|
+
import { a as fileGridOption, i as FileGrid, n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-9V-UFpjj.js";
|
|
11
|
+
import { ContextMenu } from "./components/foundations/ContextMenu.js";
|
|
12
|
+
import { isHiddenWorkspaceEntry } from "./components/agents-sdk/WorkspaceFileCommands.js";
|
|
13
|
+
import { c } from "react/compiler-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
|
|
17
|
+
import { flushSync } from "react-dom";
|
|
18
|
+
//#region src/components/_internal/workspace-browser-entries.tsx
|
|
19
|
+
const HANDLERS = [
|
|
20
|
+
"onPointerDown",
|
|
21
|
+
"onFocus",
|
|
22
|
+
"onClickCapture",
|
|
23
|
+
"onDoubleClick",
|
|
24
|
+
"onDragStart",
|
|
25
|
+
"onDragEnd",
|
|
26
|
+
"onDragEnter",
|
|
27
|
+
"onDragOver",
|
|
28
|
+
"onDragLeave",
|
|
29
|
+
"onDrop"
|
|
30
|
+
];
|
|
31
|
+
/** Lines drawn past each edge of the viewport. */
|
|
32
|
+
const OVERSCAN = 4;
|
|
33
|
+
/** The menu and rename field mount on demand and read the view as they draw. */
|
|
34
|
+
const EntryViewContext = React.createContext(null);
|
|
35
|
+
/**
|
|
36
|
+
* Layout sizes, not boxes: a window opening or closing scales its content, and
|
|
37
|
+
* a box read mid-animation would size every line wrong.
|
|
38
|
+
*/
|
|
39
|
+
function readGeometry(list, previous) {
|
|
40
|
+
if (!list.isConnected) return previous;
|
|
41
|
+
const style = getComputedStyle(list);
|
|
42
|
+
const tracks = style.gridTemplateColumns;
|
|
43
|
+
const first = list.querySelector(":scope > li");
|
|
44
|
+
const next = {
|
|
45
|
+
lanes: tracks === "none" ? 1 : tracks.trim().split(/\s+/).length,
|
|
46
|
+
size: first && Number.parseFloat(getComputedStyle(first).blockSize) || previous.size,
|
|
47
|
+
gap: Number.parseFloat(style.rowGap) || 0,
|
|
48
|
+
paddingStart: Number.parseFloat(style.paddingBlockStart) || 0,
|
|
49
|
+
paddingEnd: Number.parseFloat(style.paddingBlockEnd) || 0,
|
|
50
|
+
scrollMargin: list.offsetTop
|
|
51
|
+
};
|
|
52
|
+
return Object.keys(next).every((key) => Math.abs(next[key] - previous[key]) < .01) ? previous : next;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A folder's entries as one listbox, drawn only near the viewport: a folder
|
|
56
|
+
* of thousands keeps a few dozen rows in the page. The listbox still knows
|
|
57
|
+
* every entry — each row carries its position, and Home, End and
|
|
58
|
+
* type-to-select reach rows that are not drawn — and the focused row, its
|
|
59
|
+
* neighbours and the tab stop stay drawn while scrolled away, so the arrows
|
|
60
|
+
* walk on from them and bring them back into view.
|
|
61
|
+
*/
|
|
62
|
+
function WorkspaceBrowserEntries({ entries, layout, view, isSelected, tabStop, renaming, dropPath, draggable, foldersOpen, finder, renderFileLink, renderThumbnail }) {
|
|
63
|
+
const listRef = React.useRef(null);
|
|
64
|
+
const latest = React.useRef(view);
|
|
65
|
+
React.useLayoutEffect(() => {
|
|
66
|
+
latest.current = view;
|
|
67
|
+
});
|
|
68
|
+
const [actions] = React.useState(() => ({
|
|
69
|
+
handlers: (entry) => latest.current.handlers(entry),
|
|
70
|
+
activate: (path) => latest.current.activate(path),
|
|
71
|
+
menuFinalFocus: () => latest.current.menuFinalFocus()
|
|
72
|
+
}));
|
|
73
|
+
const [geometry, setGeometry] = React.useState(() => ({
|
|
74
|
+
lanes: 1,
|
|
75
|
+
size: layout === "grid" ? 120 : 32,
|
|
76
|
+
gap: 0,
|
|
77
|
+
paddingStart: 0,
|
|
78
|
+
paddingEnd: 0,
|
|
79
|
+
scrollMargin: 0
|
|
80
|
+
}));
|
|
81
|
+
const [focusPath, setFocusPath] = React.useState(null);
|
|
82
|
+
const indexByPath = React.useMemo(() => new Map(entries.map((entry, index) => [entry.path, index])), [entries]);
|
|
83
|
+
const names = React.useMemo(() => entries.map((entry) => entry.name), [entries]);
|
|
84
|
+
const { lanes } = geometry;
|
|
85
|
+
const lineOf = (path) => {
|
|
86
|
+
const index = path == null ? void 0 : indexByPath.get(path);
|
|
87
|
+
return index === void 0 ? void 0 : Math.floor(index / lanes);
|
|
88
|
+
};
|
|
89
|
+
const lineCount = Math.ceil(entries.length / lanes);
|
|
90
|
+
const focusLine = lineOf(focusPath);
|
|
91
|
+
const pinned = [lineOf(tabStop), ...focusLine === void 0 ? [] : [
|
|
92
|
+
focusLine - 1,
|
|
93
|
+
focusLine,
|
|
94
|
+
focusLine + 1
|
|
95
|
+
]].filter((line) => line !== void 0 && line >= 0 && line < lineCount);
|
|
96
|
+
const virtualizer = useVirtualizer({
|
|
97
|
+
useFlushSync: false,
|
|
98
|
+
count: lineCount,
|
|
99
|
+
getScrollElement: () => listRef.current?.parentElement ?? null,
|
|
100
|
+
estimateSize: () => geometry.size,
|
|
101
|
+
gap: geometry.gap,
|
|
102
|
+
paddingStart: geometry.paddingStart,
|
|
103
|
+
paddingEnd: geometry.paddingEnd,
|
|
104
|
+
scrollMargin: geometry.scrollMargin,
|
|
105
|
+
overscan: OVERSCAN,
|
|
106
|
+
rangeExtractor: (range) => [.../* @__PURE__ */ new Set([...defaultRangeExtractor(range), ...pinned])].sort((a, b) => a - b)
|
|
107
|
+
});
|
|
108
|
+
React.useLayoutEffect(() => {
|
|
109
|
+
virtualizer.measure();
|
|
110
|
+
}, [geometry.size, virtualizer]);
|
|
111
|
+
const observer = React.useRef(null);
|
|
112
|
+
const observedRow = React.useRef(null);
|
|
113
|
+
React.useLayoutEffect(() => {
|
|
114
|
+
const list = listRef.current;
|
|
115
|
+
if (!list) return;
|
|
116
|
+
const update = () => setGeometry((previous) => readGeometry(list, previous));
|
|
117
|
+
update();
|
|
118
|
+
const resize = new ResizeObserver(update);
|
|
119
|
+
resize.observe(list);
|
|
120
|
+
observer.current = resize;
|
|
121
|
+
return () => {
|
|
122
|
+
resize.disconnect();
|
|
123
|
+
observer.current = null;
|
|
124
|
+
observedRow.current = null;
|
|
125
|
+
};
|
|
126
|
+
}, [layout]);
|
|
127
|
+
React.useLayoutEffect(() => {
|
|
128
|
+
const row = listRef.current?.firstElementChild ?? null;
|
|
129
|
+
if (row === observedRow.current) return;
|
|
130
|
+
if (observedRow.current) observer.current?.unobserve(observedRow.current);
|
|
131
|
+
if (row) observer.current?.observe(row);
|
|
132
|
+
observedRow.current = row;
|
|
133
|
+
});
|
|
134
|
+
return /* @__PURE__ */ jsx(EntryViewContext, {
|
|
135
|
+
value: view,
|
|
136
|
+
children: /* @__PURE__ */ jsx(FileGrid, {
|
|
137
|
+
ref: listRef,
|
|
138
|
+
className: "workspace-browser__entries",
|
|
139
|
+
"data-layout": layout,
|
|
140
|
+
"aria-label": "Workspace files",
|
|
141
|
+
"aria-multiselectable": finder ? true : void 0,
|
|
142
|
+
collection: {
|
|
143
|
+
names,
|
|
144
|
+
focus: (index) => {
|
|
145
|
+
const entry = entries[index];
|
|
146
|
+
if (!entry) return;
|
|
147
|
+
flushSync(() => setFocusPath(entry.path));
|
|
148
|
+
[...listRef.current?.querySelectorAll("[data-workspace-path]") ?? []].find((option) => option.dataset.workspacePath === entry.path)?.focus();
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
style: { blockSize: virtualizer.getTotalSize() },
|
|
152
|
+
onFocus: (event) => {
|
|
153
|
+
const path = event.target.dataset.workspacePath;
|
|
154
|
+
if (path !== void 0) setFocusPath(path);
|
|
155
|
+
},
|
|
156
|
+
children: virtualizer.getVirtualItems().flatMap((line) => entries.slice(line.index * lanes, (line.index + 1) * lanes).map((entry, lane) => {
|
|
157
|
+
const index = line.index * lanes + lane;
|
|
158
|
+
return /* @__PURE__ */ jsx(WorkspaceBrowserEntry, {
|
|
159
|
+
entry,
|
|
160
|
+
index,
|
|
161
|
+
count: entries.length,
|
|
162
|
+
lane,
|
|
163
|
+
offset: line.start - geometry.scrollMargin,
|
|
164
|
+
selected: isSelected(entry.path),
|
|
165
|
+
tabStop: entry.path === tabStop,
|
|
166
|
+
renaming: renaming === entry.path,
|
|
167
|
+
dropTarget: dropPath === entry.path,
|
|
168
|
+
draggable,
|
|
169
|
+
disabled: entry.type === "directory" && !foldersOpen,
|
|
170
|
+
finder,
|
|
171
|
+
renderFileLink,
|
|
172
|
+
renderThumbnail,
|
|
173
|
+
actions
|
|
174
|
+
}, entry.path);
|
|
175
|
+
}))
|
|
176
|
+
})
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/** One entry's row, drawn again only when its own facts change. */
|
|
180
|
+
const WorkspaceBrowserEntry = React.memo(function WorkspaceBrowserEntry(t0) {
|
|
181
|
+
const $ = c(65);
|
|
182
|
+
const { entry, index, count, lane, offset, selected, tabStop, renaming, dropTarget, draggable, disabled, finder, renderFileLink, renderThumbnail, actions } = t0;
|
|
183
|
+
let t1;
|
|
184
|
+
if ($[0] !== entry) {
|
|
185
|
+
t1 = describeWorkspaceFile(entry);
|
|
186
|
+
$[0] = entry;
|
|
187
|
+
$[1] = t1;
|
|
188
|
+
} else t1 = $[1];
|
|
189
|
+
const { kind, size } = t1;
|
|
190
|
+
let t2;
|
|
191
|
+
if ($[2] !== entry.updatedAt) {
|
|
192
|
+
t2 = new Date(entry.updatedAt);
|
|
193
|
+
$[2] = entry.updatedAt;
|
|
194
|
+
$[3] = t2;
|
|
195
|
+
} else t2 = $[3];
|
|
196
|
+
let t3;
|
|
197
|
+
if ($[4] !== t2) {
|
|
198
|
+
t3 = /* @__PURE__ */ jsx(FormattedDate, {
|
|
199
|
+
date: t2,
|
|
200
|
+
zone: "local",
|
|
201
|
+
fallback: "Unavailable"
|
|
202
|
+
});
|
|
203
|
+
$[4] = t2;
|
|
204
|
+
$[5] = t3;
|
|
205
|
+
} else t3 = $[5];
|
|
206
|
+
const modified = t3;
|
|
207
|
+
let t4;
|
|
208
|
+
if ($[6] !== actions || $[7] !== entry) {
|
|
209
|
+
t4 = Object.fromEntries(HANDLERS.map((name) => [name, (event) => actions.handlers(entry)[name]?.(event)]));
|
|
210
|
+
$[6] = actions;
|
|
211
|
+
$[7] = entry;
|
|
212
|
+
$[8] = t4;
|
|
213
|
+
} else t4 = $[8];
|
|
214
|
+
const handlers = t4;
|
|
215
|
+
let t5;
|
|
216
|
+
if ($[9] !== count || $[10] !== entry.name || $[11] !== entry.path || $[12] !== index || $[13] !== selected || $[14] !== tabStop) {
|
|
217
|
+
t5 = fileGridOption({
|
|
218
|
+
path: entry.path,
|
|
219
|
+
name: entry.name,
|
|
220
|
+
selected,
|
|
221
|
+
tabStop,
|
|
222
|
+
position: {
|
|
223
|
+
index,
|
|
224
|
+
count
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
$[9] = count;
|
|
228
|
+
$[10] = entry.name;
|
|
229
|
+
$[11] = entry.path;
|
|
230
|
+
$[12] = index;
|
|
231
|
+
$[13] = selected;
|
|
232
|
+
$[14] = tabStop;
|
|
233
|
+
$[15] = t5;
|
|
234
|
+
} else t5 = $[15];
|
|
235
|
+
const t6 = draggable || void 0;
|
|
236
|
+
const t7 = dropTarget ? "" : void 0;
|
|
237
|
+
let t8;
|
|
238
|
+
if ($[16] !== handlers || $[17] !== t5 || $[18] !== t6 || $[19] !== t7) {
|
|
239
|
+
t8 = {
|
|
240
|
+
...t5,
|
|
241
|
+
...handlers,
|
|
242
|
+
draggable: t6,
|
|
243
|
+
"data-drop-target": t7,
|
|
244
|
+
className: "workspace-browser__open"
|
|
245
|
+
};
|
|
246
|
+
$[16] = handlers;
|
|
247
|
+
$[17] = t5;
|
|
248
|
+
$[18] = t6;
|
|
249
|
+
$[19] = t7;
|
|
250
|
+
$[20] = t8;
|
|
251
|
+
} else t8 = $[20];
|
|
252
|
+
const option = t8;
|
|
253
|
+
const t9 = index % 2 ? "" : void 0;
|
|
254
|
+
const t10 = `${lane + 1} / span 1`;
|
|
255
|
+
const t11 = `translateY(${offset}px)`;
|
|
256
|
+
let t12;
|
|
257
|
+
if ($[21] !== t10 || $[22] !== t11) {
|
|
258
|
+
t12 = {
|
|
259
|
+
gridColumn: t10,
|
|
260
|
+
transform: t11
|
|
261
|
+
};
|
|
262
|
+
$[21] = t10;
|
|
263
|
+
$[22] = t11;
|
|
264
|
+
$[23] = t12;
|
|
265
|
+
} else t12 = $[23];
|
|
266
|
+
let t13;
|
|
267
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
268
|
+
t13 = {
|
|
269
|
+
artwork: "workspace-browser__icon",
|
|
270
|
+
name: "workspace-browser__name"
|
|
271
|
+
};
|
|
272
|
+
$[24] = t13;
|
|
273
|
+
} else t13 = $[24];
|
|
274
|
+
let t14;
|
|
275
|
+
if ($[25] !== actions || $[26] !== disabled || $[27] !== entry.path || $[28] !== entry.type || $[29] !== option || $[30] !== renderFileLink) {
|
|
276
|
+
t14 = entry.type !== "directory" && renderFileLink ? /* @__PURE__ */ jsx(NavigationLink, {
|
|
277
|
+
render: renderFileLink(entry.path),
|
|
278
|
+
...option
|
|
279
|
+
}) : /* @__PURE__ */ jsx(Button, {
|
|
280
|
+
...option,
|
|
281
|
+
variant: "ghost",
|
|
282
|
+
color: "neutral",
|
|
283
|
+
disabled,
|
|
284
|
+
focusableWhenDisabled: true,
|
|
285
|
+
onClick: () => actions.activate(entry.path)
|
|
286
|
+
});
|
|
287
|
+
$[25] = actions;
|
|
288
|
+
$[26] = disabled;
|
|
289
|
+
$[27] = entry.path;
|
|
290
|
+
$[28] = entry.type;
|
|
291
|
+
$[29] = option;
|
|
292
|
+
$[30] = renderFileLink;
|
|
293
|
+
$[31] = t14;
|
|
294
|
+
} else t14 = $[31];
|
|
295
|
+
const t15 = size ? `, ${size}` : null;
|
|
296
|
+
let t16;
|
|
297
|
+
if ($[32] !== kind || $[33] !== modified || $[34] !== t15) {
|
|
298
|
+
t16 = /* @__PURE__ */ jsxs("span", {
|
|
299
|
+
className: "sigvelo-visually-hidden",
|
|
300
|
+
children: [
|
|
301
|
+
", ",
|
|
302
|
+
kind,
|
|
303
|
+
", modified ",
|
|
304
|
+
modified,
|
|
305
|
+
t15
|
|
306
|
+
]
|
|
307
|
+
});
|
|
308
|
+
$[32] = kind;
|
|
309
|
+
$[33] = modified;
|
|
310
|
+
$[34] = t15;
|
|
311
|
+
$[35] = t16;
|
|
312
|
+
} else t16 = $[35];
|
|
313
|
+
let t17;
|
|
314
|
+
if ($[36] !== kind) {
|
|
315
|
+
t17 = /* @__PURE__ */ jsx("span", {
|
|
316
|
+
className: "workspace-browser__kind sigvelo-truncate",
|
|
317
|
+
"aria-hidden": "true",
|
|
318
|
+
children: kind
|
|
319
|
+
});
|
|
320
|
+
$[36] = kind;
|
|
321
|
+
$[37] = t17;
|
|
322
|
+
} else t17 = $[37];
|
|
323
|
+
let t18;
|
|
324
|
+
if ($[38] !== modified) {
|
|
325
|
+
t18 = /* @__PURE__ */ jsx("span", {
|
|
326
|
+
className: "workspace-browser__modified sigvelo-truncate",
|
|
327
|
+
"aria-hidden": "true",
|
|
328
|
+
children: modified
|
|
329
|
+
});
|
|
330
|
+
$[38] = modified;
|
|
331
|
+
$[39] = t18;
|
|
332
|
+
} else t18 = $[39];
|
|
333
|
+
const t19 = size ? void 0 : "";
|
|
334
|
+
const t20 = size ?? "—";
|
|
335
|
+
let t21;
|
|
336
|
+
if ($[40] !== t19 || $[41] !== t20) {
|
|
337
|
+
t21 = /* @__PURE__ */ jsx("span", {
|
|
338
|
+
className: "workspace-browser__size sigvelo-truncate",
|
|
339
|
+
"aria-hidden": "true",
|
|
340
|
+
"data-empty": t19,
|
|
341
|
+
children: t20
|
|
342
|
+
});
|
|
343
|
+
$[40] = t19;
|
|
344
|
+
$[41] = t20;
|
|
345
|
+
$[42] = t21;
|
|
346
|
+
} else t21 = $[42];
|
|
347
|
+
let t22;
|
|
348
|
+
if ($[43] !== t16 || $[44] !== t17 || $[45] !== t18 || $[46] !== t21) {
|
|
349
|
+
t22 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
350
|
+
t16,
|
|
351
|
+
t17,
|
|
352
|
+
t18,
|
|
353
|
+
t21
|
|
354
|
+
] });
|
|
355
|
+
$[43] = t16;
|
|
356
|
+
$[44] = t17;
|
|
357
|
+
$[45] = t18;
|
|
358
|
+
$[46] = t21;
|
|
359
|
+
$[47] = t22;
|
|
360
|
+
} else t22 = $[47];
|
|
361
|
+
let t23;
|
|
362
|
+
if ($[48] !== entry.path) {
|
|
363
|
+
t23 = /* @__PURE__ */ jsx(WorkspaceEntryMenu, { path: entry.path });
|
|
364
|
+
$[48] = entry.path;
|
|
365
|
+
$[49] = t23;
|
|
366
|
+
} else t23 = $[49];
|
|
367
|
+
const t24 = !finder;
|
|
368
|
+
let t25;
|
|
369
|
+
if ($[50] !== entry) {
|
|
370
|
+
t25 = /* @__PURE__ */ jsx(WorkspaceEntryRename, { entry });
|
|
371
|
+
$[50] = entry;
|
|
372
|
+
$[51] = t25;
|
|
373
|
+
} else t25 = $[51];
|
|
374
|
+
let t26;
|
|
375
|
+
if ($[52] !== actions.menuFinalFocus || $[53] !== entry || $[54] !== index || $[55] !== renaming || $[56] !== renderThumbnail || $[57] !== t12 || $[58] !== t14 || $[59] !== t22 || $[60] !== t23 || $[61] !== t24 || $[62] !== t25 || $[63] !== t9) {
|
|
376
|
+
t26 = /* @__PURE__ */ jsx(WorkspaceFileTile, {
|
|
377
|
+
className: "workspace-browser__entry",
|
|
378
|
+
"data-kind": entry.type,
|
|
379
|
+
"data-index": index,
|
|
380
|
+
"data-alternate": t9,
|
|
381
|
+
style: t12,
|
|
382
|
+
entry,
|
|
383
|
+
classes: t13,
|
|
384
|
+
renderThumbnail,
|
|
385
|
+
renaming,
|
|
386
|
+
option: t14,
|
|
387
|
+
details: t22,
|
|
388
|
+
menu: t23,
|
|
389
|
+
menuFinalFocus: actions.menuFinalFocus,
|
|
390
|
+
menuDisabled: t24,
|
|
391
|
+
renameField: t25
|
|
392
|
+
});
|
|
393
|
+
$[52] = actions.menuFinalFocus;
|
|
394
|
+
$[53] = entry;
|
|
395
|
+
$[54] = index;
|
|
396
|
+
$[55] = renaming;
|
|
397
|
+
$[56] = renderThumbnail;
|
|
398
|
+
$[57] = t12;
|
|
399
|
+
$[58] = t14;
|
|
400
|
+
$[59] = t22;
|
|
401
|
+
$[60] = t23;
|
|
402
|
+
$[61] = t24;
|
|
403
|
+
$[62] = t25;
|
|
404
|
+
$[63] = t9;
|
|
405
|
+
$[64] = t26;
|
|
406
|
+
} else t26 = $[64];
|
|
407
|
+
return t26;
|
|
408
|
+
});
|
|
409
|
+
function WorkspaceEntryMenu({ path }) {
|
|
410
|
+
return React.use(EntryViewContext)?.menuItems(path);
|
|
411
|
+
}
|
|
412
|
+
function WorkspaceEntryRename({ entry }) {
|
|
413
|
+
return React.use(EntryViewContext)?.renameField(entry);
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region src/components/agents-sdk/WorkspaceBrowser.tsx
|
|
417
|
+
const DEFAULT_SORT = {
|
|
418
|
+
by: "name",
|
|
419
|
+
direction: "ascending"
|
|
420
|
+
};
|
|
421
|
+
/** One collator for every comparison: building one per call dominates a large folder's sort. */
|
|
422
|
+
const nameCollator = new Intl.Collator(void 0, { numeric: true });
|
|
423
|
+
const pathCollator = new Intl.Collator();
|
|
424
|
+
function compareEntries(left, right, sort, kinds) {
|
|
425
|
+
return ((sort.by === "size" ? left.size - right.size : sort.by === "modified" ? left.updatedAt - right.updatedAt : sort.by === "kind" ? pathCollator.compare(kinds?.get(left) ?? "", kinds?.get(right) ?? "") : Number(right.type === "directory") - Number(left.type === "directory") || nameCollator.compare(left.name, right.name)) || nameCollator.compare(left.name, right.name) || pathCollator.compare(left.path, right.path)) * (sort.direction === "descending" ? -1 : 1);
|
|
426
|
+
}
|
|
427
|
+
/** Sorts `entries` in place, describing each entry's kind once rather than per comparison. */
|
|
428
|
+
function sortEntries(entries, sort) {
|
|
429
|
+
const kinds = sort.by === "kind" ? new Map(entries.map((entry) => [entry, describeWorkspaceFile(entry).kind])) : void 0;
|
|
430
|
+
return entries.sort((left, right) => compareEntries(left, right, sort, kinds));
|
|
431
|
+
}
|
|
432
|
+
/** A folder's entries as the Finder lists them: dot-named ones, the Trash among them, hidden. */
|
|
433
|
+
function listed(entriesByDirectory, directory) {
|
|
434
|
+
return (entriesByDirectory[directory] ?? []).filter((entry) => !isHiddenWorkspaceEntry(entry));
|
|
435
|
+
}
|
|
436
|
+
/** Workspace tree and filter surface, usable independently from the file preview. */
|
|
437
|
+
function WorkspaceBrowser(t0) {
|
|
438
|
+
const $ = c(149);
|
|
439
|
+
const { workspace, header: t1, title: t2, leading, actions, showFilter: t3, filterPlaceholder: t4, filter, onFilterChange, emptyState, onDirectoryOpen, renderFileLink, renderThumbnail, layout: t5, sort: t6, dragAndDrop, commands, renderPreview, actionsRef } = t0;
|
|
440
|
+
const header = t1 === void 0 ? "bar" : t1;
|
|
441
|
+
const title = t2 === void 0 ? "Workspace" : t2;
|
|
442
|
+
const showFilter = t3 === void 0 ? true : t3;
|
|
443
|
+
const filterPlaceholder = t4 === void 0 ? "Filter files..." : t4;
|
|
444
|
+
const layout = t5 === void 0 ? "tree" : t5;
|
|
445
|
+
const sort = t6 === void 0 ? DEFAULT_SORT : t6;
|
|
446
|
+
const [internalFilter, setInternalFilter] = React.useState("");
|
|
447
|
+
const portalContainer = React.use(PortalContext);
|
|
448
|
+
const { dragSource, dropTarget, dropPath } = useWorkspaceDragAndDrop(layout === "tree" ? void 0 : dragAndDrop);
|
|
449
|
+
const browserRef = React.useRef(null);
|
|
450
|
+
const folderOpenerRef = React.useRef(null);
|
|
451
|
+
const currentFilter = filter ?? internalFilter;
|
|
452
|
+
let t7;
|
|
453
|
+
if ($[0] !== currentFilter) {
|
|
454
|
+
t7 = currentFilter.trim().toLowerCase();
|
|
455
|
+
$[0] = currentFilter;
|
|
456
|
+
$[1] = t7;
|
|
457
|
+
} else t7 = $[1];
|
|
458
|
+
const filterQuery = React.useDeferredValue(t7);
|
|
459
|
+
const { root, entriesByDirectory, entryByPath, expandedPaths, setExpandedPaths, selectedPath, selectFile, isLoading, error, info, refresh } = workspace;
|
|
460
|
+
let t8;
|
|
461
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
462
|
+
t8 = () => {
|
|
463
|
+
const opener = folderOpenerRef.current;
|
|
464
|
+
folderOpenerRef.current = null;
|
|
465
|
+
const surface = browserRef.current;
|
|
466
|
+
if (!opener || opener.isConnected || !surface || surface.closest("[inert]") || surface.ownerDocument.activeElement !== surface.ownerDocument.body) return;
|
|
467
|
+
(surface.querySelector(".workspace-browser__open:not([data-disabled]), .file-tree__node") ?? surface).focus({ preventScroll: true });
|
|
468
|
+
};
|
|
469
|
+
$[2] = t8;
|
|
470
|
+
} else t8 = $[2];
|
|
471
|
+
let t9;
|
|
472
|
+
if ($[3] !== root) {
|
|
473
|
+
t9 = [root];
|
|
474
|
+
$[3] = root;
|
|
475
|
+
$[4] = t9;
|
|
476
|
+
} else t9 = $[4];
|
|
477
|
+
React.useLayoutEffect(t8, t9);
|
|
478
|
+
let t10;
|
|
479
|
+
if ($[5] !== entryByPath || $[6] !== onDirectoryOpen || $[7] !== selectFile) {
|
|
480
|
+
t10 = (path) => {
|
|
481
|
+
if (entryByPath.get(path)?.type === "directory") {
|
|
482
|
+
const surface_0 = browserRef.current;
|
|
483
|
+
const active = surface_0?.ownerDocument.activeElement;
|
|
484
|
+
folderOpenerRef.current = active instanceof HTMLElement && surface_0?.contains(active) && active.dataset.workspacePath === path ? active : null;
|
|
485
|
+
onDirectoryOpen?.(path);
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
selectFile(path);
|
|
489
|
+
};
|
|
490
|
+
$[5] = entryByPath;
|
|
491
|
+
$[6] = onDirectoryOpen;
|
|
492
|
+
$[7] = selectFile;
|
|
493
|
+
$[8] = t10;
|
|
494
|
+
} else t10 = $[8];
|
|
495
|
+
const handleSelect = t10;
|
|
496
|
+
let t11;
|
|
497
|
+
bb0: {
|
|
498
|
+
if (!filterQuery) {
|
|
499
|
+
let t12;
|
|
500
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
501
|
+
t12 = [];
|
|
502
|
+
$[9] = t12;
|
|
503
|
+
} else t12 = $[9];
|
|
504
|
+
t11 = t12;
|
|
505
|
+
break bb0;
|
|
506
|
+
}
|
|
507
|
+
let t12;
|
|
508
|
+
if ($[10] !== entryByPath || $[11] !== filterQuery || $[12] !== sort) {
|
|
509
|
+
let t13;
|
|
510
|
+
if ($[14] !== sort) {
|
|
511
|
+
t13 = (left, right) => sort.by === "name" ? pathCollator.compare(left.path, right.path) * (sort.direction === "descending" ? -1 : 1) : compareEntries(left, right, sort);
|
|
512
|
+
$[14] = sort;
|
|
513
|
+
$[15] = t13;
|
|
514
|
+
} else t13 = $[15];
|
|
515
|
+
t12 = [...entryByPath.values()].filter((entry) => entry.type !== "directory" && entry.path.toLowerCase().includes(filterQuery)).sort(t13);
|
|
516
|
+
$[10] = entryByPath;
|
|
517
|
+
$[11] = filterQuery;
|
|
518
|
+
$[12] = sort;
|
|
519
|
+
$[13] = t12;
|
|
520
|
+
} else t12 = $[13];
|
|
521
|
+
t11 = t12;
|
|
522
|
+
}
|
|
523
|
+
const filteredFiles = t11;
|
|
524
|
+
let t12;
|
|
525
|
+
if ($[16] !== entriesByDirectory || $[17] !== root) {
|
|
526
|
+
t12 = listed(entriesByDirectory, root);
|
|
527
|
+
$[16] = entriesByDirectory;
|
|
528
|
+
$[17] = root;
|
|
529
|
+
$[18] = t12;
|
|
530
|
+
} else t12 = $[18];
|
|
531
|
+
const rootEntries = t12;
|
|
532
|
+
let t13;
|
|
533
|
+
if ($[19] !== entriesByDirectory || $[20] !== renderFileLink || $[21] !== renderThumbnail || $[22] !== root || $[23] !== sort) {
|
|
534
|
+
const renderEntry = (entry_0) => {
|
|
535
|
+
if (entry_0.type === "directory") return /* @__PURE__ */ jsx(FileTreeFolder, {
|
|
536
|
+
path: entry_0.path,
|
|
537
|
+
name: entry_0.name,
|
|
538
|
+
icon: renderThumbnail?.(entry_0) ?? void 0,
|
|
539
|
+
children: sortEntries(listed(entriesByDirectory, entry_0.path), sort).map(renderEntry)
|
|
540
|
+
}, entry_0.path);
|
|
541
|
+
return /* @__PURE__ */ jsx(FileTreeFile, {
|
|
542
|
+
path: entry_0.path,
|
|
543
|
+
name: entry_0.name,
|
|
544
|
+
icon: renderThumbnail?.(entry_0) ?? void 0,
|
|
545
|
+
render: renderFileLink?.(entry_0.path)
|
|
546
|
+
}, entry_0.path);
|
|
547
|
+
};
|
|
548
|
+
t13 = sortEntries(listed(entriesByDirectory, root), sort).map(renderEntry);
|
|
549
|
+
$[19] = entriesByDirectory;
|
|
550
|
+
$[20] = renderFileLink;
|
|
551
|
+
$[21] = renderThumbnail;
|
|
552
|
+
$[22] = root;
|
|
553
|
+
$[23] = sort;
|
|
554
|
+
$[24] = t13;
|
|
555
|
+
} else t13 = $[24];
|
|
556
|
+
const tree = t13;
|
|
557
|
+
let t14;
|
|
558
|
+
if ($[25] !== filterQuery || $[26] !== rootEntries || $[27] !== sort) {
|
|
559
|
+
let t15;
|
|
560
|
+
if ($[29] !== filterQuery) {
|
|
561
|
+
t15 = (entry_1) => !filterQuery || entry_1.name.toLowerCase().includes(filterQuery);
|
|
562
|
+
$[29] = filterQuery;
|
|
563
|
+
$[30] = t15;
|
|
564
|
+
} else t15 = $[30];
|
|
565
|
+
t14 = sortEntries(rootEntries.filter(t15), sort);
|
|
566
|
+
$[25] = filterQuery;
|
|
567
|
+
$[26] = rootEntries;
|
|
568
|
+
$[27] = sort;
|
|
569
|
+
$[28] = t14;
|
|
570
|
+
} else t14 = $[28];
|
|
571
|
+
const visibleEntries = t14;
|
|
572
|
+
let t15;
|
|
573
|
+
if ($[31] !== visibleEntries) {
|
|
574
|
+
t15 = visibleEntries.map(_temp);
|
|
575
|
+
$[31] = visibleEntries;
|
|
576
|
+
$[32] = t15;
|
|
577
|
+
} else t15 = $[32];
|
|
578
|
+
const order = t15;
|
|
579
|
+
const finder = layout !== "tree" && Boolean(commands);
|
|
580
|
+
let t16;
|
|
581
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
582
|
+
t16 = (path_0) => [...browserRef.current?.querySelectorAll("[data-workspace-path]") ?? []].find((element) => element.dataset.workspacePath === path_0)?.click();
|
|
583
|
+
$[33] = t16;
|
|
584
|
+
} else t16 = $[33];
|
|
585
|
+
const openRow = t16;
|
|
586
|
+
const t17 = finder ? commands : void 0;
|
|
587
|
+
const t18 = finder && Boolean(renderPreview);
|
|
588
|
+
let t19;
|
|
589
|
+
if ($[34] !== finder || $[35] !== order || $[36] !== root || $[37] !== t17 || $[38] !== t18) {
|
|
590
|
+
t19 = {
|
|
591
|
+
order,
|
|
592
|
+
directory: root,
|
|
593
|
+
commands: t17,
|
|
594
|
+
finder,
|
|
595
|
+
surface: browserRef,
|
|
596
|
+
quickLook: t18,
|
|
597
|
+
open: openRow
|
|
598
|
+
};
|
|
599
|
+
$[34] = finder;
|
|
600
|
+
$[35] = order;
|
|
601
|
+
$[36] = root;
|
|
602
|
+
$[37] = t17;
|
|
603
|
+
$[38] = t18;
|
|
604
|
+
$[39] = t19;
|
|
605
|
+
} else t19 = $[39];
|
|
606
|
+
const view = useWorkspaceSelection(t19);
|
|
607
|
+
let t20;
|
|
608
|
+
if ($[40] !== view) {
|
|
609
|
+
t20 = () => ({ run: (command) => void view.perform(command) });
|
|
610
|
+
$[40] = view;
|
|
611
|
+
$[41] = t20;
|
|
612
|
+
} else t20 = $[41];
|
|
613
|
+
React.useImperativeHandle(actionsRef, t20);
|
|
614
|
+
let t21;
|
|
615
|
+
if ($[42] !== order || $[43] !== selectedPath || $[44] !== view.selected) {
|
|
616
|
+
t21 = [
|
|
617
|
+
view.selected.at(-1),
|
|
618
|
+
selectedPath,
|
|
619
|
+
order[0]
|
|
620
|
+
].find((path_1) => path_1 != null && order.includes(path_1));
|
|
621
|
+
$[42] = order;
|
|
622
|
+
$[43] = selectedPath;
|
|
623
|
+
$[44] = view.selected;
|
|
624
|
+
$[45] = t21;
|
|
625
|
+
} else t21 = $[45];
|
|
626
|
+
const tabStopPath = t21;
|
|
627
|
+
let t22;
|
|
628
|
+
if ($[46] !== dragSource || $[47] !== dropTarget || $[48] !== onDirectoryOpen || $[49] !== view) {
|
|
629
|
+
t22 = (entry_3) => {
|
|
630
|
+
const paths = view.isSelected(entry_3.path) ? view.selected : [entry_3.path];
|
|
631
|
+
return {
|
|
632
|
+
...dragSource(paths),
|
|
633
|
+
...entry_3.type === "directory" ? dropTarget(entry_3.path, onDirectoryOpen ? () => onDirectoryOpen(entry_3.path) : void 0) : {},
|
|
634
|
+
...view.optionProps(entry_3.path, (event, pressed) => dragSource(pressed).onPointerDown?.(event))
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
$[46] = dragSource;
|
|
638
|
+
$[47] = dropTarget;
|
|
639
|
+
$[48] = onDirectoryOpen;
|
|
640
|
+
$[49] = view;
|
|
641
|
+
$[50] = t22;
|
|
642
|
+
} else t22 = $[50];
|
|
643
|
+
let t23;
|
|
644
|
+
if ($[51] !== view) {
|
|
645
|
+
t23 = (path_2) => view.menuItems(path_2);
|
|
646
|
+
$[51] = view;
|
|
647
|
+
$[52] = t23;
|
|
648
|
+
} else t23 = $[52];
|
|
649
|
+
let t24;
|
|
650
|
+
if ($[53] !== view) {
|
|
651
|
+
t24 = (entry_4) => view.renameField(entry_4.path, entry_4.name, entry_4.type === "directory");
|
|
652
|
+
$[53] = view;
|
|
653
|
+
$[54] = t24;
|
|
654
|
+
} else t24 = $[54];
|
|
655
|
+
let t25;
|
|
656
|
+
if ($[55] !== handleSelect || $[56] !== t22 || $[57] !== t23 || $[58] !== t24 || $[59] !== view.menuFinalFocus) {
|
|
657
|
+
t25 = {
|
|
658
|
+
handlers: t22,
|
|
659
|
+
activate: handleSelect,
|
|
660
|
+
menuItems: t23,
|
|
661
|
+
menuFinalFocus: view.menuFinalFocus,
|
|
662
|
+
renameField: t24
|
|
663
|
+
};
|
|
664
|
+
$[55] = handleSelect;
|
|
665
|
+
$[56] = t22;
|
|
666
|
+
$[57] = t23;
|
|
667
|
+
$[58] = t24;
|
|
668
|
+
$[59] = view.menuFinalFocus;
|
|
669
|
+
$[60] = t25;
|
|
670
|
+
} else t25 = $[60];
|
|
671
|
+
const entryView = t25;
|
|
672
|
+
const filteredTree = layout === "tree" && filterQuery !== "";
|
|
673
|
+
let t26;
|
|
674
|
+
if ($[61] !== entryByPath || $[62] !== filteredTree || $[63] !== rootEntries.length) {
|
|
675
|
+
t26 = filteredTree ? [...entryByPath.values()].filter(_temp2).length : rootEntries.length;
|
|
676
|
+
$[61] = entryByPath;
|
|
677
|
+
$[62] = filteredTree;
|
|
678
|
+
$[63] = rootEntries.length;
|
|
679
|
+
$[64] = t26;
|
|
680
|
+
} else t26 = $[64];
|
|
681
|
+
const totalCount = t26;
|
|
682
|
+
const visibleCount = filteredTree ? filteredFiles.length : visibleEntries.length;
|
|
683
|
+
let t27;
|
|
684
|
+
if ($[65] !== actions || $[66] !== header || $[67] !== info?.fileCount || $[68] !== isLoading || $[69] !== leading || $[70] !== refresh || $[71] !== title) {
|
|
685
|
+
t27 = header === "bar" ? /* @__PURE__ */ jsx(WorkspaceHeader, {
|
|
686
|
+
title,
|
|
687
|
+
fileCount: info?.fileCount,
|
|
688
|
+
leading,
|
|
689
|
+
actions,
|
|
690
|
+
isRefreshing: isLoading,
|
|
691
|
+
onRefresh: refresh
|
|
692
|
+
}) : null;
|
|
693
|
+
$[65] = actions;
|
|
694
|
+
$[66] = header;
|
|
695
|
+
$[67] = info?.fileCount;
|
|
696
|
+
$[68] = isLoading;
|
|
697
|
+
$[69] = leading;
|
|
698
|
+
$[70] = refresh;
|
|
699
|
+
$[71] = title;
|
|
700
|
+
$[72] = t27;
|
|
701
|
+
} else t27 = $[72];
|
|
702
|
+
const t28 = !finder;
|
|
703
|
+
let t29;
|
|
704
|
+
if ($[73] !== dragAndDrop || $[74] !== dropTarget || $[75] !== root) {
|
|
705
|
+
t29 = dragAndDrop ? dropTarget(root) : {};
|
|
706
|
+
$[73] = dragAndDrop;
|
|
707
|
+
$[74] = dropTarget;
|
|
708
|
+
$[75] = root;
|
|
709
|
+
$[76] = t29;
|
|
710
|
+
} else t29 = $[76];
|
|
711
|
+
let t30;
|
|
712
|
+
if ($[77] !== finder || $[78] !== view.surfaceProps) {
|
|
713
|
+
t30 = finder ? view.surfaceProps : {};
|
|
714
|
+
$[77] = finder;
|
|
715
|
+
$[78] = view.surfaceProps;
|
|
716
|
+
$[79] = t30;
|
|
717
|
+
} else t30 = $[79];
|
|
718
|
+
let t31;
|
|
719
|
+
if ($[80] !== finder || $[81] !== view.surfaceProps) {
|
|
720
|
+
t31 = (event_0) => {
|
|
721
|
+
if (!finder) return;
|
|
722
|
+
view.surfaceProps.onPointerDown(event_0);
|
|
723
|
+
const target_0 = event_0.target;
|
|
724
|
+
if (target_0 instanceof Element && !target_0.closest("[data-workspace-path], input")) event_0.currentTarget.focus({ preventScroll: true });
|
|
725
|
+
};
|
|
726
|
+
$[80] = finder;
|
|
727
|
+
$[81] = view.surfaceProps;
|
|
728
|
+
$[82] = t31;
|
|
729
|
+
} else t31 = $[82];
|
|
730
|
+
let t32;
|
|
731
|
+
if ($[83] !== t29 || $[84] !== t30 || $[85] !== t31) {
|
|
732
|
+
t32 = /* @__PURE__ */ jsx("div", {
|
|
733
|
+
...t29,
|
|
734
|
+
...t30,
|
|
735
|
+
ref: browserRef,
|
|
736
|
+
className: "workspace-explorer__body",
|
|
737
|
+
"data-workspace-browser-focus-target": "",
|
|
738
|
+
role: "region",
|
|
739
|
+
"aria-label": "Workspace files",
|
|
740
|
+
tabIndex: -1,
|
|
741
|
+
onPointerDown: t31
|
|
742
|
+
});
|
|
743
|
+
$[83] = t29;
|
|
744
|
+
$[84] = t30;
|
|
745
|
+
$[85] = t31;
|
|
746
|
+
$[86] = t32;
|
|
747
|
+
} else t32 = $[86];
|
|
748
|
+
let t33;
|
|
749
|
+
if ($[87] !== currentFilter || $[88] !== filter || $[89] !== filterPlaceholder || $[90] !== onFilterChange || $[91] !== showFilter) {
|
|
750
|
+
t33 = showFilter ? /* @__PURE__ */ jsxs(SearchField.Root, {
|
|
751
|
+
className: "workspace-explorer__filter",
|
|
752
|
+
name: "workspace-filter",
|
|
753
|
+
children: [/* @__PURE__ */ jsx(SearchField.Label, {
|
|
754
|
+
className: "workspace-explorer__filter-label sigvelo-visually-hidden",
|
|
755
|
+
children: "Filter workspace files"
|
|
756
|
+
}), /* @__PURE__ */ jsx(SearchField.Control, {
|
|
757
|
+
value: currentFilter,
|
|
758
|
+
onChange: (event_1) => {
|
|
759
|
+
if (filter === void 0) setInternalFilter(event_1.currentTarget.value);
|
|
760
|
+
onFilterChange?.(event_1.currentTarget.value);
|
|
761
|
+
},
|
|
762
|
+
placeholder: filterPlaceholder,
|
|
763
|
+
autoComplete: "off"
|
|
764
|
+
})]
|
|
765
|
+
}) : null;
|
|
766
|
+
$[87] = currentFilter;
|
|
767
|
+
$[88] = filter;
|
|
768
|
+
$[89] = filterPlaceholder;
|
|
769
|
+
$[90] = onFilterChange;
|
|
770
|
+
$[91] = showFilter;
|
|
771
|
+
$[92] = t33;
|
|
772
|
+
} else t33 = $[92];
|
|
773
|
+
let t34;
|
|
774
|
+
if ($[93] !== layout) {
|
|
775
|
+
t34 = layout === "list" ? /* @__PURE__ */ jsxs("div", {
|
|
776
|
+
className: "workspace-browser__columns",
|
|
777
|
+
children: [
|
|
778
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
779
|
+
/* @__PURE__ */ jsx("span", {
|
|
780
|
+
"data-column": "name",
|
|
781
|
+
children: "Name"
|
|
782
|
+
}),
|
|
783
|
+
/* @__PURE__ */ jsx("span", {
|
|
784
|
+
"data-column": "kind",
|
|
785
|
+
children: "Kind"
|
|
786
|
+
}),
|
|
787
|
+
/* @__PURE__ */ jsx("span", {
|
|
788
|
+
"data-column": "modified",
|
|
789
|
+
children: "Date modified"
|
|
790
|
+
}),
|
|
791
|
+
/* @__PURE__ */ jsx("span", {
|
|
792
|
+
"data-column": "size",
|
|
793
|
+
children: "Size"
|
|
794
|
+
})
|
|
795
|
+
]
|
|
796
|
+
}) : null;
|
|
797
|
+
$[93] = layout;
|
|
798
|
+
$[94] = t34;
|
|
799
|
+
} else t34 = $[94];
|
|
800
|
+
let t35;
|
|
801
|
+
if ($[95] !== dragAndDrop || $[96] !== dropPath || $[97] !== emptyState || $[98] !== entryView || $[99] !== error || $[100] !== expandedPaths || $[101] !== filterQuery || $[102] !== filteredFiles || $[103] !== finder || $[104] !== handleSelect || $[105] !== isLoading || $[106] !== layout || $[107] !== onDirectoryOpen || $[108] !== renderFileLink || $[109] !== renderThumbnail || $[110] !== rootEntries.length || $[111] !== selectedPath || $[112] !== setExpandedPaths || $[113] !== tabStopPath || $[114] !== tree || $[115] !== view || $[116] !== visibleEntries) {
|
|
802
|
+
t35 = error ? /* @__PURE__ */ jsx("div", {
|
|
803
|
+
className: "workspace-explorer__empty",
|
|
804
|
+
role: "alert",
|
|
805
|
+
children: error
|
|
806
|
+
}) : layout !== "tree" ? visibleEntries.length ? /* @__PURE__ */ jsx(WorkspaceBrowserEntries, {
|
|
807
|
+
entries: visibleEntries,
|
|
808
|
+
layout,
|
|
809
|
+
view: entryView,
|
|
810
|
+
isSelected: (path_3) => selectedPath === path_3 || view.isSelected(path_3),
|
|
811
|
+
tabStop: tabStopPath,
|
|
812
|
+
renaming: view.renaming,
|
|
813
|
+
dropPath,
|
|
814
|
+
draggable: Boolean(dragAndDrop),
|
|
815
|
+
foldersOpen: Boolean(onDirectoryOpen),
|
|
816
|
+
finder,
|
|
817
|
+
renderFileLink,
|
|
818
|
+
renderThumbnail
|
|
819
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
820
|
+
className: "workspace-explorer__empty",
|
|
821
|
+
children: filterQuery ? "No matching files" : isLoading ? "Loading workspace..." : emptyState
|
|
822
|
+
}) : filterQuery ? filteredFiles.length > 0 ? /* @__PURE__ */ jsx(FileTree, {
|
|
823
|
+
appearance: "plain",
|
|
824
|
+
className: "workspace-explorer__tree",
|
|
825
|
+
selectedPath,
|
|
826
|
+
onSelect: handleSelect,
|
|
827
|
+
"aria-label": "Workspace files",
|
|
828
|
+
children: filteredFiles.map((entry_6) => /* @__PURE__ */ jsx(FileTreeFile, {
|
|
829
|
+
path: entry_6.path,
|
|
830
|
+
name: entry_6.path,
|
|
831
|
+
icon: renderThumbnail?.(entry_6) ?? void 0,
|
|
832
|
+
render: renderFileLink?.(entry_6.path)
|
|
833
|
+
}, entry_6.path))
|
|
834
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
835
|
+
className: "workspace-explorer__empty",
|
|
836
|
+
children: "No matching files"
|
|
837
|
+
}) : rootEntries.length > 0 ? /* @__PURE__ */ jsx(FileTree, {
|
|
838
|
+
appearance: "plain",
|
|
839
|
+
className: "workspace-explorer__tree",
|
|
840
|
+
expanded: expandedPaths,
|
|
841
|
+
onExpandedChange: setExpandedPaths,
|
|
842
|
+
onFolderOpen: onDirectoryOpen ? handleSelect : void 0,
|
|
843
|
+
selectedPath,
|
|
844
|
+
onSelect: handleSelect,
|
|
845
|
+
"aria-label": "Workspace files",
|
|
846
|
+
children: tree
|
|
847
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
848
|
+
className: "workspace-explorer__empty",
|
|
849
|
+
children: isLoading ? "Loading workspace..." : emptyState ?? "No workspace files"
|
|
850
|
+
});
|
|
851
|
+
$[95] = dragAndDrop;
|
|
852
|
+
$[96] = dropPath;
|
|
853
|
+
$[97] = emptyState;
|
|
854
|
+
$[98] = entryView;
|
|
855
|
+
$[99] = error;
|
|
856
|
+
$[100] = expandedPaths;
|
|
857
|
+
$[101] = filterQuery;
|
|
858
|
+
$[102] = filteredFiles;
|
|
859
|
+
$[103] = finder;
|
|
860
|
+
$[104] = handleSelect;
|
|
861
|
+
$[105] = isLoading;
|
|
862
|
+
$[106] = layout;
|
|
863
|
+
$[107] = onDirectoryOpen;
|
|
864
|
+
$[108] = renderFileLink;
|
|
865
|
+
$[109] = renderThumbnail;
|
|
866
|
+
$[110] = rootEntries.length;
|
|
867
|
+
$[111] = selectedPath;
|
|
868
|
+
$[112] = setExpandedPaths;
|
|
869
|
+
$[113] = tabStopPath;
|
|
870
|
+
$[114] = tree;
|
|
871
|
+
$[115] = view;
|
|
872
|
+
$[116] = visibleEntries;
|
|
873
|
+
$[117] = t35;
|
|
874
|
+
} else t35 = $[117];
|
|
875
|
+
const t36 = finder ? view.statusElement : null;
|
|
876
|
+
let t37;
|
|
877
|
+
if ($[118] !== finder || $[119] !== renderPreview || $[120] !== view.quickLook || $[121] !== visibleEntries) {
|
|
878
|
+
t37 = renderPreview && finder ? /* @__PURE__ */ jsx(WorkspaceQuickLook, {
|
|
879
|
+
quickLook: view.quickLook,
|
|
880
|
+
entries: visibleEntries,
|
|
881
|
+
renderPreview,
|
|
882
|
+
openLabel: "Open",
|
|
883
|
+
onOpen: (entry_7) => openRow(entry_7.path),
|
|
884
|
+
surface: browserRef
|
|
885
|
+
}) : null;
|
|
886
|
+
$[118] = finder;
|
|
887
|
+
$[119] = renderPreview;
|
|
888
|
+
$[120] = view.quickLook;
|
|
889
|
+
$[121] = visibleEntries;
|
|
890
|
+
$[122] = t37;
|
|
891
|
+
} else t37 = $[122];
|
|
892
|
+
let t38;
|
|
893
|
+
if ($[123] !== t32 || $[124] !== t33 || $[125] !== t34 || $[126] !== t35 || $[127] !== t36 || $[128] !== t37 || $[129] !== view.marqueeElement) {
|
|
894
|
+
t38 = /* @__PURE__ */ jsxs(ContextMenu.Trigger, {
|
|
895
|
+
render: t32,
|
|
896
|
+
children: [
|
|
897
|
+
t33,
|
|
898
|
+
t34,
|
|
899
|
+
t35,
|
|
900
|
+
view.marqueeElement,
|
|
901
|
+
t36,
|
|
902
|
+
t37
|
|
903
|
+
]
|
|
904
|
+
});
|
|
905
|
+
$[123] = t32;
|
|
906
|
+
$[124] = t33;
|
|
907
|
+
$[125] = t34;
|
|
908
|
+
$[126] = t35;
|
|
909
|
+
$[127] = t36;
|
|
910
|
+
$[128] = t37;
|
|
911
|
+
$[129] = view.marqueeElement;
|
|
912
|
+
$[130] = t38;
|
|
913
|
+
} else t38 = $[130];
|
|
914
|
+
const t39 = view.menuFinalFocus;
|
|
915
|
+
let t40;
|
|
916
|
+
if ($[131] !== view) {
|
|
917
|
+
t40 = view.menuItems(null);
|
|
918
|
+
$[131] = view;
|
|
919
|
+
$[132] = t40;
|
|
920
|
+
} else t40 = $[132];
|
|
921
|
+
let t41;
|
|
922
|
+
if ($[133] !== t40 || $[134] !== view.menuFinalFocus) {
|
|
923
|
+
t41 = /* @__PURE__ */ jsx(ContextMenu.Positioner, { children: /* @__PURE__ */ jsx(ContextMenu.Popup, {
|
|
924
|
+
finalFocus: t39,
|
|
925
|
+
children: t40
|
|
926
|
+
}) });
|
|
927
|
+
$[133] = t40;
|
|
928
|
+
$[134] = view.menuFinalFocus;
|
|
929
|
+
$[135] = t41;
|
|
930
|
+
} else t41 = $[135];
|
|
931
|
+
let t42;
|
|
932
|
+
if ($[136] !== portalContainer || $[137] !== t41) {
|
|
933
|
+
t42 = /* @__PURE__ */ jsx(ContextMenu.Portal, {
|
|
934
|
+
container: portalContainer,
|
|
935
|
+
children: t41
|
|
936
|
+
});
|
|
937
|
+
$[136] = portalContainer;
|
|
938
|
+
$[137] = t41;
|
|
939
|
+
$[138] = t42;
|
|
940
|
+
} else t42 = $[138];
|
|
941
|
+
let t43;
|
|
942
|
+
if ($[139] !== t28 || $[140] !== t38 || $[141] !== t42) {
|
|
943
|
+
t43 = /* @__PURE__ */ jsxs(ContextMenu.Root, {
|
|
944
|
+
disabled: t28,
|
|
945
|
+
children: [t38, t42]
|
|
946
|
+
});
|
|
947
|
+
$[139] = t28;
|
|
948
|
+
$[140] = t38;
|
|
949
|
+
$[141] = t42;
|
|
950
|
+
$[142] = t43;
|
|
951
|
+
} else t43 = $[142];
|
|
952
|
+
const t44 = error ? "Workspace unavailable" : isLoading && totalCount === 0 ? "Loading workspace…" : filterQuery ? `${visibleCount} of ${totalCount} items` : `${totalCount} ${totalCount === 1 ? "item" : "items"}`;
|
|
953
|
+
let t45;
|
|
954
|
+
if ($[143] !== t44) {
|
|
955
|
+
t45 = /* @__PURE__ */ jsx("div", {
|
|
956
|
+
className: "workspace-browser__footer",
|
|
957
|
+
role: "status",
|
|
958
|
+
"aria-atomic": "true",
|
|
959
|
+
children: t44
|
|
960
|
+
});
|
|
961
|
+
$[143] = t44;
|
|
962
|
+
$[144] = t45;
|
|
963
|
+
} else t45 = $[144];
|
|
964
|
+
let t46;
|
|
965
|
+
if ($[145] !== t27 || $[146] !== t43 || $[147] !== t45) {
|
|
966
|
+
t46 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
967
|
+
t27,
|
|
968
|
+
t43,
|
|
969
|
+
t45
|
|
970
|
+
] });
|
|
971
|
+
$[145] = t27;
|
|
972
|
+
$[146] = t43;
|
|
973
|
+
$[147] = t45;
|
|
974
|
+
$[148] = t46;
|
|
975
|
+
} else t46 = $[148];
|
|
976
|
+
return t46;
|
|
977
|
+
}
|
|
978
|
+
function _temp2(entry_5) {
|
|
979
|
+
return entry_5.type !== "directory";
|
|
980
|
+
}
|
|
981
|
+
function _temp(entry_2) {
|
|
982
|
+
return entry_2.path;
|
|
983
|
+
}
|
|
984
|
+
//#endregion
|
|
985
|
+
export { WorkspaceBrowser as t };
|