@mcp-b/react-components 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-CMvICi-p.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1120 -393
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +165 -22
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +109 -47
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +504 -103
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +143 -36
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +331 -116
- package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
- package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +543 -159
- package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1154 -256
- package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +359 -131
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkChat.js +321 -129
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1389 -407
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +506 -125
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +364 -133
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +312 -91
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1496 -419
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +268 -86
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +119 -59
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +194 -69
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.d.ts +6 -1
- package/dist/components/ai-sdk/AgentChatTurnError.js +77 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +738 -179
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2738 -797
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +793 -155
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +2 -2
- package/dist/components/extension/CodexModelSelector.js +468 -147
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +61 -35
- package/dist/components/extension/FirstRunSetup.js +3833 -1011
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +83 -18
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +130 -27
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +4 -4
- package/dist/components/foundations/ToggleGroup.js +216 -60
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +34 -7
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +210 -85
- package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +10 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +67 -24
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +237 -57
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/ai-provider-dialog.css +46 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +15 -6
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -132
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/codex-model-catalog.d.ts +1 -1
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/model-provider-error.d.ts +17 -0
- package/dist/utils/model-provider-error.js +76 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-KpMmznB_.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-CNvOYR0Q.js +0 -318
- package/dist/ExecutionResult-DmC21cll.js +0 -279
- package/dist/FileTree-H31EVRv_.js +0 -323
- package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
- package/dist/SetupChecklist-Wo4akaSG.js +0 -78
- package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
- package/dist/WorkspaceFileView-BWI_AJlV.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-DNchrZHs.js +0 -32
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
- package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
- package/dist/connected-app-drafts-B9i69bkj.js +0 -283
- package/dist/copy-button-z20VEXRF.js +0 -45
- package/dist/icons-Yp99gmMC.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-Dq5toMQc.js +0 -107
- package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
- package/dist/workspace-delete-CoB0l6ZU.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { et as RefreshIcon, i as ArrowRightIcon, m as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-nLTnB9kd.js";
|
|
2
3
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
4
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
4
|
-
import { f as ChevronDownIcon, i as ArrowRightIcon, q as RefreshIcon, r as ArrowLeftIcon } from "../../icons-Yp99gmMC.js";
|
|
5
5
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
6
|
import { Input } from "../foundations/Input.js";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
7
8
|
import * as React from "react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -46,268 +47,834 @@ function useWebPreviewContext() {
|
|
|
46
47
|
* </WebPreview>
|
|
47
48
|
* ```
|
|
48
49
|
*/
|
|
49
|
-
function WebPreview(
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
function WebPreview(t0) {
|
|
51
|
+
const $ = c(49);
|
|
52
|
+
let children;
|
|
53
|
+
let className;
|
|
54
|
+
let controlledUrl;
|
|
55
|
+
let onUrlChange;
|
|
56
|
+
let props;
|
|
57
|
+
let recipe;
|
|
58
|
+
let ref;
|
|
59
|
+
let t1;
|
|
60
|
+
let t2;
|
|
61
|
+
if ($[0] !== t0) {
|
|
62
|
+
({surface: t1, className, defaultUrl: t2, url: controlledUrl, onUrlChange, children, ref, "data-recipe": recipe, ...props} = t0);
|
|
63
|
+
$[0] = t0;
|
|
64
|
+
$[1] = children;
|
|
65
|
+
$[2] = className;
|
|
66
|
+
$[3] = controlledUrl;
|
|
67
|
+
$[4] = onUrlChange;
|
|
68
|
+
$[5] = props;
|
|
69
|
+
$[6] = recipe;
|
|
70
|
+
$[7] = ref;
|
|
71
|
+
$[8] = t1;
|
|
72
|
+
$[9] = t2;
|
|
73
|
+
} else {
|
|
74
|
+
children = $[1];
|
|
75
|
+
className = $[2];
|
|
76
|
+
controlledUrl = $[3];
|
|
77
|
+
onUrlChange = $[4];
|
|
78
|
+
props = $[5];
|
|
79
|
+
recipe = $[6];
|
|
80
|
+
ref = $[7];
|
|
81
|
+
t1 = $[8];
|
|
82
|
+
t2 = $[9];
|
|
83
|
+
}
|
|
84
|
+
const surface = t1 === void 0 ? "framed" : t1;
|
|
85
|
+
const defaultUrl = t2 === void 0 ? "" : t2;
|
|
86
|
+
let t3;
|
|
87
|
+
if ($[10] !== defaultUrl) {
|
|
88
|
+
t3 = () => ({
|
|
89
|
+
history: defaultUrl ? [defaultUrl] : [],
|
|
90
|
+
index: defaultUrl ? 0 : -1
|
|
91
|
+
});
|
|
92
|
+
$[10] = defaultUrl;
|
|
93
|
+
$[11] = t3;
|
|
94
|
+
} else t3 = $[11];
|
|
95
|
+
const [navigation, setNavigation] = React.useState(t3);
|
|
54
96
|
const [reloadToken, setReloadToken] = React.useState(0);
|
|
55
97
|
const [consoleOpen, setConsoleOpen] = React.useState(false);
|
|
56
98
|
const { history, index } = navigation;
|
|
57
99
|
const isControlled = controlledUrl !== void 0;
|
|
58
100
|
const url = controlledUrl ?? (index >= 0 ? history[index] ?? "" : "");
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
history,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
101
|
+
let t4;
|
|
102
|
+
if ($[12] !== isControlled || $[13] !== onUrlChange) {
|
|
103
|
+
t4 = (next) => {
|
|
104
|
+
if (!isControlled) setNavigation((current) => {
|
|
105
|
+
const history_0 = [...current.history.slice(0, current.index + 1), next];
|
|
106
|
+
return {
|
|
107
|
+
history: history_0,
|
|
108
|
+
index: history_0.length - 1
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
onUrlChange?.(next);
|
|
112
|
+
};
|
|
113
|
+
$[12] = isControlled;
|
|
114
|
+
$[13] = onUrlChange;
|
|
115
|
+
$[14] = t4;
|
|
116
|
+
} else t4 = $[14];
|
|
117
|
+
const setUrl = t4;
|
|
118
|
+
let t5;
|
|
119
|
+
if ($[15] !== history || $[16] !== index || $[17] !== isControlled || $[18] !== onUrlChange) {
|
|
120
|
+
t5 = () => {
|
|
121
|
+
if (isControlled) return;
|
|
122
|
+
const nextIndex = Math.max(0, index - 1);
|
|
123
|
+
if (nextIndex === index) return;
|
|
124
|
+
setNavigation((current_0) => ({
|
|
125
|
+
...current_0,
|
|
126
|
+
index: nextIndex
|
|
127
|
+
}));
|
|
128
|
+
onUrlChange?.(history[nextIndex] ?? "");
|
|
129
|
+
};
|
|
130
|
+
$[15] = history;
|
|
131
|
+
$[16] = index;
|
|
132
|
+
$[17] = isControlled;
|
|
133
|
+
$[18] = onUrlChange;
|
|
134
|
+
$[19] = t5;
|
|
135
|
+
} else t5 = $[19];
|
|
136
|
+
const goBack = t5;
|
|
137
|
+
let t6;
|
|
138
|
+
if ($[20] !== history || $[21] !== index || $[22] !== isControlled || $[23] !== onUrlChange) {
|
|
139
|
+
t6 = () => {
|
|
140
|
+
if (isControlled) return;
|
|
141
|
+
const nextIndex_0 = Math.min(history.length - 1, index + 1);
|
|
142
|
+
if (nextIndex_0 === index) return;
|
|
143
|
+
setNavigation((current_1) => ({
|
|
144
|
+
...current_1,
|
|
145
|
+
index: nextIndex_0
|
|
146
|
+
}));
|
|
147
|
+
onUrlChange?.(history[nextIndex_0] ?? "");
|
|
148
|
+
};
|
|
149
|
+
$[20] = history;
|
|
150
|
+
$[21] = index;
|
|
151
|
+
$[22] = isControlled;
|
|
152
|
+
$[23] = onUrlChange;
|
|
153
|
+
$[24] = t6;
|
|
154
|
+
} else t6 = $[24];
|
|
155
|
+
const goForward = t6;
|
|
156
|
+
let t7;
|
|
157
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
158
|
+
t7 = () => {
|
|
159
|
+
setReloadToken(_temp);
|
|
160
|
+
};
|
|
161
|
+
$[25] = t7;
|
|
162
|
+
} else t7 = $[25];
|
|
163
|
+
const reload = t7;
|
|
164
|
+
const t8 = !isControlled && index > 0;
|
|
165
|
+
const t9 = !isControlled && index >= 0 && index < history.length - 1;
|
|
166
|
+
let t10;
|
|
167
|
+
if ($[26] !== consoleOpen || $[27] !== goBack || $[28] !== goForward || $[29] !== reloadToken || $[30] !== setUrl || $[31] !== t8 || $[32] !== t9 || $[33] !== url) {
|
|
168
|
+
t10 = {
|
|
169
|
+
url,
|
|
170
|
+
setUrl,
|
|
171
|
+
consoleOpen,
|
|
172
|
+
setConsoleOpen,
|
|
173
|
+
canGoBack: t8,
|
|
174
|
+
canGoForward: t9,
|
|
175
|
+
goBack,
|
|
176
|
+
goForward,
|
|
177
|
+
reload,
|
|
178
|
+
reloadToken
|
|
179
|
+
};
|
|
180
|
+
$[26] = consoleOpen;
|
|
181
|
+
$[27] = goBack;
|
|
182
|
+
$[28] = goForward;
|
|
183
|
+
$[29] = reloadToken;
|
|
184
|
+
$[30] = setUrl;
|
|
185
|
+
$[31] = t8;
|
|
186
|
+
$[32] = t9;
|
|
187
|
+
$[33] = url;
|
|
188
|
+
$[34] = t10;
|
|
189
|
+
} else t10 = $[34];
|
|
190
|
+
const ctxValue = t10;
|
|
191
|
+
let t11;
|
|
192
|
+
if ($[35] !== className) {
|
|
193
|
+
t11 = cx("web-preview", className);
|
|
194
|
+
$[35] = className;
|
|
195
|
+
$[36] = t11;
|
|
196
|
+
} else t11 = $[36];
|
|
197
|
+
let t12;
|
|
198
|
+
if ($[37] !== recipe) {
|
|
199
|
+
t12 = cx("framed-panel", recipe);
|
|
200
|
+
$[37] = recipe;
|
|
201
|
+
$[38] = t12;
|
|
202
|
+
} else t12 = $[38];
|
|
203
|
+
let t13;
|
|
204
|
+
if ($[39] !== children || $[40] !== props || $[41] !== ref || $[42] !== surface || $[43] !== t11 || $[44] !== t12) {
|
|
205
|
+
t13 = /* @__PURE__ */ jsx("div", {
|
|
128
206
|
ref,
|
|
129
|
-
className:
|
|
207
|
+
className: t11,
|
|
130
208
|
"data-surface": surface,
|
|
131
209
|
...props,
|
|
132
|
-
"data-recipe":
|
|
210
|
+
"data-recipe": t12,
|
|
133
211
|
children
|
|
134
|
-
})
|
|
135
|
-
|
|
212
|
+
});
|
|
213
|
+
$[39] = children;
|
|
214
|
+
$[40] = props;
|
|
215
|
+
$[41] = ref;
|
|
216
|
+
$[42] = surface;
|
|
217
|
+
$[43] = t11;
|
|
218
|
+
$[44] = t12;
|
|
219
|
+
$[45] = t13;
|
|
220
|
+
} else t13 = $[45];
|
|
221
|
+
let t14;
|
|
222
|
+
if ($[46] !== ctxValue || $[47] !== t13) {
|
|
223
|
+
t14 = /* @__PURE__ */ jsx(WebPreviewContext.Provider, {
|
|
224
|
+
value: ctxValue,
|
|
225
|
+
children: t13
|
|
226
|
+
});
|
|
227
|
+
$[46] = ctxValue;
|
|
228
|
+
$[47] = t13;
|
|
229
|
+
$[48] = t14;
|
|
230
|
+
} else t14 = $[48];
|
|
231
|
+
return t14;
|
|
136
232
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
139
|
-
ref,
|
|
140
|
-
className: cx("web-preview__nav", className),
|
|
141
|
-
"data-variant": variant,
|
|
142
|
-
...props,
|
|
143
|
-
children
|
|
144
|
-
});
|
|
233
|
+
function _temp(n) {
|
|
234
|
+
return n + 1;
|
|
145
235
|
}
|
|
146
|
-
|
|
236
|
+
/** The toolbar row under a browser's tab strip: navigation, address, trailing controls. */
|
|
237
|
+
function WebPreviewNavigation(t0) {
|
|
238
|
+
const $ = c(12);
|
|
239
|
+
let children;
|
|
240
|
+
let className;
|
|
241
|
+
let props;
|
|
242
|
+
let ref;
|
|
243
|
+
if ($[0] !== t0) {
|
|
244
|
+
({className, children, ref, ...props} = t0);
|
|
245
|
+
$[0] = t0;
|
|
246
|
+
$[1] = children;
|
|
247
|
+
$[2] = className;
|
|
248
|
+
$[3] = props;
|
|
249
|
+
$[4] = ref;
|
|
250
|
+
} else {
|
|
251
|
+
children = $[1];
|
|
252
|
+
className = $[2];
|
|
253
|
+
props = $[3];
|
|
254
|
+
ref = $[4];
|
|
255
|
+
}
|
|
256
|
+
let t1;
|
|
257
|
+
if ($[5] !== className) {
|
|
258
|
+
t1 = cx("web-preview__nav", className);
|
|
259
|
+
$[5] = className;
|
|
260
|
+
$[6] = t1;
|
|
261
|
+
} else t1 = $[6];
|
|
262
|
+
let t2;
|
|
263
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
264
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
265
|
+
ref,
|
|
266
|
+
className: t1,
|
|
267
|
+
"data-recipe": "browser-chrome",
|
|
268
|
+
...props,
|
|
269
|
+
children
|
|
270
|
+
});
|
|
271
|
+
$[7] = children;
|
|
272
|
+
$[8] = props;
|
|
273
|
+
$[9] = ref;
|
|
274
|
+
$[10] = t1;
|
|
275
|
+
$[11] = t2;
|
|
276
|
+
} else t2 = $[11];
|
|
277
|
+
return t2;
|
|
278
|
+
}
|
|
279
|
+
function WebPreviewNavigationButton(t0) {
|
|
280
|
+
const $ = c(37);
|
|
281
|
+
let action;
|
|
282
|
+
let children;
|
|
283
|
+
let className;
|
|
284
|
+
let label;
|
|
285
|
+
let onClick;
|
|
286
|
+
let props;
|
|
287
|
+
let tooltip;
|
|
288
|
+
if ($[0] !== t0) {
|
|
289
|
+
({className, action, label, tooltip, children, onClick, ...props} = t0);
|
|
290
|
+
$[0] = t0;
|
|
291
|
+
$[1] = action;
|
|
292
|
+
$[2] = children;
|
|
293
|
+
$[3] = className;
|
|
294
|
+
$[4] = label;
|
|
295
|
+
$[5] = onClick;
|
|
296
|
+
$[6] = props;
|
|
297
|
+
$[7] = tooltip;
|
|
298
|
+
} else {
|
|
299
|
+
action = $[1];
|
|
300
|
+
children = $[2];
|
|
301
|
+
className = $[3];
|
|
302
|
+
label = $[4];
|
|
303
|
+
onClick = $[5];
|
|
304
|
+
props = $[6];
|
|
305
|
+
tooltip = $[7];
|
|
306
|
+
}
|
|
147
307
|
const { canGoBack, canGoForward, goBack, goForward, reload } = useWebPreviewContext();
|
|
148
|
-
|
|
149
|
-
|
|
308
|
+
let t1;
|
|
309
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
310
|
+
t1 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
|
|
311
|
+
$[8] = t1;
|
|
312
|
+
} else t1 = $[8];
|
|
313
|
+
const t2 = !canGoBack;
|
|
314
|
+
let t3;
|
|
315
|
+
if ($[9] !== goBack || $[10] !== t2) {
|
|
316
|
+
t3 = {
|
|
150
317
|
label: "Back",
|
|
151
|
-
icon:
|
|
152
|
-
disabled:
|
|
318
|
+
icon: t1,
|
|
319
|
+
disabled: t2,
|
|
153
320
|
onAction: goBack
|
|
154
|
-
}
|
|
155
|
-
|
|
321
|
+
};
|
|
322
|
+
$[9] = goBack;
|
|
323
|
+
$[10] = t2;
|
|
324
|
+
$[11] = t3;
|
|
325
|
+
} else t3 = $[11];
|
|
326
|
+
let t4;
|
|
327
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
328
|
+
t4 = /* @__PURE__ */ jsx(ArrowRightIcon, {});
|
|
329
|
+
$[12] = t4;
|
|
330
|
+
} else t4 = $[12];
|
|
331
|
+
const t5 = !canGoForward;
|
|
332
|
+
let t6;
|
|
333
|
+
if ($[13] !== goForward || $[14] !== t5) {
|
|
334
|
+
t6 = {
|
|
156
335
|
label: "Forward",
|
|
157
|
-
icon:
|
|
158
|
-
disabled:
|
|
336
|
+
icon: t4,
|
|
337
|
+
disabled: t5,
|
|
159
338
|
onAction: goForward
|
|
160
|
-
}
|
|
161
|
-
|
|
339
|
+
};
|
|
340
|
+
$[13] = goForward;
|
|
341
|
+
$[14] = t5;
|
|
342
|
+
$[15] = t6;
|
|
343
|
+
} else t6 = $[15];
|
|
344
|
+
let t7;
|
|
345
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
346
|
+
t7 = /* @__PURE__ */ jsx(RefreshIcon, {});
|
|
347
|
+
$[16] = t7;
|
|
348
|
+
} else t7 = $[16];
|
|
349
|
+
let t8;
|
|
350
|
+
if ($[17] !== reload) {
|
|
351
|
+
t8 = {
|
|
162
352
|
label: "Reload",
|
|
163
|
-
icon:
|
|
353
|
+
icon: t7,
|
|
164
354
|
disabled: false,
|
|
165
355
|
onAction: reload
|
|
166
|
-
}
|
|
167
|
-
|
|
356
|
+
};
|
|
357
|
+
$[17] = reload;
|
|
358
|
+
$[18] = t8;
|
|
359
|
+
} else t8 = $[18];
|
|
360
|
+
let t9;
|
|
361
|
+
if ($[19] !== t3 || $[20] !== t6 || $[21] !== t8) {
|
|
362
|
+
t9 = {
|
|
363
|
+
back: t3,
|
|
364
|
+
forward: t6,
|
|
365
|
+
reload: t8
|
|
366
|
+
};
|
|
367
|
+
$[19] = t3;
|
|
368
|
+
$[20] = t6;
|
|
369
|
+
$[21] = t8;
|
|
370
|
+
$[22] = t9;
|
|
371
|
+
} else t9 = $[22];
|
|
372
|
+
const defaults = t9;
|
|
168
373
|
const def = action ? defaults[action] : null;
|
|
169
374
|
const resolvedLabel = action ? label ?? defaults[action].label : label;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
375
|
+
let t10;
|
|
376
|
+
if ($[23] !== def || $[24] !== onClick) {
|
|
377
|
+
t10 = (e) => {
|
|
378
|
+
def?.onAction();
|
|
379
|
+
onClick?.(e);
|
|
380
|
+
};
|
|
381
|
+
$[23] = def;
|
|
382
|
+
$[24] = onClick;
|
|
383
|
+
$[25] = t10;
|
|
384
|
+
} else t10 = $[25];
|
|
385
|
+
const handleClick = t10;
|
|
386
|
+
const t11 = def?.disabled;
|
|
387
|
+
const t12 = action && `web-preview__nav-button--${action}`;
|
|
388
|
+
let t13;
|
|
389
|
+
if ($[26] !== className || $[27] !== t12) {
|
|
390
|
+
t13 = cx("web-preview__nav-button", t12, className);
|
|
391
|
+
$[26] = className;
|
|
392
|
+
$[27] = t12;
|
|
393
|
+
$[28] = t13;
|
|
394
|
+
} else t13 = $[28];
|
|
395
|
+
const t14 = children ?? def?.icon;
|
|
396
|
+
let t15;
|
|
397
|
+
if ($[29] !== handleClick || $[30] !== props || $[31] !== resolvedLabel || $[32] !== t11 || $[33] !== t13 || $[34] !== t14 || $[35] !== tooltip) {
|
|
398
|
+
t15 = /* @__PURE__ */ jsx(IconButton, {
|
|
399
|
+
label: resolvedLabel,
|
|
400
|
+
tooltip,
|
|
401
|
+
variant: "ghost",
|
|
402
|
+
color: "neutral",
|
|
403
|
+
size: "sm",
|
|
404
|
+
disabled: t11,
|
|
405
|
+
className: t13,
|
|
406
|
+
...props,
|
|
407
|
+
onClick: handleClick,
|
|
408
|
+
children: t14
|
|
409
|
+
});
|
|
410
|
+
$[29] = handleClick;
|
|
411
|
+
$[30] = props;
|
|
412
|
+
$[31] = resolvedLabel;
|
|
413
|
+
$[32] = t11;
|
|
414
|
+
$[33] = t13;
|
|
415
|
+
$[34] = t14;
|
|
416
|
+
$[35] = tooltip;
|
|
417
|
+
$[36] = t15;
|
|
418
|
+
} else t15 = $[36];
|
|
419
|
+
return t15;
|
|
186
420
|
}
|
|
187
|
-
function WebPreviewUrl(
|
|
421
|
+
function WebPreviewUrl(t0) {
|
|
422
|
+
const $ = c(41);
|
|
423
|
+
let className;
|
|
424
|
+
let onBlur;
|
|
425
|
+
let onChange;
|
|
426
|
+
let onFocus;
|
|
427
|
+
let props;
|
|
428
|
+
let ref;
|
|
429
|
+
let t1;
|
|
430
|
+
let value;
|
|
431
|
+
if ($[0] !== t0) {
|
|
432
|
+
({className, placeholder: t1, value, onChange, onFocus, onBlur, ref, ...props} = t0);
|
|
433
|
+
$[0] = t0;
|
|
434
|
+
$[1] = className;
|
|
435
|
+
$[2] = onBlur;
|
|
436
|
+
$[3] = onChange;
|
|
437
|
+
$[4] = onFocus;
|
|
438
|
+
$[5] = props;
|
|
439
|
+
$[6] = ref;
|
|
440
|
+
$[7] = t1;
|
|
441
|
+
$[8] = value;
|
|
442
|
+
} else {
|
|
443
|
+
className = $[1];
|
|
444
|
+
onBlur = $[2];
|
|
445
|
+
onChange = $[3];
|
|
446
|
+
onFocus = $[4];
|
|
447
|
+
props = $[5];
|
|
448
|
+
ref = $[6];
|
|
449
|
+
t1 = $[7];
|
|
450
|
+
value = $[8];
|
|
451
|
+
}
|
|
452
|
+
const placeholder = t1 === void 0 ? "Enter URL…" : t1;
|
|
188
453
|
const { url, setUrl } = useWebPreviewContext();
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
454
|
+
let t2;
|
|
455
|
+
if ($[9] !== url) {
|
|
456
|
+
t2 = () => ({
|
|
457
|
+
url,
|
|
458
|
+
value: url
|
|
459
|
+
});
|
|
460
|
+
$[9] = url;
|
|
461
|
+
$[10] = t2;
|
|
462
|
+
} else t2 = $[10];
|
|
463
|
+
const [draft, setDraft] = React.useState(t2);
|
|
193
464
|
if (draft.url !== url) setDraft({
|
|
194
465
|
url,
|
|
195
466
|
value: url
|
|
196
467
|
});
|
|
197
468
|
const derivedDraft = draft.url === url ? draft.value : url;
|
|
198
469
|
const inputValue = value ?? derivedDraft;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
470
|
+
const [editing, setEditing] = React.useState(false);
|
|
471
|
+
let t3;
|
|
472
|
+
if ($[11] !== derivedDraft || $[12] !== editing || $[13] !== inputValue || $[14] !== url || $[15] !== value) {
|
|
473
|
+
t3 = editing || value !== void 0 || derivedDraft !== url ? inputValue : url.replace(/^https:\/\//, "");
|
|
474
|
+
$[11] = derivedDraft;
|
|
475
|
+
$[12] = editing;
|
|
476
|
+
$[13] = inputValue;
|
|
477
|
+
$[14] = url;
|
|
478
|
+
$[15] = value;
|
|
479
|
+
$[16] = t3;
|
|
480
|
+
} else t3 = $[16];
|
|
481
|
+
const shown = t3;
|
|
482
|
+
let t4;
|
|
483
|
+
if ($[17] !== inputValue || $[18] !== setUrl) {
|
|
484
|
+
t4 = (e) => {
|
|
202
485
|
e.preventDefault();
|
|
203
486
|
const next = Array.isArray(inputValue) ? inputValue[0] : String(inputValue ?? "");
|
|
204
487
|
if (next) setUrl(next);
|
|
205
|
-
}
|
|
206
|
-
|
|
488
|
+
};
|
|
489
|
+
$[17] = inputValue;
|
|
490
|
+
$[18] = setUrl;
|
|
491
|
+
$[19] = t4;
|
|
492
|
+
} else t4 = $[19];
|
|
493
|
+
let t5;
|
|
494
|
+
if ($[20] !== onFocus) {
|
|
495
|
+
t5 = (e_0) => {
|
|
496
|
+
setEditing(true);
|
|
497
|
+
onFocus?.(e_0);
|
|
498
|
+
};
|
|
499
|
+
$[20] = onFocus;
|
|
500
|
+
$[21] = t5;
|
|
501
|
+
} else t5 = $[21];
|
|
502
|
+
let t6;
|
|
503
|
+
if ($[22] !== onBlur) {
|
|
504
|
+
t6 = (e_1) => {
|
|
505
|
+
setEditing(false);
|
|
506
|
+
onBlur?.(e_1);
|
|
507
|
+
};
|
|
508
|
+
$[22] = onBlur;
|
|
509
|
+
$[23] = t6;
|
|
510
|
+
} else t6 = $[23];
|
|
511
|
+
let t7;
|
|
512
|
+
if ($[24] !== onChange || $[25] !== url) {
|
|
513
|
+
t7 = (e_2) => {
|
|
514
|
+
setDraft({
|
|
515
|
+
url,
|
|
516
|
+
value: e_2.target.value
|
|
517
|
+
});
|
|
518
|
+
onChange?.(e_2);
|
|
519
|
+
};
|
|
520
|
+
$[24] = onChange;
|
|
521
|
+
$[25] = url;
|
|
522
|
+
$[26] = t7;
|
|
523
|
+
} else t7 = $[26];
|
|
524
|
+
let t8;
|
|
525
|
+
if ($[27] !== className) {
|
|
526
|
+
t8 = cx("web-preview__url", className);
|
|
527
|
+
$[27] = className;
|
|
528
|
+
$[28] = t8;
|
|
529
|
+
} else t8 = $[28];
|
|
530
|
+
let t9;
|
|
531
|
+
if ($[29] !== placeholder || $[30] !== props || $[31] !== ref || $[32] !== shown || $[33] !== t5 || $[34] !== t6 || $[35] !== t7 || $[36] !== t8) {
|
|
532
|
+
t9 = /* @__PURE__ */ jsx(Input, {
|
|
207
533
|
ref,
|
|
208
534
|
type: "text",
|
|
209
|
-
value:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
value: e.target.value
|
|
214
|
-
});
|
|
215
|
-
onChange?.(e);
|
|
216
|
-
},
|
|
535
|
+
value: shown,
|
|
536
|
+
onFocus: t5,
|
|
537
|
+
onBlur: t6,
|
|
538
|
+
onChange: t7,
|
|
217
539
|
placeholder,
|
|
218
|
-
className:
|
|
540
|
+
className: t8,
|
|
219
541
|
...props
|
|
220
|
-
})
|
|
221
|
-
|
|
542
|
+
});
|
|
543
|
+
$[29] = placeholder;
|
|
544
|
+
$[30] = props;
|
|
545
|
+
$[31] = ref;
|
|
546
|
+
$[32] = shown;
|
|
547
|
+
$[33] = t5;
|
|
548
|
+
$[34] = t6;
|
|
549
|
+
$[35] = t7;
|
|
550
|
+
$[36] = t8;
|
|
551
|
+
$[37] = t9;
|
|
552
|
+
} else t9 = $[37];
|
|
553
|
+
let t10;
|
|
554
|
+
if ($[38] !== t4 || $[39] !== t9) {
|
|
555
|
+
t10 = /* @__PURE__ */ jsx("form", {
|
|
556
|
+
className: "web-preview__url-form",
|
|
557
|
+
onSubmit: t4,
|
|
558
|
+
children: t9
|
|
559
|
+
});
|
|
560
|
+
$[38] = t4;
|
|
561
|
+
$[39] = t9;
|
|
562
|
+
$[40] = t10;
|
|
563
|
+
} else t10 = $[40];
|
|
564
|
+
return t10;
|
|
222
565
|
}
|
|
223
566
|
/** Media surface shared by iframe previews and host-provided live views.
|
|
224
567
|
* Compose a behavior part such as Tabs.Panel through render to keep one element. */
|
|
225
|
-
function WebPreviewViewport(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
568
|
+
function WebPreviewViewport(t0) {
|
|
569
|
+
const $ = c(11);
|
|
570
|
+
let t1;
|
|
571
|
+
let t2;
|
|
572
|
+
let t3;
|
|
573
|
+
let t4;
|
|
574
|
+
let t5;
|
|
575
|
+
if ($[0] !== t0) {
|
|
576
|
+
const { render, ref, ...props } = t0;
|
|
577
|
+
t5 = useRender;
|
|
578
|
+
t1 = "div";
|
|
579
|
+
t2 = render;
|
|
580
|
+
t3 = ref;
|
|
581
|
+
t4 = mergeProps({ className: "web-preview__body" }, props);
|
|
582
|
+
$[0] = t0;
|
|
583
|
+
$[1] = t1;
|
|
584
|
+
$[2] = t2;
|
|
585
|
+
$[3] = t3;
|
|
586
|
+
$[4] = t4;
|
|
587
|
+
$[5] = t5;
|
|
588
|
+
} else {
|
|
589
|
+
t1 = $[1];
|
|
590
|
+
t2 = $[2];
|
|
591
|
+
t3 = $[3];
|
|
592
|
+
t4 = $[4];
|
|
593
|
+
t5 = $[5];
|
|
594
|
+
}
|
|
595
|
+
let t6;
|
|
596
|
+
if ($[6] !== t1 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
|
|
597
|
+
t6 = {
|
|
598
|
+
defaultTagName: t1,
|
|
599
|
+
render: t2,
|
|
600
|
+
ref: t3,
|
|
601
|
+
props: t4
|
|
602
|
+
};
|
|
603
|
+
$[6] = t1;
|
|
604
|
+
$[7] = t2;
|
|
605
|
+
$[8] = t3;
|
|
606
|
+
$[9] = t4;
|
|
607
|
+
$[10] = t6;
|
|
608
|
+
} else t6 = $[10];
|
|
609
|
+
return t5(t6);
|
|
232
610
|
}
|
|
233
611
|
/** Centered placeholder or session state inside a preview surface. */
|
|
234
|
-
function WebPreviewEmpty(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
612
|
+
function WebPreviewEmpty(t0) {
|
|
613
|
+
const $ = c(10);
|
|
614
|
+
let className;
|
|
615
|
+
let props;
|
|
616
|
+
let ref;
|
|
617
|
+
if ($[0] !== t0) {
|
|
618
|
+
({className, ref, ...props} = t0);
|
|
619
|
+
$[0] = t0;
|
|
620
|
+
$[1] = className;
|
|
621
|
+
$[2] = props;
|
|
622
|
+
$[3] = ref;
|
|
623
|
+
} else {
|
|
624
|
+
className = $[1];
|
|
625
|
+
props = $[2];
|
|
626
|
+
ref = $[3];
|
|
627
|
+
}
|
|
628
|
+
let t1;
|
|
629
|
+
if ($[4] !== className) {
|
|
630
|
+
t1 = cx("web-preview__empty", className);
|
|
631
|
+
$[4] = className;
|
|
632
|
+
$[5] = t1;
|
|
633
|
+
} else t1 = $[5];
|
|
634
|
+
let t2;
|
|
635
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
636
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
637
|
+
ref,
|
|
638
|
+
className: t1,
|
|
639
|
+
...props
|
|
640
|
+
});
|
|
641
|
+
$[6] = props;
|
|
642
|
+
$[7] = ref;
|
|
643
|
+
$[8] = t1;
|
|
644
|
+
$[9] = t2;
|
|
645
|
+
} else t2 = $[9];
|
|
646
|
+
return t2;
|
|
240
647
|
}
|
|
241
|
-
function WebPreviewBody(
|
|
648
|
+
function WebPreviewBody(t0) {
|
|
649
|
+
const $ = c(25);
|
|
650
|
+
let className;
|
|
651
|
+
let loading;
|
|
652
|
+
let props;
|
|
653
|
+
let ref;
|
|
654
|
+
let src;
|
|
655
|
+
let t1;
|
|
656
|
+
if ($[0] !== t0) {
|
|
657
|
+
({className, loading, src, ref, interactive: t1, ...props} = t0);
|
|
658
|
+
$[0] = t0;
|
|
659
|
+
$[1] = className;
|
|
660
|
+
$[2] = loading;
|
|
661
|
+
$[3] = props;
|
|
662
|
+
$[4] = ref;
|
|
663
|
+
$[5] = src;
|
|
664
|
+
$[6] = t1;
|
|
665
|
+
} else {
|
|
666
|
+
className = $[1];
|
|
667
|
+
loading = $[2];
|
|
668
|
+
props = $[3];
|
|
669
|
+
ref = $[4];
|
|
670
|
+
src = $[5];
|
|
671
|
+
t1 = $[6];
|
|
672
|
+
}
|
|
673
|
+
const interactive = t1 === void 0 ? true : t1;
|
|
242
674
|
const { url, reloadToken } = useWebPreviewContext();
|
|
243
675
|
const effectiveSrc = src ?? url;
|
|
244
676
|
const iframeSrc = effectiveSrc ? `${effectiveSrc}${reloadToken ? `#reload-${reloadToken}` : ""}` : void 0;
|
|
245
|
-
if (!iframeSrc)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
677
|
+
if (!iframeSrc) {
|
|
678
|
+
let t2;
|
|
679
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
680
|
+
t2 = /* @__PURE__ */ jsx(WebPreviewEmpty, {});
|
|
681
|
+
$[7] = t2;
|
|
682
|
+
} else t2 = $[7];
|
|
683
|
+
const t3 = loading ?? "Enter a URL above to preview a site.";
|
|
684
|
+
let t4;
|
|
685
|
+
if ($[8] !== className || $[9] !== t3) {
|
|
686
|
+
t4 = /* @__PURE__ */ jsx(WebPreviewViewport, {
|
|
687
|
+
className,
|
|
688
|
+
render: t2,
|
|
689
|
+
children: t3
|
|
690
|
+
});
|
|
691
|
+
$[8] = className;
|
|
692
|
+
$[9] = t3;
|
|
693
|
+
$[10] = t4;
|
|
694
|
+
} else t4 = $[10];
|
|
695
|
+
return t4;
|
|
696
|
+
}
|
|
697
|
+
const t2 = !interactive && "web-preview__body--readonly";
|
|
698
|
+
let t3;
|
|
699
|
+
if ($[11] !== className || $[12] !== t2) {
|
|
700
|
+
t3 = cx(t2, className);
|
|
701
|
+
$[11] = className;
|
|
702
|
+
$[12] = t2;
|
|
703
|
+
$[13] = t3;
|
|
704
|
+
} else t3 = $[13];
|
|
705
|
+
let t4;
|
|
706
|
+
if ($[14] !== iframeSrc || $[15] !== props || $[16] !== ref) {
|
|
707
|
+
t4 = /* @__PURE__ */ jsx("iframe", {
|
|
253
708
|
ref,
|
|
254
709
|
src: iframeSrc,
|
|
255
710
|
sandbox: "allow-scripts allow-forms allow-popups allow-presentation",
|
|
256
711
|
title: "Web preview",
|
|
257
712
|
...props
|
|
258
|
-
})
|
|
259
|
-
|
|
713
|
+
});
|
|
714
|
+
$[14] = iframeSrc;
|
|
715
|
+
$[15] = props;
|
|
716
|
+
$[16] = ref;
|
|
717
|
+
$[17] = t4;
|
|
718
|
+
} else t4 = $[17];
|
|
719
|
+
let t5;
|
|
720
|
+
if ($[18] !== iframeSrc || $[19] !== t3 || $[20] !== t4) {
|
|
721
|
+
t5 = /* @__PURE__ */ jsx(WebPreviewViewport, {
|
|
722
|
+
className: t3,
|
|
723
|
+
render: t4
|
|
724
|
+
}, iframeSrc);
|
|
725
|
+
$[18] = iframeSrc;
|
|
726
|
+
$[19] = t3;
|
|
727
|
+
$[20] = t4;
|
|
728
|
+
$[21] = t5;
|
|
729
|
+
} else t5 = $[21];
|
|
730
|
+
let t6;
|
|
731
|
+
if ($[22] !== loading || $[23] !== t5) {
|
|
732
|
+
t6 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, loading] });
|
|
733
|
+
$[22] = loading;
|
|
734
|
+
$[23] = t5;
|
|
735
|
+
$[24] = t6;
|
|
736
|
+
} else t6 = $[24];
|
|
737
|
+
return t6;
|
|
260
738
|
}
|
|
261
|
-
function WebPreviewConsole(
|
|
739
|
+
function WebPreviewConsole(t0) {
|
|
740
|
+
const $ = c(30);
|
|
741
|
+
let children;
|
|
742
|
+
let className;
|
|
743
|
+
let props;
|
|
744
|
+
let ref;
|
|
745
|
+
let t1;
|
|
746
|
+
if ($[0] !== t0) {
|
|
747
|
+
({className, logs: t1, children, ref, ...props} = t0);
|
|
748
|
+
$[0] = t0;
|
|
749
|
+
$[1] = children;
|
|
750
|
+
$[2] = className;
|
|
751
|
+
$[3] = props;
|
|
752
|
+
$[4] = ref;
|
|
753
|
+
$[5] = t1;
|
|
754
|
+
} else {
|
|
755
|
+
children = $[1];
|
|
756
|
+
className = $[2];
|
|
757
|
+
props = $[3];
|
|
758
|
+
ref = $[4];
|
|
759
|
+
t1 = $[5];
|
|
760
|
+
}
|
|
761
|
+
let t2;
|
|
762
|
+
if ($[6] !== t1) {
|
|
763
|
+
t2 = t1 === void 0 ? [] : t1;
|
|
764
|
+
$[6] = t1;
|
|
765
|
+
$[7] = t2;
|
|
766
|
+
} else t2 = $[7];
|
|
767
|
+
const logs = t2;
|
|
262
768
|
const { consoleOpen, setConsoleOpen } = useWebPreviewContext();
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
769
|
+
let t3;
|
|
770
|
+
if ($[8] !== className) {
|
|
771
|
+
t3 = cx("web-preview__console", className);
|
|
772
|
+
$[8] = className;
|
|
773
|
+
$[9] = t3;
|
|
774
|
+
} else t3 = $[9];
|
|
775
|
+
let t4;
|
|
776
|
+
if ($[10] !== setConsoleOpen) {
|
|
777
|
+
t4 = (open) => setConsoleOpen(open);
|
|
778
|
+
$[10] = setConsoleOpen;
|
|
779
|
+
$[11] = t4;
|
|
780
|
+
} else t4 = $[11];
|
|
781
|
+
let t5;
|
|
782
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
783
|
+
t5 = /* @__PURE__ */ jsxs(Collapsible.Trigger, {
|
|
271
784
|
className: "web-preview__console-header",
|
|
272
785
|
unstyled: true,
|
|
273
786
|
children: [/* @__PURE__ */ jsx("span", { children: "Console" }), /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" })]
|
|
274
|
-
})
|
|
787
|
+
});
|
|
788
|
+
$[12] = t5;
|
|
789
|
+
} else t5 = $[12];
|
|
790
|
+
let t6;
|
|
791
|
+
if ($[13] !== logs) {
|
|
792
|
+
t6 = logs.length === 0 ? /* @__PURE__ */ jsx("li", {
|
|
793
|
+
className: "web-preview__console-empty",
|
|
794
|
+
children: "No console output"
|
|
795
|
+
}) : logs.map(_temp2);
|
|
796
|
+
$[13] = logs;
|
|
797
|
+
$[14] = t6;
|
|
798
|
+
} else t6 = $[14];
|
|
799
|
+
let t7;
|
|
800
|
+
if ($[15] !== t6) {
|
|
801
|
+
t7 = /* @__PURE__ */ jsx("ul", {
|
|
802
|
+
className: "web-preview__console-list sigvelo-stack-list",
|
|
803
|
+
children: t6
|
|
804
|
+
});
|
|
805
|
+
$[15] = t6;
|
|
806
|
+
$[16] = t7;
|
|
807
|
+
} else t7 = $[16];
|
|
808
|
+
let t8;
|
|
809
|
+
if ($[17] !== children || $[18] !== t7) {
|
|
810
|
+
t8 = /* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
811
|
+
className: "web-preview__console-viewport",
|
|
812
|
+
children: /* @__PURE__ */ jsxs(ScrollArea.Content, { children: [t7, children] })
|
|
813
|
+
});
|
|
814
|
+
$[17] = children;
|
|
815
|
+
$[18] = t7;
|
|
816
|
+
$[19] = t8;
|
|
817
|
+
} else t8 = $[19];
|
|
818
|
+
let t9;
|
|
819
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
820
|
+
t9 = /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
821
|
+
orientation: "vertical",
|
|
822
|
+
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
823
|
+
});
|
|
824
|
+
$[20] = t9;
|
|
825
|
+
} else t9 = $[20];
|
|
826
|
+
let t10;
|
|
827
|
+
if ($[21] !== t8) {
|
|
828
|
+
t10 = /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
275
829
|
className: "web-preview__console-panel",
|
|
276
830
|
unstyled: true,
|
|
277
831
|
children: /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
278
832
|
className: "web-preview__console-scroll",
|
|
279
|
-
children: [
|
|
280
|
-
className: "web-preview__console-viewport",
|
|
281
|
-
children: /* @__PURE__ */ jsxs(ScrollArea.Content, { children: [/* @__PURE__ */ jsx("ul", {
|
|
282
|
-
className: "web-preview__console-list sigvelo-stack-list",
|
|
283
|
-
children: logs.length === 0 ? /* @__PURE__ */ jsx("li", {
|
|
284
|
-
className: "web-preview__console-empty",
|
|
285
|
-
children: "No console output"
|
|
286
|
-
}) : logs.map((log, index) => /* @__PURE__ */ jsxs("li", {
|
|
287
|
-
className: cx("web-preview__console-item", `web-preview__console-item--${log.level}`),
|
|
288
|
-
children: [
|
|
289
|
-
/* @__PURE__ */ jsx("span", {
|
|
290
|
-
className: "web-preview__console-level",
|
|
291
|
-
children: log.level
|
|
292
|
-
}),
|
|
293
|
-
/* @__PURE__ */ jsx("span", {
|
|
294
|
-
className: "web-preview__console-message",
|
|
295
|
-
children: log.message
|
|
296
|
-
}),
|
|
297
|
-
/* @__PURE__ */ jsx("span", {
|
|
298
|
-
className: "web-preview__console-time",
|
|
299
|
-
children: log.timestamp.toLocaleTimeString()
|
|
300
|
-
})
|
|
301
|
-
]
|
|
302
|
-
}, index))
|
|
303
|
-
}), children] })
|
|
304
|
-
}), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
305
|
-
orientation: "vertical",
|
|
306
|
-
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
307
|
-
})]
|
|
833
|
+
children: [t8, t9]
|
|
308
834
|
})
|
|
309
|
-
})
|
|
310
|
-
|
|
835
|
+
});
|
|
836
|
+
$[21] = t8;
|
|
837
|
+
$[22] = t10;
|
|
838
|
+
} else t10 = $[22];
|
|
839
|
+
let t11;
|
|
840
|
+
if ($[23] !== consoleOpen || $[24] !== props || $[25] !== ref || $[26] !== t10 || $[27] !== t3 || $[28] !== t4) {
|
|
841
|
+
t11 = /* @__PURE__ */ jsxs(Collapsible.Root, {
|
|
842
|
+
ref,
|
|
843
|
+
className: t3,
|
|
844
|
+
open: consoleOpen,
|
|
845
|
+
unstyled: true,
|
|
846
|
+
onOpenChange: t4,
|
|
847
|
+
...props,
|
|
848
|
+
children: [t5, t10]
|
|
849
|
+
});
|
|
850
|
+
$[23] = consoleOpen;
|
|
851
|
+
$[24] = props;
|
|
852
|
+
$[25] = ref;
|
|
853
|
+
$[26] = t10;
|
|
854
|
+
$[27] = t3;
|
|
855
|
+
$[28] = t4;
|
|
856
|
+
$[29] = t11;
|
|
857
|
+
} else t11 = $[29];
|
|
858
|
+
return t11;
|
|
859
|
+
}
|
|
860
|
+
function _temp2(log, index) {
|
|
861
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
862
|
+
className: cx("web-preview__console-item", `web-preview__console-item--${log.level}`),
|
|
863
|
+
children: [
|
|
864
|
+
/* @__PURE__ */ jsx("span", {
|
|
865
|
+
className: "web-preview__console-level",
|
|
866
|
+
children: log.level
|
|
867
|
+
}),
|
|
868
|
+
/* @__PURE__ */ jsx("span", {
|
|
869
|
+
className: "web-preview__console-message",
|
|
870
|
+
children: log.message
|
|
871
|
+
}),
|
|
872
|
+
/* @__PURE__ */ jsx("span", {
|
|
873
|
+
className: "web-preview__console-time",
|
|
874
|
+
children: log.timestamp.toLocaleTimeString()
|
|
875
|
+
})
|
|
876
|
+
]
|
|
877
|
+
}, index);
|
|
311
878
|
}
|
|
312
879
|
//#endregion
|
|
313
880
|
export { WebPreview, WebPreviewBody, WebPreviewConsole, WebPreviewEmpty, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl, WebPreviewViewport };
|