@seed-ship/mcp-ui-solid 6.3.1 → 6.5.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 +156 -0
- package/dist/components/GraphRenderer.cjs +30 -24
- package/dist/components/GraphRenderer.cjs.map +1 -1
- package/dist/components/GraphRenderer.d.ts.map +1 -1
- package/dist/components/GraphRenderer.js +30 -24
- package/dist/components/GraphRenderer.js.map +1 -1
- package/dist/components/PortalDropdownMenu.cjs +82 -0
- package/dist/components/PortalDropdownMenu.cjs.map +1 -0
- package/dist/components/PortalDropdownMenu.d.ts +56 -0
- package/dist/components/PortalDropdownMenu.d.ts.map +1 -0
- package/dist/components/PortalDropdownMenu.js +82 -0
- package/dist/components/PortalDropdownMenu.js.map +1 -0
- package/dist/components/UIResourceRenderer.cjs +297 -263
- package/dist/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/components/UIResourceRenderer.d.ts +20 -0
- package/dist/components/UIResourceRenderer.d.ts.map +1 -1
- package/dist/components/UIResourceRenderer.js +299 -265
- package/dist/components/UIResourceRenderer.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components.cjs +2 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +2 -0
- package/dist/components.d.ts +2 -0
- package/dist/components.js +2 -0
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/duplicate-mount-registry.cjs +27 -0
- package/dist/utils/duplicate-mount-registry.cjs.map +1 -0
- package/dist/utils/duplicate-mount-registry.d.ts +84 -0
- package/dist/utils/duplicate-mount-registry.d.ts.map +1 -0
- package/dist/utils/duplicate-mount-registry.js +27 -0
- package/dist/utils/duplicate-mount-registry.js.map +1 -0
- package/dist/utils/stable-key.cjs +41 -0
- package/dist/utils/stable-key.cjs.map +1 -0
- package/dist/utils/stable-key.d.ts +33 -0
- package/dist/utils/stable-key.d.ts.map +1 -0
- package/dist/utils/stable-key.js +41 -0
- package/dist/utils/stable-key.js.map +1 -0
- package/package.json +1 -1
- package/src/components/GraphRenderer.tsx +29 -20
- package/src/components/PortalDropdownMenu.test.tsx +113 -0
- package/src/components/PortalDropdownMenu.tsx +130 -0
- package/src/components/UIResourceRenderer.identity.test.tsx +161 -0
- package/src/components/UIResourceRenderer.tsx +85 -15
- package/src/components/index.ts +4 -0
- package/src/index.ts +10 -0
- package/src/utils/duplicate-mount-registry.test.ts +82 -0
- package/src/utils/duplicate-mount-registry.ts +113 -0
- package/src/utils/stable-key.test.ts +96 -0
- package/src/utils/stable-key.ts +91 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component } from 'solid-js';
|
|
6
6
|
import type { UIComponent, UILayout, RendererError } from '../types';
|
|
7
|
+
import { type DuplicateMountInfo } from '../utils/duplicate-mount-registry';
|
|
7
8
|
/**
|
|
8
9
|
* How `<UIResourceRenderer>` reacts when `validateComponent()` rejects a
|
|
9
10
|
* component (v5.4.0).
|
|
@@ -59,6 +60,25 @@ export interface UIResourceRendererProps {
|
|
|
59
60
|
* graph, map, video, carousel, image-gallery, code.
|
|
60
61
|
*/
|
|
61
62
|
toolbarVariant?: 'hover' | 'always-visible';
|
|
63
|
+
/**
|
|
64
|
+
* Per-instance hook fired when this renderer mounts a content key that
|
|
65
|
+
* is already mounted elsewhere in the document (v6.5.0 — closes Demande 2
|
|
66
|
+
* of `BRIEF-MCPUI-2026-05-10.md`).
|
|
67
|
+
*
|
|
68
|
+
* The key comes from `getUiResourceStableKey(content)` — `content.id` if
|
|
69
|
+
* provided, else a content hash. The reporter fires every time the
|
|
70
|
+
* concurrent mount count crosses 2+ ; consumers decide what to do
|
|
71
|
+
* (`console.warn`, telemetry beacon, debug overlay, …). The renderer
|
|
72
|
+
* never deduplicates visually on its own.
|
|
73
|
+
*/
|
|
74
|
+
onMountDuplicate?: (info: DuplicateMountInfo) => void;
|
|
75
|
+
/**
|
|
76
|
+
* When `true`, log duplicate mounts to `console.warn` from this instance
|
|
77
|
+
* even when the global `isDebugEnabled()` flag is off. Use to opt-in to
|
|
78
|
+
* console noise on a single suspect surface without flipping the global
|
|
79
|
+
* debug switch (v6.5.0).
|
|
80
|
+
*/
|
|
81
|
+
debugDuplicateMounts?: boolean;
|
|
62
82
|
}
|
|
63
83
|
/**
|
|
64
84
|
* Smart cell value renderer that handles markdown links and other formats
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIResourceRenderer.d.ts","sourceRoot":"","sources":["../../src/components/UIResourceRenderer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,SAAS,EAAyE,MAAM,UAAU,CAAA;AAE3G,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAA0B,MAAM,UAAU,CAAA;AAM5F;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"UIResourceRenderer.d.ts","sourceRoot":"","sources":["../../src/components/UIResourceRenderer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,SAAS,EAAyE,MAAM,UAAU,CAAA;AAE3G,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAA0B,MAAM,UAAU,CAAA;AAM5F,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAA;AAG1C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,CAAA;AAgEpE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;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