@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.
@@ -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 (flex-1 + min-h-0 above) and
895
- // scrolls internally instead of the modal scrolling. Inline
896
- // mode keeps the previous max-height heuristic.
897
- isExpanded()
898
- ? { 'overflow-y': 'auto' }
899
- : isVirtualizing()
900
- ? { 'max-height': '500px', 'overflow-y': 'auto' }
901
- : clientVisibleRows().length > 8
902
- ? { 'max-height': '400px', 'overflow-y': 'auto' }
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'}
@@ -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
  /**