@knapsack/renderer-react 4.71.19--canary.5222.cb1568a.0 → 4.71.19--canary.5222.d399d3c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/analyze/infer-spec.test.mjs +4 -1
- package/dist/analyze/infer-spec.test.mjs.map +1 -1
- package/dist/analyze/utils/react-component-analyzer.d.mts.map +1 -1
- package/dist/analyze/utils/react-component-analyzer.mjs +10 -7
- package/dist/analyze/utils/react-component-analyzer.mjs.map +1 -1
- package/package.json +16 -16
@@ -188,7 +188,7 @@ test('infer types for Collapse', async (t) => {
|
|
188
188
|
const { ok, message } = validateSpec(spec);
|
189
189
|
t.is(ok, true, message);
|
190
190
|
});
|
191
|
-
test('infer types for Panel', async (t) => {
|
191
|
+
test.only('infer types for Panel', async (t) => {
|
192
192
|
const { ksTemplateSpec: spec } = await inferSpec({
|
193
193
|
path: '@knapsack/toby',
|
194
194
|
namedExport: 'Panel',
|
@@ -208,6 +208,9 @@ test('infer types for Panel', async (t) => {
|
|
208
208
|
if ('title' in spec.slots) {
|
209
209
|
t.pass('title should be in the slots');
|
210
210
|
}
|
211
|
+
if ('children' in spec.props.properties) {
|
212
|
+
t.fail('children should not be in the props');
|
213
|
+
}
|
211
214
|
const { ok, message } = validateSpec(spec);
|
212
215
|
t.is(ok, true, message);
|
213
216
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infer-spec.test.mjs","sourceRoot":"","sources":["../../src/analyze/infer-spec.test.mts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EACL,aAAa,EACb,cAAc,EAEd,aAAa,EACb,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,IAAI,CAAC,6DAA6D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9E,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,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CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC;SAAM,CAAC;QACN,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAC3C,CAAC;IAED,6DAA6D;IAC7D,IAAI,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,OAAO,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QACxC,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"react-component-analyzer.d.mts","sourceRoot":"","sources":["../../../src/analyze/utils/react-component-analyzer.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAGpE,MAAM,MAAM,cAAc,GAAG,MAAM,CACjC,MAAM,EACN;IACE,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC;
|
1
|
+
{"version":3,"file":"react-component-analyzer.d.mts","sourceRoot":"","sources":["../../../src/analyze/utils/react-component-analyzer.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAGpE,MAAM,MAAM,cAAc,GAAG,MAAM,CACjC,MAAM,EACN;IACE,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC;AAuFF;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAyF7B"}
|
@@ -46,21 +46,24 @@ const processProps = ({ properties, }) => {
|
|
46
46
|
};
|
47
47
|
Object.entries(properties).forEach(([propName, propInfo]) => {
|
48
48
|
var _a, _b;
|
49
|
-
props
|
50
|
-
required: !propInfo.typeInfo.isOptional,
|
51
|
-
description: (_a = propInfo.jsDoc) === null || _a === void 0 ? void 0 : _a.description,
|
52
|
-
typeInfo: propInfo.typeInfo,
|
53
|
-
};
|
54
|
-
// Check for slot-like props
|
49
|
+
// Check for slot-like props first
|
55
50
|
const isSlotProp = propName === 'children' || isReactNodeType(propInfo.typeInfo);
|
56
51
|
if (isSlotProp) {
|
57
52
|
slots.push({
|
58
53
|
title: propName,
|
59
|
-
...(((
|
54
|
+
...(((_a = propInfo.jsDoc) === null || _a === void 0 ? void 0 : _a.description) && {
|
60
55
|
description: propInfo.jsDoc.description,
|
61
56
|
}),
|
62
57
|
});
|
63
58
|
}
|
59
|
+
else {
|
60
|
+
// Only add to props if it's not a slot
|
61
|
+
props[propName] = {
|
62
|
+
required: !propInfo.typeInfo.isOptional,
|
63
|
+
description: (_b = propInfo.jsDoc) === null || _b === void 0 ? void 0 : _b.description,
|
64
|
+
typeInfo: propInfo.typeInfo,
|
65
|
+
};
|
66
|
+
}
|
64
67
|
});
|
65
68
|
return { props, slots };
|
66
69
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"react-component-analyzer.mjs","sourceRoot":"","sources":["../../../src/analyze/utils/react-component-analyzer.mts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAqBjD;;GAEG;AACH,MAAM,0BAA0B,GAAG,CAAC,EAClC,KAAK,GAGN,EAA4B,EAAE;IAC7B,MAAM,gBAAgB,GAA6B,EAAE,CAAC;IAEtD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAC9C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE;gBAC/D,kDAAkD;gBAClD,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC/B,gBAAgB,CAAC,QAAQ,CAAC,GAAG;wBAC3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ACb,IAAI,EAAE,SAAgB;qBACvB;iBACF;aACF,CAAC;YAEF,IAAI,QAAQ,KAAK,UAAU,EAAE,CAAC;gBAC5B,KAAK,CAAC,IAAI,CAAC;oBACT,KAAK,EAAE,UAAU;oBACjB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,WAAW;iBAC7C,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,KAAK;QACL,KAAK;KACN,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/renderer-react",
|
3
3
|
"description": "Render React",
|
4
|
-
"version": "4.71.19--canary.5222.
|
4
|
+
"version": "4.71.19--canary.5222.d399d3c.0",
|
5
5
|
"type": "commonjs",
|
6
6
|
"exports": {
|
7
7
|
".": {
|
@@ -31,15 +31,15 @@
|
|
31
31
|
"author": "Knapsack",
|
32
32
|
"dependencies": {
|
33
33
|
"@babel/preset-react": "^7.25.9",
|
34
|
-
"@knapsack/app": "4.71.19--canary.5222.
|
35
|
-
"@knapsack/creator-utils": "4.71.19--canary.5222.
|
36
|
-
"@knapsack/file-utils": "4.71.19--canary.5222.
|
37
|
-
"@knapsack/ks-file-utils": "4.71.19--canary.5222.
|
38
|
-
"@knapsack/renderer-react-components": "4.71.19--canary.5222.
|
39
|
-
"@knapsack/renderer-webpack-base": "4.71.19--canary.5222.
|
40
|
-
"@knapsack/spec-utils": "4.71.19--canary.5222.
|
41
|
-
"@knapsack/types": "4.71.19--canary.5222.
|
42
|
-
"@knapsack/utils": "4.71.19--canary.5222.
|
34
|
+
"@knapsack/app": "4.71.19--canary.5222.d399d3c.0",
|
35
|
+
"@knapsack/creator-utils": "4.71.19--canary.5222.d399d3c.0",
|
36
|
+
"@knapsack/file-utils": "4.71.19--canary.5222.d399d3c.0",
|
37
|
+
"@knapsack/ks-file-utils": "4.71.19--canary.5222.d399d3c.0",
|
38
|
+
"@knapsack/renderer-react-components": "4.71.19--canary.5222.d399d3c.0",
|
39
|
+
"@knapsack/renderer-webpack-base": "4.71.19--canary.5222.d399d3c.0",
|
40
|
+
"@knapsack/spec-utils": "4.71.19--canary.5222.d399d3c.0",
|
41
|
+
"@knapsack/types": "4.71.19--canary.5222.d399d3c.0",
|
42
|
+
"@knapsack/utils": "4.71.19--canary.5222.d399d3c.0",
|
43
43
|
"react": "^18.3.1",
|
44
44
|
"react-docgen": "^6.0.4",
|
45
45
|
"react-docgen-typescript": "^2.2.2",
|
@@ -48,11 +48,11 @@
|
|
48
48
|
"typescript": "^5.6.3"
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@knapsack/eslint-config-starter": "4.71.19--canary.5222.
|
52
|
-
"@knapsack/sandbox-components": "4.71.19--canary.5222.
|
53
|
-
"@knapsack/test-ava": "4.71.19--canary.5222.
|
54
|
-
"@knapsack/toby": "4.71.19--canary.5222.
|
55
|
-
"@knapsack/typescript-config-starter": "4.71.19--canary.5222.
|
51
|
+
"@knapsack/eslint-config-starter": "4.71.19--canary.5222.d399d3c.0",
|
52
|
+
"@knapsack/sandbox-components": "4.71.19--canary.5222.d399d3c.0",
|
53
|
+
"@knapsack/test-ava": "4.71.19--canary.5222.d399d3c.0",
|
54
|
+
"@knapsack/toby": "4.71.19--canary.5222.d399d3c.0",
|
55
|
+
"@knapsack/typescript-config-starter": "4.71.19--canary.5222.d399d3c.0",
|
56
56
|
"@mui/material": "^5.16.7",
|
57
57
|
"@mui/x-data-grid": "^6.20.4",
|
58
58
|
"@types/node": "^20.17.8",
|
@@ -70,5 +70,5 @@
|
|
70
70
|
"directory": "apps/client/renderers/renderer-react",
|
71
71
|
"type": "git"
|
72
72
|
},
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "d399d3c0fbce1ee8344958aea5006ec571e8a5cd"
|
74
74
|
}
|