@knapsack/renderer-react 4.71.19--canary.5222.4814b96.0 → 4.71.19--canary.5222.cb1568a.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -170,7 +170,6 @@ test('infer types for Modal', async (t) => {
170
170
  }
171
171
  const { ok, message } = validateSpec(spec);
172
172
  t.is(ok, true, message);
173
- t.truthy(spec);
174
173
  });
175
174
  test('infer types for Collapse', async (t) => {
176
175
  const { ksTemplateSpec: spec } = await inferSpec({
@@ -188,7 +187,6 @@ test('infer types for Collapse', async (t) => {
188
187
  }
189
188
  const { ok, message } = validateSpec(spec);
190
189
  t.is(ok, true, message);
191
- t.truthy(spec);
192
190
  });
193
191
  test('infer types for Panel', async (t) => {
194
192
  const { ksTemplateSpec: spec } = await inferSpec({
@@ -203,8 +201,14 @@ test('infer types for Panel', async (t) => {
203
201
  else {
204
202
  t.fail('size should be an options prop');
205
203
  }
204
+ // ensure that tabs isn't inadvertently included in the slots
205
+ if ('tabs' in spec.slots) {
206
+ t.fail('tabs should not be in the slots');
207
+ }
208
+ if ('title' in spec.slots) {
209
+ t.pass('title should be in the slots');
210
+ }
206
211
  const { ok, message } = validateSpec(spec);
207
212
  t.is(ok, true, message);
208
- t.truthy(spec);
209
213
  });
210
214
  //# sourceMappingURL=infer-spec.test.mjs.map
@@ -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,GAAG,MAAM,SAAS,CAAC;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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;AAyEF;;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"}
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;AAqFF;;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"}
@@ -30,6 +30,20 @@ const mergeUnionObjectProperties = ({ items, }) => {
30
30
  const processProps = ({ properties, }) => {
31
31
  const props = {};
32
32
  const slots = [];
33
+ const isReactNodeType = (typeInfo) => {
34
+ var _a, _b, _c;
35
+ // Check the TypeScript metadata for React.ReactNode type
36
+ const typeName = (_c = (_b = (_a = typeInfo.tsMetadata) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.symbol) === null || _c === void 0 ? void 0 : _c.name;
37
+ // Common React type names
38
+ if (typeName === 'ReactNode' || typeInfo.tsRawType === 'ReactNode') {
39
+ return true;
40
+ }
41
+ // Handle union types that might include React nodes
42
+ if (typeInfo.type === 'union') {
43
+ return typeInfo.items.some((item) => isReactNodeType(item));
44
+ }
45
+ return false;
46
+ };
33
47
  Object.entries(properties).forEach(([propName, propInfo]) => {
34
48
  var _a, _b;
35
49
  props[propName] = {
@@ -38,9 +52,7 @@ const processProps = ({ properties, }) => {
38
52
  typeInfo: propInfo.typeInfo,
39
53
  };
40
54
  // Check for slot-like props
41
- const isSlotProp = propName === 'children' ||
42
- propInfo.typeInfo.tsRawType.includes('ReactNode') ||
43
- propInfo.typeInfo.tsRawType.includes('ReactElement');
55
+ const isSlotProp = propName === 'children' || isReactNodeType(propInfo.typeInfo);
44
56
  if (isSlotProp) {
45
57
  slots.push({
46
58
  title: propName,
@@ -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;wBAC3B,GAAG,QAAQ,CAAC,QAAQ;wBACpB,UAAU,EACR,gBAAgB,CAAC,QAAQ,CAAC,CAAC,UAAU;4BACrC,QAAQ,CAAC,QAAQ,CAAC,UAAU;qBAC/B,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACN,gBAAgB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC;gBACjD,CAAC;YACH,CAAC,CAAC,CA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AAc,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC;oBAC7D,SAAS,CAAC,QAAQ,CAAC,CAAC,UAAU;gBAChC,QAAQ,EAAE;oBACR,IAAI,EAAE,MAAM;oBACZ,SAAS,EAAE,SAAS;oBACpB,UAAU,EAAE;wBACV,SAAS,EAAE,EAAE;wBACb,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.4814b96.0",
4
+ "version": "4.71.19--canary.5222.cb1568a.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.4814b96.0",
35
- "@knapsack/creator-utils": "4.71.19--canary.5222.4814b96.0",
36
- "@knapsack/file-utils": "4.71.19--canary.5222.4814b96.0",
37
- "@knapsack/ks-file-utils": "4.71.19--canary.5222.4814b96.0",
38
- "@knapsack/renderer-react-components": "4.71.19--canary.5222.4814b96.0",
39
- "@knapsack/renderer-webpack-base": "4.71.19--canary.5222.4814b96.0",
40
- "@knapsack/spec-utils": "4.71.19--canary.5222.4814b96.0",
41
- "@knapsack/types": "4.71.19--canary.5222.4814b96.0",
42
- "@knapsack/utils": "4.71.19--canary.5222.4814b96.0",
34
+ "@knapsack/app": "4.71.19--canary.5222.cb1568a.0",
35
+ "@knapsack/creator-utils": "4.71.19--canary.5222.cb1568a.0",
36
+ "@knapsack/file-utils": "4.71.19--canary.5222.cb1568a.0",
37
+ "@knapsack/ks-file-utils": "4.71.19--canary.5222.cb1568a.0",
38
+ "@knapsack/renderer-react-components": "4.71.19--canary.5222.cb1568a.0",
39
+ "@knapsack/renderer-webpack-base": "4.71.19--canary.5222.cb1568a.0",
40
+ "@knapsack/spec-utils": "4.71.19--canary.5222.cb1568a.0",
41
+ "@knapsack/types": "4.71.19--canary.5222.cb1568a.0",
42
+ "@knapsack/utils": "4.71.19--canary.5222.cb1568a.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.4814b96.0",
52
- "@knapsack/sandbox-components": "4.71.19--canary.5222.4814b96.0",
53
- "@knapsack/test-ava": "4.71.19--canary.5222.4814b96.0",
54
- "@knapsack/toby": "4.71.19--canary.5222.4814b96.0",
55
- "@knapsack/typescript-config-starter": "4.71.19--canary.5222.4814b96.0",
51
+ "@knapsack/eslint-config-starter": "4.71.19--canary.5222.cb1568a.0",
52
+ "@knapsack/sandbox-components": "4.71.19--canary.5222.cb1568a.0",
53
+ "@knapsack/test-ava": "4.71.19--canary.5222.cb1568a.0",
54
+ "@knapsack/toby": "4.71.19--canary.5222.cb1568a.0",
55
+ "@knapsack/typescript-config-starter": "4.71.19--canary.5222.cb1568a.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": "4814b96f60420cd623f950a46772e97aeaac05cb"
73
+ "gitHead": "cb1568ad8b53310f23d6d813e596205068c69657"
74
74
  }