@seed-ship/mcp-ui-solid 6.24.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/README.md +61 -0
- package/dist/adapters/connector.cjs +3 -3
- package/dist/adapters/connector.cjs.map +1 -1
- package/dist/adapters/connector.d.cts +108 -0
- package/dist/adapters/connector.d.ts +1 -2
- package/dist/adapters/connector.js +3 -3
- package/dist/adapters/connector.js.map +1 -1
- package/dist/adapters/index.d.cts +21 -0
- package/dist/adapters/index.d.ts +6 -7
- package/dist/adapters/macro-run.d.cts +99 -0
- package/dist/adapters/macro-run.d.ts +1 -2
- package/dist/adapters/presentation.d.cts +1 -2
- package/dist/adapters/presentation.d.ts +1 -2
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/components/ActionGroupRenderer.cjs +6 -6
- package/dist/components/ActionGroupRenderer.cjs.map +1 -1
- package/dist/components/ActionGroupRenderer.d.cts +38 -0
- package/dist/components/ActionGroupRenderer.d.ts +1 -2
- package/dist/components/ActionGroupRenderer.js +6 -6
- package/dist/components/ActionGroupRenderer.js.map +1 -1
- package/dist/components/ActionRenderer.d.cts +9 -0
- package/dist/components/ActionRenderer.d.ts +0 -1
- package/dist/components/AgentCard.d.cts +19 -0
- package/dist/components/AgentCard.d.ts +1 -2
- package/dist/components/AgentHandoff.d.cts +11 -0
- package/dist/components/AgentHandoff.d.ts +1 -2
- package/dist/components/ArtifactRenderer.d.cts +11 -0
- package/dist/components/ArtifactRenderer.d.ts +0 -1
- package/dist/components/AutocompleteDropdown.cjs +6 -6
- package/dist/components/AutocompleteDropdown.cjs.map +1 -1
- package/dist/components/AutocompleteDropdown.d.cts +70 -0
- package/dist/components/AutocompleteDropdown.d.ts +1 -2
- package/dist/components/AutocompleteDropdown.js +6 -6
- package/dist/components/AutocompleteDropdown.js.map +1 -1
- package/dist/components/AutocompleteFormField.cjs +6 -5
- package/dist/components/AutocompleteFormField.cjs.map +1 -1
- package/dist/components/AutocompleteFormField.d.cts +51 -0
- package/dist/components/AutocompleteFormField.d.ts +1 -2
- package/dist/components/AutocompleteFormField.d.ts.map +1 -1
- package/dist/components/AutocompleteFormField.js +6 -5
- package/dist/components/AutocompleteFormField.js.map +1 -1
- package/dist/components/BriefingDiff.d.cts +11 -0
- package/dist/components/BriefingDiff.d.ts +1 -2
- package/dist/components/CarouselRenderer.d.cts +12 -0
- package/dist/components/CarouselRenderer.d.ts +1 -2
- package/dist/components/ChartJSRenderer.cjs +216 -6
- package/dist/components/ChartJSRenderer.cjs.map +1 -1
- package/dist/components/ChartJSRenderer.d.cts +62 -0
- package/dist/components/ChartJSRenderer.d.ts +1 -2
- package/dist/components/ChartJSRenderer.d.ts.map +1 -1
- package/dist/components/ChartJSRenderer.js +217 -7
- package/dist/components/ChartJSRenderer.js.map +1 -1
- package/dist/components/ChatPrompt.cjs +5 -5
- package/dist/components/ChatPrompt.cjs.map +1 -1
- package/dist/components/ChatPrompt.d.cts +69 -0
- package/dist/components/ChatPrompt.d.ts +1 -2
- package/dist/components/ChatPrompt.js +5 -5
- package/dist/components/ChatPrompt.js.map +1 -1
- package/dist/components/CodeBlockRenderer.d.cts +23 -0
- package/dist/components/CodeBlockRenderer.d.ts +1 -2
- package/dist/components/ComponentToolbar.cjs +5 -5
- package/dist/components/ComponentToolbar.cjs.map +1 -1
- package/dist/components/ComponentToolbar.d.cts +46 -0
- package/dist/components/ComponentToolbar.d.ts +0 -1
- package/dist/components/ComponentToolbar.js +5 -5
- package/dist/components/ComponentToolbar.js.map +1 -1
- package/dist/components/DataPreviewSection.d.cts +11 -0
- package/dist/components/DataPreviewSection.d.ts +1 -2
- package/dist/components/DegradedFallback.cjs +1 -1
- package/dist/components/DegradedFallback.cjs.map +1 -1
- package/dist/components/DegradedFallback.d.cts +43 -0
- package/dist/components/DegradedFallback.d.ts +0 -1
- package/dist/components/DegradedFallback.js +1 -1
- package/dist/components/DegradedFallback.js.map +1 -1
- package/dist/components/DraggableGridItem.d.cts +94 -0
- package/dist/components/DraggableGridItem.d.ts +1 -2
- package/dist/components/EditableLayoutContext.d.cts +4 -0
- package/dist/components/EditableLayoutContext.d.ts +0 -1
- package/dist/components/EditableUIResourceRenderer.d.cts +42 -0
- package/dist/components/EditableUIResourceRenderer.d.ts +1 -2
- package/dist/components/ElicitationForm.d.cts +67 -0
- package/dist/components/ElicitationForm.d.ts +1 -2
- package/dist/components/ExpandableWrapper.cjs +10 -7
- package/dist/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/components/ExpandableWrapper.d.cts +49 -0
- package/dist/components/ExpandableWrapper.d.ts +0 -1
- package/dist/components/ExpandableWrapper.d.ts.map +1 -1
- package/dist/components/ExpandableWrapper.js +10 -7
- package/dist/components/ExpandableWrapper.js.map +1 -1
- package/dist/components/FeedbackInline.d.cts +70 -0
- package/dist/components/FeedbackInline.d.ts +0 -1
- package/dist/components/FooterRenderer.d.cts +15 -0
- package/dist/components/FooterRenderer.d.ts +0 -1
- package/dist/components/FormFieldRenderer.cjs +13 -12
- package/dist/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/components/FormFieldRenderer.d.cts +19 -0
- package/dist/components/FormFieldRenderer.d.ts +1 -2
- package/dist/components/FormFieldRenderer.d.ts.map +1 -1
- package/dist/components/FormFieldRenderer.js +13 -12
- package/dist/components/FormFieldRenderer.js.map +1 -1
- package/dist/components/FormRenderer.cjs +1 -1
- package/dist/components/FormRenderer.cjs.map +1 -1
- package/dist/components/FormRenderer.d.cts +14 -0
- package/dist/components/FormRenderer.d.ts +1 -2
- package/dist/components/FormRenderer.js +1 -1
- package/dist/components/FormRenderer.js.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.cjs +1 -1
- package/dist/components/GenerativeUIErrorBoundary.cjs.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.d.cts +58 -0
- package/dist/components/GenerativeUIErrorBoundary.d.ts +1 -2
- package/dist/components/GenerativeUIErrorBoundary.default.d.cts +1 -0
- package/dist/components/GenerativeUIErrorBoundary.default.d.ts +1 -2
- package/dist/components/GenerativeUIErrorBoundary.js +1 -1
- package/dist/components/GenerativeUIErrorBoundary.js.map +1 -1
- package/dist/components/GhostText.cjs +2 -2
- package/dist/components/GhostText.cjs.map +1 -1
- package/dist/components/GhostText.d.cts +112 -0
- package/dist/components/GhostText.d.ts +0 -1
- package/dist/components/GhostText.js +2 -2
- package/dist/components/GhostText.js.map +1 -1
- package/dist/components/GraphRenderer.cjs +100 -29
- package/dist/components/GraphRenderer.cjs.map +1 -1
- package/dist/components/GraphRenderer.d.cts +66 -0
- package/dist/components/GraphRenderer.d.ts +2 -3
- package/dist/components/GraphRenderer.d.ts.map +1 -1
- package/dist/components/GraphRenderer.js +100 -29
- package/dist/components/GraphRenderer.js.map +1 -1
- package/dist/components/GridRenderer.d.cts +49 -0
- package/dist/components/GridRenderer.d.ts +1 -2
- package/dist/components/IframeFallbackLink.d.cts +22 -0
- package/dist/components/IframeFallbackLink.d.ts +0 -1
- package/dist/components/ImageGalleryRenderer.d.cts +22 -0
- package/dist/components/ImageGalleryRenderer.d.ts +1 -2
- package/dist/components/LightboxOverlay.d.cts +31 -0
- package/dist/components/LightboxOverlay.d.ts +1 -2
- package/dist/components/MapRenderer.d.cts +77 -0
- package/dist/components/MapRenderer.d.ts +1 -2
- package/dist/components/MissingValue.cjs +2 -2
- package/dist/components/MissingValue.cjs.map +1 -1
- package/dist/components/MissingValue.d.cts +26 -0
- package/dist/components/MissingValue.d.ts +0 -1
- package/dist/components/MissingValue.js +2 -2
- package/dist/components/MissingValue.js.map +1 -1
- package/dist/components/ModalRenderer.cjs +39 -31
- package/dist/components/ModalRenderer.cjs.map +1 -1
- package/dist/components/ModalRenderer.d.cts +66 -0
- package/dist/components/ModalRenderer.d.ts +1 -2
- package/dist/components/ModalRenderer.d.ts.map +1 -1
- package/dist/components/ModalRenderer.js +40 -32
- package/dist/components/ModalRenderer.js.map +1 -1
- package/dist/components/PortalDropdownMenu.cjs +6 -3
- package/dist/components/PortalDropdownMenu.cjs.map +1 -1
- package/dist/components/PortalDropdownMenu.d.cts +55 -0
- package/dist/components/PortalDropdownMenu.d.ts +0 -1
- package/dist/components/PortalDropdownMenu.d.ts.map +1 -1
- package/dist/components/PortalDropdownMenu.js +7 -4
- package/dist/components/PortalDropdownMenu.js.map +1 -1
- package/dist/components/PresentationFeedback.d.cts +112 -0
- package/dist/components/PresentationFeedback.d.ts +0 -1
- package/dist/components/RenderContext.d.cts +41 -0
- package/dist/components/RenderContext.d.ts +1 -2
- package/dist/components/ResizeHandle.d.cts +49 -0
- package/dist/components/ResizeHandle.d.ts +0 -1
- package/dist/components/SafeHtml.d.cts +45 -0
- package/dist/components/SafeHtml.d.ts +0 -1
- package/dist/components/ScratchpadPanel.cjs +38 -44
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.d.cts +34 -0
- package/dist/components/ScratchpadPanel.d.ts +1 -2
- package/dist/components/ScratchpadPanel.d.ts.map +1 -1
- package/dist/components/ScratchpadPanel.js +38 -44
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/dist/components/SplitStepper.d.cts +11 -0
- package/dist/components/SplitStepper.d.ts +1 -2
- package/dist/components/StreamingUIRenderer.d.cts +58 -0
- package/dist/components/StreamingUIRenderer.d.ts +3 -4
- package/dist/components/UIResourceRenderer.cjs +20 -20
- package/dist/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/components/UIResourceRenderer.d.cts +181 -0
- package/dist/components/UIResourceRenderer.d.ts +3 -4
- package/dist/components/UIResourceRenderer.default.d.cts +1 -0
- package/dist/components/UIResourceRenderer.default.d.ts +1 -2
- package/dist/components/UIResourceRenderer.js +20 -20
- package/dist/components/UIResourceRenderer.js.map +1 -1
- package/dist/components/VerifiedText.d.cts +22 -0
- package/dist/components/VerifiedText.d.ts +1 -2
- package/dist/components/VideoRenderer.d.cts +41 -0
- package/dist/components/VideoRenderer.d.ts +1 -2
- package/dist/components/chart-data-table.d.cts +68 -0
- package/dist/components/chart-data-table.d.ts +0 -1
- package/dist/components/chart-missing-plugin.cjs +4 -4
- package/dist/components/chart-missing-plugin.cjs.map +1 -1
- package/dist/components/chart-missing-plugin.d.cts +128 -0
- package/dist/components/chart-missing-plugin.d.ts +4 -3
- package/dist/components/chart-missing-plugin.d.ts.map +1 -1
- package/dist/components/chart-missing-plugin.js +4 -4
- package/dist/components/chart-missing-plugin.js.map +1 -1
- package/dist/components/index.d.cts +62 -0
- package/dist/components/index.d.ts +57 -58
- package/dist/components.d.cts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/context/AutocompleteContext.d.cts +76 -0
- package/dist/context/AutocompleteContext.d.ts +1 -2
- package/dist/context/MCPActionContext.d.cts +169 -0
- package/dist/context/MCPActionContext.d.ts +0 -1
- package/dist/context/MCPUIConfigContext.d.cts +201 -0
- package/dist/context/MCPUIConfigContext.d.ts +1 -2
- package/dist/context/MCPUIMathContext.d.cts +17 -0
- package/dist/context/MCPUIMathContext.d.ts +0 -1
- package/dist/context/MCPUIStringsContext.d.cts +802 -0
- package/dist/context/MCPUIStringsContext.d.ts +1 -2
- package/dist/context/MCPUITelemetryContext.d.cts +35 -0
- package/dist/context/MCPUITelemetryContext.d.ts +1 -2
- package/dist/context/index.d.cts +7 -0
- package/dist/context/index.d.ts +2 -3
- package/dist/hooks/createResponsiveGrid.d.cts +5 -0
- package/dist/hooks/createResponsiveGrid.d.ts +0 -1
- package/dist/hooks/index.d.cts +25 -0
- package/dist/hooks/index.d.ts +20 -21
- package/dist/hooks/useAction.d.cts +164 -0
- package/dist/hooks/useAction.d.ts +2 -3
- package/dist/hooks/useAutocomplete.d.cts +118 -0
- package/dist/hooks/useAutocomplete.d.ts +1 -2
- package/dist/hooks/useChatBus.d.cts +55 -0
- package/dist/hooks/useChatBus.d.ts +1 -2
- package/dist/hooks/useConditionalField.d.cts +34 -0
- package/dist/hooks/useConditionalField.d.ts +1 -2
- package/dist/hooks/useDataValidator.d.cts +41 -0
- package/dist/hooks/useDataValidator.d.ts +1 -2
- package/dist/hooks/useDragDrop.d.cts +99 -0
- package/dist/hooks/useDragDrop.d.ts +1 -2
- package/dist/hooks/useFormPersistence.d.cts +80 -0
- package/dist/hooks/useFormPersistence.d.ts +0 -1
- package/dist/hooks/useModal.d.cts +106 -0
- package/dist/hooks/useModal.d.ts +0 -1
- package/dist/hooks/useResize.d.cts +86 -0
- package/dist/hooks/useResize.d.ts +1 -2
- package/dist/hooks/useStreamingUI.d.cts +117 -0
- package/dist/hooks/useStreamingUI.d.ts +1 -2
- package/dist/hooks.d.cts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.cts +91 -92
- package/dist/index.d.ts +91 -92
- package/dist/plugins/duckdb.d.cts +1 -2
- package/dist/plugins/duckdb.d.ts +1 -2
- package/dist/plugins/groq.d.cts +12 -0
- package/dist/plugins/groq.d.ts +1 -2
- package/dist/plugins/index.d.cts +9 -0
- package/dist/plugins/index.d.ts +3 -4
- package/dist/plugins/katex.d.cts +1 -2
- package/dist/plugins/katex.d.ts +1 -2
- package/dist/plugins/rest.d.cts +12 -0
- package/dist/plugins/rest.d.ts +1 -2
- package/dist/plugins/supabase.d.cts +12 -0
- package/dist/plugins/supabase.d.ts +1 -2
- package/dist/services/chat-bus.d.cts +100 -0
- package/dist/services/chat-bus.d.ts +1 -2
- package/dist/services/chat-prompt-controller.d.cts +92 -0
- package/dist/services/chat-prompt-controller.d.ts +1 -2
- package/dist/services/component-registry.d.cts +119 -0
- package/dist/services/component-registry.d.ts +1 -2
- package/dist/services/data-validator.d.cts +27 -0
- package/dist/services/data-validator.d.ts +1 -2
- package/dist/services/index.d.cts +9 -0
- package/dist/services/index.d.ts +4 -5
- package/dist/services/telemetry.d.cts +86 -0
- package/dist/services/telemetry.d.ts +1 -2
- package/dist/services/validation.d.cts +169 -0
- package/dist/services/validation.d.ts +1 -2
- package/dist/stores/scratchpad-store.d.cts +109 -0
- package/dist/stores/scratchpad-store.d.ts +1 -2
- package/dist/stores/server-capabilities-store.d.cts +171 -0
- package/dist/stores/server-capabilities-store.d.ts +0 -1
- package/dist/test-setup.d.cts +5 -0
- package/dist/test-setup.d.ts +0 -1
- package/dist/testing/index.d.cts +34 -0
- package/dist/testing/index.d.ts +1 -2
- package/dist/types/chat-bus.d.cts +783 -0
- package/dist/types/chat-bus.d.ts +4 -5
- package/dist/types/index.d.cts +1616 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types-export.d.cts +1 -2
- package/dist/types-export.d.ts +1 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/degraded-projections.d.cts +119 -0
- package/dist/utils/degraded-projections.d.ts +0 -1
- package/dist/utils/duplicate-mount-registry.d.cts +83 -0
- package/dist/utils/duplicate-mount-registry.d.ts +0 -1
- package/dist/utils/escape-html.d.cts +12 -0
- package/dist/utils/escape-html.d.ts +0 -1
- package/dist/utils/format-string.d.cts +25 -0
- package/dist/utils/format-string.d.ts +0 -1
- package/dist/utils/iframe-coep.d.cts +53 -0
- package/dist/utils/iframe-coep.d.ts +1 -2
- package/dist/utils/logger.d.cts +57 -0
- package/dist/utils/logger.d.ts +0 -1
- package/dist/utils/math-markdown.cjs +1 -1
- package/dist/utils/math-markdown.cjs.map +1 -1
- package/dist/utils/math-markdown.d.cts +15 -0
- package/dist/utils/math-markdown.d.ts +1 -2
- package/dist/utils/math-markdown.js +1 -1
- package/dist/utils/math-markdown.js.map +1 -1
- package/dist/utils/missing-value.d.cts +78 -0
- package/dist/utils/missing-value.d.ts +0 -1
- package/dist/utils/pan-zoom.d.cts +234 -0
- package/dist/utils/pan-zoom.d.ts +0 -1
- package/dist/utils/perf.d.cts +18 -0
- package/dist/utils/perf.d.ts +0 -1
- package/dist/utils/safe-url.d.cts +33 -0
- package/dist/utils/safe-url.d.ts +0 -1
- package/dist/utils/sanitize-html.d.cts +142 -0
- package/dist/utils/sanitize-html.d.ts +0 -1
- package/dist/utils/stable-key.d.cts +32 -0
- package/dist/utils/stable-key.d.ts +0 -1
- package/dist/utils/theme.cjs +91 -0
- package/dist/utils/theme.cjs.map +1 -0
- package/dist/utils/theme.d.cts +10 -0
- package/dist/utils/theme.d.ts +10 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/utils/theme.js +91 -0
- package/dist/utils/theme.js.map +1 -0
- package/dist/validation.d.cts +3 -4
- package/dist/validation.d.ts +3 -4
- package/docs/SECURITY-DEPENDENCIES.md +209 -0
- package/docs/THEMING.md +205 -0
- package/docs/ZOD4-STABLE-MIGRATION-2026-10-26.md +181 -0
- package/package.json +12 -9
- package/src/adapters/connector.ts +3 -3
- package/src/components/ActionGroupRenderer.tsx +6 -6
- package/src/components/AutocompleteDropdown.tsx +17 -17
- package/src/components/AutocompleteFormField.tsx +10 -9
- package/src/components/ChartJSRenderer.tsx +483 -239
- package/src/components/ChatPrompt.tsx +16 -16
- package/src/components/ComponentToolbar.tsx +5 -5
- package/src/components/DegradedFallback.tsx +9 -9
- package/src/components/ExpandableWrapper.tsx +15 -11
- package/src/components/FormFieldRenderer.tsx +52 -51
- package/src/components/FormRenderer.tsx +12 -12
- package/src/components/GenerativeUIErrorBoundary.tsx +6 -6
- package/src/components/GhostText.tsx +7 -7
- package/src/components/GraphRenderer.tsx +83 -67
- package/src/components/MissingValue.tsx +2 -2
- package/src/components/ModalRenderer.tsx +11 -5
- package/src/components/PortalDropdownMenu.tsx +6 -2
- package/src/components/ScratchpadPanel.tsx +144 -141
- package/src/components/UIResourceRenderer.tsx +101 -101
- package/src/components/chart-missing-plugin.ts +5 -3
- package/src/styles/autocomplete.css +53 -53
- package/src/utils/math-markdown.ts +1 -1
- package/src/utils/theme.ts +101 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Zod 4 on the stable Solid 1 line — 2026-10-26
|
|
2
|
+
|
|
3
|
+
## Authority and boundaries
|
|
4
|
+
|
|
5
|
+
Implements the [Deposium brief at c4835ec5d](https://github.com/theseedship/deposium_solid/blob/c4835ec5d/docs/handoffs/BRIEF-MCPUI-ZOD4-STABLE-2026-10-26.md)
|
|
6
|
+
from stable main `725f862ac76170c40ab796a1d4773b0dbb90be27`, in isolated branch
|
|
7
|
+
`fix/zod4-stable-security`. The dirty shared checkout is untouched. This is
|
|
8
|
+
preparation of installable stable packages, not publication authorization.
|
|
9
|
+
|
|
10
|
+
Solid remains 1.9.17 in the producer lock with the unchanged `^1.9.0` peer.
|
|
11
|
+
No Solid 2 runtime, visual redesign, MCP protocol change, toolchain upgrade,
|
|
12
|
+
Deposium change, SQL access or deployment is included. PR #34 and its preserved
|
|
13
|
+
branch remain paused; no preview workflow or archive is consumed here.
|
|
14
|
+
|
|
15
|
+
## Versions and SemVer decision
|
|
16
|
+
|
|
17
|
+
| Candidate | Version | Reason |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| Spec | 6.0.0 | Its public schema objects and inferred Zod types move from Zod 3 to 4. |
|
|
20
|
+
| MCPUI Solid | 7.0.0 | Conservative compatibility boundary for the Spec 6 minimum and public Spec-derived types. It still uses Solid 1 and does not directly export Zod schema classes. |
|
|
21
|
+
| CLI | 5.0.2 | The public file/options command functions remain unchanged; Zod is an internal dependency and the additional changes fix packaging/validation defects. |
|
|
22
|
+
|
|
23
|
+
All three declare exact Zod `4.6.6`, the corrected version requested by the
|
|
24
|
+
brief. Solid and CLI declare `workspace:^6.0.0` for Spec; pnpm pack converts
|
|
25
|
+
this to public `^6.0.0`. A consumer-only override to the exact local Spec tarball
|
|
26
|
+
allows testing these unpublished candidates; it is not a source alias or a
|
|
27
|
+
replacement for publishing Spec first. No workspace override pretends to fix
|
|
28
|
+
old installed application copies.
|
|
29
|
+
|
|
30
|
+
The old unpublished `7.0.0-solid2.0` experiment is historical, not an alternative
|
|
31
|
+
package for this stable Solid 1 candidate. If Solid 2 is resumed later, reassess
|
|
32
|
+
its package version and reviewed channel policy. Do not publish that old archive
|
|
33
|
+
or widen its peers to reconcile the numbers.
|
|
34
|
+
|
|
35
|
+
## Compatibility decisions
|
|
36
|
+
|
|
37
|
+
- Convert the 20 Spec and three connector single-argument records to explicit
|
|
38
|
+
string keys. The existing two-argument `citationMap` contract is untouched.
|
|
39
|
+
- Remove six inert inner defaults whose Zod 3 outer `.optional()` prevented
|
|
40
|
+
materialization. Preserve both absent keys and own keys with `undefined` in
|
|
41
|
+
grid, security, performance and component metadata; tests compare complete
|
|
42
|
+
parsed objects with `toStrictEqual` and ownership checks.
|
|
43
|
+
- Make raw macro outcome `content` explicitly optional, preserving the old
|
|
44
|
+
acceptance of missing/undefined content. Other stored macro shapes stay valid.
|
|
45
|
+
- Give gallery transforms truthful string-input/numeric-literal-output types
|
|
46
|
+
and recursive macro schemas explicit input/output types, without `as any`.
|
|
47
|
+
- Preserve Solid's application `ValidationResult.errors[].code` and `params.*`
|
|
48
|
+
paths. Human-readable native Zod diagnostics may differ, for example missing
|
|
49
|
+
text changes from `Required` to `Invalid input: expected string, received
|
|
50
|
+
undefined`. The invalid payload is rejected in both versions and the renderer
|
|
51
|
+
still shows the same validation-notice structure; no renderer code is changed.
|
|
52
|
+
- CLI uses `ZodError.issues`, not its removed `errors` alias. Ajv's separate
|
|
53
|
+
`validate.errors` is retained. Existing JSON Schema hostname/URI constraints
|
|
54
|
+
are registered with the official formats plugin, not disabled. Zod and JSON
|
|
55
|
+
Schema are not identical: a hostname can pass the former and fail Ajv, as an
|
|
56
|
+
explicit regression test demonstrates.
|
|
57
|
+
|
|
58
|
+
## Pre-existing packaging gates repaired
|
|
59
|
+
|
|
60
|
+
The baseline build passed while emitted-package contracts were broken:
|
|
61
|
+
|
|
62
|
+
- Spec `/schemas` pointed to nonexistent JS/CJS files and its build deleted a
|
|
63
|
+
declaration folder still referenced by `types.d.ts`.
|
|
64
|
+
- CLI's advertised declarations were not produced by its canonical build, its
|
|
65
|
+
JSON Schema lookup relied on repository layout, and CommonJS default interop
|
|
66
|
+
made Ora non-callable.
|
|
67
|
+
- Strict NodeNext consumers encountered extensionless declaration references
|
|
68
|
+
in Spec and Solid, including copied CJS wrappers targeting the ESM graph.
|
|
69
|
+
|
|
70
|
+
The build retains the complete Spec declaration graph, exposes the actual
|
|
71
|
+
runtime subpaths and JSON Schema, emits CLI types, and normalizes real emitted
|
|
72
|
+
declarations using TypeScript AST nodes. ESM references use explicit `.js` and
|
|
73
|
+
the complete CJS declaration graph uses `.cjs`/`.d.cts`; unresolved relative
|
|
74
|
+
references fail the build. Bare imports and comments are not rewritten. These
|
|
75
|
+
are qualified against installed tarballs, not only source aliases.
|
|
76
|
+
|
|
77
|
+
## Measured baseline and regressions
|
|
78
|
+
|
|
79
|
+
Producer toolchain: Node 24.19.0, pnpm 8.15.0, TypeScript 5.9.3, Vitest 4.1.12.
|
|
80
|
+
Hosted CI uses Node 22 and is an independent gate; no Deposium tool installation
|
|
81
|
+
or pnpm 10 conversion substitutes for this repository's frozen lock.
|
|
82
|
+
|
|
83
|
+
- Baseline main build/types/lint pass: 128 files, 2,355 tests passed plus one
|
|
84
|
+
existing skip; zero lint errors and 425 existing warnings.
|
|
85
|
+
- New compatibility tests pass on Zod 3. Under Zod 4 before source adaptation,
|
|
86
|
+
omitted-default and missing-macro-content cases fail, then pass after the fix.
|
|
87
|
+
- On real Zod 3, three visit-counter tests fail because bounded collections are
|
|
88
|
+
walked before rejection. Real Zod 4.6.6 rejects leading oversized bounds with
|
|
89
|
+
zero visits, including synchronous/asynchronous and compiled paths. Controls
|
|
90
|
+
show that allowed values are transformed, overwrite order matters, and
|
|
91
|
+
unbounded collections still visit every element. No OOM or timing claim.
|
|
92
|
+
- CLI's removed error alias and missing format registration reproduce real
|
|
93
|
+
failures before the corresponding fixes, then pass with the real parsers.
|
|
94
|
+
- Existing baseline emitted-package failures and candidate failure logs are
|
|
95
|
+
retained separately; they are not described as regressions caused by Zod.
|
|
96
|
+
|
|
97
|
+
Exact final counts, tarball SHA-256 values, actual installed resolutions and
|
|
98
|
+
consumer/browser reports are generated by the verification scripts and recorded
|
|
99
|
+
with the PR/CI artifacts. Intermediate archives are not release candidates.
|
|
100
|
+
|
|
101
|
+
Final local source gates: 133 Vitest files, 2,379 passing tests and the same one
|
|
102
|
+
existing GraphRenderer skip; build and all source/contracts/examples typechecks
|
|
103
|
+
pass, lint has zero errors and 425 existing warnings. The declaration-finalizer
|
|
104
|
+
tests and offline release safeguards contribute 50 separate Node tests.
|
|
105
|
+
|
|
106
|
+
The independent packed consumer passes strict NodeNext ESM/CJS and Bundler
|
|
107
|
+
typechecks across root/component/hook/validation/adapter public declarations,
|
|
108
|
+
with non-`any` renderer signatures. All three packages resolve Zod 4.6.6 and
|
|
109
|
+
Solid/CLI resolve the exact same packed Spec. Actual CLI ESM/CJS calls qualify
|
|
110
|
+
both successful registry validation and Ajv-only hostname rejection.
|
|
111
|
+
|
|
112
|
+
Chromium qualifies the full and optional-absent profiles under pinned Solid
|
|
113
|
+
1.9.17, Vite 6.4.5 and plugin 2.11.10. Table/citation/fullscreen/copy, Leaflet
|
|
114
|
+
marker and escaped tooltip, G6 canvas, optional KaTeX MathML, fallback states
|
|
115
|
+
and cleanup are exercised with no page/console errors. Two full-profile Leaflet
|
|
116
|
+
icon attempts are served locally; no external network reaches a remote host.
|
|
117
|
+
The host uses normal nested CommonJS prebundling for installed engines, not a
|
|
118
|
+
runtime alias. Missing-peer warnings are recorded in the absent profile.
|
|
119
|
+
|
|
120
|
+
### Preserved baseline SSR boundary
|
|
121
|
+
|
|
122
|
+
Plain Node loading of compiled Solid root/components still throws the existing
|
|
123
|
+
client-only error under server conditions, reproduced with baseline tarballs.
|
|
124
|
+
This lot does not add a new server distribution graph. Runtime-free validation
|
|
125
|
+
and the other supported Node entries are checked independently; optional KaTeX
|
|
126
|
+
is not loadable without its peer. These exceptions are reported, not called
|
|
127
|
+
successful plain-Node SSR imports.
|
|
128
|
+
|
|
129
|
+
The real Solid 1 SSR probe instead compiles the **installed tarball's public
|
|
130
|
+
`solid` source condition**, as intended by the existing host contract. Its
|
|
131
|
+
client independently uses installed emitted `dist`, not repository aliases;
|
|
132
|
+
table SSR/hydration and cleanup pass. The source/dist distinction is recorded
|
|
133
|
+
in resolution evidence. The baseline passes the same optional-absent fixture.
|
|
134
|
+
This does not establish compatibility with the real Deposium application.
|
|
135
|
+
|
|
136
|
+
## Security and resource limits
|
|
137
|
+
|
|
138
|
+
Fresh full audits on matching baseline/current locks: five distinct advisories
|
|
139
|
+
before (one HIGH Zod, two moderate/two low fast-uri), four after (the same
|
|
140
|
+
fast-uri entries). Production audit after migration still has those four
|
|
141
|
+
entries. Audit exit status remains nonzero; there is no clean-audit claim.
|
|
142
|
+
|
|
143
|
+
The [upstream fix](https://github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd)
|
|
144
|
+
handles leading upper bounds before element parsing; it does not protect
|
|
145
|
+
unbounded schemas or unlimited request bodies. Zod 4's distribution also
|
|
146
|
+
contains a legacy `/v3` subpath: testing the installed active v4 parser and
|
|
147
|
+
scanning MCPUI source/output for legacy imports is the gate, not claiming the
|
|
148
|
+
upstream tarball contains no legacy files.
|
|
149
|
+
|
|
150
|
+
The existing `validateComponent` size check still accumulates
|
|
151
|
+
`PAYLOAD_TOO_LARGE` then calls the actual schema parser. Its size measure is
|
|
152
|
+
`JSON.stringify(component).length`, not UTF-8 bytes. A small real-parser spy
|
|
153
|
+
regression records this unchanged behavior; no arbitrary new map/table caps or
|
|
154
|
+
claim of universal payload hardening is included. A fail-fast change would be
|
|
155
|
+
a separate reviewed hardening commit, with its own public-error contracts.
|
|
156
|
+
|
|
157
|
+
## Reproduction and release gates
|
|
158
|
+
|
|
159
|
+
```sh
|
|
160
|
+
pnpm install --frozen-lockfile --ignore-scripts
|
|
161
|
+
pnpm build
|
|
162
|
+
pnpm typecheck
|
|
163
|
+
pnpm lint
|
|
164
|
+
pnpm -r exec vitest run --maxWorkers=4
|
|
165
|
+
node --test scripts/finalize-declarations.test.mjs scripts/solid2-preview/verify.test.mjs
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The Spec typecheck compiles existing type assertions and new contracts, not
|
|
169
|
+
just Vitest. The independent consumer runner in `scripts/zod4-stable/` accepts
|
|
170
|
+
actual packed Spec/Solid/CLI paths and expected versions. It checks installed
|
|
171
|
+
resolutions, public entries and strict NodeNext/Bundler declarations without
|
|
172
|
+
`skipLibCheck`; real Chromium/SSR probes report their graph/conditions and any
|
|
173
|
+
baseline limitations explicitly. JSDOM tests are never called browser proof.
|
|
174
|
+
|
|
175
|
+
Before publication: require green CI/review and separate explicit approval.
|
|
176
|
+
Stage/publish Spec first, verify it is public, then stage Solid with the
|
|
177
|
+
qualified Spec minimum (and CLI when requested). Keep the pnpm-pack → npm-stage
|
|
178
|
+
flow. An upload is not a public release: maintainer npm 2FA remains separate.
|
|
179
|
+
Check public/staged state before retrying; no blind version bump, duplicate
|
|
180
|
+
stage, Git tag, workflow dispatch, preview or `latest` mutation is authorized
|
|
181
|
+
by this record. Deposium consumption requires its own worktree/tests/build/PR.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-ship/mcp-ui-solid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "SolidJS components for rendering MCP-generated UI resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"!src/test-setup.ts",
|
|
12
12
|
"README.md",
|
|
13
13
|
"CHANGELOG.md",
|
|
14
|
+
"docs/THEMING.md",
|
|
15
|
+
"docs/SECURITY-DEPENDENCIES.md",
|
|
16
|
+
"docs/ZOD4-STABLE-MIGRATION-2026-10-26.md",
|
|
14
17
|
"LICENSE"
|
|
15
18
|
],
|
|
16
19
|
"sideEffects": [
|
|
@@ -229,11 +232,11 @@
|
|
|
229
232
|
}
|
|
230
233
|
},
|
|
231
234
|
"dependencies": {
|
|
232
|
-
"@seed-ship/mcp-ui-spec": "^
|
|
235
|
+
"@seed-ship/mcp-ui-spec": "^6.0.0",
|
|
233
236
|
"@types/dompurify": "^3.0.5",
|
|
234
|
-
"dompurify": "^3.4.
|
|
237
|
+
"dompurify": "^3.4.17",
|
|
235
238
|
"marked": "^16.3.0",
|
|
236
|
-
"zod": "
|
|
239
|
+
"zod": "4.6.6"
|
|
237
240
|
},
|
|
238
241
|
"devDependencies": {
|
|
239
242
|
"@size-limit/esbuild": "^12.0.0",
|
|
@@ -246,18 +249,18 @@
|
|
|
246
249
|
"@types/node": "^22.0.0",
|
|
247
250
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
248
251
|
"@typescript-eslint/parser": "^6.15.0",
|
|
249
|
-
"@vitest/ui": "
|
|
252
|
+
"@vitest/ui": "4.1.12",
|
|
250
253
|
"chart.js": "^4.5.1",
|
|
251
254
|
"eslint": "^8.56.0",
|
|
252
255
|
"jsdom": "^27.2.0",
|
|
253
256
|
"katex": "0.18.4",
|
|
254
257
|
"leaflet.markercluster": "^1.5.3",
|
|
255
258
|
"size-limit": "^12.0.0",
|
|
256
|
-
"solid-js": "^1.9.
|
|
259
|
+
"solid-js": "^1.9.17",
|
|
257
260
|
"typescript": "^5.3.3",
|
|
258
|
-
"vite": "
|
|
261
|
+
"vite": "6.4.5",
|
|
259
262
|
"vite-plugin-solid": "^2.11.8",
|
|
260
|
-
"vitest": "
|
|
263
|
+
"vitest": "4.1.12"
|
|
261
264
|
},
|
|
262
265
|
"keywords": [
|
|
263
266
|
"mcp",
|
|
@@ -281,7 +284,7 @@
|
|
|
281
284
|
},
|
|
282
285
|
"scripts": {
|
|
283
286
|
"build": "vite build && pnpm build:types",
|
|
284
|
-
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist --composite false && pnpm build:types:copy && cp dist/plugins/katex.d.ts dist/plugins/katex.d.cts",
|
|
287
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist --composite false && pnpm build:types:copy && cp dist/plugins/katex.d.ts dist/plugins/katex.d.cts && node ../scripts/finalize-declarations.mjs dist",
|
|
285
288
|
"build:types:copy": "printf \"export * from './components/index';\\nexport { default } from './components/index';\\n\" > dist/components.d.ts && printf \"export * from './hooks/index';\\n\" > dist/hooks.d.ts && printf \"export * from './types/index';\\n\" > dist/types.d.ts && printf \"export * from './adapters/index';\\n\" > dist/adapters.d.ts && pnpm build:types:cts",
|
|
286
289
|
"build:types:cts": "cp dist/index.d.ts dist/index.d.cts && cp dist/components.d.ts dist/components.d.cts 2>/dev/null || true && cp dist/hooks.d.ts dist/hooks.d.cts 2>/dev/null || true && cp dist/types.d.ts dist/types.d.cts 2>/dev/null || true && cp dist/validation.d.ts dist/validation.d.cts 2>/dev/null || true && cp dist/types-export.d.ts dist/types-export.d.cts 2>/dev/null || true && cp dist/adapters.d.ts dist/adapters.d.cts 2>/dev/null || true && cp dist/adapters/presentation.d.ts dist/adapters/presentation.d.cts 2>/dev/null || true && cp dist/plugins/duckdb.d.ts dist/plugins/duckdb.d.cts 2>/dev/null || true",
|
|
287
290
|
"dev": "vite build --watch",
|
|
@@ -141,9 +141,9 @@ const LenientResultSchema = z.object({
|
|
|
141
141
|
query: z.string(),
|
|
142
142
|
queryHash: z.string().optional(),
|
|
143
143
|
intent: z.string().optional(),
|
|
144
|
-
primary: z.record(z.unknown()),
|
|
145
|
-
supplemental: z.array(z.record(z.unknown())).optional(),
|
|
146
|
-
actions: z.array(z.record(z.unknown())).optional(),
|
|
144
|
+
primary: z.record(z.string(), z.unknown()),
|
|
145
|
+
supplemental: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
146
|
+
actions: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
147
147
|
})
|
|
148
148
|
|
|
149
149
|
const DEFAULT_GRID = { columns: 12, gap: '1rem' } as const
|
|
@@ -62,17 +62,17 @@ const ActionButton: Component<{
|
|
|
62
62
|
const variantClass = () => {
|
|
63
63
|
switch (props.action.variant) {
|
|
64
64
|
case 'primary':
|
|
65
|
-
return 'bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500'
|
|
65
|
+
return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'
|
|
66
66
|
case 'secondary':
|
|
67
|
-
return 'bg-gray-200 text-gray-800 hover:bg-gray-300 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600 focus:ring-gray-500'
|
|
67
|
+
return 'bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-200,#e5e7eb))] text-[color:var(--mcp-ui-fg,var(--color-gray-800,#1f2937))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-300,#d1d5db))] dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-600,#4b5563))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'
|
|
68
68
|
case 'outline':
|
|
69
|
-
return 'border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 focus:ring-gray-500'
|
|
69
|
+
return 'border border-[color:var(--mcp-ui-border,var(--color-gray-300,#d1d5db))] dark:border-[color:var(--mcp-ui-border,var(--color-gray-600,#4b5563))] text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-50,#f9fafb))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'
|
|
70
70
|
case 'ghost':
|
|
71
|
-
return 'text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-gray-500'
|
|
71
|
+
return 'text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-100,#f3f4f6))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'
|
|
72
72
|
case 'danger':
|
|
73
|
-
return 'bg-red-600 text-white hover:bg-red-700 focus:ring-red-500'
|
|
73
|
+
return 'bg-[color:var(--mcp-ui-danger,var(--color-red-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-danger-hover,var(--color-red-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-red-500))]'
|
|
74
74
|
default:
|
|
75
|
-
return 'bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500'
|
|
75
|
+
return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -162,10 +162,10 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
162
162
|
left: '0',
|
|
163
163
|
right: '0',
|
|
164
164
|
'z-index': '50',
|
|
165
|
-
'background-color': '#ffffff',
|
|
166
|
-
border: '1px solid #e5e7eb',
|
|
165
|
+
'background-color': 'var(--mcp-ui-surface, #ffffff)',
|
|
166
|
+
border: '1px solid var(--mcp-ui-border, #e5e7eb)',
|
|
167
167
|
'border-radius': '6px',
|
|
168
|
-
'box-shadow': '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
168
|
+
'box-shadow': 'var(--mcp-ui-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06))',
|
|
169
169
|
'max-height': props.maxHeight || '240px',
|
|
170
170
|
overflow: 'auto',
|
|
171
171
|
...positionStyles()
|
|
@@ -174,7 +174,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
174
174
|
return (
|
|
175
175
|
<Show when={props.isOpen}>
|
|
176
176
|
<div
|
|
177
|
-
class={`mcp-autocomplete-dropdown ${props.class || ''}`}
|
|
177
|
+
class={`mcp-ui-root mcp-autocomplete-dropdown ${props.class || ''}`}
|
|
178
178
|
style={containerStyles()}
|
|
179
179
|
role="listbox"
|
|
180
180
|
aria-label={strings.autocompleteSuggestions}
|
|
@@ -185,7 +185,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
185
185
|
class="mcp-autocomplete-loading"
|
|
186
186
|
style={{
|
|
187
187
|
padding: '12px 16px',
|
|
188
|
-
color: '#6b7280',
|
|
188
|
+
color: 'var(--mcp-ui-fg-muted, #6b7280)',
|
|
189
189
|
'font-size': '0.875rem',
|
|
190
190
|
display: 'flex',
|
|
191
191
|
'align-items': 'center',
|
|
@@ -197,8 +197,8 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
197
197
|
display: 'inline-block',
|
|
198
198
|
width: '14px',
|
|
199
199
|
height: '14px',
|
|
200
|
-
border: '2px solid #e5e7eb',
|
|
201
|
-
'border-top-color': '#3b82f6',
|
|
200
|
+
border: '2px solid var(--mcp-ui-border, #e5e7eb)',
|
|
201
|
+
'border-top-color': 'var(--mcp-ui-accent, #3b82f6)',
|
|
202
202
|
'border-radius': '50%',
|
|
203
203
|
animation: 'mcp-spin 0.6s linear infinite'
|
|
204
204
|
}}
|
|
@@ -213,7 +213,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
213
213
|
class="mcp-autocomplete-empty"
|
|
214
214
|
style={{
|
|
215
215
|
padding: '12px 16px',
|
|
216
|
-
color: '#9ca3af',
|
|
216
|
+
color: 'var(--mcp-ui-fg-subtle, #9ca3af)',
|
|
217
217
|
'font-size': '0.875rem',
|
|
218
218
|
'text-align': 'center'
|
|
219
219
|
}}
|
|
@@ -242,8 +242,8 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
242
242
|
style={{
|
|
243
243
|
padding: '8px 16px',
|
|
244
244
|
cursor: isDisabled() ? 'not-allowed' : 'pointer',
|
|
245
|
-
'background-color': isSelected() ? '#eff6ff' : 'transparent',
|
|
246
|
-
color: isDisabled() ? '#9ca3af' : '#374151',
|
|
245
|
+
'background-color': isSelected() ? 'var(--mcp-ui-accent-soft, #eff6ff)' : 'transparent',
|
|
246
|
+
color: isDisabled() ? 'var(--mcp-ui-fg-subtle, #9ca3af)' : 'var(--mcp-ui-fg, #374151)',
|
|
247
247
|
'font-size': '0.875rem',
|
|
248
248
|
transition: 'background-color 150ms ease'
|
|
249
249
|
}}
|
|
@@ -283,14 +283,14 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
283
283
|
class="mcp-autocomplete-footer"
|
|
284
284
|
style={{
|
|
285
285
|
padding: '6px 12px',
|
|
286
|
-
'border-top': '1px solid #e5e7eb',
|
|
287
|
-
'background-color': '#f9fafb',
|
|
286
|
+
'border-top': '1px solid var(--mcp-ui-border, #e5e7eb)',
|
|
287
|
+
'background-color': 'var(--mcp-ui-surface-muted, #f9fafb)',
|
|
288
288
|
'font-size': '0.75rem',
|
|
289
|
-
color: '#6b7280'
|
|
289
|
+
color: 'var(--mcp-ui-fg-muted, #6b7280)'
|
|
290
290
|
}}
|
|
291
291
|
>
|
|
292
292
|
<kbd style={{
|
|
293
|
-
'background-color': '#e5e7eb',
|
|
293
|
+
'background-color': 'var(--mcp-ui-surface-hover, #e5e7eb)',
|
|
294
294
|
padding: '1px 4px',
|
|
295
295
|
'border-radius': '2px',
|
|
296
296
|
'font-family': 'inherit',
|
|
@@ -298,7 +298,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
298
298
|
}}>↑</kbd>
|
|
299
299
|
{' '}
|
|
300
300
|
<kbd style={{
|
|
301
|
-
'background-color': '#e5e7eb',
|
|
301
|
+
'background-color': 'var(--mcp-ui-surface-hover, #e5e7eb)',
|
|
302
302
|
padding: '1px 4px',
|
|
303
303
|
'border-radius': '2px',
|
|
304
304
|
'font-family': 'inherit',
|
|
@@ -306,7 +306,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
306
306
|
}}>↓</kbd>
|
|
307
307
|
{strings.autocompleteHintNavigate}
|
|
308
308
|
<kbd style={{
|
|
309
|
-
'background-color': '#e5e7eb',
|
|
309
|
+
'background-color': 'var(--mcp-ui-surface-hover, #e5e7eb)',
|
|
310
310
|
padding: '1px 4px',
|
|
311
311
|
'border-radius': '2px',
|
|
312
312
|
'font-family': 'inherit',
|
|
@@ -314,7 +314,7 @@ export const AutocompleteDropdown: Component<AutocompleteDropdownProps> = (props
|
|
|
314
314
|
}}>Enter</kbd>
|
|
315
315
|
{strings.autocompleteHintSelect}
|
|
316
316
|
<kbd style={{
|
|
317
|
-
'background-color': '#e5e7eb',
|
|
317
|
+
'background-color': 'var(--mcp-ui-surface-hover, #e5e7eb)',
|
|
318
318
|
padding: '1px 4px',
|
|
319
319
|
'border-radius': '2px',
|
|
320
320
|
'font-family': 'inherit',
|
|
@@ -136,12 +136,13 @@ export const AutocompleteFormField: Component<AutocompleteFormFieldProps> = (pro
|
|
|
136
136
|
// Base input class
|
|
137
137
|
const baseInputClass = () => `
|
|
138
138
|
w-full px-3 py-2 border rounded-md
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
text-[color:var(--mcp-ui-fg,inherit)]
|
|
140
|
+
focus:ring-2 focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))] focus:border-[color:var(--mcp-ui-focus,var(--color-blue-500))]
|
|
141
|
+
disabled:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-100,#f3f4f6))] disabled:cursor-not-allowed
|
|
141
142
|
${props.error
|
|
142
|
-
? 'border-red-500 focus:ring-red-500'
|
|
143
|
-
: 'border-gray-300 dark:border-gray-600'}
|
|
144
|
-
dark:bg-gray-700 dark:text-white
|
|
143
|
+
? 'border-[color:var(--mcp-ui-danger-border,var(--color-red-500))] focus:ring-[color:var(--mcp-ui-focus,var(--color-red-500))]'
|
|
144
|
+
: 'border-[color:var(--mcp-ui-border-control,var(--color-gray-300,#d1d5db))] dark:border-[color:var(--mcp-ui-border-control,var(--color-gray-600,#4b5563))]'}
|
|
145
|
+
dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))]
|
|
145
146
|
`
|
|
146
147
|
|
|
147
148
|
const fieldId = () => `field-${props.field.name}`
|
|
@@ -166,11 +167,11 @@ export const AutocompleteFormField: Component<AutocompleteFormFieldProps> = (pro
|
|
|
166
167
|
<Show when={props.field.label}>
|
|
167
168
|
<label
|
|
168
169
|
for={fieldId()}
|
|
169
|
-
class="block text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
170
|
+
class="block text-sm font-medium text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))]"
|
|
170
171
|
>
|
|
171
172
|
{props.field.label}
|
|
172
173
|
<Show when={props.field.required}>
|
|
173
|
-
<span class="text-red-500 ml-1" aria-hidden="true">*</span>
|
|
174
|
+
<span class="text-[color:var(--mcp-ui-danger,var(--color-red-500))] ml-1" aria-hidden="true">*</span>
|
|
174
175
|
</Show>
|
|
175
176
|
</label>
|
|
176
177
|
</Show>
|
|
@@ -273,14 +274,14 @@ export const AutocompleteFormField: Component<AutocompleteFormFieldProps> = (pro
|
|
|
273
274
|
|
|
274
275
|
{/* Help text */}
|
|
275
276
|
<Show when={props.field.helpText && !props.error}>
|
|
276
|
-
<p class="text-xs text-gray-500 dark:text-gray-400">
|
|
277
|
+
<p class="text-xs text-[color:var(--mcp-ui-fg-muted,var(--color-gray-500,#6b7280))] dark:text-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))]">
|
|
277
278
|
{props.field.helpText}
|
|
278
279
|
</p>
|
|
279
280
|
</Show>
|
|
280
281
|
|
|
281
282
|
{/* Error message */}
|
|
282
283
|
<Show when={props.error}>
|
|
283
|
-
<p id={errorId()} role="alert" class="text-xs text-red-600 dark:text-red-400">
|
|
284
|
+
<p id={errorId()} role="alert" class="text-xs text-[color:var(--mcp-ui-danger,var(--color-red-600))] dark:text-[color:var(--mcp-ui-danger,var(--color-red-400))]">
|
|
284
285
|
{props.error}
|
|
285
286
|
</p>
|
|
286
287
|
</Show>
|