@idealyst/mcp-server 1.2.124 → 1.2.126

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/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  storageGuides,
8
8
  toolDefinitions,
9
9
  translateGuides
10
- } from "./chunk-EALTHXKT.js";
10
+ } from "./chunk-PLKNERFG.js";
11
11
 
12
12
  // src/index.ts
13
13
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
@@ -1237,14 +1237,18 @@ var componentMetadata = {
1237
1237
  description: "Structured data display in rows and columns",
1238
1238
  features: [
1239
1239
  "Sortable columns",
1240
- "Custom cell rendering",
1241
- "Header and footer",
1242
- "Striped rows"
1240
+ "Custom cell rendering via column `render` function",
1241
+ "Custom column titles (ReactNode) \u2014 render icons, badges, or any element as header",
1242
+ "Footer row support \u2014 static content or computed from data via `footer` callback",
1243
+ "Striped, bordered, and standard type variants",
1244
+ "Column alignment (left, center, right)"
1243
1245
  ],
1244
1246
  bestPractices: [
1245
1247
  "Use for structured, comparable data",
1246
1248
  "Align numbers to the right",
1247
- "Provide sorting for large datasets"
1249
+ "Column `title` accepts ReactNode \u2014 use for custom headers with icons or styled text",
1250
+ "Column `footer` accepts ReactNode or `(data: T[]) => ReactNode` \u2014 use the callback form for computed values like sums/averages",
1251
+ "Footer only renders when at least one column has a `footer` defined"
1248
1252
  ]
1249
1253
  },
1250
1254
  Tabs: {
@@ -66457,6 +66461,11 @@ function postProcessComponentTypes(componentName, result) {
66457
66461
  result.usageNote = "TextArea has a DIFFERENT API from TextInput. TextArea uses onChange (not onChangeText) and does NOT have onBlur. TextArea DOES support label, error, and rows props (TextInput does NOT support label/error). TextArea supports `fill` prop: when true, all container layers get flex: 1 so the textarea expands to fill available vertical space (useful inside Dialog with avoidKeyboard). Always call get_component_types('TextArea') separately \u2014 do NOT assume it shares TextInput's props.";
66458
66462
  }
66459
66463
  }
66464
+ if (componentName.toLowerCase() === "table") {
66465
+ if (typeof result === "object" && result !== null) {
66466
+ result.usageNote = "Table column `title` accepts ReactNode \u2014 you can render icons, styled text, or any element as the column header. Table column `footer` accepts `ReactNode | ((data: T[]) => ReactNode)`. Use static ReactNode for labels (e.g., 'Total'), or a callback function for computed values (e.g., `(data) => '$' + data.reduce((sum, r) => sum + r.price, 0).toFixed(2)`). The footer row only renders when at least one column has a `footer` defined \u2014 columns without `footer` render empty cells. Table does NOT have compound components \u2014 no Table.Header, Table.Body, Table.Footer. Use the `columns` prop with `title` and `footer` fields.";
66467
+ }
66468
+ }
66460
66469
  if (componentName.toLowerCase() === "image") {
66461
66470
  if (typeof result === "object" && result !== null) {
66462
66471
  result.usageNote = "Image uses `objectFit` (CSS convention) \u2014 NOT `resizeMode` (React Native convention). Valid objectFit values: 'contain', 'cover', 'fill', 'none', 'scale-down'. Image uses `source` prop (accepts URL string or ImageSourcePropType) \u2014 NOT `src`. Example: <Image source=\"https://example.com/photo.jpg\" objectFit=\"cover\" width={200} height={200} />";