@mcp-use/inspector 12.0.4-canary.0 → 20.0.0-beta.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/README.md +39 -6
- package/dist/cdn/AnimatePresence-B4HhIdgq.js +393 -0
- package/dist/cdn/ChatTab-5ya_YTFV.js +13218 -0
- package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
- package/dist/cdn/ConnectionSettingsForm-iwNW86ZU.js +873 -0
- package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +145 -0
- package/dist/cdn/ElicitationTab-upPXq2q7.js +654 -0
- package/dist/cdn/FormContext-Cl51-7O7.js +135 -0
- package/dist/cdn/InspectorContext-DzXtgyTx.js +143 -0
- package/dist/cdn/JSONDisplay-D3RcyO9z.js +324 -0
- package/dist/cdn/ListTabHeader-8lULn-90.js +88 -0
- package/dist/cdn/ManufactOAuthCallback-DEM8mhWD.js +31 -0
- package/dist/cdn/NotificationsTab-CWopTIzT.js +290 -0
- package/dist/cdn/OAuthCallback-BxuOVgdb.js +58 -0
- package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
- package/dist/cdn/ResourcesTab-BczUMFil.js +584 -0
- package/dist/cdn/SamplingTab-6u5s845G.js +658 -0
- package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
- package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
- package/dist/cdn/ToolsTab-CUhwP4rZ.js +2067 -0
- package/dist/cdn/ViewPreview-CxJc1Kht.js +237 -0
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
- package/dist/cdn/WidgetWrapper-BJJtLqMb.js +2211 -0
- package/dist/cdn/apple-touch-icon.png +0 -0
- package/dist/cdn/basePath-B8HuhIMu.js +25 -0
- package/dist/cdn/bell-CGjAO_0s.js +10 -0
- package/dist/cdn/browser-CbQIH4w2.js +42 -0
- package/dist/cdn/brush-B_mKhyxG.js +17 -0
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +1953 -0
- package/dist/cdn/card-DqjqAq0o.js +41 -0
- package/dist/cdn/cfWorker-Bxcs9rNe.js +10799 -0
- package/dist/cdn/checkbox-B4oUG6Rr.js +20 -0
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +17500 -0
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +1508 -0
- package/dist/cdn/clock-CmUbSx_B.js +12 -0
- package/dist/cdn/code-V_0nf5rg.js +10 -0
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +38 -0
- package/dist/cdn/dialog-Dnl-pZsY.js +1028 -0
- package/dist/cdn/dist-DjXr_YO3.js +616 -0
- package/dist/cdn/dist-mRDqCgKU.js +2305 -0
- package/dist/cdn/external-link-CjmfT6rW.js +17 -0
- package/dist/cdn/eye-B7H96av8.js +29 -0
- package/dist/cdn/favicon-96x96.png +0 -0
- package/dist/cdn/favicon-black.svg +5 -8
- package/dist/cdn/favicon-white.svg +4 -7
- package/dist/cdn/favicon.ico +0 -0
- package/dist/cdn/favicon.svg +5 -0
- package/dist/cdn/folder-open-B3lu2rG_.js +7 -0
- package/dist/cdn/hash-BVQnWi7q.js +33 -0
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +36 -0
- package/dist/cdn/history-Csw4rb44.js +17 -0
- package/dist/cdn/index-browser-CVUwR-Bu.js +1934 -0
- package/dist/cdn/info-CNiOwqkf.js +19 -0
- package/dist/cdn/input-BLxOA7V-.js +10215 -0
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +4 -0
- package/dist/cdn/inspector.css +1 -2
- package/dist/cdn/inspector.js +10854 -133726
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +180 -0
- package/dist/cdn/label-CBvG613A.js +60 -0
- package/dist/cdn/loader-circle-BLy9A_pp.js +7 -0
- package/dist/cdn/manufact-auth-0TVxpeTA.js +387 -0
- package/dist/cdn/maximize-2-CH5Lq90B.js +21 -0
- package/dist/cdn/maximize-BALCV_ep.js +21 -0
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +2 -0
- package/dist/cdn/message-square-BnxdpJxZ.js +7 -0
- package/dist/cdn/not-found-BcNNsTjS.js +34 -0
- package/dist/cdn/pdf-CxFT9FER.js +16291 -0
- package/dist/cdn/play-vuZ5PLnI.js +7 -0
- package/dist/cdn/popover-C_SSrXT0.js +2005 -0
- package/dist/cdn/react-BIs9pQ3H.js +926 -0
- package/dist/cdn/react-yUi9mVK4.js +5411 -0
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +21 -0
- package/dist/cdn/save-Tgil_AJZ.js +34 -0
- package/dist/cdn/schemaHelpers-DTV38jGq.js +16 -0
- package/dist/cdn/select-BZ_IoKxg.js +2594 -0
- package/dist/cdn/servers-Dm72iTpY.js +26 -0
- package/dist/cdn/shared-uMiV6Fx1.js +1700 -0
- package/dist/cdn/sheet-CerCdhxz.js +78 -0
- package/dist/cdn/site.webmanifest +21 -0
- package/dist/cdn/sparkles-BntO2rDR.js +23 -0
- package/dist/cdn/spinner-CWcJhIY_.js +15 -0
- package/dist/cdn/square-check-big-BvwQ17Bl.js +10 -0
- package/dist/cdn/switch-DtQOLb9R.js +664 -0
- package/dist/cdn/tabs-subtle-C5cy35sY.js +787 -0
- package/dist/cdn/telemetry-Ct6pVkM1.js +240 -0
- package/dist/cdn/textarea-Bj-CT7hC.js +14 -0
- package/dist/cdn/trash-2-RwpJY5SL.js +25 -0
- package/dist/cdn/useAriaLabelledBy-Bm9qHGK6.js +29 -0
- package/dist/cdn/useCompositeItem-CNJ6MXdi.js +26 -0
- package/dist/cdn/useConfig-CwxZ6Quj.js +208 -0
- package/dist/cdn/useHostedSession-BA39Aegc.js +153 -0
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +104 -0
- package/dist/cdn/useSavedRequests-Ci2I919u.js +51 -0
- package/dist/cdn/useViewHostProps-C7vjco2m.js +348 -0
- package/dist/cdn/web-app-manifest-192x192.png +0 -0
- package/dist/cdn/web-app-manifest-512x512.png +0 -0
- package/dist/cdn/wrench-DzGmCfnb.js +7 -0
- package/dist/cdn/x-C3vRQIYu.js +10 -0
- package/dist/cdn/zap-Mb-pbw2X.js +10 -0
- package/dist/cli.js +1060 -3601
- package/dist/client/auth/manufact-auth.d.ts +30 -0
- package/dist/client/auth/manufact-auth.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +4 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +28 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts +5 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +1 -0
- package/dist/client/chat-history/ChatList.d.ts +18 -0
- package/dist/client/chat-history/ChatList.d.ts.map +1 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts +10 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +1 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +13 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +1 -0
- package/dist/client/chat-history/chat-title.d.ts +10 -0
- package/dist/client/chat-history/chat-title.d.ts.map +1 -0
- package/dist/client/chat-history/providers/local-storage.d.ts +21 -0
- package/dist/client/chat-history/providers/local-storage.d.ts.map +1 -0
- package/dist/client/chat-history/types.d.ts +39 -0
- package/dist/client/chat-history/types.d.ts.map +1 -0
- package/dist/client/chat-history/useChatHistory.d.ts +20 -0
- package/dist/client/chat-history/useChatHistory.d.ts.map +1 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +17 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +1 -0
- package/dist/client/components/AddToClientDropdown.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +28 -3
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/IframeConsole.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +2 -18
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/PromptsTab.d.ts +1 -1
- package/dist/client/components/PromptsTab.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts +3 -3
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +2 -1
- package/dist/client/components/chat/AssistantMessage.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +20 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInput.d.ts +6 -2
- package/dist/client/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +31 -3
- package/dist/client/components/chat/ChatInputArea.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +5 -42
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +1 -0
- package/dist/client/components/chat/ChatTraceView.d.ts +7 -0
- package/dist/client/components/chat/ChatTraceView.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +12 -2
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +2 -5
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/CopyButton.d.ts.map +1 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +10 -0
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +1 -0
- package/dist/client/components/chat/MessageList.d.ts +6 -11
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +7 -0
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +1 -0
- package/dist/client/components/chat/PromptsDropdown.d.ts +1 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +7 -0
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts +11 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +1 -0
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +2 -9
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/ToolSelector.d.ts.map +1 -1
- package/dist/client/components/chat/UserMessage.d.ts +2 -1
- package/dist/client/components/chat/UserMessage.d.ts.map +1 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +6 -0
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +1 -0
- package/dist/client/components/chat/conversion.d.ts +1 -1
- package/dist/client/components/chat/conversion.d.ts.map +1 -1
- package/dist/client/components/chat/freeTier.d.ts +11 -0
- package/dist/client/components/chat/freeTier.d.ts.map +1 -1
- package/dist/client/components/chat/providerMeta.d.ts +10 -1
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/streamdown-code-slim.d.ts +4 -0
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +5 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/types.d.ts +8 -0
- package/dist/client/components/chat/system-prompt/types.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +3 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt-default.d.ts +2 -0
- package/dist/client/components/chat/system-prompt-default.d.ts.map +1 -0
- package/dist/client/components/chat/trace.d.ts +84 -0
- package/dist/client/components/chat/trace.d.ts.map +1 -0
- package/dist/client/components/chat/types.d.ts +2 -1
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +4 -0
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +14 -2
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +13 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -0
- package/dist/client/components/chat/useConfig.d.ts +2 -2
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +14 -0
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts +14 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +1 -0
- package/dist/client/components/chat/utils.d.ts +0 -4
- package/dist/client/components/chat/utils.d.ts.map +1 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +12 -0
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +1 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +9 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +1 -0
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +1 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts.map +1 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts.map +1 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +6 -0
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +1 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts +9 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +1 -0
- package/dist/client/components/shared/JSONDisplay.d.ts +5 -1
- package/dist/client/components/shared/JSONDisplay.d.ts.map +1 -1
- package/dist/client/components/shared/ListItem.d.ts +1 -3
- package/dist/client/components/shared/ListItem.d.ts.map +1 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +4 -1
- package/dist/client/components/shared/ListTabHeader.d.ts.map +1 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +28 -0
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +1 -0
- package/dist/client/components/shared/StatusIcon.d.ts +12 -0
- package/dist/client/components/shared/StatusIcon.d.ts.map +1 -0
- package/dist/client/components/shared/index.d.ts +4 -1
- package/dist/client/components/shared/index.d.ts.map +1 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -6
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/ToolsList.d.ts +1 -1
- package/dist/client/components/tools/ToolsList.d.ts.map +1 -1
- package/dist/client/components/tools/useToolExecution.d.ts +26 -0
- package/dist/client/components/tools/useToolExecution.d.ts.map +1 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +35 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -0
- package/dist/client/components/ui/WidgetWrapper.d.ts +2 -2
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +1 -1
- package/dist/client/components/ui/alert-dialog.d.ts +8 -5
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +80 -0
- package/dist/client/components/ui/ask-user-questions.d.ts.map +1 -0
- package/dist/client/components/ui/badge.d.ts +32 -7
- package/dist/client/components/ui/badge.d.ts.map +1 -1
- package/dist/client/components/ui/button.d.ts +31 -11
- package/dist/client/components/ui/button.d.ts.map +1 -1
- package/dist/client/components/ui/chat-message.d.ts +23 -0
- package/dist/client/components/ui/chat-message.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +2 -3
- package/dist/client/components/ui/checkbox.d.ts.map +1 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -4
- package/dist/client/components/ui/client-icons.d.ts.map +1 -1
- package/dist/client/components/ui/command.d.ts +13 -64
- package/dist/client/components/ui/command.d.ts.map +1 -1
- package/dist/client/components/ui/dialog.d.ts +36 -12
- package/dist/client/components/ui/dialog.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +17 -48
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown.d.ts +30 -0
- package/dist/client/components/ui/dropdown.d.ts.map +1 -0
- package/dist/client/components/ui/file-thumbnail.d.ts +9 -0
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -0
- package/dist/client/components/ui/label.d.ts +1 -2
- package/dist/client/components/ui/label.d.ts.map +1 -1
- package/dist/client/components/ui/menu-item.d.ts +52 -0
- package/dist/client/components/ui/menu-item.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +10 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -0
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/components/ui/popover.d.ts +4 -5
- package/dist/client/components/ui/popover.d.ts.map +1 -1
- package/dist/client/components/ui/scroll-area.d.ts +4 -0
- package/dist/client/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/client/components/ui/select.d.ts +50 -9
- package/dist/client/components/ui/select.d.ts.map +1 -1
- package/dist/client/components/ui/sheet.d.ts +9 -7
- package/dist/client/components/ui/sheet.d.ts.map +1 -1
- package/dist/client/components/ui/skeleton.d.ts +4 -0
- package/dist/client/components/ui/skeleton.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +1 -1
- package/dist/client/components/ui/spinner.d.ts.map +1 -1
- package/dist/client/components/ui/switch.d.ts +19 -7
- package/dist/client/components/ui/switch.d.ts.map +1 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +25 -0
- package/dist/client/components/ui/tabs-subtle.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +41 -6
- package/dist/client/components/ui/tooltip.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts +6 -10
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +2 -3
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/use-merge-split.d.ts +36 -0
- package/dist/client/hooks/use-merge-split.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts +27 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover.d.ts +26 -0
- package/dist/client/hooks/use-proximity-hover.d.ts.map +1 -0
- package/dist/client/hooks/use-touch-primary.d.ts +2 -0
- package/dist/client/hooks/use-touch-primary.d.ts.map +1 -0
- package/dist/client/hooks/useHostedSession.d.ts +4 -14
- package/dist/client/hooks/useHostedSession.d.ts.map +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts.map +1 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +2 -2
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts.map +1 -1
- package/dist/client/hooks/useSavedRequests.d.ts +6 -0
- package/dist/client/hooks/useSavedRequests.d.ts.map +1 -0
- package/dist/client/hooks/useViewHostProps.d.ts +19 -0
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -0
- package/dist/client/index.d.ts +19 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +19306 -16141
- package/dist/client/lib/elevated.d.ts +28 -0
- package/dist/client/lib/elevated.d.ts.map +1 -0
- package/dist/client/lib/font-weight.d.ts +10 -0
- package/dist/client/lib/font-weight.d.ts.map +1 -0
- package/dist/client/lib/icon-context.d.ts +15 -0
- package/dist/client/lib/icon-context.d.ts.map +1 -0
- package/dist/client/lib/shape-context.d.ts +21 -0
- package/dist/client/lib/shape-context.d.ts.map +1 -0
- package/dist/client/lib/springs.d.ts +32 -0
- package/dist/client/lib/springs.d.ts.map +1 -0
- package/dist/client/lib/surface-classes.d.ts +2 -0
- package/dist/client/lib/surface-classes.d.ts.map +1 -0
- package/dist/client/lib/surface-context.d.ts +7 -0
- package/dist/client/lib/surface-context.d.ts.map +1 -0
- package/dist/client/lib/utils.d.ts +1 -1
- package/dist/client/lib/utils.d.ts.map +1 -1
- package/dist/client/mcp-apps/csp.d.ts +26 -0
- package/dist/client/mcp-apps/csp.d.ts.map +1 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +17 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +1 -0
- package/dist/client/mcp-apps/logging-transport.d.ts +13 -0
- package/dist/client/mcp-apps/logging-transport.d.ts.map +1 -0
- package/dist/client/rpc-traffic-coalesce.d.ts +7 -0
- package/dist/client/rpc-traffic-coalesce.d.ts.map +1 -0
- package/dist/client/rpc-traffic-store.d.ts +37 -0
- package/dist/client/rpc-traffic-store.d.ts.map +1 -0
- package/dist/client/telemetry/capture.d.ts +7 -0
- package/dist/client/telemetry/capture.d.ts.map +1 -0
- package/dist/client/telemetry/events.d.ts +1 -1
- package/dist/client/telemetry/events.d.ts.map +1 -1
- package/dist/client/telemetry/index.d.ts +2 -1
- package/dist/client/telemetry/index.d.ts.map +1 -1
- package/dist/client/telemetry/init.d.ts +2 -0
- package/dist/client/telemetry/init.d.ts.map +1 -0
- package/dist/client/telemetry/utils.d.ts +5 -0
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/types/message-content-block.d.ts +19 -0
- package/dist/client/types/message-content-block.d.ts.map +1 -0
- package/dist/client/types/pending-requests.d.ts +17 -0
- package/dist/client/types/pending-requests.d.ts.map +1 -0
- package/dist/client/utils/basePath.d.ts +34 -0
- package/dist/client/utils/basePath.d.ts.map +1 -0
- package/dist/client/utils/browser.d.ts +5 -0
- package/dist/client/utils/browser.d.ts.map +1 -0
- package/dist/client/utils/format.d.ts +4 -0
- package/dist/client/utils/format.d.ts.map +1 -0
- package/dist/client/utils/highlightJson.d.ts +11 -0
- package/dist/client/utils/highlightJson.d.ts.map +1 -0
- package/dist/client/utils/jsonUtils.d.ts +4 -0
- package/dist/client/utils/jsonUtils.d.ts.map +1 -1
- package/dist/client/utils/mcpClientUtils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +14 -0
- package/dist/client/utils/servers.d.ts.map +1 -0
- package/dist/server/cdn-shell.d.ts +18 -0
- package/dist/server/cdn-shell.d.ts.map +1 -0
- package/dist/server/cdn-shell.js +10 -0
- package/dist/server/chunk-5B3SXGZP.js +43 -0
- package/dist/server/chunk-6XWDZEFF.js +194 -0
- package/dist/server/chunk-ESODOPDD.js +50 -0
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/{chunk-57KIBVKX.js → chunk-J67FVPHF.js} +27 -26
- package/dist/server/chunk-K2F2AJOI.js +619 -0
- package/dist/server/chunk-K2V2SDQD.js +40 -0
- package/dist/server/{chunk-ZPHNDECP.js → chunk-THQ67TSE.js} +31 -32
- package/dist/server/chunk-TPHRVELX.js +130 -0
- package/dist/server/chunk-WFT4JHYI.js +24 -0
- package/dist/server/cli.js +23 -25
- package/dist/server/create-dev-api-app.d.ts +4 -0
- package/dist/server/create-dev-api-app.d.ts.map +1 -0
- package/dist/server/create-dev-api-app.js +11 -0
- package/dist/server/favicon-links.d.ts +12 -0
- package/dist/server/favicon-links.d.ts.map +1 -0
- package/dist/server/favicon-links.js +11 -0
- package/dist/server/favicon-static.d.ts +4 -0
- package/dist/server/favicon-static.d.ts.map +1 -0
- package/dist/server/favicon-static.js +8 -0
- package/dist/server/index.d.ts +3 -4
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +13 -17
- package/dist/server/middleware.d.ts +14 -3
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +9 -9
- package/dist/server/proxy/index.d.ts +3 -0
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/server/proxy/index.js +12 -0
- package/dist/server/proxy/mcp-proxy.d.ts +99 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -0
- package/dist/server/proxy/mcp-proxy.js +8 -0
- package/dist/server/proxy/oauth-proxy.d.ts +26 -0
- package/dist/server/proxy/oauth-proxy.d.ts.map +1 -0
- package/dist/server/proxy/oauth-proxy.js +9 -0
- package/dist/server/proxy-routes.d.ts +16 -0
- package/dist/server/proxy-routes.d.ts.map +1 -0
- package/dist/server/proxy-routes.js +10 -0
- package/dist/server/rpc-log-bus.js +73 -3
- package/dist/server/server.d.ts +3 -8
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +15 -92
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.d.ts +4 -0
- package/dist/server/vite-dev-api-plugin.d.ts.map +1 -0
- package/dist/server/vite-dev-api-plugin.js +30 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-CthXziG2.js +9 -0
- package/dist/web/assets/ChatTab-CiAqtqhj.js +460 -0
- package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +1 -0
- package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +1 -0
- package/dist/web/assets/FormContext-Cqc_A12u.js +1 -0
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +1 -0
- package/dist/web/assets/ManufactOAuthCallback-B-tdkUA2.js +1 -0
- package/dist/web/assets/NotificationsTab-BgLjxuos.js +1 -0
- package/dist/web/assets/OAuthCallback-Bp-jLoQs.js +1 -0
- package/dist/web/assets/PromptsTab-CA-SZs43.js +61 -0
- package/dist/web/assets/ResourcesTab-DdMIW_af.js +2 -0
- package/dist/web/assets/SamplingTab-DjyDG01W.js +1 -0
- package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +1 -0
- package/dist/web/assets/ToolsTab-BHk8GCmd.js +8 -0
- package/dist/web/assets/ViewPreview-DWtmwzCb.js +1 -0
- package/dist/web/assets/WidgetWrapper-B43lqbld.js +34 -0
- package/dist/web/assets/brush--0LobUi4.js +1 -0
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +1 -0
- package/dist/web/assets/checkbox-_GzEPQic.js +1 -0
- package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +131 -0
- package/dist/web/assets/code-tME-5H6D.js +1 -0
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +1 -0
- package/dist/web/assets/dist-DQjEDTKs.js +21 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +1 -0
- package/dist/web/assets/index-Bbn-6QR2.js +475 -0
- package/dist/web/assets/index-BjH-Qp85.css +1 -0
- package/dist/web/assets/input-CjmxOFr6.js +1 -0
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +1 -0
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +1 -0
- package/dist/web/assets/label-B5Q_Zr8M.js +1 -0
- package/dist/web/assets/maximize-2-BTT9QQU9.js +1 -0
- package/dist/web/assets/maximize-_O55kFcr.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +1 -0
- package/dist/web/assets/pdf-C3cfS_Ha.js +54 -0
- package/dist/web/assets/react-CU_d2d5K.js +1 -0
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +1 -0
- package/dist/web/assets/save-B-MsgxX9.js +1 -0
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +1 -0
- package/dist/web/assets/select-C0xlfLAa.js +1 -0
- package/dist/web/assets/shared-Dfwy7nyg.js +1 -0
- package/dist/web/assets/sheet-CRPrEqAa.js +1 -0
- package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
- package/dist/web/assets/tabs-subtle-Dxgism9f.js +1 -0
- package/dist/web/assets/textarea-Ci09-en6.js +1 -0
- package/dist/web/assets/useConfig-b1f_iVFH.js +1 -0
- package/dist/web/assets/useMCPPrompts-CPskz9af.js +1 -0
- package/dist/web/assets/useViewHostProps-BgsQ2yYl.js +1 -0
- package/dist/web/assets/zap-Du2Uc5pa.js +1 -0
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +5 -8
- package/dist/web/favicon-white.svg +4 -7
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +13 -20
- package/dist/web/site.webmanifest +21 -0
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- package/package.json +29 -30
- package/dist/client/components/FullscreenNavbar.d.ts +0 -9
- package/dist/client/components/FullscreenNavbar.d.ts.map +0 -1
- package/dist/client/components/LoginModal.d.ts +0 -11
- package/dist/client/components/LoginModal.d.ts.map +0 -1
- package/dist/client/components/MCPAppsRenderer.d.ts +0 -53
- package/dist/client/components/MCPAppsRenderer.d.ts.map +0 -1
- package/dist/client/components/McpUIRenderer.d.ts +0 -19
- package/dist/client/components/McpUIRenderer.d.ts.map +0 -1
- package/dist/client/components/OpenAIComponentRenderer.d.ts +0 -51
- package/dist/client/components/OpenAIComponentRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/InlineElicitationCard.d.ts +0 -10
- package/dist/client/components/chat/InlineElicitationCard.d.ts.map +0 -1
- package/dist/client/components/chat/MCPUIResource.d.ts +0 -11
- package/dist/client/components/chat/MCPUIResource.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts +0 -21
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/index.d.ts +0 -3
- package/dist/client/components/elicitation/shared/index.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts +0 -23
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts.map +0 -1
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts +0 -20
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsTabHeader.d.ts +0 -17
- package/dist/client/components/prompts/PromptsTabHeader.d.ts.map +0 -1
- package/dist/client/components/prompts/index.d.ts +0 -6
- package/dist/client/components/prompts/index.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesTabHeader.d.ts +0 -16
- package/dist/client/components/resources/ResourcesTabHeader.d.ts.map +0 -1
- package/dist/client/components/resources/index.d.ts +0 -4
- package/dist/client/components/resources/index.d.ts.map +0 -1
- package/dist/client/components/shared/RpcPanel.d.ts +0 -21
- package/dist/client/components/shared/RpcPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsTabHeader.d.ts +0 -17
- package/dist/client/components/tools/ToolsTabHeader.d.ts.map +0 -1
- package/dist/client/components/tools/index.d.ts +0 -7
- package/dist/client/components/tools/index.d.ts.map +0 -1
- package/dist/client/components/ui/SandboxedIframe.d.ts +0 -64
- package/dist/client/components/ui/SandboxedIframe.d.ts.map +0 -1
- package/dist/client/components/ui/aurora-background.d.ts +0 -9
- package/dist/client/components/ui/aurora-background.d.ts.map +0 -1
- package/dist/client/constants/iframe.d.ts +0 -9
- package/dist/client/constants/iframe.d.ts.map +0 -1
- package/dist/client/constants/index.d.ts +0 -7
- package/dist/client/constants/index.d.ts.map +0 -1
- package/dist/client/constants/mcp-apps.d.ts +0 -39
- package/dist/client/constants/mcp-apps.d.ts.map +0 -1
- package/dist/client/hooks/usePrismTheme.d.ts +0 -5
- package/dist/client/hooks/usePrismTheme.d.ts.map +0 -1
- package/dist/client/lib/use-sandbox-remount-generation.d.ts +0 -9
- package/dist/client/lib/use-sandbox-remount-generation.d.ts.map +0 -1
- package/dist/client/lib/widget-fullscreen.d.ts +0 -17
- package/dist/client/lib/widget-fullscreen.d.ts.map +0 -1
- package/dist/client/telemetry/telemetry.d.ts +0 -42
- package/dist/client/telemetry/telemetry.d.ts.map +0 -1
- package/dist/client/types/elicitation.d.ts +0 -9
- package/dist/client/types/elicitation.d.ts.map +0 -1
- package/dist/client/utils/clipboard.d.ts +0 -6
- package/dist/client/utils/clipboard.d.ts.map +0 -1
- package/dist/client/utils/iframeConsoleInterceptor.d.ts +0 -6
- package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +0 -1
- package/dist/client/utils/widget-detection.d.ts +0 -31
- package/dist/client/utils/widget-detection.d.ts.map +0 -1
- package/dist/llm/__tests__/messageFormat.test.d.ts +0 -2
- package/dist/llm/__tests__/messageFormat.test.d.ts.map +0 -1
- package/dist/llm/__tests__/providerToolResults.test.d.ts +0 -2
- package/dist/llm/__tests__/providerToolResults.test.d.ts.map +0 -1
- package/dist/llm/__tests__/toolResultParts.test.d.ts +0 -2
- package/dist/llm/__tests__/toolResultParts.test.d.ts.map +0 -1
- package/dist/llm/messageFormat.d.ts +0 -48
- package/dist/llm/messageFormat.d.ts.map +0 -1
- package/dist/llm/ndjson.d.ts +0 -5
- package/dist/llm/ndjson.d.ts.map +0 -1
- package/dist/llm/providers/anthropic.d.ts +0 -19
- package/dist/llm/providers/anthropic.d.ts.map +0 -1
- package/dist/llm/providers/google.d.ts +0 -19
- package/dist/llm/providers/google.d.ts.map +0 -1
- package/dist/llm/providers/index.d.ts +0 -19
- package/dist/llm/providers/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/index.d.ts +0 -18
- package/dist/llm/providers/ollama/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/utils.d.ts +0 -7
- package/dist/llm/providers/ollama/utils.d.ts.map +0 -1
- package/dist/llm/providers/openai.d.ts +0 -19
- package/dist/llm/providers/openai.d.ts.map +0 -1
- package/dist/llm/schemaUtils.d.ts +0 -2
- package/dist/llm/schemaUtils.d.ts.map +0 -1
- package/dist/llm/sse.d.ts +0 -15
- package/dist/llm/sse.d.ts.map +0 -1
- package/dist/llm/toolLoop.d.ts +0 -40
- package/dist/llm/toolLoop.d.ts.map +0 -1
- package/dist/llm/toolResultParts.d.ts +0 -28
- package/dist/llm/toolResultParts.d.ts.map +0 -1
- package/dist/llm/types.d.ts +0 -102
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/server/chunk-63EJEHRP.js +0 -71
- package/dist/server/chunk-A4VH7AIP.js +0 -738
- package/dist/server/chunk-CVECQ7BJ.js +0 -78
- package/dist/server/chunk-IDMHJUEM.js +0 -42
- package/dist/server/chunk-KIJYOTYZ.js +0 -322
- package/dist/server/chunk-PJNKFX2R.js +0 -2351
- package/dist/server/chunk-QQ37LGLJ.js +0 -127
- package/dist/server/chunk-R4ISUE7T.js +0 -164
- package/dist/server/chunk-UTW44YSH.js +0 -322
- package/dist/server/file-utils.d.ts +0 -11
- package/dist/server/file-utils.d.ts.map +0 -1
- package/dist/server/file-utils.js +0 -11
- package/dist/server/routes/mcp-apps.d.ts +0 -12
- package/dist/server/routes/mcp-apps.d.ts.map +0 -1
- package/dist/server/shared-routes.d.ts +0 -11
- package/dist/server/shared-routes.d.ts.map +0 -1
- package/dist/server/shared-routes.js +0 -11
- package/dist/server/shared-static.d.ts +0 -57
- package/dist/server/shared-static.d.ts.map +0 -1
- package/dist/server/shared-static.js +0 -11
- package/dist/server/shared-utils.d.ts +0 -175
- package/dist/server/shared-utils.d.ts.map +0 -1
- package/dist/server/shared-utils.js +0 -21
- package/dist/server/transport-wrapper.d.ts +0 -6
- package/dist/server/transport-wrapper.d.ts.map +0 -1
- package/dist/server/transport-wrapper.js +0 -68
- package/dist/server/tunnel.d.ts +0 -11
- package/dist/server/tunnel.d.ts.map +0 -1
- package/dist/server/tunnel.js +0 -13
- package/dist/web/assets/1c-D19GPo3L.js +0 -1
- package/dist/web/assets/abnf-BR1TaWs-.js +0 -1
- package/dist/web/assets/accesslog-CZxiyYuK.js +0 -1
- package/dist/web/assets/actionscript-BS1fMZ9M.js +0 -1
- package/dist/web/assets/ada-Dhy1EabM.js +0 -1
- package/dist/web/assets/angelscript-Gjldi7xi.js +0 -1
- package/dist/web/assets/apache-Cx8TUABI.js +0 -1
- package/dist/web/assets/applescript-JfBNOabq.js +0 -1
- package/dist/web/assets/arcade-E6zGzFSx.js +0 -1
- package/dist/web/assets/arduino-D7Y37T_-.js +0 -1
- package/dist/web/assets/armasm-vpTNgAzt.js +0 -1
- package/dist/web/assets/asciidoc-DaVECsQY.js +0 -1
- package/dist/web/assets/aspectj-CdRAuqVM.js +0 -1
- package/dist/web/assets/autohotkey-DvZQekH9.js +0 -1
- package/dist/web/assets/autoit-oLytjhLA.js +0 -1
- package/dist/web/assets/avrasm-5Cf9yIw9.js +0 -1
- package/dist/web/assets/awk-Bf_S2P0n.js +0 -1
- package/dist/web/assets/axapta-DrOS6bUw.js +0 -1
- package/dist/web/assets/bash-DCVWALRV.js +0 -1
- package/dist/web/assets/basic-D0GZ3REU.js +0 -1
- package/dist/web/assets/bnf-D74FvP-b.js +0 -1
- package/dist/web/assets/brainfuck-DwUXsIlY.js +0 -3
- package/dist/web/assets/c-CPGbDsng.js +0 -1
- package/dist/web/assets/c-like-DLj4FsHF.js +0 -1
- package/dist/web/assets/cal-Czm5e2Qe.js +0 -1
- package/dist/web/assets/capnproto-CVJ2fID7.js +0 -1
- package/dist/web/assets/ceylon-DR5D2yFU.js +0 -1
- package/dist/web/assets/clean-CkIuagdM.js +0 -1
- package/dist/web/assets/clojure-VwyIEQaz.js +0 -1
- package/dist/web/assets/clojure-repl-jCSr2ntH.js +0 -1
- package/dist/web/assets/cmake-D2Zl_q65.js +0 -1
- package/dist/web/assets/coffeescript-C7Hfrw9O.js +0 -1
- package/dist/web/assets/coq-DAxtVI93.js +0 -1
- package/dist/web/assets/core-ICctFm9I.js +0 -4
- package/dist/web/assets/cos-0GHB8yn1.js +0 -1
- package/dist/web/assets/cpp-DdlDGc99.js +0 -1
- package/dist/web/assets/crmsh-C0vbH3xd.js +0 -1
- package/dist/web/assets/crystal-BloCCkus.js +0 -1
- package/dist/web/assets/csharp-YhN72Cls.js +0 -1
- package/dist/web/assets/csp-OAeIWScz.js +0 -1
- package/dist/web/assets/css-D1ih01yA.js +0 -1
- package/dist/web/assets/d-yGrz2xEC.js +0 -1
- package/dist/web/assets/dart-C3qG0xpq.js +0 -1
- package/dist/web/assets/delphi-CvoiTamH.js +0 -1
- package/dist/web/assets/diff-zDaBDf86.js +0 -1
- package/dist/web/assets/django-DBYOwnaY.js +0 -1
- package/dist/web/assets/dns-BWy_Oa_w.js +0 -1
- package/dist/web/assets/dockerfile-Cj5YqQiP.js +0 -1
- package/dist/web/assets/dos-AaJBzvG4.js +0 -1
- package/dist/web/assets/dsconfig-BgEbyf_A.js +0 -1
- package/dist/web/assets/dts-z64kku76.js +0 -1
- package/dist/web/assets/dust-C-6seNMG.js +0 -1
- package/dist/web/assets/ebnf-DC6yB_8o.js +0 -1
- package/dist/web/assets/elixir-DVZgqY4T.js +0 -1
- package/dist/web/assets/elm-Css3uC5x.js +0 -1
- package/dist/web/assets/erb-C538Iixw.js +0 -1
- package/dist/web/assets/erlang-DyDPiXgX.js +0 -1
- package/dist/web/assets/erlang-repl-CVIWmQKC.js +0 -1
- package/dist/web/assets/excel-BLHu7SPw.js +0 -1
- package/dist/web/assets/fix-JPCm4C-u.js +0 -1
- package/dist/web/assets/flix-DejUTEwL.js +0 -1
- package/dist/web/assets/fortran-CK7Rlzc4.js +0 -1
- package/dist/web/assets/fsharp-ZgHvh-ZT.js +0 -1
- package/dist/web/assets/gams-BIBfDr3x.js +0 -1
- package/dist/web/assets/gauss-DttPF6Qr.js +0 -1
- package/dist/web/assets/gcode-BXL931mb.js +0 -1
- package/dist/web/assets/gherkin-B7qFZ0rb.js +0 -1
- package/dist/web/assets/glsl-BSKhKy8T.js +0 -1
- package/dist/web/assets/gml-BcbsDsfr.js +0 -1
- package/dist/web/assets/go-BksciLaM.js +0 -1
- package/dist/web/assets/golo-D2QFLiUq.js +0 -1
- package/dist/web/assets/gradle-BH3VzvYn.js +0 -1
- package/dist/web/assets/groovy-Bv9ooqes.js +0 -1
- package/dist/web/assets/haml-CacWyVgj.js +0 -1
- package/dist/web/assets/handlebars-Cpp3MUlG.js +0 -1
- package/dist/web/assets/haskell-BQM3-EaA.js +0 -1
- package/dist/web/assets/haxe-Df4nG9sq.js +0 -1
- package/dist/web/assets/hsp-sHEckFHE.js +0 -1
- package/dist/web/assets/htmlbars-shnKLbrr.js +0 -1
- package/dist/web/assets/http-CNJ01fsj.js +0 -1
- package/dist/web/assets/hy-B3oY6sFO.js +0 -1
- package/dist/web/assets/index-C4BqUITd.css +0 -2
- package/dist/web/assets/index-DB2yAAMO.js +0 -848
- package/dist/web/assets/inform7-CNEOVpOE.js +0 -1
- package/dist/web/assets/ini-q6ZmK_Ll.js +0 -1
- package/dist/web/assets/irpf90-CHcNzzFG.js +0 -1
- package/dist/web/assets/isbl-ClZ-43Pe.js +0 -1
- package/dist/web/assets/java-C63Whuw3.js +0 -1
- package/dist/web/assets/javascript-BAgDYvOy.js +0 -1
- package/dist/web/assets/jboss-cli-qjpm-ZOy.js +0 -1
- package/dist/web/assets/json-DT8at3fD.js +0 -1
- package/dist/web/assets/julia-B3hjMqCS.js +0 -1
- package/dist/web/assets/julia-repl-BWC_EUt4.js +0 -1
- package/dist/web/assets/kotlin-DnDhVR1g.js +0 -2
- package/dist/web/assets/lasso-7_9jkuWm.js +0 -1
- package/dist/web/assets/latex-7NcBU-sp.js +0 -1
- package/dist/web/assets/ldif-BKsNETfE.js +0 -1
- package/dist/web/assets/leaf-Dr24XSMP.js +0 -1
- package/dist/web/assets/less-Da52wdLB.js +0 -1
- package/dist/web/assets/lisp-CxEhJv_S.js +0 -1
- package/dist/web/assets/livecodeserver-DyLLEQa3.js +0 -1
- package/dist/web/assets/livescript-DuMxIrKU.js +0 -1
- package/dist/web/assets/llvm-M9yuLNva.js +0 -1
- package/dist/web/assets/lsl-BP2wVZAx.js +0 -1
- package/dist/web/assets/lua-B0U8rByV.js +0 -1
- package/dist/web/assets/makefile-DL3DBvu0.js +0 -1
- package/dist/web/assets/markdown-jLDab-Ns.js +0 -1
- package/dist/web/assets/mathematica-2lChxOtk.js +0 -1
- package/dist/web/assets/matlab-BbPZe1tR.js +0 -1
- package/dist/web/assets/maxima-BdT1lNyu.js +0 -1
- package/dist/web/assets/mel-CxSMh57a.js +0 -1
- package/dist/web/assets/mercury-e3yoICSq.js +0 -1
- package/dist/web/assets/mipsasm--tpOiQ5I.js +0 -1
- package/dist/web/assets/mizar-DN4-ri-A.js +0 -1
- package/dist/web/assets/module-3nkmv-tD.js +0 -4
- package/dist/web/assets/mojolicious-lKYGBrCw.js +0 -1
- package/dist/web/assets/monkey-CvEgDQbs.js +0 -1
- package/dist/web/assets/moonscript-BgjEcnsm.js +0 -1
- package/dist/web/assets/n1ql-CtsXVmUQ.js +0 -1
- package/dist/web/assets/nginx-C6tprI2e.js +0 -1
- package/dist/web/assets/nim-B3y0lYop.js +0 -1
- package/dist/web/assets/nix-BczA7CjW.js +0 -1
- package/dist/web/assets/node-repl-DGgD94SZ.js +0 -1
- package/dist/web/assets/nsis-C_SmguFH.js +0 -1
- package/dist/web/assets/objectivec-2mUTCw1f.js +0 -1
- package/dist/web/assets/ocaml-Cn7F37_9.js +0 -1
- package/dist/web/assets/openscad-CkenTSp3.js +0 -1
- package/dist/web/assets/oxygene-D7pQi21T.js +0 -1
- package/dist/web/assets/parser3--pt_dbbu.js +0 -1
- package/dist/web/assets/perl-C0job7Qz.js +0 -1
- package/dist/web/assets/pf-CfWQAyKz.js +0 -1
- package/dist/web/assets/pgsql-CKshFhGu.js +0 -1
- package/dist/web/assets/php-CNUWaUh2.js +0 -1
- package/dist/web/assets/php-template-BCrABFi4.js +0 -1
- package/dist/web/assets/plaintext-ChYroSk0.js +0 -1
- package/dist/web/assets/pony-Bh4zwDWt.js +0 -1
- package/dist/web/assets/powershell-BuAlXUWx.js +0 -1
- package/dist/web/assets/processing-Bb5btTkH.js +0 -1
- package/dist/web/assets/profile-BOk16iWu.js +0 -1
- package/dist/web/assets/prolog-MHE4b3nq.js +0 -1
- package/dist/web/assets/properties-CZfxER-Q.js +0 -1
- package/dist/web/assets/protobuf-C_54DU4K.js +0 -1
- package/dist/web/assets/puppet-Z-t3L629.js +0 -1
- package/dist/web/assets/purebasic-CZKfEDHv.js +0 -1
- package/dist/web/assets/python-BvGG_JZE.js +0 -1
- package/dist/web/assets/python-repl-DaUVEuDx.js +0 -1
- package/dist/web/assets/q-CvWis_nQ.js +0 -1
- package/dist/web/assets/qml-2XPxalcH.js +0 -1
- package/dist/web/assets/r-DTTPbRAt.js +0 -1
- package/dist/web/assets/reasonml-CyJw_qBZ.js +0 -1
- package/dist/web/assets/rib-GYMKCC1Y.js +0 -1
- package/dist/web/assets/roboconf-CV_6N_o7.js +0 -1
- package/dist/web/assets/routeros-C11OKG9F.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-CvwEntuM.js +0 -1
- package/dist/web/assets/rsl-rez9LEUy.js +0 -1
- package/dist/web/assets/ruby-_B4GQ_7D.js +0 -1
- package/dist/web/assets/ruleslanguage-jRg89I6w.js +0 -1
- package/dist/web/assets/rust-qdkaNniS.js +0 -1
- package/dist/web/assets/sas-BNjYSnSg.js +0 -1
- package/dist/web/assets/scala-CVLdU51z.js +0 -1
- package/dist/web/assets/scheme-Cneig3hI.js +0 -1
- package/dist/web/assets/scilab-DxKCNrof.js +0 -1
- package/dist/web/assets/scss-DQ23aG9u.js +0 -1
- package/dist/web/assets/shell-BgVIEdPP.js +0 -1
- package/dist/web/assets/smali-KZ0XB6tA.js +0 -2
- package/dist/web/assets/smalltalk-CYsrtMqX.js +0 -1
- package/dist/web/assets/sml-CwPjhShZ.js +0 -1
- package/dist/web/assets/sqf-Dyh-UyfR.js +0 -1
- package/dist/web/assets/sql-BqwecpD_.js +0 -1
- package/dist/web/assets/sql_more-CUF5pbmY.js +0 -1
- package/dist/web/assets/stan-Ddf5JFRA.js +0 -1
- package/dist/web/assets/stata-XlPupwqv.js +0 -3
- package/dist/web/assets/step21-CucMyzRd.js +0 -1
- package/dist/web/assets/stylus-nj6mAxkC.js +0 -1
- package/dist/web/assets/subunit-CiXRLQcz.js +0 -3
- package/dist/web/assets/swift-CIdqZMKK.js +0 -1
- package/dist/web/assets/taggerscript-m6_DnfoH.js +0 -1
- package/dist/web/assets/tap-DbEec7Q2.js +0 -1
- package/dist/web/assets/tcl-n8aGQ2H6.js +0 -1
- package/dist/web/assets/thrift-J1PtwUUl.js +0 -1
- package/dist/web/assets/tp-CnbYKLYQ.js +0 -1
- package/dist/web/assets/twig-BEBOjZvM.js +0 -1
- package/dist/web/assets/typescript-BwvhN9Dw.js +0 -1
- package/dist/web/assets/vala-BSRZa9oU.js +0 -1
- package/dist/web/assets/vbnet-BhOhpmOF.js +0 -1
- package/dist/web/assets/vbscript-BpRpQGFw.js +0 -1
- package/dist/web/assets/vbscript-html-z-0GWV6e.js +0 -1
- package/dist/web/assets/verilog-CE-mWkfc.js +0 -1
- package/dist/web/assets/vhdl-hkUj0_K7.js +0 -1
- package/dist/web/assets/vim-XK7W3JN3.js +0 -1
- package/dist/web/assets/x86asm-D0cmZUWd.js +0 -1
- package/dist/web/assets/xl-dRKa8VcI.js +0 -1
- package/dist/web/assets/xml-BGrFHpDb.js +0 -1
- package/dist/web/assets/xquery-B7qeO1Sf.js +0 -1
- package/dist/web/assets/yaml-DErfnXTM.js +0 -1
- package/dist/web/assets/zephir-O2ApOQbM.js +0 -1
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { Gn as r, Jn as i, Lr as a, Mn as o, Nn as s, Qt as c, Rr as l, Sr as u, Vn as d, X as f, Xt as p, Yn as m, Zt as h, _r as g, br as _, c as v, dr as y, en as b, f as x, fr as S, gr as C, hn as w, mn as T, on as E, pn as D, pr as O, s as k, tn as A, vr as j, wr as M } from "./input-BLxOA7V-.js";
|
|
4
|
+
import { n as N } from "./label-CBvG613A.js";
|
|
5
|
+
import { _ as P, a as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, n as U, o as W, p as G, r as ee, s as K, t as q, v as J } from "./AnimatePresence-B4HhIdgq.js";
|
|
6
|
+
import { t as Y } from "./useCompositeItem-CNJ6MXdi.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/tabs/root/TabsRootContext.mjs
|
|
8
|
+
var X = /* @__PURE__ */ e(t(), 1), Z = /*#__PURE__*/ X.createContext(void 0);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "TabsRootContext");
|
|
10
|
+
function Q() {
|
|
11
|
+
let e = X.useContext(Z);
|
|
12
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? _(64) : "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");
|
|
13
|
+
return e;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/tabs/root/TabsRootDataAttributes.mjs
|
|
17
|
+
var te = /*#__PURE__*/ function(e) {
|
|
18
|
+
return e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e;
|
|
19
|
+
}({}), ne = { tabActivationDirection: (e) => ({ [te.activationDirection]: e }) }, $ = n(), re = /*#__PURE__*/ X.forwardRef(function(e, t) {
|
|
20
|
+
let { className: n, defaultValue: a = 0, onValueChange: s, orientation: c = "horizontal", render: l, value: f, style: p, ...m } = e, h = e.defaultValue !== void 0, g = X.useRef([]), [_, v] = X.useState(() => /* @__PURE__ */ new Map()), [b, x] = N({
|
|
21
|
+
controlled: f,
|
|
22
|
+
default: a,
|
|
23
|
+
name: "Tabs",
|
|
24
|
+
state: "value"
|
|
25
|
+
}), S = f !== void 0, [C, w] = X.useState(() => /* @__PURE__ */ new Map()), T = X.useRef(void 0), E = X.useCallback((e) => {
|
|
26
|
+
if (e === void 0) return null;
|
|
27
|
+
for (let [t, n] of C.entries()) if (n != null && e === (n.value ?? n.index)) return t;
|
|
28
|
+
return null;
|
|
29
|
+
}, [C]), [D, O] = X.useState(() => ({
|
|
30
|
+
previousValue: b,
|
|
31
|
+
tabActivationDirection: "none"
|
|
32
|
+
})), { previousValue: k, tabActivationDirection: A } = D, j = A, P = !1;
|
|
33
|
+
k !== b && (j = ie(k, b, c, C), P = k != null && b != null && E(b) == null);
|
|
34
|
+
let F = P ? k : b, I = k !== F || A !== j;
|
|
35
|
+
u(() => {
|
|
36
|
+
I && O({
|
|
37
|
+
previousValue: F,
|
|
38
|
+
tabActivationDirection: j
|
|
39
|
+
});
|
|
40
|
+
}, [
|
|
41
|
+
F,
|
|
42
|
+
I,
|
|
43
|
+
j
|
|
44
|
+
]);
|
|
45
|
+
let L = M((e, t) => {
|
|
46
|
+
t.activationDirection = ie(b, e, c, C), s?.(e, t), !t.isCanceled && x(e);
|
|
47
|
+
}), R = M((e, t) => {
|
|
48
|
+
s?.(e, o(t, void 0, void 0, { activationDirection: "none" }));
|
|
49
|
+
}), z = M((e, t) => {
|
|
50
|
+
v((n) => {
|
|
51
|
+
if (n.get(e) === t) return n;
|
|
52
|
+
let r = new Map(n);
|
|
53
|
+
return r.set(e, t), r;
|
|
54
|
+
});
|
|
55
|
+
}), B = M((e, t) => {
|
|
56
|
+
v((n) => {
|
|
57
|
+
if (!n.has(e) || n.get(e) !== t) return n;
|
|
58
|
+
let r = new Map(n);
|
|
59
|
+
return r.delete(e), r;
|
|
60
|
+
});
|
|
61
|
+
}), V = X.useCallback((e) => _.get(e), [_]), H = X.useCallback((e) => {
|
|
62
|
+
for (let t of C.values()) if (e === t?.value) return t?.id;
|
|
63
|
+
}, [C]), U = X.useMemo(() => ({
|
|
64
|
+
getTabElementBySelectedValue: E,
|
|
65
|
+
getTabIdByPanelValue: H,
|
|
66
|
+
getTabPanelIdByValue: V,
|
|
67
|
+
onValueChange: L,
|
|
68
|
+
orientation: c,
|
|
69
|
+
registerMountedTabPanel: z,
|
|
70
|
+
setTabMap: w,
|
|
71
|
+
unregisterMountedTabPanel: B,
|
|
72
|
+
tabActivationDirection: j,
|
|
73
|
+
value: b
|
|
74
|
+
}), [
|
|
75
|
+
E,
|
|
76
|
+
H,
|
|
77
|
+
V,
|
|
78
|
+
L,
|
|
79
|
+
c,
|
|
80
|
+
z,
|
|
81
|
+
w,
|
|
82
|
+
B,
|
|
83
|
+
j,
|
|
84
|
+
b
|
|
85
|
+
]), W = X.useMemo(() => {
|
|
86
|
+
for (let e of C.values()) if (e != null && e.value === b) return e;
|
|
87
|
+
}, [C, b]), G = X.useMemo(() => {
|
|
88
|
+
for (let e of C.values()) if (e != null && !e.disabled) return e.value;
|
|
89
|
+
}, [C]), K = X.useRef(!h), q = X.useRef(a), J = X.useRef(h), Y = X.useRef(!1);
|
|
90
|
+
u(() => {
|
|
91
|
+
if (S) return;
|
|
92
|
+
function e(e, t) {
|
|
93
|
+
x(e), O((t) => t.previousValue === e && t.tabActivationDirection === "none" ? t : {
|
|
94
|
+
previousValue: e,
|
|
95
|
+
tabActivationDirection: "none"
|
|
96
|
+
}), R(e, t), K.current = !1;
|
|
97
|
+
}
|
|
98
|
+
if (C.size === 0) {
|
|
99
|
+
Y.current && b !== null && !T.current?.isConnected && e(null, i);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
Y.current = !0, T.current = C.keys().next().value;
|
|
103
|
+
let t = W?.disabled, n = W == null && b !== null;
|
|
104
|
+
if (!t && b === q.current && (J.current = !1), J.current && t && b === q.current) return;
|
|
105
|
+
let a = K.current;
|
|
106
|
+
if (t || n) {
|
|
107
|
+
let n = G ?? null;
|
|
108
|
+
if (b === n) {
|
|
109
|
+
K.current = !1;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
let o = i;
|
|
113
|
+
a ? o = r : t && (o = d), e(n, o);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
a && W != null && (R(b, r), K.current = !1);
|
|
117
|
+
}, [
|
|
118
|
+
G,
|
|
119
|
+
S,
|
|
120
|
+
R,
|
|
121
|
+
W,
|
|
122
|
+
x,
|
|
123
|
+
C,
|
|
124
|
+
b
|
|
125
|
+
]);
|
|
126
|
+
let Q = y("div", e, {
|
|
127
|
+
state: {
|
|
128
|
+
orientation: c,
|
|
129
|
+
tabActivationDirection: j
|
|
130
|
+
},
|
|
131
|
+
ref: t,
|
|
132
|
+
props: m,
|
|
133
|
+
stateAttributesMapping: ne
|
|
134
|
+
});
|
|
135
|
+
return /*#__PURE__*/ (0, $.jsx)(Z.Provider, {
|
|
136
|
+
value: U,
|
|
137
|
+
children: /*#__PURE__*/ (0, $.jsx)(ee, {
|
|
138
|
+
elementsRef: g,
|
|
139
|
+
children: Q
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "TabsRoot");
|
|
144
|
+
function ie(e, t, n, r) {
|
|
145
|
+
if (e == null || t == null) return "none";
|
|
146
|
+
let i = null, a = null;
|
|
147
|
+
for (let [n, o] of r.entries()) {
|
|
148
|
+
if (o == null) continue;
|
|
149
|
+
let r = o.value ?? o.index;
|
|
150
|
+
if (e === r && (i = n), t === r && (a = n), i != null && a != null) break;
|
|
151
|
+
}
|
|
152
|
+
if (i == null || a == null) return i !== a && (typeof e == "number" || typeof e == "string") && typeof e == typeof t ? n === "horizontal" ? t > e ? "right" : "left" : t > e ? "down" : "up" : "none";
|
|
153
|
+
let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();
|
|
154
|
+
if (n === "horizontal") {
|
|
155
|
+
if (s.left < o.left) return "left";
|
|
156
|
+
if (s.left > o.left) return "right";
|
|
157
|
+
} else {
|
|
158
|
+
if (s.top < o.top) return "up";
|
|
159
|
+
if (s.top > o.top) return "down";
|
|
160
|
+
}
|
|
161
|
+
return "none";
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/constants.mjs
|
|
165
|
+
var ae = "data-composite-item-active", oe = /*#__PURE__*/ X.createContext(void 0);
|
|
166
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "TabsListContext");
|
|
167
|
+
function se() {
|
|
168
|
+
let e = X.useContext(oe);
|
|
169
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? _(65) : "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");
|
|
170
|
+
return e;
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/tabs/tab/TabsTab.mjs
|
|
174
|
+
var ce = /*#__PURE__*/ X.forwardRef(function(e, t) {
|
|
175
|
+
let { className: n, disabled: r = !1, render: i, value: a, id: c, nativeButton: l = !0, style: d, ...f } = e, { value: p, getTabPanelIdByValue: h, orientation: _, tabActivationDirection: v } = Q(), { activateOnFocus: b, highlightedTabIndex: x, onTabActivation: S, registerTabResizeObserverElement: C, setHighlightedTabIndex: w, tabsListElement: O } = se(), k = s(c), { compositeProps: A, compositeRef: j, index: M } = Y({ metadata: X.useMemo(() => ({
|
|
176
|
+
disabled: r,
|
|
177
|
+
id: k,
|
|
178
|
+
value: a
|
|
179
|
+
}), [
|
|
180
|
+
r,
|
|
181
|
+
k,
|
|
182
|
+
a
|
|
183
|
+
]) }), N = a === p, P = X.useRef(!1), F = X.useRef(null);
|
|
184
|
+
u(() => {
|
|
185
|
+
let e = F.current;
|
|
186
|
+
if (e) return C(e);
|
|
187
|
+
}, [C]), u(() => {
|
|
188
|
+
if (P.current) {
|
|
189
|
+
P.current = !1;
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (!(N && M > -1 && x !== M)) return;
|
|
193
|
+
let e = O;
|
|
194
|
+
if (e != null) {
|
|
195
|
+
let t = D(E(e));
|
|
196
|
+
if (t && T(e, t)) return;
|
|
197
|
+
}
|
|
198
|
+
r || w(M);
|
|
199
|
+
}, [
|
|
200
|
+
N,
|
|
201
|
+
M,
|
|
202
|
+
x,
|
|
203
|
+
w,
|
|
204
|
+
r,
|
|
205
|
+
O
|
|
206
|
+
]);
|
|
207
|
+
let { getButtonProps: I, buttonRef: L } = g({
|
|
208
|
+
disabled: r,
|
|
209
|
+
native: l,
|
|
210
|
+
focusableWhenDisabled: !0
|
|
211
|
+
}), R = h(a), z = X.useRef(!1), B = X.useRef(!1);
|
|
212
|
+
function V(e) {
|
|
213
|
+
N || r || S(a, o(m, e.nativeEvent, void 0, { activationDirection: "none" }));
|
|
214
|
+
}
|
|
215
|
+
function H(e) {
|
|
216
|
+
N || (M > -1 && !r && w(M), !r && b && (!z.current || z.current && B.current) && S(a, o(m, e.nativeEvent, void 0, { activationDirection: "none" })));
|
|
217
|
+
}
|
|
218
|
+
function U(e) {
|
|
219
|
+
if (N || r) return;
|
|
220
|
+
z.current = !0;
|
|
221
|
+
function t() {
|
|
222
|
+
z.current = !1, B.current = !1;
|
|
223
|
+
}
|
|
224
|
+
(!e.button || e.button === 0) && (B.current = !0, E(e.currentTarget).addEventListener("pointerup", t, { once: !0 }));
|
|
225
|
+
}
|
|
226
|
+
return y("button", e, {
|
|
227
|
+
state: {
|
|
228
|
+
disabled: r,
|
|
229
|
+
active: N,
|
|
230
|
+
orientation: _,
|
|
231
|
+
tabActivationDirection: v
|
|
232
|
+
},
|
|
233
|
+
ref: [
|
|
234
|
+
t,
|
|
235
|
+
L,
|
|
236
|
+
j,
|
|
237
|
+
F
|
|
238
|
+
],
|
|
239
|
+
props: [
|
|
240
|
+
A,
|
|
241
|
+
{
|
|
242
|
+
role: "tab",
|
|
243
|
+
"aria-controls": R,
|
|
244
|
+
"aria-selected": N,
|
|
245
|
+
id: k,
|
|
246
|
+
onClick: V,
|
|
247
|
+
onFocus: H,
|
|
248
|
+
onPointerDown: U,
|
|
249
|
+
[ae]: N ? "" : void 0,
|
|
250
|
+
onKeyDownCapture() {
|
|
251
|
+
P.current = !0;
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
f,
|
|
255
|
+
I
|
|
256
|
+
],
|
|
257
|
+
stateAttributesMapping: ne
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
process.env.NODE_ENV !== "production" && (ce.displayName = "TabsTab");
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/root/useCompositeRoot.mjs
|
|
263
|
+
var le = [];
|
|
264
|
+
function ue(e) {
|
|
265
|
+
let { loopFocus: t = !0, orientation: n = "both", grid: r, onLoop: i, direction: a, highlightedIndex: o, onHighlightedIndexChange: s, rootRef: l, enableHomeAndEndKeys: d = !1, stopEventPropagation: f = !1, disabledIndices: m, modifierKeys: g = le } = e, [_, v] = X.useState(0), y = r != null, x = X.useRef(null), S = C(x, l), T = X.useRef([]), E = X.useRef(!1), D = o ?? _, O = M((e, t = !1) => {
|
|
266
|
+
if ((s ?? v)(e), t) {
|
|
267
|
+
let t = T.current[e];
|
|
268
|
+
J(x.current, t, a, n);
|
|
269
|
+
}
|
|
270
|
+
}), k = M((e) => {
|
|
271
|
+
if (e.size === 0 || E.current) return;
|
|
272
|
+
E.current = !0;
|
|
273
|
+
let t = Array.from(e.keys()), r = t.find((e) => e?.hasAttribute("data-composite-item-active")) ?? null, i = r ? t.indexOf(r) : -1;
|
|
274
|
+
if (i !== -1) O(i);
|
|
275
|
+
else if (A(t, D, m)) {
|
|
276
|
+
let e = p(t, { disabledIndices: m });
|
|
277
|
+
b(t, e) || O(e);
|
|
278
|
+
}
|
|
279
|
+
J(x.current, r, a, n);
|
|
280
|
+
});
|
|
281
|
+
u(() => {
|
|
282
|
+
if (m == null || o != null || !E.current) return;
|
|
283
|
+
let e = T.current;
|
|
284
|
+
if (A(e, D, m)) {
|
|
285
|
+
let t = p(e, { disabledIndices: m });
|
|
286
|
+
b(e, t) || O(t);
|
|
287
|
+
}
|
|
288
|
+
}, [
|
|
289
|
+
m,
|
|
290
|
+
o,
|
|
291
|
+
D,
|
|
292
|
+
T,
|
|
293
|
+
O
|
|
294
|
+
]);
|
|
295
|
+
let j = M((e, t, n) => i ? i(e, t, n, T) : n), N = M((e) => {
|
|
296
|
+
let o = d ? H : F;
|
|
297
|
+
if (!o.has(e.key) || de(e, g) || !x.current) return;
|
|
298
|
+
let s = a === "rtl", l = s ? W : K, u = {
|
|
299
|
+
horizontal: l,
|
|
300
|
+
vertical: V,
|
|
301
|
+
both: l
|
|
302
|
+
}[n], _ = s ? K : W, v = {
|
|
303
|
+
horizontal: _,
|
|
304
|
+
vertical: I,
|
|
305
|
+
both: _
|
|
306
|
+
}[n], S = w(e.nativeEvent);
|
|
307
|
+
if (S != null && P(S) && !U(S)) {
|
|
308
|
+
let t = S.selectionStart, n = S.selectionEnd, r = S.value ?? "";
|
|
309
|
+
if (t == null || e.shiftKey || t !== n || e.key !== v && t < r.length || e.key !== u && t > 0) return;
|
|
310
|
+
}
|
|
311
|
+
let C = D, E = c(T, m), k = h(T, m);
|
|
312
|
+
r != null && (C = r({
|
|
313
|
+
disabledIndices: m,
|
|
314
|
+
elementsRef: T,
|
|
315
|
+
event: e,
|
|
316
|
+
highlightedIndex: D,
|
|
317
|
+
loopFocus: t,
|
|
318
|
+
maxIndex: k,
|
|
319
|
+
minIndex: E,
|
|
320
|
+
onLoop: j,
|
|
321
|
+
orientation: n,
|
|
322
|
+
rtl: s
|
|
323
|
+
}));
|
|
324
|
+
let A = {
|
|
325
|
+
horizontal: [l],
|
|
326
|
+
vertical: [V],
|
|
327
|
+
both: [l, V]
|
|
328
|
+
}[n], M = {
|
|
329
|
+
horizontal: [_],
|
|
330
|
+
vertical: [I],
|
|
331
|
+
both: [_, I]
|
|
332
|
+
}[n], N = y ? o : {
|
|
333
|
+
horizontal: d ? R : L,
|
|
334
|
+
vertical: d ? z : B,
|
|
335
|
+
both: o
|
|
336
|
+
}[n];
|
|
337
|
+
d && (e.key === "Home" ? C = E : e.key === "End" && (C = k)), C === D && (A.includes(e.key) || M.includes(e.key)) && (t && C === k && A.includes(e.key) ? (C = E, i && (C = i(e, D, C, T))) : t && C === E && M.includes(e.key) ? (C = k, i && (C = i(e, D, C, T))) : C = p(T.current, {
|
|
338
|
+
startingIndex: C,
|
|
339
|
+
decrement: M.includes(e.key),
|
|
340
|
+
disabledIndices: m
|
|
341
|
+
})), C !== D && !b(T.current, C) && (f && e.stopPropagation(), N.has(e.key) && e.preventDefault(), O(C, !0), queueMicrotask(() => {
|
|
342
|
+
T.current[C]?.focus();
|
|
343
|
+
}));
|
|
344
|
+
});
|
|
345
|
+
return {
|
|
346
|
+
props: {
|
|
347
|
+
ref: S,
|
|
348
|
+
onFocus(e) {
|
|
349
|
+
let t = x.current, n = w(e.nativeEvent);
|
|
350
|
+
!t || n == null || !P(n) || n.setSelectionRange(0, n.value.length ?? 0);
|
|
351
|
+
},
|
|
352
|
+
onKeyDown: N
|
|
353
|
+
},
|
|
354
|
+
highlightedIndex: D,
|
|
355
|
+
onHighlightedIndexChange: O,
|
|
356
|
+
elementsRef: T,
|
|
357
|
+
disabledIndices: m,
|
|
358
|
+
onMapChange: k,
|
|
359
|
+
relayKeyboardEvent: N
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
function de(e, t) {
|
|
363
|
+
for (let n of G.values()) if (!t.includes(n) && e.getModifierState(n)) return !0;
|
|
364
|
+
return !1;
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/root/CompositeRoot.mjs
|
|
368
|
+
function fe(e) {
|
|
369
|
+
let { render: t, className: n, style: r, refs: i = S, props: a = S, state: o = O, stateAttributesMapping: s, highlightedIndex: c, onHighlightedIndexChange: l, orientation: u, grid: d, loopFocus: p, onLoop: m, enableHomeAndEndKeys: h, onMapChange: g, stopEventPropagation: _ = !0, rootRef: v, disabledIndices: b, modifierKeys: x, highlightItemOnHover: C = !1, tag: w = "div", ...T } = e, { props: E, highlightedIndex: D, onHighlightedIndexChange: k, elementsRef: A, onMapChange: M, relayKeyboardEvent: N } = ue({
|
|
370
|
+
grid: d,
|
|
371
|
+
loopFocus: p,
|
|
372
|
+
onLoop: m,
|
|
373
|
+
orientation: u,
|
|
374
|
+
highlightedIndex: c,
|
|
375
|
+
onHighlightedIndexChange: l,
|
|
376
|
+
rootRef: v,
|
|
377
|
+
stopEventPropagation: _,
|
|
378
|
+
enableHomeAndEndKeys: h,
|
|
379
|
+
direction: f(),
|
|
380
|
+
disabledIndices: b,
|
|
381
|
+
modifierKeys: x
|
|
382
|
+
}), P = y(w, e, {
|
|
383
|
+
state: o,
|
|
384
|
+
ref: i,
|
|
385
|
+
props: [
|
|
386
|
+
E,
|
|
387
|
+
...a,
|
|
388
|
+
T
|
|
389
|
+
],
|
|
390
|
+
stateAttributesMapping: s
|
|
391
|
+
}), F = X.useMemo(() => ({
|
|
392
|
+
highlightedIndex: D,
|
|
393
|
+
onHighlightedIndexChange: k,
|
|
394
|
+
highlightItemOnHover: C,
|
|
395
|
+
relayKeyboardEvent: N
|
|
396
|
+
}), [
|
|
397
|
+
D,
|
|
398
|
+
k,
|
|
399
|
+
C,
|
|
400
|
+
N
|
|
401
|
+
]);
|
|
402
|
+
return /*#__PURE__*/ (0, $.jsx)(j.Provider, {
|
|
403
|
+
value: F,
|
|
404
|
+
children: /*#__PURE__*/ (0, $.jsx)(ee, {
|
|
405
|
+
elementsRef: A,
|
|
406
|
+
onMapChange: (e) => {
|
|
407
|
+
g?.(e), M(e);
|
|
408
|
+
},
|
|
409
|
+
children: P
|
|
410
|
+
})
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/tabs/list/TabsList.mjs
|
|
415
|
+
var pe = /*#__PURE__*/ X.forwardRef(function(e, t) {
|
|
416
|
+
let { activateOnFocus: n = !1, className: r, loopFocus: i = !0, render: a, style: o, ...s } = e, { onValueChange: c, orientation: l, value: d, setTabMap: f, tabActivationDirection: p } = Q(), [m, h] = X.useState(0), [g, _] = X.useState(null), v = X.useRef(/* @__PURE__ */ new Set()), y = X.useRef(/* @__PURE__ */ new Set()), b = X.useRef(null);
|
|
417
|
+
u(() => {
|
|
418
|
+
if (typeof ResizeObserver > "u") return;
|
|
419
|
+
let e = new ResizeObserver(() => {
|
|
420
|
+
v.current.forEach((e) => {
|
|
421
|
+
e();
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
return b.current = e, g && e.observe(g), y.current.forEach((t) => {
|
|
425
|
+
e.observe(t);
|
|
426
|
+
}), () => {
|
|
427
|
+
e.disconnect(), b.current = null;
|
|
428
|
+
};
|
|
429
|
+
}, [g]);
|
|
430
|
+
let x = M((e) => (v.current.add(e), () => {
|
|
431
|
+
v.current.delete(e);
|
|
432
|
+
})), C = M((e) => (y.current.add(e), b.current?.observe(e), () => {
|
|
433
|
+
y.current.delete(e), b.current?.unobserve(e);
|
|
434
|
+
})), w = M((e, t) => {
|
|
435
|
+
e !== d && c(e, t);
|
|
436
|
+
}), T = {
|
|
437
|
+
orientation: l,
|
|
438
|
+
tabActivationDirection: p
|
|
439
|
+
}, E = {
|
|
440
|
+
"aria-orientation": l === "vertical" ? "vertical" : void 0,
|
|
441
|
+
role: "tablist"
|
|
442
|
+
}, D = X.useMemo(() => ({
|
|
443
|
+
activateOnFocus: n,
|
|
444
|
+
highlightedTabIndex: m,
|
|
445
|
+
registerIndicatorUpdateListener: x,
|
|
446
|
+
registerTabResizeObserverElement: C,
|
|
447
|
+
onTabActivation: w,
|
|
448
|
+
setHighlightedTabIndex: h,
|
|
449
|
+
tabsListElement: g
|
|
450
|
+
}), [
|
|
451
|
+
n,
|
|
452
|
+
m,
|
|
453
|
+
x,
|
|
454
|
+
C,
|
|
455
|
+
w,
|
|
456
|
+
h,
|
|
457
|
+
g
|
|
458
|
+
]);
|
|
459
|
+
return /*#__PURE__*/ (0, $.jsx)(oe.Provider, {
|
|
460
|
+
value: D,
|
|
461
|
+
children: /*#__PURE__*/ (0, $.jsx)(fe, {
|
|
462
|
+
render: a,
|
|
463
|
+
className: r,
|
|
464
|
+
style: o,
|
|
465
|
+
state: T,
|
|
466
|
+
refs: [t, _],
|
|
467
|
+
props: [E, s],
|
|
468
|
+
stateAttributesMapping: ne,
|
|
469
|
+
highlightedIndex: m,
|
|
470
|
+
enableHomeAndEndKeys: !0,
|
|
471
|
+
loopFocus: i,
|
|
472
|
+
orientation: l,
|
|
473
|
+
onHighlightedIndexChange: h,
|
|
474
|
+
onMapChange: f,
|
|
475
|
+
disabledIndices: S
|
|
476
|
+
})
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
process.env.NODE_ENV !== "production" && (pe.displayName = "TabsList");
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/client/hooks/use-proximity-hover-index.ts
|
|
482
|
+
function me(e, t) {
|
|
483
|
+
let n = e.getBoundingClientRect(), r = t === "x" ? e.offsetWidth : e.offsetHeight, i = t === "x" ? n.width : n.height;
|
|
484
|
+
return r > 0 ? i / r : 1;
|
|
485
|
+
}
|
|
486
|
+
function he(e, t) {
|
|
487
|
+
let n = e.getBoundingClientRect(), r = me(e, "x"), i = me(e, "y"), a = [];
|
|
488
|
+
return t.forEach((t, o) => {
|
|
489
|
+
let s = t.getBoundingClientRect();
|
|
490
|
+
a[o] = {
|
|
491
|
+
top: (s.top - n.top) / i + e.scrollTop,
|
|
492
|
+
left: (s.left - n.left) / r + e.scrollLeft,
|
|
493
|
+
width: t.offsetWidth,
|
|
494
|
+
height: t.offsetHeight
|
|
495
|
+
};
|
|
496
|
+
}), a;
|
|
497
|
+
}
|
|
498
|
+
function ge(e, t, n, r) {
|
|
499
|
+
let i = r === "x" ? t : n, a = null, o = Infinity, s = null;
|
|
500
|
+
return e.forEach((e, t) => {
|
|
501
|
+
let n = e.getBoundingClientRect(), c = r === "x" ? n.left : n.top, l = r === "x" ? n.right : n.bottom;
|
|
502
|
+
i >= c && i <= l && (s = t);
|
|
503
|
+
let u = (c + l) / 2, d = Math.abs(i - u);
|
|
504
|
+
d < o && (o = d, a = t);
|
|
505
|
+
}), s ?? a;
|
|
506
|
+
}
|
|
507
|
+
function _e(e, t) {
|
|
508
|
+
if (e.length !== t.length) return !0;
|
|
509
|
+
for (let n = 0; n < t.length; n++) {
|
|
510
|
+
let r = e[n], i = t[n];
|
|
511
|
+
if (r !== i && (!r || !i || r.top !== i.top || r.left !== i.left || r.width !== i.width || r.height !== i.height)) return !0;
|
|
512
|
+
}
|
|
513
|
+
return !1;
|
|
514
|
+
}
|
|
515
|
+
function ve(e, t = {}) {
|
|
516
|
+
let { axis: n = "y" } = t, r = (0, X.useRef)(/* @__PURE__ */ new Map()), [i, a] = (0, X.useState)(null), [o, s] = (0, X.useState)([]), c = (0, X.useRef)([]), l = (0, X.useRef)(0), u = (0, X.useRef)(null), d = (0, X.useRef)(null), f = (0, X.useRef)(null), p = (0, X.useCallback)(() => {
|
|
517
|
+
let t = e.current;
|
|
518
|
+
if (!t) return;
|
|
519
|
+
let n = he(t, r.current);
|
|
520
|
+
_e(c.current, n) && (c.current = n, s(n));
|
|
521
|
+
}, [e]), m = (0, X.useCallback)((e, t) => {
|
|
522
|
+
a(ge(r.current, e, t, n));
|
|
523
|
+
}, [n]), h = (0, X.useCallback)((e, t) => {
|
|
524
|
+
t ? r.current.set(e, t) : r.current.delete(e), d.current !== null && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
|
|
525
|
+
d.current = null, p();
|
|
526
|
+
});
|
|
527
|
+
}, [p]), g = (0, X.useCallback)((e) => {
|
|
528
|
+
f.current = {
|
|
529
|
+
x: e.clientX,
|
|
530
|
+
y: e.clientY
|
|
531
|
+
}, u.current !== null && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => {
|
|
532
|
+
u.current = null, p(), m(e.clientX, e.clientY);
|
|
533
|
+
});
|
|
534
|
+
}, [p, m]), _ = (0, X.useCallback)(() => {
|
|
535
|
+
l.current += 1;
|
|
536
|
+
}, []), v = (0, X.useCallback)(() => {
|
|
537
|
+
u.current !== null && (cancelAnimationFrame(u.current), u.current = null), f.current = null, a(null);
|
|
538
|
+
}, []);
|
|
539
|
+
return (0, X.useEffect)(() => {
|
|
540
|
+
let t = e.current;
|
|
541
|
+
if (!t || typeof ResizeObserver > "u") return;
|
|
542
|
+
let n = new ResizeObserver(() => {
|
|
543
|
+
d.current !== null && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
|
|
544
|
+
d.current = null, p();
|
|
545
|
+
});
|
|
546
|
+
});
|
|
547
|
+
return n.observe(t), () => n.disconnect();
|
|
548
|
+
}, [e, p]), (0, X.useEffect)(() => {
|
|
549
|
+
let t = e.current;
|
|
550
|
+
if (!t) return;
|
|
551
|
+
let n = () => {
|
|
552
|
+
p();
|
|
553
|
+
let e = f.current;
|
|
554
|
+
e && m(e.x, e.y);
|
|
555
|
+
};
|
|
556
|
+
return t.addEventListener("scroll", n, {
|
|
557
|
+
capture: !0,
|
|
558
|
+
passive: !0
|
|
559
|
+
}), () => t.removeEventListener("scroll", n, { capture: !0 });
|
|
560
|
+
}, [
|
|
561
|
+
e,
|
|
562
|
+
p,
|
|
563
|
+
m
|
|
564
|
+
]), (0, X.useEffect)(() => () => {
|
|
565
|
+
u.current !== null && cancelAnimationFrame(u.current), d.current !== null && cancelAnimationFrame(d.current);
|
|
566
|
+
}, []), {
|
|
567
|
+
activeIndex: i,
|
|
568
|
+
setActiveIndex: a,
|
|
569
|
+
itemRects: o,
|
|
570
|
+
sessionRef: l,
|
|
571
|
+
handlers: {
|
|
572
|
+
onMouseMove: g,
|
|
573
|
+
onMouseEnter: _,
|
|
574
|
+
onMouseLeave: v
|
|
575
|
+
},
|
|
576
|
+
registerItem: h,
|
|
577
|
+
measureItems: p
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/client/components/ui/tabs-subtle.tsx
|
|
582
|
+
var ye = (0, X.createContext)(null);
|
|
583
|
+
function be() {
|
|
584
|
+
let e = (0, X.useContext)(ye);
|
|
585
|
+
if (!e) throw Error("useTabsSubtle must be used within a TabsSubtle");
|
|
586
|
+
return e;
|
|
587
|
+
}
|
|
588
|
+
var xe = (0, X.forwardRef)(({ children: e, selectedIndex: t, onSelect: n, idPrefix: r, activeLabel: i = !1, className: o, ...s }, c) => {
|
|
589
|
+
let u = (0, X.useRef)(null), d = (0, X.useRef)(!1), f = a(), { activeIndex: p, setActiveIndex: m, itemRects: h, handlers: g, registerItem: _, measureItems: v } = ve(u, { axis: "x" }), y = (0, X.useRef)(/* @__PURE__ */ new Map()), b = (0, X.useCallback)((e, t) => {
|
|
590
|
+
_(e, t), t ? y.current.set(e, t) : y.current.delete(e);
|
|
591
|
+
}, [_]);
|
|
592
|
+
(0, X.useEffect)(() => {
|
|
593
|
+
v();
|
|
594
|
+
}, [v, e]), (0, X.useEffect)(() => {
|
|
595
|
+
let e = y.current;
|
|
596
|
+
if (e.size === 0) return;
|
|
597
|
+
let t = new ResizeObserver(() => v());
|
|
598
|
+
return e.forEach((e) => t.observe(e)), () => t.disconnect();
|
|
599
|
+
}, [v, e]);
|
|
600
|
+
let S = (0, X.useCallback)((e) => {
|
|
601
|
+
d.current = !0, g.onMouseMove(e);
|
|
602
|
+
}, [g]), C = (0, X.useCallback)(() => {
|
|
603
|
+
d.current = !1, g.onMouseLeave();
|
|
604
|
+
}, [g]), [w, T] = (0, X.useState)(null), E = h[t], D = p === null ? null : h[p], O = w === null ? null : h[w], A = p === t, j = p !== null && !A;
|
|
605
|
+
return /* @__PURE__ */ (0, $.jsx)(ye.Provider, {
|
|
606
|
+
value: {
|
|
607
|
+
registerTab: b,
|
|
608
|
+
hoveredIndex: p,
|
|
609
|
+
selectedIndex: t,
|
|
610
|
+
idPrefix: r,
|
|
611
|
+
activeLabel: i
|
|
612
|
+
},
|
|
613
|
+
children: /* @__PURE__ */ (0, $.jsx)(re, {
|
|
614
|
+
value: t,
|
|
615
|
+
onValueChange: (e) => {
|
|
616
|
+
typeof e == "number" && n(e);
|
|
617
|
+
},
|
|
618
|
+
render: /* @__PURE__ */ (0, $.jsxs)(pe, {
|
|
619
|
+
activateOnFocus: !1,
|
|
620
|
+
ref: (e) => {
|
|
621
|
+
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
622
|
+
},
|
|
623
|
+
onMouseMove: S,
|
|
624
|
+
onMouseLeave: C,
|
|
625
|
+
onFocus: (e) => {
|
|
626
|
+
let t = e.target.closest("[data-proximity-index]")?.getAttribute("data-proximity-index");
|
|
627
|
+
if (t != null) {
|
|
628
|
+
let n = Number(t);
|
|
629
|
+
m(n), T(e.target.matches(":focus-visible") ? n : null);
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
onBlur: (e) => {
|
|
633
|
+
u.current?.contains(e.relatedTarget) || (T(null), !d.current && m(null));
|
|
634
|
+
},
|
|
635
|
+
className: l("relative flex items-center gap-0.5 select-none overflow-x-auto max-w-full -mx-1 px-1 -my-1 py-1", o),
|
|
636
|
+
...s,
|
|
637
|
+
children: [
|
|
638
|
+
E && /* @__PURE__ */ (0, $.jsx)(x.div, {
|
|
639
|
+
className: l("absolute bg-accent pointer-events-none", f.bg),
|
|
640
|
+
initial: !1,
|
|
641
|
+
animate: {
|
|
642
|
+
left: E.left,
|
|
643
|
+
width: E.width,
|
|
644
|
+
top: E.top,
|
|
645
|
+
height: E.height,
|
|
646
|
+
opacity: j ? .8 : 1
|
|
647
|
+
},
|
|
648
|
+
transition: {
|
|
649
|
+
...k.moderate,
|
|
650
|
+
opacity: { duration: .08 }
|
|
651
|
+
}
|
|
652
|
+
}),
|
|
653
|
+
/* @__PURE__ */ (0, $.jsx)(q, { children: D && !A && E && /* @__PURE__ */ (0, $.jsx)(x.div, {
|
|
654
|
+
className: l("absolute bg-accent pointer-events-none", f.bg),
|
|
655
|
+
initial: {
|
|
656
|
+
left: E.left,
|
|
657
|
+
width: E.width,
|
|
658
|
+
top: E.top,
|
|
659
|
+
height: E.height,
|
|
660
|
+
opacity: 0
|
|
661
|
+
},
|
|
662
|
+
animate: {
|
|
663
|
+
left: D.left,
|
|
664
|
+
width: D.width,
|
|
665
|
+
top: D.top,
|
|
666
|
+
height: D.height,
|
|
667
|
+
opacity: .4
|
|
668
|
+
},
|
|
669
|
+
exit: !d.current && E ? {
|
|
670
|
+
left: E.left,
|
|
671
|
+
width: E.width,
|
|
672
|
+
top: E.top,
|
|
673
|
+
height: E.height,
|
|
674
|
+
opacity: 0,
|
|
675
|
+
transition: {
|
|
676
|
+
...k.moderate,
|
|
677
|
+
opacity: { duration: .06 }
|
|
678
|
+
}
|
|
679
|
+
} : {
|
|
680
|
+
opacity: 0,
|
|
681
|
+
transition: k.fast.exit
|
|
682
|
+
},
|
|
683
|
+
transition: {
|
|
684
|
+
...k.fast,
|
|
685
|
+
opacity: { duration: .08 }
|
|
686
|
+
}
|
|
687
|
+
}) }),
|
|
688
|
+
/* @__PURE__ */ (0, $.jsx)(q, { children: O && /* @__PURE__ */ (0, $.jsx)(x.div, {
|
|
689
|
+
className: l("absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]", f.focusRing),
|
|
690
|
+
initial: !1,
|
|
691
|
+
animate: {
|
|
692
|
+
left: O.left - 2,
|
|
693
|
+
top: O.top - 2,
|
|
694
|
+
width: O.width + 4,
|
|
695
|
+
height: O.height + 4
|
|
696
|
+
},
|
|
697
|
+
exit: {
|
|
698
|
+
opacity: 0,
|
|
699
|
+
transition: k.fast.exit
|
|
700
|
+
},
|
|
701
|
+
transition: {
|
|
702
|
+
...k.fast,
|
|
703
|
+
opacity: { duration: .08 }
|
|
704
|
+
}
|
|
705
|
+
}) }),
|
|
706
|
+
e
|
|
707
|
+
]
|
|
708
|
+
})
|
|
709
|
+
})
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
xe.displayName = "TabsSubtle";
|
|
713
|
+
var Se = (0, X.forwardRef)(({ icon: e, label: t, index: n, className: r, ...i }, o) => {
|
|
714
|
+
let s = (0, X.useRef)(null), c = a(), { registerTab: u, hoveredIndex: d, selectedIndex: f, idPrefix: p, activeLabel: m } = be();
|
|
715
|
+
(0, X.useEffect)(() => (u(n, s.current), () => u(n, null)), [n, u]);
|
|
716
|
+
let h = f === n, g = d === n || h, _ = m && !!e, y = !_ || h, b = /* @__PURE__ */ (0, $.jsxs)("span", {
|
|
717
|
+
className: "inline-grid",
|
|
718
|
+
children: [/* @__PURE__ */ (0, $.jsx)("span", {
|
|
719
|
+
className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic]",
|
|
720
|
+
style: { fontVariationSettings: v.semibold },
|
|
721
|
+
"aria-hidden": "true",
|
|
722
|
+
children: t
|
|
723
|
+
}), /* @__PURE__ */ (0, $.jsx)("span", {
|
|
724
|
+
className: l("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-80 [text-box:trim-both_cap_alphabetic]", g ? "text-foreground" : "text-muted-foreground"),
|
|
725
|
+
style: { fontVariationSettings: h ? v.semibold : v.normal },
|
|
726
|
+
children: t
|
|
727
|
+
})]
|
|
728
|
+
});
|
|
729
|
+
return /* @__PURE__ */ (0, $.jsxs)(ce, {
|
|
730
|
+
ref: (e) => {
|
|
731
|
+
let t = e;
|
|
732
|
+
s.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
733
|
+
},
|
|
734
|
+
value: n,
|
|
735
|
+
"data-proximity-index": n,
|
|
736
|
+
id: p ? `${p}-tab-${n}` : void 0,
|
|
737
|
+
"aria-controls": p ? `${p}-panel-${n}` : void 0,
|
|
738
|
+
"aria-label": _ && !y ? t : void 0,
|
|
739
|
+
className: l("relative z-10 flex items-center px-2 cursor-pointer bg-transparent border-none outline-none text-xs", _ ? "h-7" : "h-7 gap-1.5", c.bg, r),
|
|
740
|
+
...i,
|
|
741
|
+
children: [e && /* @__PURE__ */ (0, $.jsx)(e, {
|
|
742
|
+
size: 14,
|
|
743
|
+
strokeWidth: g ? 2 : 1.5,
|
|
744
|
+
className: l("shrink-0 transition-[color,stroke-width] duration-80", g ? "text-foreground" : "text-muted-foreground")
|
|
745
|
+
}), _ ? /* @__PURE__ */ (0, $.jsx)(q, { children: y && /* @__PURE__ */ (0, $.jsx)(x.span, {
|
|
746
|
+
className: "overflow-hidden",
|
|
747
|
+
initial: {
|
|
748
|
+
width: 0,
|
|
749
|
+
opacity: 0,
|
|
750
|
+
marginLeft: 0
|
|
751
|
+
},
|
|
752
|
+
animate: {
|
|
753
|
+
width: "auto",
|
|
754
|
+
opacity: 1,
|
|
755
|
+
marginLeft: 6
|
|
756
|
+
},
|
|
757
|
+
exit: {
|
|
758
|
+
width: 0,
|
|
759
|
+
opacity: 0,
|
|
760
|
+
marginLeft: 0
|
|
761
|
+
},
|
|
762
|
+
transition: {
|
|
763
|
+
...k.fast,
|
|
764
|
+
opacity: { duration: .06 }
|
|
765
|
+
},
|
|
766
|
+
children: b
|
|
767
|
+
}, "label") }) : b]
|
|
768
|
+
});
|
|
769
|
+
});
|
|
770
|
+
Se.displayName = "TabsSubtleItem";
|
|
771
|
+
var Ce = (0, X.forwardRef)(({ index: e, selectedIndex: t, idPrefix: n, children: r, className: i, ...a }, o) => {
|
|
772
|
+
let s = t === e;
|
|
773
|
+
return /* @__PURE__ */ (0, $.jsx)("div", {
|
|
774
|
+
ref: o,
|
|
775
|
+
id: `${n}-panel-${e}`,
|
|
776
|
+
role: "tabpanel",
|
|
777
|
+
"aria-labelledby": `${n}-tab-${e}`,
|
|
778
|
+
hidden: !s,
|
|
779
|
+
tabIndex: -1,
|
|
780
|
+
className: l("outline-none", i),
|
|
781
|
+
...a,
|
|
782
|
+
children: s && r
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
Ce.displayName = "TabsSubtlePanel";
|
|
786
|
+
//#endregion
|
|
787
|
+
export { ae as a, fe as i, Se as n, Ce as r, xe as t };
|