@mcp-use/inspector 12.0.4-canary.1 → 20.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -6
- package/dist/cdn/AnimatePresence-B4HhIdgq.js +393 -0
- package/dist/cdn/ChatTab-D8uwCHAf.js +13218 -0
- package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
- package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +873 -0
- package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +145 -0
- package/dist/cdn/ElicitationTab-upPXq2q7.js +654 -0
- package/dist/cdn/FormContext-Cl51-7O7.js +135 -0
- package/dist/cdn/InspectorContext-DzXtgyTx.js +143 -0
- package/dist/cdn/JSONDisplay-D3RcyO9z.js +324 -0
- package/dist/cdn/ListTabHeader-8lULn-90.js +88 -0
- package/dist/cdn/ManufactOAuthCallback-DEM8mhWD.js +31 -0
- package/dist/cdn/NotificationsTab-CWopTIzT.js +290 -0
- package/dist/cdn/OAuthCallback-k3oeLtIC.js +58 -0
- package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
- package/dist/cdn/ResourcesTab-KfamsM6-.js +584 -0
- package/dist/cdn/SamplingTab-vcufuK24.js +658 -0
- package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
- package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
- package/dist/cdn/ToolsTab-DRjcZnpu.js +2067 -0
- package/dist/cdn/ViewPreview-B_onhcUB.js +237 -0
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
- package/dist/cdn/WidgetWrapper-D29YDxIu.js +2211 -0
- package/dist/cdn/apple-touch-icon.png +0 -0
- package/dist/cdn/basePath-B8HuhIMu.js +25 -0
- package/dist/cdn/bell-CGjAO_0s.js +10 -0
- package/dist/cdn/browser-CbQIH4w2.js +42 -0
- package/dist/cdn/brush-B_mKhyxG.js +17 -0
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +1953 -0
- package/dist/cdn/card-DqjqAq0o.js +41 -0
- package/dist/cdn/cfWorker-Bxcs9rNe.js +10799 -0
- package/dist/cdn/checkbox-B4oUG6Rr.js +20 -0
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +17500 -0
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +1508 -0
- package/dist/cdn/clock-CmUbSx_B.js +12 -0
- package/dist/cdn/code-V_0nf5rg.js +10 -0
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +38 -0
- package/dist/cdn/dialog-Dnl-pZsY.js +1028 -0
- package/dist/cdn/dist-DjXr_YO3.js +616 -0
- package/dist/cdn/dist-mRDqCgKU.js +2305 -0
- package/dist/cdn/external-link-CjmfT6rW.js +17 -0
- package/dist/cdn/eye-B7H96av8.js +29 -0
- package/dist/cdn/favicon-96x96.png +0 -0
- package/dist/cdn/favicon-black.svg +5 -8
- package/dist/cdn/favicon-white.svg +4 -7
- package/dist/cdn/favicon.ico +0 -0
- package/dist/cdn/favicon.svg +5 -0
- package/dist/cdn/folder-open-B3lu2rG_.js +7 -0
- package/dist/cdn/hash-BVQnWi7q.js +33 -0
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +36 -0
- package/dist/cdn/history-Csw4rb44.js +17 -0
- package/dist/cdn/index-browser-CVUwR-Bu.js +1934 -0
- package/dist/cdn/info-CNiOwqkf.js +19 -0
- package/dist/cdn/input-BLxOA7V-.js +10215 -0
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +4 -0
- package/dist/cdn/inspector.css +1 -2
- package/dist/cdn/inspector.js +10860 -133725
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +180 -0
- package/dist/cdn/label-CBvG613A.js +60 -0
- package/dist/cdn/loader-circle-BLy9A_pp.js +7 -0
- package/dist/cdn/manufact-auth-0TVxpeTA.js +387 -0
- package/dist/cdn/maximize-2-CH5Lq90B.js +21 -0
- package/dist/cdn/maximize-BALCV_ep.js +21 -0
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +2 -0
- package/dist/cdn/message-square-BnxdpJxZ.js +7 -0
- package/dist/cdn/not-found-BcNNsTjS.js +34 -0
- package/dist/cdn/pdf-CxFT9FER.js +16291 -0
- package/dist/cdn/play-vuZ5PLnI.js +7 -0
- package/dist/cdn/popover-C_SSrXT0.js +2005 -0
- package/dist/cdn/react-BIs9pQ3H.js +926 -0
- package/dist/cdn/react-BxO-uEDZ.js +5417 -0
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +21 -0
- package/dist/cdn/save-Tgil_AJZ.js +34 -0
- package/dist/cdn/schemaHelpers-DTV38jGq.js +16 -0
- package/dist/cdn/select-BZ_IoKxg.js +2594 -0
- package/dist/cdn/servers-Dm72iTpY.js +26 -0
- package/dist/cdn/shared-uMiV6Fx1.js +1700 -0
- package/dist/cdn/sheet-CerCdhxz.js +78 -0
- package/dist/cdn/site.webmanifest +21 -0
- package/dist/cdn/sparkles-BntO2rDR.js +23 -0
- package/dist/cdn/spinner-CWcJhIY_.js +15 -0
- package/dist/cdn/square-check-big-BvwQ17Bl.js +10 -0
- package/dist/cdn/switch-DtQOLb9R.js +664 -0
- package/dist/cdn/tabs-subtle-C5cy35sY.js +787 -0
- package/dist/cdn/telemetry-Ct6pVkM1.js +240 -0
- package/dist/cdn/textarea-Bj-CT7hC.js +14 -0
- package/dist/cdn/trash-2-RwpJY5SL.js +25 -0
- package/dist/cdn/useAriaLabelledBy-Bm9qHGK6.js +29 -0
- package/dist/cdn/useCompositeItem-CNJ6MXdi.js +26 -0
- package/dist/cdn/useConfig-CwxZ6Quj.js +208 -0
- package/dist/cdn/useHostedSession-BA39Aegc.js +153 -0
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +104 -0
- package/dist/cdn/useSavedRequests-Ci2I919u.js +51 -0
- package/dist/cdn/useViewHostProps-Dr6W2ooF.js +348 -0
- package/dist/cdn/web-app-manifest-192x192.png +0 -0
- package/dist/cdn/web-app-manifest-512x512.png +0 -0
- package/dist/cdn/wrench-DzGmCfnb.js +7 -0
- package/dist/cdn/x-C3vRQIYu.js +10 -0
- package/dist/cdn/zap-Mb-pbw2X.js +10 -0
- package/dist/cli.js +1143 -3582
- package/dist/client/auth/manufact-auth.d.ts +30 -0
- package/dist/client/auth/manufact-auth.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +4 -0
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +28 -0
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +1 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts +5 -0
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +1 -0
- package/dist/client/chat-history/ChatList.d.ts +18 -0
- package/dist/client/chat-history/ChatList.d.ts.map +1 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts +10 -0
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +1 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +13 -0
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +1 -0
- package/dist/client/chat-history/chat-title.d.ts +10 -0
- package/dist/client/chat-history/chat-title.d.ts.map +1 -0
- package/dist/client/chat-history/providers/local-storage.d.ts +21 -0
- package/dist/client/chat-history/providers/local-storage.d.ts.map +1 -0
- package/dist/client/chat-history/types.d.ts +39 -0
- package/dist/client/chat-history/types.d.ts.map +1 -0
- package/dist/client/chat-history/useChatHistory.d.ts +20 -0
- package/dist/client/chat-history/useChatHistory.d.ts.map +1 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +17 -0
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +1 -0
- package/dist/client/components/AddToClientDropdown.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +28 -3
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/IframeConsole.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +2 -18
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/PromptsTab.d.ts +1 -1
- package/dist/client/components/PromptsTab.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts +3 -3
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +2 -1
- package/dist/client/components/chat/AssistantMessage.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +20 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInput.d.ts +6 -2
- package/dist/client/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +31 -3
- package/dist/client/components/chat/ChatInputArea.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +5 -42
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +1 -0
- package/dist/client/components/chat/ChatTraceView.d.ts +7 -0
- package/dist/client/components/chat/ChatTraceView.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +12 -2
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +2 -5
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/CopyButton.d.ts.map +1 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +10 -0
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +1 -0
- package/dist/client/components/chat/MessageList.d.ts +6 -11
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +7 -0
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +1 -0
- package/dist/client/components/chat/PromptsDropdown.d.ts +1 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +7 -0
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts +11 -0
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +1 -0
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +2 -9
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/ToolSelector.d.ts.map +1 -1
- package/dist/client/components/chat/UserMessage.d.ts +2 -1
- package/dist/client/components/chat/UserMessage.d.ts.map +1 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +6 -0
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +1 -0
- package/dist/client/components/chat/conversion.d.ts +1 -1
- package/dist/client/components/chat/conversion.d.ts.map +1 -1
- package/dist/client/components/chat/freeTier.d.ts +11 -0
- package/dist/client/components/chat/freeTier.d.ts.map +1 -1
- package/dist/client/components/chat/providerMeta.d.ts +10 -1
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/streamdown-code-slim.d.ts +4 -0
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +5 -0
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/types.d.ts +8 -0
- package/dist/client/components/chat/system-prompt/types.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +3 -0
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +1 -0
- package/dist/client/components/chat/system-prompt-default.d.ts +2 -0
- package/dist/client/components/chat/system-prompt-default.d.ts.map +1 -0
- package/dist/client/components/chat/trace.d.ts +84 -0
- package/dist/client/components/chat/trace.d.ts.map +1 -0
- package/dist/client/components/chat/types.d.ts +2 -1
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +4 -0
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +14 -2
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +13 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -0
- package/dist/client/components/chat/useConfig.d.ts +2 -2
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +14 -0
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts +14 -0
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +1 -0
- package/dist/client/components/chat/utils.d.ts +0 -4
- package/dist/client/components/chat/utils.d.ts.map +1 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +12 -0
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +1 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +9 -0
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +1 -0
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +1 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +1 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +1 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts +1 -1
- package/dist/client/components/prompts/PromptsList.d.ts.map +1 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +1 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +1 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts +1 -1
- package/dist/client/components/resources/ResourcesList.d.ts.map +1 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +6 -0
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +1 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts +9 -0
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +1 -0
- package/dist/client/components/shared/JSONDisplay.d.ts +5 -1
- package/dist/client/components/shared/JSONDisplay.d.ts.map +1 -1
- package/dist/client/components/shared/ListItem.d.ts +1 -3
- package/dist/client/components/shared/ListItem.d.ts.map +1 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +4 -1
- package/dist/client/components/shared/ListTabHeader.d.ts.map +1 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +28 -0
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +1 -0
- package/dist/client/components/shared/StatusIcon.d.ts +12 -0
- package/dist/client/components/shared/StatusIcon.d.ts.map +1 -0
- package/dist/client/components/shared/index.d.ts +4 -1
- package/dist/client/components/shared/index.d.ts.map +1 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +1 -1
- package/dist/client/components/tools/ToolInputForm.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -6
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/ToolsList.d.ts +1 -1
- package/dist/client/components/tools/ToolsList.d.ts.map +1 -1
- package/dist/client/components/tools/useToolExecution.d.ts +26 -0
- package/dist/client/components/tools/useToolExecution.d.ts.map +1 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +35 -0
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -0
- package/dist/client/components/ui/WidgetWrapper.d.ts +2 -2
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +1 -1
- package/dist/client/components/ui/alert-dialog.d.ts +8 -5
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +80 -0
- package/dist/client/components/ui/ask-user-questions.d.ts.map +1 -0
- package/dist/client/components/ui/badge.d.ts +32 -7
- package/dist/client/components/ui/badge.d.ts.map +1 -1
- package/dist/client/components/ui/button.d.ts +31 -11
- package/dist/client/components/ui/button.d.ts.map +1 -1
- package/dist/client/components/ui/chat-message.d.ts +23 -0
- package/dist/client/components/ui/chat-message.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +2 -3
- package/dist/client/components/ui/checkbox.d.ts.map +1 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -4
- package/dist/client/components/ui/client-icons.d.ts.map +1 -1
- package/dist/client/components/ui/command.d.ts +13 -64
- package/dist/client/components/ui/command.d.ts.map +1 -1
- package/dist/client/components/ui/dialog.d.ts +36 -12
- package/dist/client/components/ui/dialog.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +17 -48
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/client/components/ui/dropdown.d.ts +30 -0
- package/dist/client/components/ui/dropdown.d.ts.map +1 -0
- package/dist/client/components/ui/file-thumbnail.d.ts +9 -0
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -0
- package/dist/client/components/ui/label.d.ts +1 -2
- package/dist/client/components/ui/label.d.ts.map +1 -1
- package/dist/client/components/ui/menu-item.d.ts +52 -0
- package/dist/client/components/ui/menu-item.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +10 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -0
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/components/ui/popover.d.ts +4 -5
- package/dist/client/components/ui/popover.d.ts.map +1 -1
- package/dist/client/components/ui/scroll-area.d.ts +4 -0
- package/dist/client/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/client/components/ui/select.d.ts +50 -9
- package/dist/client/components/ui/select.d.ts.map +1 -1
- package/dist/client/components/ui/sheet.d.ts +9 -7
- package/dist/client/components/ui/sheet.d.ts.map +1 -1
- package/dist/client/components/ui/skeleton.d.ts +4 -0
- package/dist/client/components/ui/skeleton.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +1 -1
- package/dist/client/components/ui/spinner.d.ts.map +1 -1
- package/dist/client/components/ui/switch.d.ts +19 -7
- package/dist/client/components/ui/switch.d.ts.map +1 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +25 -0
- package/dist/client/components/ui/tabs-subtle.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +41 -6
- package/dist/client/components/ui/tooltip.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts +6 -10
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +2 -3
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/use-merge-split.d.ts +36 -0
- package/dist/client/hooks/use-merge-split.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts +27 -0
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +1 -0
- package/dist/client/hooks/use-proximity-hover.d.ts +26 -0
- package/dist/client/hooks/use-proximity-hover.d.ts.map +1 -0
- package/dist/client/hooks/use-touch-primary.d.ts +2 -0
- package/dist/client/hooks/use-touch-primary.d.ts.map +1 -0
- package/dist/client/hooks/useHostedSession.d.ts +4 -14
- package/dist/client/hooks/useHostedSession.d.ts.map +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +1 -1
- package/dist/client/hooks/useMCPPrompts.d.ts.map +1 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +2 -2
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts +1 -1
- package/dist/client/hooks/usePropsLLM.d.ts.map +1 -1
- package/dist/client/hooks/useSavedRequests.d.ts +6 -0
- package/dist/client/hooks/useSavedRequests.d.ts.map +1 -0
- package/dist/client/hooks/useViewHostProps.d.ts +19 -0
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -0
- package/dist/client/index.d.ts +19 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +19306 -16141
- package/dist/client/lib/elevated.d.ts +28 -0
- package/dist/client/lib/elevated.d.ts.map +1 -0
- package/dist/client/lib/font-weight.d.ts +10 -0
- package/dist/client/lib/font-weight.d.ts.map +1 -0
- package/dist/client/lib/icon-context.d.ts +15 -0
- package/dist/client/lib/icon-context.d.ts.map +1 -0
- package/dist/client/lib/shape-context.d.ts +21 -0
- package/dist/client/lib/shape-context.d.ts.map +1 -0
- package/dist/client/lib/springs.d.ts +32 -0
- package/dist/client/lib/springs.d.ts.map +1 -0
- package/dist/client/lib/surface-classes.d.ts +2 -0
- package/dist/client/lib/surface-classes.d.ts.map +1 -0
- package/dist/client/lib/surface-context.d.ts +7 -0
- package/dist/client/lib/surface-context.d.ts.map +1 -0
- package/dist/client/lib/utils.d.ts +1 -1
- package/dist/client/lib/utils.d.ts.map +1 -1
- package/dist/client/mcp-apps/csp.d.ts +26 -0
- package/dist/client/mcp-apps/csp.d.ts.map +1 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +17 -0
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +1 -0
- package/dist/client/mcp-apps/logging-transport.d.ts +13 -0
- package/dist/client/mcp-apps/logging-transport.d.ts.map +1 -0
- package/dist/client/rpc-traffic-coalesce.d.ts +7 -0
- package/dist/client/rpc-traffic-coalesce.d.ts.map +1 -0
- package/dist/client/rpc-traffic-store.d.ts +37 -0
- package/dist/client/rpc-traffic-store.d.ts.map +1 -0
- package/dist/client/telemetry/capture.d.ts +7 -0
- package/dist/client/telemetry/capture.d.ts.map +1 -0
- package/dist/client/telemetry/events.d.ts +1 -1
- package/dist/client/telemetry/events.d.ts.map +1 -1
- package/dist/client/telemetry/index.d.ts +2 -1
- package/dist/client/telemetry/index.d.ts.map +1 -1
- package/dist/client/telemetry/init.d.ts +2 -0
- package/dist/client/telemetry/init.d.ts.map +1 -0
- package/dist/client/telemetry/utils.d.ts +5 -0
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/types/message-content-block.d.ts +19 -0
- package/dist/client/types/message-content-block.d.ts.map +1 -0
- package/dist/client/types/pending-requests.d.ts +17 -0
- package/dist/client/types/pending-requests.d.ts.map +1 -0
- package/dist/client/utils/basePath.d.ts +34 -0
- package/dist/client/utils/basePath.d.ts.map +1 -0
- package/dist/client/utils/browser.d.ts +5 -0
- package/dist/client/utils/browser.d.ts.map +1 -0
- package/dist/client/utils/format.d.ts +4 -0
- package/dist/client/utils/format.d.ts.map +1 -0
- package/dist/client/utils/highlightJson.d.ts +11 -0
- package/dist/client/utils/highlightJson.d.ts.map +1 -0
- package/dist/client/utils/jsonUtils.d.ts +4 -0
- package/dist/client/utils/jsonUtils.d.ts.map +1 -1
- package/dist/client/utils/mcpClientUtils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +14 -0
- package/dist/client/utils/servers.d.ts.map +1 -0
- package/dist/server/asset-urls.d.ts +14 -0
- package/dist/server/asset-urls.d.ts.map +1 -0
- package/dist/server/asset-urls.js +13 -0
- package/dist/server/cdn-shell.d.ts +18 -0
- package/dist/server/cdn-shell.d.ts.map +1 -0
- package/dist/server/cdn-shell.js +12 -0
- package/dist/server/chunk-5B3SXGZP.js +43 -0
- package/dist/server/chunk-6XWDZEFF.js +194 -0
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/{chunk-57KIBVKX.js → chunk-IXYK6ZOY.js} +27 -26
- package/dist/server/chunk-J4FNYLBF.js +54 -0
- package/dist/server/chunk-K2F2AJOI.js +619 -0
- package/dist/server/chunk-K2V2SDQD.js +40 -0
- package/dist/server/chunk-KBVKS4J5.js +53 -0
- package/dist/server/chunk-M5TZA42I.js +54 -0
- package/dist/server/chunk-VDUV6LR6.js +137 -0
- package/dist/server/chunk-WFT4JHYI.js +24 -0
- package/dist/server/{chunk-R4ISUE7T.js → chunk-Y2GBQOQW.js} +32 -33
- package/dist/server/cli.js +25 -25
- package/dist/server/create-dev-api-app.d.ts +4 -0
- package/dist/server/create-dev-api-app.d.ts.map +1 -0
- package/dist/server/create-dev-api-app.js +11 -0
- package/dist/server/favicon-links.d.ts +12 -0
- package/dist/server/favicon-links.d.ts.map +1 -0
- package/dist/server/favicon-links.js +11 -0
- package/dist/server/favicon-static.d.ts +4 -0
- package/dist/server/favicon-static.d.ts.map +1 -0
- package/dist/server/favicon-static.js +8 -0
- package/dist/server/index.d.ts +3 -4
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +15 -17
- package/dist/server/middleware.d.ts +14 -3
- package/dist/server/middleware.d.ts.map +1 -1
- package/dist/server/middleware.js +11 -9
- package/dist/server/proxy/index.d.ts +3 -0
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/server/proxy/index.js +12 -0
- package/dist/server/proxy/mcp-proxy.d.ts +99 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -0
- package/dist/server/proxy/mcp-proxy.js +8 -0
- package/dist/server/proxy/oauth-proxy.d.ts +26 -0
- package/dist/server/proxy/oauth-proxy.d.ts.map +1 -0
- package/dist/server/proxy/oauth-proxy.js +9 -0
- package/dist/server/proxy-routes.d.ts +16 -0
- package/dist/server/proxy-routes.d.ts.map +1 -0
- package/dist/server/proxy-routes.js +10 -0
- package/dist/server/rpc-log-bus.js +73 -3
- package/dist/server/server.d.ts +3 -8
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +15 -92
- package/dist/server/static-assets.d.ts +5 -0
- package/dist/server/static-assets.d.ts.map +1 -0
- package/dist/server/static-assets.js +9 -0
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.d.ts +4 -0
- package/dist/server/vite-dev-api-plugin.d.ts.map +1 -0
- package/dist/server/vite-dev-api-plugin.js +30 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-CthXziG2.js +9 -0
- package/dist/web/assets/ChatTab-Cy8eyFYI.js +460 -0
- package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +1 -0
- package/dist/web/assets/ElicitationTab-wDKgU1qL.js +1 -0
- package/dist/web/assets/FormContext-Cqc_A12u.js +1 -0
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +1 -0
- package/dist/web/assets/ManufactOAuthCallback-DCLbW-mz.js +1 -0
- package/dist/web/assets/NotificationsTab-JevzvJTg.js +1 -0
- package/dist/web/assets/OAuthCallback-BjcRxLh5.js +1 -0
- package/dist/web/assets/PromptsTab-DsQVOjKH.js +61 -0
- package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +2 -0
- package/dist/web/assets/SamplingTab-BrcF1zJF.js +1 -0
- package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +1 -0
- package/dist/web/assets/ToolsTab-DJWF7Q_x.js +8 -0
- package/dist/web/assets/ViewPreview-jgeU7bY9.js +1 -0
- package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +34 -0
- package/dist/web/assets/brush--0LobUi4.js +1 -0
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +1 -0
- package/dist/web/assets/checkbox-BA-XURSj.js +1 -0
- package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +131 -0
- package/dist/web/assets/code-tME-5H6D.js +1 -0
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +1 -0
- package/dist/web/assets/dist-BcAQZluc.js +21 -0
- package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +1 -0
- package/dist/web/assets/index-BjH-Qp85.css +1 -0
- package/dist/web/assets/index-D2UxaT9v.js +475 -0
- package/dist/web/assets/input-CjmxOFr6.js +1 -0
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +1 -0
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +1 -0
- package/dist/web/assets/label-B5Q_Zr8M.js +1 -0
- package/dist/web/assets/maximize-2-BTT9QQU9.js +1 -0
- package/dist/web/assets/maximize-_O55kFcr.js +1 -0
- package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +1 -0
- package/dist/web/assets/pdf-CuwKm9zO.js +54 -0
- package/dist/web/assets/react-CU_d2d5K.js +1 -0
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +1 -0
- package/dist/web/assets/save-B-MsgxX9.js +1 -0
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +1 -0
- package/dist/web/assets/select-C0xlfLAa.js +1 -0
- package/dist/web/assets/shared-DQE60Op-.js +1 -0
- package/dist/web/assets/sheet-7TIkLdpr.js +1 -0
- package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
- package/dist/web/assets/tabs-subtle-AkJZvdxS.js +1 -0
- package/dist/web/assets/textarea-Ci09-en6.js +1 -0
- package/dist/web/assets/useConfig-Qglo4xs1.js +1 -0
- package/dist/web/assets/useMCPPrompts-USLYc1I4.js +1 -0
- package/dist/web/assets/useViewHostProps-DXAD1g7g.js +1 -0
- package/dist/web/assets/zap-Du2Uc5pa.js +1 -0
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +5 -8
- package/dist/web/favicon-white.svg +4 -7
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +13 -20
- package/dist/web/site.webmanifest +21 -0
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- package/package.json +30 -31
- package/dist/client/components/FullscreenNavbar.d.ts +0 -9
- package/dist/client/components/FullscreenNavbar.d.ts.map +0 -1
- package/dist/client/components/LoginModal.d.ts +0 -11
- package/dist/client/components/LoginModal.d.ts.map +0 -1
- package/dist/client/components/MCPAppsRenderer.d.ts +0 -53
- package/dist/client/components/MCPAppsRenderer.d.ts.map +0 -1
- package/dist/client/components/McpUIRenderer.d.ts +0 -19
- package/dist/client/components/McpUIRenderer.d.ts.map +0 -1
- package/dist/client/components/OpenAIComponentRenderer.d.ts +0 -51
- package/dist/client/components/OpenAIComponentRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/InlineElicitationCard.d.ts +0 -10
- package/dist/client/components/chat/InlineElicitationCard.d.ts.map +0 -1
- package/dist/client/components/chat/MCPUIResource.d.ts +0 -11
- package/dist/client/components/chat/MCPUIResource.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts +0 -21
- package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/index.d.ts +0 -3
- package/dist/client/components/elicitation/shared/index.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts +0 -23
- package/dist/client/components/elicitation/shared/useElicitationForm.d.ts.map +0 -1
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts +0 -20
- package/dist/client/components/logging/JsonRpcLoggerView.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsTabHeader.d.ts +0 -17
- package/dist/client/components/prompts/PromptsTabHeader.d.ts.map +0 -1
- package/dist/client/components/prompts/index.d.ts +0 -6
- package/dist/client/components/prompts/index.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesTabHeader.d.ts +0 -16
- package/dist/client/components/resources/ResourcesTabHeader.d.ts.map +0 -1
- package/dist/client/components/resources/index.d.ts +0 -4
- package/dist/client/components/resources/index.d.ts.map +0 -1
- package/dist/client/components/shared/RpcPanel.d.ts +0 -21
- package/dist/client/components/shared/RpcPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsTabHeader.d.ts +0 -17
- package/dist/client/components/tools/ToolsTabHeader.d.ts.map +0 -1
- package/dist/client/components/tools/index.d.ts +0 -7
- package/dist/client/components/tools/index.d.ts.map +0 -1
- package/dist/client/components/ui/SandboxedIframe.d.ts +0 -64
- package/dist/client/components/ui/SandboxedIframe.d.ts.map +0 -1
- package/dist/client/components/ui/aurora-background.d.ts +0 -9
- package/dist/client/components/ui/aurora-background.d.ts.map +0 -1
- package/dist/client/constants/iframe.d.ts +0 -9
- package/dist/client/constants/iframe.d.ts.map +0 -1
- package/dist/client/constants/index.d.ts +0 -7
- package/dist/client/constants/index.d.ts.map +0 -1
- package/dist/client/constants/mcp-apps.d.ts +0 -39
- package/dist/client/constants/mcp-apps.d.ts.map +0 -1
- package/dist/client/hooks/usePrismTheme.d.ts +0 -5
- package/dist/client/hooks/usePrismTheme.d.ts.map +0 -1
- package/dist/client/lib/use-sandbox-remount-generation.d.ts +0 -9
- package/dist/client/lib/use-sandbox-remount-generation.d.ts.map +0 -1
- package/dist/client/lib/widget-fullscreen.d.ts +0 -17
- package/dist/client/lib/widget-fullscreen.d.ts.map +0 -1
- package/dist/client/telemetry/telemetry.d.ts +0 -42
- package/dist/client/telemetry/telemetry.d.ts.map +0 -1
- package/dist/client/types/elicitation.d.ts +0 -9
- package/dist/client/types/elicitation.d.ts.map +0 -1
- package/dist/client/utils/clipboard.d.ts +0 -6
- package/dist/client/utils/clipboard.d.ts.map +0 -1
- package/dist/client/utils/iframeConsoleInterceptor.d.ts +0 -6
- package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +0 -1
- package/dist/client/utils/widget-detection.d.ts +0 -31
- package/dist/client/utils/widget-detection.d.ts.map +0 -1
- package/dist/llm/__tests__/messageFormat.test.d.ts +0 -2
- package/dist/llm/__tests__/messageFormat.test.d.ts.map +0 -1
- package/dist/llm/__tests__/providerToolResults.test.d.ts +0 -2
- package/dist/llm/__tests__/providerToolResults.test.d.ts.map +0 -1
- package/dist/llm/__tests__/toolResultParts.test.d.ts +0 -2
- package/dist/llm/__tests__/toolResultParts.test.d.ts.map +0 -1
- package/dist/llm/messageFormat.d.ts +0 -48
- package/dist/llm/messageFormat.d.ts.map +0 -1
- package/dist/llm/ndjson.d.ts +0 -5
- package/dist/llm/ndjson.d.ts.map +0 -1
- package/dist/llm/providers/anthropic.d.ts +0 -19
- package/dist/llm/providers/anthropic.d.ts.map +0 -1
- package/dist/llm/providers/google.d.ts +0 -19
- package/dist/llm/providers/google.d.ts.map +0 -1
- package/dist/llm/providers/index.d.ts +0 -19
- package/dist/llm/providers/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/index.d.ts +0 -18
- package/dist/llm/providers/ollama/index.d.ts.map +0 -1
- package/dist/llm/providers/ollama/utils.d.ts +0 -7
- package/dist/llm/providers/ollama/utils.d.ts.map +0 -1
- package/dist/llm/providers/openai.d.ts +0 -19
- package/dist/llm/providers/openai.d.ts.map +0 -1
- package/dist/llm/schemaUtils.d.ts +0 -2
- package/dist/llm/schemaUtils.d.ts.map +0 -1
- package/dist/llm/sse.d.ts +0 -15
- package/dist/llm/sse.d.ts.map +0 -1
- package/dist/llm/toolLoop.d.ts +0 -40
- package/dist/llm/toolLoop.d.ts.map +0 -1
- package/dist/llm/toolResultParts.d.ts +0 -28
- package/dist/llm/toolResultParts.d.ts.map +0 -1
- package/dist/llm/types.d.ts +0 -102
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/server/chunk-A4VH7AIP.js +0 -738
- package/dist/server/chunk-CVECQ7BJ.js +0 -78
- package/dist/server/chunk-IDMHJUEM.js +0 -42
- package/dist/server/chunk-JWSNP6DN.js +0 -164
- package/dist/server/chunk-LJ4XSPDK.js +0 -322
- package/dist/server/chunk-OBMEB36B.js +0 -71
- package/dist/server/chunk-PJNKFX2R.js +0 -2351
- package/dist/server/chunk-QQ37LGLJ.js +0 -127
- package/dist/server/chunk-UTW44YSH.js +0 -322
- package/dist/server/file-utils.d.ts +0 -11
- package/dist/server/file-utils.d.ts.map +0 -1
- package/dist/server/file-utils.js +0 -11
- package/dist/server/routes/mcp-apps.d.ts +0 -12
- package/dist/server/routes/mcp-apps.d.ts.map +0 -1
- package/dist/server/shared-routes.d.ts +0 -11
- package/dist/server/shared-routes.d.ts.map +0 -1
- package/dist/server/shared-routes.js +0 -11
- package/dist/server/shared-static.d.ts +0 -57
- package/dist/server/shared-static.d.ts.map +0 -1
- package/dist/server/shared-static.js +0 -11
- package/dist/server/shared-utils.d.ts +0 -175
- package/dist/server/shared-utils.d.ts.map +0 -1
- package/dist/server/shared-utils.js +0 -21
- package/dist/server/transport-wrapper.d.ts +0 -6
- package/dist/server/transport-wrapper.d.ts.map +0 -1
- package/dist/server/transport-wrapper.js +0 -68
- package/dist/server/tunnel.d.ts +0 -11
- package/dist/server/tunnel.d.ts.map +0 -1
- package/dist/server/tunnel.js +0 -13
- package/dist/web/assets/1c-Ck39aYGA.js +0 -1
- package/dist/web/assets/abnf-BuzL1jyp.js +0 -1
- package/dist/web/assets/accesslog-C4d8zjYK.js +0 -1
- package/dist/web/assets/actionscript-yhwXJGpA.js +0 -1
- package/dist/web/assets/ada-DS7GMjM1.js +0 -1
- package/dist/web/assets/angelscript-BNqWtPa-.js +0 -1
- package/dist/web/assets/apache-CDWq3Rq5.js +0 -1
- package/dist/web/assets/applescript-8S6EVXRM.js +0 -1
- package/dist/web/assets/arcade-DC7EGdDp.js +0 -1
- package/dist/web/assets/arduino-8rhiPNbi.js +0 -1
- package/dist/web/assets/armasm-CXSk1xrZ.js +0 -1
- package/dist/web/assets/asciidoc-Cky4dUsA.js +0 -1
- package/dist/web/assets/aspectj-Dq_7W5m_.js +0 -1
- package/dist/web/assets/autohotkey-BNhcw-Zd.js +0 -1
- package/dist/web/assets/autoit-B6QVlGNy.js +0 -1
- package/dist/web/assets/avrasm-CHV0d4It.js +0 -1
- package/dist/web/assets/awk-DCB3Eg4O.js +0 -1
- package/dist/web/assets/axapta-Dxohu7yY.js +0 -1
- package/dist/web/assets/bash-Bvq6q0eu.js +0 -1
- package/dist/web/assets/basic-B6HvpaoU.js +0 -1
- package/dist/web/assets/bnf-CuNWJiZD.js +0 -1
- package/dist/web/assets/brainfuck-CwbwmNek.js +0 -3
- package/dist/web/assets/c-J3NpqNLd.js +0 -1
- package/dist/web/assets/c-like-CEyttHu3.js +0 -1
- package/dist/web/assets/cal-De1Inhwg.js +0 -1
- package/dist/web/assets/capnproto-Dfm52ju9.js +0 -1
- package/dist/web/assets/ceylon-C7k7iR7b.js +0 -1
- package/dist/web/assets/clean-BApy5Jiy.js +0 -1
- package/dist/web/assets/clojure-D99J3Nqd.js +0 -1
- package/dist/web/assets/clojure-repl-C-7y8JbJ.js +0 -1
- package/dist/web/assets/cmake-Cyp9hqgM.js +0 -1
- package/dist/web/assets/coffeescript-Di8oatND.js +0 -1
- package/dist/web/assets/coq-CTcQXuml.js +0 -1
- package/dist/web/assets/core-Dn-Gjdkn.js +0 -4
- package/dist/web/assets/cos-B5PyisGk.js +0 -1
- package/dist/web/assets/cpp-CpoL8Vn2.js +0 -1
- package/dist/web/assets/crmsh-BzEJ2UMf.js +0 -1
- package/dist/web/assets/crystal-DwthdjeS.js +0 -1
- package/dist/web/assets/csharp-DX0uiYC_.js +0 -1
- package/dist/web/assets/csp-Dz_hLI0l.js +0 -1
- package/dist/web/assets/css-CBX-iPig.js +0 -1
- package/dist/web/assets/d-BFcEc2Wd.js +0 -1
- package/dist/web/assets/dart-XM_3t8vN.js +0 -1
- package/dist/web/assets/delphi-DoGEkNsl.js +0 -1
- package/dist/web/assets/diff-DmFtonrj.js +0 -1
- package/dist/web/assets/django-BdZ5M382.js +0 -1
- package/dist/web/assets/dns-D08imUXg.js +0 -1
- package/dist/web/assets/dockerfile-B5VmPrWY.js +0 -1
- package/dist/web/assets/dos-CGSFxCkI.js +0 -1
- package/dist/web/assets/dsconfig-ca2r_GVK.js +0 -1
- package/dist/web/assets/dts-JQegxFM5.js +0 -1
- package/dist/web/assets/dust-Djaschl2.js +0 -1
- package/dist/web/assets/ebnf-CZryUL-X.js +0 -1
- package/dist/web/assets/elixir-D0_cpeEe.js +0 -1
- package/dist/web/assets/elm-CeVRiPaW.js +0 -1
- package/dist/web/assets/erb-xkDOjk65.js +0 -1
- package/dist/web/assets/erlang-Bjd1hpKB.js +0 -1
- package/dist/web/assets/erlang-repl-CAHsxSfj.js +0 -1
- package/dist/web/assets/excel-kF3e3kEL.js +0 -1
- package/dist/web/assets/fix-DcDIoRCK.js +0 -1
- package/dist/web/assets/flix-Ho4BNqBJ.js +0 -1
- package/dist/web/assets/fortran-14t4qTUY.js +0 -1
- package/dist/web/assets/fsharp-L5i6f6LO.js +0 -1
- package/dist/web/assets/gams-B1FvFmVr.js +0 -1
- package/dist/web/assets/gauss-DhPFrKEG.js +0 -1
- package/dist/web/assets/gcode-fU_PdGTz.js +0 -1
- package/dist/web/assets/gherkin-D35RpAlM.js +0 -1
- package/dist/web/assets/glsl-Ce3B2spn.js +0 -1
- package/dist/web/assets/gml-q_8zkRjy.js +0 -1
- package/dist/web/assets/go-tjnmgxFo.js +0 -1
- package/dist/web/assets/golo-D0DdehTP.js +0 -1
- package/dist/web/assets/gradle-BuEALrHh.js +0 -1
- package/dist/web/assets/groovy-BwBwLxy1.js +0 -1
- package/dist/web/assets/haml-BBZG2pIn.js +0 -1
- package/dist/web/assets/handlebars-CBCTIWBg.js +0 -1
- package/dist/web/assets/haskell-Ddd09HDp.js +0 -1
- package/dist/web/assets/haxe-B2rZ5fx2.js +0 -1
- package/dist/web/assets/hsp-I8h4zcwW.js +0 -1
- package/dist/web/assets/htmlbars-BU4KGKFH.js +0 -1
- package/dist/web/assets/http-DN5nyOjy.js +0 -1
- package/dist/web/assets/hy-CpeSsEuG.js +0 -1
- package/dist/web/assets/index-C4BqUITd.css +0 -2
- package/dist/web/assets/index-C8FrI8_O.js +0 -848
- package/dist/web/assets/inform7-BE7aHqNb.js +0 -1
- package/dist/web/assets/ini-Z84ip27g.js +0 -1
- package/dist/web/assets/irpf90-CVwarimj.js +0 -1
- package/dist/web/assets/isbl-ghISknvV.js +0 -1
- package/dist/web/assets/java-CEw02vbP.js +0 -1
- package/dist/web/assets/javascript-gThRHhsu.js +0 -1
- package/dist/web/assets/jboss-cli-C9bhouu8.js +0 -1
- package/dist/web/assets/json-CajKCx8k.js +0 -1
- package/dist/web/assets/julia-DoYLhEhE.js +0 -1
- package/dist/web/assets/julia-repl-BZUBP0N8.js +0 -1
- package/dist/web/assets/kotlin-DwLRtiOv.js +0 -2
- package/dist/web/assets/lasso-DzjodXDX.js +0 -1
- package/dist/web/assets/latex-TLlwzbIz.js +0 -1
- package/dist/web/assets/ldif-CCayDc2m.js +0 -1
- package/dist/web/assets/leaf-Bz7MjUha.js +0 -1
- package/dist/web/assets/less-5c3Sx665.js +0 -1
- package/dist/web/assets/lisp-nrbFh6lg.js +0 -1
- package/dist/web/assets/livecodeserver-B6AET3RQ.js +0 -1
- package/dist/web/assets/livescript-DluKBsMk.js +0 -1
- package/dist/web/assets/llvm-7haFOmp0.js +0 -1
- package/dist/web/assets/lsl-vQhUcPVp.js +0 -1
- package/dist/web/assets/lua-D6YEEohY.js +0 -1
- package/dist/web/assets/makefile-ps86vsQu.js +0 -1
- package/dist/web/assets/markdown-D4av7eDS.js +0 -1
- package/dist/web/assets/mathematica-KZAZ3f_4.js +0 -1
- package/dist/web/assets/matlab-DvaEq_2L.js +0 -1
- package/dist/web/assets/maxima-DmpshiQZ.js +0 -1
- package/dist/web/assets/mel-B-mMlzQm.js +0 -1
- package/dist/web/assets/mercury-C7wy29Qr.js +0 -1
- package/dist/web/assets/mipsasm-BWGxDN2L.js +0 -1
- package/dist/web/assets/mizar-BO0ByJsv.js +0 -1
- package/dist/web/assets/module-3nkmv-tD.js +0 -4
- package/dist/web/assets/mojolicious-DQzQPzHI.js +0 -1
- package/dist/web/assets/monkey-zmRhai32.js +0 -1
- package/dist/web/assets/moonscript-I4NDcPGQ.js +0 -1
- package/dist/web/assets/n1ql-DWiekVW7.js +0 -1
- package/dist/web/assets/nginx-DzGKMR5i.js +0 -1
- package/dist/web/assets/nim-CkSCDiz8.js +0 -1
- package/dist/web/assets/nix-ZeFazZ2H.js +0 -1
- package/dist/web/assets/node-repl-CPsBepeY.js +0 -1
- package/dist/web/assets/nsis-CPX7KHgX.js +0 -1
- package/dist/web/assets/objectivec-C9QgxLTf.js +0 -1
- package/dist/web/assets/ocaml-C3nG7mvn.js +0 -1
- package/dist/web/assets/openscad-DeCdwUSM.js +0 -1
- package/dist/web/assets/oxygene-DYdFEz9Q.js +0 -1
- package/dist/web/assets/parser3-ZcIhJT1P.js +0 -1
- package/dist/web/assets/perl-C6XfEYw8.js +0 -1
- package/dist/web/assets/pf-8XkdEzY8.js +0 -1
- package/dist/web/assets/pgsql-DAhhqJ5S.js +0 -1
- package/dist/web/assets/php-CSilrJt2.js +0 -1
- package/dist/web/assets/php-template-BNZ8XzCJ.js +0 -1
- package/dist/web/assets/plaintext-Bh7iCuMT.js +0 -1
- package/dist/web/assets/pony-CSAjk_Rh.js +0 -1
- package/dist/web/assets/powershell-5tevpPDi.js +0 -1
- package/dist/web/assets/processing-B5UBw4db.js +0 -1
- package/dist/web/assets/profile-BYWKRUf-.js +0 -1
- package/dist/web/assets/prolog-Z-kheNQb.js +0 -1
- package/dist/web/assets/properties-CP2GAgCT.js +0 -1
- package/dist/web/assets/protobuf-DwaP-ZBz.js +0 -1
- package/dist/web/assets/puppet-DCo1p-e1.js +0 -1
- package/dist/web/assets/purebasic-B4oTIbaC.js +0 -1
- package/dist/web/assets/python-Cxw0FOMN.js +0 -1
- package/dist/web/assets/python-repl-BggDorti.js +0 -1
- package/dist/web/assets/q-D0x0YPyq.js +0 -1
- package/dist/web/assets/qml-Dphl0SMd.js +0 -1
- package/dist/web/assets/r-D_JMfTn3.js +0 -1
- package/dist/web/assets/reasonml-CXdNSKcE.js +0 -1
- package/dist/web/assets/rib-D3-TlPeW.js +0 -1
- package/dist/web/assets/roboconf-DEm7cd22.js +0 -1
- package/dist/web/assets/routeros-DdjuRfl6.js +0 -1
- package/dist/web/assets/rpc-logger-TPNV75J4-C40n6UNr.js +0 -1
- package/dist/web/assets/rsl-BrnG8AH0.js +0 -1
- package/dist/web/assets/ruby-aB1innqz.js +0 -1
- package/dist/web/assets/ruleslanguage-BPmfiapH.js +0 -1
- package/dist/web/assets/rust-DqQz2VhN.js +0 -1
- package/dist/web/assets/sas-D4-lEVkU.js +0 -1
- package/dist/web/assets/scala-77Na58um.js +0 -1
- package/dist/web/assets/scheme-2Qe3EDmu.js +0 -1
- package/dist/web/assets/scilab-DZps5Q31.js +0 -1
- package/dist/web/assets/scss-B3Vtu9UP.js +0 -1
- package/dist/web/assets/shell-CrQcV8OK.js +0 -1
- package/dist/web/assets/smali-BTfpnEqn.js +0 -2
- package/dist/web/assets/smalltalk-CpIWoTp_.js +0 -1
- package/dist/web/assets/sml-DoJUdr8i.js +0 -1
- package/dist/web/assets/sqf-Bs26a1hR.js +0 -1
- package/dist/web/assets/sql-BXs9CZyk.js +0 -1
- package/dist/web/assets/sql_more-CQVJyFAZ.js +0 -1
- package/dist/web/assets/stan-B6HH5NgR.js +0 -1
- package/dist/web/assets/stata-VKr1FNBF.js +0 -3
- package/dist/web/assets/step21-Ba6oj9Wj.js +0 -1
- package/dist/web/assets/stylus-DhJmSeI6.js +0 -1
- package/dist/web/assets/subunit-B0bGuVIS.js +0 -3
- package/dist/web/assets/swift-C5NITCOW.js +0 -1
- package/dist/web/assets/taggerscript-DzMn6Q_H.js +0 -1
- package/dist/web/assets/tap-D-CsbE0z.js +0 -1
- package/dist/web/assets/tcl-mxaB-b0O.js +0 -1
- package/dist/web/assets/thrift-D15bAw3O.js +0 -1
- package/dist/web/assets/tp-CYW80aaN.js +0 -1
- package/dist/web/assets/twig-DUx5lHKo.js +0 -1
- package/dist/web/assets/typescript-FKxWpH0A.js +0 -1
- package/dist/web/assets/vala-C8SPe1Je.js +0 -1
- package/dist/web/assets/vbnet-DPOz3qH4.js +0 -1
- package/dist/web/assets/vbscript-BFMfNF7s.js +0 -1
- package/dist/web/assets/vbscript-html-3FBmwJu9.js +0 -1
- package/dist/web/assets/verilog-CiVb5cnG.js +0 -1
- package/dist/web/assets/vhdl-BQaFQ0Ys.js +0 -1
- package/dist/web/assets/vim-k5mEfOIE.js +0 -1
- package/dist/web/assets/x86asm-B-SWMOrZ.js +0 -1
- package/dist/web/assets/xl-BpV7JOX6.js +0 -1
- package/dist/web/assets/xml-7_gIAAop.js +0 -1
- package/dist/web/assets/xquery-D3UKuxgH.js +0 -1
- package/dist/web/assets/yaml-CL8bO3oj.js +0 -1
- package/dist/web/assets/zephir-foimhbl6.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { t as r } from "./loader-circle-BLy9A_pp.js";
|
|
4
|
+
import { t as i } from "./manufact-auth-0TVxpeTA.js";
|
|
5
|
+
//#region src/client/components/ManufactOAuthCallback.tsx
|
|
6
|
+
var a = /* @__PURE__ */ e(t(), 1), o = n();
|
|
7
|
+
function s() {
|
|
8
|
+
let [e, t] = (0, a.useState)(null);
|
|
9
|
+
return (0, a.useEffect)(() => {
|
|
10
|
+
i().then(() => window.close()).catch((e) => {
|
|
11
|
+
t(e instanceof Error ? e.message : String(e));
|
|
12
|
+
});
|
|
13
|
+
}, []), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
14
|
+
className: "flex h-screen w-full items-center justify-center bg-background",
|
|
15
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
16
|
+
className: "flex max-w-md flex-col items-center gap-4 p-6 text-center",
|
|
17
|
+
children: e ? /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)("h1", {
|
|
18
|
+
className: "text-lg font-semibold text-destructive",
|
|
19
|
+
children: "Authorization failed"
|
|
20
|
+
}), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
21
|
+
className: "text-sm text-muted-foreground",
|
|
22
|
+
children: e
|
|
23
|
+
})] }) : /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)(r, { className: "size-8 animate-spin text-muted-foreground" }), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
24
|
+
className: "text-sm text-muted-foreground",
|
|
25
|
+
children: "Completing Manufact authorization…"
|
|
26
|
+
})] })
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as ManufactOAuthCallback };
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { sr as r } from "./input-BLxOA7V-.js";
|
|
4
|
+
import { t as i } from "./bell-CGjAO_0s.js";
|
|
5
|
+
import { t as a } from "./brush-B_mKhyxG.js";
|
|
6
|
+
import { a as o, i as s, r as c, t as l } from "./browser-CbQIH4w2.js";
|
|
7
|
+
import { t as u } from "./clock-CmUbSx_B.js";
|
|
8
|
+
import { t as d } from "./code-V_0nf5rg.js";
|
|
9
|
+
import { a as f, t as p } from "./JSONDisplay-D3RcyO9z.js";
|
|
10
|
+
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./shared-uMiV6Fx1.js";
|
|
11
|
+
import { t as b } from "./maximize-BALCV_ep.js";
|
|
12
|
+
import { t as x } from "./trash-2-RwpJY5SL.js";
|
|
13
|
+
import { t as S } from "./x-C3vRQIYu.js";
|
|
14
|
+
import { t as C } from "./not-found-BcNNsTjS.js";
|
|
15
|
+
//#region src/client/components/notifications/NotificationsList.tsx
|
|
16
|
+
var w = /* @__PURE__ */ e(t(), 1), T = n();
|
|
17
|
+
function E({ notifications: e, selectedNotification: t, onNotificationSelect: n, focusedIndex: r, formatRelativeTime: i }) {
|
|
18
|
+
return e.length === 0 ? /* @__PURE__ */ (0, T.jsx)("div", {
|
|
19
|
+
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
20
|
+
children: /* @__PURE__ */ (0, T.jsx)(C, {
|
|
21
|
+
vertical: !0,
|
|
22
|
+
noBorder: !0,
|
|
23
|
+
message: "No notifications yet"
|
|
24
|
+
})
|
|
25
|
+
}) : /* @__PURE__ */ (0, T.jsx)("div", { children: e.map((e, a) => /* @__PURE__ */ (0, T.jsx)(v, {
|
|
26
|
+
id: `notification-${e.id}`,
|
|
27
|
+
isSelected: t?.id === e.id,
|
|
28
|
+
isFocused: r === a,
|
|
29
|
+
title: /* @__PURE__ */ (0, T.jsxs)("span", {
|
|
30
|
+
className: "flex items-center gap-3",
|
|
31
|
+
children: [e.method, !e.read && /* @__PURE__ */ (0, T.jsx)("span", { className: "size-1.5 block rounded-full bg-orange-500" })]
|
|
32
|
+
}),
|
|
33
|
+
description: (() => {
|
|
34
|
+
let t = i(e.timestamp), n = e.params && Object.keys(e.params).length > 0 ? Object.keys(e.params).length : 0;
|
|
35
|
+
return t + (n > 0 ? ` | ${n} param${n > 1 ? "s" : ""}` : "");
|
|
36
|
+
})(),
|
|
37
|
+
onClick: () => n(e)
|
|
38
|
+
}, e.id)) });
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/client/components/notifications/NotificationResultDisplay.tsx
|
|
42
|
+
function D({ notification: e, previewMode: t, onTogglePreview: n, onCopy: c, onDownload: l, onFullscreen: m, isCopied: h = !1, onClose: g }) {
|
|
43
|
+
return e ? /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
44
|
+
className: "flex flex-col h-full",
|
|
45
|
+
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
46
|
+
className: "flex-shrink-0 px-4 py-3 border-b border-gray-200 dark:border-zinc-700 flex items-center justify-between",
|
|
47
|
+
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
48
|
+
className: "flex items-center gap-2",
|
|
49
|
+
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
50
|
+
className: "flex items-center gap-1",
|
|
51
|
+
children: [/* @__PURE__ */ (0, T.jsx)(u, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, T.jsx)("span", {
|
|
52
|
+
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
53
|
+
children: new Date(e.timestamp).toLocaleTimeString()
|
|
54
|
+
})]
|
|
55
|
+
}), /* @__PURE__ */ (0, T.jsx)("span", {
|
|
56
|
+
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
57
|
+
children: e.formatRelativeTime(e.timestamp)
|
|
58
|
+
})]
|
|
59
|
+
}), /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
60
|
+
className: "flex items-center gap-1",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ (0, T.jsxs)(r, {
|
|
63
|
+
variant: "ghost",
|
|
64
|
+
size: "sm",
|
|
65
|
+
onClick: n,
|
|
66
|
+
className: t ? "" : "text-purple-600 dark:text-purple-400",
|
|
67
|
+
children: [t ? /* @__PURE__ */ (0, T.jsx)(d, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, T.jsx)(a, { className: "h-4 w-4 mr-1" }), t ? "JSON" : "Formatted"]
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ (0, T.jsx)(r, {
|
|
70
|
+
variant: "ghost",
|
|
71
|
+
size: "sm",
|
|
72
|
+
onClick: c,
|
|
73
|
+
children: h ? /* @__PURE__ */ (0, T.jsx)(o, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, T.jsx)(s, { className: "h-4 w-4" })
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ (0, T.jsx)(r, {
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
size: "sm",
|
|
78
|
+
onClick: l,
|
|
79
|
+
children: /* @__PURE__ */ (0, T.jsx)(f, { className: "h-4 w-4" })
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ (0, T.jsx)(r, {
|
|
82
|
+
variant: "ghost",
|
|
83
|
+
size: "sm",
|
|
84
|
+
onClick: m,
|
|
85
|
+
children: /* @__PURE__ */ (0, T.jsx)(b, { className: "h-4 w-4" })
|
|
86
|
+
}),
|
|
87
|
+
g && /* @__PURE__ */ (0, T.jsx)(r, {
|
|
88
|
+
variant: "ghost",
|
|
89
|
+
size: "sm",
|
|
90
|
+
onClick: g,
|
|
91
|
+
children: /* @__PURE__ */ (0, T.jsx)(S, { className: "h-4 w-4" })
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
})]
|
|
95
|
+
}), /* @__PURE__ */ (0, T.jsx)("div", {
|
|
96
|
+
className: "flex-1 overflow-y-auto",
|
|
97
|
+
children: /* @__PURE__ */ (0, T.jsx)("div", {
|
|
98
|
+
className: "px-4 pt-4",
|
|
99
|
+
children: /* @__PURE__ */ (0, T.jsx)(p, {
|
|
100
|
+
data: {
|
|
101
|
+
method: e.method,
|
|
102
|
+
timestamp: e.timestamp,
|
|
103
|
+
read: e.read,
|
|
104
|
+
params: e.params
|
|
105
|
+
},
|
|
106
|
+
filename: `notification-${e.method.replace(/[^a-zA-Z0-9]/g, "-")}-${Date.now()}.json`
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
}) : /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
111
|
+
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
112
|
+
children: [/* @__PURE__ */ (0, T.jsx)(i, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, T.jsx)("p", {
|
|
113
|
+
className: "text-gray-500 dark:text-gray-400",
|
|
114
|
+
children: "Select a notification to view details"
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/client/components/NotificationsTab.tsx
|
|
120
|
+
function O({ notifications: e, unreadCount: t, markNotificationRead: n, markAllNotificationsRead: r, clearNotifications: a, serverId: o, isConnected: s }) {
|
|
121
|
+
let [u, d] = (0, w.useState)(null), [f, p] = (0, w.useState)(""), [v, b] = (0, w.useState)(-1), [S, C] = (0, w.useState)(!0), [O, k] = (0, w.useState)(!1), [A, j] = (0, w.useState)(!0), [M, N] = (0, w.useState)(!1), P = (0, w.useRef)(null), F = (0, w.useRef)(null), I = (0, w.useRef)(null), L = (0, w.useRef)(!1);
|
|
122
|
+
(0, w.useEffect)(() => {
|
|
123
|
+
S && e.length > 0 && P.current && !L.current && (P.current.scrollTop = 0);
|
|
124
|
+
}, [e.length, S]), (0, w.useEffect)(() => {
|
|
125
|
+
let e = P.current;
|
|
126
|
+
if (!e) return;
|
|
127
|
+
let t = () => {
|
|
128
|
+
e.scrollTop > 0 && (L.current = !0, C(!1));
|
|
129
|
+
};
|
|
130
|
+
return e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
131
|
+
}, []), (0, w.useEffect)(() => {
|
|
132
|
+
e.length === 0 && (L.current = !1, C(!0));
|
|
133
|
+
}, [e.length]), (0, w.useEffect)(() => {
|
|
134
|
+
u && !u.read && n(u.id);
|
|
135
|
+
}, [u, n]), (0, w.useEffect)(() => {
|
|
136
|
+
O && I.current && I.current.focus();
|
|
137
|
+
}, [O]);
|
|
138
|
+
let R = (0, w.useCallback)(() => {
|
|
139
|
+
f.trim() || k(!1);
|
|
140
|
+
}, [f]), z = (0, w.useMemo)(() => {
|
|
141
|
+
if (!f.trim()) return e;
|
|
142
|
+
let t = f.toLowerCase();
|
|
143
|
+
return e.filter((e) => e.method.toLowerCase().includes(t) || JSON.stringify(e.params || {}).toLowerCase().includes(t));
|
|
144
|
+
}, [e, f]);
|
|
145
|
+
(0, w.useEffect)(() => {
|
|
146
|
+
b(-1);
|
|
147
|
+
}, [f]), (0, w.useEffect)(() => {
|
|
148
|
+
let e = (e) => {
|
|
149
|
+
let t = e.target;
|
|
150
|
+
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.contentEditable === "true" || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
151
|
+
let n = z;
|
|
152
|
+
if (e.key === "ArrowDown") e.preventDefault(), b((e) => {
|
|
153
|
+
let t = e + 1;
|
|
154
|
+
return t >= n.length ? 0 : t;
|
|
155
|
+
});
|
|
156
|
+
else if (e.key === "ArrowUp") e.preventDefault(), b((e) => {
|
|
157
|
+
let t = e - 1;
|
|
158
|
+
return t < 0 ? n.length - 1 : t;
|
|
159
|
+
});
|
|
160
|
+
else if (e.key === "Enter" && v >= 0) {
|
|
161
|
+
e.preventDefault();
|
|
162
|
+
let t = z[v];
|
|
163
|
+
t && B(t);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
167
|
+
}, [v, z]), (0, w.useEffect)(() => {
|
|
168
|
+
if (v >= 0) {
|
|
169
|
+
let e = `notification-${z[v]?.id}`, t = document.getElementById(e);
|
|
170
|
+
t && t.scrollIntoView({
|
|
171
|
+
behavior: "smooth",
|
|
172
|
+
block: "nearest"
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}, [v, z]);
|
|
176
|
+
let B = (0, w.useCallback)((e) => {
|
|
177
|
+
d(e);
|
|
178
|
+
}, []), V = (0, w.useCallback)(() => {
|
|
179
|
+
window.confirm("Are you sure you want to clear all notifications? This cannot be undone.") && (a(), d(null));
|
|
180
|
+
}, [a]), H = (0, w.useCallback)(async () => {
|
|
181
|
+
if (u) try {
|
|
182
|
+
await l(JSON.stringify({
|
|
183
|
+
method: u.method,
|
|
184
|
+
timestamp: u.timestamp,
|
|
185
|
+
read: u.read,
|
|
186
|
+
params: u.params
|
|
187
|
+
}, null, 2)), N(!0), setTimeout(() => N(!1), 2e3);
|
|
188
|
+
} catch (e) {
|
|
189
|
+
console.error("[NotificationsTab] Failed to copy notification:", e);
|
|
190
|
+
}
|
|
191
|
+
}, [u]), U = (0, w.useCallback)(() => {
|
|
192
|
+
if (u) try {
|
|
193
|
+
let e = new globalThis.Blob([JSON.stringify({
|
|
194
|
+
method: u.method,
|
|
195
|
+
timestamp: u.timestamp,
|
|
196
|
+
read: u.read,
|
|
197
|
+
params: u.params
|
|
198
|
+
}, null, 2)], { type: "application/json" }), t = URL.createObjectURL(e), n = document.createElement("a");
|
|
199
|
+
n.href = t, n.download = `notification-${Date.now()}.json`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
|
|
200
|
+
} catch (e) {
|
|
201
|
+
console.error("[NotificationsTab] Failed to download notification:", e);
|
|
202
|
+
}
|
|
203
|
+
}, [u]), W = (0, w.useCallback)(async () => {
|
|
204
|
+
if (F.current) try {
|
|
205
|
+
document.fullscreenElement ? await document.exitFullscreen() : await F.current.requestFullscreen();
|
|
206
|
+
} catch (e) {
|
|
207
|
+
console.error("[NotificationsTab] Failed to toggle fullscreen:", e);
|
|
208
|
+
}
|
|
209
|
+
}, []), G = u ? {
|
|
210
|
+
method: u.method,
|
|
211
|
+
params: u.params,
|
|
212
|
+
timestamp: u.timestamp,
|
|
213
|
+
read: u.read,
|
|
214
|
+
formatRelativeTime: c
|
|
215
|
+
} : null;
|
|
216
|
+
return s ? /* @__PURE__ */ (0, T.jsxs)(_, {
|
|
217
|
+
orientation: "horizontal",
|
|
218
|
+
className: "h-full",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ (0, T.jsx)(m, {
|
|
221
|
+
defaultSize: 40,
|
|
222
|
+
minSize: 30,
|
|
223
|
+
children: /* @__PURE__ */ (0, T.jsx)(_, {
|
|
224
|
+
orientation: "vertical",
|
|
225
|
+
className: "h-full border-r dark:border-zinc-700",
|
|
226
|
+
children: /* @__PURE__ */ (0, T.jsx)(m, {
|
|
227
|
+
defaultSize: 75,
|
|
228
|
+
minSize: 30,
|
|
229
|
+
className: "h-full overflow-hidden",
|
|
230
|
+
children: /* @__PURE__ */ (0, T.jsx)(g, {
|
|
231
|
+
scrollRef: P,
|
|
232
|
+
children: (t) => /* @__PURE__ */ (0, T.jsxs)(T.Fragment, { children: [/* @__PURE__ */ (0, T.jsx)(y, {
|
|
233
|
+
isScrolled: t,
|
|
234
|
+
title: "Notifications",
|
|
235
|
+
icon: i,
|
|
236
|
+
count: z.length,
|
|
237
|
+
isSearchExpanded: O,
|
|
238
|
+
searchQuery: f,
|
|
239
|
+
searchPlaceholder: "Search notifications...",
|
|
240
|
+
onSearchExpand: () => k(!0),
|
|
241
|
+
onSearchChange: p,
|
|
242
|
+
onSearchBlur: R,
|
|
243
|
+
bulkAction: {
|
|
244
|
+
icon: x,
|
|
245
|
+
label: "Clear all",
|
|
246
|
+
onClick: V,
|
|
247
|
+
disabled: e.length === 0
|
|
248
|
+
},
|
|
249
|
+
searchInputRef: I
|
|
250
|
+
}), /* @__PURE__ */ (0, T.jsx)(E, {
|
|
251
|
+
notifications: z,
|
|
252
|
+
selectedNotification: u,
|
|
253
|
+
onNotificationSelect: B,
|
|
254
|
+
focusedIndex: v,
|
|
255
|
+
formatRelativeTime: c
|
|
256
|
+
})] })
|
|
257
|
+
})
|
|
258
|
+
})
|
|
259
|
+
})
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ (0, T.jsx)(h, {}),
|
|
262
|
+
/* @__PURE__ */ (0, T.jsx)(m, {
|
|
263
|
+
defaultSize: 60,
|
|
264
|
+
minSize: 40,
|
|
265
|
+
children: /* @__PURE__ */ (0, T.jsx)("div", {
|
|
266
|
+
ref: F,
|
|
267
|
+
className: "h-full bg-white dark:bg-zinc-900",
|
|
268
|
+
children: /* @__PURE__ */ (0, T.jsx)(D, {
|
|
269
|
+
notification: G,
|
|
270
|
+
previewMode: A,
|
|
271
|
+
onTogglePreview: () => j(!A),
|
|
272
|
+
onCopy: H,
|
|
273
|
+
onDownload: U,
|
|
274
|
+
onFullscreen: W,
|
|
275
|
+
onClose: () => d(null),
|
|
276
|
+
isCopied: M
|
|
277
|
+
})
|
|
278
|
+
})
|
|
279
|
+
})
|
|
280
|
+
]
|
|
281
|
+
}) : /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
282
|
+
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
283
|
+
children: [/* @__PURE__ */ (0, T.jsx)(i, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, T.jsx)("p", {
|
|
284
|
+
className: "text-gray-500 dark:text-gray-400",
|
|
285
|
+
children: "Not connected to server"
|
|
286
|
+
})]
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
export { O as NotificationsTab };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
+
import { t as r } from "./loader-circle-BLy9A_pp.js";
|
|
4
|
+
import { l as i } from "./react-BxO-uEDZ.js";
|
|
5
|
+
//#region src/client/components/OAuthCallback.tsx
|
|
6
|
+
var a = /* @__PURE__ */ e(t(), 1), o = n();
|
|
7
|
+
function s() {
|
|
8
|
+
let [e, t] = (0, a.useState)("processing"), [n, s] = (0, a.useState)("");
|
|
9
|
+
return (0, a.useEffect)(() => {
|
|
10
|
+
console.log("[OAuthCallback] Component mounted, handling authorization..."), console.log("[OAuthCallback] Current URL:", window.location.href), i().then(() => {
|
|
11
|
+
console.log("[OAuthCallback] Authorization successful"), t("success");
|
|
12
|
+
}).catch((e) => {
|
|
13
|
+
console.error("[OAuthCallback] Authorization failed:", e), t("error"), s(e instanceof Error ? e.message : String(e));
|
|
14
|
+
});
|
|
15
|
+
}, []), e === "processing" ? /* @__PURE__ */ (0, o.jsx)("div", {
|
|
16
|
+
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
17
|
+
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
18
|
+
className: "flex flex-col items-center gap-4",
|
|
19
|
+
children: [/* @__PURE__ */ (0, o.jsx)(r, { className: "h-8 w-8 animate-spin text-zinc-600 dark:text-zinc-400" }), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
20
|
+
className: "text-sm text-zinc-600 dark:text-zinc-400",
|
|
21
|
+
children: "Completing authentication..."
|
|
22
|
+
})]
|
|
23
|
+
})
|
|
24
|
+
}) : e === "error" ? /* @__PURE__ */ (0, o.jsx)("div", {
|
|
25
|
+
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
26
|
+
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
27
|
+
className: "max-w-md p-6",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ (0, o.jsx)("h1", {
|
|
30
|
+
className: "text-xl font-semibold text-red-600 dark:text-red-400 mb-2",
|
|
31
|
+
children: "Authentication Error"
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ (0, o.jsx)("p", {
|
|
34
|
+
className: "text-sm text-zinc-600 dark:text-zinc-400 mb-4",
|
|
35
|
+
children: n
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ (0, o.jsx)("p", {
|
|
38
|
+
className: "text-xs text-zinc-500 dark:text-zinc-500",
|
|
39
|
+
children: "You can close this window and try again."
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
}) : /* @__PURE__ */ (0, o.jsx)("div", {
|
|
44
|
+
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
45
|
+
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
46
|
+
className: "max-w-md p-6",
|
|
47
|
+
children: [/* @__PURE__ */ (0, o.jsx)("h1", {
|
|
48
|
+
className: "text-xl font-semibold text-green-600 dark:text-green-400 mb-2",
|
|
49
|
+
children: "Authentication Successful!"
|
|
50
|
+
}), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
51
|
+
className: "text-sm text-zinc-600 dark:text-zinc-400",
|
|
52
|
+
children: "Redirecting you back..."
|
|
53
|
+
})]
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { s as OAuthCallback };
|