@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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/components/general-purpose/ScreenStack.d.ts
|
|
3
|
+
/** Props for `ScreenStack.Screen`; give each screen an explicit `key`. */
|
|
4
|
+
export interface ScreenStackScreenProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** The screen's content. */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* One screen in the stack. Its `key` is its identity across renders, which is
|
|
10
|
+
* what tells a push from a pop, so every screen needs an explicit one. The
|
|
11
|
+
* stack gives it its role.
|
|
12
|
+
*/
|
|
13
|
+
declare function ScreenStackScreen({ className, children, ...props }: ScreenStackScreenProps): React.JSX.Element;
|
|
14
|
+
/** Props for {@link ScreenStack}. */
|
|
15
|
+
export interface ScreenStackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/**
|
|
17
|
+
* Called once a swipe back has landed on the parent, so the host's state
|
|
18
|
+
* catches up with a pop the finger already performed. A host that answers by
|
|
19
|
+
* keeping its top (to confirm discarding a draft, say) gets that screen back.
|
|
20
|
+
*
|
|
21
|
+
* Leave it out and the stack cannot be swiped, which is right for a screen
|
|
22
|
+
* with no way back.
|
|
23
|
+
*/
|
|
24
|
+
onPop?: () => void;
|
|
25
|
+
/** Screens, bottom to top. The last one is the top. */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A stack of screens that pushes and pops like a navigation controller: the
|
|
30
|
+
* incoming screen slides in from the trailing edge while the one it covers
|
|
31
|
+
* recedes and dims, and a swipe back anywhere on the screen takes the top
|
|
32
|
+
* screen off again with the finger.
|
|
33
|
+
*
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <ScreenStack.Root onPop={() => navigateUp()}>
|
|
36
|
+
* <ScreenStack.Screen key="root">…</ScreenStack.Screen>
|
|
37
|
+
* <ScreenStack.Screen key="projects">…</ScreenStack.Screen>
|
|
38
|
+
* </ScreenStack.Root>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* `data-state` on the root is `idle` once the strip has settled on the host's
|
|
42
|
+
* top screen, so a test can wait for that rather than for a scroll it cannot
|
|
43
|
+
* name. A screen's own sideways scroller chains to the stack at its leading
|
|
44
|
+
* edge, as long as it leaves `overscroll-behavior-x` and `touch-action` alone.
|
|
45
|
+
*/
|
|
46
|
+
declare function ScreenStackRoot({ onPop, className, children, onFocusCapture, ref, ...props }: ScreenStackProps & {
|
|
47
|
+
/** Ref forwarded to the component's rendered root element. */
|
|
48
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
49
|
+
}): React.JSX.Element;
|
|
50
|
+
export declare const ScreenStack: {
|
|
51
|
+
Root: typeof ScreenStackRoot;
|
|
52
|
+
Screen: typeof ScreenStackScreen;
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/general-purpose/ScreenStack.tsx
|
|
7
|
+
/**
|
|
8
|
+
* A navigation stack that pushes and pops screens the way iOS does, with the
|
|
9
|
+
* finger.
|
|
10
|
+
*
|
|
11
|
+
* The stack is one horizontal scroll-snap container and every screen is a page
|
|
12
|
+
* of it, so the browser owns the drag: the swipe back starts anywhere on the
|
|
13
|
+
* screen, as it does on iOS 26, and the browser carries its velocity,
|
|
14
|
+
* rubber-bands it and settles it. A push appends a page and scrolls to it,
|
|
15
|
+
* smoothly or at once under reduced motion, because the sheet's
|
|
16
|
+
* `scroll-behavior` decides. Where a scroll lands, whoever started it, arrives
|
|
17
|
+
* as `scrollsnapchange`, and that event alone decides which screen is current:
|
|
18
|
+
* it asks the host to pop, drops the screens a pop has left behind, makes every
|
|
19
|
+
* screen but the current one inert, and moves focus. The parent's recession
|
|
20
|
+
* behind the screen over it is a scroll-driven animation in the sheet, so it
|
|
21
|
+
* follows the finger on the compositor.
|
|
22
|
+
*
|
|
23
|
+
* Chrome's `stack-drill-down` recipe is the model. The host's state, not
|
|
24
|
+
* browser history, is the stack here.
|
|
25
|
+
*/
|
|
26
|
+
const ScreenPlaceContext = React.createContext({
|
|
27
|
+
role: "top",
|
|
28
|
+
current: true,
|
|
29
|
+
initial: true
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* One screen in the stack. Its `key` is its identity across renders, which is
|
|
33
|
+
* what tells a push from a pop, so every screen needs an explicit one. The
|
|
34
|
+
* stack gives it its role.
|
|
35
|
+
*/
|
|
36
|
+
function ScreenStackScreen(t0) {
|
|
37
|
+
const $ = c(15);
|
|
38
|
+
let children;
|
|
39
|
+
let className;
|
|
40
|
+
let props;
|
|
41
|
+
if ($[0] !== t0) {
|
|
42
|
+
({className, children, ...props} = t0);
|
|
43
|
+
$[0] = t0;
|
|
44
|
+
$[1] = children;
|
|
45
|
+
$[2] = className;
|
|
46
|
+
$[3] = props;
|
|
47
|
+
} else {
|
|
48
|
+
children = $[1];
|
|
49
|
+
className = $[2];
|
|
50
|
+
props = $[3];
|
|
51
|
+
}
|
|
52
|
+
const { role, current, initial } = React.useContext(ScreenPlaceContext);
|
|
53
|
+
const t1 = initial ? "" : void 0;
|
|
54
|
+
let t2;
|
|
55
|
+
if ($[4] !== className) {
|
|
56
|
+
t2 = cx("screen-stack__screen", className);
|
|
57
|
+
$[4] = className;
|
|
58
|
+
$[5] = t2;
|
|
59
|
+
} else t2 = $[5];
|
|
60
|
+
const t3 = !current;
|
|
61
|
+
let t4;
|
|
62
|
+
if ($[6] !== children || $[7] !== props || $[8] !== role || $[9] !== t2 || $[10] !== t3) {
|
|
63
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
64
|
+
className: t2,
|
|
65
|
+
"data-slot": "screen-stack-screen",
|
|
66
|
+
"data-screen": role,
|
|
67
|
+
inert: t3,
|
|
68
|
+
tabIndex: -1,
|
|
69
|
+
...props,
|
|
70
|
+
children
|
|
71
|
+
});
|
|
72
|
+
$[6] = children;
|
|
73
|
+
$[7] = props;
|
|
74
|
+
$[8] = role;
|
|
75
|
+
$[9] = t2;
|
|
76
|
+
$[10] = t3;
|
|
77
|
+
$[11] = t4;
|
|
78
|
+
} else t4 = $[11];
|
|
79
|
+
let t5;
|
|
80
|
+
if ($[12] !== t1 || $[13] !== t4) {
|
|
81
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
82
|
+
className: "screen-stack__page",
|
|
83
|
+
"data-initial": t1,
|
|
84
|
+
children: t4
|
|
85
|
+
});
|
|
86
|
+
$[12] = t1;
|
|
87
|
+
$[13] = t4;
|
|
88
|
+
$[14] = t5;
|
|
89
|
+
} else t5 = $[14];
|
|
90
|
+
return t5;
|
|
91
|
+
}
|
|
92
|
+
function keyOf(element) {
|
|
93
|
+
return element?.key ?? null;
|
|
94
|
+
}
|
|
95
|
+
function screensOf(children) {
|
|
96
|
+
return React.Children.toArray(children).filter(React.isValidElement);
|
|
97
|
+
}
|
|
98
|
+
/** The page of `stack` that holds `node`. */
|
|
99
|
+
function pageIndex(stack, node) {
|
|
100
|
+
return [...stack.children].findIndex((page) => node instanceof Node && (page === node || page.contains(node)));
|
|
101
|
+
}
|
|
102
|
+
function firstFocusable(root) {
|
|
103
|
+
return [...root.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")].find((element) => element.getClientRects().length > 0 && !element.closest("[inert]") && !element.matches(":disabled")) ?? null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Focus follows the strip: back to the control that pushed, or into the screen
|
|
107
|
+
* that arrived. Never out of the stack, because the push may have come from a
|
|
108
|
+
* control the host owns, and yanking focus out of it is worse than leaving it
|
|
109
|
+
* where the user put it. `preventScroll`, because scrolling a focused control
|
|
110
|
+
* into view would scroll the strip as well and fight the snap.
|
|
111
|
+
*/
|
|
112
|
+
function focusScreen(stack, screen, restore) {
|
|
113
|
+
const active = stack.ownerDocument.activeElement;
|
|
114
|
+
if (active !== stack.ownerDocument.body && !stack.contains(active)) return;
|
|
115
|
+
(restore?.isConnected && screen.contains(restore) && restore.getClientRects().length > 0 && !restore.closest("[inert]") && !restore.matches(":disabled") ? restore : firstFocusable(screen) ?? screen).focus({ preventScroll: true });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A stack of screens that pushes and pops like a navigation controller: the
|
|
119
|
+
* incoming screen slides in from the trailing edge while the one it covers
|
|
120
|
+
* recedes and dims, and a swipe back anywhere on the screen takes the top
|
|
121
|
+
* screen off again with the finger.
|
|
122
|
+
*
|
|
123
|
+
* ```tsx
|
|
124
|
+
* <ScreenStack.Root onPop={() => navigateUp()}>
|
|
125
|
+
* <ScreenStack.Screen key="root">…</ScreenStack.Screen>
|
|
126
|
+
* <ScreenStack.Screen key="projects">…</ScreenStack.Screen>
|
|
127
|
+
* </ScreenStack.Root>
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* `data-state` on the root is `idle` once the strip has settled on the host's
|
|
131
|
+
* top screen, so a test can wait for that rather than for a scroll it cannot
|
|
132
|
+
* name. A screen's own sideways scroller chains to the stack at its leading
|
|
133
|
+
* edge, as long as it leaves `overscroll-behavior-x` and `touch-action` alone.
|
|
134
|
+
*/
|
|
135
|
+
function ScreenStackRoot(t0) {
|
|
136
|
+
const $ = c(61);
|
|
137
|
+
let children;
|
|
138
|
+
let className;
|
|
139
|
+
let onFocusCapture;
|
|
140
|
+
let onPop;
|
|
141
|
+
let props;
|
|
142
|
+
let ref;
|
|
143
|
+
if ($[0] !== t0) {
|
|
144
|
+
({onPop, className, children, onFocusCapture, ref, ...props} = t0);
|
|
145
|
+
$[0] = t0;
|
|
146
|
+
$[1] = children;
|
|
147
|
+
$[2] = className;
|
|
148
|
+
$[3] = onFocusCapture;
|
|
149
|
+
$[4] = onPop;
|
|
150
|
+
$[5] = props;
|
|
151
|
+
$[6] = ref;
|
|
152
|
+
} else {
|
|
153
|
+
children = $[1];
|
|
154
|
+
className = $[2];
|
|
155
|
+
onFocusCapture = $[3];
|
|
156
|
+
onPop = $[4];
|
|
157
|
+
props = $[5];
|
|
158
|
+
ref = $[6];
|
|
159
|
+
}
|
|
160
|
+
let t1;
|
|
161
|
+
if ($[7] !== children) {
|
|
162
|
+
t1 = () => {
|
|
163
|
+
const screens = screensOf(children);
|
|
164
|
+
return {
|
|
165
|
+
children,
|
|
166
|
+
screens,
|
|
167
|
+
depth: screens.length,
|
|
168
|
+
snapped: keyOf(screens.at(-1)),
|
|
169
|
+
asked: null,
|
|
170
|
+
returns: 0
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
$[7] = children;
|
|
174
|
+
$[8] = t1;
|
|
175
|
+
} else t1 = $[8];
|
|
176
|
+
const [state, setState] = React.useState(t1);
|
|
177
|
+
const [initialKey] = React.useState(state.snapped);
|
|
178
|
+
const rootRef = React.useRef(null);
|
|
179
|
+
let t2;
|
|
180
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
181
|
+
t2 = /* @__PURE__ */ new Map();
|
|
182
|
+
$[9] = t2;
|
|
183
|
+
} else t2 = $[9];
|
|
184
|
+
const focusReturn = React.useRef(t2);
|
|
185
|
+
const landed = React.useRef(null);
|
|
186
|
+
const reported = React.useRef(state.snapped);
|
|
187
|
+
const seeking = React.useRef(null);
|
|
188
|
+
if (state.children !== children) {
|
|
189
|
+
const incoming = screensOf(children);
|
|
190
|
+
const top = keyOf(incoming.at(-1));
|
|
191
|
+
const kept = new Set(incoming.map(keyOf));
|
|
192
|
+
const at = state.screens.findIndex((screen) => keyOf(screen) === top);
|
|
193
|
+
const popped = at === -1 ? [] : state.screens.slice(at + 1).filter((screen_0) => !kept.has(keyOf(screen_0)));
|
|
194
|
+
const showing = popped.findIndex((screen_1) => keyOf(screen_1) === state.snapped);
|
|
195
|
+
setState({
|
|
196
|
+
children,
|
|
197
|
+
screens: [...incoming, ...popped.slice(0, showing + 1)],
|
|
198
|
+
depth: incoming.length,
|
|
199
|
+
snapped: state.snapped,
|
|
200
|
+
asked: null,
|
|
201
|
+
returns: state.asked !== null && state.asked === top ? state.returns + 1 : state.returns
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
const { screens: screens_0, depth } = state;
|
|
205
|
+
const topIndex = depth - 1;
|
|
206
|
+
const t3 = screens_0[topIndex];
|
|
207
|
+
let t4;
|
|
208
|
+
if ($[10] !== t3) {
|
|
209
|
+
t4 = keyOf(t3);
|
|
210
|
+
$[10] = t3;
|
|
211
|
+
$[11] = t4;
|
|
212
|
+
} else t4 = $[11];
|
|
213
|
+
const topKey = t4;
|
|
214
|
+
let t5;
|
|
215
|
+
if ($[12] !== screens_0 || $[13] !== state.snapped) {
|
|
216
|
+
let t6;
|
|
217
|
+
if ($[15] !== state.snapped) {
|
|
218
|
+
t6 = (screen_2) => keyOf(screen_2) === state.snapped;
|
|
219
|
+
$[15] = state.snapped;
|
|
220
|
+
$[16] = t6;
|
|
221
|
+
} else t6 = $[16];
|
|
222
|
+
t5 = screens_0.findIndex(t6);
|
|
223
|
+
$[12] = screens_0;
|
|
224
|
+
$[13] = state.snapped;
|
|
225
|
+
$[14] = t5;
|
|
226
|
+
} else t5 = $[14];
|
|
227
|
+
const snappedIndex = t5;
|
|
228
|
+
const currentIndex = snappedIndex === -1 ? topIndex : snappedIndex;
|
|
229
|
+
const t6 = screens_0[currentIndex];
|
|
230
|
+
let t7;
|
|
231
|
+
if ($[17] !== t6) {
|
|
232
|
+
t7 = keyOf(t6);
|
|
233
|
+
$[17] = t6;
|
|
234
|
+
$[18] = t7;
|
|
235
|
+
} else t7 = $[18];
|
|
236
|
+
const currentKey = t7;
|
|
237
|
+
let t8;
|
|
238
|
+
if ($[19] !== topIndex || $[20] !== topKey) {
|
|
239
|
+
t8 = () => {
|
|
240
|
+
const stack = rootRef.current;
|
|
241
|
+
const width = stack?.clientWidth ?? 0;
|
|
242
|
+
if (!stack || topIndex < 0 || width === 0) return;
|
|
243
|
+
const left = topIndex * width;
|
|
244
|
+
if (Math.abs(stack.scrollLeft - left) < 1) return;
|
|
245
|
+
const from = Math.round(stack.scrollLeft / width);
|
|
246
|
+
seeking.current = topKey;
|
|
247
|
+
stack.scrollTo({
|
|
248
|
+
left,
|
|
249
|
+
behavior: Math.abs(from - topIndex) > 1 ? "instant" : "auto"
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
$[19] = topIndex;
|
|
253
|
+
$[20] = topKey;
|
|
254
|
+
$[21] = t8;
|
|
255
|
+
} else t8 = $[21];
|
|
256
|
+
let t9;
|
|
257
|
+
if ($[22] !== state.returns || $[23] !== topIndex || $[24] !== topKey) {
|
|
258
|
+
t9 = [
|
|
259
|
+
topKey,
|
|
260
|
+
topIndex,
|
|
261
|
+
state.returns
|
|
262
|
+
];
|
|
263
|
+
$[22] = state.returns;
|
|
264
|
+
$[23] = topIndex;
|
|
265
|
+
$[24] = topKey;
|
|
266
|
+
$[25] = t9;
|
|
267
|
+
} else t9 = $[25];
|
|
268
|
+
React.useLayoutEffect(t8, t9);
|
|
269
|
+
let t10;
|
|
270
|
+
let t11;
|
|
271
|
+
if ($[26] !== currentIndex || $[27] !== currentKey) {
|
|
272
|
+
t10 = () => {
|
|
273
|
+
const stack_0 = rootRef.current;
|
|
274
|
+
const was = landed.current;
|
|
275
|
+
landed.current = currentKey;
|
|
276
|
+
if (!stack_0 || was === null || was === currentKey || currentKey === null) return;
|
|
277
|
+
const screen_3 = stack_0.children[currentIndex]?.firstElementChild;
|
|
278
|
+
if (!(screen_3 instanceof HTMLElement)) return;
|
|
279
|
+
const restore = focusReturn.current.get(currentKey);
|
|
280
|
+
focusReturn.current.delete(currentKey);
|
|
281
|
+
focusScreen(stack_0, screen_3, restore);
|
|
282
|
+
};
|
|
283
|
+
t11 = [currentKey, currentIndex];
|
|
284
|
+
$[26] = currentIndex;
|
|
285
|
+
$[27] = currentKey;
|
|
286
|
+
$[28] = t10;
|
|
287
|
+
$[29] = t11;
|
|
288
|
+
} else {
|
|
289
|
+
t10 = $[28];
|
|
290
|
+
t11 = $[29];
|
|
291
|
+
}
|
|
292
|
+
React.useLayoutEffect(t10, t11);
|
|
293
|
+
let t12;
|
|
294
|
+
if ($[30] !== onPop || $[31] !== screens_0 || $[32] !== topIndex) {
|
|
295
|
+
t12 = (page) => {
|
|
296
|
+
const stack_1 = rootRef.current;
|
|
297
|
+
const key = stack_1 && page ? keyOf(screens_0[pageIndex(stack_1, page)]) : null;
|
|
298
|
+
if (key === null || key === reported.current) return;
|
|
299
|
+
if (seeking.current !== null) {
|
|
300
|
+
if (key !== seeking.current) return;
|
|
301
|
+
seeking.current = null;
|
|
302
|
+
}
|
|
303
|
+
reported.current = key;
|
|
304
|
+
const back = screens_0.findIndex((screen_4) => keyOf(screen_4) === key) < topIndex && onPop;
|
|
305
|
+
setState((current) => {
|
|
306
|
+
const at_0 = current.screens.findIndex((screen_5) => keyOf(screen_5) === key);
|
|
307
|
+
return {
|
|
308
|
+
...current,
|
|
309
|
+
snapped: key,
|
|
310
|
+
screens: at_0 === -1 ? current.screens : current.screens.slice(0, Math.max(current.depth, at_0 + 1)),
|
|
311
|
+
asked: back ? keyOf(current.screens[current.depth - 1]) : current.asked,
|
|
312
|
+
returns: at_0 >= current.depth ? current.returns + 1 : current.returns
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
if (back) back();
|
|
316
|
+
};
|
|
317
|
+
$[30] = onPop;
|
|
318
|
+
$[31] = screens_0;
|
|
319
|
+
$[32] = topIndex;
|
|
320
|
+
$[33] = t12;
|
|
321
|
+
} else t12 = $[33];
|
|
322
|
+
const land = React.useEffectEvent(t12);
|
|
323
|
+
let t13;
|
|
324
|
+
if ($[34] !== land) {
|
|
325
|
+
t13 = () => {
|
|
326
|
+
const stack_2 = rootRef.current;
|
|
327
|
+
if (!stack_2) return;
|
|
328
|
+
const onSnap = (event) => land(event.snapTargetInline);
|
|
329
|
+
const onEnd = () => {
|
|
330
|
+
seeking.current = null;
|
|
331
|
+
land(stack_2.children[Math.round(stack_2.scrollLeft / Math.max(stack_2.clientWidth, 1))]);
|
|
332
|
+
};
|
|
333
|
+
stack_2.addEventListener("scrollsnapchange", onSnap);
|
|
334
|
+
stack_2.addEventListener("scrollend", onEnd);
|
|
335
|
+
return () => {
|
|
336
|
+
stack_2.removeEventListener("scrollsnapchange", onSnap);
|
|
337
|
+
stack_2.removeEventListener("scrollend", onEnd);
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
$[34] = land;
|
|
341
|
+
$[35] = t13;
|
|
342
|
+
} else t13 = $[35];
|
|
343
|
+
let t14;
|
|
344
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
345
|
+
t14 = [];
|
|
346
|
+
$[36] = t14;
|
|
347
|
+
} else t14 = $[36];
|
|
348
|
+
React.useEffect(t13, t14);
|
|
349
|
+
let t15;
|
|
350
|
+
if ($[37] !== ref) {
|
|
351
|
+
t15 = mergeRefs(rootRef, ref);
|
|
352
|
+
$[37] = ref;
|
|
353
|
+
$[38] = t15;
|
|
354
|
+
} else t15 = $[38];
|
|
355
|
+
let t16;
|
|
356
|
+
if ($[39] !== className) {
|
|
357
|
+
t16 = cx("screen-stack", className);
|
|
358
|
+
$[39] = className;
|
|
359
|
+
$[40] = t16;
|
|
360
|
+
} else t16 = $[40];
|
|
361
|
+
const t17 = currentIndex === topIndex && screens_0.length === depth ? "idle" : "settling";
|
|
362
|
+
const t18 = onPop && depth > 1 ? "" : void 0;
|
|
363
|
+
let t19;
|
|
364
|
+
if ($[41] !== onFocusCapture || $[42] !== screens_0) {
|
|
365
|
+
t19 = (event_0) => {
|
|
366
|
+
onFocusCapture?.(event_0);
|
|
367
|
+
const focused = event_0.target;
|
|
368
|
+
const key_0 = keyOf(screens_0[pageIndex(event_0.currentTarget, focused)]);
|
|
369
|
+
if (key_0 !== null && focused instanceof HTMLElement) focusReturn.current.set(key_0, focused);
|
|
370
|
+
};
|
|
371
|
+
$[41] = onFocusCapture;
|
|
372
|
+
$[42] = screens_0;
|
|
373
|
+
$[43] = t19;
|
|
374
|
+
} else t19 = $[43];
|
|
375
|
+
let t20;
|
|
376
|
+
if ($[44] !== currentIndex || $[45] !== initialKey || $[46] !== screens_0 || $[47] !== topIndex) {
|
|
377
|
+
let t21;
|
|
378
|
+
if ($[49] !== currentIndex || $[50] !== initialKey || $[51] !== topIndex) {
|
|
379
|
+
t21 = (screen_6, index) => /* @__PURE__ */ jsx(ScreenPlaceContext.Provider, {
|
|
380
|
+
value: {
|
|
381
|
+
role: index < topIndex ? "under" : index === topIndex ? "top" : "leaving",
|
|
382
|
+
current: index === currentIndex,
|
|
383
|
+
initial: keyOf(screen_6) === initialKey
|
|
384
|
+
},
|
|
385
|
+
children: screen_6
|
|
386
|
+
}, keyOf(screen_6));
|
|
387
|
+
$[49] = currentIndex;
|
|
388
|
+
$[50] = initialKey;
|
|
389
|
+
$[51] = topIndex;
|
|
390
|
+
$[52] = t21;
|
|
391
|
+
} else t21 = $[52];
|
|
392
|
+
t20 = screens_0.map(t21);
|
|
393
|
+
$[44] = currentIndex;
|
|
394
|
+
$[45] = initialKey;
|
|
395
|
+
$[46] = screens_0;
|
|
396
|
+
$[47] = topIndex;
|
|
397
|
+
$[48] = t20;
|
|
398
|
+
} else t20 = $[48];
|
|
399
|
+
let t21;
|
|
400
|
+
if ($[53] !== props || $[54] !== t15 || $[55] !== t16 || $[56] !== t17 || $[57] !== t18 || $[58] !== t19 || $[59] !== t20) {
|
|
401
|
+
t21 = /* @__PURE__ */ jsx("div", {
|
|
402
|
+
ref: t15,
|
|
403
|
+
className: t16,
|
|
404
|
+
"data-slot": "screen-stack",
|
|
405
|
+
"data-state": t17,
|
|
406
|
+
"data-can-pop": t18,
|
|
407
|
+
...props,
|
|
408
|
+
onFocusCapture: t19,
|
|
409
|
+
children: t20
|
|
410
|
+
});
|
|
411
|
+
$[53] = props;
|
|
412
|
+
$[54] = t15;
|
|
413
|
+
$[55] = t16;
|
|
414
|
+
$[56] = t17;
|
|
415
|
+
$[57] = t18;
|
|
416
|
+
$[58] = t19;
|
|
417
|
+
$[59] = t20;
|
|
418
|
+
$[60] = t21;
|
|
419
|
+
} else t21 = $[60];
|
|
420
|
+
return t21;
|
|
421
|
+
}
|
|
422
|
+
const ScreenStack = {
|
|
423
|
+
Root: ScreenStackRoot,
|
|
424
|
+
Screen: ScreenStackScreen
|
|
425
|
+
};
|
|
426
|
+
//#endregion
|
|
427
|
+
export { ScreenStack };
|
|
@@ -7,13 +7,21 @@ export interface SettingsFormDialogProps<Values extends Record<string, unknown>
|
|
|
7
7
|
/** Base UI owns dismissal reasons and cancellation, including successful submission. */
|
|
8
8
|
onOpenChange: NonNullable<React.ComponentProps<typeof Dialog.Root>["onOpenChange"]>;
|
|
9
9
|
title: React.ReactNode;
|
|
10
|
-
description
|
|
10
|
+
description?: React.ReactNode;
|
|
11
|
+
/** Use the shared dialog sizing for compact account views or longer forms. */
|
|
12
|
+
size?: React.ComponentProps<typeof Dialog.Popup>["size"];
|
|
11
13
|
/** Compose labeled Field/control children with their own defaults and validation. */
|
|
12
14
|
children: React.ReactNode;
|
|
15
|
+
/** Identity of the form; changing it resets fields and async feedback without reopening the dialog. */
|
|
16
|
+
formKey?: React.Key;
|
|
17
|
+
/** Omit the redundant dismiss action for a Done-only or account-status view. */
|
|
18
|
+
cancelLabel?: string | null;
|
|
13
19
|
submitLabel: string;
|
|
14
20
|
submittingLabel?: string;
|
|
15
21
|
removeLabel?: string;
|
|
16
22
|
removingLabel?: string;
|
|
23
|
+
/** Keep the form open when removing a connection reveals the next setup step. */
|
|
24
|
+
closeOnRemove?: boolean;
|
|
17
25
|
externalError?: string;
|
|
18
26
|
/** Receives Base UI values and event details unchanged; the host owns parsing and normalization. */
|
|
19
27
|
onFormSubmit: NonNullable<FormProps<Values>["onFormSubmit"]>;
|
|
@@ -23,5 +31,5 @@ export interface SettingsFormDialogProps<Values extends Record<string, unknown>
|
|
|
23
31
|
* Settings dialog with caller-composed controls and shared async submit/remove
|
|
24
32
|
* feedback. Base UI owns validation and values; product schemas stay in the host.
|
|
25
33
|
*/
|
|
26
|
-
export declare function SettingsFormDialog<Values extends Record<string, unknown> = Record<string, unknown>>({ open, onOpenChange, title, description, ...contentProps }: SettingsFormDialogProps<Values>): React.JSX.Element;
|
|
34
|
+
export declare function SettingsFormDialog<Values extends Record<string, unknown> = Record<string, unknown>>({ open, onOpenChange, title, description, size, formKey, ...contentProps }: SettingsFormDialogProps<Values>): React.JSX.Element;
|
|
27
35
|
//#endregion
|