@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.50
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 +31 -78
- package/dist/app/inspector.css.gz +0 -0
- package/dist/app/inspector.js.gz +0 -0
- package/dist/app/providers/anthropic.png +0 -0
- package/dist/app/providers/google.png +0 -0
- package/dist/app/providers/openai.png +0 -0
- package/dist/cli.js +332 -1384
- package/dist/client/index.d.ts +1405 -50
- package/dist/client/index.js +165 -24019
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +370 -22
- package/package.json +77 -35
- package/dist/cdn/AnimatePresence-Dcw-FOy8.js +0 -393
- package/dist/cdn/ChatTab-B255lH5i.js +0 -6744
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/ConnectionSettingsForm-DF-NS58d.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-dI-Cqe79.js +0 -150
- package/dist/cdn/ElicitationTab-CL1KJ0bz.js +0 -654
- package/dist/cdn/FormContext-tmgN_Vdr.js +0 -135
- package/dist/cdn/InspectorContext-UjtEbNod.js +0 -123
- package/dist/cdn/JSONDisplay-BFxf5oEu.js +0 -324
- package/dist/cdn/ListTabHeader-Cv-GmtGF.js +0 -88
- package/dist/cdn/ManufactOAuthCallback-B98kSYCj.js +0 -31
- package/dist/cdn/MarkdownRenderer-Ba7nA4Ie.js +0 -3610
- package/dist/cdn/NotificationsTab-CeImSrhx.js +0 -290
- package/dist/cdn/OAuthCallback-Blc2Asxc.js +0 -58
- package/dist/cdn/PromptsTab-BYKnY7Rp.js +0 -901
- package/dist/cdn/ResourcesTab-BGualKW-.js +0 -564
- package/dist/cdn/SamplingTab-BeZBUeni.js +0 -658
- package/dist/cdn/ServerMetadataTab-CvrKX8fz.js +0 -244
- package/dist/cdn/StatusIcon-D0-ARyOh.js +0 -66
- package/dist/cdn/ToolsTab-j6n4O_3s.js +0 -2033
- package/dist/cdn/ViewPreview-DihyG6Qd.js +0 -238
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +0 -324
- package/dist/cdn/WidgetWrapper-B4H3Fek7.js +0 -2210
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-CGjAO_0s.js +0 -10
- package/dist/cdn/browser-CbQIH4w2.js +0 -42
- package/dist/cdn/brush-B_mKhyxG.js +0 -17
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-By0FklhG.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-CmUbSx_B.js +0 -12
- package/dist/cdn/code-V_0nf5rg.js +0 -10
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/dialog-BsDpuJd3.js +0 -1028
- package/dist/cdn/dist-DaMB0Su9.js +0 -616
- package/dist/cdn/dist-DbX5yidW.js +0 -2306
- package/dist/cdn/external-link-CjmfT6rW.js +0 -17
- package/dist/cdn/eye-B7H96av8.js +0 -29
- package/dist/cdn/folder-open-B3lu2rG_.js +0 -7
- package/dist/cdn/hash-BVQnWi7q.js +0 -33
- package/dist/cdn/history-Csw4rb44.js +0 -17
- package/dist/cdn/index-browser-DkQOzkvX.js +0 -1934
- package/dist/cdn/info-CNiOwqkf.js +0 -19
- package/dist/cdn/input-C2OBd4PJ.js +0 -12160
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -24523
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +0 -180
- package/dist/cdn/label-B9Jmm9be.js +0 -60
- package/dist/cdn/loader-circle-BLy9A_pp.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-CH5Lq90B.js +0 -21
- package/dist/cdn/maximize-BALCV_ep.js +0 -21
- package/dist/cdn/message-square-BnxdpJxZ.js +0 -7
- package/dist/cdn/not-found-DEtSM_Wd.js +0 -34
- package/dist/cdn/play-vuZ5PLnI.js +0 -7
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/providers/anthropic.png +0 -0
- package/dist/cdn/providers/google.png +0 -0
- package/dist/cdn/providers/openai.png +0 -0
- package/dist/cdn/react-BIs9pQ3H.js +0 -926
- package/dist/cdn/react-BajV-X4P.js +0 -5425
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +0 -21
- package/dist/cdn/save-Tgil_AJZ.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-DDdiIPR2.js +0 -2594
- package/dist/cdn/servers-Dm72iTpY.js +0 -26
- package/dist/cdn/shared-DaILIQPP.js +0 -1700
- package/dist/cdn/sheet-Br_l2kry.js +0 -2077
- package/dist/cdn/sparkles-BntO2rDR.js +0 -23
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/cdn/square-check-big-BvwQ17Bl.js +0 -10
- package/dist/cdn/switch-C3IyQuid.js +0 -664
- package/dist/cdn/tabs-subtle-CkdI6Mac.js +0 -787
- package/dist/cdn/telemetry-DabTAQ8x.js +0 -240
- package/dist/cdn/textarea-DSbwcFVt.js +0 -14
- package/dist/cdn/trash-2-RwpJY5SL.js +0 -25
- package/dist/cdn/useAriaLabelledBy-DqAdnppm.js +0 -29
- package/dist/cdn/useCompositeItem-BRqEzYh-.js +0 -26
- package/dist/cdn/useConfig-Btmh8wjJ.js +0 -235
- package/dist/cdn/useSavedRequests-Ci2I919u.js +0 -51
- package/dist/cdn/useViewHostProps-B6SKeeH9.js +0 -349
- package/dist/cdn/wrench-DzGmCfnb.js +0 -7
- package/dist/cdn/x-C3vRQIYu.js +0 -10
- package/dist/cdn/zap-Mb-pbw2X.js +0 -10
- package/dist/client/auth/manufact-auth.d.ts +0 -32
- package/dist/client/auth/manufact-auth.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
- package/dist/client/chat-history/ChatList.d.ts +0 -18
- package/dist/client/chat-history/ChatList.d.ts.map +0 -1
- package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
- package/dist/client/chat-history/chat-title.d.ts +0 -10
- package/dist/client/chat-history/chat-title.d.ts.map +0 -1
- package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
- package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
- package/dist/client/chat-history/types.d.ts +0 -39
- package/dist/client/chat-history/types.d.ts.map +0 -1
- package/dist/client/chat-history/useChatHistory.d.ts +0 -20
- package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
- package/dist/client/components/AddToClientDropdown.d.ts +0 -52
- package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
- package/dist/client/components/ChatTab.d.ts +0 -98
- package/dist/client/components/ChatTab.d.ts.map +0 -1
- package/dist/client/components/IframeConsole.d.ts +0 -7
- package/dist/client/components/IframeConsole.d.ts.map +0 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
- package/dist/client/components/PromptsTab.d.ts +0 -34
- package/dist/client/components/PromptsTab.d.ts.map +0 -1
- package/dist/client/components/ResourcesTab.d.ts +0 -31
- package/dist/client/components/ResourcesTab.d.ts.map +0 -1
- package/dist/client/components/ToolsTab.d.ts +0 -39
- package/dist/client/components/ToolsTab.d.ts.map +0 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
- package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
- package/dist/client/components/chat/ChatHeader.d.ts +0 -70
- package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInput.d.ts +0 -29
- package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
- package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
- package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
- package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
- package/dist/client/components/chat/CopyButton.d.ts +0 -10
- package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
- package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
- package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
- package/dist/client/components/chat/MessageList.d.ts +0 -47
- package/dist/client/components/chat/MessageList.d.ts.map +0 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
- package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
- package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
- package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
- package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/ToolSelector.d.ts +0 -13
- package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
- package/dist/client/components/chat/UserMessage.d.ts +0 -10
- package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
- package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
- package/dist/client/components/chat/conversion.d.ts +0 -19
- package/dist/client/components/chat/conversion.d.ts.map +0 -1
- package/dist/client/components/chat/freeTier.d.ts +0 -32
- package/dist/client/components/chat/freeTier.d.ts.map +0 -1
- package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
- package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
- package/dist/client/components/chat/providerMeta.d.ts +0 -27
- package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
- package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
- package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
- package/dist/client/components/chat/trace.d.ts +0 -84
- package/dist/client/components/chat/trace.d.ts.map +0 -1
- package/dist/client/components/chat/types.d.ts +0 -75
- package/dist/client/components/chat/types.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessages.d.ts +0 -76
- package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
- package/dist/client/components/chat/useConfig.d.ts +0 -24
- package/dist/client/components/chat/useConfig.d.ts.map +0 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
- package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
- package/dist/client/components/chat/utils.d.ts +0 -11
- package/dist/client/components/chat/utils.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
- package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsList.d.ts +0 -10
- package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesList.d.ts +0 -10
- package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
- package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
- package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
- package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
- package/dist/client/components/shared/ListItem.d.ts +0 -24
- package/dist/client/components/shared/ListItem.d.ts.map +0 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
- package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
- package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
- package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/StatusIcon.d.ts +0 -12
- package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
- package/dist/client/components/shared/index.d.ts +0 -7
- package/dist/client/components/shared/index.d.ts.map +0 -1
- package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
- package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
- package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -24
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsList.d.ts +0 -10
- package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
- package/dist/client/components/tools/schema-utils.d.ts +0 -13
- package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
- package/dist/client/components/tools/useToolExecution.d.ts +0 -26
- package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
- package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
- package/dist/client/components/ui/alert-dialog.d.ts +0 -15
- package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
- package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
- package/dist/client/components/ui/badge.d.ts +0 -34
- package/dist/client/components/ui/badge.d.ts.map +0 -1
- package/dist/client/components/ui/blur-fade.d.ts +0 -25
- package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
- package/dist/client/components/ui/button.d.ts +0 -34
- package/dist/client/components/ui/button.d.ts.map +0 -1
- package/dist/client/components/ui/chat-message.d.ts +0 -23
- package/dist/client/components/ui/chat-message.d.ts.map +0 -1
- package/dist/client/components/ui/checkbox.d.ts +0 -4
- package/dist/client/components/ui/checkbox.d.ts.map +0 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -20
- package/dist/client/components/ui/client-icons.d.ts.map +0 -1
- package/dist/client/components/ui/command.d.ts +0 -17
- package/dist/client/components/ui/command.d.ts.map +0 -1
- package/dist/client/components/ui/dialog.d.ts +0 -37
- package/dist/client/components/ui/dialog.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
- package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown.d.ts +0 -30
- package/dist/client/components/ui/dropdown.d.ts.map +0 -1
- package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
- package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
- package/dist/client/components/ui/input.d.ts +0 -4
- package/dist/client/components/ui/input.d.ts.map +0 -1
- package/dist/client/components/ui/kbd.d.ts +0 -3
- package/dist/client/components/ui/kbd.d.ts.map +0 -1
- package/dist/client/components/ui/label.d.ts +0 -4
- package/dist/client/components/ui/label.d.ts.map +0 -1
- package/dist/client/components/ui/menu-item.d.ts +0 -52
- package/dist/client/components/ui/menu-item.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
- package/dist/client/components/ui/not-found.d.ts +0 -9
- package/dist/client/components/ui/not-found.d.ts.map +0 -1
- package/dist/client/components/ui/popover.d.ts +0 -6
- package/dist/client/components/ui/popover.d.ts.map +0 -1
- package/dist/client/components/ui/resizable.d.ts +0 -10
- package/dist/client/components/ui/resizable.d.ts.map +0 -1
- package/dist/client/components/ui/scroll-area.d.ts +0 -4
- package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/client/components/ui/select.d.ts +0 -52
- package/dist/client/components/ui/select.d.ts.map +0 -1
- package/dist/client/components/ui/sheet.d.ts +0 -14
- package/dist/client/components/ui/sheet.d.ts.map +0 -1
- package/dist/client/components/ui/skeleton.d.ts +0 -4
- package/dist/client/components/ui/skeleton.d.ts.map +0 -1
- package/dist/client/components/ui/spinner.d.ts +0 -3
- package/dist/client/components/ui/spinner.d.ts.map +0 -1
- package/dist/client/components/ui/switch.d.ts +0 -22
- package/dist/client/components/ui/switch.d.ts.map +0 -1
- package/dist/client/components/ui/table.d.ts +0 -9
- package/dist/client/components/ui/table.d.ts.map +0 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
- package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
- package/dist/client/components/ui/text-shimmer.d.ts +0 -11
- package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
- package/dist/client/components/ui/textarea.d.ts +0 -4
- package/dist/client/components/ui/textarea.d.ts.map +0 -1
- package/dist/client/components/ui/tooltip.d.ts +0 -43
- package/dist/client/components/ui/tooltip.d.ts.map +0 -1
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
- package/dist/client/console-log-bus.d.ts +0 -24
- package/dist/client/console-log-bus.d.ts.map +0 -1
- package/dist/client/constants/debug-options.d.ts +0 -16
- package/dist/client/constants/debug-options.d.ts.map +0 -1
- package/dist/client/context/InspectorContext.d.ts +0 -134
- package/dist/client/context/InspectorContext.d.ts.map +0 -1
- package/dist/client/context/ThemeContext.d.ts +0 -17
- package/dist/client/context/ThemeContext.d.ts.map +0 -1
- package/dist/client/context/WidgetDebugContext.d.ts +0 -121
- package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
- package/dist/client/hooks/use-merge-split.d.ts +0 -36
- package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
- package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
- package/dist/client/hooks/use-touch-primary.d.ts +0 -2
- package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +0 -18
- package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
- package/dist/client/hooks/useHostedSession.d.ts +0 -9
- package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
- package/dist/client/hooks/useIframeConsole.d.ts +0 -24
- package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
- package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
- package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
- package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
- package/dist/client/hooks/usePropsLLM.d.ts +0 -20
- package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
- package/dist/client/hooks/useResourceProps.d.ts +0 -14
- package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
- package/dist/client/hooks/useSavedRequests.d.ts +0 -6
- package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
- package/dist/client/hooks/useViewHostProps.d.ts +0 -19
- package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/lib/elevated.d.ts +0 -28
- package/dist/client/lib/elevated.d.ts.map +0 -1
- package/dist/client/lib/font-weight.d.ts +0 -10
- package/dist/client/lib/font-weight.d.ts.map +0 -1
- package/dist/client/lib/icon-context.d.ts +0 -15
- package/dist/client/lib/icon-context.d.ts.map +0 -1
- package/dist/client/lib/shape-context.d.ts +0 -21
- package/dist/client/lib/shape-context.d.ts.map +0 -1
- package/dist/client/lib/springs.d.ts +0 -32
- package/dist/client/lib/springs.d.ts.map +0 -1
- package/dist/client/lib/surface-classes.d.ts +0 -2
- package/dist/client/lib/surface-classes.d.ts.map +0 -1
- package/dist/client/lib/surface-context.d.ts +0 -7
- package/dist/client/lib/surface-context.d.ts.map +0 -1
- package/dist/client/lib/utils.d.ts +0 -3
- package/dist/client/lib/utils.d.ts.map +0 -1
- package/dist/client/mcp-apps/csp.d.ts +0 -26
- package/dist/client/mcp-apps/csp.d.ts.map +0 -1
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
- package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
- package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
- package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
- package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
- package/dist/client/rpc-traffic-store.d.ts +0 -37
- package/dist/client/rpc-traffic-store.d.ts.map +0 -1
- package/dist/client/telemetry/capture.d.ts +0 -7
- package/dist/client/telemetry/capture.d.ts.map +0 -1
- package/dist/client/telemetry/events.d.ts +0 -168
- package/dist/client/telemetry/events.d.ts.map +0 -1
- package/dist/client/telemetry/index.d.ts +0 -5
- package/dist/client/telemetry/index.d.ts.map +0 -1
- package/dist/client/telemetry/init.d.ts +0 -2
- package/dist/client/telemetry/init.d.ts.map +0 -1
- package/dist/client/telemetry/utils.d.ts +0 -7
- package/dist/client/telemetry/utils.d.ts.map +0 -1
- package/dist/client/types/message-content-block.d.ts +0 -19
- package/dist/client/types/message-content-block.d.ts.map +0 -1
- package/dist/client/types/pending-requests.d.ts +0 -17
- package/dist/client/types/pending-requests.d.ts.map +0 -1
- package/dist/client/utils/basePath.d.ts +0 -34
- package/dist/client/utils/basePath.d.ts.map +0 -1
- package/dist/client/utils/browser.d.ts +0 -5
- package/dist/client/utils/browser.d.ts.map +0 -1
- package/dist/client/utils/format.d.ts +0 -4
- package/dist/client/utils/format.d.ts.map +0 -1
- package/dist/client/utils/highlightJson.d.ts +0 -11
- package/dist/client/utils/highlightJson.d.ts.map +0 -1
- package/dist/client/utils/jsonUtils.d.ts +0 -24
- package/dist/client/utils/jsonUtils.d.ts.map +0 -1
- package/dist/client/utils/mcpClientUtils.d.ts +0 -131
- package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
- package/dist/client/utils/servers.d.ts +0 -14
- package/dist/client/utils/servers.d.ts.map +0 -1
- package/dist/server/asset-urls.d.ts +0 -18
- package/dist/server/asset-urls.d.ts.map +0 -1
- package/dist/server/asset-urls.js +0 -17
- package/dist/server/cdn-shell.d.ts +0 -18
- package/dist/server/cdn-shell.d.ts.map +0 -1
- package/dist/server/cdn-shell.js +0 -12
- package/dist/server/chunk-DSTNUYWX.js +0 -148
- package/dist/server/chunk-H6ZCIKBS.js +0 -63
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/chunk-J4FNYLBF.js +0 -54
- package/dist/server/chunk-K2F2AJOI.js +0 -619
- package/dist/server/chunk-KD7K27XK.js +0 -77
- package/dist/server/chunk-M5TZA42I.js +0 -54
- package/dist/server/chunk-OWR2BIBW.js +0 -40
- package/dist/server/chunk-PKBMQBKP.js +0 -7
- package/dist/server/chunk-SQ4XNMLT.js +0 -72
- package/dist/server/chunk-UJLXHNQP.js +0 -43
- package/dist/server/chunk-WFT4JHYI.js +0 -24
- package/dist/server/chunk-XCNS5CIW.js +0 -199
- package/dist/server/chunk-ZCGLU5T7.js +0 -156
- package/dist/server/cli.d.ts +0 -3
- package/dist/server/cli.d.ts.map +0 -1
- package/dist/server/cli.js +0 -141
- package/dist/server/create-dev-api-app.d.ts +0 -4
- package/dist/server/create-dev-api-app.d.ts.map +0 -1
- package/dist/server/create-dev-api-app.js +0 -11
- package/dist/server/dev-callback-redirect.d.ts +0 -3
- package/dist/server/dev-callback-redirect.d.ts.map +0 -1
- package/dist/server/dev-callback-redirect.js +0 -18
- package/dist/server/favicon-links.d.ts +0 -12
- package/dist/server/favicon-links.d.ts.map +0 -1
- package/dist/server/favicon-links.js +0 -11
- package/dist/server/favicon-static.d.ts +0 -4
- package/dist/server/favicon-static.d.ts.map +0 -1
- package/dist/server/favicon-static.js +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/middleware.d.ts +0 -40
- package/dist/server/middleware.d.ts.map +0 -1
- package/dist/server/middleware.js +0 -17
- package/dist/server/proxy/index.d.ts +0 -3
- package/dist/server/proxy/index.d.ts.map +0 -1
- package/dist/server/proxy/index.js +0 -12
- package/dist/server/proxy/mcp-proxy.d.ts +0 -101
- package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
- package/dist/server/proxy/mcp-proxy.js +0 -10
- package/dist/server/proxy/oauth-proxy.d.ts +0 -26
- package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
- package/dist/server/proxy/oauth-proxy.js +0 -9
- package/dist/server/proxy-routes.d.ts +0 -16
- package/dist/server/proxy-routes.d.ts.map +0 -1
- package/dist/server/proxy-routes.js +0 -10
- package/dist/server/rpc-log-bus.d.ts +0 -17
- package/dist/server/rpc-log-bus.d.ts.map +0 -1
- package/dist/server/rpc-log-bus.js +0 -77
- package/dist/server/server.d.ts +0 -15
- package/dist/server/server.d.ts.map +0 -1
- package/dist/server/server.js +0 -66
- package/dist/server/static-assets.d.ts +0 -5
- package/dist/server/static-assets.d.ts.map +0 -1
- package/dist/server/static-assets.js +0 -9
- package/dist/server/utils.d.ts +0 -33
- package/dist/server/utils.d.ts.map +0 -1
- package/dist/server/utils.js +0 -17
- package/dist/server/version.d.ts +0 -7
- package/dist/server/version.d.ts.map +0 -1
- package/dist/server/version.js +0 -9
- package/dist/server/vite-dev-api-plugin.d.ts +0 -4
- package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
- package/dist/server/vite-dev-api-plugin.js +0 -30
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-BCobuZDc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-BjGkLwVu.js +0 -1
- package/dist/web/assets/ElicitationTab-D3ZUKHND.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/ManufactOAuthCallback-CS3ydSZg.js +0 -1
- package/dist/web/assets/MarkdownRenderer-BeeBfQhv.js +0 -47
- package/dist/web/assets/NotificationsTab-Uj0_DrmK.js +0 -1
- package/dist/web/assets/OAuthCallback-C0ljgCiw.js +0 -1
- package/dist/web/assets/PromptsTab-Bns2u0G-.js +0 -15
- package/dist/web/assets/ResourcesTab-CO24312V.js +0 -2
- package/dist/web/assets/SamplingTab-7gtN7FwU.js +0 -1
- package/dist/web/assets/ServerMetadataTab-CQwqYSjL.js +0 -1
- package/dist/web/assets/ToolsTab-bDdRxI1b.js +0 -8
- package/dist/web/assets/ViewPreview-Ba1Ec5uA.js +0 -1
- package/dist/web/assets/WidgetWrapper-CYHfzrtb.js +0 -34
- package/dist/web/assets/brush--0LobUi4.js +0 -1
- package/dist/web/assets/checkbox-CzBkaNKa.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-C5JjLJN9.js +0 -21
- package/dist/web/assets/index-TQ5V7cM9.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/label-Cdim77Jw.js +0 -1
- package/dist/web/assets/maximize-2-BTT9QQU9.js +0 -1
- package/dist/web/assets/maximize-_O55kFcr.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +0 -1
- package/dist/web/assets/save-B-MsgxX9.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-BF0rJNdE.js +0 -1
- package/dist/web/assets/sparkles-2OAsc1aP.js +0 -1
- package/dist/web/assets/tabs-subtle-6D79T1xd.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useConfig-BAgALiZg.js +0 -1
- package/dist/web/assets/useViewHostProps-BYitt_6K.js +0 -1
- package/dist/web/assets/zap-Du2Uc5pa.js +0 -1
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +0 -5
- package/dist/web/favicon-white.svg +0 -5
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +0 -5
- package/dist/web/index.html +0 -89
- package/dist/web/providers/anthropic.png +0 -0
- package/dist/web/providers/google.png +0 -0
- package/dist/web/providers/openai.png +0 -0
- package/dist/web/site.webmanifest +0 -21
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
- /package/dist/{cdn → app}/favicon-96x96.png +0 -0
- /package/dist/{cdn → app}/favicon-black.svg +0 -0
- /package/dist/{cdn → app}/favicon-white.svg +0 -0
- /package/dist/{cdn → app}/favicon.ico +0 -0
- /package/dist/{cdn → app}/favicon.svg +0 -0
- /package/dist/{cdn → app}/site.webmanifest +0 -0
- /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
- /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
|
@@ -1,787 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Gn as n, Jn as r, Lr as i, Mn as a, Nn as o, Qt as s, Rr as c, Sr as l, Vn as u, X as d, Xt as f, Yn as p, Zt as m, _r as h, br as g, c as _, dr as v, en as y, f as b, fr as x, gr as S, hn as C, mn as w, on as T, pn as E, pr as D, s as O, tn as k, vr as A, wr as j } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as M } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
import { n as N } from "./label-B9Jmm9be.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-Dcw-FOy8.js";
|
|
6
|
-
import { t as Y } from "./useCompositeItem-BRqEzYh-.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" ? g(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 }) }, $ = M(), re = /*#__PURE__*/ X.forwardRef(function(e, t) {
|
|
20
|
-
let { className: i, defaultValue: o = 0, onValueChange: s, orientation: c = "horizontal", render: d, value: f, style: p, ...m } = e, h = e.defaultValue !== void 0, g = X.useRef([]), [_, y] = X.useState(() => /* @__PURE__ */ new Map()), [b, x] = N({
|
|
21
|
-
controlled: f,
|
|
22
|
-
default: o,
|
|
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, M = A, P = !1;
|
|
33
|
-
k !== b && (M = ie(k, b, c, C), P = k != null && b != null && E(b) == null);
|
|
34
|
-
let F = P ? k : b, I = k !== F || A !== M;
|
|
35
|
-
l(() => {
|
|
36
|
-
I && O({
|
|
37
|
-
previousValue: F,
|
|
38
|
-
tabActivationDirection: M
|
|
39
|
-
});
|
|
40
|
-
}, [
|
|
41
|
-
F,
|
|
42
|
-
I,
|
|
43
|
-
M
|
|
44
|
-
]);
|
|
45
|
-
let L = j((e, t) => {
|
|
46
|
-
t.activationDirection = ie(b, e, c, C), s?.(e, t), !t.isCanceled && x(e);
|
|
47
|
-
}), R = j((e, t) => {
|
|
48
|
-
s?.(e, a(t, void 0, void 0, { activationDirection: "none" }));
|
|
49
|
-
}), z = j((e, t) => {
|
|
50
|
-
y((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 = j((e, t) => {
|
|
56
|
-
y((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: M,
|
|
73
|
-
value: b
|
|
74
|
-
}), [
|
|
75
|
-
E,
|
|
76
|
-
H,
|
|
77
|
-
V,
|
|
78
|
-
L,
|
|
79
|
-
c,
|
|
80
|
-
z,
|
|
81
|
-
w,
|
|
82
|
-
B,
|
|
83
|
-
M,
|
|
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(o), J = X.useRef(h), Y = X.useRef(!1);
|
|
90
|
-
l(() => {
|
|
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, r);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
Y.current = !0, T.current = C.keys().next().value;
|
|
103
|
-
let t = W?.disabled, i = 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 || i) {
|
|
107
|
-
let i = G ?? null;
|
|
108
|
-
if (b === i) {
|
|
109
|
-
K.current = !1;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
let o = r;
|
|
113
|
-
a ? o = n : t && (o = u), e(i, o);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
a && W != null && (R(b, n), K.current = !1);
|
|
117
|
-
}, [
|
|
118
|
-
G,
|
|
119
|
-
S,
|
|
120
|
-
R,
|
|
121
|
-
W,
|
|
122
|
-
x,
|
|
123
|
-
C,
|
|
124
|
-
b
|
|
125
|
-
]);
|
|
126
|
-
let Q = v("div", e, {
|
|
127
|
-
state: {
|
|
128
|
-
orientation: c,
|
|
129
|
-
tabActivationDirection: M
|
|
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" ? g(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: s, id: c, nativeButton: u = !0, style: d, ...f } = e, { value: m, getTabPanelIdByValue: g, orientation: _, tabActivationDirection: y } = Q(), { activateOnFocus: b, highlightedTabIndex: x, onTabActivation: S, registerTabResizeObserverElement: C, setHighlightedTabIndex: D, tabsListElement: O } = se(), k = o(c), { compositeProps: A, compositeRef: j, index: M } = Y({ metadata: X.useMemo(() => ({
|
|
176
|
-
disabled: r,
|
|
177
|
-
id: k,
|
|
178
|
-
value: s
|
|
179
|
-
}), [
|
|
180
|
-
r,
|
|
181
|
-
k,
|
|
182
|
-
s
|
|
183
|
-
]) }), N = s === m, P = X.useRef(!1), F = X.useRef(null);
|
|
184
|
-
l(() => {
|
|
185
|
-
let e = F.current;
|
|
186
|
-
if (e) return C(e);
|
|
187
|
-
}, [C]), l(() => {
|
|
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 = E(T(e));
|
|
196
|
-
if (t && w(e, t)) return;
|
|
197
|
-
}
|
|
198
|
-
r || D(M);
|
|
199
|
-
}, [
|
|
200
|
-
N,
|
|
201
|
-
M,
|
|
202
|
-
x,
|
|
203
|
-
D,
|
|
204
|
-
r,
|
|
205
|
-
O
|
|
206
|
-
]);
|
|
207
|
-
let { getButtonProps: I, buttonRef: L } = h({
|
|
208
|
-
disabled: r,
|
|
209
|
-
native: u,
|
|
210
|
-
focusableWhenDisabled: !0
|
|
211
|
-
}), R = g(s), z = X.useRef(!1), B = X.useRef(!1);
|
|
212
|
-
function V(e) {
|
|
213
|
-
N || r || S(s, a(p, e.nativeEvent, void 0, { activationDirection: "none" }));
|
|
214
|
-
}
|
|
215
|
-
function H(e) {
|
|
216
|
-
N || (M > -1 && !r && D(M), !r && b && (!z.current || z.current && B.current) && S(s, a(p, 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, T(e.currentTarget).addEventListener("pointerup", t, { once: !0 }));
|
|
225
|
-
}
|
|
226
|
-
return v("button", e, {
|
|
227
|
-
state: {
|
|
228
|
-
disabled: r,
|
|
229
|
-
active: N,
|
|
230
|
-
orientation: _,
|
|
231
|
-
tabActivationDirection: y
|
|
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: c, rootRef: u, enableHomeAndEndKeys: d = !1, stopEventPropagation: p = !1, disabledIndices: h, modifierKeys: g = le } = e, [_, v] = X.useState(0), b = r != null, x = X.useRef(null), w = S(x, u), T = X.useRef([]), E = X.useRef(!1), D = o ?? _, O = j((e, t = !1) => {
|
|
266
|
-
if ((c ?? v)(e), t) {
|
|
267
|
-
let t = T.current[e];
|
|
268
|
-
J(x.current, t, a, n);
|
|
269
|
-
}
|
|
270
|
-
}), A = j((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 (k(t, D, h)) {
|
|
276
|
-
let e = f(t, { disabledIndices: h });
|
|
277
|
-
y(t, e) || O(e);
|
|
278
|
-
}
|
|
279
|
-
J(x.current, r, a, n);
|
|
280
|
-
});
|
|
281
|
-
l(() => {
|
|
282
|
-
if (h == null || o != null || !E.current) return;
|
|
283
|
-
let e = T.current;
|
|
284
|
-
if (k(e, D, h)) {
|
|
285
|
-
let t = f(e, { disabledIndices: h });
|
|
286
|
-
y(e, t) || O(t);
|
|
287
|
-
}
|
|
288
|
-
}, [
|
|
289
|
-
h,
|
|
290
|
-
o,
|
|
291
|
-
D,
|
|
292
|
-
T,
|
|
293
|
-
O
|
|
294
|
-
]);
|
|
295
|
-
let M = j((e, t, n) => i ? i(e, t, n, T) : n), N = j((e) => {
|
|
296
|
-
let o = d ? H : F;
|
|
297
|
-
if (!o.has(e.key) || de(e, g) || !x.current) return;
|
|
298
|
-
let c = a === "rtl", l = c ? W : K, u = {
|
|
299
|
-
horizontal: l,
|
|
300
|
-
vertical: V,
|
|
301
|
-
both: l
|
|
302
|
-
}[n], _ = c ? K : W, v = {
|
|
303
|
-
horizontal: _,
|
|
304
|
-
vertical: I,
|
|
305
|
-
both: _
|
|
306
|
-
}[n], S = C(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 w = D, E = s(T, h), k = m(T, h);
|
|
312
|
-
r != null && (w = r({
|
|
313
|
-
disabledIndices: h,
|
|
314
|
-
elementsRef: T,
|
|
315
|
-
event: e,
|
|
316
|
-
highlightedIndex: D,
|
|
317
|
-
loopFocus: t,
|
|
318
|
-
maxIndex: k,
|
|
319
|
-
minIndex: E,
|
|
320
|
-
onLoop: M,
|
|
321
|
-
orientation: n,
|
|
322
|
-
rtl: c
|
|
323
|
-
}));
|
|
324
|
-
let A = {
|
|
325
|
-
horizontal: [l],
|
|
326
|
-
vertical: [V],
|
|
327
|
-
both: [l, V]
|
|
328
|
-
}[n], j = {
|
|
329
|
-
horizontal: [_],
|
|
330
|
-
vertical: [I],
|
|
331
|
-
both: [_, I]
|
|
332
|
-
}[n], N = b ? o : {
|
|
333
|
-
horizontal: d ? R : L,
|
|
334
|
-
vertical: d ? z : B,
|
|
335
|
-
both: o
|
|
336
|
-
}[n];
|
|
337
|
-
d && (e.key === "Home" ? w = E : e.key === "End" && (w = k)), w === D && (A.includes(e.key) || j.includes(e.key)) && (t && w === k && A.includes(e.key) ? (w = E, i && (w = i(e, D, w, T))) : t && w === E && j.includes(e.key) ? (w = k, i && (w = i(e, D, w, T))) : w = f(T.current, {
|
|
338
|
-
startingIndex: w,
|
|
339
|
-
decrement: j.includes(e.key),
|
|
340
|
-
disabledIndices: h
|
|
341
|
-
})), w !== D && !y(T.current, w) && (p && e.stopPropagation(), N.has(e.key) && e.preventDefault(), O(w, !0), queueMicrotask(() => {
|
|
342
|
-
T.current[w]?.focus();
|
|
343
|
-
}));
|
|
344
|
-
});
|
|
345
|
-
return {
|
|
346
|
-
props: {
|
|
347
|
-
ref: w,
|
|
348
|
-
onFocus(e) {
|
|
349
|
-
let t = x.current, n = C(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: h,
|
|
358
|
-
onMapChange: A,
|
|
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 = x, props: a = x, state: o = D, stateAttributesMapping: s, highlightedIndex: c, onHighlightedIndexChange: l, orientation: u, grid: f, loopFocus: p, onLoop: m, enableHomeAndEndKeys: h, onMapChange: g, stopEventPropagation: _ = !0, rootRef: y, disabledIndices: b, modifierKeys: S, highlightItemOnHover: C = !1, tag: w = "div", ...T } = e, { props: E, highlightedIndex: O, onHighlightedIndexChange: k, elementsRef: j, onMapChange: M, relayKeyboardEvent: N } = ue({
|
|
370
|
-
grid: f,
|
|
371
|
-
loopFocus: p,
|
|
372
|
-
onLoop: m,
|
|
373
|
-
orientation: u,
|
|
374
|
-
highlightedIndex: c,
|
|
375
|
-
onHighlightedIndexChange: l,
|
|
376
|
-
rootRef: y,
|
|
377
|
-
stopEventPropagation: _,
|
|
378
|
-
enableHomeAndEndKeys: h,
|
|
379
|
-
direction: d(),
|
|
380
|
-
disabledIndices: b,
|
|
381
|
-
modifierKeys: S
|
|
382
|
-
}), P = v(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: O,
|
|
393
|
-
onHighlightedIndexChange: k,
|
|
394
|
-
highlightItemOnHover: C,
|
|
395
|
-
relayKeyboardEvent: N
|
|
396
|
-
}), [
|
|
397
|
-
O,
|
|
398
|
-
k,
|
|
399
|
-
C,
|
|
400
|
-
N
|
|
401
|
-
]);
|
|
402
|
-
return /*#__PURE__*/ (0, $.jsx)(A.Provider, {
|
|
403
|
-
value: F,
|
|
404
|
-
children: /*#__PURE__*/ (0, $.jsx)(ee, {
|
|
405
|
-
elementsRef: j,
|
|
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: u, 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
|
-
l(() => {
|
|
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 S = j((e) => (v.current.add(e), () => {
|
|
431
|
-
v.current.delete(e);
|
|
432
|
-
})), C = j((e) => (y.current.add(e), b.current?.observe(e), () => {
|
|
433
|
-
y.current.delete(e), b.current?.unobserve(e);
|
|
434
|
-
})), w = j((e, t) => {
|
|
435
|
-
e !== d && c(e, t);
|
|
436
|
-
}), T = {
|
|
437
|
-
orientation: u,
|
|
438
|
-
tabActivationDirection: p
|
|
439
|
-
}, E = {
|
|
440
|
-
"aria-orientation": u === "vertical" ? "vertical" : void 0,
|
|
441
|
-
role: "tablist"
|
|
442
|
-
}, D = X.useMemo(() => ({
|
|
443
|
-
activateOnFocus: n,
|
|
444
|
-
highlightedTabIndex: m,
|
|
445
|
-
registerIndicatorUpdateListener: S,
|
|
446
|
-
registerTabResizeObserverElement: C,
|
|
447
|
-
onTabActivation: w,
|
|
448
|
-
setHighlightedTabIndex: h,
|
|
449
|
-
tabsListElement: g
|
|
450
|
-
}), [
|
|
451
|
-
n,
|
|
452
|
-
m,
|
|
453
|
-
S,
|
|
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: u,
|
|
473
|
-
onHighlightedIndexChange: h,
|
|
474
|
-
onMapChange: f,
|
|
475
|
-
disabledIndices: x
|
|
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: a = !1, className: o, ...s }, l) => {
|
|
589
|
-
let u = (0, X.useRef)(null), d = (0, X.useRef)(!1), f = i(), { activeIndex: p, setActiveIndex: m, itemRects: h, handlers: g, registerItem: _, measureItems: v } = ve(u, { axis: "x" }), y = (0, X.useRef)(/* @__PURE__ */ new Map()), x = (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], k = w === null ? null : h[w], A = p === t, j = p !== null && !A;
|
|
605
|
-
return /* @__PURE__ */ (0, $.jsx)(ye.Provider, {
|
|
606
|
-
value: {
|
|
607
|
-
registerTab: x,
|
|
608
|
-
hoveredIndex: p,
|
|
609
|
-
selectedIndex: t,
|
|
610
|
-
idPrefix: r,
|
|
611
|
-
activeLabel: a
|
|
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 l == "function" ? l(e) : l && (l.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: c("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)(b.div, {
|
|
639
|
-
className: c("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
|
-
...O.moderate,
|
|
650
|
-
opacity: { duration: .08 }
|
|
651
|
-
}
|
|
652
|
-
}),
|
|
653
|
-
/* @__PURE__ */ (0, $.jsx)(q, { children: D && !A && E && /* @__PURE__ */ (0, $.jsx)(b.div, {
|
|
654
|
-
className: c("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
|
-
...O.moderate,
|
|
677
|
-
opacity: { duration: .06 }
|
|
678
|
-
}
|
|
679
|
-
} : {
|
|
680
|
-
opacity: 0,
|
|
681
|
-
transition: O.fast.exit
|
|
682
|
-
},
|
|
683
|
-
transition: {
|
|
684
|
-
...O.fast,
|
|
685
|
-
opacity: { duration: .08 }
|
|
686
|
-
}
|
|
687
|
-
}) }),
|
|
688
|
-
/* @__PURE__ */ (0, $.jsx)(q, { children: k && /* @__PURE__ */ (0, $.jsx)(b.div, {
|
|
689
|
-
className: c("absolute pointer-events-none z-20 border border-[color:var(--focus-ring,#6B97FF)]", f.focusRing),
|
|
690
|
-
initial: !1,
|
|
691
|
-
animate: {
|
|
692
|
-
left: k.left - 2,
|
|
693
|
-
top: k.top - 2,
|
|
694
|
-
width: k.width + 4,
|
|
695
|
-
height: k.height + 4
|
|
696
|
-
},
|
|
697
|
-
exit: {
|
|
698
|
-
opacity: 0,
|
|
699
|
-
transition: O.fast.exit
|
|
700
|
-
},
|
|
701
|
-
transition: {
|
|
702
|
-
...O.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, ...a }, o) => {
|
|
714
|
-
let s = (0, X.useRef)(null), l = i(), { 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, v = m && !!e, y = !v || h, x = /* @__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: _.semibold },
|
|
721
|
-
"aria-hidden": "true",
|
|
722
|
-
children: t
|
|
723
|
-
}), /* @__PURE__ */ (0, $.jsx)("span", {
|
|
724
|
-
className: c("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 ? _.semibold : _.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": v && !y ? t : void 0,
|
|
739
|
-
className: c("relative z-10 flex items-center px-2 cursor-pointer bg-transparent border-none outline-none text-xs", v ? "h-7" : "h-7 gap-1.5", l.bg, r),
|
|
740
|
-
...a,
|
|
741
|
-
children: [e && /* @__PURE__ */ (0, $.jsx)(e, {
|
|
742
|
-
size: 14,
|
|
743
|
-
strokeWidth: g ? 2 : 1.5,
|
|
744
|
-
className: c("shrink-0 transition-[color,stroke-width] duration-80", g ? "text-foreground" : "text-muted-foreground")
|
|
745
|
-
}), v ? /* @__PURE__ */ (0, $.jsx)(q, { children: y && /* @__PURE__ */ (0, $.jsx)(b.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
|
-
...O.fast,
|
|
764
|
-
opacity: { duration: .06 }
|
|
765
|
-
},
|
|
766
|
-
children: x
|
|
767
|
-
}, "label") }) : x]
|
|
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: c("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 };
|