@seed-ship/mcp-ui-solid 6.2.0 → 6.3.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 +53 -0
- package/dist/components/ExpandableWrapper.cjs +2 -1
- package/dist/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/components/ExpandableWrapper.d.ts +10 -0
- package/dist/components/ExpandableWrapper.d.ts.map +1 -1
- package/dist/components/ExpandableWrapper.js +3 -2
- package/dist/components/ExpandableWrapper.js.map +1 -1
- package/dist/components/UIResourceRenderer.cjs +27 -12
- package/dist/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/components/UIResourceRenderer.d.ts.map +1 -1
- package/dist/components/UIResourceRenderer.js +27 -12
- package/dist/components/UIResourceRenderer.js.map +1 -1
- package/dist/mcp-ui-spec/dist/schemas.cjs +8 -1
- package/dist/mcp-ui-spec/dist/schemas.cjs.map +1 -1
- package/dist/mcp-ui-spec/dist/schemas.js +8 -1
- package/dist/mcp-ui-spec/dist/schemas.js.map +1 -1
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types.d.cts +11 -0
- package/dist/types.d.ts +11 -0
- package/package.json +2 -2
- package/src/components/ExpandableWrapper.tsx +16 -2
- package/src/components/UIResourceRenderer.tsx +19 -10
- package/src/types/index.ts +11 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -891,16 +891,25 @@ function TableRenderer(props: {
|
|
|
891
891
|
class={`overflow-x-auto ${isExpanded() ? 'flex-1 min-h-0' : ''}`}
|
|
892
892
|
style={
|
|
893
893
|
// v6.1.0 — when expanded, the scroll container fills the
|
|
894
|
-
// remaining vertical space
|
|
895
|
-
//
|
|
896
|
-
//
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
894
|
+
// remaining vertical space and scrolls internally.
|
|
895
|
+
// v6.3.0 — `params.maxHeight` opt-out (axe 1 deposium handoff)
|
|
896
|
+
// - 'auto' → no cap, parent handles overflow
|
|
897
|
+
// - number → `${n}px`, string → CSS as-is
|
|
898
|
+
// - undefined → existing 400/500px heuristic
|
|
899
|
+
(() => {
|
|
900
|
+
if (isExpanded()) return { 'overflow-y': 'auto' }
|
|
901
|
+
const mh = tableParams.maxHeight
|
|
902
|
+
if (mh === 'auto') return {}
|
|
903
|
+
if (mh !== undefined) {
|
|
904
|
+
return {
|
|
905
|
+
'max-height': typeof mh === 'number' ? `${mh}px` : mh,
|
|
906
|
+
'overflow-y': 'auto',
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
if (isVirtualizing()) return { 'max-height': '500px', 'overflow-y': 'auto' }
|
|
910
|
+
if (clientVisibleRows().length > 8) return { 'max-height': '400px', 'overflow-y': 'auto' }
|
|
911
|
+
return {}
|
|
912
|
+
})()
|
|
904
913
|
}
|
|
905
914
|
role="region"
|
|
906
915
|
aria-label={tableParams.title || 'Data table'}
|
package/src/types/index.ts
CHANGED
|
@@ -242,6 +242,17 @@ export interface TableComponentParams {
|
|
|
242
242
|
id: number,
|
|
243
243
|
mapping: CitationEntry | undefined
|
|
244
244
|
) => string
|
|
245
|
+
/**
|
|
246
|
+
* Opt-out for the inline-mode max-height cap (v6.3.0).
|
|
247
|
+
* - `'auto'` → no cap, parent container handles overflow
|
|
248
|
+
* - number → `${n}px`
|
|
249
|
+
* - string → CSS length as-is
|
|
250
|
+
* - undefined → existing behavior (400px when > 8 rows, 500px virtualizing)
|
|
251
|
+
*
|
|
252
|
+
* Ignored in expanded (fullscreen) mode — the modal uses
|
|
253
|
+
* `flex-1 min-h-0` regardless.
|
|
254
|
+
*/
|
|
255
|
+
maxHeight?: 'auto' | number | string
|
|
245
256
|
}
|
|
246
257
|
|
|
247
258
|
/**
|