@seed-ship/mcp-ui-solid 6.25.1 → 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 +22 -0
- package/README.md +14 -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.d.cts +38 -0
- package/dist/components/ActionGroupRenderer.d.ts +1 -2
- 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.d.cts +70 -0
- package/dist/components/AutocompleteDropdown.d.ts +1 -2
- package/dist/components/AutocompleteFormField.d.cts +51 -0
- package/dist/components/AutocompleteFormField.d.ts +1 -2
- 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.d.cts +62 -0
- package/dist/components/ChartJSRenderer.d.ts +1 -2
- package/dist/components/ChatPrompt.d.cts +69 -0
- package/dist/components/ChatPrompt.d.ts +1 -2
- package/dist/components/CodeBlockRenderer.d.cts +23 -0
- package/dist/components/CodeBlockRenderer.d.ts +1 -2
- package/dist/components/ComponentToolbar.d.cts +46 -0
- package/dist/components/ComponentToolbar.d.ts +0 -1
- package/dist/components/DataPreviewSection.d.cts +11 -0
- package/dist/components/DataPreviewSection.d.ts +1 -2
- package/dist/components/DegradedFallback.d.cts +43 -0
- package/dist/components/DegradedFallback.d.ts +0 -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.d.cts +49 -0
- package/dist/components/ExpandableWrapper.d.ts +0 -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.d.cts +19 -0
- package/dist/components/FormFieldRenderer.d.ts +1 -2
- package/dist/components/FormRenderer.d.cts +14 -0
- package/dist/components/FormRenderer.d.ts +1 -2
- 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/GhostText.d.cts +112 -0
- package/dist/components/GhostText.d.ts +0 -1
- package/dist/components/GraphRenderer.d.cts +66 -0
- package/dist/components/GraphRenderer.d.ts +1 -2
- 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.d.cts +26 -0
- package/dist/components/MissingValue.d.ts +0 -1
- package/dist/components/ModalRenderer.d.cts +66 -0
- package/dist/components/ModalRenderer.d.ts +1 -2
- package/dist/components/PortalDropdownMenu.d.cts +55 -0
- package/dist/components/PortalDropdownMenu.d.ts +0 -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.d.cts +34 -0
- package/dist/components/ScratchpadPanel.d.ts +1 -2
- 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.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/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.d.cts +128 -0
- package/dist/components/chart-missing-plugin.d.ts +1 -2
- 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.d.cts +15 -0
- package/dist/utils/math-markdown.d.ts +1 -2
- 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.d.cts +10 -0
- package/dist/utils/theme.d.ts +0 -1
- package/dist/validation.d.cts +3 -4
- package/dist/validation.d.ts +3 -4
- package/docs/SECURITY-DEPENDENCIES.md +129 -1
- package/docs/ZOD4-STABLE-MIGRATION-2026-10-26.md +181 -0
- package/package.json +8 -7
- package/src/adapters/connector.ts +3 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @experimental
|
|
6
6
|
*/
|
|
7
|
-
import type { AgentCardContent } from
|
|
7
|
+
import type { AgentCardContent } from "../types/chat-bus.js";
|
|
8
8
|
export interface AgentCardProps {
|
|
9
9
|
content: AgentCardContent;
|
|
10
10
|
}
|
|
@@ -17,4 +17,3 @@ export interface AgentStatusBadgeProps {
|
|
|
17
17
|
status: 'idle' | 'running' | 'waiting' | 'done' | 'error';
|
|
18
18
|
}
|
|
19
19
|
export declare function AgentStatusBadge(props: AgentStatusBadgeProps): import("solid-js").JSX.Element;
|
|
20
|
-
//# sourceMappingURL=AgentCard.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentHandoff — visualizes agent-to-agent transfer
|
|
3
|
+
* v4.1.0: AITL sprint — "Extracteur -> Analyste : 47 entites transmises"
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentHandoffContent } from "../types/chat-bus.cjs";
|
|
8
|
+
export interface AgentHandoffProps {
|
|
9
|
+
content: AgentHandoffContent;
|
|
10
|
+
}
|
|
11
|
+
export declare function AgentHandoff(props: AgentHandoffProps): import("solid-js").JSX.Element;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @experimental
|
|
6
6
|
*/
|
|
7
|
-
import type { AgentHandoffContent } from
|
|
7
|
+
import type { AgentHandoffContent } from "../types/chat-bus.js";
|
|
8
8
|
export interface AgentHandoffProps {
|
|
9
9
|
content: AgentHandoffContent;
|
|
10
10
|
}
|
|
11
11
|
export declare function AgentHandoff(props: AgentHandoffProps): import("solid-js").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=AgentHandoff.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from 'solid-js';
|
|
2
|
+
export interface ArtifactComponentParams {
|
|
3
|
+
url: string;
|
|
4
|
+
filename: string;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ArtifactRenderer: Component<{
|
|
10
|
+
params: ArtifactComponentParams;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutocompleteDropdown Component
|
|
3
|
+
* Displays data-driven dropdown suggestions
|
|
4
|
+
*
|
|
5
|
+
* Sprint Autocomplete Feature
|
|
6
|
+
*/
|
|
7
|
+
import { Component, JSX } from 'solid-js';
|
|
8
|
+
import type { AutocompleteOption } from "../types.cjs";
|
|
9
|
+
/**
|
|
10
|
+
* Props for AutocompleteDropdown
|
|
11
|
+
*/
|
|
12
|
+
export interface AutocompleteDropdownProps {
|
|
13
|
+
/**
|
|
14
|
+
* Options to display
|
|
15
|
+
*/
|
|
16
|
+
options: AutocompleteOption[];
|
|
17
|
+
/**
|
|
18
|
+
* Currently selected index
|
|
19
|
+
*/
|
|
20
|
+
selectedIndex: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether dropdown is visible
|
|
23
|
+
*/
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Callback when option is selected
|
|
27
|
+
*/
|
|
28
|
+
onSelect: (option: AutocompleteOption) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Callback when option is hovered
|
|
31
|
+
*/
|
|
32
|
+
onHover?: (index: number) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Whether loading
|
|
35
|
+
*/
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Custom class
|
|
39
|
+
*/
|
|
40
|
+
class?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Max height
|
|
43
|
+
*/
|
|
44
|
+
maxHeight?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Empty state message
|
|
47
|
+
*/
|
|
48
|
+
emptyMessage?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Loading message
|
|
51
|
+
*/
|
|
52
|
+
loadingMessage?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Highlight matching text in options
|
|
55
|
+
*/
|
|
56
|
+
highlightMatch?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Position (default: 'bottom')
|
|
59
|
+
*/
|
|
60
|
+
position?: 'top' | 'bottom';
|
|
61
|
+
/**
|
|
62
|
+
* Custom option renderer
|
|
63
|
+
*/
|
|
64
|
+
renderOption?: (option: AutocompleteOption, isSelected: boolean) => JSX.Element;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* AutocompleteDropdown Component
|
|
68
|
+
*/
|
|
69
|
+
export declare const AutocompleteDropdown: Component<AutocompleteDropdownProps>;
|
|
70
|
+
export default AutocompleteDropdown;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Sprint Autocomplete Feature
|
|
6
6
|
*/
|
|
7
7
|
import { Component, JSX } from 'solid-js';
|
|
8
|
-
import type { AutocompleteOption } from
|
|
8
|
+
import type { AutocompleteOption } from "../types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Props for AutocompleteDropdown
|
|
11
11
|
*/
|
|
@@ -68,4 +68,3 @@ export interface AutocompleteDropdownProps {
|
|
|
68
68
|
*/
|
|
69
69
|
export declare const AutocompleteDropdown: Component<AutocompleteDropdownProps>;
|
|
70
70
|
export default AutocompleteDropdown;
|
|
71
|
-
//# sourceMappingURL=AutocompleteDropdown.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutocompleteFormField Component
|
|
3
|
+
* Form field with integrated autocomplete support
|
|
4
|
+
*
|
|
5
|
+
* Sprint Autocomplete Feature
|
|
6
|
+
*/
|
|
7
|
+
import { Component, Accessor } from 'solid-js';
|
|
8
|
+
import type { FormFieldParams, FieldAutocompleteConfig } from "../types.cjs";
|
|
9
|
+
/**
|
|
10
|
+
* Extended FormFieldParams with autocomplete config
|
|
11
|
+
*/
|
|
12
|
+
export interface AutocompleteFormFieldParams extends FormFieldParams {
|
|
13
|
+
/**
|
|
14
|
+
* Autocomplete configuration for this field
|
|
15
|
+
*/
|
|
16
|
+
autocomplete?: FieldAutocompleteConfig;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for AutocompleteFormField
|
|
20
|
+
*/
|
|
21
|
+
export interface AutocompleteFormFieldProps {
|
|
22
|
+
/**
|
|
23
|
+
* Field configuration
|
|
24
|
+
*/
|
|
25
|
+
field: AutocompleteFormFieldParams;
|
|
26
|
+
/**
|
|
27
|
+
* Current field value
|
|
28
|
+
*/
|
|
29
|
+
value: any;
|
|
30
|
+
/**
|
|
31
|
+
* Error message
|
|
32
|
+
*/
|
|
33
|
+
error?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Change handler
|
|
36
|
+
*/
|
|
37
|
+
onChange: (value: any) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Whether field is disabled
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Form data accessor for conditional visibility and context
|
|
44
|
+
*/
|
|
45
|
+
formData?: Accessor<Record<string, any>>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* AutocompleteFormField Component
|
|
49
|
+
*/
|
|
50
|
+
export declare const AutocompleteFormField: Component<AutocompleteFormFieldProps>;
|
|
51
|
+
export default AutocompleteFormField;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Sprint Autocomplete Feature
|
|
6
6
|
*/
|
|
7
7
|
import { Component, Accessor } from 'solid-js';
|
|
8
|
-
import type { FormFieldParams, FieldAutocompleteConfig } from
|
|
8
|
+
import type { FormFieldParams, FieldAutocompleteConfig } from "../types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Extended FormFieldParams with autocomplete config
|
|
11
11
|
*/
|
|
@@ -49,4 +49,3 @@ export interface AutocompleteFormFieldProps {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare const AutocompleteFormField: Component<AutocompleteFormFieldProps>;
|
|
51
51
|
export default AutocompleteFormField;
|
|
52
|
-
//# sourceMappingURL=AutocompleteFormField.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BriefingDiff — highlight changes between two briefings
|
|
3
|
+
* v4.1.0: AITL sprint — added/removed/changed entries with color coding
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { BriefingDiffContent } from "../types/chat-bus.cjs";
|
|
8
|
+
export interface BriefingDiffProps {
|
|
9
|
+
content: BriefingDiffContent;
|
|
10
|
+
}
|
|
11
|
+
export declare function BriefingDiff(props: BriefingDiffProps): import("solid-js").JSX.Element;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @experimental
|
|
6
6
|
*/
|
|
7
|
-
import type { BriefingDiffContent } from
|
|
7
|
+
import type { BriefingDiffContent } from "../types/chat-bus.js";
|
|
8
8
|
export interface BriefingDiffProps {
|
|
9
9
|
content: BriefingDiffContent;
|
|
10
10
|
}
|
|
11
11
|
export declare function BriefingDiff(props: BriefingDiffProps): import("solid-js").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=BriefingDiff.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'solid-js';
|
|
2
|
+
import type { UIComponent } from "../types.cjs";
|
|
3
|
+
export interface CarouselRendererProps {
|
|
4
|
+
items: UIComponent[];
|
|
5
|
+
height?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Forwarded to the underlying `<ExpandableWrapper>` (v6.3.1).
|
|
8
|
+
* @see ExpandableWrapperProps.toolbarVariant
|
|
9
|
+
*/
|
|
10
|
+
toolbarVariant?: 'hover' | 'always-visible';
|
|
11
|
+
}
|
|
12
|
+
export declare const CarouselRenderer: Component<CarouselRendererProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'solid-js';
|
|
2
|
-
import type { UIComponent } from
|
|
2
|
+
import type { UIComponent } from "../types.js";
|
|
3
3
|
export interface CarouselRendererProps {
|
|
4
4
|
items: UIComponent[];
|
|
5
5
|
height?: string;
|
|
@@ -10,4 +10,3 @@ export interface CarouselRendererProps {
|
|
|
10
10
|
toolbarVariant?: 'hover' | 'always-visible';
|
|
11
11
|
}
|
|
12
12
|
export declare const CarouselRenderer: Component<CarouselRendererProps>;
|
|
13
|
-
//# sourceMappingURL=CarouselRenderer.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChartJSRenderer - Native Chart.js rendering
|
|
3
|
+
* Sprint 4: State & Charts
|
|
4
|
+
*
|
|
5
|
+
* Requires chart.js peer dependency:
|
|
6
|
+
* ```
|
|
7
|
+
* pnpm add chart.js
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* Wheel-zoom / drag-pan / pinch (v6.22.0) need a SECOND optional peer, since a
|
|
11
|
+
* canvas cannot be zoomed with a CSS transform without blurring:
|
|
12
|
+
* ```
|
|
13
|
+
* pnpm add chartjs-plugin-zoom
|
|
14
|
+
* ```
|
|
15
|
+
* Without it the chart renders exactly as it did before 6.22.0. Where zoom is
|
|
16
|
+
* offered is the host's call — see `MCPUIConfig.chartZoom`, default
|
|
17
|
+
* `'expanded'` (fullscreen modal only).
|
|
18
|
+
*/
|
|
19
|
+
import { Component } from 'solid-js';
|
|
20
|
+
import type { UIComponent } from "../types.cjs";
|
|
21
|
+
/**
|
|
22
|
+
* Check if Chart.js is available
|
|
23
|
+
*/
|
|
24
|
+
export declare function isChartJSAvailable(): Promise<boolean>;
|
|
25
|
+
export interface ChartJSRendererProps {
|
|
26
|
+
/**
|
|
27
|
+
* UIComponent with chart params
|
|
28
|
+
*/
|
|
29
|
+
component: UIComponent;
|
|
30
|
+
/**
|
|
31
|
+
* Error callback
|
|
32
|
+
*/
|
|
33
|
+
onError?: (error: Error) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Forwarded to the underlying `<ExpandableWrapper>` (v6.3.1).
|
|
36
|
+
* @see ExpandableWrapperProps.toolbarVariant
|
|
37
|
+
*/
|
|
38
|
+
toolbarVariant?: 'hover' | 'always-visible';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Native Chart.js renderer component
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* const chartComponent: UIComponent = {
|
|
46
|
+
* id: 'revenue-chart',
|
|
47
|
+
* type: 'chart',
|
|
48
|
+
* position: { colStart: 1, colSpan: 6 },
|
|
49
|
+
* params: {
|
|
50
|
+
* type: 'bar',
|
|
51
|
+
* title: 'Monthly Revenue',
|
|
52
|
+
* data: {
|
|
53
|
+
* labels: ['Jan', 'Feb', 'Mar'],
|
|
54
|
+
* datasets: [{ label: 'Revenue', data: [100, 200, 150] }]
|
|
55
|
+
* },
|
|
56
|
+
* renderer: 'native',
|
|
57
|
+
* },
|
|
58
|
+
* }
|
|
59
|
+
* <ChartJSRenderer component={chartComponent} />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare const ChartJSRenderer: Component<ChartJSRendererProps>;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `'expanded'` (fullscreen modal only).
|
|
18
18
|
*/
|
|
19
19
|
import { Component } from 'solid-js';
|
|
20
|
-
import type { UIComponent } from
|
|
20
|
+
import type { UIComponent } from "../types.js";
|
|
21
21
|
/**
|
|
22
22
|
* Check if Chart.js is available
|
|
23
23
|
*/
|
|
@@ -60,4 +60,3 @@ export interface ChartJSRendererProps {
|
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
62
|
export declare const ChartJSRenderer: Component<ChartJSRendererProps>;
|
|
63
|
-
//# sourceMappingURL=ChartJSRenderer.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatPrompt — Ephemeral structured interaction above chat input
|
|
3
|
+
* v2.4.0: choice, confirm, form subtypes
|
|
4
|
+
*
|
|
5
|
+
* @experimental — This component may change without major bump until v2.5.0.
|
|
6
|
+
*
|
|
7
|
+
* Renders above the chat input. User responds → consumer calls `onSubmit` →
|
|
8
|
+
* prompt disappears.
|
|
9
|
+
*
|
|
10
|
+
* ## AbortSignal — known limitation (v5.1.0)
|
|
11
|
+
*
|
|
12
|
+
* **`ChatPrompt` itself does NOT listen to any `AbortSignal`.** It is a pure
|
|
13
|
+
* presentation component: render a config, call `onSubmit` on user answer,
|
|
14
|
+
* call `onDismiss` on X/Cancel. Lifecycle (including abort handling) is the
|
|
15
|
+
* consumer's responsibility.
|
|
16
|
+
*
|
|
17
|
+
* `ChatCommands.showChatPrompt(config, signal?)` declares a `signal?` argument
|
|
18
|
+
* in its type, but in v5.0.0/v5.1.0 mcp-ui ships **no default handler** for
|
|
19
|
+
* this command — every consumer wires its own `bus.commands.handle('showChatPrompt', ...)`.
|
|
20
|
+
* Each consumer's handler is responsible for:
|
|
21
|
+
*
|
|
22
|
+
* 1. Storing a `{ resolve, reject }` pair when the command fires.
|
|
23
|
+
* 2. Calling `resolve(response)` from `onSubmit` / `resolve(dismissed)` from `onDismiss`.
|
|
24
|
+
* 3. If a `signal` is provided: `signal.addEventListener('abort', () =>
|
|
25
|
+
* reject(new DOMException('Prompt aborted', 'AbortError')))` and cleaning
|
|
26
|
+
* up the listener on resolve/dismiss.
|
|
27
|
+
*
|
|
28
|
+
* The `DOMException('AbortError')` shape is the Web Platform convention
|
|
29
|
+
* (matches `fetch()`, `Response.body.cancel()`, `WritableStream.abort()`).
|
|
30
|
+
* Consumers can branch on `err.name === 'AbortError'` without importing any
|
|
31
|
+
* mcp-ui type.
|
|
32
|
+
*
|
|
33
|
+
* A `createChatPromptController()` primitive centralising this wiring
|
|
34
|
+
* (resolver lifecycle + re-entrance + abort) is planned for v5.2.0 — see
|
|
35
|
+
* `docs/2026/r&d/mcpui-v5.1.0-consensus.md` for the design discussion.
|
|
36
|
+
*
|
|
37
|
+
* ## Re-entrance — known limitation (v5.1.0)
|
|
38
|
+
*
|
|
39
|
+
* Also handled by the consumer. If a new `showChatPrompt` arrives while a
|
|
40
|
+
* previous one is active, the consumer's handler must decide whether to
|
|
41
|
+
* auto-reject the previous Promise, queue, or throw. mcp-ui does not
|
|
42
|
+
* currently enforce any policy. See the same design doc for the v5.2.0
|
|
43
|
+
* direction (auto-reject with `PromptReplacedError`).
|
|
44
|
+
*/
|
|
45
|
+
import { Component } from 'solid-js';
|
|
46
|
+
import type { ChatPromptConfig, ChatPromptResponse } from "../types/chat-bus.cjs";
|
|
47
|
+
export interface ChatPromptProps {
|
|
48
|
+
/** Prompt configuration */
|
|
49
|
+
config: ChatPromptConfig;
|
|
50
|
+
/** Called when user responds */
|
|
51
|
+
onSubmit: (response: ChatPromptResponse) => void;
|
|
52
|
+
/** Called when user dismisses (e.g. "send as-is") */
|
|
53
|
+
onDismiss?: () => void;
|
|
54
|
+
/** Label for the dismiss button (replaces X icon). Default: shows X icon. */
|
|
55
|
+
dismissLabel?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @experimental
|
|
59
|
+
* Ephemeral interaction component — choice buttons, confirmation dialog, or quick form.
|
|
60
|
+
* Designed to sit between the chat messages and the input area.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* <ChatPrompt
|
|
64
|
+
* config={{ type: 'choice', title: 'Format?', config: { options: [...] } }}
|
|
65
|
+
* onSubmit={(r) => bus.events.emit('onChatPromptResponse', { streamKey, response: r })}
|
|
66
|
+
* onDismiss={() => setActivePrompt(null)}
|
|
67
|
+
* />
|
|
68
|
+
*/
|
|
69
|
+
export declare const ChatPrompt: Component<ChatPromptProps>;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* direction (auto-reject with `PromptReplacedError`).
|
|
44
44
|
*/
|
|
45
45
|
import { Component } from 'solid-js';
|
|
46
|
-
import type { ChatPromptConfig, ChatPromptResponse } from
|
|
46
|
+
import type { ChatPromptConfig, ChatPromptResponse } from "../types/chat-bus.js";
|
|
47
47
|
export interface ChatPromptProps {
|
|
48
48
|
/** Prompt configuration */
|
|
49
49
|
config: ChatPromptConfig;
|
|
@@ -67,4 +67,3 @@ export interface ChatPromptProps {
|
|
|
67
67
|
* />
|
|
68
68
|
*/
|
|
69
69
|
export declare const ChatPrompt: Component<ChatPromptProps>;
|
|
70
|
-
//# sourceMappingURL=ChatPrompt.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeBlockRenderer - Syntax highlighted code block
|
|
3
|
+
* Sprint 6: Code & Maps
|
|
4
|
+
* Sprint Ultimate: Theme Synchronization (U.1)
|
|
5
|
+
*/
|
|
6
|
+
import { Component } from 'solid-js';
|
|
7
|
+
import type { UIComponent, CodeComponentParams } from "../types.cjs";
|
|
8
|
+
export interface CodeBlockRendererProps {
|
|
9
|
+
/**
|
|
10
|
+
* UIComponent containing code params
|
|
11
|
+
*/
|
|
12
|
+
component?: UIComponent;
|
|
13
|
+
/**
|
|
14
|
+
* Direct code params
|
|
15
|
+
*/
|
|
16
|
+
params?: CodeComponentParams;
|
|
17
|
+
/**
|
|
18
|
+
* Forwarded to the underlying `<ExpandableWrapper>` (v6.3.1).
|
|
19
|
+
* @see ExpandableWrapperProps.toolbarVariant
|
|
20
|
+
*/
|
|
21
|
+
toolbarVariant?: 'hover' | 'always-visible';
|
|
22
|
+
}
|
|
23
|
+
export declare const CodeBlockRenderer: Component<CodeBlockRendererProps>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Sprint Ultimate: Theme Synchronization (U.1)
|
|
5
5
|
*/
|
|
6
6
|
import { Component } from 'solid-js';
|
|
7
|
-
import type { UIComponent, CodeComponentParams } from
|
|
7
|
+
import type { UIComponent, CodeComponentParams } from "../types.js";
|
|
8
8
|
export interface CodeBlockRendererProps {
|
|
9
9
|
/**
|
|
10
10
|
* UIComponent containing code params
|
|
@@ -21,4 +21,3 @@ export interface CodeBlockRendererProps {
|
|
|
21
21
|
toolbarVariant?: 'hover' | 'always-visible';
|
|
22
22
|
}
|
|
23
23
|
export declare const CodeBlockRenderer: Component<CodeBlockRendererProps>;
|
|
24
|
-
//# sourceMappingURL=CodeBlockRenderer.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ComponentToolbar - Unified toolbar for component actions
|
|
3
|
+
* v2.2.5: Consistent icon set, position, and hover behavior across all components
|
|
4
|
+
*/
|
|
5
|
+
import { Component } from 'solid-js';
|
|
6
|
+
/** SVG icon paths for toolbar actions */
|
|
7
|
+
declare const ICONS: {
|
|
8
|
+
readonly copy: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z";
|
|
9
|
+
readonly check: "M5 13l4 4L19 7";
|
|
10
|
+
readonly download: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z";
|
|
11
|
+
readonly expand: "M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5v-4m0 4h-4m4 0l-5-5";
|
|
12
|
+
readonly wordwrap: "M3 10h10a4 4 0 010 8H9m4 0l-3-3m3 3l-3 3M3 6h18M3 14h4";
|
|
13
|
+
};
|
|
14
|
+
export type ToolbarIcon = keyof typeof ICONS;
|
|
15
|
+
export interface ToolbarAction {
|
|
16
|
+
/** Icon to display */
|
|
17
|
+
icon: ToolbarIcon;
|
|
18
|
+
/** Tooltip label */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Click handler */
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
/** Whether to show a success state (green check) after click */
|
|
23
|
+
showFeedback?: boolean;
|
|
24
|
+
/** Active/toggled state (e.g. word wrap on) */
|
|
25
|
+
active?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ComponentToolbarProps {
|
|
28
|
+
/** Actions to display */
|
|
29
|
+
actions: ToolbarAction[];
|
|
30
|
+
/** Corner position */
|
|
31
|
+
position?: 'top-right' | 'top-left' | 'bottom-right';
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Renders a row of small icon buttons, visible on parent hover (requires parent `group` class).
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <div class="relative group">
|
|
38
|
+
* <MyContent />
|
|
39
|
+
* <ComponentToolbar actions={[
|
|
40
|
+
* { icon: 'copy', label: 'Copy', onClick: handleCopy, showFeedback: true },
|
|
41
|
+
* { icon: 'download', label: 'Download CSV', onClick: handleDownload },
|
|
42
|
+
* ]} />
|
|
43
|
+
* </div>
|
|
44
|
+
*/
|
|
45
|
+
export declare const ComponentToolbar: Component<ComponentToolbarProps>;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataPreviewSection — paginated, sortable data table with export
|
|
3
|
+
* v4.0.4: Full pagination spec (auto-activate, pageSize=0 disable, showPageInfo, onPageChange)
|
|
4
|
+
*
|
|
5
|
+
* @experimental
|
|
6
|
+
*/
|
|
7
|
+
import type { DataPreviewContent } from "../types/chat-bus.cjs";
|
|
8
|
+
export interface DataPreviewSectionProps {
|
|
9
|
+
content: DataPreviewContent;
|
|
10
|
+
}
|
|
11
|
+
export declare function DataPreviewSection(props: DataPreviewSectionProps): import("solid-js").JSX.Element;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @experimental
|
|
6
6
|
*/
|
|
7
|
-
import type { DataPreviewContent } from
|
|
7
|
+
import type { DataPreviewContent } from "../types/chat-bus.js";
|
|
8
8
|
export interface DataPreviewSectionProps {
|
|
9
9
|
content: DataPreviewContent;
|
|
10
10
|
}
|
|
11
11
|
export declare function DataPreviewSection(props: DataPreviewSectionProps): import("solid-js").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=DataPreviewSection.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DegradedFallback — the middle rung of the renderer fallback ladder
|
|
3
|
+
* (audit 2026-05-30, P2.5).
|
|
4
|
+
*
|
|
5
|
+
* Each heavy renderer (graph / map / chart) follows the same contract:
|
|
6
|
+
* 1. native render when its peer lib is available and succeeds;
|
|
7
|
+
* 2. **degraded but useful** view when the native render throws — this
|
|
8
|
+
* component: a visible notice + a plain data table so the user still
|
|
9
|
+
* sees the underlying data instead of a blank space;
|
|
10
|
+
* 3. (the caller also emits a `render:error` telemetry event).
|
|
11
|
+
*
|
|
12
|
+
* Pure / presentational — no peer deps, no side effects — so a render-path
|
|
13
|
+
* failure in a heavy lib can never cascade into the fallback itself, and it
|
|
14
|
+
* is trivially unit-testable. Rows/cells are rendered as text; callers are
|
|
15
|
+
* responsible for stringifying complex cell values.
|
|
16
|
+
*/
|
|
17
|
+
import { Component } from 'solid-js';
|
|
18
|
+
export interface DegradedFallbackProps {
|
|
19
|
+
/** Short, human-readable reason the native render was skipped/failed. */
|
|
20
|
+
message: string;
|
|
21
|
+
/**
|
|
22
|
+
* Column headers for the degraded data table. When omitted (or empty),
|
|
23
|
+
* only the notice banner is shown.
|
|
24
|
+
*/
|
|
25
|
+
columns?: string[];
|
|
26
|
+
/** Row data — each row is an array of cells aligned to `columns`. */
|
|
27
|
+
rows?: Array<Array<string | number>>;
|
|
28
|
+
/**
|
|
29
|
+
* Caption under the table. Defaults to a generic
|
|
30
|
+
* "interactive view unavailable" line.
|
|
31
|
+
*/
|
|
32
|
+
caption?: string;
|
|
33
|
+
/** Max rows to render before truncating (default 50). */
|
|
34
|
+
maxRows?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Same shape as `rows`: `true` marks a cell whose value is missing, which
|
|
37
|
+
* renders as `<MissingValueMark/>` instead of its text. A
|
|
38
|
+
* `<MissingValueLegend/>` follows the table when a SHOWN cell is missing.
|
|
39
|
+
* Omitted, the output is unchanged. @since v6.24.0
|
|
40
|
+
*/
|
|
41
|
+
missing?: boolean[][];
|
|
42
|
+
}
|
|
43
|
+
export declare const DegradedFallback: Component<DegradedFallbackProps>;
|