@seed-ship/mcp-ui-solid 4.3.4 → 4.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-ship/mcp-ui-solid",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "SolidJS components for rendering MCP-generated UI resources",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -554,7 +554,7 @@ function TableRenderer(props: {
554
554
  const exportable = tableParams.exportable
555
555
  const exportFormats = typeof exportable === 'object' && exportable?.formats
556
556
  ? exportable.formats
557
- : ['csv', 'tsv', 'json']
557
+ : ['csv', 'json']
558
558
  const exportFilename = (typeof exportable === 'object' && exportable?.filename) || `table-${Math.random().toString(36).slice(2, 9)}`
559
559
 
560
560
  // Export dropdown state
@@ -638,9 +638,9 @@ function TableRenderer(props: {
638
638
  }
639
639
 
640
640
  return (
641
- <ExpandableWrapper title={tableParams.title || 'Table'} copyData={getTableText()} copyLabel="Copy table (TSV)">
641
+ <ExpandableWrapper title={tableParams.title || 'Table'} copyData={getTableCSV()} copyLabel="Copy table (CSV)">
642
642
  <div class="relative w-full h-full bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden group">
643
- <Show when={exportable} fallback={<CopyButton getText={getTableText} title="Copy table data" position="top-right" />}>
643
+ <Show when={exportable} fallback={<CopyButton getText={getTableCSV} title="Copy table (CSV)" position="top-right" />}>
644
644
  <div class="absolute right-10 top-2 z-10">
645
645
  <button
646
646
  onClick={() => setShowExportMenu(!showExportMenu())}
@@ -707,7 +707,13 @@ function TableRenderer(props: {
707
707
  <div
708
708
  ref={scrollContainerRef}
709
709
  class="overflow-x-auto"
710
- style={isVirtualizing() ? { 'max-height': '500px', 'overflow-y': 'auto' } : {}}
710
+ style={
711
+ isVirtualizing()
712
+ ? { 'max-height': '500px', 'overflow-y': 'auto' }
713
+ : clientVisibleRows().length > 8
714
+ ? { 'max-height': isExpanded() ? '70vh' : '400px', 'overflow-y': 'auto' }
715
+ : {}
716
+ }
711
717
  role="region"
712
718
  aria-label={tableParams.title || 'Data table'}
713
719
  tabindex="0"