@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/{chunk-EALTHXKT.js → chunk-PLKNERFG.js} +14 -5
- package/dist/chunk-PLKNERFG.js.map +1 -0
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/index.cjs +13 -4
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +1 -1
- package/examples/components/Table.examples.tsx +236 -0
- package/package.json +5 -5
- package/dist/chunk-EALTHXKT.js.map +0 -1
|
@@ -1117,14 +1117,18 @@ var componentMetadata = {
|
|
|
1117
1117
|
description: "Structured data display in rows and columns",
|
|
1118
1118
|
features: [
|
|
1119
1119
|
"Sortable columns",
|
|
1120
|
-
"Custom cell rendering",
|
|
1121
|
-
"
|
|
1122
|
-
"
|
|
1120
|
+
"Custom cell rendering via column `render` function",
|
|
1121
|
+
"Custom column titles (ReactNode) \u2014 render icons, badges, or any element as header",
|
|
1122
|
+
"Footer row support \u2014 static content or computed from data via `footer` callback",
|
|
1123
|
+
"Striped, bordered, and standard type variants",
|
|
1124
|
+
"Column alignment (left, center, right)"
|
|
1123
1125
|
],
|
|
1124
1126
|
bestPractices: [
|
|
1125
1127
|
"Use for structured, comparable data",
|
|
1126
1128
|
"Align numbers to the right",
|
|
1127
|
-
"
|
|
1129
|
+
"Column `title` accepts ReactNode \u2014 use for custom headers with icons or styled text",
|
|
1130
|
+
"Column `footer` accepts ReactNode or `(data: T[]) => ReactNode` \u2014 use the callback form for computed values like sums/averages",
|
|
1131
|
+
"Footer only renders when at least one column has a `footer` defined"
|
|
1128
1132
|
]
|
|
1129
1133
|
},
|
|
1130
1134
|
Tabs: {
|
|
@@ -66347,6 +66351,11 @@ function postProcessComponentTypes(componentName, result) {
|
|
|
66347
66351
|
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.";
|
|
66348
66352
|
}
|
|
66349
66353
|
}
|
|
66354
|
+
if (componentName.toLowerCase() === "table") {
|
|
66355
|
+
if (typeof result === "object" && result !== null) {
|
|
66356
|
+
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.";
|
|
66357
|
+
}
|
|
66358
|
+
}
|
|
66350
66359
|
if (componentName.toLowerCase() === "image") {
|
|
66351
66360
|
if (typeof result === "object" && result !== null) {
|
|
66352
66361
|
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} />";
|
|
@@ -67212,4 +67221,4 @@ export {
|
|
|
67212
67221
|
toolHandlers,
|
|
67213
67222
|
callTool
|
|
67214
67223
|
};
|
|
67215
|
-
//# sourceMappingURL=chunk-
|
|
67224
|
+
//# sourceMappingURL=chunk-PLKNERFG.js.map
|