@knapsack/renderer-react 4.71.19--canary.5222.cb1568a.0 → 4.71.19--canary.5325.d5f1abb.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/dist/analyze/infer-spec.test.d.ts +2 -0
  2. package/dist/analyze/infer-spec.test.d.ts.map +1 -0
  3. package/dist/analyze/infer-spec.test.js +112 -0
  4. package/dist/analyze/infer-spec.test.js.map +1 -0
  5. package/dist/analyze/mui.test.d.ts +2 -0
  6. package/dist/analyze/mui.test.d.ts.map +1 -0
  7. package/dist/analyze/mui.test.js +60 -0
  8. package/dist/analyze/mui.test.js.map +1 -0
  9. package/dist/analyze/pkg-basic.test.d.ts +2 -0
  10. package/dist/analyze/pkg-basic.test.d.ts.map +1 -0
  11. package/dist/analyze/pkg-basic.test.js +33 -0
  12. package/dist/analyze/pkg-basic.test.js.map +1 -0
  13. package/dist/analyze/pkg-diff-types.test.d.ts +2 -0
  14. package/dist/analyze/pkg-diff-types.test.d.ts.map +1 -0
  15. package/dist/analyze/pkg-diff-types.test.js +43 -0
  16. package/dist/analyze/pkg-diff-types.test.js.map +1 -0
  17. package/dist/renderer-react.d.ts.map +1 -1
  18. package/dist/renderer-react.js +8 -9
  19. package/dist/renderer-react.js.map +1 -1
  20. package/package.json +14 -16
  21. package/dist/analyze/index.d.mts +0 -2
  22. package/dist/analyze/index.d.mts.map +0 -1
  23. package/dist/analyze/index.mjs +0 -2
  24. package/dist/analyze/index.mjs.map +0 -1
  25. package/dist/analyze/infer-spec-fixtures/components.d.ts +0 -99
  26. package/dist/analyze/infer-spec-fixtures/components.d.ts.map +0 -1
  27. package/dist/analyze/infer-spec-fixtures/components.js +0 -59
  28. package/dist/analyze/infer-spec-fixtures/components.js.map +0 -1
  29. package/dist/analyze/infer-spec-fixtures/index.d.mts +0 -2
  30. package/dist/analyze/infer-spec-fixtures/index.d.mts.map +0 -1
  31. package/dist/analyze/infer-spec-fixtures/index.mjs +0 -2
  32. package/dist/analyze/infer-spec-fixtures/index.mjs.map +0 -1
  33. package/dist/analyze/infer-spec.d.mts +0 -27
  34. package/dist/analyze/infer-spec.d.mts.map +0 -1
  35. package/dist/analyze/infer-spec.mjs +0 -98
  36. package/dist/analyze/infer-spec.mjs.map +0 -1
  37. package/dist/analyze/infer-spec.test.d.mts +0 -2
  38. package/dist/analyze/infer-spec.test.d.mts.map +0 -1
  39. package/dist/analyze/infer-spec.test.mjs +0 -214
  40. package/dist/analyze/infer-spec.test.mjs.map +0 -1
  41. package/dist/analyze/mui.test.d.mts +0 -2
  42. package/dist/analyze/mui.test.d.mts.map +0 -1
  43. package/dist/analyze/mui.test.mjs +0 -88
  44. package/dist/analyze/mui.test.mjs.map +0 -1
  45. package/dist/analyze/pkg-basic.test.d.mts +0 -2
  46. package/dist/analyze/pkg-basic.test.d.mts.map +0 -1
  47. package/dist/analyze/pkg-basic.test.mjs +0 -28
  48. package/dist/analyze/pkg-basic.test.mjs.map +0 -1
  49. package/dist/analyze/pkg-diff-types.test.d.mts +0 -2
  50. package/dist/analyze/pkg-diff-types.test.d.mts.map +0 -1
  51. package/dist/analyze/pkg-diff-types.test.mjs +0 -29
  52. package/dist/analyze/pkg-diff-types.test.mjs.map +0 -1
  53. package/dist/analyze/utils/importer.d.mts +0 -17
  54. package/dist/analyze/utils/importer.d.mts.map +0 -1
  55. package/dist/analyze/utils/importer.mjs +0 -80
  56. package/dist/analyze/utils/importer.mjs.map +0 -1
  57. package/dist/analyze/utils/react-component-analyzer.d.mts +0 -24
  58. package/dist/analyze/utils/react-component-analyzer.d.mts.map +0 -1
  59. package/dist/analyze/utils/react-component-analyzer.mjs +0 -151
  60. package/dist/analyze/utils/react-component-analyzer.mjs.map +0 -1
  61. package/turbo.json +0 -9
  62. /package/{.eslintrc.cjs → .eslintrc.js} +0 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=infer-spec.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infer-spec.test.d.ts","sourceRoot":"","sources":["../../src/analyze/infer-spec.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const types_1 = require("@knapsack/types");
8
+ const renderers_1 = require("@knapsack/app/renderers");
9
+ const utils_1 = require("../utils");
10
+ (0, ava_1.default)('infer types in packages with different files name for types', async (t) => {
11
+ const spec = await (0, utils_1.getReactDocs)({
12
+ src: '@knapsack/sandbox-components/react',
13
+ exportName: 'Button',
14
+ resolveFromDir: __dirname,
15
+ });
16
+ if (spec === false) {
17
+ t.fail(`Spec could not be inferred`);
18
+ return;
19
+ }
20
+ t.truthy(spec);
21
+ t.deepEqual(Object.keys(spec.props.properties).sort(), ['label', 'mode', 'size', 'type'].sort());
22
+ if ((0, types_1.isOptionsProp)(spec.props.properties.size)) {
23
+ t.deepEqual(spec.props.properties.size.enum, ['small', 'medium', 'large']);
24
+ }
25
+ else {
26
+ t.log(spec.props.properties.size);
27
+ t.fail(`size prop should be an options prop`);
28
+ }
29
+ if ((0, types_1.isOptionsProp)(spec.props.properties.type)) {
30
+ t.deepEqual(spec.props.properties.type.enum, ['filled', 'outlined']);
31
+ }
32
+ else {
33
+ t.log(spec.props.properties.type);
34
+ t.fail(`type prop should be an options prop`);
35
+ }
36
+ if ((0, types_1.isOptionsProp)(spec.props.properties.mode)) {
37
+ t.deepEqual(spec.props.properties.mode.enum, [
38
+ 'default',
39
+ 'success',
40
+ 'error',
41
+ 'warning',
42
+ ]);
43
+ }
44
+ else {
45
+ t.log(spec.props.properties.mode);
46
+ t.fail(`mode prop should be an options prop`);
47
+ }
48
+ });
49
+ (0, ava_1.default)('inferDocs card.tsx with types', async (t) => {
50
+ const spec = await (0, utils_1.getReactDocs)({
51
+ src: '@knapsack/renderer-react-components/test-fixtures',
52
+ exportName: 'Card',
53
+ resolveFromDir: process.cwd(),
54
+ });
55
+ const expectedSpec = {
56
+ props: {
57
+ $schema: 'http://json-schema.org/draft-07/schema',
58
+ type: 'object',
59
+ required: ['cardBody', 'items'],
60
+ properties: {
61
+ textAlign: {
62
+ type: 'string',
63
+ enum: ['left', 'center', 'right'],
64
+ // @todo We lost proper default value when the source switched from `.tsx` to being from a package, which results in analyzing a `.d.ts` files... which doesn't have default values.
65
+ // default: 'left',
66
+ default: undefined,
67
+ },
68
+ imgSrc: {
69
+ type: 'string',
70
+ },
71
+ isDark: {
72
+ type: 'boolean',
73
+ // @todo We lost proper default value when the source switched from `.tsx` to being from a package, which results in analyzing a `.d.ts` files... which doesn't have default values.
74
+ // default: true,
75
+ },
76
+ cardTitle: {
77
+ type: 'string',
78
+ },
79
+ cardSubTitle: {
80
+ type: 'string',
81
+ },
82
+ cardBody: {
83
+ type: 'string',
84
+ },
85
+ handleIt: {
86
+ typeof: 'function',
87
+ tsType: '(x: string) => boolean',
88
+ },
89
+ items: {
90
+ tsType: '{ id: string; title: string; description?: string; }[]',
91
+ },
92
+ },
93
+ },
94
+ slots: {
95
+ children: {
96
+ description: 'Goes in footer',
97
+ title: 'children',
98
+ },
99
+ header: {
100
+ title: 'header',
101
+ },
102
+ },
103
+ };
104
+ if (spec === false) {
105
+ t.fail('Spec could not be inferred');
106
+ return;
107
+ }
108
+ const { ok, message } = (0, renderers_1.validateSpec)(spec);
109
+ t.is(ok, true, message);
110
+ t.deepEqual(spec, expectedSpec);
111
+ });
112
+ //# sourceMappingURL=infer-spec.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infer-spec.test.js","sourceRoot":"","sources":["../../src/analyze/infer-spec.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,2CAAgE;AAChE,uDAAuD;AACvD,oCAAwC;AAExC,IAAA,aAAI,EAAC,6DAA6D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,MAAM,IAAA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BACZ,IAAI,EAAE,QAAQ;iBACf;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;iBACf;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,UAAU;oBAClB,MAAM,EAAE,wBAAwB;iBACjC;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,wDAAwD;iBACjE;aACF;SACF;QACD,KAAK,EAAE;YACL,QAAQ,EAAE;gBACR,WAAW,EAAE,gBAAgB;gBAC7B,KAAK,EAAE,UAAU;aAClB;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;aAChB;SACF;KACF,CAAC;IAEF,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;QACrC,OAAO;IACT,CAAC;IACD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;IAE3C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACxB,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mui.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mui.test.d.ts","sourceRoot":"","sources":["../../src/analyze/mui.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const types_1 = require("@knapsack/types");
8
+ const utils_1 = require("../utils");
9
+ ava_1.default.serial('MUI strings with extra quotes', async (t) => {
10
+ const results = await (0, utils_1.getReactDocs)({
11
+ src: '@mui/x-data-grid',
12
+ exportName: 'DataGrid',
13
+ resolveFromDir: process.cwd(),
14
+ });
15
+ if (results === false) {
16
+ t.fail('Could not infer spec');
17
+ return;
18
+ }
19
+ Object.entries(results.props.properties).forEach(([propName, prop]) => {
20
+ if ((0, types_1.isStringProp)(prop) || (0, types_1.isOptionsProp)(prop)) {
21
+ if (typeof prop.default === 'string') {
22
+ t.true(!prop.default.startsWith('"') && !prop.default.endsWith('"'), `prop "${propName}" has a default that should not be quoted: ${prop.default} - ${JSON.stringify(prop)}`);
23
+ }
24
+ }
25
+ if ((0, types_1.isOptionsProp)(prop)) {
26
+ if (prop.default) {
27
+ t.true(prop.enum.includes(prop.default), `For prop "${propName}", the default value "${prop.default}" is not in the enum: ${prop.enum}`);
28
+ }
29
+ prop.enum.forEach((option) => {
30
+ t.true(!option.startsWith('"') && !option.endsWith('"'), `option should not be quoted: ${prop.default}`);
31
+ });
32
+ }
33
+ if ((0, types_1.isNumberProp)(prop) && prop.default) {
34
+ const ok = t.is(typeof prop.default, 'number', `prop "${propName}" default should be a number: ${prop.default}`);
35
+ if (!ok) {
36
+ t.log(prop);
37
+ }
38
+ }
39
+ if ((0, types_1.isBooleanProp)(prop) && prop.default) {
40
+ const ok = t.is(typeof prop.default, 'boolean', `prop "${propName}" should be a boolean: ${prop.default}`);
41
+ if (!ok) {
42
+ t.log(prop);
43
+ }
44
+ }
45
+ });
46
+ });
47
+ ava_1.default.failing('infer types for MUI Component', async (t) => {
48
+ const spec = await (0, utils_1.getReactDocs)({
49
+ src: '@mui/material',
50
+ exportName: 'Button',
51
+ resolveFromDir: process.cwd(),
52
+ });
53
+ if (spec === false) {
54
+ t.fail('Spec could not be inferred for MUI Component');
55
+ }
56
+ else {
57
+ t.pass('Spec was successfully inferred for MUI Component');
58
+ }
59
+ });
60
+ //# sourceMappingURL=mui.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mui.test.js","sourceRoot":"","sources":["../../src/analyze/mui.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,2CAK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KAAK,EAAE,CAAC;QACnB,CAAC,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;IACzD,CAAC;SAAM,CAAC;QACN,CAAC,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;IAC7D,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pkg-basic.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-basic.test.d.ts","sourceRoot":"","sources":["../../src/analyze/pkg-basic.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const types_1 = require("@knapsack/types");
8
+ const utils_1 = require("../utils");
9
+ (0, ava_1.default)('infer types in basic packages', async (t) => {
10
+ const spec = await (0, utils_1.getReactDocs)({
11
+ src: '@knapsack/renderer-react-components/test-fixtures',
12
+ exportName: 'Button',
13
+ resolveFromDir: __dirname,
14
+ });
15
+ if (spec === false) {
16
+ t.fail(`Spec could not be inferred`);
17
+ return;
18
+ }
19
+ t.deepEqual(Object.keys(spec.props.properties).sort(), ['size', 'text'].sort());
20
+ if (!(0, types_1.isStringProp)(spec.props.properties.text)) {
21
+ t.log(spec.props.properties.text);
22
+ t.fail(`text prop should be a string`);
23
+ return;
24
+ }
25
+ if (!(0, types_1.isOptionsProp)(spec.props.properties.size)) {
26
+ t.log(spec.props.properties.size);
27
+ t.fail(`size prop should be an options prop`);
28
+ return;
29
+ }
30
+ t.deepEqual(spec.props.properties.size.enum, ['small', 'medium', 'large']);
31
+ t.is(spec.slots.children.title, 'children', `Should detect "children" slot`);
32
+ });
33
+ //# sourceMappingURL=pkg-basic.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-basic.test.js","sourceRoot":"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CAAC,CAAC,CAAC;IAC3E,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,+BAA+B,CAAC,CAAC;AAC/E,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pkg-diff-types.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-diff-types.test.d.ts","sourceRoot":"","sources":["../../src/analyze/pkg-diff-types.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const path_1 = require("path");
8
+ const types_1 = require("@knapsack/types");
9
+ const utils_1 = require("../utils");
10
+ (0, ava_1.default)('infer types in packages with different files name for types', async (t) => {
11
+ const spec = await (0, utils_1.getReactDocs)({
12
+ src: (0, path_1.join)(__dirname, '../../test-fixtures/pkg-diff-types'),
13
+ exportName: 'Button',
14
+ resolveFromDir: __dirname,
15
+ });
16
+ if (spec === false) {
17
+ t.fail(`Spec could not be inferred`);
18
+ return;
19
+ }
20
+ t.truthy(spec);
21
+ if (!spec.props) {
22
+ t.fail(`Spec should have props`);
23
+ return;
24
+ }
25
+ if (!spec.slots) {
26
+ t.fail(`Spec should have slots`);
27
+ return;
28
+ }
29
+ t.deepEqual(Object.keys(spec.props.properties).sort(), ['size', 'text'].sort());
30
+ if (!(0, types_1.isStringProp)(spec.props.properties.text)) {
31
+ t.log(spec.props.properties.text);
32
+ t.fail(`text prop should be a string`);
33
+ return;
34
+ }
35
+ if (!(0, types_1.isOptionsProp)(spec.props.properties.size)) {
36
+ t.log(spec.props.properties.size);
37
+ t.fail(`size prop should be an options prop`);
38
+ return;
39
+ }
40
+ t.deepEqual(spec.props.properties.size.enum, ['small', 'medium', 'large']);
41
+ t.is(spec.slots.children.title, 'children', `Should detect "children" slot`);
42
+ });
43
+ //# sourceMappingURL=pkg-diff-types.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-diff-types.test.js","sourceRoot":"","sources":["../../src/analyze/pkg-diff-types.test.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,+BAA4B;AAC5B,2CAA8D;AAC9D,oCAAwC;AAExC,IAAA,aAAI,EAAC,6DAA6D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,MAAM,IAAA,oBAAY,EAAC;QAC9B,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,oCAAoC,CAAC;QAC1D,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,SAAS;KAC1B,CAAC,CAAC;IACH,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;QACrC,OAAO;IACT,CAAC;IACD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACf,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QACjC,OAAO;IACT,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QACjC,OAAO;IACT,CAAC;IACD,CAAC,CAAC,SAAS,CACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE,EACzC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CACxB,CAAC;IACF,IAAI,CAAC,IAAA,oBAAY,EAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,CAAC,CAAC,GAAG,CAAC,IAAI,C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AChB,SAAS,EAAE,aAAa,CAAC;QACzB,aAAa,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAClD,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IA0DlC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CA8ExB;IAEF,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CA6L3D;IAEF,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAoB9B;IAEO,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAK/B;IAEF,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CA8C1C;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAqCxD;IAEF,sBAAsB,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAsFxD;CACH"}
@@ -337,16 +337,15 @@ class KnapsackReactRenderer extends renderer_webpack_base_1.RendererWebpackBase
337
337
  throw new Error(`Unhandled demo type for ${patternId}-${templateId}: ${JSON.stringify(demo)}`);
338
338
  };
339
339
  this.inferSpec = async ({ template, templatePath, }) => {
340
- const { inferSpec } = await import('./analyze/index.mjs');
341
- const { ksTemplateSpec: spec, props, slots, } = await inferSpec({
342
- path: templatePath,
343
- namedExport: template.alias,
344
- resolveFrom: this.dataDir,
345
- pkgPathAliases: this.pkgPathAliases,
340
+ var _a;
341
+ const spec = await (0, utils_2.getReactDocs)({
342
+ src: template.path,
343
+ exportName: template.alias || 'default',
344
+ resolveFromDir: this.config.data,
346
345
  });
347
- if (spec) {
348
- const totalProps = Object.keys(props).length;
349
- const totalSlots = slots.length;
346
+ if (spec !== false) {
347
+ const totalProps = Object.keys(((_a = spec === null || spec === void 0 ? void 0 : spec.props) === null || _a === void 0 ? void 0 : _a.properties) || {}).length;
348
+ const totalSlots = Object.keys((spec === null || spec === void 0 ? void 0 : spec.slots) || {}).length;
350
349
  if (totalProps === 0 && totalSlots === 0) {
351
350
  return false;
352
351
  }
@@ -1 +1 @@
1
- {"version":3,"file":"renderer-react.js","sourceRoot":"","sources":["../src/renderer-react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,kEAAkC;AAClC,2EAKyC;AACzC,2CAAmE;AACnE,uCAAoD;AACpD,uDAIiC;AACjC,2CAOyB;AACzB,qDAK8B;AAC9B,+BAA6C;AAC7C,mCAMiB;AACjB,qDAAsD;AACtD,mCAIiB;AAEjB,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,0BAAa,EAAC,SAAS,CAAC,CAAC;AACzC,oEAAoE;AACpE,SAAG,CAAC,mBAAmB,CAAC,EAAE,GAAG,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,IAAK,EAAE,OAAO,EAAE,GAAG,CAAC,OAAQ,EAAE,CAAC,CAAC;AAE5E,MAAa,qBACX,SAAQ,2CAAmB;IAW3B,YAAY,EACV,aAAa,EACb,eAAe,EACf,EAAE,GAAG,mBAAW,CAAC,KAAK,EACtB,sBAAsB,MAapB,EAAE;QACJ,KAAK,CAAC;YACJ,EAAE;YACF,QAAQ,EAAE,KAAK;YACf,aAAa;YACb,YAAY,EAAE;gBACZ,0CAA0C;gBAC1C,iCAAiC;aAClC;SACF,CAAC,CAAC;QA7BL,yDAAyB;QACzB,gEAAkC;QAqDzB,cAAS,GAA0B,CAAC,GAAG,EAAE,EAAE;YAClD,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YACrB,MAAM,EACJ,YAAY,EACZ,MAAM,EAAE,qBAAqB,EAC7B,IAAI,GACL,GAAG,IAAI,CAAC,eAAe,CAAC;gBACvB,IAAI,EAAE,uBAAA,IAAI,8CAAiB;gBAC3B,cAAc,EAAE,IAAI,CAAC,aAAa;aACnC,CAAC,CAAC;YACH,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC3B,MAAM,IAAI,KAAK,CACb,oCACE,uBAAA,IAAI,8CACN,6GAA6G,CAC9G,CAAC;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F;AA7qBD,sDA6qBC"}
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.cb1568a.0",
4
+ "version": "4.71.19--canary.5325.d5f1abb.0",
5
5
  "type": "commonjs",
6
6
  "exports": {
7
7
  ".": {
@@ -31,15 +31,14 @@
31
31
  "author": "Knapsack",
32
32
  "dependencies": {
33
33
  "@babel/preset-react": "^7.25.9",
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",
34
+ "@knapsack/app": "4.71.19--canary.5325.d5f1abb.0",
35
+ "@knapsack/creator-utils": "4.71.19--canary.5325.d5f1abb.0",
36
+ "@knapsack/file-utils": "4.71.19--canary.5325.d5f1abb.0",
37
+ "@knapsack/ks-file-utils": "4.71.19--canary.5325.d5f1abb.0",
38
+ "@knapsack/renderer-react-components": "4.71.19--canary.5325.d5f1abb.0",
39
+ "@knapsack/renderer-webpack-base": "4.71.19--canary.5325.d5f1abb.0",
40
+ "@knapsack/types": "4.71.19--canary.5325.d5f1abb.0",
41
+ "@knapsack/utils": "4.71.19--canary.5325.d5f1abb.0",
43
42
  "react": "^18.3.1",
44
43
  "react-docgen": "^6.0.4",
45
44
  "react-docgen-typescript": "^2.2.2",
@@ -48,11 +47,10 @@
48
47
  "typescript": "^5.6.3"
49
48
  },
50
49
  "devDependencies": {
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",
50
+ "@knapsack/eslint-config-starter": "4.71.19--canary.5325.d5f1abb.0",
51
+ "@knapsack/sandbox-components": "4.71.19--canary.5325.d5f1abb.0",
52
+ "@knapsack/test-ava": "4.71.19--canary.5325.d5f1abb.0",
53
+ "@knapsack/typescript-config-starter": "4.71.19--canary.5325.d5f1abb.0",
56
54
  "@mui/material": "^5.16.7",
57
55
  "@mui/x-data-grid": "^6.20.4",
58
56
  "@types/node": "^20.17.8",
@@ -70,5 +68,5 @@
70
68
  "directory": "apps/client/renderers/renderer-react",
71
69
  "type": "git"
72
70
  },
73
- "gitHead": "cb1568ad8b53310f23d6d813e596205068c69657"
71
+ "gitHead": "d5f1abb1a2e7d8f880c3abd974a9272632a675ea"
74
72
  }
@@ -1,2 +0,0 @@
1
- export * from './infer-spec.mjs';
2
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/analyze/index.mts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './infer-spec.mjs';
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/analyze/index.mts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,99 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
3
- type ButtonSize = 'small' | 'medium' | 'large';
4
- type Status = 1 | 2 | 3;
5
- interface ButtonProps {
6
- /** The button's main variant */
7
- variant: ButtonVariant;
8
- /** The size of the button */
9
- size?: ButtonSize;
10
- /** Whether the button is disabled */
11
- disabled?: boolean;
12
- /** Click handler */
13
- onClick?: () => void;
14
- /** Status code */
15
- status?: Status;
16
- /** Specific literal string */
17
- type?: 'button' | 'submit' | 'reset';
18
- /** Specific literal number */
19
- tabIndex?: -1 | 0 | 1;
20
- /** Required literal */
21
- role: 'button' | 'link';
22
- children?: ReactNode;
23
- }
24
- export declare const Button: ({ variant, size, disabled, onClick, status, type, tabIndex, role, children, }: ButtonProps) => JSX.Element;
25
- interface ComplexProps {
26
- /** Array of user objects */
27
- users: Array<{
28
- id: number;
29
- name: string;
30
- role: 'admin' | 'user';
31
- }>;
32
- /** Configuration object */
33
- config: {
34
- theme: 'light' | 'dark';
35
- showHeader: boolean;
36
- };
37
- }
38
- export declare const ComplexComponent: ({ users, config, }: ComplexProps) => JSX.Element;
39
- interface RenderPropsComponentProps {
40
- /** Header render function */
41
- renderHeader: () => ReactNode;
42
- /** Content render function */
43
- renderContent: (data: {
44
- count: number;
45
- }) => ReactNode;
46
- /** Optional footer */
47
- footer?: ReactNode;
48
- }
49
- export declare const RenderPropsComponent: ({ renderHeader, renderContent, footer, }: RenderPropsComponentProps) => JSX.Element;
50
- interface TitleProps {
51
- /** Main title text */
52
- title: string;
53
- /** Optional subtitle */
54
- subtitle?: string;
55
- }
56
- export declare const TitleComponent: {
57
- ({ title, subtitle, }: TitleProps): JSX.Element;
58
- propTypes: {
59
- title: any;
60
- subtitle: any;
61
- };
62
- };
63
- export declare const OnlyPropTypesComponent: {
64
- ({ title }: TitleProps): JSX.Element;
65
- propTypes: {
66
- title: any;
67
- };
68
- };
69
- interface ListProps<T> {
70
- /** List of items */
71
- items: T[];
72
- /** Render function for each item */
73
- renderItem: (item: T) => ReactNode;
74
- }
75
- export declare const ListComponent: <T>({ items, renderItem, }: ListProps<T>) => JSX.Element;
76
- interface CounterProps {
77
- /** Initial count value */
78
- initialCount: number;
79
- /** Step value for increment/decrement */
80
- step?: number;
81
- /** Optional label */
82
- label?: string;
83
- /** Counter variant */
84
- variant: 'default' | 'compact';
85
- }
86
- interface CounterState {
87
- count: number;
88
- }
89
- export declare class CounterComponent extends React.Component<CounterProps, CounterState> {
90
- static defaultProps: {
91
- step: number;
92
- };
93
- constructor({ initialCount, variant }: CounterProps);
94
- handleIncrement: () => void;
95
- handleDecrement: () => void;
96
- render(): JSX.Element;
97
- }
98
- export {};
99
- //# sourceMappingURL=components.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/analyze/infer-spec-fixtures/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;AAC1D,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC/C,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAExB,UAAU,WAAW;IACnB,gCAAgC;IAChC,OAAO,EAAE,aAAa,CAAC;IACvB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtB,uBAAuB;IACvB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,kFAUhB,WAAW,KAAG,GAAG,CAAC,O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