@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
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Column headers and series names of the accessible chart data table.
|
|
3
|
+
*
|
|
4
|
+
* `chartToDataTable` is a pure helper with no access to `MCPUIStrings`, so
|
|
5
|
+
* the wording is injected: it takes an optional trailing `labels` partial,
|
|
6
|
+
* which `ChartJSRenderer` feeds from `useMCPUIStrings()`. Left out, the
|
|
7
|
+
* English defaults below apply — the pre-v6.20.0 behaviour.
|
|
8
|
+
*
|
|
9
|
+
* `x` / `y` / `r` stay untranslated on purpose: they are the Chart.js point
|
|
10
|
+
* property NAMES the cells mirror, not prose.
|
|
11
|
+
*
|
|
12
|
+
* @since v6.20.0
|
|
13
|
+
*/
|
|
14
|
+
export interface ChartDataTableLabels {
|
|
15
|
+
/** Series column of the per-point table. */
|
|
16
|
+
series: string;
|
|
17
|
+
/** Point-index column of the per-point table. */
|
|
18
|
+
point: string;
|
|
19
|
+
/** Label column (categorical table, and per-point table when labelled). */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Fallback dataset name. Template — `{n}`. */
|
|
22
|
+
seriesName: string;
|
|
23
|
+
/** Chart.js point property names — machine tokens, rarely overridden. */
|
|
24
|
+
x: string;
|
|
25
|
+
y: string;
|
|
26
|
+
r: string;
|
|
27
|
+
/**
|
|
28
|
+
* A value column header followed by the chart's `unit`. Template — `{label}`,
|
|
29
|
+
* `{unit}`. Only applied when the chart has a unit. Optional so that a
|
|
30
|
+
* complete labels table written for 6.20.0–6.23.0 still type-checks.
|
|
31
|
+
* @since v6.24.0
|
|
32
|
+
*/
|
|
33
|
+
withUnit?: string;
|
|
34
|
+
}
|
|
35
|
+
/** English defaults for {@link ChartDataTableLabels}. */
|
|
36
|
+
export declare const CHART_DATA_TABLE_LABELS: Required<ChartDataTableLabels>;
|
|
37
|
+
export interface ChartDataTable {
|
|
38
|
+
columns: string[];
|
|
39
|
+
rows: Array<Array<string | number>>;
|
|
40
|
+
/**
|
|
41
|
+
* Same shape as `rows`: `true` for a VALUE cell whose source entry is
|
|
42
|
+
* missing (`null` / non-finite, or a point whose `y` is). A slot past the
|
|
43
|
+
* end of a shorter or empty dataset has no entry and is not flagged. Label,
|
|
44
|
+
* series, point-index, `x` and `r` cells are never missing. `rows` itself
|
|
45
|
+
* still holds `''` there. @since v6.24.0
|
|
46
|
+
*/
|
|
47
|
+
missing: boolean[][];
|
|
48
|
+
}
|
|
49
|
+
interface ChartDatasetLike {
|
|
50
|
+
label?: string;
|
|
51
|
+
data?: unknown[];
|
|
52
|
+
}
|
|
53
|
+
export interface ChartDataLike {
|
|
54
|
+
type?: string;
|
|
55
|
+
/** Unit of the values: appended to the value column headers. @since v6.24.0 */
|
|
56
|
+
unit?: string;
|
|
57
|
+
data?: {
|
|
58
|
+
labels?: Array<string | number>;
|
|
59
|
+
datasets?: ChartDatasetLike[];
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Project Chart.js data into an accessible table without flattening point
|
|
64
|
+
* coordinates. Categorical charts use a compact wide table; scatter, bubble,
|
|
65
|
+
* and object-valued line charts use one row per point so x/y/r remain distinct.
|
|
66
|
+
*/
|
|
67
|
+
export declare function chartToDataTable(params: ChartDataLike, labels?: Partial<ChartDataTableLabels>): ChartDataTable;
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing values in a Chart.js chart (v6.24.0) — everything the renderer adds
|
|
3
|
+
* to its Chart.js config when a payload says a value is MISSING (`null`).
|
|
4
|
+
*
|
|
5
|
+
* The rule: absence is never zero. Chart.js already keeps the slot of a `null`
|
|
6
|
+
* (no label dropped) and draws nothing for it; what it does not do is make the
|
|
7
|
+
* absence READABLE. A null bar is a zero-height bar that is skipped when
|
|
8
|
+
* drawn, a null line point is a hole the line may bridge (`spanGaps`), and the
|
|
9
|
+
* legend, tooltip and axis know nothing of either. This module supplies:
|
|
10
|
+
*
|
|
11
|
+
* - {@link createMissingValuesPlugin} — a PER-CHART plugin (never
|
|
12
|
+
* `Chart.register`ed, so it can leak into no other chart) that outlines a
|
|
13
|
+
* dashed stub where a bar should have been (not on stacked or overlaid
|
|
14
|
+
* bars, whose baseline belongs to another series), and says "no data" on a
|
|
15
|
+
* chart with nothing to draw;
|
|
16
|
+
* - {@link createMissingLegendGenerator} — marks a fully-missing series in the
|
|
17
|
+
* legend;
|
|
18
|
+
* - {@link createTooltipLabel} — names a missing value, and appends the unit;
|
|
19
|
+
* - {@link withDatasetsNoGapSpan} — the shallow-cloned data with
|
|
20
|
+
* `spanGaps: false`;
|
|
21
|
+
* - {@link applyUnitAxisTitle} — the unit as the value axis title.
|
|
22
|
+
*
|
|
23
|
+
* Runtime-free on purpose (no `solid-js`, no `chart.js` import): the renderer
|
|
24
|
+
* hands in the Chart.js pieces it loaded and the chrome strings (lazily, as
|
|
25
|
+
* getters, so a late locale change is honoured at draw time). Every function
|
|
26
|
+
* is defensive — a drawing hook that throws would blank the whole chart.
|
|
27
|
+
*
|
|
28
|
+
* Chart.js 4.5.1 facts this relies on (verified in `dist/chart.js`):
|
|
29
|
+
* - a bar whose parsed value is `null` gets `base = head = vScale.getBasePixel()`
|
|
30
|
+
* and no `skip` flag (BarController.updateElements), and `BarController.draw`
|
|
31
|
+
* skips it (`getParsed(i)[vScale.axis] !== null`) — so nothing is painted;
|
|
32
|
+
* - the bar element still carries its true index-axis thickness (`width` for a
|
|
33
|
+
* vertical bar, `height` for a horizontal one).
|
|
34
|
+
*/
|
|
35
|
+
import type { MCPUIStrings } from "../context/MCPUIStringsContext.cjs";
|
|
36
|
+
type Strings = Required<MCPUIStrings>;
|
|
37
|
+
/** Length, in px along the value axis, of the dashed stub of a missing bar. */
|
|
38
|
+
export declare const MISSING_BAR_STUB_LENGTH = 12;
|
|
39
|
+
/** Stroke of the stub when the dataset names no border colour. */
|
|
40
|
+
export declare const MISSING_BAR_FALLBACK_COLOR = "#9ca3af";
|
|
41
|
+
/** Colour of the centred "no data" text. */
|
|
42
|
+
export declare const NO_DATA_TEXT_COLOR = "#6b7280";
|
|
43
|
+
/**
|
|
44
|
+
* The category of convention line a chart shows under its canvas:
|
|
45
|
+
* `'gaps'` (a line breaks), `'bars'` (a dashed outline stands in for the
|
|
46
|
+
* bar) or `'omitted'` (nothing is drawn: scatter, bubble, stacked bars).
|
|
47
|
+
*/
|
|
48
|
+
export type MissingNoteKind = 'gaps' | 'bars' | 'omitted';
|
|
49
|
+
/**
|
|
50
|
+
* Whether a bar chart's bars are stacked or overlaid (`stacked` on either
|
|
51
|
+
* axis). A missing bar there has no slot of its own at the baseline — the
|
|
52
|
+
* baseline belongs to the series below — so no dashed outline is drawn.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isStackedChart(options: any): boolean;
|
|
55
|
+
/** Which convention note a chart gets: how ITS missing values are drawn. */
|
|
56
|
+
export declare function missingNoteKind(chartType: string | undefined, options?: any): MissingNoteKind;
|
|
57
|
+
/**
|
|
58
|
+
* Chart.js data with every dataset shallow-cloned and `spanGaps: false`, so a
|
|
59
|
+
* line breaks at a missing value instead of joining its neighbours. Never
|
|
60
|
+
* mutates its input; `labels` and every other key are carried by reference.
|
|
61
|
+
*/
|
|
62
|
+
export declare function withDatasetsNoGapSpan<D extends {
|
|
63
|
+
datasets?: unknown;
|
|
64
|
+
}>(data: D): D;
|
|
65
|
+
type LegendGenerator = (chart: any) => any[];
|
|
66
|
+
/**
|
|
67
|
+
* Wraps a Chart.js legend label generator so a fully-missing dataset reads
|
|
68
|
+
* `"{series} (no data)"` (`strings.chartLegendNoData`). Every other item is
|
|
69
|
+
* passed through untouched.
|
|
70
|
+
*/
|
|
71
|
+
export declare function createMissingLegendGenerator(base: LegendGenerator, fullyMissing: readonly boolean[], getStrings: () => Strings): LegendGenerator;
|
|
72
|
+
/** Whether a Chart.js tooltip item stands for a missing value. */
|
|
73
|
+
export declare function isMissingTooltipItem(item: any): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Tooltip `label` callback: names a missing value (`"{series}: Missing
|
|
76
|
+
* value"`) and, with a `unit`, appends it to a present one. Otherwise it is
|
|
77
|
+
* Chart.js's default composition (dataset label, `": "`, formatted value) —
|
|
78
|
+
* including its `mode: 'dataset'` branch, which prefixes the CATEGORY label
|
|
79
|
+
* instead, since every item of that tooltip belongs to the same dataset.
|
|
80
|
+
* Hence a regular function: Chart.js calls it with the tooltip as `this`.
|
|
81
|
+
*
|
|
82
|
+
* `unit` is left off scatter and bubble tooltips: their formatted value is the
|
|
83
|
+
* pair `(x, y)`, to which one unit does not belong.
|
|
84
|
+
*/
|
|
85
|
+
export declare function createTooltipLabel(getStrings: () => Strings, unit: string | undefined, chartType: string | undefined): (this: any, item: any) => string;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the chart's `unit` as the title of its value axis, in place on the
|
|
88
|
+
* `options` object the renderer just built (never on the payload's).
|
|
89
|
+
*
|
|
90
|
+
* Only bar, line, scatter and bubble have a value axis to title. The value
|
|
91
|
+
* axis is `y`, or `x` when the index axis is `y` (a horizontal bar or line).
|
|
92
|
+
* An existing `scales[axis].title` is the payload's own word and is kept; the
|
|
93
|
+
* rest of the scale config (a `timeAxis` block sets `scales.x`) is kept too.
|
|
94
|
+
*/
|
|
95
|
+
export declare function applyUnitAxisTitle(options: any, chartType: string | undefined, unit: string | undefined): void;
|
|
96
|
+
export interface MissingValuesPluginOptions {
|
|
97
|
+
/** At least one dataset and every one of them has no observed value. */
|
|
98
|
+
allMissing: boolean;
|
|
99
|
+
/** Lazy: read at draw time. */
|
|
100
|
+
getNoDataText: () => string;
|
|
101
|
+
/** Lazy: `Chart.defaults.font.family`, when the build exposes it. */
|
|
102
|
+
getFontFamily?: () => string | undefined;
|
|
103
|
+
/** Lazy host theme override; omission retains the historical grey. */
|
|
104
|
+
getTextColor?: () => string | undefined;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Draws a dashed outline stub for every missing bar of every visible,
|
|
108
|
+
* non-stacked bar dataset, so a missing value is a visible mark, not a bar
|
|
109
|
+
* that "is" zero.
|
|
110
|
+
*
|
|
111
|
+
* The stub sits on the value-axis base, as thick as the bar would have been,
|
|
112
|
+
* and runs {@link MISSING_BAR_STUB_LENGTH}px toward the middle of the chart
|
|
113
|
+
* area (up from a bottom baseline, down from a top one, right from a left
|
|
114
|
+
* one). Clipped to the chart area.
|
|
115
|
+
*/
|
|
116
|
+
export declare function drawMissingBarStubs(chart: any): void;
|
|
117
|
+
/** Draws `text` centred in the chart area (a chart with nothing to plot). */
|
|
118
|
+
export declare function drawNoDataText(chart: any, text: string, fontFamily?: string, color?: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* The per-chart plugin object. Passed as `config.plugins = [plugin]`: Chart.js
|
|
121
|
+
* scopes it to that one chart. Both hooks swallow their own errors — a
|
|
122
|
+
* decoration must never take the chart down.
|
|
123
|
+
*/
|
|
124
|
+
export declare function createMissingValuesPlugin(options: MissingValuesPluginOptions): {
|
|
125
|
+
id: string;
|
|
126
|
+
afterDatasetsDraw(chart: any): void;
|
|
127
|
+
};
|
|
128
|
+
export {};
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* - the bar element still carries its true index-axis thickness (`width` for a
|
|
33
33
|
* vertical bar, `height` for a horizontal one).
|
|
34
34
|
*/
|
|
35
|
-
import type { MCPUIStrings } from
|
|
35
|
+
import type { MCPUIStrings } from "../context/MCPUIStringsContext.js";
|
|
36
36
|
type Strings = Required<MCPUIStrings>;
|
|
37
37
|
/** Length, in px along the value axis, of the dashed stub of a missing bar. */
|
|
38
38
|
export declare const MISSING_BAR_STUB_LENGTH = 12;
|
|
@@ -126,4 +126,3 @@ export declare function createMissingValuesPlugin(options: MissingValuesPluginOp
|
|
|
126
126
|
afterDatasetsDraw(chart: any): void;
|
|
127
127
|
};
|
|
128
128
|
export {};
|
|
129
|
-
//# sourceMappingURL=chart-missing-plugin.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP UI Solid - Components
|
|
3
|
+
*
|
|
4
|
+
* SolidJS components for rendering MCP-generated UI resources
|
|
5
|
+
*/
|
|
6
|
+
export { UIResourceRenderer } from "./UIResourceRenderer.cjs";
|
|
7
|
+
export type { UIResourceRendererProps } from "./UIResourceRenderer.cjs";
|
|
8
|
+
export { StreamingUIRenderer } from "./StreamingUIRenderer.cjs";
|
|
9
|
+
export type { StreamingUIRendererProps } from "./StreamingUIRenderer.cjs";
|
|
10
|
+
export { PresentationFeedback, DEFAULT_PRESENTATION_FEEDBACK_LABELS, } from "./PresentationFeedback.cjs";
|
|
11
|
+
export type { PresentationFeedbackProps, PresentationFeedbackLabels, } from "./PresentationFeedback.cjs";
|
|
12
|
+
export { GenerativeUIErrorBoundary } from "./GenerativeUIErrorBoundary.cjs";
|
|
13
|
+
export type { GenerativeUIErrorBoundaryProps } from "./GenerativeUIErrorBoundary.cjs";
|
|
14
|
+
export { FooterRenderer } from "./FooterRenderer.cjs";
|
|
15
|
+
export type { FooterComponentParams } from "./FooterRenderer.cjs";
|
|
16
|
+
export { ActionRenderer } from "./ActionRenderer.cjs";
|
|
17
|
+
export type { ActionRendererProps } from "./ActionRenderer.cjs";
|
|
18
|
+
export { ArtifactRenderer } from "./ArtifactRenderer.cjs";
|
|
19
|
+
export type { ArtifactComponentParams } from "./ArtifactRenderer.cjs";
|
|
20
|
+
export { CarouselRenderer } from "./CarouselRenderer.cjs";
|
|
21
|
+
export type { CarouselRendererProps } from "./CarouselRenderer.cjs";
|
|
22
|
+
export { GridRenderer } from "./GridRenderer.cjs";
|
|
23
|
+
export type { GridRendererProps, GridComponentParams } from "./GridRenderer.cjs";
|
|
24
|
+
export { FormRenderer } from "./FormRenderer.cjs";
|
|
25
|
+
export type { FormRendererProps } from "./FormRenderer.cjs";
|
|
26
|
+
export { FormFieldRenderer } from "./FormFieldRenderer.cjs";
|
|
27
|
+
export type { FormFieldRendererProps } from "./FormFieldRenderer.cjs";
|
|
28
|
+
export { ModalRenderer } from "./ModalRenderer.cjs";
|
|
29
|
+
export type { ModalRendererProps } from "./ModalRenderer.cjs";
|
|
30
|
+
export { ActionGroupRenderer } from "./ActionGroupRenderer.cjs";
|
|
31
|
+
export type { ActionGroupRendererProps } from "./ActionGroupRenderer.cjs";
|
|
32
|
+
export { ChartJSRenderer, isChartJSAvailable } from "./ChartJSRenderer.cjs";
|
|
33
|
+
export type { ChartJSRendererProps } from "./ChartJSRenderer.cjs";
|
|
34
|
+
export { LightboxOverlay } from "./LightboxOverlay.cjs";
|
|
35
|
+
export type { LightboxOverlayProps } from "./LightboxOverlay.cjs";
|
|
36
|
+
export { ImageGalleryRenderer } from "./ImageGalleryRenderer.cjs";
|
|
37
|
+
export type { ImageGalleryRendererProps } from "./ImageGalleryRenderer.cjs";
|
|
38
|
+
export { VideoRenderer, isSupportedVideoUrl, getVideoProvider } from "./VideoRenderer.cjs";
|
|
39
|
+
export type { VideoRendererProps } from "./VideoRenderer.cjs";
|
|
40
|
+
export { CodeBlockRenderer } from "./CodeBlockRenderer.cjs";
|
|
41
|
+
export type { CodeBlockRendererProps } from "./CodeBlockRenderer.cjs";
|
|
42
|
+
export { MapRenderer } from "./MapRenderer.cjs";
|
|
43
|
+
export type { MapRendererProps } from "./MapRenderer.cjs";
|
|
44
|
+
export { AgentCard, AgentStatusBadge } from "./AgentCard.cjs";
|
|
45
|
+
export type { AgentCardProps, AgentStatusBadgeProps } from "./AgentCard.cjs";
|
|
46
|
+
export { SplitStepper } from "./SplitStepper.cjs";
|
|
47
|
+
export type { SplitStepperProps } from "./SplitStepper.cjs";
|
|
48
|
+
export { AgentHandoff } from "./AgentHandoff.cjs";
|
|
49
|
+
export type { AgentHandoffProps } from "./AgentHandoff.cjs";
|
|
50
|
+
export { BriefingDiff } from "./BriefingDiff.cjs";
|
|
51
|
+
export type { BriefingDiffProps } from "./BriefingDiff.cjs";
|
|
52
|
+
export { VerifiedText } from "./VerifiedText.cjs";
|
|
53
|
+
export type { VerifiedTextProps } from "./VerifiedText.cjs";
|
|
54
|
+
export { DataPreviewSection } from "./DataPreviewSection.cjs";
|
|
55
|
+
export type { DataPreviewSectionProps } from "./DataPreviewSection.cjs";
|
|
56
|
+
export { RenderContext, RenderProvider, useRenderContext } from "./RenderContext.cjs";
|
|
57
|
+
export type { RenderContextValue, RenderComponentFn } from "./RenderContext.cjs";
|
|
58
|
+
export { ElicitationForm } from "./ElicitationForm.cjs";
|
|
59
|
+
export type { ElicitationFormProps } from "./ElicitationForm.cjs";
|
|
60
|
+
export { PortalDropdownMenu } from "./PortalDropdownMenu.cjs";
|
|
61
|
+
export type { PortalDropdownMenuProps } from "./PortalDropdownMenu.cjs";
|
|
62
|
+
export { UIResourceRenderer as default } from "./UIResourceRenderer.cjs";
|
|
@@ -3,61 +3,60 @@
|
|
|
3
3
|
*
|
|
4
4
|
* SolidJS components for rendering MCP-generated UI resources
|
|
5
5
|
*/
|
|
6
|
-
export { UIResourceRenderer } from
|
|
7
|
-
export type { UIResourceRendererProps } from
|
|
8
|
-
export { StreamingUIRenderer } from
|
|
9
|
-
export type { StreamingUIRendererProps } from
|
|
10
|
-
export { PresentationFeedback, DEFAULT_PRESENTATION_FEEDBACK_LABELS, } from
|
|
11
|
-
export type { PresentationFeedbackProps, PresentationFeedbackLabels, } from
|
|
12
|
-
export { GenerativeUIErrorBoundary } from
|
|
13
|
-
export type { GenerativeUIErrorBoundaryProps } from
|
|
14
|
-
export { FooterRenderer } from
|
|
15
|
-
export type { FooterComponentParams } from
|
|
16
|
-
export { ActionRenderer } from
|
|
17
|
-
export type { ActionRendererProps } from
|
|
18
|
-
export { ArtifactRenderer } from
|
|
19
|
-
export type { ArtifactComponentParams } from
|
|
20
|
-
export { CarouselRenderer } from
|
|
21
|
-
export type { CarouselRendererProps } from
|
|
22
|
-
export { GridRenderer } from
|
|
23
|
-
export type { GridRendererProps, GridComponentParams } from
|
|
24
|
-
export { FormRenderer } from
|
|
25
|
-
export type { FormRendererProps } from
|
|
26
|
-
export { FormFieldRenderer } from
|
|
27
|
-
export type { FormFieldRendererProps } from
|
|
28
|
-
export { ModalRenderer } from
|
|
29
|
-
export type { ModalRendererProps } from
|
|
30
|
-
export { ActionGroupRenderer } from
|
|
31
|
-
export type { ActionGroupRendererProps } from
|
|
32
|
-
export { ChartJSRenderer, isChartJSAvailable } from
|
|
33
|
-
export type { ChartJSRendererProps } from
|
|
34
|
-
export { LightboxOverlay } from
|
|
35
|
-
export type { LightboxOverlayProps } from
|
|
36
|
-
export { ImageGalleryRenderer } from
|
|
37
|
-
export type { ImageGalleryRendererProps } from
|
|
38
|
-
export { VideoRenderer, isSupportedVideoUrl, getVideoProvider } from
|
|
39
|
-
export type { VideoRendererProps } from
|
|
40
|
-
export { CodeBlockRenderer } from
|
|
41
|
-
export type { CodeBlockRendererProps } from
|
|
42
|
-
export { MapRenderer } from
|
|
43
|
-
export type { MapRendererProps } from
|
|
44
|
-
export { AgentCard, AgentStatusBadge } from
|
|
45
|
-
export type { AgentCardProps, AgentStatusBadgeProps } from
|
|
46
|
-
export { SplitStepper } from
|
|
47
|
-
export type { SplitStepperProps } from
|
|
48
|
-
export { AgentHandoff } from
|
|
49
|
-
export type { AgentHandoffProps } from
|
|
50
|
-
export { BriefingDiff } from
|
|
51
|
-
export type { BriefingDiffProps } from
|
|
52
|
-
export { VerifiedText } from
|
|
53
|
-
export type { VerifiedTextProps } from
|
|
54
|
-
export { DataPreviewSection } from
|
|
55
|
-
export type { DataPreviewSectionProps } from
|
|
56
|
-
export { RenderContext, RenderProvider, useRenderContext } from
|
|
57
|
-
export type { RenderContextValue, RenderComponentFn } from
|
|
58
|
-
export { ElicitationForm } from
|
|
59
|
-
export type { ElicitationFormProps } from
|
|
60
|
-
export { PortalDropdownMenu } from
|
|
61
|
-
export type { PortalDropdownMenuProps } from
|
|
62
|
-
export { UIResourceRenderer as default } from
|
|
63
|
-
//# sourceMappingURL=index.d.ts.map
|
|
6
|
+
export { UIResourceRenderer } from "./UIResourceRenderer.js";
|
|
7
|
+
export type { UIResourceRendererProps } from "./UIResourceRenderer.js";
|
|
8
|
+
export { StreamingUIRenderer } from "./StreamingUIRenderer.js";
|
|
9
|
+
export type { StreamingUIRendererProps } from "./StreamingUIRenderer.js";
|
|
10
|
+
export { PresentationFeedback, DEFAULT_PRESENTATION_FEEDBACK_LABELS, } from "./PresentationFeedback.js";
|
|
11
|
+
export type { PresentationFeedbackProps, PresentationFeedbackLabels, } from "./PresentationFeedback.js";
|
|
12
|
+
export { GenerativeUIErrorBoundary } from "./GenerativeUIErrorBoundary.js";
|
|
13
|
+
export type { GenerativeUIErrorBoundaryProps } from "./GenerativeUIErrorBoundary.js";
|
|
14
|
+
export { FooterRenderer } from "./FooterRenderer.js";
|
|
15
|
+
export type { FooterComponentParams } from "./FooterRenderer.js";
|
|
16
|
+
export { ActionRenderer } from "./ActionRenderer.js";
|
|
17
|
+
export type { ActionRendererProps } from "./ActionRenderer.js";
|
|
18
|
+
export { ArtifactRenderer } from "./ArtifactRenderer.js";
|
|
19
|
+
export type { ArtifactComponentParams } from "./ArtifactRenderer.js";
|
|
20
|
+
export { CarouselRenderer } from "./CarouselRenderer.js";
|
|
21
|
+
export type { CarouselRendererProps } from "./CarouselRenderer.js";
|
|
22
|
+
export { GridRenderer } from "./GridRenderer.js";
|
|
23
|
+
export type { GridRendererProps, GridComponentParams } from "./GridRenderer.js";
|
|
24
|
+
export { FormRenderer } from "./FormRenderer.js";
|
|
25
|
+
export type { FormRendererProps } from "./FormRenderer.js";
|
|
26
|
+
export { FormFieldRenderer } from "./FormFieldRenderer.js";
|
|
27
|
+
export type { FormFieldRendererProps } from "./FormFieldRenderer.js";
|
|
28
|
+
export { ModalRenderer } from "./ModalRenderer.js";
|
|
29
|
+
export type { ModalRendererProps } from "./ModalRenderer.js";
|
|
30
|
+
export { ActionGroupRenderer } from "./ActionGroupRenderer.js";
|
|
31
|
+
export type { ActionGroupRendererProps } from "./ActionGroupRenderer.js";
|
|
32
|
+
export { ChartJSRenderer, isChartJSAvailable } from "./ChartJSRenderer.js";
|
|
33
|
+
export type { ChartJSRendererProps } from "./ChartJSRenderer.js";
|
|
34
|
+
export { LightboxOverlay } from "./LightboxOverlay.js";
|
|
35
|
+
export type { LightboxOverlayProps } from "./LightboxOverlay.js";
|
|
36
|
+
export { ImageGalleryRenderer } from "./ImageGalleryRenderer.js";
|
|
37
|
+
export type { ImageGalleryRendererProps } from "./ImageGalleryRenderer.js";
|
|
38
|
+
export { VideoRenderer, isSupportedVideoUrl, getVideoProvider } from "./VideoRenderer.js";
|
|
39
|
+
export type { VideoRendererProps } from "./VideoRenderer.js";
|
|
40
|
+
export { CodeBlockRenderer } from "./CodeBlockRenderer.js";
|
|
41
|
+
export type { CodeBlockRendererProps } from "./CodeBlockRenderer.js";
|
|
42
|
+
export { MapRenderer } from "./MapRenderer.js";
|
|
43
|
+
export type { MapRendererProps } from "./MapRenderer.js";
|
|
44
|
+
export { AgentCard, AgentStatusBadge } from "./AgentCard.js";
|
|
45
|
+
export type { AgentCardProps, AgentStatusBadgeProps } from "./AgentCard.js";
|
|
46
|
+
export { SplitStepper } from "./SplitStepper.js";
|
|
47
|
+
export type { SplitStepperProps } from "./SplitStepper.js";
|
|
48
|
+
export { AgentHandoff } from "./AgentHandoff.js";
|
|
49
|
+
export type { AgentHandoffProps } from "./AgentHandoff.js";
|
|
50
|
+
export { BriefingDiff } from "./BriefingDiff.js";
|
|
51
|
+
export type { BriefingDiffProps } from "./BriefingDiff.js";
|
|
52
|
+
export { VerifiedText } from "./VerifiedText.js";
|
|
53
|
+
export type { VerifiedTextProps } from "./VerifiedText.js";
|
|
54
|
+
export { DataPreviewSection } from "./DataPreviewSection.js";
|
|
55
|
+
export type { DataPreviewSectionProps } from "./DataPreviewSection.js";
|
|
56
|
+
export { RenderContext, RenderProvider, useRenderContext } from "./RenderContext.js";
|
|
57
|
+
export type { RenderContextValue, RenderComponentFn } from "./RenderContext.js";
|
|
58
|
+
export { ElicitationForm } from "./ElicitationForm.js";
|
|
59
|
+
export type { ElicitationFormProps } from "./ElicitationForm.js";
|
|
60
|
+
export { PortalDropdownMenu } from "./PortalDropdownMenu.js";
|
|
61
|
+
export type { PortalDropdownMenuProps } from "./PortalDropdownMenu.js";
|
|
62
|
+
export { UIResourceRenderer as default } from "./UIResourceRenderer.js";
|
package/dist/components.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { default } from
|
|
1
|
+
export * from "./components/index.cjs";
|
|
2
|
+
export { default } from "./components/index.cjs";
|
package/dist/components.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { default } from
|
|
1
|
+
export * from "./components/index.js";
|
|
2
|
+
export { default } from "./components/index.js";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutocompleteContext - Context provider for autocomplete functionality
|
|
3
|
+
* Manages plugins and provides unified autocomplete API
|
|
4
|
+
*
|
|
5
|
+
* Sprint Autocomplete Feature
|
|
6
|
+
*/
|
|
7
|
+
import { ParentComponent, Accessor } from 'solid-js';
|
|
8
|
+
import type { AutocompletePlugin, AutocompleteResult, AutocompleteContext as AutocompleteContextData, AutocompleteProviderConfig } from "../types.cjs";
|
|
9
|
+
/**
|
|
10
|
+
* Context value interface
|
|
11
|
+
*/
|
|
12
|
+
export interface AutocompleteContextValue {
|
|
13
|
+
/**
|
|
14
|
+
* Get suggestions from a plugin
|
|
15
|
+
*/
|
|
16
|
+
getSuggestions: (input: string, pluginId?: string, context?: AutocompleteContextData) => Promise<AutocompleteResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Get registered plugins
|
|
19
|
+
*/
|
|
20
|
+
plugins: Accessor<AutocompletePlugin[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Get default plugin ID
|
|
23
|
+
*/
|
|
24
|
+
defaultPluginId: Accessor<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a plugin is ready
|
|
27
|
+
*/
|
|
28
|
+
isPluginReady: (pluginId: string) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Get plugin by ID
|
|
31
|
+
*/
|
|
32
|
+
getPlugin: (pluginId: string) => AutocompletePlugin | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Register a new plugin
|
|
35
|
+
*/
|
|
36
|
+
registerPlugin: (plugin: AutocompletePlugin) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Unregister a plugin
|
|
39
|
+
*/
|
|
40
|
+
unregisterPlugin: (pluginId: string) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Clear cache
|
|
43
|
+
*/
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Global config
|
|
47
|
+
*/
|
|
48
|
+
config: {
|
|
49
|
+
debounceMs: number;
|
|
50
|
+
minChars: number;
|
|
51
|
+
cacheTtl: number;
|
|
52
|
+
cacheEnabled: boolean;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
declare const AutocompleteCtx: import("solid-js").Context<AutocompleteContextValue | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Props for AutocompleteProvider
|
|
58
|
+
*/
|
|
59
|
+
export interface AutocompleteProviderProps extends AutocompleteProviderConfig {
|
|
60
|
+
children: any;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* AutocompleteProvider Component
|
|
64
|
+
* Provides autocomplete context to child components
|
|
65
|
+
*/
|
|
66
|
+
export declare const AutocompleteProvider: ParentComponent<AutocompleteProviderProps>;
|
|
67
|
+
/**
|
|
68
|
+
* Hook to use autocomplete context
|
|
69
|
+
* @throws Error if used outside provider
|
|
70
|
+
*/
|
|
71
|
+
export declare function useAutocompleteContext(): AutocompleteContextValue;
|
|
72
|
+
/**
|
|
73
|
+
* Safe hook that returns undefined if outside provider
|
|
74
|
+
*/
|
|
75
|
+
export declare function useAutocompleteContextSafe(): AutocompleteContextValue | undefined;
|
|
76
|
+
export { AutocompleteCtx };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Sprint Autocomplete Feature
|
|
6
6
|
*/
|
|
7
7
|
import { ParentComponent, Accessor } from 'solid-js';
|
|
8
|
-
import type { AutocompletePlugin, AutocompleteResult, AutocompleteContext as AutocompleteContextData, AutocompleteProviderConfig } from
|
|
8
|
+
import type { AutocompletePlugin, AutocompleteResult, AutocompleteContext as AutocompleteContextData, AutocompleteProviderConfig } from "../types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Context value interface
|
|
11
11
|
*/
|
|
@@ -74,4 +74,3 @@ export declare function useAutocompleteContext(): AutocompleteContextValue;
|
|
|
74
74
|
*/
|
|
75
75
|
export declare function useAutocompleteContextSafe(): AutocompleteContextValue | undefined;
|
|
76
76
|
export { AutocompleteCtx };
|
|
77
|
-
//# sourceMappingURL=AutocompleteContext.d.ts.map
|