@knapsack/renderer-react 4.71.19--canary.5278.3df1f87.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.
Files changed (62) hide show
  1. package/dist/analyze/index.d.mts +2 -0
  2. package/dist/analyze/index.d.mts.map +1 -0
  3. package/dist/analyze/index.mjs +2 -0
  4. package/dist/analyze/index.mjs.map +1 -0
  5. package/dist/analyze/infer-spec-fixtures/components.d.ts +99 -0
  6. package/dist/analyze/infer-spec-fixtures/components.d.ts.map +1 -0
  7. package/dist/analyze/infer-spec-fixtures/components.js +59 -0
  8. package/dist/analyze/infer-spec-fixtures/components.js.map +1 -0
  9. package/dist/analyze/infer-spec-fixtures/index.d.mts +2 -0
  10. package/dist/analyze/infer-spec-fixtures/index.d.mts.map +1 -0
  11. package/dist/analyze/infer-spec-fixtures/index.mjs +2 -0
  12. package/dist/analyze/infer-spec-fixtures/index.mjs.map +1 -0
  13. package/dist/analyze/infer-spec.d.mts +27 -0
  14. package/dist/analyze/infer-spec.d.mts.map +1 -0
  15. package/dist/analyze/infer-spec.mjs +98 -0
  16. package/dist/analyze/infer-spec.mjs.map +1 -0
  17. package/dist/analyze/infer-spec.test.d.mts +2 -0
  18. package/dist/analyze/infer-spec.test.d.mts.map +1 -0
  19. package/dist/analyze/infer-spec.test.mjs +214 -0
  20. package/dist/analyze/infer-spec.test.mjs.map +1 -0
  21. package/dist/analyze/mui.test.d.mts +2 -0
  22. package/dist/analyze/mui.test.d.mts.map +1 -0
  23. package/dist/analyze/mui.test.mjs +88 -0
  24. package/dist/analyze/mui.test.mjs.map +1 -0
  25. package/dist/analyze/pkg-basic.test.d.mts +2 -0
  26. package/dist/analyze/pkg-basic.test.d.mts.map +1 -0
  27. package/dist/analyze/pkg-basic.test.mjs +28 -0
  28. package/dist/analyze/pkg-basic.test.mjs.map +1 -0
  29. package/dist/analyze/pkg-diff-types.test.d.mts +2 -0
  30. package/dist/analyze/pkg-diff-types.test.d.mts.map +1 -0
  31. package/dist/analyze/pkg-diff-types.test.mjs +29 -0
  32. package/dist/analyze/pkg-diff-types.test.mjs.map +1 -0
  33. package/dist/analyze/utils/importer.d.mts +17 -0
  34. package/dist/analyze/utils/importer.d.mts.map +1 -0
  35. package/dist/analyze/utils/importer.mjs +80 -0
  36. package/dist/analyze/utils/importer.mjs.map +1 -0
  37. package/dist/analyze/utils/react-component-analyzer.d.mts +24 -0
  38. package/dist/analyze/utils/react-component-analyzer.d.mts.map +1 -0
  39. package/dist/analyze/utils/react-component-analyzer.mjs +151 -0
  40. package/dist/analyze/utils/react-component-analyzer.mjs.map +1 -0
  41. package/dist/renderer-react.d.ts.map +1 -1
  42. package/dist/renderer-react.js +9 -8
  43. package/dist/renderer-react.js.map +1 -1
  44. package/package.json +16 -14
  45. package/turbo.json +9 -0
  46. package/dist/analyze/infer-spec.test.d.ts +0 -2
  47. package/dist/analyze/infer-spec.test.d.ts.map +0 -1
  48. package/dist/analyze/infer-spec.test.js +0 -112
  49. package/dist/analyze/infer-spec.test.js.map +0 -1
  50. package/dist/analyze/mui.test.d.ts +0 -2
  51. package/dist/analyze/mui.test.d.ts.map +0 -1
  52. package/dist/analyze/mui.test.js +0 -60
  53. package/dist/analyze/mui.test.js.map +0 -1
  54. package/dist/analyze/pkg-basic.test.d.ts +0 -2
  55. package/dist/analyze/pkg-basic.test.d.ts.map +0 -1
  56. package/dist/analyze/pkg-basic.test.js +0 -33
  57. package/dist/analyze/pkg-basic.test.js.map +0 -1
  58. package/dist/analyze/pkg-diff-types.test.d.ts +0 -2
  59. package/dist/analyze/pkg-diff-types.test.d.ts.map +0 -1
  60. package/dist/analyze/pkg-diff-types.test.js +0 -43
  61. package/dist/analyze/pkg-diff-types.test.js.map +0 -1
  62. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import test from 'ava';
2
+ import { isStringProp, isOptionsProp, isNumberProp, isBooleanProp, } from '@knapsack/types';
3
+ import { validateSpec } from '@knapsack/app/renderers';
4
+ import { inferSpec } from './infer-spec.mjs';
5
+ test('MUI strings with extra quotes', async (t) => {
6
+ const { ksTemplateSpec: spec } = await inferSpec({
7
+ path: '@mui/x-data-grid',
8
+ namedExport: 'DataGrid',
9
+ resolveFrom: process.cwd(),
10
+ });
11
+ if (!spec) {
12
+ t.fail('Could not infer spec');
13
+ return;
14
+ }
15
+ Object.entries(spec.props.properties).forEach(([propName, prop]) => {
16
+ if (isStringProp(prop) || isOptionsProp(prop)) {
17
+ if (typeof prop.default === 'string') {
18
+ t.true(!prop.default.startsWith('"') && !prop.default.endsWith('"'), `prop "${propName}" has a default that should not be quoted: ${prop.default} - ${JSON.stringify(prop)}`);
19
+ }
20
+ }
21
+ if (isOptionsProp(prop)) {
22
+ if (prop.default) {
23
+ t.true(prop.enum.includes(prop.default), `For prop "${propName}", the default value "${prop.default}" is not in the enum: ${prop.enum}`);
24
+ }
25
+ prop.enum.forEach((option) => {
26
+ t.true(typeof option === 'string' &&
27
+ !option.startsWith('"') &&
28
+ !option.endsWith('"'), `option should not be quoted: ${option}`);
29
+ });
30
+ }
31
+ if (isNumberProp(prop) && prop.default) {
32
+ const ok = t.is(typeof prop.default, 'number', `prop "${propName}" default should be a number: ${prop.default}`);
33
+ if (!ok) {
34
+ t.log(prop);
35
+ }
36
+ }
37
+ if (isBooleanProp(prop) && prop.default) {
38
+ const ok = t.is(typeof prop.default, 'boolean', `prop "${propName}" should be a boolean: ${prop.default}`);
39
+ if (!ok) {
40
+ t.log(prop);
41
+ }
42
+ }
43
+ });
44
+ const { ok, message } = validateSpec(spec);
45
+ t.log(message);
46
+ t.is(ok, true, message);
47
+ });
48
+ test('infer types for MUI Button', async (t) => {
49
+ const { ksTemplateSpec: spec } = await inferSpec({
50
+ path: '@mui/material',
51
+ namedExport: 'Button',
52
+ resolveFrom: process.cwd(),
53
+ });
54
+ if (!spec) {
55
+ t.fail('Could not infer spec');
56
+ return;
57
+ }
58
+ const isDisabled = spec.props.properties.disabled;
59
+ if (!isDisabled) {
60
+ t.fail('Could not find disabled prop');
61
+ }
62
+ t.is(isDisabled.type, 'boolean', 'disabled prop should be a boolean');
63
+ });
64
+ test('infer types for MUI RadioGroup', async (t) => {
65
+ const { ksTemplateSpec: spec } = await inferSpec({
66
+ path: '@mui/material',
67
+ namedExport: 'RadioGroup',
68
+ resolveFrom: process.cwd(),
69
+ });
70
+ if (!spec) {
71
+ t.fail('Could not infer spec');
72
+ return;
73
+ }
74
+ const { className } = spec.props.properties;
75
+ if (!className) {
76
+ t.fail('Could not find className prop');
77
+ }
78
+ if (isStringProp(className)) {
79
+ t.is(className.type, 'string', 'className prop should be a string');
80
+ }
81
+ else {
82
+ t.fail('className prop should be a string');
83
+ }
84
+ const { ok, message } = validateSpec(spec);
85
+ t.log(message);
86
+ t.is(ok, true, message);
87
+ });
88
+ //# sourceMappingURL=mui.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mui.test.mjs","sourceRoot":"","sources":["../../src/analyze/mui.test.mts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,IAAI,CAAC,+BAA+B,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAChD,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,MAAM,SAAS,CAAC;QAC/C,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,OAAO,CAAC,GAAG,EAAE;KAC3B,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAC/B,OAAO;IACT,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,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":"","sources":["../../src/analyze/pkg-basic.test.mts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import test from 'ava';
2
+ import { isStringProp, isOptionsProp } from '@knapsack/types';
3
+ import { inferSpec } from './infer-spec.mjs';
4
+ test('infer types in basic packages', async (t) => {
5
+ const { ksTemplateSpec: spec } = await inferSpec({
6
+ path: '@knapsack/renderer-react-components/test-fixtures',
7
+ namedExport: 'Button',
8
+ resolveFrom: import.meta.dirname,
9
+ });
10
+ if (!spec) {
11
+ t.fail(`Spec could not be inferred`);
12
+ return;
13
+ }
14
+ t.deepEqual(Object.keys(spec.props.properties).sort(), ['size', 'text'].sort());
15
+ if (!isStringProp(spec.props.properties.text)) {
16
+ t.log(spec.props.properties.text);
17
+ t.fail(`text prop should be a string`);
18
+ return;
19
+ }
20
+ if (!isOptionsProp(spec.props.properties.size)) {
21
+ t.log(spec.props.properties.size);
22
+ t.fail(`size prop should be an options prop`);
23
+ return;
24
+ }
25
+ t.deepEqual(spec.props.properties.size.enum, ['small', 'medium', 'large']);
26
+ t.is(spec.slots.children.title, 'children', `Should detect "children" slot`);
27
+ });
28
+ //# sourceMappingURL=pkg-basic.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-basic.test.mjs","sourceRoot":"","sources":["../../src/analyze/pkg-basic.test.mts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,IAAI,CAAC,+BAA+B,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAChD,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,MAAM,SAAS,CAAC;QAC/C,IAAI,EAAE,mDAAmD;QACzD,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO;KACjC,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;QACrC,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,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QACvC,OAAO;IACT,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/C,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QAC9C,OAAO;IACT,CAAC;IACD,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,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.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-diff-types.test.d.mts","sourceRoot":"","sources":["../../src/analyze/pkg-diff-types.test.mts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import test from 'ava';
2
+ import { isOptionsProp, isStringProp } from '@knapsack/types';
3
+ import { inferSpec } from './infer-spec.mjs';
4
+ test('infer types in packages with different files name for types', async (t) => {
5
+ const { ksTemplateSpec: spec } = await inferSpec({
6
+ path: '@knapsack/renderer-react-components/test-fixtures',
7
+ namedExport: 'Button',
8
+ resolveFrom: import.meta.dirname,
9
+ });
10
+ if (!spec) {
11
+ t.fail(`Spec could not be inferred`);
12
+ return;
13
+ }
14
+ t.truthy(spec);
15
+ t.deepEqual(Object.keys(spec.props.properties).sort(), ['size', 'text'].sort());
16
+ if (!isStringProp(spec.props.properties.text)) {
17
+ t.log(spec.props.properties.text);
18
+ t.fail(`text prop should be a string`);
19
+ return;
20
+ }
21
+ if (!isOptionsProp(spec.props.properties.size)) {
22
+ t.log(spec.props.properties.size);
23
+ t.fail(`size prop should be an options prop`);
24
+ return;
25
+ }
26
+ t.deepEqual(spec.props.properties.size.enum, ['small', 'medium', 'large']);
27
+ t.is(spec.slots.children.title, 'children', `Should detect "children" slot`);
28
+ });
29
+ //# sourceMappingURL=pkg-diff-types.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkg-diff-types.test.mjs","sourceRoot":"","sources":["../../src/analyze/pkg-diff-types.test.mts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC9D,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;QAC/C,IAAI,EAAE,mDAAmD;QACzD,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO;KACjC,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;QACrC,OAAO;IACT,CAAC;IACD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACf,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,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9C,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QACvC,OAAO;IACT,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/C,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QAC9C,OAAO;IACT,CAAC;IACD,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,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,17 @@
1
+ import { ComponentType } from 'react';
2
+ export declare const clearImporterCache: () => void;
3
+ export declare function importComponent({ path, alias, resolveFrom, pkgPathAliases, }: {
4
+ path: string;
5
+ alias?: string;
6
+ resolveFrom?: string;
7
+ pkgPathAliases?: Record<string, string>;
8
+ }): Promise<ComponentType<unknown>>;
9
+ export declare function getPkgComponentsForSuggestions({ path, pkgPathAliases, resolveFrom, }: {
10
+ path: string;
11
+ resolveFrom?: string;
12
+ pkgPathAliases?: Record<string, string>;
13
+ }): Promise<Array<{
14
+ alias: string;
15
+ path: string;
16
+ }>>;
17
+ //# sourceMappingURL=importer.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"importer.d.mts","sourceRoot":"","sources":["../../../src/analyze/utils/importer.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA0BtC,eAAO,MAAM,kBAAkB,YAA+B,CAAC;AAuC/D,wBAAsB,eAAe,CAAC,EACpC,IAAI,EACJ,KAAiB,EACjB,WAA2B,EAC3B,cAAc,GACf,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAoBlC;AAED,wBAAsB,8BAA8B,CAAC,EACnD,IAAI,EACJ,cAAc,EACd,WAAW,GACZ,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC,GAAG,OAAO,CAAC,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAgBlD"}
@@ -0,0 +1,80 @@
1
+ import { resolvePath } from '@knapsack/file-utils';
2
+ async function importPkgUncached({ path, pkgPathAliases, resolveFrom = process.cwd(), }) {
3
+ try {
4
+ const mod = await import(path);
5
+ return mod;
6
+ }
7
+ catch (e) {
8
+ const { absolutePath } = await resolvePath({
9
+ path,
10
+ resolveFromDir: resolveFrom,
11
+ pkgPathAliases,
12
+ });
13
+ return import(absolutePath);
14
+ }
15
+ }
16
+ const importPkgCache = new Map();
17
+ export const clearImporterCache = () => importPkgCache.clear();
18
+ async function importPkg(args) {
19
+ const cacheKey = JSON.stringify(args);
20
+ if (!importPkgCache.has(cacheKey)) {
21
+ const result = importPkgUncached(args);
22
+ importPkgCache.set(cacheKey, result);
23
+ result.catch(() => {
24
+ // remove from cache if error
25
+ importPkgCache.delete(cacheKey);
26
+ });
27
+ return result;
28
+ }
29
+ return importPkgCache.get(cacheKey);
30
+ }
31
+ /**
32
+ * Type guard to check if a value is a React component
33
+ */
34
+ function isReactComponent(component) {
35
+ var _a, _b, _c, _d;
36
+ if (typeof component !== 'function')
37
+ return false;
38
+ // Class components
39
+ if ((_a = component.prototype) === null || _a === void 0 ? void 0 : _a.isReactComponent) {
40
+ return true;
41
+ }
42
+ // Function components
43
+ if (typeof component === 'function' &&
44
+ !((_d = (_c = (_b = component.prototype) === null || _b === void 0 ? void 0 : _b.constructor) === null || _c === void 0 ? void 0 : _c.name) === null || _d === void 0 ? void 0 : _d.includes('Function')))
45
+ return true;
46
+ return false;
47
+ }
48
+ export async function importComponent({ path, alias = 'default', resolveFrom = process.cwd(), pkgPathAliases, }) {
49
+ const pkg = await importPkg({
50
+ path,
51
+ resolveFrom,
52
+ pkgPathAliases,
53
+ });
54
+ const component = pkg[alias];
55
+ if (!component) {
56
+ throw new Error(`Component ${alias} not found in ${path}`);
57
+ }
58
+ if (!isReactComponent(component)) {
59
+ throw new Error(`Export ${alias} in ${path} is not a valid React component`);
60
+ }
61
+ return component;
62
+ }
63
+ export async function getPkgComponentsForSuggestions({ path, pkgPathAliases, resolveFrom, }) {
64
+ const thePkg = await importPkg({
65
+ path,
66
+ resolveFrom,
67
+ pkgPathAliases,
68
+ });
69
+ return Object.entries(thePkg || {})
70
+ .filter(([exportName, exportValue]) => {
71
+ if (exportName === 'default')
72
+ return false;
73
+ return isReactComponent(exportValue);
74
+ })
75
+ .map(([name]) => ({
76
+ alias: name,
77
+ path,
78
+ }));
79
+ }
80
+ //# sourceMappingURL=importer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"importer.mjs","sourceRoot":"","sources":["../../../src/analyze/utils/importer.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,KAAK,UAAU,iBAAiB,CAAC,EAC/B,IAAI,EACJ,cAAc,EACd,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,GAK5B;IACC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,GAAG,CAAC;IACb,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,WAAW,CAAC;YACzC,IAAI;YACJ,cAAc,EAAE,WAAW;YAC3B,cAAc;SACf,CAAC,CAAC;QACH,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED,MAAM,cAAc,GAAG,IAAI,GAAG,EAAgD,CAAC;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;AAE/D,KAAK,UAAU,SAAS,CAAC,IAA6C;IACpE,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACvC,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACrC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;YAChB,6BAA6B;YAC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AAU,8BAA8B,CAAC,EACnD,IAAI,EACJ,cAAc,EACd,WAAW,GAKZ;IACC,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC;QAC7B,IAAI;QACJ,WAAW;QACX,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;SAChC,MAAM,CAAC,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,EAAE;QACpC,IAAI,UAAU,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAC3C,OAAO,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAChB,KAAK,EAAE,IAAI;QACX,IAAI;KACL,CAAC,CAAC,CAAC;AACR,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type TypeInfo } from '@knapsack/spec-utils';
2
+ export type ComponentProps = Record<string, {
3
+ required: boolean;
4
+ description?: string;
5
+ typeInfo: TypeInfo;
6
+ }>;
7
+ export type SlotInfo = {
8
+ title: string;
9
+ description?: string;
10
+ };
11
+ export type ComponentAnalysis = {
12
+ props: ComponentProps;
13
+ slots: SlotInfo[];
14
+ };
15
+ /**
16
+ * Analyzes a React component to extract its props and slots information
17
+ */
18
+ export declare function analyzeComponent({ fileName, exportName, pkgPathAliases, resolveFromDir, }: {
19
+ fileName: string;
20
+ exportName?: string;
21
+ pkgPathAliases?: Record<string, string>;
22
+ resolveFromDir?: string;
23
+ }): Promise<ComponentAnalysis>;
24
+ //# sourceMappingURL=react-component-analyzer.d.mts.map
@@ -0,0 +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;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"}
@@ -0,0 +1,151 @@
1
+ import { analyzeExport } from '@knapsack/spec-utils';
2
+ import { importComponent } from './importer.mjs';
3
+ /**
4
+ * Merges properties from multiple object types in a union
5
+ */
6
+ const mergeUnionObjectProperties = ({ items, }) => {
7
+ const mergedProperties = {};
8
+ items.forEach((item) => {
9
+ if (item.type === 'object' && item.properties) {
10
+ Object.entries(item.properties).forEach(([propName, propInfo]) => {
11
+ // If property already exists, merge with existing
12
+ if (mergedProperties[propName]) {
13
+ mergedProperties[propName] = {
14
+ ...propInfo.typeInfo,
15
+ isOptional: mergedProperties[propName].isOptional ||
16
+ propInfo.typeInfo.isOptional,
17
+ };
18
+ }
19
+ else {
20
+ mergedProperties[propName] = propInfo.typeInfo;
21
+ }
22
+ });
23
+ }
24
+ });
25
+ return mergedProperties;
26
+ };
27
+ /**
28
+ * Processes prop information and adds it to the props object
29
+ */
30
+ const processProps = ({ properties, }) => {
31
+ const props = {};
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
+ };
47
+ Object.entries(properties).forEach(([propName, propInfo]) => {
48
+ var _a, _b;
49
+ props[propName] = {
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
55
+ const isSlotProp = propName === 'children' || isReactNodeType(propInfo.typeInfo);
56
+ if (isSlotProp) {
57
+ slots.push({
58
+ title: propName,
59
+ ...(((_b = propInfo.jsDoc) === null || _b === void 0 ? void 0 : _b.description) && {
60
+ description: propInfo.jsDoc.description,
61
+ }),
62
+ });
63
+ }
64
+ });
65
+ return { props, slots };
66
+ };
67
+ /**
68
+ * Analyzes a React component to extract its props and slots information
69
+ */
70
+ export async function analyzeComponent({ fileName, exportName, pkgPathAliases, resolveFromDir, }) {
71
+ var _a;
72
+ const props = {};
73
+ const slots = [];
74
+ try {
75
+ // Use analyzeExport to get TypeScript type information
76
+ const { typeInfo } = analyzeExport({
77
+ fileName,
78
+ exportName,
79
+ pkgPathAliases,
80
+ resolveFromDir,
81
+ });
82
+ // For function components, the first parameter contains the props type
83
+ if (typeInfo.type === 'function') {
84
+ const propsParam = (_a = typeInfo.parameters) === null || _a === void 0 ? void 0 : _a[0];
85
+ if ((propsParam === null || propsParam === void 0 ? void 0 : propsParam.typeInfo.type) === 'union') {
86
+ // Handle union component types by merging their properties
87
+ const mergedProperties = mergeUnionObjectProperties({
88
+ items: propsParam.typeInfo.items,
89
+ });
90
+ // Wrap the properties in a typeInfo object
91
+ const wrappedProperties = Object.fromEntries(Object.entries(mergedProperties).map(([key, info]) => [
92
+ key,
93
+ { typeInfo: info },
94
+ ]));
95
+ const result = processProps({
96
+ properties: wrappedProperties,
97
+ });
98
+ Object.assign(props, result.props);
99
+ slots.push(...result.slots);
100
+ }
101
+ else if ((propsParam === null || propsParam === void 0 ? void 0 : propsParam.typeInfo.type) === 'object') {
102
+ const result = processProps({
103
+ properties: propsParam.typeInfo.properties,
104
+ });
105
+ Object.assign(props, result.props);
106
+ slots.push(...result.slots);
107
+ }
108
+ }
109
+ if (typeInfo.type === 'class') {
110
+ // const propsParam = typeInfo.constructorParameters?.[0];
111
+ console.warn('class components are not setup for infer spec');
112
+ }
113
+ }
114
+ catch (error) {
115
+ console.log('Failed to analyze component types using TypeScript, falling back to PropTypes', error);
116
+ const component = await importComponent({
117
+ path: fileName,
118
+ alias: exportName,
119
+ pkgPathAliases,
120
+ resolveFrom: resolveFromDir,
121
+ });
122
+ // Fallback to checking PropTypes
123
+ const defaultProps = component.defaultProps || {};
124
+ const propTypes = component.propTypes || {};
125
+ Object.keys(propTypes).forEach((propName) => {
126
+ props[propName] = {
127
+ required: !Object.prototype.hasOwnProperty.call(defaultProps, propName) &&
128
+ propTypes[propName].isRequired,
129
+ typeInfo: {
130
+ type: 'misc',
131
+ tsRawType: 'unknown',
132
+ tsMetadata: {
133
+ typeFlags: [],
134
+ type: 'Unknown',
135
+ },
136
+ },
137
+ };
138
+ if (propName === 'children') {
139
+ slots.push({
140
+ title: 'children',
141
+ description: propTypes[propName].description,
142
+ });
143
+ }
144
+ });
145
+ }
146
+ return {
147
+ props,
148
+ slots,
149
+ };
150
+ }
151
+ //# sourceMappingURL=react-component-analyzer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-component-analyz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B;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,15 +337,16 @@ 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
- var _a;
341
- const spec = await (0, utils_2.getReactDocs)({
342
- src: template.path,
343
- exportName: template.alias || 'default',
344
- resolveFromDir: this.config.data,
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,
345
346
  });
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;
347
+ if (spec) {
348
+ const totalProps = Object.keys(props).length;
349
+ const totalSlots = slots.length;
349
350
  if (totalProps === 0 && totalSlots === 0) {
350
351
  return false;
351
352
  }
@@ -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,mCAOiB;AACjB,qDAAsD;AACtD,mCAIiB;AAEjB,MAAM,EAAE,GAAG,EAAE,GAAG,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