@mcp-b/react-components 0.63.0 → 0.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +100 -36
- package/dist/components/extension/FirstRunSetup.js +3974 -1016
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
1
2
|
//#region src/components/_internal/merge-refs.ts
|
|
2
3
|
function assignRef(ref, value) {
|
|
3
4
|
if (!ref) return;
|
|
@@ -22,5 +23,20 @@ function mergeRefs(...refs) {
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* One stable callback ref for two refs, for an element whose attachment must
|
|
28
|
+
* not detach and reattach on every render.
|
|
29
|
+
*/
|
|
30
|
+
function useMergedRefs(first, second) {
|
|
31
|
+
const $ = c(3);
|
|
32
|
+
let t0;
|
|
33
|
+
if ($[0] !== first || $[1] !== second) {
|
|
34
|
+
t0 = mergeRefs(first, second);
|
|
35
|
+
$[0] = first;
|
|
36
|
+
$[1] = second;
|
|
37
|
+
$[2] = t0;
|
|
38
|
+
} else t0 = $[2];
|
|
39
|
+
return t0;
|
|
40
|
+
}
|
|
25
41
|
//#endregion
|
|
26
|
-
export { mergeRefs as n, assignRef as t };
|
|
42
|
+
export { mergeRefs as n, useMergedRefs as r, assignRef as t };
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { n as clamp } from "./format-DL7f2rqp.js";
|
|
2
|
+
import { t as motionIsReduced } from "./motion-preferences-6qsDIDvH.js";
|
|
3
|
+
//#region src/components/_internal/motion.ts
|
|
4
|
+
/**
|
|
5
|
+
* The motion primitives the companion shell and its gestures share: Apple's
|
|
6
|
+
* spring as a CSS `linear()` easing, pointer velocity, rubber-banding, and the
|
|
7
|
+
* two calls that drive a paused Web Animation from a finger and let it go.
|
|
8
|
+
*
|
|
9
|
+
* Chrome has no `spring()` easing (verified in the CI browser: `CSS.supports(
|
|
10
|
+
* "animation-timing-function", "spring(1 100 10 0)")` is false in Chromium 149),
|
|
11
|
+
* so a spring reaches CSS as a sampled `linear()` string. That string is usable
|
|
12
|
+
* from a stylesheet and from `Animation.effect.updateTiming()`, which is why the
|
|
13
|
+
* spring lives here rather than in a JS animation runtime.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* SwiftUI's `.snappy` at Apple's declared 0.5 s response: a base bounce of
|
|
17
|
+
* 0.15, and bounce is `1 − dampingFraction` (WWDC23 "Animate with springs").
|
|
18
|
+
* `response` is the spring's period, `2π / ω₀`, in seconds; `dampingFraction`
|
|
19
|
+
* is ζ, where 1 is critical damping and below 1 overshoots. Every settle uses it.
|
|
20
|
+
*/
|
|
21
|
+
const snappy = {
|
|
22
|
+
response: .5,
|
|
23
|
+
dampingFraction: .85
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Critical damping settles in 1.474 × response at SwiftUI's documented epsilon.
|
|
27
|
+
* Under Reduce Motion a settle keeps a spring's shape but neither overshoots
|
|
28
|
+
* nor carries velocity, and this response lands it on the ~200 ms the platform
|
|
29
|
+
* research recommends for a reduced transition.
|
|
30
|
+
*/
|
|
31
|
+
const reducedResponse = .136;
|
|
32
|
+
/**
|
|
33
|
+
* Unit step response of a damped harmonic oscillator: `x(0) = 0`, `x(∞) = 1`,
|
|
34
|
+
* `x'(0) = velocity`. Written in Apple's terms — `ω₀ = 2π / response` and
|
|
35
|
+
* `ζ = dampingFraction` — rather than mass/stiffness/damping, because those are
|
|
36
|
+
* the two numbers SwiftUI's API takes and the conversion between the two forms
|
|
37
|
+
* is exactly this substitution.
|
|
38
|
+
*/
|
|
39
|
+
function springPosition(time, w0, zeta, velocity) {
|
|
40
|
+
if (time <= 0) return 0;
|
|
41
|
+
if (zeta < 1) {
|
|
42
|
+
const wd = w0 * Math.sqrt(1 - zeta * zeta);
|
|
43
|
+
return 1 - Math.exp(-zeta * w0 * time) * (Math.cos(wd * time) + (zeta * w0 - velocity) / wd * Math.sin(wd * time));
|
|
44
|
+
}
|
|
45
|
+
if (zeta === 1) return 1 - Math.exp(-w0 * time) * (1 + (w0 - velocity) * time);
|
|
46
|
+
const root = w0 * Math.sqrt(zeta * zeta - 1);
|
|
47
|
+
const r1 = -zeta * w0 + root;
|
|
48
|
+
const r2 = -zeta * w0 - root;
|
|
49
|
+
const c2 = (velocity + r1) / (r2 - r1);
|
|
50
|
+
return 1 + (-1 - c2) * Math.exp(r1 * time) + c2 * Math.exp(r2 * time);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The first moment after which the spring stays inside `epsilon` of its target
|
|
54
|
+
* for 50 ms. SwiftUI documents `Spring.settlingDuration` as using a target of
|
|
55
|
+
* 1.0 and an epsilon of 0.001, which is the criterion here; the 50 ms hold is
|
|
56
|
+
* what keeps a bouncy spring from reporting the instant it first crosses.
|
|
57
|
+
*/
|
|
58
|
+
function settlingDuration(w0, zeta, velocity) {
|
|
59
|
+
const epsilon = .001;
|
|
60
|
+
const step = 1 / 240;
|
|
61
|
+
const limit = 10;
|
|
62
|
+
let candidate = 0;
|
|
63
|
+
for (let time = step; time < limit; time += step) if (Math.abs(springPosition(time, w0, zeta, velocity) - 1) < epsilon) {
|
|
64
|
+
if (!candidate) candidate = time;
|
|
65
|
+
if (time - candidate > .05) return candidate;
|
|
66
|
+
} else candidate = 0;
|
|
67
|
+
return limit;
|
|
68
|
+
}
|
|
69
|
+
/** One `linear()` stop per frame of settling, bounded so the string stays sane. */
|
|
70
|
+
const minimumStops = 16;
|
|
71
|
+
const maximumStops = 120;
|
|
72
|
+
const sampleCache = /* @__PURE__ */ new Map();
|
|
73
|
+
/**
|
|
74
|
+
* The spring's progress at evenly spaced times across its settling duration,
|
|
75
|
+
* cached — a released gesture regenerates the curve for its own velocity, and a
|
|
76
|
+
* session works through a few dozen of them.
|
|
77
|
+
*/
|
|
78
|
+
function springSamples(w0, zeta, velocity, duration) {
|
|
79
|
+
const key = `${w0.toFixed(4)}|${zeta.toFixed(4)}|${velocity.toFixed(1)}`;
|
|
80
|
+
const cached = sampleCache.get(key);
|
|
81
|
+
if (cached) return cached;
|
|
82
|
+
const stops = clamp(Math.ceil(duration * 60), minimumStops, maximumStops);
|
|
83
|
+
const values = [];
|
|
84
|
+
for (let index = 0; index <= stops; index += 1) values.push(springPosition(index / stops * duration, w0, zeta, velocity));
|
|
85
|
+
values[0] = 0;
|
|
86
|
+
values[stops] = 1;
|
|
87
|
+
sampleCache.set(key, values);
|
|
88
|
+
return values;
|
|
89
|
+
}
|
|
90
|
+
function format(values, from, to) {
|
|
91
|
+
const span = to - from;
|
|
92
|
+
return `linear(${values.map((value) => Number((from + value * span).toFixed(4))).join(",")})`;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* iOS reports the speed of the last moment of a drag, not of the whole drag, so
|
|
96
|
+
* "flick and hold" releases at rest. This keeps the same trailing window.
|
|
97
|
+
*/
|
|
98
|
+
const velocityWindow = 100;
|
|
99
|
+
/** A stray coalesced sample can spike; no finger moves this fast. */
|
|
100
|
+
const velocityLimit = 6;
|
|
101
|
+
/**
|
|
102
|
+
* Pointer velocity over the last ~100 ms, in px/ms.
|
|
103
|
+
*
|
|
104
|
+
* `PointerEvent.getCoalescedEvents()` is `[SecureContext]` in Blink, so it is
|
|
105
|
+
* there on localhost and absent from a `data:` URL preview; the tracker falls
|
|
106
|
+
* back to the event itself. Sample timestamps come from the events, because
|
|
107
|
+
* carrying each coalesced sample's own time is the whole point of reading them.
|
|
108
|
+
*/
|
|
109
|
+
function trackVelocity() {
|
|
110
|
+
const times = [];
|
|
111
|
+
const xs = [];
|
|
112
|
+
const ys = [];
|
|
113
|
+
return {
|
|
114
|
+
push(event) {
|
|
115
|
+
const samples = typeof event.getCoalescedEvents === "function" ? event.getCoalescedEvents() : [event];
|
|
116
|
+
for (const sample of samples.length ? samples : [event]) {
|
|
117
|
+
times.push(sample.timeStamp);
|
|
118
|
+
xs.push(sample.clientX);
|
|
119
|
+
ys.push(sample.clientY);
|
|
120
|
+
}
|
|
121
|
+
const newest = times[times.length - 1] ?? 0;
|
|
122
|
+
while (times.length > 2 && (times[0] ?? 0) < newest - velocityWindow) {
|
|
123
|
+
times.shift();
|
|
124
|
+
xs.shift();
|
|
125
|
+
ys.shift();
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
velocity() {
|
|
129
|
+
const now = performance.now();
|
|
130
|
+
while (times.length && (times[0] ?? 0) < now - velocityWindow) {
|
|
131
|
+
times.shift();
|
|
132
|
+
xs.shift();
|
|
133
|
+
ys.shift();
|
|
134
|
+
}
|
|
135
|
+
if (times.length < 2) return {
|
|
136
|
+
x: 0,
|
|
137
|
+
y: 0
|
|
138
|
+
};
|
|
139
|
+
const elapsed = (times[times.length - 1] ?? 0) - (times[0] ?? 0);
|
|
140
|
+
if (elapsed <= 0) return {
|
|
141
|
+
x: 0,
|
|
142
|
+
y: 0
|
|
143
|
+
};
|
|
144
|
+
const axis = (values) => clamp(((values[values.length - 1] ?? 0) - (values[0] ?? 0)) / elapsed, -6, velocityLimit);
|
|
145
|
+
return {
|
|
146
|
+
x: axis(xs),
|
|
147
|
+
y: axis(ys)
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* How far a drag actually moves once it is past its bound — UIScrollView's
|
|
154
|
+
* formula, with Apple's 0.55 coefficient. The result never reaches `dimension`,
|
|
155
|
+
* so an over-drag always has somewhere left to go.
|
|
156
|
+
*/
|
|
157
|
+
function rubberBand(offset, dimension) {
|
|
158
|
+
if (dimension <= 0) return 0;
|
|
159
|
+
return Math.sign(offset) * (1 - 1 / (Math.abs(offset) * .55 / dimension + 1)) * dimension;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Where a flick would come to rest if it were left to decelerate: the momentum
|
|
163
|
+
* projection from *Designing Fluid Interfaces* (WWDC18), `(v / 1000) · r / (1 − r)`
|
|
164
|
+
* for a velocity in px per second. Ours is in px per millisecond, which is the
|
|
165
|
+
* same expression without the thousand.
|
|
166
|
+
*
|
|
167
|
+
* `UIScrollView.DecelerationRate.normal` is 0.998 per millisecond and `.fast`
|
|
168
|
+
* is 0.99 — Apple names both constants and publishes neither number; they are
|
|
169
|
+
* consistently reported from teardowns of UIScrollView. At 0.998 this lands
|
|
170
|
+
* half a second of decay ahead of the finger.
|
|
171
|
+
*
|
|
172
|
+
* Use it to decide where a gesture is *going* rather than thresholding raw
|
|
173
|
+
* speed, so a slow drag that has already crossed the line and a flick from
|
|
174
|
+
* nowhere both do the obvious thing.
|
|
175
|
+
*/
|
|
176
|
+
function project(velocity, decelerationRate = .998) {
|
|
177
|
+
return velocity * (decelerationRate / (1 - decelerationRate));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The timing every scrubbed gesture animation is built with. The duration is
|
|
181
|
+
* the scrub range in the animation's own time units — a unit of progress
|
|
182
|
+
* rather than a duration, which `settle` replaces with a real one — and the
|
|
183
|
+
* easing is linear because a curve between the finger and the content is the
|
|
184
|
+
* fastest way to lose the sense that you are holding it.
|
|
185
|
+
*/
|
|
186
|
+
const scrubTiming = {
|
|
187
|
+
duration: 1e3,
|
|
188
|
+
fill: "both",
|
|
189
|
+
easing: "linear"
|
|
190
|
+
};
|
|
191
|
+
/** The scrub range of a paused gesture animation, in its own time units. */
|
|
192
|
+
function span(animation) {
|
|
193
|
+
const duration = animation.effect?.getComputedTiming().duration;
|
|
194
|
+
return typeof duration === "number" ? duration : 0;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The timing each gesture animation was built with, kept so a re-grab reads the
|
|
198
|
+
* finger again. `settle` writes a spring's own duration and easing over the
|
|
199
|
+
* effect, so without this the next `scrub` would map the finger onto the tail
|
|
200
|
+
* of the spring instead of onto the gesture — a 0→400px drag half-scrubbed
|
|
201
|
+
* would report 384px rather than 200.
|
|
202
|
+
*/
|
|
203
|
+
const gestureTiming = /* @__PURE__ */ new WeakMap();
|
|
204
|
+
/**
|
|
205
|
+
* Holds an animation at `progress` (0…1). The animation is built once as the
|
|
206
|
+
* whole gesture with `easing: "linear"`, so the content sits under the finger
|
|
207
|
+
* with no curve between them, and a new press mid-settle just pauses it again —
|
|
208
|
+
* the gesture's own timing is put back first, so the second press tracks the
|
|
209
|
+
* finger exactly as the first one did.
|
|
210
|
+
*/
|
|
211
|
+
function scrub(animation, progress) {
|
|
212
|
+
if (animation.playState !== "paused") animation.pause();
|
|
213
|
+
const effect = animation.effect;
|
|
214
|
+
if (!effect) return;
|
|
215
|
+
let timing = gestureTiming.get(animation);
|
|
216
|
+
if (!timing) {
|
|
217
|
+
const built = effect.getComputedTiming();
|
|
218
|
+
timing = {
|
|
219
|
+
duration: typeof built.duration === "number" ? built.duration : 0,
|
|
220
|
+
easing: built.easing ?? "linear"
|
|
221
|
+
};
|
|
222
|
+
gestureTiming.set(animation, timing);
|
|
223
|
+
} else effect.updateTiming(timing);
|
|
224
|
+
animation.currentTime = clamp(progress, 0, 1) * timing.duration;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Lets a scrubbed animation go, carrying the release velocity into a spring.
|
|
228
|
+
*
|
|
229
|
+
* The easing is sampled from where the finger left it to where it is going, so
|
|
230
|
+
* the remaining travel is a whole spring rather than the tail of one, and the
|
|
231
|
+
* animation stays the same `Animation` — the compositor keeps its layer, and a
|
|
232
|
+
* new press pauses it again with the gesture's own timing restored by `scrub`.
|
|
233
|
+
* Resolves when it lands; a cancelled animation resolves too, because a
|
|
234
|
+
* cancelled gesture is not an error.
|
|
235
|
+
*
|
|
236
|
+
* Settling several animations with *identical* options is what keeps two layers
|
|
237
|
+
* of one gesture locked together: each re-samples from its own progress, and
|
|
238
|
+
* animations scrubbed together are at the same progress, so they land as one.
|
|
239
|
+
*/
|
|
240
|
+
function settle(animation, options) {
|
|
241
|
+
const scrubSpan = span(animation);
|
|
242
|
+
const from = scrubSpan > 0 ? clamp(Number(animation.currentTime ?? 0) / scrubSpan, 0, 1) : 0;
|
|
243
|
+
const to = options.forward ? 1 : 0;
|
|
244
|
+
const remaining = to - from;
|
|
245
|
+
const reduced = motionIsReduced();
|
|
246
|
+
const response = reduced ? reducedResponse : snappy.response;
|
|
247
|
+
const dampingFraction = reduced ? 1 : snappy.dampingFraction;
|
|
248
|
+
const pixels = (options.velocity ?? 0) * 1e3;
|
|
249
|
+
const velocity = reduced || remaining === 0 || options.distance <= 0 ? 0 : clamp(pixels / (options.distance * remaining), -20, 20);
|
|
250
|
+
const w0 = Math.PI * 2 / response;
|
|
251
|
+
const duration = settlingDuration(w0, dampingFraction, velocity);
|
|
252
|
+
animation.effect?.updateTiming({
|
|
253
|
+
duration: Math.round(duration * 1e3),
|
|
254
|
+
easing: format(springSamples(w0, dampingFraction, velocity, duration), from, to)
|
|
255
|
+
});
|
|
256
|
+
animation.currentTime = 0;
|
|
257
|
+
animation.playbackRate = 1;
|
|
258
|
+
animation.play();
|
|
259
|
+
return animation.finished.then(() => void 0, () => void 0);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* macOS's Scale effect, in both directions: the element is already where it is
|
|
263
|
+
* going, and this puts it back where it came from for one frame and lets it
|
|
264
|
+
* travel. Only `transform` and `opacity` move.
|
|
265
|
+
*
|
|
266
|
+
* The resting state may already carry a CSS `scale` — a window parked in the
|
|
267
|
+
* Dock is its own miniature — and an animated `transform` composes *inside*
|
|
268
|
+
* that scale, so the offsets are in the element's own pre-scale units.
|
|
269
|
+
*/
|
|
270
|
+
function fly(element, from, to, duration, easing) {
|
|
271
|
+
if (!from.width || !from.height || !to.width || !to.height) return void 0;
|
|
272
|
+
if (motionIsReduced()) return element.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
273
|
+
duration,
|
|
274
|
+
easing: "linear"
|
|
275
|
+
});
|
|
276
|
+
const resting = to.width / (element.offsetWidth || to.width);
|
|
277
|
+
return element.animate([{
|
|
278
|
+
transformOrigin: "0 0",
|
|
279
|
+
transform: `translate(${(from.left - to.left) / resting}px, ${(from.top - to.top) / resting}px) scale(${from.width / to.width}, ${from.height / to.height})`
|
|
280
|
+
}, {
|
|
281
|
+
transformOrigin: "0 0",
|
|
282
|
+
transform: "none"
|
|
283
|
+
}], {
|
|
284
|
+
duration,
|
|
285
|
+
easing
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* A duration token's value, in milliseconds, read off the element that will be
|
|
290
|
+
* animated. Keeps a Web Animation on the same number as the stylesheet — the
|
|
291
|
+
* reduced-motion collapse included, which is declared on the token and would
|
|
292
|
+
* otherwise have to be repeated in every handler.
|
|
293
|
+
*/
|
|
294
|
+
function cssDuration(element, property) {
|
|
295
|
+
const value = getComputedStyle(element).getPropertyValue(property).trim();
|
|
296
|
+
const amount = Number.parseFloat(value);
|
|
297
|
+
if (!Number.isFinite(amount)) return 0;
|
|
298
|
+
return value.endsWith("ms") ? amount : amount * 1e3;
|
|
299
|
+
}
|
|
300
|
+
/** The same read for a unitless token, such as a scale, with its value when undeclared. */
|
|
301
|
+
function cssNumber(element, property, fallback) {
|
|
302
|
+
const value = Number.parseFloat(getComputedStyle(element).getPropertyValue(property));
|
|
303
|
+
return Number.isFinite(value) ? value : fallback;
|
|
304
|
+
}
|
|
305
|
+
/** The same read for an easing token, off the element that is about to move. */
|
|
306
|
+
function cssEasing(element, property) {
|
|
307
|
+
return getComputedStyle(element).getPropertyValue(property).trim() || "ease-out";
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* The platform floor the shell's motion is written against. Chrome for Testing
|
|
311
|
+
* runs the play tests several releases behind the browser the demo runs in, so
|
|
312
|
+
* anything above this floor has to be guarded — and this is the guard, shared
|
|
313
|
+
* so no lane invents a second one.
|
|
314
|
+
*/
|
|
315
|
+
function supportsScopedViewTransitions() {
|
|
316
|
+
return typeof Element !== "undefined" && typeof Element.prototype.startViewTransition === "function" && typeof ViewTransition !== "undefined" && "waitUntil" in ViewTransition.prototype;
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
export { project as a, scrubTiming as c, trackVelocity as d, fly as i, settle as l, cssEasing as n, rubberBand as o, cssNumber as r, scrub as s, cssDuration as t, supportsScopedViewTransitions as u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/components/_internal/motion-preferences.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reports whether motion should be suppressed, honoring both the app-level
|
|
4
|
+
* `data-motion="reduce"` override and the `prefers-reduced-motion` media query.
|
|
5
|
+
* Returns `true` when there is no document, e.g. during SSR.
|
|
6
|
+
*/
|
|
7
|
+
function motionIsReduced() {
|
|
8
|
+
if (typeof document === "undefined") return true;
|
|
9
|
+
if (document.documentElement.dataset.motion === "reduce") return true;
|
|
10
|
+
return window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { motionIsReduced as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
1
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
3
|
//#region src/components/_internal/navigation-link.tsx
|
|
3
4
|
function isPlainPrimaryLinkActivation(event) {
|
|
4
|
-
const target = event.currentTarget.target.toLowerCase();
|
|
5
|
+
const target = (event.currentTarget.getAttribute("target") ?? "").toLowerCase();
|
|
5
6
|
return event.button === 0 && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey && !event.currentTarget.hasAttribute("download") && (target === "" || target === "_self");
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
@@ -11,13 +12,36 @@ function isPlainPrimaryLinkActivation(event) {
|
|
|
11
12
|
* registered route tree infer `to`, `params`, and `search` without routing
|
|
12
13
|
* generics leaking through every design-system component.
|
|
13
14
|
*/
|
|
14
|
-
function NavigationLink(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
function NavigationLink(t0) {
|
|
16
|
+
const $ = c(8);
|
|
17
|
+
let props;
|
|
18
|
+
let ref;
|
|
19
|
+
let render;
|
|
20
|
+
if ($[0] !== t0) {
|
|
21
|
+
({render, ref, ...props} = t0);
|
|
22
|
+
$[0] = t0;
|
|
23
|
+
$[1] = props;
|
|
24
|
+
$[2] = ref;
|
|
25
|
+
$[3] = render;
|
|
26
|
+
} else {
|
|
27
|
+
props = $[1];
|
|
28
|
+
ref = $[2];
|
|
29
|
+
render = $[3];
|
|
30
|
+
}
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[4] !== props || $[5] !== ref || $[6] !== render) {
|
|
33
|
+
t1 = {
|
|
34
|
+
defaultTagName: "a",
|
|
35
|
+
render,
|
|
36
|
+
ref,
|
|
37
|
+
props
|
|
38
|
+
};
|
|
39
|
+
$[4] = props;
|
|
40
|
+
$[5] = ref;
|
|
41
|
+
$[6] = render;
|
|
42
|
+
$[7] = t1;
|
|
43
|
+
} else t1 = $[7];
|
|
44
|
+
return useRender(t1);
|
|
21
45
|
}
|
|
22
46
|
//#endregion
|
|
23
47
|
export { isPlainPrimaryLinkActivation as n, NavigationLink as t };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as clamp } from "./format-DL7f2rqp.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/_internal/progress-ring.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Bare single-fraction progress ring shared by the Context usage trigger and
|
|
7
|
+
* the plan summary pill. Decorative: callers own the accessible label.
|
|
8
|
+
*/
|
|
9
|
+
function ProgressRing(t0) {
|
|
10
|
+
const $ = c(18);
|
|
11
|
+
const { percent, size, stroke } = t0;
|
|
12
|
+
const radius = (size - stroke) / 2;
|
|
13
|
+
const circumference = 2 * Math.PI * radius;
|
|
14
|
+
const offset = circumference - clamp(percent, 0, 100) / 100 * circumference;
|
|
15
|
+
const t1 = `0 0 ${size} ${size}`;
|
|
16
|
+
const t2 = size / 2;
|
|
17
|
+
const t3 = size / 2;
|
|
18
|
+
let t4;
|
|
19
|
+
if ($[0] !== radius || $[1] !== stroke || $[2] !== t2 || $[3] !== t3) {
|
|
20
|
+
t4 = /* @__PURE__ */ jsx("circle", {
|
|
21
|
+
cx: t2,
|
|
22
|
+
cy: t3,
|
|
23
|
+
r: radius,
|
|
24
|
+
fill: "none",
|
|
25
|
+
stroke: "var(--sigvelo-color-neutral-border-subtle)",
|
|
26
|
+
strokeWidth: stroke
|
|
27
|
+
});
|
|
28
|
+
$[0] = radius;
|
|
29
|
+
$[1] = stroke;
|
|
30
|
+
$[2] = t2;
|
|
31
|
+
$[3] = t3;
|
|
32
|
+
$[4] = t4;
|
|
33
|
+
} else t4 = $[4];
|
|
34
|
+
const t5 = size / 2;
|
|
35
|
+
const t6 = size / 2;
|
|
36
|
+
const t7 = `rotate(-90 ${size / 2} ${size / 2})`;
|
|
37
|
+
let t8;
|
|
38
|
+
if ($[5] !== circumference || $[6] !== offset || $[7] !== radius || $[8] !== stroke || $[9] !== t5 || $[10] !== t6 || $[11] !== t7) {
|
|
39
|
+
t8 = /* @__PURE__ */ jsx("circle", {
|
|
40
|
+
cx: t5,
|
|
41
|
+
cy: t6,
|
|
42
|
+
r: radius,
|
|
43
|
+
fill: "none",
|
|
44
|
+
stroke: "var(--sigvelo-color-primary-bg)",
|
|
45
|
+
strokeWidth: stroke,
|
|
46
|
+
strokeDasharray: circumference,
|
|
47
|
+
strokeDashoffset: offset,
|
|
48
|
+
strokeLinecap: "round",
|
|
49
|
+
transform: t7
|
|
50
|
+
});
|
|
51
|
+
$[5] = circumference;
|
|
52
|
+
$[6] = offset;
|
|
53
|
+
$[7] = radius;
|
|
54
|
+
$[8] = stroke;
|
|
55
|
+
$[9] = t5;
|
|
56
|
+
$[10] = t6;
|
|
57
|
+
$[11] = t7;
|
|
58
|
+
$[12] = t8;
|
|
59
|
+
} else t8 = $[12];
|
|
60
|
+
let t9;
|
|
61
|
+
if ($[13] !== size || $[14] !== t1 || $[15] !== t4 || $[16] !== t8) {
|
|
62
|
+
t9 = /* @__PURE__ */ jsxs("svg", {
|
|
63
|
+
width: size,
|
|
64
|
+
height: size,
|
|
65
|
+
viewBox: t1,
|
|
66
|
+
focusable: "false",
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
children: [t4, t8]
|
|
69
|
+
});
|
|
70
|
+
$[13] = size;
|
|
71
|
+
$[14] = t1;
|
|
72
|
+
$[15] = t4;
|
|
73
|
+
$[16] = t8;
|
|
74
|
+
$[17] = t9;
|
|
75
|
+
} else t9 = $[17];
|
|
76
|
+
return t9;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { ProgressRing as t };
|