@mcp-b/react-components 0.63.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--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 +61 -35
- package/dist/components/extension/FirstRunSetup.js +3834 -1012
- 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
|
@@ -70,10 +70,29 @@
|
|
|
70
70
|
margin-block-start: var(--sigvelo-spacing-4);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/* A fill preview is the surface: Quick Look puts the file itself against the
|
|
74
|
+
window's own edges, under a bar that names it, with no well around the asset
|
|
75
|
+
and no metadata rail below (measured off references/apple-ui/images/
|
|
76
|
+
mac-quick-look.png, where the image meets the frame's rounded corners and
|
|
77
|
+
the only chrome is the 32pt bar). The rail is not rendered there, so the
|
|
78
|
+
figure's second row collapses on its own. */
|
|
79
|
+
.workspace-explorer__file[data-appearance="fill"] .workspace-explorer__media-stage {
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.workspace-explorer__file[data-appearance="fill"] .workspace-explorer__image-trigger {
|
|
84
|
+
padding: 0;
|
|
85
|
+
border: 0;
|
|
86
|
+
border-radius: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* The bar's hairline edge is AppTopBar's start-aligned panel header; the
|
|
90
|
+
explorer adds the bar step it casts over the scrolling list. */
|
|
73
91
|
.workspace-explorer__header {
|
|
92
|
+
position: relative;
|
|
93
|
+
z-index: 1;
|
|
74
94
|
flex: 0 0 auto;
|
|
75
|
-
|
|
76
|
-
var(--sigvelo-color-neutral-border-subtle);
|
|
95
|
+
box-shadow: var(--sigvelo-elevation-bar);
|
|
77
96
|
}
|
|
78
97
|
|
|
79
98
|
.workspace-explorer__heading {
|
|
@@ -92,7 +111,6 @@
|
|
|
92
111
|
.workspace-explorer__path {
|
|
93
112
|
display: block;
|
|
94
113
|
overflow: hidden;
|
|
95
|
-
font-family: var(--sigvelo-font-mono);
|
|
96
114
|
font-size: var(--sigvelo-density-compact-control-font-size);
|
|
97
115
|
font-weight: var(--sigvelo-font-weight-normal);
|
|
98
116
|
text-overflow: ellipsis;
|
|
@@ -107,9 +125,327 @@
|
|
|
107
125
|
}
|
|
108
126
|
|
|
109
127
|
.workspace-explorer__body {
|
|
128
|
+
position: relative;
|
|
110
129
|
overflow: auto;
|
|
111
130
|
}
|
|
112
131
|
|
|
132
|
+
/* A drag over the folder's own space rings the list, as a Finder window does. */
|
|
133
|
+
.workspace-explorer__body[data-drop-target] {
|
|
134
|
+
outline: calc(var(--sigvelo-border-width) * 2) dashed var(--sigvelo-color-focus);
|
|
135
|
+
outline-offset: calc(var(--sigvelo-spacing-1) * -1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* The listing is windowed: its block size is the whole folder's, and only the
|
|
139
|
+
rows near the viewport are drawn, each placed on its line. A row's column is
|
|
140
|
+
its grid column, so the grid's own tracks still lay out an icon view. */
|
|
141
|
+
.workspace-browser__entries {
|
|
142
|
+
position: relative;
|
|
143
|
+
display: grid;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
flex: none;
|
|
146
|
+
grid-template-columns: minmax(0, 1fr);
|
|
147
|
+
margin: 0;
|
|
148
|
+
padding: var(--sigvelo-spacing-2);
|
|
149
|
+
list-style: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.workspace-browser__columns {
|
|
153
|
+
display: grid;
|
|
154
|
+
grid-template-columns: var(--sigvelo-control-icon-size-md) var(
|
|
155
|
+
--sigvelo-layout-track-fill
|
|
156
|
+
) minmax(0, 8rem) 7rem 5rem;
|
|
157
|
+
flex: none;
|
|
158
|
+
align-items: center;
|
|
159
|
+
gap: var(--sigvelo-spacing-2);
|
|
160
|
+
padding-block: var(--sigvelo-spacing-1);
|
|
161
|
+
padding-inline: var(--sigvelo-spacing-4);
|
|
162
|
+
/* A header row over scrolling entries: the bar step, with its hairline as
|
|
163
|
+
the lit edge. */
|
|
164
|
+
border-block-end: var(--sigvelo-border-width-hairline) var(--sigvelo-border-style)
|
|
165
|
+
var(--sigvelo-color-neutral-border-subtle);
|
|
166
|
+
box-shadow: var(--sigvelo-elevation-bar);
|
|
167
|
+
color: var(--sigvelo-color-text-muted);
|
|
168
|
+
font-size: var(--sigvelo-text-xs);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.workspace-browser__columns > [data-column="size"] {
|
|
172
|
+
text-align: end;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.workspace-browser__entry {
|
|
176
|
+
position: absolute;
|
|
177
|
+
inset-block-start: 0;
|
|
178
|
+
inset-inline: 0;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
min-inline-size: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.workspace-browser__entry[data-alternate] {
|
|
185
|
+
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.workspace-browser__open:is(a, button) {
|
|
189
|
+
position: relative;
|
|
190
|
+
display: grid;
|
|
191
|
+
grid-template-columns: var(--sigvelo-control-icon-size-md) var(
|
|
192
|
+
--sigvelo-layout-track-fill
|
|
193
|
+
) minmax(0, 8rem) 7rem 5rem;
|
|
194
|
+
flex: 1;
|
|
195
|
+
min-inline-size: 0;
|
|
196
|
+
min-block-size: var(--sigvelo-spacing-8);
|
|
197
|
+
align-items: center;
|
|
198
|
+
gap: var(--sigvelo-spacing-2);
|
|
199
|
+
padding: var(--sigvelo-spacing-1) var(--sigvelo-spacing-2);
|
|
200
|
+
border-radius: var(--sigvelo-radius-sm);
|
|
201
|
+
color: var(--sigvelo-color-text);
|
|
202
|
+
font-size: var(--sigvelo-text-compact);
|
|
203
|
+
font-weight: var(--sigvelo-font-weight-normal);
|
|
204
|
+
text-align: start;
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.workspace-browser__open:hover:not([data-disabled]) {
|
|
209
|
+
background: var(--sigvelo-color-neutral-bg-muted);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* A folder under a drag takes the selection's fill, as a Finder row does. */
|
|
213
|
+
.workspace-browser__open:is([aria-selected="true"], [data-drop-target]) {
|
|
214
|
+
--sigvelo-color-text-muted: var(--sigvelo-color-neutral-text-on-subtle);
|
|
215
|
+
background: var(--sigvelo-color-neutral-bg-selected);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.workspace-browser__open:focus-visible {
|
|
219
|
+
outline: var(--sigvelo-focus-ring);
|
|
220
|
+
outline-offset: calc(-1 * var(--sigvelo-focus-offset));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.workspace-browser__name,
|
|
224
|
+
.workspace-browser__kind,
|
|
225
|
+
.workspace-browser__modified,
|
|
226
|
+
.workspace-browser__size {
|
|
227
|
+
min-inline-size: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.workspace-browser__kind,
|
|
231
|
+
.workspace-browser__modified,
|
|
232
|
+
.workspace-browser__size {
|
|
233
|
+
color: var(--sigvelo-color-text-muted);
|
|
234
|
+
font-size: var(--sigvelo-text-xs);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.workspace-browser__size {
|
|
238
|
+
text-align: end;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.workspace-browser__icon {
|
|
242
|
+
--sigvelo-recipe-app-icon-size: var(--sigvelo-control-icon-size-md);
|
|
243
|
+
|
|
244
|
+
display: grid;
|
|
245
|
+
place-items: center;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.workspace-browser__icon > :is(svg, img) {
|
|
249
|
+
inline-size: 100%;
|
|
250
|
+
max-block-size: 100%;
|
|
251
|
+
object-fit: contain;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.workspace-browser__entries[data-layout="grid"] {
|
|
255
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
|
|
256
|
+
gap: var(--sigvelo-spacing-3);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.workspace-browser__entries[data-layout="grid"] .workspace-browser__entry {
|
|
260
|
+
display: block;
|
|
261
|
+
border-radius: var(--sigvelo-radius-sm);
|
|
262
|
+
background: transparent;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.workspace-browser__entries[data-layout="grid"] .workspace-browser__open {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
inline-size: 100%;
|
|
269
|
+
align-items: center;
|
|
270
|
+
padding: var(--sigvelo-spacing-3) var(--sigvelo-spacing-2);
|
|
271
|
+
text-align: center;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.workspace-browser__entries[data-layout="grid"] .workspace-browser__icon {
|
|
275
|
+
--sigvelo-recipe-app-icon-size: var(--sigvelo-spacing-16);
|
|
276
|
+
|
|
277
|
+
inline-size: var(--sigvelo-spacing-16);
|
|
278
|
+
block-size: var(--sigvelo-spacing-16);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* A host's picture is matted as on the desktop: the surface it sits on shows
|
|
282
|
+
through the padding. */
|
|
283
|
+
.workspace-browser__entries[data-layout="grid"] .workspace-browser__icon > img {
|
|
284
|
+
padding: var(--sigvelo-spacing-0-5);
|
|
285
|
+
background: var(--sigvelo-color-surface-raised);
|
|
286
|
+
box-shadow: var(--sigvelo-elevation-raised);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.workspace-browser__entries[data-layout="grid"] .workspace-browser__name {
|
|
290
|
+
max-inline-size: 100%;
|
|
291
|
+
padding: var(--sigvelo-spacing-0-5) var(--sigvelo-spacing-1);
|
|
292
|
+
border-radius: var(--sigvelo-radius-sm);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* An icon view selects as the Finder's does, in the desktop's two parts: a
|
|
296
|
+
neutral scrim behind the picture and the accent behind the name. The cell
|
|
297
|
+
itself takes no fill, and the focus ring sits on the name the selection
|
|
298
|
+
paints. */
|
|
299
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
300
|
+
.workspace-browser__open:is(:hover, [aria-selected="true"], [data-drop-target], :focus-visible) {
|
|
301
|
+
outline: none;
|
|
302
|
+
background: transparent;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
306
|
+
.workspace-browser__open:is([aria-selected="true"], [data-drop-target])
|
|
307
|
+
.workspace-browser__icon {
|
|
308
|
+
border-radius: var(--sigvelo-radius-md);
|
|
309
|
+
background: color-mix(in oklab, var(--sigvelo-color-text), transparent 82%);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
313
|
+
.workspace-browser__open:is([aria-selected="true"], [data-drop-target])
|
|
314
|
+
.workspace-browser__name {
|
|
315
|
+
background: var(--sigvelo-color-primary-bg);
|
|
316
|
+
color: var(--sigvelo-color-primary-text-on-bg);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
320
|
+
.workspace-browser__open:focus-visible
|
|
321
|
+
.workspace-browser__name {
|
|
322
|
+
outline: var(--sigvelo-focus-ring);
|
|
323
|
+
outline-offset: var(--sigvelo-border-width);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@media (forced-colors: active) {
|
|
327
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
328
|
+
.workspace-browser__open:is([aria-selected="true"], [data-drop-target])
|
|
329
|
+
.workspace-browser__name {
|
|
330
|
+
outline: var(--sigvelo-focus-ring);
|
|
331
|
+
background: Highlight;
|
|
332
|
+
color: HighlightText;
|
|
333
|
+
forced-color-adjust: none;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.workspace-browser__entries[data-layout="grid"]
|
|
338
|
+
:is(.workspace-browser__kind, .workspace-browser__modified),
|
|
339
|
+
.workspace-browser__entries[data-layout="grid"] [data-kind="directory"] .workspace-browser__size {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.workspace-browser__footer {
|
|
344
|
+
flex: none;
|
|
345
|
+
min-block-size: var(--sigvelo-spacing-7);
|
|
346
|
+
align-content: center;
|
|
347
|
+
padding-inline: var(--sigvelo-spacing-3);
|
|
348
|
+
/* Finder's status bar is a step down in plane, not a rule. */
|
|
349
|
+
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
350
|
+
color: var(--sigvelo-color-text-muted);
|
|
351
|
+
font-size: var(--sigvelo-text-xs);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.workspace-file-details .description-list__details {
|
|
355
|
+
overflow-wrap: anywhere;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.workspace-file-details__status {
|
|
359
|
+
margin-block: var(--sigvelo-spacing-3);
|
|
360
|
+
color: var(--sigvelo-color-text-muted);
|
|
361
|
+
font-size: var(--sigvelo-text-sm);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@media (any-pointer: coarse) {
|
|
365
|
+
.workspace-browser__open:is(a, button) {
|
|
366
|
+
min-block-size: var(--sigvelo-touch-target);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Preserve the date in ordinary window panes; Kind can move to Details first. */
|
|
371
|
+
@container (inline-size < 42rem) {
|
|
372
|
+
.workspace-browser__columns {
|
|
373
|
+
grid-template-columns: var(--sigvelo-control-icon-size-md) var(
|
|
374
|
+
--sigvelo-layout-track-fill
|
|
375
|
+
) 7rem 5rem;
|
|
376
|
+
}
|
|
377
|
+
.workspace-browser__columns > [data-column="kind"] {
|
|
378
|
+
display: none;
|
|
379
|
+
}
|
|
380
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__open {
|
|
381
|
+
grid-template-columns: var(--sigvelo-control-icon-size-md) var(
|
|
382
|
+
--sigvelo-layout-track-fill
|
|
383
|
+
) 7rem 5rem;
|
|
384
|
+
}
|
|
385
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__kind {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* A phone-sized pane lists as iOS Files does: two-line rows, the name over
|
|
391
|
+
its date and size, on hairline separators that start at the name. The Sort
|
|
392
|
+
menu replaces the column header, and the separators replace the zebra fill. */
|
|
393
|
+
@container (inline-size < 28rem) {
|
|
394
|
+
.workspace-browser__columns {
|
|
395
|
+
display: none;
|
|
396
|
+
}
|
|
397
|
+
.workspace-browser__entries[data-layout="list"] {
|
|
398
|
+
--workspace-browser-row-icon: var(--sigvelo-spacing-8);
|
|
399
|
+
}
|
|
400
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__entry {
|
|
401
|
+
background: none;
|
|
402
|
+
}
|
|
403
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__entry:not([data-index="0"]) {
|
|
404
|
+
background: linear-gradient(
|
|
405
|
+
var(--sigvelo-color-neutral-border-subtle),
|
|
406
|
+
var(--sigvelo-color-neutral-border-subtle)
|
|
407
|
+
)
|
|
408
|
+
right top /
|
|
409
|
+
calc(
|
|
410
|
+
100% - var(--sigvelo-spacing-2) - var(--workspace-browser-row-icon) -
|
|
411
|
+
var(--sigvelo-spacing-3)
|
|
412
|
+
)
|
|
413
|
+
var(--sigvelo-border-width-hairline) no-repeat;
|
|
414
|
+
}
|
|
415
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__open {
|
|
416
|
+
grid-template-columns: var(--workspace-browser-row-icon) auto var(--sigvelo-layout-track-fill);
|
|
417
|
+
grid-template-areas:
|
|
418
|
+
"icon name name"
|
|
419
|
+
"icon modified size";
|
|
420
|
+
column-gap: var(--sigvelo-spacing-3);
|
|
421
|
+
row-gap: 0;
|
|
422
|
+
padding-block: var(--sigvelo-spacing-2);
|
|
423
|
+
}
|
|
424
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__icon {
|
|
425
|
+
--sigvelo-recipe-app-icon-size: var(--workspace-browser-row-icon);
|
|
426
|
+
|
|
427
|
+
grid-area: icon;
|
|
428
|
+
inline-size: var(--workspace-browser-row-icon);
|
|
429
|
+
}
|
|
430
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__name {
|
|
431
|
+
grid-area: name;
|
|
432
|
+
}
|
|
433
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__modified {
|
|
434
|
+
grid-area: modified;
|
|
435
|
+
}
|
|
436
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__size {
|
|
437
|
+
grid-area: size;
|
|
438
|
+
text-align: start;
|
|
439
|
+
}
|
|
440
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__size::before {
|
|
441
|
+
content: " · ";
|
|
442
|
+
white-space: pre;
|
|
443
|
+
}
|
|
444
|
+
.workspace-browser__entries[data-layout="list"] .workspace-browser__size[data-empty] {
|
|
445
|
+
display: none;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
113
449
|
.workspace-explorer__file {
|
|
114
450
|
position: relative;
|
|
115
451
|
overflow: hidden;
|
|
@@ -125,7 +461,14 @@
|
|
|
125
461
|
margin-inline: var(--sigvelo-spacing-2);
|
|
126
462
|
}
|
|
127
463
|
|
|
464
|
+
/* macOS's sidebar list: 28pt rows, 16pt symbols, 13pt labels at full strength.
|
|
465
|
+
The row's band, radius, selection and focus belong to the tree itself. */
|
|
128
466
|
.workspace-explorer__tree {
|
|
467
|
+
--sigvelo-recipe-file-tree-row-size: var(--sigvelo-spacing-7);
|
|
468
|
+
--sigvelo-recipe-file-tree-row-font-size: var(--sigvelo-density-compact-control-font-size);
|
|
469
|
+
--sigvelo-recipe-control-icon-size: var(--sigvelo-control-icon-size-md);
|
|
470
|
+
--sigvelo-recipe-file-tree-node-gap: var(--sigvelo-spacing-2);
|
|
471
|
+
|
|
129
472
|
flex: 1;
|
|
130
473
|
}
|
|
131
474
|
|
|
@@ -309,6 +652,60 @@
|
|
|
309
652
|
margin: 0;
|
|
310
653
|
}
|
|
311
654
|
|
|
655
|
+
.workspace-explorer__media-figure--image {
|
|
656
|
+
grid-template-rows: auto var(--sigvelo-layout-track-fill) auto;
|
|
657
|
+
block-size: 100%;
|
|
658
|
+
min-block-size: 0;
|
|
659
|
+
max-block-size: min(28rem, 60dvb);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/* The stage keeps its track when a frame (Quick Look) draws no sizing controls. */
|
|
663
|
+
.workspace-explorer__media-figure--image > .workspace-explorer__media-stage {
|
|
664
|
+
grid-row: 2;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.workspace-explorer__image-controls {
|
|
668
|
+
display: flex;
|
|
669
|
+
flex-wrap: wrap;
|
|
670
|
+
align-items: center;
|
|
671
|
+
gap: var(--sigvelo-spacing-1);
|
|
672
|
+
padding: var(--sigvelo-spacing-1) var(--sigvelo-spacing-2);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.workspace-explorer__image-scale {
|
|
676
|
+
margin-inline-start: auto;
|
|
677
|
+
color: var(--sigvelo-color-text-muted);
|
|
678
|
+
font-size: var(--sigvelo-text-xs);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* One native image viewport: fit constrains the image, zoom exposes native panning. */
|
|
682
|
+
.workspace-explorer__media-stage[data-image-sizing] {
|
|
683
|
+
block-size: auto;
|
|
684
|
+
min-block-size: 0;
|
|
685
|
+
overflow: auto;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.workspace-explorer__media-stage[data-image-sizing] .workspace-explorer__image-trigger {
|
|
689
|
+
min-block-size: 0;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.workspace-explorer__media-stage[data-image-sizing="zoom"] {
|
|
693
|
+
display: block;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.workspace-explorer__media-stage[data-image-sizing="zoom"] .workspace-explorer__image-trigger {
|
|
697
|
+
inline-size: max-content;
|
|
698
|
+
min-inline-size: 100%;
|
|
699
|
+
block-size: max-content;
|
|
700
|
+
min-block-size: 100%;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.workspace-explorer__media-stage[data-image-sizing="zoom"] .workspace-explorer__image {
|
|
704
|
+
flex: none;
|
|
705
|
+
max-inline-size: none;
|
|
706
|
+
max-block-size: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
312
709
|
.workspace-explorer__media-stage {
|
|
313
710
|
display: flex;
|
|
314
711
|
min-inline-size: 0;
|
|
@@ -463,8 +860,8 @@
|
|
|
463
860
|
|
|
464
861
|
@media (any-pointer: coarse) {
|
|
465
862
|
.workspace-media-lightbox .yarl__button {
|
|
466
|
-
min-inline-size: var(--sigvelo-
|
|
467
|
-
min-block-size: var(--sigvelo-
|
|
863
|
+
min-inline-size: var(--sigvelo-touch-target);
|
|
864
|
+
min-block-size: var(--sigvelo-touch-target);
|
|
468
865
|
}
|
|
469
866
|
}
|
|
470
867
|
|
|
@@ -523,3 +920,100 @@
|
|
|
523
920
|
overflow: auto;
|
|
524
921
|
padding: var(--sigvelo-spacing-4);
|
|
525
922
|
}
|
|
923
|
+
|
|
924
|
+
/* The Finder's selection rectangle: a translucent wash with its edge one step
|
|
925
|
+
stronger, drawn in the view it selects in. */
|
|
926
|
+
.workspace-file-marquee {
|
|
927
|
+
position: absolute;
|
|
928
|
+
z-index: 1;
|
|
929
|
+
border: var(--sigvelo-border-width-hairline) solid
|
|
930
|
+
color-mix(in oklab, var(--sigvelo-color-text), transparent 55%);
|
|
931
|
+
background: color-mix(in oklab, var(--sigvelo-color-text), transparent 88%);
|
|
932
|
+
pointer-events: none;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/* The rename field sits over the name it edits: a raised field, the name's
|
|
936
|
+
own type, its text selected up to the extension. */
|
|
937
|
+
.workspace-file-rename {
|
|
938
|
+
position: absolute;
|
|
939
|
+
z-index: 1;
|
|
940
|
+
box-sizing: border-box;
|
|
941
|
+
min-inline-size: 0;
|
|
942
|
+
padding: var(--sigvelo-spacing-0-5) var(--sigvelo-spacing-1);
|
|
943
|
+
border: 0;
|
|
944
|
+
border-radius: var(--sigvelo-radius-sm);
|
|
945
|
+
outline: var(--sigvelo-focus-ring);
|
|
946
|
+
background: var(--sigvelo-color-surface-raised);
|
|
947
|
+
box-shadow: var(--sigvelo-elevation-raised);
|
|
948
|
+
color: var(--sigvelo-color-text);
|
|
949
|
+
font: inherit;
|
|
950
|
+
font-size: var(--sigvelo-text-compact);
|
|
951
|
+
text-align: inherit;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
[data-file-name][data-renaming] {
|
|
955
|
+
visibility: hidden;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/* Quick Look floats over the view without dimming it. */
|
|
959
|
+
.workspace-quick-look__scrim {
|
|
960
|
+
--sigvelo-recipe-dialog-backdrop: transparent;
|
|
961
|
+
--sigvelo-recipe-dialog-backdrop-filter: none;
|
|
962
|
+
}
|
|
963
|
+
/*
|
|
964
|
+
* Quick Look is a window, so it takes a window's 20pt continuous corners and
|
|
965
|
+
* shadow, and it is sized by what it is previewing: an image or a short folder
|
|
966
|
+
* listing gets a small window, a document grows to the view's bounds and
|
|
967
|
+
* scrolls there. Apple never stretches it to a fixed sheet.
|
|
968
|
+
*
|
|
969
|
+
* Two rows, both sized by their content: the bar, then the preview. `auto` for
|
|
970
|
+
* the second row rather than a fill track, so a short preview ends where it
|
|
971
|
+
* ends instead of leaving the window padded out beneath it.
|
|
972
|
+
*/
|
|
973
|
+
.workspace-quick-look {
|
|
974
|
+
--sigvelo-recipe-surface-padding: 0px;
|
|
975
|
+
--sigvelo-recipe-surface-shadow: var(--sigvelo-elevation-window);
|
|
976
|
+
--sigvelo-recipe-app-top-bar-block-size: var(--sigvelo-spacing-8);
|
|
977
|
+
display: grid;
|
|
978
|
+
grid-template-rows: auto auto;
|
|
979
|
+
inline-size: fit-content;
|
|
980
|
+
min-inline-size: min(90cqi, 34rem);
|
|
981
|
+
max-inline-size: min(90cqi, 56rem);
|
|
982
|
+
block-size: fit-content;
|
|
983
|
+
max-block-size: min(90cqb, 40rem);
|
|
984
|
+
border-radius: var(--sigvelo-radius-lg);
|
|
985
|
+
overflow: hidden;
|
|
986
|
+
}
|
|
987
|
+
/*
|
|
988
|
+
* The Quick Look bar, measured on mac-quick-look.png: the file's name in bold
|
|
989
|
+
* on the leading edge after a filled round close, the app route as a capsule
|
|
990
|
+
* inset 8pt from the trailing edge, and the whole bar a plane of its own that
|
|
991
|
+
* the preview meets edge to edge. The window frame is the separation, and the
|
|
992
|
+
* name is free to take the width it needs.
|
|
993
|
+
*/
|
|
994
|
+
.workspace-quick-look__bar {
|
|
995
|
+
--sigvelo-recipe-app-top-bar-padding-block: 0px;
|
|
996
|
+
--sigvelo-recipe-app-top-bar-title-font-weight: var(--sigvelo-font-weight-bold);
|
|
997
|
+
--sigvelo-recipe-app-top-bar-title-max-inline-size: none;
|
|
998
|
+
|
|
999
|
+
padding-inline-end: var(--sigvelo-spacing-2);
|
|
1000
|
+
/* The bar steps off the preview's own plane the way every window bar does,
|
|
1001
|
+
and which way it steps is the appearance's: a window host publishes that
|
|
1002
|
+
plane, and a desktop rendered outside one falls back to it. */
|
|
1003
|
+
background: var(--sigvelo-recipe-window-bar-plane, var(--sigvelo-color-neutral-bg-subtle));
|
|
1004
|
+
}
|
|
1005
|
+
/* The one filled control in this bar: a modal's dismiss reads as a button at
|
|
1006
|
+
rest, as Apple's Quick Look close does. Its ground and ink are the house's
|
|
1007
|
+
strong neutral pair; its size, radius and glyph are the recipes' own — the
|
|
1008
|
+
20pt capsule and the 20pt knocked-out circle this used to draw were the
|
|
1009
|
+
only controls in the library under the `xs` step. */
|
|
1010
|
+
.workspace-quick-look__close {
|
|
1011
|
+
/* Quick Look's close is a circle, as Apple draws it; the house gives it the size. */
|
|
1012
|
+
border-radius: var(--sigvelo-radius-circle);
|
|
1013
|
+
background: var(--sigvelo-color-neutral-bg-strong);
|
|
1014
|
+
color: var(--sigvelo-color-neutral-text-on-strong);
|
|
1015
|
+
}
|
|
1016
|
+
.workspace-quick-look__content {
|
|
1017
|
+
min-block-size: 0;
|
|
1018
|
+
overflow: auto;
|
|
1019
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/utils/brand-marks.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Bundled brand marks: Sigvelo's logo and the third-party marks setup shows.
|
|
4
|
+
* `vp pack` leaves `new URL(..., import.meta.url)` as written, and a module two
|
|
5
|
+
* entries share is hoisted into a dist-root chunk. Utility entries and root
|
|
6
|
+
* chunks both sit one level under dist/, so every packed asset URL lives here
|
|
7
|
+
* (or in another utils module) and resolves from that depth; components import
|
|
8
|
+
* the URL instead of computing their own. `verify:packages` resolves each one.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SIGVELO_LOGO: string;
|
|
11
|
+
export declare const CHROME_MARK: string;
|
|
12
|
+
export declare const GMAIL_MARK: string;
|
|
13
|
+
//#endregion
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/brand-marks.ts
|
|
2
|
+
/**
|
|
3
|
+
* Bundled brand marks: Sigvelo's logo and the third-party marks setup shows.
|
|
4
|
+
* `vp pack` leaves `new URL(..., import.meta.url)` as written, and a module two
|
|
5
|
+
* entries share is hoisted into a dist-root chunk. Utility entries and root
|
|
6
|
+
* chunks both sit one level under dist/, so every packed asset URL lives here
|
|
7
|
+
* (or in another utils module) and resolves from that depth; components import
|
|
8
|
+
* the URL instead of computing their own. `verify:packages` resolves each one.
|
|
9
|
+
*/
|
|
10
|
+
const SIGVELO_LOGO = new URL("../assets/sigvelo-logo.svg", import.meta.url).href;
|
|
11
|
+
const CHROME_MARK = new URL("../assets/chrome.svg", import.meta.url).href;
|
|
12
|
+
const GMAIL_MARK = new URL("../assets/plugins/plugin-gmail.svg", import.meta.url).href;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { CHROME_MARK, GMAIL_MARK, SIGVELO_LOGO };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/desktop-artwork.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Bundled full-color artwork for desktop content and application identities.
|
|
4
|
+
* Render with AppIcon.Image inside AppIcon.Root, preserving each source's
|
|
5
|
+
* silhouette. Small navigation and action controls use the shared glyphs.
|
|
6
|
+
* Sources and MIT notices ship beside the assets in assets/desktop/.
|
|
7
|
+
*/
|
|
8
|
+
export declare const desktopArtwork: {
|
|
9
|
+
readonly folder: string;
|
|
10
|
+
readonly document: string;
|
|
11
|
+
readonly mail: string;
|
|
12
|
+
readonly settings: string;
|
|
13
|
+
readonly automations: string;
|
|
14
|
+
readonly trash: string;
|
|
15
|
+
readonly trashFull: string;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/utils/desktop-artwork.ts
|
|
2
|
+
/**
|
|
3
|
+
* Bundled full-color artwork for desktop content and application identities.
|
|
4
|
+
* Render with AppIcon.Image inside AppIcon.Root, preserving each source's
|
|
5
|
+
* silhouette. Small navigation and action controls use the shared glyphs.
|
|
6
|
+
* Sources and MIT notices ship beside the assets in assets/desktop/.
|
|
7
|
+
*/
|
|
8
|
+
const desktopArtwork = {
|
|
9
|
+
folder: new URL("../assets/desktop/folder.png", import.meta.url).href,
|
|
10
|
+
document: new URL("../assets/desktop/document.svg", import.meta.url).href,
|
|
11
|
+
mail: new URL("../assets/desktop/mail.svg", import.meta.url).href,
|
|
12
|
+
settings: new URL("../assets/desktop/settings.svg", import.meta.url).href,
|
|
13
|
+
automations: new URL("../assets/desktop/automations.svg", import.meta.url).href,
|
|
14
|
+
trash: new URL("../assets/desktop/trash.svg", import.meta.url).href,
|
|
15
|
+
trashFull: new URL("../assets/desktop/trash-full.svg", import.meta.url).href
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { desktopArtwork };
|
package/dist/utils/favicon.d.ts
CHANGED
|
@@ -7,8 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function inferFaviconUrl(url: string): string | undefined;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Whether a favicon URL is worth requesting from this document. Browsers block
|
|
11
|
+
* public pages from fetching loopback URLs (private network access), so those
|
|
12
|
+
* are skipped unless the document is itself on loopback. A reserved name never
|
|
13
|
+
* resolves on the public DNS: `.example` and `.invalid` hosts are skipped
|
|
14
|
+
* outright, and a `.test` host only answers on a machine that serves `.test`
|
|
15
|
+
* itself, so it is requested only from a `.test` document.
|
|
12
16
|
*/
|
|
13
17
|
export declare function canRequestFavicon(src: string, documentOrigin?: string): boolean;
|
|
14
18
|
//#endregion
|
package/dist/utils/favicon.js
CHANGED
|
@@ -14,18 +14,30 @@ function inferFaviconUrl(url) {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
/** The reserved top-level name a host ends in (RFC 2606 / RFC 6761), if any. */
|
|
18
|
+
function reservedTld(hostname) {
|
|
19
|
+
const tld = hostname.split(".").at(-1);
|
|
20
|
+
return tld === "example" || tld === "test" || tld === "invalid" || tld === "localhost" ? tld : void 0;
|
|
21
|
+
}
|
|
17
22
|
function isLoopbackHost(hostname) {
|
|
18
|
-
return hostname === "localhost" || hostname === "127.0.0.1" || hostname === "[::1]";
|
|
23
|
+
return reservedTld(hostname) === "localhost" || hostname === "127.0.0.1" || hostname === "[::1]";
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
26
|
+
* Whether a favicon URL is worth requesting from this document. Browsers block
|
|
27
|
+
* public pages from fetching loopback URLs (private network access), so those
|
|
28
|
+
* are skipped unless the document is itself on loopback. A reserved name never
|
|
29
|
+
* resolves on the public DNS: `.example` and `.invalid` hosts are skipped
|
|
30
|
+
* outright, and a `.test` host only answers on a machine that serves `.test`
|
|
31
|
+
* itself, so it is requested only from a `.test` document.
|
|
23
32
|
*/
|
|
24
33
|
function canRequestFavicon(src, documentOrigin = globalThis.location?.origin) {
|
|
25
34
|
try {
|
|
26
35
|
const favicon = new URL(src);
|
|
27
|
-
|
|
36
|
+
const tld = reservedTld(favicon.hostname);
|
|
37
|
+
if (tld === "example" || tld === "invalid") return false;
|
|
38
|
+
if (!documentOrigin) return tld !== "test";
|
|
28
39
|
const page = new URL(documentOrigin);
|
|
40
|
+
if (tld === "test") return reservedTld(page.hostname) === "test";
|
|
29
41
|
return !(isLoopbackHost(favicon.hostname) && !isLoopbackHost(page.hostname));
|
|
30
42
|
} catch {
|
|
31
43
|
return false;
|