@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.51
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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/inspector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.0.0-beta.
|
|
4
|
+
"version": "20.0.0-beta.51",
|
|
5
5
|
"description": "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
"types": "./dist/server/index.d.ts",
|
|
26
26
|
"import": "./dist/server/index.js"
|
|
27
27
|
},
|
|
28
|
-
"./proxy": {
|
|
29
|
-
"types": "./dist/server/proxy-routes.d.ts",
|
|
30
|
-
"import": "./dist/server/proxy-routes.js"
|
|
31
|
-
},
|
|
32
28
|
"./client": {
|
|
33
29
|
"types": "./dist/client/index.d.ts",
|
|
34
30
|
"import": "./dist/client/index.js"
|
|
@@ -46,49 +42,96 @@
|
|
|
46
42
|
"node": ">=22.22.2"
|
|
47
43
|
},
|
|
48
44
|
"peerDependencies": {
|
|
49
|
-
"@mcp-use/client": "^2.0.0-alpha.0",
|
|
50
|
-
"express": "^4.21.2 || ^5.0.0",
|
|
51
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
52
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
53
|
-
"react-router": "^7.12.0"
|
|
54
|
-
},
|
|
55
|
-
"peerDependenciesMeta": {
|
|
56
|
-
"express": {
|
|
57
|
-
"optional": true
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
45
|
"@base-ui/react": "^1.6.0",
|
|
62
|
-
"@
|
|
46
|
+
"@mcp-use/agent": "^2.0.0-alpha.0",
|
|
47
|
+
"@mcp-use/client": "^2.0.0-alpha.0",
|
|
63
48
|
"class-variance-authority": "^0.7.1",
|
|
64
49
|
"clsx": "^2.1.1",
|
|
65
|
-
"
|
|
50
|
+
"express": "^4.21.2 || ^5.0.0",
|
|
66
51
|
"lucide-react": "^0.562.0",
|
|
67
52
|
"markdown-to-jsx": "^9.7.4",
|
|
68
53
|
"motion": "^12.34.2",
|
|
69
|
-
"
|
|
54
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
55
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
70
56
|
"react-resizable-panels": "^4.6.4",
|
|
71
57
|
"sonner": "^2.0.7",
|
|
72
58
|
"tailwind-merge": "^3.5.0",
|
|
73
|
-
"
|
|
74
|
-
"@mcp-use/client": "2.0.0-beta.3"
|
|
59
|
+
"mcp-use": "2.0.0-beta.59"
|
|
75
60
|
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"@base-ui/react": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"@mcp-use/agent": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"@mcp-use/client": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"class-variance-authority": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"clsx": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"express": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"lucide-react": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"markdown-to-jsx": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"motion": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"react": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"react-dom": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"react-resizable-panels": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"sonner": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"tailwind-merge": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {},
|
|
76
106
|
"publishConfig": {
|
|
77
107
|
"access": "public"
|
|
78
108
|
},
|
|
79
109
|
"devDependencies": {
|
|
110
|
+
"@base-ui/react": "^1.6.0",
|
|
111
|
+
"@hono/node-server": "^1.19.13",
|
|
80
112
|
"@playwright/test": "^1.58.2",
|
|
81
113
|
"@tailwindcss/vite": "^4.2.0",
|
|
82
114
|
"@types/express": "^5.0.6",
|
|
83
115
|
"@vitejs/plugin-react": "^6.0.0",
|
|
116
|
+
"class-variance-authority": "^0.7.1",
|
|
117
|
+
"clsx": "^2.1.1",
|
|
84
118
|
"emulate": "0.5.0",
|
|
85
119
|
"eslint": "^9.39.2",
|
|
86
120
|
"express": "^5.2.1",
|
|
121
|
+
"hono": "^4.12.12",
|
|
122
|
+
"lucide-react": "^0.562.0",
|
|
123
|
+
"markdown-to-jsx": "^9.7.4",
|
|
124
|
+
"motion": "^12.34.2",
|
|
87
125
|
"oauth2-mock-server": "^8.2.2",
|
|
126
|
+
"open": "^11.0.0",
|
|
88
127
|
"react": "^19.2.3",
|
|
89
128
|
"react-dom": "^19.2.3",
|
|
90
129
|
"react-router": "^7.12.0",
|
|
130
|
+
"react-resizable-panels": "^4.6.4",
|
|
131
|
+
"rate-limiter-flexible": "^11.2.0",
|
|
91
132
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
133
|
+
"sonner": "^2.0.7",
|
|
134
|
+
"tailwind-merge": "^3.5.0",
|
|
92
135
|
"tailwindcss": "^4.2.0",
|
|
93
136
|
"tsup": "^8.5.1",
|
|
94
137
|
"tsx": "^4.21.0",
|
|
@@ -98,23 +141,24 @@
|
|
|
98
141
|
"vitest": "^4.1.0",
|
|
99
142
|
"wait-on": "^9.0.4",
|
|
100
143
|
"zod": "^4.2.0",
|
|
101
|
-
"mcp-use": "2.0.0-beta.
|
|
144
|
+
"@mcp-use/agent": "2.0.0-beta.17",
|
|
145
|
+
"@mcp-use/client": "2.0.0-beta.16"
|
|
102
146
|
},
|
|
103
147
|
"scripts": {
|
|
104
148
|
"dev": "rimraf node_modules/.vite && VITE_MANUFACT_CHAT_URL=${VITE_MANUFACT_CHAT_URL:-http://localhost:8000/api/v1/inspector/chat/stream} vite --strictPort",
|
|
105
149
|
"dev:client": "pnpm run dev",
|
|
106
150
|
"dev:server": "VITE_DEV=true tsx watch src/server/server.ts",
|
|
107
151
|
"dev:standalone": "tsx watch src/server/server.ts",
|
|
108
|
-
"
|
|
109
|
-
"build
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"build:client-exports": "tsup --config tsup.client.ts
|
|
116
|
-
"build:server": "tsup
|
|
117
|
-
"
|
|
152
|
+
"clean": "rimraf dist",
|
|
153
|
+
"build": "npm run clean && npm run build:client-exports && npm run build:server && npm run build:app && npm run verify:package",
|
|
154
|
+
"build:app": "vite build --config vite.app.config.ts && node scripts/compress-app.mjs",
|
|
155
|
+
"watch:app": "vite build --watch --config vite.app.config.ts",
|
|
156
|
+
"preview:app": "vite preview --config vite.app.config.ts --host 127.0.0.1",
|
|
157
|
+
"serve:app": "pnpm build:app && pnpm preview:app",
|
|
158
|
+
"analyze:app": "ANALYZE=true vite build --config vite.app.config.ts",
|
|
159
|
+
"build:client-exports": "tsup --config tsup.client.ts",
|
|
160
|
+
"build:server": "tsup --config tsup.server.ts",
|
|
161
|
+
"verify:package": "node scripts/verify-package.mjs",
|
|
118
162
|
"start": "node dist/cli.js --port 3000",
|
|
119
163
|
"preview": "vite preview",
|
|
120
164
|
"type-check": "tsc --noEmit",
|
|
@@ -133,10 +177,8 @@
|
|
|
133
177
|
"test:unit": "vitest run",
|
|
134
178
|
"test:unit:watch": "vitest",
|
|
135
179
|
"test:e2e:tunnel": "node tests/e2e/scripts/run-tunnel-test.mjs",
|
|
136
|
-
"install:yarn": "yarn install",
|
|
137
180
|
"install:pnpm": "pnpm install",
|
|
138
181
|
"install:npm": "npm install",
|
|
139
|
-
"lint:yarn": "yarn eslint . --fix",
|
|
140
182
|
"lint:npm": "npm run lint:fix",
|
|
141
183
|
"lint:pnpm": "pnpm lint:fix"
|
|
142
184
|
}
|
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Ar as n, C as r, H as i, Sr as a, Tr as o, U as s, V as c, W as l, m as u, p as d, wr as f } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as p } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
//#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/list/CompositeListContext.mjs
|
|
5
|
-
var m = /* @__PURE__ */ e(t(), 1), h = /*#__PURE__*/ m.createContext({
|
|
6
|
-
register: () => {},
|
|
7
|
-
unregister: () => {},
|
|
8
|
-
subscribeMapChange: () => () => {},
|
|
9
|
-
elementsRef: { current: [] },
|
|
10
|
-
nextIndexRef: { current: 0 }
|
|
11
|
-
});
|
|
12
|
-
process.env.NODE_ENV !== "production" && (h.displayName = "CompositeListContext");
|
|
13
|
-
function g() {
|
|
14
|
-
return m.useContext(h);
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
//#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/list/useCompositeListItem.mjs
|
|
18
|
-
var _ = /*#__PURE__*/ function(e) {
|
|
19
|
-
return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
|
|
20
|
-
}({});
|
|
21
|
-
function v(e = {}) {
|
|
22
|
-
let { label: t, metadata: n, textRef: r, indexGuessBehavior: i, index: o } = e, { register: s, unregister: c, subscribeMapChange: l, elementsRef: u, labelsRef: d, nextIndexRef: f } = g(), p = m.useRef(-1), [h, v] = m.useState(o ?? (i === _.GuessFromOrder ? () => {
|
|
23
|
-
if (p.current === -1) {
|
|
24
|
-
let e = f.current;
|
|
25
|
-
f.current += 1, p.current = e;
|
|
26
|
-
}
|
|
27
|
-
return p.current;
|
|
28
|
-
} : -1)), y = m.useRef(null), b = m.useCallback((e) => {
|
|
29
|
-
if (y.current = e, h !== -1 && e !== null && (u.current[h] = e, d)) {
|
|
30
|
-
let n = t !== void 0;
|
|
31
|
-
d.current[h] = n ? t : r?.current?.textContent ?? e.textContent;
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
h,
|
|
35
|
-
u,
|
|
36
|
-
d,
|
|
37
|
-
t,
|
|
38
|
-
r
|
|
39
|
-
]);
|
|
40
|
-
return a(() => {
|
|
41
|
-
if (o != null) return;
|
|
42
|
-
let e = y.current;
|
|
43
|
-
if (e) return s(e, n), () => {
|
|
44
|
-
c(e);
|
|
45
|
-
};
|
|
46
|
-
}, [
|
|
47
|
-
o,
|
|
48
|
-
s,
|
|
49
|
-
c,
|
|
50
|
-
n
|
|
51
|
-
]), a(() => {
|
|
52
|
-
if (o == null) return l((e) => {
|
|
53
|
-
let t = y.current ? e.get(y.current)?.index : null;
|
|
54
|
-
t != null && v(t);
|
|
55
|
-
});
|
|
56
|
-
}, [
|
|
57
|
-
o,
|
|
58
|
-
l,
|
|
59
|
-
v
|
|
60
|
-
]), {
|
|
61
|
-
ref: b,
|
|
62
|
-
index: h
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#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/composite.mjs
|
|
67
|
-
var y = "ArrowUp", b = "ArrowDown", x = "ArrowLeft", S = "ArrowRight", C = "Home", w = new Set([x, S]), T = new Set([
|
|
68
|
-
x,
|
|
69
|
-
S,
|
|
70
|
-
C,
|
|
71
|
-
"End"
|
|
72
|
-
]), E = new Set([y, b]), D = new Set([
|
|
73
|
-
y,
|
|
74
|
-
b,
|
|
75
|
-
C,
|
|
76
|
-
"End"
|
|
77
|
-
]), O = new Set([...w, ...E]), k = new Set([
|
|
78
|
-
...O,
|
|
79
|
-
C,
|
|
80
|
-
"End"
|
|
81
|
-
]), A = "Shift", j = new Set([
|
|
82
|
-
A,
|
|
83
|
-
"Control",
|
|
84
|
-
"Alt",
|
|
85
|
-
"Meta"
|
|
86
|
-
]);
|
|
87
|
-
function M(e) {
|
|
88
|
-
return n(e) && e.tagName === "INPUT";
|
|
89
|
-
}
|
|
90
|
-
function N(e) {
|
|
91
|
-
return !!(M(e) && e.selectionStart != null || n(e) && e.tagName === "TEXTAREA");
|
|
92
|
-
}
|
|
93
|
-
function P(e, t, n, r) {
|
|
94
|
-
if (!e || !t || !t.scrollTo) return;
|
|
95
|
-
let i = e.scrollLeft, a = e.scrollTop, o = e.clientWidth < e.scrollWidth, s = e.clientHeight < e.scrollHeight;
|
|
96
|
-
if (o && r !== "vertical") {
|
|
97
|
-
let r = F(e, t, "left"), a = I(e), o = I(t);
|
|
98
|
-
n === "ltr" && (r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight ? i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight : r - o.scrollMarginLeft < e.scrollLeft + a.scrollPaddingLeft && (i = r - o.scrollMarginLeft - a.scrollPaddingLeft)), n === "rtl" && (r - o.scrollMarginRight < e.scrollLeft + a.scrollPaddingLeft ? i = r - o.scrollMarginLeft - a.scrollPaddingLeft : r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight && (i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight));
|
|
99
|
-
}
|
|
100
|
-
if (s && r !== "horizontal") {
|
|
101
|
-
let n = F(e, t, "top"), r = I(e), i = I(t);
|
|
102
|
-
n - i.scrollMarginTop < e.scrollTop + r.scrollPaddingTop ? a = n - i.scrollMarginTop - r.scrollPaddingTop : n + t.offsetHeight + i.scrollMarginBottom > e.scrollTop + e.clientHeight - r.scrollPaddingBottom && (a = n + t.offsetHeight + i.scrollMarginBottom - e.clientHeight + r.scrollPaddingBottom);
|
|
103
|
-
}
|
|
104
|
-
e.scrollTo({
|
|
105
|
-
left: i,
|
|
106
|
-
top: a,
|
|
107
|
-
behavior: "auto"
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function F(e, t, n) {
|
|
111
|
-
let r = n === "left" ? "offsetLeft" : "offsetTop", i = 0;
|
|
112
|
-
for (; t.offsetParent && (i += t[r], t.offsetParent !== e);) t = t.offsetParent;
|
|
113
|
-
return i;
|
|
114
|
-
}
|
|
115
|
-
function I(e) {
|
|
116
|
-
let t = getComputedStyle(e);
|
|
117
|
-
return {
|
|
118
|
-
scrollMarginTop: parseFloat(t.scrollMarginTop) || 0,
|
|
119
|
-
scrollMarginRight: parseFloat(t.scrollMarginRight) || 0,
|
|
120
|
-
scrollMarginBottom: parseFloat(t.scrollMarginBottom) || 0,
|
|
121
|
-
scrollMarginLeft: parseFloat(t.scrollMarginLeft) || 0,
|
|
122
|
-
scrollPaddingTop: parseFloat(t.scrollPaddingTop) || 0,
|
|
123
|
-
scrollPaddingRight: parseFloat(t.scrollPaddingRight) || 0,
|
|
124
|
-
scrollPaddingBottom: parseFloat(t.scrollPaddingBottom) || 0,
|
|
125
|
-
scrollPaddingLeft: parseFloat(t.scrollPaddingLeft) || 0
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#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/list/CompositeList.mjs
|
|
130
|
-
var L = p();
|
|
131
|
-
function R(e) {
|
|
132
|
-
let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, s = f(i), c = m.useRef(0), l = o(B).current, u = o(z).current, [d, p] = m.useState(0), g = m.useRef(d), _ = f((e, t) => {
|
|
133
|
-
u.set(e, t ?? null), g.current += 1, p(g.current);
|
|
134
|
-
}), v = f((e) => {
|
|
135
|
-
u.delete(e), g.current += 1, p(g.current);
|
|
136
|
-
}), y = m.useMemo(() => {
|
|
137
|
-
let e = /* @__PURE__ */ new Map();
|
|
138
|
-
return Array.from(u.keys()).filter((e) => e.isConnected).sort(V).forEach((t, n) => {
|
|
139
|
-
let r = u.get(t) ?? {};
|
|
140
|
-
e.set(t, {
|
|
141
|
-
...r,
|
|
142
|
-
index: n
|
|
143
|
-
});
|
|
144
|
-
}), e;
|
|
145
|
-
}, [u, d]);
|
|
146
|
-
a(() => {
|
|
147
|
-
if (typeof MutationObserver != "function" || y.size === 0) return;
|
|
148
|
-
let e = new MutationObserver((e) => {
|
|
149
|
-
let t = /* @__PURE__ */ new Set(), n = (e) => t.has(e) ? t.delete(e) : t.add(e);
|
|
150
|
-
e.forEach((e) => {
|
|
151
|
-
e.removedNodes.forEach(n), e.addedNodes.forEach(n);
|
|
152
|
-
}), t.size === 0 && (g.current += 1, p(g.current));
|
|
153
|
-
});
|
|
154
|
-
return y.forEach((t, n) => {
|
|
155
|
-
n.parentElement && e.observe(n.parentElement, { childList: !0 });
|
|
156
|
-
}), () => {
|
|
157
|
-
e.disconnect();
|
|
158
|
-
};
|
|
159
|
-
}, [y]), a(() => {
|
|
160
|
-
g.current === d && (n.current.length !== y.size && (n.current.length = y.size), r && r.current.length !== y.size && (r.current.length = y.size), c.current = y.size), s(y);
|
|
161
|
-
}, [
|
|
162
|
-
s,
|
|
163
|
-
y,
|
|
164
|
-
n,
|
|
165
|
-
r,
|
|
166
|
-
d
|
|
167
|
-
]), a(() => () => {
|
|
168
|
-
n.current = [];
|
|
169
|
-
}, [n]), a(() => () => {
|
|
170
|
-
r && (r.current = []);
|
|
171
|
-
}, [r]);
|
|
172
|
-
let b = f((e) => (l.add(e), () => {
|
|
173
|
-
l.delete(e);
|
|
174
|
-
}));
|
|
175
|
-
a(() => {
|
|
176
|
-
l.forEach((e) => e(y));
|
|
177
|
-
}, [l, y]);
|
|
178
|
-
let x = m.useMemo(() => ({
|
|
179
|
-
register: _,
|
|
180
|
-
unregister: v,
|
|
181
|
-
subscribeMapChange: b,
|
|
182
|
-
elementsRef: n,
|
|
183
|
-
labelsRef: r,
|
|
184
|
-
nextIndexRef: c
|
|
185
|
-
}), [
|
|
186
|
-
_,
|
|
187
|
-
v,
|
|
188
|
-
b,
|
|
189
|
-
n,
|
|
190
|
-
r,
|
|
191
|
-
c
|
|
192
|
-
]);
|
|
193
|
-
return /*#__PURE__*/ (0, L.jsx)(h.Provider, {
|
|
194
|
-
value: x,
|
|
195
|
-
children: t
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
function z() {
|
|
199
|
-
return /* @__PURE__ */ new Map();
|
|
200
|
-
}
|
|
201
|
-
function B() {
|
|
202
|
-
return /* @__PURE__ */ new Set();
|
|
203
|
-
}
|
|
204
|
-
function V(e, t) {
|
|
205
|
-
let n = e.compareDocumentPosition(t);
|
|
206
|
-
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
207
|
-
}
|
|
208
|
-
//#endregion
|
|
209
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/isElementDisabled.mjs
|
|
210
|
-
function H(e) {
|
|
211
|
-
return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
|
|
215
|
-
function U(e, t) {
|
|
216
|
-
if (typeof e == "function") return e(t);
|
|
217
|
-
e != null && (e.current = t);
|
|
218
|
-
}
|
|
219
|
-
function W(...e) {
|
|
220
|
-
return (t) => {
|
|
221
|
-
let n = !1, r = e.map((e) => {
|
|
222
|
-
let r = U(e, t);
|
|
223
|
-
return !n && typeof r == "function" && (n = !0), r;
|
|
224
|
-
});
|
|
225
|
-
if (n) return () => {
|
|
226
|
-
for (let t = 0; t < r.length; t++) {
|
|
227
|
-
let n = r[t];
|
|
228
|
-
typeof n == "function" ? n() : U(e[t], null);
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
function G(...e) {
|
|
234
|
-
return m.useCallback(W(...e), e);
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
238
|
-
var K = class extends m.Component {
|
|
239
|
-
getSnapshotBeforeUpdate(e) {
|
|
240
|
-
let t = this.props.childRef.current;
|
|
241
|
-
if (r(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
242
|
-
let e = t.offsetParent, n = r(e) && e.offsetWidth || 0, i = r(e) && e.offsetHeight || 0, a = getComputedStyle(t), o = this.props.sizeRef.current;
|
|
243
|
-
o.height = parseFloat(a.height), o.width = parseFloat(a.width), o.top = t.offsetTop, o.left = t.offsetLeft, o.right = n - o.width - o.left, o.bottom = i - o.height - o.top, o.direction = a.direction;
|
|
244
|
-
}
|
|
245
|
-
return null;
|
|
246
|
-
}
|
|
247
|
-
componentDidUpdate() {}
|
|
248
|
-
render() {
|
|
249
|
-
return this.props.children;
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
function q({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
|
|
253
|
-
let o = (0, m.useId)(), s = (0, m.useRef)(null), c = (0, m.useRef)({
|
|
254
|
-
width: 0,
|
|
255
|
-
height: 0,
|
|
256
|
-
top: 0,
|
|
257
|
-
left: 0,
|
|
258
|
-
right: 0,
|
|
259
|
-
bottom: 0,
|
|
260
|
-
direction: "ltr"
|
|
261
|
-
}), { nonce: l } = (0, m.useContext)(u), d = G(s, e.props?.ref ?? e?.ref);
|
|
262
|
-
return (0, m.useInsertionEffect)(() => {
|
|
263
|
-
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
|
|
264
|
-
if (t || a === !1 || !s.current || !e || !u) return;
|
|
265
|
-
let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
|
|
266
|
-
s.current.dataset.motionPopId = o;
|
|
267
|
-
let y = document.createElement("style");
|
|
268
|
-
l && (y.nonce = l);
|
|
269
|
-
let b = i ?? document.head;
|
|
270
|
-
return b.appendChild(y), y.sheet && y.sheet.insertRule(`
|
|
271
|
-
[data-motion-pop-id="${o}"] {
|
|
272
|
-
position: absolute !important;
|
|
273
|
-
width: ${e}px !important;
|
|
274
|
-
height: ${u}px !important;
|
|
275
|
-
${_}px !important;
|
|
276
|
-
${v}px !important;
|
|
277
|
-
}
|
|
278
|
-
`), () => {
|
|
279
|
-
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
|
|
280
|
-
};
|
|
281
|
-
}, [t]), (0, L.jsx)(K, {
|
|
282
|
-
isPresent: t,
|
|
283
|
-
childRef: s,
|
|
284
|
-
sizeRef: c,
|
|
285
|
-
pop: a,
|
|
286
|
-
children: a === !1 ? e : m.cloneElement(e, { ref: d })
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
291
|
-
var J = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: a, presenceAffectsLayout: o, mode: l, anchorX: u, anchorY: d, root: f }) => {
|
|
292
|
-
let p = s(Y), h = (0, m.useId)(), g = (0, m.useRef)(n), _ = (0, m.useRef)(r);
|
|
293
|
-
i(() => {
|
|
294
|
-
g.current = n, _.current = r;
|
|
295
|
-
});
|
|
296
|
-
let v = !0, y = (0, m.useMemo)(() => (v = !1, {
|
|
297
|
-
id: h,
|
|
298
|
-
initial: t,
|
|
299
|
-
isPresent: n,
|
|
300
|
-
custom: a,
|
|
301
|
-
onExitComplete: (e) => {
|
|
302
|
-
p.set(e, !0);
|
|
303
|
-
for (let e of p.values()) if (!e) return;
|
|
304
|
-
r && r();
|
|
305
|
-
},
|
|
306
|
-
register: (e) => (p.set(e, !1), () => {
|
|
307
|
-
p.delete(e), !g.current && !p.size && _.current?.();
|
|
308
|
-
})
|
|
309
|
-
}), [
|
|
310
|
-
n,
|
|
311
|
-
p,
|
|
312
|
-
r
|
|
313
|
-
]);
|
|
314
|
-
return o && v && (y = { ...y }), (0, m.useMemo)(() => {
|
|
315
|
-
p.forEach((e, t) => p.set(t, !1));
|
|
316
|
-
}, [n]), m.useEffect(() => {
|
|
317
|
-
!n && !p.size && r && r();
|
|
318
|
-
}, [n]), e = (0, L.jsx)(q, {
|
|
319
|
-
pop: l === "popLayout",
|
|
320
|
-
isPresent: n,
|
|
321
|
-
anchorX: u,
|
|
322
|
-
anchorY: d,
|
|
323
|
-
root: f,
|
|
324
|
-
children: e
|
|
325
|
-
}), (0, L.jsx)(c.Provider, {
|
|
326
|
-
value: y,
|
|
327
|
-
children: e
|
|
328
|
-
});
|
|
329
|
-
};
|
|
330
|
-
function Y() {
|
|
331
|
-
return /* @__PURE__ */ new Map();
|
|
332
|
-
}
|
|
333
|
-
//#endregion
|
|
334
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
|
|
335
|
-
var X = (e) => e.key || "";
|
|
336
|
-
function Z(e) {
|
|
337
|
-
let t = [];
|
|
338
|
-
return m.Children.forEach(e, (e) => {
|
|
339
|
-
(0, m.isValidElement)(e) && t.push(e);
|
|
340
|
-
}), t;
|
|
341
|
-
}
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
344
|
-
var Q = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: a = !0, mode: o = "sync", propagate: c = !1, anchorX: u = "left", anchorY: f = "top", root: p }) => {
|
|
345
|
-
let [h, g] = d(c), _ = (0, m.useMemo)(() => Z(e), [e]), v = c && !h ? [] : _.map(X), y = (0, m.useRef)(!0), b = (0, m.useRef)(_), x = s(() => /* @__PURE__ */ new Map()), S = (0, m.useRef)(/* @__PURE__ */ new Set()), [C, w] = (0, m.useState)(_), [T, E] = (0, m.useState)(_);
|
|
346
|
-
i(() => {
|
|
347
|
-
y.current = !1, b.current = _;
|
|
348
|
-
for (let e = 0; e < T.length; e++) {
|
|
349
|
-
let t = X(T[e]);
|
|
350
|
-
v.includes(t) ? (x.delete(t), S.current.delete(t)) : x.get(t) !== !0 && x.set(t, !1);
|
|
351
|
-
}
|
|
352
|
-
}, [
|
|
353
|
-
T,
|
|
354
|
-
v.length,
|
|
355
|
-
v.join("-")
|
|
356
|
-
]);
|
|
357
|
-
let D = [];
|
|
358
|
-
if (_ !== C) {
|
|
359
|
-
let e = [..._];
|
|
360
|
-
for (let t = 0; t < T.length; t++) {
|
|
361
|
-
let n = T[t], r = X(n);
|
|
362
|
-
v.includes(r) || (e.splice(t, 0, n), D.push(n));
|
|
363
|
-
}
|
|
364
|
-
return o === "wait" && D.length && (e = D), E(Z(e)), w(_), null;
|
|
365
|
-
}
|
|
366
|
-
process.env.NODE_ENV !== "production" && o === "wait" && T.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
|
|
367
|
-
let { forceRender: O } = (0, m.useContext)(l);
|
|
368
|
-
return (0, L.jsx)(L.Fragment, { children: T.map((e) => {
|
|
369
|
-
let i = X(e), s = c && !h ? !1 : _ === T || v.includes(i);
|
|
370
|
-
return (0, L.jsx)(J, {
|
|
371
|
-
isPresent: s,
|
|
372
|
-
initial: !y.current || n ? void 0 : !1,
|
|
373
|
-
custom: t,
|
|
374
|
-
presenceAffectsLayout: a,
|
|
375
|
-
mode: o,
|
|
376
|
-
root: p,
|
|
377
|
-
onExitComplete: s ? void 0 : () => {
|
|
378
|
-
if (S.current.has(i)) return;
|
|
379
|
-
if (x.has(i)) S.current.add(i), x.set(i, !0);
|
|
380
|
-
else return;
|
|
381
|
-
let e = !0;
|
|
382
|
-
x.forEach((t) => {
|
|
383
|
-
t || (e = !1);
|
|
384
|
-
}), e && (O?.(), E(b.current), c && g?.(), r && r());
|
|
385
|
-
},
|
|
386
|
-
anchorX: u,
|
|
387
|
-
anchorY: f,
|
|
388
|
-
children: e
|
|
389
|
-
}, i);
|
|
390
|
-
}) });
|
|
391
|
-
};
|
|
392
|
-
//#endregion
|
|
393
|
-
export { N as _, O as a, v as b, y as c, w as d, T as f, D as g, E as h, b as i, k as l, A as m, H as n, x as o, j as p, R as r, S as s, Q as t, C as u, P as v, _ as y };
|