@idealyst/mcp-server 1.2.119 → 11.2.120
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-UD56HXN3.js → chunk-RVMPULO4.js} +14 -8
- package/dist/chunk-RVMPULO4.js.map +1 -0
- package/dist/index.cjs +39 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -10
- package/dist/index.js.map +1 -1
- package/dist/tools/index.cjs +13 -7
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-UD56HXN3.js.map +0 -1
package/dist/tools/index.cjs
CHANGED
|
@@ -914,13 +914,17 @@ var componentMetadata = {
|
|
|
914
914
|
"Standard, alert, and confirmation types",
|
|
915
915
|
"Title and close button",
|
|
916
916
|
"Backdrop click to close",
|
|
917
|
-
"Animation types (slide, fade)"
|
|
917
|
+
"Animation types (slide, fade)",
|
|
918
|
+
"avoidKeyboard prop shifts dialog when keyboard opens (native)",
|
|
919
|
+
"height prop gives dialog a definite height so children can use flex: 1",
|
|
920
|
+
"Content area has flex: 1 \u2014 children can flex into available space"
|
|
918
921
|
],
|
|
919
922
|
bestPractices: [
|
|
920
923
|
"Use sparingly for important interactions",
|
|
921
924
|
"Provide clear actions for dismissal",
|
|
922
925
|
"Keep dialog content focused",
|
|
923
|
-
"Use confirmation dialogs for destructive actions"
|
|
926
|
+
"Use confirmation dialogs for destructive actions",
|
|
927
|
+
"Use height or maxContentHeight when children need flex-based sizing"
|
|
924
928
|
]
|
|
925
929
|
},
|
|
926
930
|
Divider: {
|
|
@@ -1265,12 +1269,14 @@ var componentMetadata = {
|
|
|
1265
1269
|
"Multiple sizes",
|
|
1266
1270
|
"Character count",
|
|
1267
1271
|
"Auto-resize",
|
|
1268
|
-
"Error state"
|
|
1272
|
+
"Error state",
|
|
1273
|
+
"fill prop for flex-based sizing (fills available space)"
|
|
1269
1274
|
],
|
|
1270
1275
|
bestPractices: [
|
|
1271
1276
|
"Use for multi-line input",
|
|
1272
1277
|
"Show character limits when applicable",
|
|
1273
|
-
"Provide appropriate placeholder text"
|
|
1278
|
+
"Provide appropriate placeholder text",
|
|
1279
|
+
"Use fill prop inside Dialog with avoidKeyboard to shrink with keyboard"
|
|
1274
1280
|
]
|
|
1275
1281
|
},
|
|
1276
1282
|
TextInput: {
|
|
@@ -16296,8 +16302,8 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
|
|
|
16296
16302
|
11. **NavigatorProvider** takes a \`route\` prop (SINGULAR) \u2014 NOT \`routes\`: \`<NavigatorProvider route={routeConfig} />\`. There is NO \`Router\` export.
|
|
16297
16303
|
12. Use \`useNavigator()\` \u2014 NOT \`useNavigate()\`.
|
|
16298
16304
|
13. \`navigate()\` takes an **object**: \`navigate({ path: '/settings' })\` \u2014 NOT \`navigate('/settings')\` or \`navigate('routeName', params)\`. To pass data use \`vars\`: \`navigate({ path: '/detail/:id', vars: { id: '123' } })\` \u2014 NOT \`params\`: \`navigate({ path: '/detail', params: { id: '123' } })\` (no \`params\` property exists).
|
|
16299
|
-
14. \`
|
|
16300
|
-
15. \`useParams()\` does NOT accept generic type arguments. It returns \`Record<string, string>\`. Do NOT write \`useParams<{ id: string }>()\` \u2014 that causes TS2558.
|
|
16305
|
+
14. \`navigate({ state: {...} })\` values must be \`string | number | boolean\` \u2014 NO \`undefined\`, \`null\`, or objects. When forwarding state across wizard steps, ensure all values are defined before passing: \`navigate({ path: '/step2', state: { firstName: name, age: 25 } })\`. Do NOT use optional fields in state types.
|
|
16306
|
+
15. \`useParams()\` does NOT accept generic type arguments. It returns \`Record<string, string | undefined>\`. Do NOT write \`useParams<{ id: string }>()\` \u2014 that causes TS2558. Always guard for undefined: \`const id = params.id; if (!id) return null;\`.
|
|
16301
16307
|
|
|
16302
16308
|
### Imports & Styling
|
|
16303
16309
|
16. **Never** import from \`react-native\` \u2014 no \`TouchableOpacity\`, \`FlatList\`, \`ScrollView\`, \`Animated\`, \`Dimensions\`, \`Linking\`, \`Platform\`. Idealyst provides cross-platform alternatives for all of these (e.g., \`openExternalLinks\` on Markdown, \`Pressable\` from \`@idealyst/components\`). **\`ScrollView\` is NOT exported from \`@idealyst/components\`** \u2014 use \`<View scrollable>\` instead. Do NOT \`import { ScrollView } from '@idealyst/components'\` \u2014 it will cause a TS import error.
|
|
@@ -65777,7 +65783,7 @@ function postProcessComponentTypes(componentName, result) {
|
|
|
65777
65783
|
}
|
|
65778
65784
|
if (componentName.toLowerCase() === "textarea") {
|
|
65779
65785
|
if (typeof result === "object" && result !== null) {
|
|
65780
|
-
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). Always call get_component_types('TextArea') separately \u2014 do NOT assume it shares TextInput's props.";
|
|
65786
|
+
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.";
|
|
65781
65787
|
}
|
|
65782
65788
|
}
|
|
65783
65789
|
if (componentName.toLowerCase() === "image") {
|