@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,9 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { X as PlayIcon, q as PauseIcon } from "../../icons-nLTnB9kd.js";
|
|
3
|
+
import { i as formatClock } from "../../format-DL7f2rqp.js";
|
|
3
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
-
import { i as formatClock } from "../../format-CWaZEp5o.js";
|
|
5
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
6
|
import { Slider } from "../foundations/Slider.js";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
7
8
|
import * as React from "react";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { Replayer } from "@rrweb/replay";
|
|
@@ -29,7 +30,28 @@ function labelReplayFrame(stage) {
|
|
|
29
30
|
* @see https://github.com/cloudflare/agents/tree/main/packages/agents/src/browser
|
|
30
31
|
* @see https://github.com/rrweb-io/rrweb/tree/main/packages/%40rrweb/replay
|
|
31
32
|
*/
|
|
32
|
-
function BrowserReplay(
|
|
33
|
+
function BrowserReplay(t0) {
|
|
34
|
+
const $ = c(61);
|
|
35
|
+
let autoPlay;
|
|
36
|
+
let className;
|
|
37
|
+
let events;
|
|
38
|
+
let props;
|
|
39
|
+
let ref;
|
|
40
|
+
if ($[0] !== t0) {
|
|
41
|
+
({className, events, autoPlay, ref, ...props} = t0);
|
|
42
|
+
$[0] = t0;
|
|
43
|
+
$[1] = autoPlay;
|
|
44
|
+
$[2] = className;
|
|
45
|
+
$[3] = events;
|
|
46
|
+
$[4] = props;
|
|
47
|
+
$[5] = ref;
|
|
48
|
+
} else {
|
|
49
|
+
autoPlay = $[1];
|
|
50
|
+
className = $[2];
|
|
51
|
+
events = $[3];
|
|
52
|
+
props = $[4];
|
|
53
|
+
ref = $[5];
|
|
54
|
+
}
|
|
33
55
|
const stageRef = React.useRef(null);
|
|
34
56
|
const replayerRef = React.useRef(null);
|
|
35
57
|
const rafRef = React.useRef(0);
|
|
@@ -37,149 +59,292 @@ function BrowserReplay({ className, events, autoPlay, ref, ...props }) {
|
|
|
37
59
|
const [currentTime, setCurrentTime] = React.useState(0);
|
|
38
60
|
const [duration, setDuration] = React.useState(0);
|
|
39
61
|
const [hasError, setHasError] = React.useState(false);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
setDuration(0);
|
|
48
|
-
setHasError(false);
|
|
49
|
-
if (events.length < 2) return;
|
|
50
|
-
let frameLabelRaf = 0;
|
|
51
|
-
const handleFinish = () => {
|
|
52
|
-
const replayer = replayerRef.current;
|
|
62
|
+
let t1;
|
|
63
|
+
let t2;
|
|
64
|
+
if ($[6] !== autoPlay || $[7] !== events) {
|
|
65
|
+
t1 = () => {
|
|
66
|
+
const stage = stageRef.current;
|
|
67
|
+
if (!stage) return;
|
|
68
|
+
stage.replaceChildren();
|
|
53
69
|
cancelAnimationFrame(rafRef.current);
|
|
54
70
|
setIsPlaying(false);
|
|
55
|
-
setCurrentTime(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
setCurrentTime(0);
|
|
72
|
+
setDuration(0);
|
|
73
|
+
setHasError(false);
|
|
74
|
+
if (events.length < 2) return;
|
|
75
|
+
let frameLabelRaf = 0;
|
|
76
|
+
const handleFinish = () => {
|
|
77
|
+
const replayer = replayerRef.current;
|
|
78
|
+
cancelAnimationFrame(rafRef.current);
|
|
79
|
+
setIsPlaying(false);
|
|
80
|
+
setCurrentTime(replayer?.getMetaData().totalTime ?? 0);
|
|
81
|
+
};
|
|
82
|
+
const fit = (t3) => {
|
|
83
|
+
const { width, height } = t3;
|
|
84
|
+
const scale = Math.min(stage.clientWidth / width, stage.clientHeight / height, 1);
|
|
85
|
+
const replayer_0 = replayerRef.current;
|
|
86
|
+
if (!replayer_0) return;
|
|
87
|
+
replayer_0.wrapper.style.position = "absolute";
|
|
88
|
+
replayer_0.wrapper.style.transform = `scale(${scale})`;
|
|
89
|
+
replayer_0.wrapper.style.transformOrigin = "top left";
|
|
90
|
+
replayer_0.wrapper.style.left = `${Math.max(0, (stage.clientWidth - width * scale) / 2)}px`;
|
|
91
|
+
replayer_0.wrapper.style.top = `${Math.max(0, (stage.clientHeight - height * scale) / 2)}px`;
|
|
92
|
+
labelReplayFrame(stage);
|
|
93
|
+
};
|
|
94
|
+
try {
|
|
95
|
+
const replayer_1 = new Replayer(events, {
|
|
96
|
+
root: stage,
|
|
97
|
+
mouseTail: false,
|
|
98
|
+
speed: 1
|
|
99
|
+
});
|
|
100
|
+
replayerRef.current = replayer_1;
|
|
101
|
+
setDuration(replayer_1.getMetaData().totalTime);
|
|
102
|
+
replayer_1.on("finish", handleFinish);
|
|
103
|
+
replayer_1.on("resize", fit);
|
|
104
|
+
replayer_1.pause(0);
|
|
105
|
+
labelReplayFrame(stage);
|
|
106
|
+
frameLabelRaf = requestAnimationFrame(() => labelReplayFrame(stage));
|
|
107
|
+
if (autoPlay) {
|
|
108
|
+
replayer_1.play(0);
|
|
109
|
+
setIsPlaying(true);
|
|
110
|
+
}
|
|
111
|
+
} catch {
|
|
112
|
+
setHasError(true);
|
|
84
113
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
replayerRef.current = null;
|
|
93
|
-
stage.replaceChildren();
|
|
114
|
+
return () => {
|
|
115
|
+
cancelAnimationFrame(rafRef.current);
|
|
116
|
+
cancelAnimationFrame(frameLabelRaf);
|
|
117
|
+
replayerRef.current?.destroy();
|
|
118
|
+
replayerRef.current = null;
|
|
119
|
+
stage.replaceChildren();
|
|
120
|
+
};
|
|
94
121
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
122
|
+
t2 = [autoPlay, events];
|
|
123
|
+
$[6] = autoPlay;
|
|
124
|
+
$[7] = events;
|
|
125
|
+
$[8] = t1;
|
|
126
|
+
$[9] = t2;
|
|
127
|
+
} else {
|
|
128
|
+
t1 = $[8];
|
|
129
|
+
t2 = $[9];
|
|
130
|
+
}
|
|
131
|
+
React.useEffect(t1, t2);
|
|
132
|
+
let t3;
|
|
133
|
+
let t4;
|
|
134
|
+
if ($[10] !== duration || $[11] !== isPlaying) {
|
|
135
|
+
t3 = () => {
|
|
136
|
+
if (!isPlaying) return;
|
|
137
|
+
const tick = () => {
|
|
138
|
+
const replayer_2 = replayerRef.current;
|
|
139
|
+
if (replayer_2) setCurrentTime(Math.min(replayer_2.getCurrentTime(), duration));
|
|
140
|
+
rafRef.current = requestAnimationFrame(tick);
|
|
141
|
+
};
|
|
101
142
|
rafRef.current = requestAnimationFrame(tick);
|
|
143
|
+
return () => cancelAnimationFrame(rafRef.current);
|
|
102
144
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
145
|
+
t4 = [duration, isPlaying];
|
|
146
|
+
$[10] = duration;
|
|
147
|
+
$[11] = isPlaying;
|
|
148
|
+
$[12] = t3;
|
|
149
|
+
$[13] = t4;
|
|
150
|
+
} else {
|
|
151
|
+
t3 = $[12];
|
|
152
|
+
t4 = $[13];
|
|
153
|
+
}
|
|
154
|
+
React.useEffect(t3, t4);
|
|
106
155
|
const disabled = events.length < 2 || hasError || duration <= 0;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
156
|
+
let t5;
|
|
157
|
+
if ($[14] !== currentTime || $[15] !== disabled || $[16] !== duration || $[17] !== isPlaying) {
|
|
158
|
+
t5 = () => {
|
|
159
|
+
const replayer_3 = replayerRef.current;
|
|
160
|
+
if (!replayer_3 || disabled) return;
|
|
161
|
+
if (isPlaying) {
|
|
162
|
+
replayer_3.pause(currentTime);
|
|
163
|
+
setIsPlaying(false);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const startAt = currentTime >= duration ? 0 : currentTime;
|
|
167
|
+
replayer_3.play(startAt);
|
|
168
|
+
setCurrentTime(startAt);
|
|
169
|
+
setIsPlaying(true);
|
|
170
|
+
};
|
|
171
|
+
$[14] = currentTime;
|
|
172
|
+
$[15] = disabled;
|
|
173
|
+
$[16] = duration;
|
|
174
|
+
$[17] = isPlaying;
|
|
175
|
+
$[18] = t5;
|
|
176
|
+
} else t5 = $[18];
|
|
177
|
+
const handlePlayPause = t5;
|
|
178
|
+
let t6;
|
|
179
|
+
if ($[19] !== isPlaying) {
|
|
180
|
+
t6 = (value) => {
|
|
181
|
+
const next = typeof value === "number" ? value : value[0] ?? 0;
|
|
182
|
+
setCurrentTime(next);
|
|
183
|
+
const replayer_4 = replayerRef.current;
|
|
184
|
+
if (!replayer_4) return;
|
|
185
|
+
if (isPlaying) replayer_4.play(next);
|
|
186
|
+
else replayer_4.pause(next);
|
|
187
|
+
};
|
|
188
|
+
$[19] = isPlaying;
|
|
189
|
+
$[20] = t6;
|
|
190
|
+
} else t6 = $[20];
|
|
191
|
+
const handleScrub = t6;
|
|
192
|
+
let t7;
|
|
193
|
+
if ($[21] !== className) {
|
|
194
|
+
t7 = cx("browser-replay", className);
|
|
195
|
+
$[21] = className;
|
|
196
|
+
$[22] = t7;
|
|
197
|
+
} else t7 = $[22];
|
|
198
|
+
let t8;
|
|
199
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
200
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
201
|
+
ref: stageRef,
|
|
202
|
+
className: "browser-replay__stage"
|
|
203
|
+
});
|
|
204
|
+
$[23] = t8;
|
|
205
|
+
} else t8 = $[23];
|
|
206
|
+
let t9;
|
|
207
|
+
if ($[24] !== events.length) {
|
|
208
|
+
t9 = events.length < 2 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
209
|
+
className: "browser-replay__empty",
|
|
210
|
+
description: "No browser recording"
|
|
211
|
+
}) : null;
|
|
212
|
+
$[24] = events.length;
|
|
213
|
+
$[25] = t9;
|
|
214
|
+
} else t9 = $[25];
|
|
215
|
+
let t10;
|
|
216
|
+
if ($[26] !== hasError) {
|
|
217
|
+
t10 = hasError ? /* @__PURE__ */ jsx(EmptyState, {
|
|
218
|
+
className: "browser-replay__empty",
|
|
219
|
+
role: "alert",
|
|
220
|
+
description: "Browser replay could not be loaded"
|
|
221
|
+
}) : null;
|
|
222
|
+
$[26] = hasError;
|
|
223
|
+
$[27] = t10;
|
|
224
|
+
} else t10 = $[27];
|
|
225
|
+
let t11;
|
|
226
|
+
if ($[28] !== t10 || $[29] !== t9) {
|
|
227
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
133
228
|
className: "browser-replay__stage-wrap",
|
|
134
229
|
children: [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
230
|
+
t8,
|
|
231
|
+
t9,
|
|
232
|
+
t10
|
|
233
|
+
]
|
|
234
|
+
});
|
|
235
|
+
$[28] = t10;
|
|
236
|
+
$[29] = t9;
|
|
237
|
+
$[30] = t11;
|
|
238
|
+
} else t11 = $[30];
|
|
239
|
+
const t12 = isPlaying ? "Pause replay" : "Play replay";
|
|
240
|
+
let t13;
|
|
241
|
+
if ($[31] !== isPlaying) {
|
|
242
|
+
t13 = isPlaying ? /* @__PURE__ */ jsx(PauseIcon, {}) : /* @__PURE__ */ jsx(PlayIcon, {});
|
|
243
|
+
$[31] = isPlaying;
|
|
244
|
+
$[32] = t13;
|
|
245
|
+
} else t13 = $[32];
|
|
246
|
+
let t14;
|
|
247
|
+
if ($[33] !== disabled || $[34] !== handlePlayPause || $[35] !== t12 || $[36] !== t13) {
|
|
248
|
+
t14 = /* @__PURE__ */ jsx(IconButton, {
|
|
249
|
+
label: t12,
|
|
250
|
+
variant: "ghost",
|
|
251
|
+
color: "neutral",
|
|
252
|
+
size: "sm",
|
|
253
|
+
className: "browser-replay__toggle",
|
|
254
|
+
disabled,
|
|
255
|
+
onClick: handlePlayPause,
|
|
256
|
+
children: t13
|
|
257
|
+
});
|
|
258
|
+
$[33] = disabled;
|
|
259
|
+
$[34] = handlePlayPause;
|
|
260
|
+
$[35] = t12;
|
|
261
|
+
$[36] = t13;
|
|
262
|
+
$[37] = t14;
|
|
263
|
+
} else t14 = $[37];
|
|
264
|
+
const t15 = Math.max(duration, 1);
|
|
265
|
+
const t16 = Math.min(currentTime, duration);
|
|
266
|
+
let t17;
|
|
267
|
+
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
268
|
+
t17 = /* @__PURE__ */ jsx(Slider.Control, { children: /* @__PURE__ */ jsxs(Slider.Track, { children: [/* @__PURE__ */ jsx(Slider.Indicator, {}), /* @__PURE__ */ jsx(Slider.Thumb, { "aria-label": "Replay position" })] }) });
|
|
269
|
+
$[38] = t17;
|
|
270
|
+
} else t17 = $[38];
|
|
271
|
+
let t18;
|
|
272
|
+
if ($[39] !== disabled || $[40] !== handleScrub || $[41] !== t15 || $[42] !== t16) {
|
|
273
|
+
t18 = /* @__PURE__ */ jsx(Slider.Root, {
|
|
274
|
+
className: "browser-replay__scrubber",
|
|
275
|
+
min: 0,
|
|
276
|
+
max: t15,
|
|
277
|
+
step: 100,
|
|
278
|
+
value: t16,
|
|
279
|
+
disabled,
|
|
280
|
+
onValueChange: handleScrub,
|
|
281
|
+
children: t17
|
|
282
|
+
});
|
|
283
|
+
$[39] = disabled;
|
|
284
|
+
$[40] = handleScrub;
|
|
285
|
+
$[41] = t15;
|
|
286
|
+
$[42] = t16;
|
|
287
|
+
$[43] = t18;
|
|
288
|
+
} else t18 = $[43];
|
|
289
|
+
const t19 = currentTime / 1e3;
|
|
290
|
+
let t20;
|
|
291
|
+
if ($[44] !== t19) {
|
|
292
|
+
t20 = formatClock(t19);
|
|
293
|
+
$[44] = t19;
|
|
294
|
+
$[45] = t20;
|
|
295
|
+
} else t20 = $[45];
|
|
296
|
+
const t21 = duration / 1e3;
|
|
297
|
+
let t22;
|
|
298
|
+
if ($[46] !== t21) {
|
|
299
|
+
t22 = formatClock(t21);
|
|
300
|
+
$[46] = t21;
|
|
301
|
+
$[47] = t22;
|
|
302
|
+
} else t22 = $[47];
|
|
303
|
+
let t23;
|
|
304
|
+
if ($[48] !== t20 || $[49] !== t22) {
|
|
305
|
+
t23 = /* @__PURE__ */ jsxs("span", {
|
|
306
|
+
className: "browser-replay__time",
|
|
307
|
+
children: [
|
|
308
|
+
t20,
|
|
309
|
+
" / ",
|
|
310
|
+
t22
|
|
148
311
|
]
|
|
149
|
-
})
|
|
312
|
+
});
|
|
313
|
+
$[48] = t20;
|
|
314
|
+
$[49] = t22;
|
|
315
|
+
$[50] = t23;
|
|
316
|
+
} else t23 = $[50];
|
|
317
|
+
let t24;
|
|
318
|
+
if ($[51] !== t14 || $[52] !== t18 || $[53] !== t23) {
|
|
319
|
+
t24 = /* @__PURE__ */ jsxs("div", {
|
|
150
320
|
className: "browser-replay__controls",
|
|
151
321
|
children: [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
color: "neutral",
|
|
156
|
-
size: "sm",
|
|
157
|
-
className: "browser-replay__toggle",
|
|
158
|
-
disabled,
|
|
159
|
-
onClick: handlePlayPause,
|
|
160
|
-
children: isPlaying ? /* @__PURE__ */ jsx(PauseIcon, {}) : /* @__PURE__ */ jsx(PlayIcon, {})
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ jsx(Slider.Root, {
|
|
163
|
-
className: "browser-replay__scrubber",
|
|
164
|
-
min: 0,
|
|
165
|
-
max: Math.max(duration, 1),
|
|
166
|
-
step: 100,
|
|
167
|
-
value: Math.min(currentTime, duration),
|
|
168
|
-
disabled,
|
|
169
|
-
onValueChange: handleScrub,
|
|
170
|
-
children: /* @__PURE__ */ jsx(Slider.Control, { children: /* @__PURE__ */ jsxs(Slider.Track, { children: [/* @__PURE__ */ jsx(Slider.Indicator, {}), /* @__PURE__ */ jsx(Slider.Thumb, { "aria-label": "Replay position" })] }) })
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ jsxs("span", {
|
|
173
|
-
className: "browser-replay__time",
|
|
174
|
-
children: [
|
|
175
|
-
formatClock(currentTime / 1e3),
|
|
176
|
-
" / ",
|
|
177
|
-
formatClock(duration / 1e3)
|
|
178
|
-
]
|
|
179
|
-
})
|
|
322
|
+
t14,
|
|
323
|
+
t18,
|
|
324
|
+
t23
|
|
180
325
|
]
|
|
181
|
-
})
|
|
182
|
-
|
|
326
|
+
});
|
|
327
|
+
$[51] = t14;
|
|
328
|
+
$[52] = t18;
|
|
329
|
+
$[53] = t23;
|
|
330
|
+
$[54] = t24;
|
|
331
|
+
} else t24 = $[54];
|
|
332
|
+
let t25;
|
|
333
|
+
if ($[55] !== props || $[56] !== ref || $[57] !== t11 || $[58] !== t24 || $[59] !== t7) {
|
|
334
|
+
t25 = /* @__PURE__ */ jsxs("div", {
|
|
335
|
+
ref,
|
|
336
|
+
className: t7,
|
|
337
|
+
...props,
|
|
338
|
+
children: [t11, t24]
|
|
339
|
+
});
|
|
340
|
+
$[55] = props;
|
|
341
|
+
$[56] = ref;
|
|
342
|
+
$[57] = t11;
|
|
343
|
+
$[58] = t24;
|
|
344
|
+
$[59] = t7;
|
|
345
|
+
$[60] = t25;
|
|
346
|
+
} else t25 = $[60];
|
|
347
|
+
return t25;
|
|
183
348
|
}
|
|
184
349
|
//#endregion
|
|
185
350
|
export { BrowserReplay };
|
|
@@ -38,12 +38,15 @@ interface BrowserRunPanelHostedProps extends BrowserRunPanelCommonProps {
|
|
|
38
38
|
tabs?: never;
|
|
39
39
|
selectedTabId?: never;
|
|
40
40
|
onSelectTab?: never;
|
|
41
|
+
onCloseTab?: never;
|
|
42
|
+
onNewTab?: never;
|
|
41
43
|
url?: never;
|
|
42
44
|
onOpenUrl?: never;
|
|
43
45
|
urlPlaceholder?: never;
|
|
44
46
|
urlDisabled?: never;
|
|
45
47
|
urlLabel?: never;
|
|
46
48
|
navigation?: never;
|
|
49
|
+
navigationEnd?: never;
|
|
47
50
|
}
|
|
48
51
|
interface BrowserRunPanelStreamedProps extends BrowserRunPanelCommonProps {
|
|
49
52
|
/**
|
|
@@ -52,12 +55,16 @@ interface BrowserRunPanelStreamedProps extends BrowserRunPanelCommonProps {
|
|
|
52
55
|
* bar; the host keeps everything transport: media, input, reconnection.
|
|
53
56
|
*/
|
|
54
57
|
children: React.ReactNode;
|
|
55
|
-
/**
|
|
58
|
+
/** Drawn for multiple pages or when create/close controls are supplied. */
|
|
56
59
|
tabs?: readonly BrowserRunPanelTab[];
|
|
57
60
|
/** Controlled selection over `tabs`; null selects nothing. */
|
|
58
61
|
selectedTabId?: string | null;
|
|
59
62
|
/** A viewer picked a tab it is not watching; the host grants or ignores it. */
|
|
60
63
|
onSelectTab?: (tabId: string) => void;
|
|
64
|
+
/** Requests closing this exact page. The host owns selection and session lifetime. */
|
|
65
|
+
onCloseTab?: (tabId: string) => void;
|
|
66
|
+
/** Requests a new page in this browser context. */
|
|
67
|
+
onNewTab?: () => void;
|
|
61
68
|
/** Address bar value: the streamed page's current URL. */
|
|
62
69
|
url?: string;
|
|
63
70
|
/** Commits an address-bar entry. Absent, the address bar is read-only. */
|
|
@@ -70,6 +77,8 @@ interface BrowserRunPanelStreamedProps extends BrowserRunPanelCommonProps {
|
|
|
70
77
|
urlLabel?: string;
|
|
71
78
|
/** Navigation controls before the address input, e.g. Back and Reload. */
|
|
72
79
|
navigation?: React.ReactNode;
|
|
80
|
+
/** Toolbar controls after the address input, where Chrome keeps extensions. */
|
|
81
|
+
navigationEnd?: React.ReactNode;
|
|
73
82
|
liveView?: never;
|
|
74
83
|
onRefresh?: never;
|
|
75
84
|
onCloseSession?: never;
|
|
@@ -78,6 +87,53 @@ interface BrowserRunPanelStreamedProps extends BrowserRunPanelCommonProps {
|
|
|
78
87
|
fallback?: never;
|
|
79
88
|
}
|
|
80
89
|
export type BrowserRunPanelProps = BrowserRunPanelHostedProps | BrowserRunPanelStreamedProps;
|
|
90
|
+
export interface BrowserTabStripProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onSelect"> {
|
|
91
|
+
/** Every open page, in strip order. */
|
|
92
|
+
tabs: readonly BrowserRunPanelTab[];
|
|
93
|
+
/** Controlled selection; null selects nothing. */
|
|
94
|
+
selectedTabId?: string | null;
|
|
95
|
+
/** A viewer picked a tab; the host grants or ignores it. */
|
|
96
|
+
onSelectTab?: (tabId: string) => void;
|
|
97
|
+
/** Close controls and Delete on a focused tab request this host operation. */
|
|
98
|
+
onCloseTab?: (tabId: string) => void;
|
|
99
|
+
/** Show Chrome's new-tab control when the host can create a page. */
|
|
100
|
+
onNewTab?: () => void;
|
|
101
|
+
/** Chrome's tab-search control, trailing the strip: everything open, listed. */
|
|
102
|
+
tabSearch?: React.ReactNode;
|
|
103
|
+
/** The id of the page viewport, the tab panel the selected tab controls. */
|
|
104
|
+
panelId?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A browser tab strip, Chrome-shaped: the selected tab paints the page's own
|
|
108
|
+
* surface with 10px top corners and joins the toolbar beneath it, the rest sit
|
|
109
|
+
* flat on the window bar, and tabs share the width down to a glyph.
|
|
110
|
+
*
|
|
111
|
+
* Chrome on macOS puts this row IN the title bar beside the traffic lights
|
|
112
|
+
* (chrome/browser/ui/views/frame/browser_frame_view_mac.mm: `GetTopInset()`
|
|
113
|
+
* returns 0), so a window host passes it through its own title slot. A panel
|
|
114
|
+
* with no window chrome of its own — an extension side panel, a chat card —
|
|
115
|
+
* gets the same strip drawn by `BrowserRunPanel`.
|
|
116
|
+
*
|
|
117
|
+
* Close buttons share the tabs' CSS grid while remaining outside the tablist's
|
|
118
|
+
* accessibility tree. Tabs keep Base UI's roving focus; Delete closes the
|
|
119
|
+
* focused page when a host provides it, and each tab announces that shortcut.
|
|
120
|
+
*/
|
|
121
|
+
export declare function BrowserTabStrip({ tabs, selectedTabId, onSelectTab, onCloseTab, onNewTab, tabSearch, panelId, className, ...props }: BrowserTabStripProps): React.JSX.Element;
|
|
122
|
+
/** One host-owned browser identity/context, independent of a page or transport. */
|
|
123
|
+
export interface BrowserProfile {
|
|
124
|
+
id: string;
|
|
125
|
+
name: string;
|
|
126
|
+
/** Account or workspace context displayed beneath the profile's name. */
|
|
127
|
+
description?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface BrowserProfileMenuProps {
|
|
130
|
+
profiles: readonly BrowserProfile[];
|
|
131
|
+
profileId: string;
|
|
132
|
+
/** Called after the menu closes, so the destination owns focus. */
|
|
133
|
+
onSelectProfile: (profileId: string) => void;
|
|
134
|
+
}
|
|
135
|
+
/** Chrome-shaped identity and profile switching over the shared Menu and Avatar. */
|
|
136
|
+
export declare function BrowserProfileMenu({ profiles, profileId, onSelectProfile }: BrowserProfileMenuProps): React.JSX.Element | null;
|
|
81
137
|
/**
|
|
82
138
|
* Browser panel chrome — drawn tab strip, address bar, edge-to-edge body — for
|
|
83
139
|
* browser surfaces Chrome itself never paints.
|