@mcp-b/react-components 0.62.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-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
- 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-CMvICi-p.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/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
- 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 +1120 -393
- 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 +165 -22
- 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 +109 -47
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +504 -103
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
- 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 +143 -36
- 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 +331 -116
- package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
- package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
- 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 +543 -159
- package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1154 -256
- package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
- 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 +359 -131
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkChat.js +321 -129
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
- 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 +1389 -407
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
- 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 +506 -125
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -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 +364 -133
- 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 +312 -91
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
- 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 +1496 -419
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
- 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 +268 -86
- 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 +119 -59
- 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 +194 -69
- 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.d.ts +6 -1
- package/dist/components/ai-sdk/AgentChatTurnError.js +77 -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 +738 -179
- 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 +2738 -797
- 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 +793 -155
- 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 +2 -2
- package/dist/components/extension/CodexModelSelector.js +468 -147
- 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 +3833 -1011
- 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 +83 -18
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +130 -27
- 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 +4 -4
- package/dist/components/foundations/ToggleGroup.js +216 -60
- 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 +34 -7
- 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 +210 -85
- package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
- 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.d.ts +10 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
- 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 +67 -24
- 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 +237 -57
- 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/ai-provider-dialog.css +46 -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 +15 -6
- 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 -132
- 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/codex-model-catalog.d.ts +1 -1
- 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/model-provider-error.d.ts +17 -0
- package/dist/utils/model-provider-error.js +76 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-KpMmznB_.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-CNvOYR0Q.js +0 -318
- package/dist/ExecutionResult-DmC21cll.js +0 -279
- package/dist/FileTree-H31EVRv_.js +0 -323
- package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
- package/dist/SetupChecklist-Wo4akaSG.js +0 -78
- package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
- package/dist/WorkspaceFileView-BWI_AJlV.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-DNchrZHs.js +0 -32
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
- package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
- package/dist/connected-app-drafts-B9i69bkj.js +0 -283
- package/dist/copy-button-z20VEXRF.js +0 -45
- package/dist/icons-Yp99gmMC.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-Dq5toMQc.js +0 -107
- package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
- package/dist/workspace-delete-CoB0l6ZU.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { a as formatErrorMessage } from "../../format-
|
|
2
|
-
import { n as isWorkspacePathWithinRoot, t as canonicalizeAbsoluteWorkspacePath } from "../../workspace-path-
|
|
3
|
-
import {
|
|
1
|
+
import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
|
|
2
|
+
import { i as workspaceBasename, n as isWorkspacePathWithinRoot, t as canonicalizeAbsoluteWorkspacePath } from "../../workspace-path-TZggP-u4.js";
|
|
3
|
+
import { inferWorkspaceMedia, isWorkspaceTextPath } from "./WorkspaceFile.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import * as React from "react";
|
|
5
|
-
import { queryOptions, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
|
+
import { matchQuery, queryOptions, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
7
|
//#region src/components/agents-sdk/Workspace.ts
|
|
7
8
|
const DEFAULT_MAX_INLINE_ASSET_BYTES = 33554432;
|
|
8
9
|
const WORKSPACE_DIRECTORY_PAGE_SIZE = 1e3;
|
|
@@ -255,190 +256,514 @@ async function refreshWorkspaceFileQueries(queryClient, { source, sourceKey, roo
|
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
258
|
/**
|
|
259
|
+
* Every cached listing under one source and root, as an external store. A
|
|
260
|
+
* snapshot keeps its identity until a listing is added, replaced or removed.
|
|
261
|
+
*/
|
|
262
|
+
function createDirectoryListingStore(queryClient, sourceKey, root) {
|
|
263
|
+
const queryKey = workspaceDirectoryQueryPrefix(sourceKey, root);
|
|
264
|
+
let snapshot = EMPTY_ENTRIES_BY_DIRECTORY;
|
|
265
|
+
return {
|
|
266
|
+
subscribe: (onChange) => queryClient.getQueryCache().subscribe((event) => {
|
|
267
|
+
if (matchQuery({ queryKey }, event.query)) onChange();
|
|
268
|
+
}),
|
|
269
|
+
getSnapshot: () => {
|
|
270
|
+
const next = {};
|
|
271
|
+
let changed = false;
|
|
272
|
+
for (const [key, data] of queryClient.getQueriesData({ queryKey })) {
|
|
273
|
+
const path = key.at(-1);
|
|
274
|
+
if (typeof path !== "string" || !data) continue;
|
|
275
|
+
next[path] = data;
|
|
276
|
+
if (snapshot[path] !== data) changed = true;
|
|
277
|
+
}
|
|
278
|
+
if (changed || Object.keys(next).length !== Object.keys(snapshot).length) snapshot = Object.keys(next).length > 0 ? next : EMPTY_ENTRIES_BY_DIRECTORY;
|
|
279
|
+
return snapshot;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
258
284
|
* Headless state for browsing a Think workspace. TanStack Query owns remote
|
|
259
285
|
* directory, metadata, resolver, text, and byte lifecycles; the route owns
|
|
260
286
|
* selection, while this hook only keeps local tree expansion state.
|
|
261
287
|
*/
|
|
262
|
-
function useWorkspace(
|
|
288
|
+
function useWorkspace(t0) {
|
|
289
|
+
const $ = c(144);
|
|
290
|
+
const { source, sourceKey, root: t1, selectedPath, onSelectedPathChange, resolveFileAsset, maxInlineAssetBytes: t2 } = t0;
|
|
291
|
+
const root = t1 === void 0 ? "/" : t1;
|
|
292
|
+
const maxInlineAssetBytes = t2 === void 0 ? DEFAULT_MAX_INLINE_ASSET_BYTES : t2;
|
|
263
293
|
const queryClient = useQueryClient();
|
|
264
|
-
|
|
265
|
-
|
|
294
|
+
let t3;
|
|
295
|
+
if ($[0] !== root || $[1] !== sourceKey) {
|
|
296
|
+
t3 = JSON.stringify([sourceKey, root]);
|
|
297
|
+
$[0] = root;
|
|
298
|
+
$[1] = sourceKey;
|
|
299
|
+
$[2] = t3;
|
|
300
|
+
} else t3 = $[2];
|
|
301
|
+
const scopeKey = t3;
|
|
302
|
+
let t4;
|
|
303
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
304
|
+
t4 = {};
|
|
305
|
+
$[3] = t4;
|
|
306
|
+
} else t4 = $[3];
|
|
307
|
+
const [expandedPathsByScope, setExpandedPathsByScope] = React.useState(t4);
|
|
266
308
|
const expandedPaths = expandedPathsByScope[scopeKey] ?? EMPTY_PATHS;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
309
|
+
let t5;
|
|
310
|
+
if ($[4] !== expandedPaths || $[5] !== scopeKey) {
|
|
311
|
+
t5 = {
|
|
312
|
+
scopeKey,
|
|
313
|
+
paths: expandedPaths
|
|
314
|
+
};
|
|
315
|
+
$[4] = expandedPaths;
|
|
316
|
+
$[5] = scopeKey;
|
|
317
|
+
$[6] = t5;
|
|
318
|
+
} else t5 = $[6];
|
|
319
|
+
const latestExpansionRef = React.useRef(t5);
|
|
271
320
|
const normalizedMaxInlineAssetBytes = Number.isFinite(maxInlineAssetBytes) && maxInlineAssetBytes >= 0 ? maxInlineAssetBytes : DEFAULT_MAX_INLINE_ASSET_BYTES;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
321
|
+
let t6;
|
|
322
|
+
if ($[7] !== expandedPaths || $[8] !== root) {
|
|
323
|
+
t6 = [.../* @__PURE__ */ new Set([root, ...expandedPaths])].sort();
|
|
324
|
+
$[7] = expandedPaths;
|
|
325
|
+
$[8] = root;
|
|
326
|
+
$[9] = t6;
|
|
327
|
+
} else t6 = $[9];
|
|
328
|
+
const directoryPaths = t6;
|
|
329
|
+
let t7;
|
|
330
|
+
if ($[10] !== directoryPaths || $[11] !== root || $[12] !== source || $[13] !== sourceKey) {
|
|
331
|
+
let t8;
|
|
332
|
+
if ($[15] !== root || $[16] !== source || $[17] !== sourceKey) {
|
|
333
|
+
t8 = (path) => workspaceDirectoryQueryOptions(source, sourceKey, root, path);
|
|
334
|
+
$[15] = root;
|
|
335
|
+
$[16] = source;
|
|
336
|
+
$[17] = sourceKey;
|
|
337
|
+
$[18] = t8;
|
|
338
|
+
} else t8 = $[18];
|
|
339
|
+
t7 = directoryPaths.map(t8);
|
|
340
|
+
$[10] = directoryPaths;
|
|
341
|
+
$[11] = root;
|
|
342
|
+
$[12] = source;
|
|
343
|
+
$[13] = sourceKey;
|
|
344
|
+
$[14] = t7;
|
|
345
|
+
} else t7 = $[14];
|
|
346
|
+
let t8;
|
|
347
|
+
if ($[19] !== t7) {
|
|
348
|
+
t8 = { queries: t7 };
|
|
349
|
+
$[19] = t7;
|
|
350
|
+
$[20] = t8;
|
|
351
|
+
} else t8 = $[20];
|
|
352
|
+
const directoryQueries = useQueries(t8);
|
|
353
|
+
let t9;
|
|
354
|
+
if ($[21] !== root || $[22] !== source || $[23] !== sourceKey) {
|
|
355
|
+
t9 = workspaceInfoQueryOptions(source, sourceKey, root);
|
|
356
|
+
$[21] = root;
|
|
357
|
+
$[22] = source;
|
|
358
|
+
$[23] = sourceKey;
|
|
359
|
+
$[24] = t9;
|
|
360
|
+
} else t9 = $[24];
|
|
361
|
+
const infoQuery = useQuery(t9);
|
|
362
|
+
const t10 = selectedPath ?? root;
|
|
363
|
+
let t11;
|
|
364
|
+
if ($[25] !== root || $[26] !== source || $[27] !== sourceKey || $[28] !== t10) {
|
|
365
|
+
t11 = workspaceFileStatQueryOptions(source, sourceKey, root, t10);
|
|
366
|
+
$[25] = root;
|
|
367
|
+
$[26] = source;
|
|
368
|
+
$[27] = sourceKey;
|
|
369
|
+
$[28] = t10;
|
|
370
|
+
$[29] = t11;
|
|
371
|
+
} else t11 = $[29];
|
|
372
|
+
const t12 = selectedPath !== null;
|
|
373
|
+
let t13;
|
|
374
|
+
if ($[30] !== t11 || $[31] !== t12) {
|
|
375
|
+
t13 = {
|
|
376
|
+
...t11,
|
|
377
|
+
enabled: t12
|
|
378
|
+
};
|
|
379
|
+
$[30] = t11;
|
|
380
|
+
$[31] = t12;
|
|
381
|
+
$[32] = t13;
|
|
382
|
+
} else t13 = $[32];
|
|
383
|
+
const statQuery = useQuery(t13);
|
|
279
384
|
const target = selectedPath === null ? void 0 : statQuery.data;
|
|
280
385
|
const statSettled = target !== void 0 && statQuery.isSuccess && !statQuery.isFetching;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const assetQuery = useQuery({
|
|
289
|
-
...workspaceFileAssetQueryOptions(sourceKey, root, queryTarget, resolveFileAsset ?? INACTIVE_FILE_ASSET_RESOLVER),
|
|
290
|
-
enabled: statSettled && resolveFileAsset !== void 0
|
|
291
|
-
});
|
|
292
|
-
const resolvedAsset = assetQuery.data ?? null;
|
|
293
|
-
const resolverSettled = !resolveFileAsset || assetQuery.isSuccess && !assetQuery.isFetching;
|
|
294
|
-
const textQuery = useQuery({
|
|
295
|
-
...workspaceTextFileQueryOptions(source, sourceKey, root, queryTarget),
|
|
296
|
-
enabled: statSettled && resolverSettled && !resolvedAsset && !target.media && targetIsText
|
|
297
|
-
});
|
|
298
|
-
const binaryQuery = useQuery({
|
|
299
|
-
...workspaceBinaryFileQueryOptions(source, sourceKey, root, queryTarget, normalizedMaxInlineAssetBytes),
|
|
300
|
-
enabled: statSettled && resolverSettled && !resolvedAsset && Boolean(target.media)
|
|
301
|
-
});
|
|
302
|
-
const entriesByDirectory = {};
|
|
303
|
-
for (const [key, data] of queryClient.getQueriesData({ queryKey: workspaceDirectoryQueryPrefix(sourceKey, root) })) {
|
|
304
|
-
const path = key.at(-1);
|
|
305
|
-
if (typeof path === "string" && data) entriesByDirectory[path] = data;
|
|
306
|
-
}
|
|
307
|
-
const entryByPath = /* @__PURE__ */ new Map();
|
|
308
|
-
for (const directoryEntries of Object.values(entriesByDirectory)) for (const entry of directoryEntries) entryByPath.set(entry.path, entry);
|
|
309
|
-
const setExpandedPaths = React.useCallback((next) => {
|
|
310
|
-
latestExpansionRef.current = {
|
|
311
|
-
scopeKey,
|
|
312
|
-
paths: next
|
|
386
|
+
let t14;
|
|
387
|
+
if ($[33] !== root || $[34] !== selectedPath || $[35] !== target) {
|
|
388
|
+
t14 = target ?? {
|
|
389
|
+
requestedPath: selectedPath ?? root,
|
|
390
|
+
readPath: selectedPath ?? root,
|
|
391
|
+
info: INACTIVE_FILE_INFO,
|
|
392
|
+
media: null
|
|
313
393
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
394
|
+
$[33] = root;
|
|
395
|
+
$[34] = selectedPath;
|
|
396
|
+
$[35] = target;
|
|
397
|
+
$[36] = t14;
|
|
398
|
+
} else t14 = $[36];
|
|
399
|
+
const queryTarget = t14;
|
|
400
|
+
let t15;
|
|
401
|
+
if ($[37] !== target) {
|
|
402
|
+
t15 = target ? isWorkspaceTextPath(target.readPath, target.info.mimeType) : false;
|
|
403
|
+
$[37] = target;
|
|
404
|
+
$[38] = t15;
|
|
405
|
+
} else t15 = $[38];
|
|
406
|
+
const targetIsText = t15;
|
|
407
|
+
const t16 = resolveFileAsset ?? INACTIVE_FILE_ASSET_RESOLVER;
|
|
408
|
+
let t17;
|
|
409
|
+
if ($[39] !== queryTarget || $[40] !== root || $[41] !== sourceKey || $[42] !== t16) {
|
|
410
|
+
t17 = workspaceFileAssetQueryOptions(sourceKey, root, queryTarget, t16);
|
|
411
|
+
$[39] = queryTarget;
|
|
412
|
+
$[40] = root;
|
|
413
|
+
$[41] = sourceKey;
|
|
414
|
+
$[42] = t16;
|
|
415
|
+
$[43] = t17;
|
|
416
|
+
} else t17 = $[43];
|
|
417
|
+
const t18 = statSettled && resolveFileAsset !== void 0;
|
|
418
|
+
let t19;
|
|
419
|
+
if ($[44] !== t17 || $[45] !== t18) {
|
|
420
|
+
t19 = {
|
|
421
|
+
...t17,
|
|
422
|
+
enabled: t18
|
|
338
423
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
424
|
+
$[44] = t17;
|
|
425
|
+
$[45] = t18;
|
|
426
|
+
$[46] = t19;
|
|
427
|
+
} else t19 = $[46];
|
|
428
|
+
const assetQuery = useQuery(t19);
|
|
429
|
+
const resolvedAsset = assetQuery.data ?? null;
|
|
430
|
+
const resolverSettled = !resolveFileAsset || assetQuery.isSuccess && !assetQuery.isFetching;
|
|
431
|
+
let t20;
|
|
432
|
+
if ($[47] !== queryTarget || $[48] !== root || $[49] !== source || $[50] !== sourceKey) {
|
|
433
|
+
t20 = workspaceTextFileQueryOptions(source, sourceKey, root, queryTarget);
|
|
434
|
+
$[47] = queryTarget;
|
|
435
|
+
$[48] = root;
|
|
436
|
+
$[49] = source;
|
|
437
|
+
$[50] = sourceKey;
|
|
438
|
+
$[51] = t20;
|
|
439
|
+
} else t20 = $[51];
|
|
440
|
+
const t21 = statSettled && resolverSettled && !resolvedAsset && !target.media && targetIsText;
|
|
441
|
+
let t22;
|
|
442
|
+
if ($[52] !== t20 || $[53] !== t21) {
|
|
443
|
+
t22 = {
|
|
444
|
+
...t20,
|
|
445
|
+
enabled: t21
|
|
346
446
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
447
|
+
$[52] = t20;
|
|
448
|
+
$[53] = t21;
|
|
449
|
+
$[54] = t22;
|
|
450
|
+
} else t22 = $[54];
|
|
451
|
+
const textQuery = useQuery(t22);
|
|
452
|
+
let t23;
|
|
453
|
+
if ($[55] !== normalizedMaxInlineAssetBytes || $[56] !== queryTarget || $[57] !== root || $[58] !== source || $[59] !== sourceKey) {
|
|
454
|
+
t23 = workspaceBinaryFileQueryOptions(source, sourceKey, root, queryTarget, normalizedMaxInlineAssetBytes);
|
|
455
|
+
$[55] = normalizedMaxInlineAssetBytes;
|
|
456
|
+
$[56] = queryTarget;
|
|
457
|
+
$[57] = root;
|
|
458
|
+
$[58] = source;
|
|
459
|
+
$[59] = sourceKey;
|
|
460
|
+
$[60] = t23;
|
|
461
|
+
} else t23 = $[60];
|
|
462
|
+
const t24 = statSettled && resolverSettled && !resolvedAsset && Boolean(target.media);
|
|
463
|
+
let t25;
|
|
464
|
+
if ($[61] !== t23 || $[62] !== t24) {
|
|
465
|
+
t25 = {
|
|
466
|
+
...t23,
|
|
467
|
+
enabled: t24
|
|
354
468
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
469
|
+
$[61] = t23;
|
|
470
|
+
$[62] = t24;
|
|
471
|
+
$[63] = t25;
|
|
472
|
+
} else t25 = $[63];
|
|
473
|
+
const binaryQuery = useQuery(t25);
|
|
474
|
+
let t26;
|
|
475
|
+
if ($[64] !== queryClient || $[65] !== root || $[66] !== sourceKey) {
|
|
476
|
+
t26 = createDirectoryListingStore(queryClient, sourceKey, root);
|
|
477
|
+
$[64] = queryClient;
|
|
478
|
+
$[65] = root;
|
|
479
|
+
$[66] = sourceKey;
|
|
480
|
+
$[67] = t26;
|
|
481
|
+
} else t26 = $[67];
|
|
482
|
+
const directoryListings = t26;
|
|
483
|
+
const entriesByDirectory = React.useSyncExternalStore(directoryListings.subscribe, directoryListings.getSnapshot, directoryListings.getSnapshot);
|
|
484
|
+
let entryByPath;
|
|
485
|
+
if ($[68] !== entriesByDirectory) {
|
|
486
|
+
entryByPath = /* @__PURE__ */ new Map();
|
|
487
|
+
for (const directoryEntries of Object.values(entriesByDirectory)) for (const entry of directoryEntries) entryByPath.set(entry.path, entry);
|
|
488
|
+
$[68] = entriesByDirectory;
|
|
489
|
+
$[69] = entryByPath;
|
|
490
|
+
} else entryByPath = $[69];
|
|
491
|
+
let t27;
|
|
492
|
+
if ($[70] !== scopeKey) {
|
|
493
|
+
t27 = (next) => {
|
|
494
|
+
latestExpansionRef.current = {
|
|
495
|
+
scopeKey,
|
|
496
|
+
paths: next
|
|
497
|
+
};
|
|
498
|
+
setExpandedPathsByScope((current) => ({
|
|
499
|
+
...current,
|
|
500
|
+
[scopeKey]: next
|
|
501
|
+
}));
|
|
362
502
|
};
|
|
503
|
+
$[70] = scopeKey;
|
|
504
|
+
$[71] = t27;
|
|
505
|
+
} else t27 = $[71];
|
|
506
|
+
const setExpandedPaths = t27;
|
|
507
|
+
let t28;
|
|
508
|
+
if ($[72] !== onSelectedPathChange) {
|
|
509
|
+
t28 = (path_0) => onSelectedPathChange?.(path_0);
|
|
510
|
+
$[72] = onSelectedPathChange;
|
|
511
|
+
$[73] = t28;
|
|
512
|
+
} else t28 = $[73];
|
|
513
|
+
const selectFile = t28;
|
|
514
|
+
const selectedError = statQuery.error ?? assetQuery.error ?? textQuery.error ?? binaryQuery.error;
|
|
515
|
+
let selectedFile = null;
|
|
516
|
+
if (selectedPath && selectedError) {
|
|
517
|
+
let t29;
|
|
518
|
+
if ($[74] !== selectedPath) {
|
|
519
|
+
t29 = workspaceBasename(selectedPath);
|
|
520
|
+
$[74] = selectedPath;
|
|
521
|
+
$[75] = t29;
|
|
522
|
+
} else t29 = $[75];
|
|
523
|
+
const t30 = target?.info ?? null;
|
|
524
|
+
let t31;
|
|
525
|
+
if ($[76] !== selectedError) {
|
|
526
|
+
t31 = formatErrorMessage(selectedError);
|
|
527
|
+
$[76] = selectedError;
|
|
528
|
+
$[77] = t31;
|
|
529
|
+
} else t31 = $[77];
|
|
530
|
+
let t32;
|
|
531
|
+
if ($[78] !== selectedPath || $[79] !== t29 || $[80] !== t30 || $[81] !== t31) {
|
|
532
|
+
t32 = {
|
|
533
|
+
path: selectedPath,
|
|
534
|
+
name: t29,
|
|
535
|
+
content: null,
|
|
536
|
+
asset: null,
|
|
537
|
+
info: t30,
|
|
538
|
+
error: t31
|
|
539
|
+
};
|
|
540
|
+
$[78] = selectedPath;
|
|
541
|
+
$[79] = t29;
|
|
542
|
+
$[80] = t30;
|
|
543
|
+
$[81] = t31;
|
|
544
|
+
$[82] = t32;
|
|
545
|
+
} else t32 = $[82];
|
|
546
|
+
selectedFile = t32;
|
|
547
|
+
} else if (selectedPath && statSettled && target && resolverSettled) {
|
|
548
|
+
if (resolvedAsset) {
|
|
549
|
+
let t29;
|
|
550
|
+
if ($[83] !== selectedPath) {
|
|
551
|
+
t29 = workspaceBasename(selectedPath);
|
|
552
|
+
$[83] = selectedPath;
|
|
553
|
+
$[84] = t29;
|
|
554
|
+
} else t29 = $[84];
|
|
555
|
+
let t30;
|
|
556
|
+
if ($[85] !== resolvedAsset.asset || $[86] !== selectedPath || $[87] !== t29 || $[88] !== target.info) {
|
|
557
|
+
t30 = {
|
|
558
|
+
path: selectedPath,
|
|
559
|
+
name: t29,
|
|
560
|
+
content: null,
|
|
561
|
+
asset: resolvedAsset.asset,
|
|
562
|
+
info: target.info,
|
|
563
|
+
error: null
|
|
564
|
+
};
|
|
565
|
+
$[85] = resolvedAsset.asset;
|
|
566
|
+
$[86] = selectedPath;
|
|
567
|
+
$[87] = t29;
|
|
568
|
+
$[88] = target.info;
|
|
569
|
+
$[89] = t30;
|
|
570
|
+
} else t30 = $[89];
|
|
571
|
+
selectedFile = t30;
|
|
572
|
+
} else if (target.media && binaryQuery.isSuccess && !binaryQuery.isFetching) {
|
|
573
|
+
let t29;
|
|
574
|
+
if ($[90] !== selectedPath) {
|
|
575
|
+
t29 = workspaceBasename(selectedPath);
|
|
576
|
+
$[90] = selectedPath;
|
|
577
|
+
$[91] = t29;
|
|
578
|
+
} else t29 = $[91];
|
|
579
|
+
const t30 = binaryQuery.data?.asset ?? null;
|
|
580
|
+
let t31;
|
|
581
|
+
if ($[92] !== selectedPath || $[93] !== t29 || $[94] !== t30 || $[95] !== target.info) {
|
|
582
|
+
t31 = {
|
|
583
|
+
path: selectedPath,
|
|
584
|
+
name: t29,
|
|
585
|
+
content: null,
|
|
586
|
+
asset: t30,
|
|
587
|
+
info: target.info,
|
|
588
|
+
error: null
|
|
589
|
+
};
|
|
590
|
+
$[92] = selectedPath;
|
|
591
|
+
$[93] = t29;
|
|
592
|
+
$[94] = t30;
|
|
593
|
+
$[95] = target.info;
|
|
594
|
+
$[96] = t31;
|
|
595
|
+
} else t31 = $[96];
|
|
596
|
+
selectedFile = t31;
|
|
597
|
+
} else if (targetIsText && textQuery.isSuccess) {
|
|
598
|
+
let t29;
|
|
599
|
+
if ($[97] !== selectedPath) {
|
|
600
|
+
t29 = workspaceBasename(selectedPath);
|
|
601
|
+
$[97] = selectedPath;
|
|
602
|
+
$[98] = t29;
|
|
603
|
+
} else t29 = $[98];
|
|
604
|
+
let t30;
|
|
605
|
+
if ($[99] !== selectedPath || $[100] !== t29 || $[101] !== target.info || $[102] !== textQuery.data) {
|
|
606
|
+
t30 = {
|
|
607
|
+
path: selectedPath,
|
|
608
|
+
name: t29,
|
|
609
|
+
content: textQuery.data,
|
|
610
|
+
asset: null,
|
|
611
|
+
info: target.info,
|
|
612
|
+
error: null
|
|
613
|
+
};
|
|
614
|
+
$[99] = selectedPath;
|
|
615
|
+
$[100] = t29;
|
|
616
|
+
$[101] = target.info;
|
|
617
|
+
$[102] = textQuery.data;
|
|
618
|
+
$[103] = t30;
|
|
619
|
+
} else t30 = $[103];
|
|
620
|
+
selectedFile = t30;
|
|
621
|
+
} else if (!target.media && !targetIsText) {
|
|
622
|
+
let t29;
|
|
623
|
+
if ($[104] !== selectedPath) {
|
|
624
|
+
t29 = workspaceBasename(selectedPath);
|
|
625
|
+
$[104] = selectedPath;
|
|
626
|
+
$[105] = t29;
|
|
627
|
+
} else t29 = $[105];
|
|
628
|
+
let t30;
|
|
629
|
+
if ($[106] !== selectedPath || $[107] !== t29 || $[108] !== target.info) {
|
|
630
|
+
t30 = {
|
|
631
|
+
path: selectedPath,
|
|
632
|
+
name: t29,
|
|
633
|
+
content: null,
|
|
634
|
+
asset: null,
|
|
635
|
+
info: target.info,
|
|
636
|
+
error: null
|
|
637
|
+
};
|
|
638
|
+
$[106] = selectedPath;
|
|
639
|
+
$[107] = t29;
|
|
640
|
+
$[108] = target.info;
|
|
641
|
+
$[109] = t30;
|
|
642
|
+
} else t30 = $[109];
|
|
643
|
+
selectedFile = t30;
|
|
644
|
+
}
|
|
363
645
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
646
|
+
let paths;
|
|
647
|
+
if ($[110] !== assetQuery || $[111] !== binaryQuery || $[112] !== directoryPaths || $[113] !== directoryQueries || $[114] !== selectedPath || $[115] !== statQuery || $[116] !== textQuery) {
|
|
648
|
+
paths = /* @__PURE__ */ new Set();
|
|
649
|
+
for (const [index, path_1] of directoryPaths.entries()) if (directoryQueries[index]?.isFetching) paths.add(path_1);
|
|
367
650
|
if (selectedPath && [
|
|
368
651
|
statQuery,
|
|
369
652
|
assetQuery,
|
|
370
653
|
textQuery,
|
|
371
654
|
binaryQuery
|
|
372
|
-
].some(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
655
|
+
].some(_temp)) paths.add(selectedPath);
|
|
656
|
+
$[110] = assetQuery;
|
|
657
|
+
$[111] = binaryQuery;
|
|
658
|
+
$[112] = directoryPaths;
|
|
659
|
+
$[113] = directoryQueries;
|
|
660
|
+
$[114] = selectedPath;
|
|
661
|
+
$[115] = statQuery;
|
|
662
|
+
$[116] = textQuery;
|
|
663
|
+
$[117] = paths;
|
|
664
|
+
} else paths = $[117];
|
|
665
|
+
const loadingPaths = paths;
|
|
383
666
|
const rootDirectoryIndex = directoryPaths.indexOf(root);
|
|
384
667
|
const isLoading = Boolean(directoryQueries[rootDirectoryIndex]?.isFetching) || infoQuery.isFetching;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
668
|
+
let t29;
|
|
669
|
+
if ($[118] !== directoryQueries) {
|
|
670
|
+
t29 = [...new Set(directoryQueries.map(_temp2).filter(_temp3).map(formatErrorMessage))].join("; ") || null;
|
|
671
|
+
$[118] = directoryQueries;
|
|
672
|
+
$[119] = t29;
|
|
673
|
+
} else t29 = $[119];
|
|
674
|
+
const error = t29;
|
|
675
|
+
let t30;
|
|
676
|
+
if ($[120] !== expandedPaths || $[121] !== normalizedMaxInlineAssetBytes || $[122] !== queryClient || $[123] !== resolveFileAsset || $[124] !== root || $[125] !== scopeKey || $[126] !== selectedPath || $[127] !== source || $[128] !== sourceKey) {
|
|
677
|
+
t30 = () => {
|
|
678
|
+
(async () => {
|
|
679
|
+
const latestExpandedPaths = latestExpansionRef.current.scopeKey === scopeKey ? latestExpansionRef.current.paths : expandedPaths;
|
|
680
|
+
const refreshedDirectoryPaths = [.../* @__PURE__ */ new Set([root, ...latestExpandedPaths])].sort();
|
|
681
|
+
await queryClient.cancelQueries({ queryKey: workspaceQueryKey(sourceKey, root) });
|
|
682
|
+
const refreshedDirectories = await Promise.all(refreshedDirectoryPaths.map(async (path_2) => {
|
|
683
|
+
try {
|
|
684
|
+
await queryClient.fetchQuery({
|
|
685
|
+
...workspaceDirectoryQueryOptions(source, sourceKey, root, path_2),
|
|
686
|
+
staleTime: 0
|
|
687
|
+
});
|
|
688
|
+
return true;
|
|
689
|
+
} catch {
|
|
690
|
+
return false;
|
|
691
|
+
}
|
|
692
|
+
}));
|
|
693
|
+
await queryClient.fetchQuery({
|
|
694
|
+
...workspaceInfoQueryOptions(source, sourceKey, root),
|
|
695
|
+
staleTime: 0
|
|
696
|
+
}).catch(_temp4);
|
|
697
|
+
if (refreshedDirectories.includes(false)) return;
|
|
698
|
+
await refreshWorkspaceFileQueries(queryClient, {
|
|
699
|
+
source,
|
|
700
|
+
sourceKey,
|
|
701
|
+
root,
|
|
702
|
+
selectedPath,
|
|
703
|
+
resolveFileAsset,
|
|
704
|
+
maxInlineAssetBytes: normalizedMaxInlineAssetBytes
|
|
705
|
+
});
|
|
706
|
+
})().catch(_temp5);
|
|
707
|
+
};
|
|
708
|
+
$[120] = expandedPaths;
|
|
709
|
+
$[121] = normalizedMaxInlineAssetBytes;
|
|
710
|
+
$[122] = queryClient;
|
|
711
|
+
$[123] = resolveFileAsset;
|
|
712
|
+
$[124] = root;
|
|
713
|
+
$[125] = scopeKey;
|
|
714
|
+
$[126] = selectedPath;
|
|
715
|
+
$[127] = source;
|
|
716
|
+
$[128] = sourceKey;
|
|
717
|
+
$[129] = t30;
|
|
718
|
+
} else t30 = $[129];
|
|
719
|
+
const refresh = t30;
|
|
720
|
+
const t31 = entryByPath.size > 0 ? entryByPath : EMPTY_ENTRY_BY_PATH;
|
|
721
|
+
const t32 = loadingPaths.size > 0 ? loadingPaths : EMPTY_PATHS;
|
|
722
|
+
const t33 = infoQuery.data ?? null;
|
|
723
|
+
let t34;
|
|
724
|
+
if ($[130] !== entriesByDirectory || $[131] !== error || $[132] !== expandedPaths || $[133] !== isLoading || $[134] !== refresh || $[135] !== root || $[136] !== selectFile || $[137] !== selectedFile || $[138] !== selectedPath || $[139] !== setExpandedPaths || $[140] !== t31 || $[141] !== t32 || $[142] !== t33) {
|
|
725
|
+
t34 = {
|
|
726
|
+
root,
|
|
727
|
+
entriesByDirectory,
|
|
728
|
+
entryByPath: t31,
|
|
729
|
+
expandedPaths,
|
|
730
|
+
setExpandedPaths,
|
|
731
|
+
selectedPath,
|
|
732
|
+
selectFile,
|
|
733
|
+
selectedFile,
|
|
734
|
+
isLoading,
|
|
735
|
+
loadingPaths: t32,
|
|
736
|
+
error,
|
|
737
|
+
info: t33,
|
|
738
|
+
refresh
|
|
739
|
+
};
|
|
740
|
+
$[130] = entriesByDirectory;
|
|
741
|
+
$[131] = error;
|
|
742
|
+
$[132] = expandedPaths;
|
|
743
|
+
$[133] = isLoading;
|
|
744
|
+
$[134] = refresh;
|
|
745
|
+
$[135] = root;
|
|
746
|
+
$[136] = selectFile;
|
|
747
|
+
$[137] = selectedFile;
|
|
748
|
+
$[138] = selectedPath;
|
|
749
|
+
$[139] = setExpandedPaths;
|
|
750
|
+
$[140] = t31;
|
|
751
|
+
$[141] = t32;
|
|
752
|
+
$[142] = t33;
|
|
753
|
+
$[143] = t34;
|
|
754
|
+
} else t34 = $[143];
|
|
755
|
+
return t34;
|
|
756
|
+
}
|
|
757
|
+
function _temp5() {}
|
|
758
|
+
function _temp4() {}
|
|
759
|
+
function _temp3(queryError) {
|
|
760
|
+
return queryError !== null;
|
|
761
|
+
}
|
|
762
|
+
function _temp2(query_0) {
|
|
763
|
+
return query_0.error;
|
|
764
|
+
}
|
|
765
|
+
function _temp(query) {
|
|
766
|
+
return query.isFetching;
|
|
442
767
|
}
|
|
443
768
|
//#endregion
|
|
444
769
|
export { refreshWorkspaceFileQueries, useWorkspace, workspaceBinaryFileQueryOptions, workspaceDirectoryQueryKey, workspaceDirectoryQueryOptions, workspaceDirectoryQueryPrefix, workspaceFileAssetQueryOptions, workspaceFileQueryKey, workspaceFileStatQueryOptions, workspaceInfoQueryKey, workspaceInfoQueryOptions, workspaceQueryKey, workspaceTextFileQueryOptions };
|