@xyd-js/sources 0.0.0-build

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/ISSUES.md +10 -0
  3. package/LICENSE +21 -0
  4. package/README.md +3 -0
  5. package/TODO.md +9 -0
  6. package/__fixtures__/-1.typescript/package.json +5 -0
  7. package/__fixtures__/-1.typescript/src/index.ts +0 -0
  8. package/__fixtures__/-1.typescript/src/settings.ts +592 -0
  9. package/__fixtures__/-1.typescript/tsconfig.json +8 -0
  10. package/__fixtures__/-2.react.basic/1.flat-interface.output.json +114 -0
  11. package/__fixtures__/-2.react.basic/2.file-connect-interface.output.json +60 -0
  12. package/__fixtures__/-2.react.basic/2a.file-connect-interface-advanced.output.json +92 -0
  13. package/__fixtures__/-2.react.basic/3.props-as-variants.output.json +166 -0
  14. package/__fixtures__/-2.react.basic/4.outside-interface.output.json +60 -0
  15. package/__fixtures__/-2.react.basic/5.inline-props.output.json +60 -0
  16. package/__fixtures__/-2.react.basic/5.outside-inline-props.output.json +60 -0
  17. package/__fixtures__/-2.react.basic/5a.inline-props+outside.output.json +60 -0
  18. package/__fixtures__/-2.react.basic/5b.inline-props+interfaces.output.json +92 -0
  19. package/__fixtures__/-2.react.basic/package.json +4 -0
  20. package/__fixtures__/-2.react.basic/src/1.flat-interface.tsx +41 -0
  21. package/__fixtures__/-2.react.basic/src/2.file-connect-interface.tsx +28 -0
  22. package/__fixtures__/-2.react.basic/src/2a.file-connect-interace+advanced.tsx +54 -0
  23. package/__fixtures__/-2.react.basic/src/3.props-as-variants.tsx +67 -0
  24. package/__fixtures__/-2.react.basic/src/4.outside-interface.tsx +13 -0
  25. package/__fixtures__/-2.react.basic/src/4.outside-interface2.ts +15 -0
  26. package/__fixtures__/-2.react.basic/src/5.inline-props.tsx +19 -0
  27. package/__fixtures__/-2.react.basic/src/5a.inline-props+outside.tsx +19 -0
  28. package/__fixtures__/-2.react.basic/src/5b.inline-props+interfaces.tsx +62 -0
  29. package/__fixtures__/-2.react.basic/src/index.ts +0 -0
  30. package/__fixtures__/-2.react.basic/tsconfig.json +8 -0
  31. package/__tests__/sourcesToUniform.test.ts +167 -0
  32. package/__tests__/testResolvePropertySymbol.ts +838 -0
  33. package/__tests__/types.ts +12 -0
  34. package/__tests__/utils.ts +108 -0
  35. package/dist/index.cjs +2 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +2 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.js +1 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/react.cjs +237 -0
  42. package/dist/react.cjs.map +1 -0
  43. package/dist/react.d.cts +6 -0
  44. package/dist/react.d.ts +6 -0
  45. package/dist/react.js +212 -0
  46. package/dist/react.js.map +1 -0
  47. package/dist/ts.cjs +1794 -0
  48. package/dist/ts.cjs.map +1 -0
  49. package/dist/ts.d.cts +14 -0
  50. package/dist/ts.d.ts +14 -0
  51. package/dist/ts.js +1760 -0
  52. package/dist/ts.js.map +1 -0
  53. package/package.json +41 -0
  54. package/packages/react/index.ts +1 -0
  55. package/packages/react/uniformToReactUniform.ts +275 -0
  56. package/packages/ts/SignatureText.ts +233 -0
  57. package/packages/ts/TypeDocTransformer.ts +1519 -0
  58. package/packages/ts/__fixtures__/packages/package-a/package.json +4 -0
  59. package/packages/ts/__fixtures__/packages/package-a/src/index.ts +56 -0
  60. package/packages/ts/__fixtures__/packages/package-a/tsconfig.json +23 -0
  61. package/packages/ts/__fixtures__/packages/package-b/package.json +7 -0
  62. package/packages/ts/__fixtures__/packages/package-b/src/billing.ts +193 -0
  63. package/packages/ts/__fixtures__/packages/package-b/src/index.ts +8 -0
  64. package/packages/ts/__fixtures__/packages/package-b/tsconfig.json +20 -0
  65. package/packages/ts/__fixtures__/packages2/package-a/package.json +4 -0
  66. package/packages/ts/__fixtures__/packages2/package-a/src/index.ts +496 -0
  67. package/packages/ts/__fixtures__/packages2/package-a/tsconfig.json +6 -0
  68. package/packages/ts/__fixtures__/packages3/package-a/package.json +4 -0
  69. package/packages/ts/__fixtures__/packages3/package-a/src/index.ts +488 -0
  70. package/packages/ts/__fixtures__/packages3/package-a/tsconfig.json +6 -0
  71. package/packages/ts/__fixtures__/packages3/project.json +171 -0
  72. package/packages/ts/__fixtures__/react/react-a/package.json +5 -0
  73. package/packages/ts/__fixtures__/react/react-a/src/TestAbc.tsx +90 -0
  74. package/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx +27 -0
  75. package/packages/ts/__fixtures__/react/react-a/src/TestNamedParameters.tsx +27 -0
  76. package/packages/ts/__fixtures__/react/react-a/src/TestNamedParameters2.tsx +26 -0
  77. package/packages/ts/__fixtures__/react/react-a/src/TestUnion.tsx +32 -0
  78. package/packages/ts/__fixtures__/react/react-a/src/index.ts +1 -0
  79. package/packages/ts/__fixtures__/react/react-a/tsconfig.json +8 -0
  80. package/packages/ts/__fixtures__/references-output-project.json +344 -0
  81. package/packages/ts/__fixtures__/references-output-react.json +68 -0
  82. package/packages/ts/__fixtures__/references-output.json +129 -0
  83. package/packages/ts/__tests__/sourcesToUniform.test.ts +106 -0
  84. package/packages/ts/context.ts +0 -0
  85. package/packages/ts/converterts/ts-class.ts +0 -0
  86. package/packages/ts/converterts/ts-enum.ts +0 -0
  87. package/packages/ts/converterts/ts-function.ts +0 -0
  88. package/packages/ts/converterts/ts-interface.ts +0 -0
  89. package/packages/ts/converterts/ts-type.ts +0 -0
  90. package/packages/ts/index.ts +129 -0
  91. package/packages/ts/ts-core.ts +0 -0
  92. package/packages/ts/uniformToMiniUniform.ts +486 -0
  93. package/src/index.ts +0 -0
  94. package/test-cmd/index.ts +62 -0
  95. package/tsconfig.json +38 -0
  96. package/tsup.config.ts +39 -0
  97. package/vitest.config.ts +34 -0
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Props for the GuideCard component
3
+ */
4
+ export interface GuideCardProps {
5
+ /** Content to be displayed in the card body */
6
+ children: React.ReactNode;
7
+
8
+ /** URL the card links to */
9
+ href: string
10
+
11
+ /** Title displayed at the top of the card */
12
+ title: string;
13
+
14
+ /** Optional icon displayed to the left of the content */
15
+ icon?: React.ReactNode;
16
+
17
+ /** Visual style variant of the card */
18
+ kind?: "secondary"
19
+
20
+ /** Size variant of the card */
21
+ size?: "sm" | "md"
22
+
23
+ /** Additional CSS class names to apply to the card */
24
+ className?: string
25
+
26
+ /** Additional props to pass to the link element */
27
+ as?: React.ElementType
28
+ }
29
+
30
+ /**
31
+ * A card component that displays content with a title and optional icon.
32
+ * The entire card is clickable and links to the specified URL.
33
+ *
34
+ * @category Component
35
+ */
36
+ export function GuideCard({
37
+ children,
38
+ href,
39
+ icon,
40
+ title,
41
+ kind,
42
+ size,
43
+ className,
44
+ as,
45
+ }: GuideCardProps) {
46
+
47
+ return <div>
48
+ {children}
49
+ </div>
50
+ }
51
+
52
+ /**
53
+ * A container component for grouping multiple GuideCard components.
54
+ * Provides consistent spacing and layout for a list of guide cards.
55
+ */
56
+ GuideCard.List = function GuideCardList({ children }: { children: React.ReactNode }) {
57
+ return <div>
58
+ {children}
59
+ </div>
60
+ }
61
+
62
+ /**
63
+ * Internal component that renders the arrow pointer icon.
64
+ */
65
+ function $Pointer() {
66
+ return <div part="pointer">
67
+ <svg
68
+ xmlns="http://www.w3.org/2000/svg"
69
+ width={24}
70
+ height={24}
71
+ fill="currentColor"
72
+ viewBox="0 0 24 24"
73
+ >
74
+ <path
75
+ fillRule="evenodd"
76
+ d="M9.293 7.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L12.586 12 9.293 8.707a1 1 0 0 1 0-1.414Z"
77
+ clipRule="evenodd"
78
+ />
79
+ </svg>
80
+ </div>
81
+ }
82
+
83
+ function $Link({ href, children, ...rest }) {
84
+ return <a
85
+ href={href}
86
+ {...rest}
87
+ >
88
+ {children}
89
+ </a>
90
+ }
@@ -0,0 +1,27 @@
1
+ import type { PropsWithChildren, ReactElement, ReactNode } from "react";
2
+
3
+ /**
4
+ * The props type for {@link TestBasicComponent}.
5
+ */
6
+ export interface Props extends PropsWithChildren {
7
+ /** The name of the person. */
8
+ name: string
9
+
10
+ /** The age of the person. */
11
+ age: number
12
+
13
+ /** Whether the person is active. */
14
+ isActive: boolean
15
+
16
+ /** The date the person was created. */
17
+ createdAt: Date
18
+ }
19
+
20
+ /**
21
+ * TestBasicComponent is a React component that uses a basic props type.
22
+ *
23
+ * @category Component
24
+ */
25
+ export function TestBasicComponent(props: Props): ReactElement {
26
+ return <div>{props.children}</div>;
27
+ }
@@ -0,0 +1,27 @@
1
+ import type { PropsWithChildren, ReactElement, ReactNode } from "react";
2
+
3
+ /**
4
+ * The props type for {@link TestNamedParameters}.
5
+ */
6
+ export interface Props extends PropsWithChildren {
7
+ /** The name of the person. */
8
+ name: string
9
+
10
+ /** The age of the person. */
11
+ age: number
12
+
13
+ /** Whether the person is active. */
14
+ isActive: boolean
15
+
16
+ /** The date the person was created. */
17
+ createdAt: Date
18
+ }
19
+
20
+ /**
21
+ * TestNamedParameters is a React component that uses a named parameters.
22
+ *
23
+ * @category Component
24
+ */
25
+ export function TestNamedParameters({ name, age, isActive, createdAt, children }: Props): ReactElement {
26
+ return <div>{children}</div>;
27
+ }
@@ -0,0 +1,26 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+
3
+
4
+ /**
5
+ * TestNamedParameters is a React component that uses inline named parameters
6
+ *
7
+ * @category Component
8
+ */
9
+ export function TestNamedParameters2({ name, age, isActive, createdAt, children }: {
10
+ /** The name of the person. */
11
+ name: string
12
+
13
+ /** The age of the person. */
14
+ age: number
15
+
16
+ /** Whether the person is active. */
17
+ isActive: boolean
18
+
19
+ /** The date the person was created. */
20
+ createdAt: Date
21
+
22
+ /** The children of the component. */
23
+ children: ReactNode
24
+ }): ReactElement {
25
+ return <div>{children}</div>;
26
+ }
@@ -0,0 +1,32 @@
1
+ import type { PropsWithChildren, ReactElement, ReactNode } from "react";
2
+
3
+ type VariantGhost = "ghost"
4
+
5
+ /**
6
+ * The props type for {@link TestUnionComponent}.
7
+ */
8
+ export interface ComponentProps extends PropsWithChildren {
9
+ /** The theme of the card. Defaults to `primary`. */
10
+ variant: "primary" | "secondary" | "success" | "danger" | "light" | "dark" | VariantGhost | 10
11
+ }
12
+
13
+ export interface ComponentProps2 extends PropsWithChildren {
14
+ /** The theme of the card. Defaults to `primary`. */
15
+ otherVariant: "other"
16
+
17
+ label: string
18
+ }
19
+
20
+ /**
21
+ * The union type for {@link ComponentProps} and {@link ComponentProps2}.
22
+ */
23
+ export type UnionProps = ComponentProps | ComponentProps2
24
+
25
+ /**
26
+ * TestUnionComponent is a React component that uses a union type for its props.
27
+ *
28
+ * @category Component
29
+ */
30
+ export function TestUnionComponent(props: UnionProps): ReactElement {
31
+ return <div>{props.children}</div>;
32
+ }
@@ -0,0 +1 @@
1
+ export * from "./TestAbc";
@@ -0,0 +1,8 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./dist",
4
+ "jsx": "react-jsx",
5
+ "skipLibCheck": true
6
+ }
7
+ }
8
+
@@ -0,0 +1,344 @@
1
+ {
2
+ "schemaVersion": "2.0",
3
+ "id": 0,
4
+ "name": "@xyd-sources-examples/react",
5
+ "variant": "project",
6
+ "kind": 1,
7
+ "flags": {},
8
+ "children": [
9
+ {
10
+ "id": 4,
11
+ "name": "Props",
12
+ "variant": "declaration",
13
+ "kind": 256,
14
+ "flags": {},
15
+ "comment": {
16
+ "summary": [
17
+ {
18
+ "kind": "text",
19
+ "text": "The props type for "
20
+ },
21
+ {
22
+ "kind": "inline-tag",
23
+ "tag": "@link",
24
+ "text": "TestBasicComponent",
25
+ "target": 1
26
+ },
27
+ {
28
+ "kind": "text",
29
+ "text": "."
30
+ }
31
+ ]
32
+ },
33
+ "children": [
34
+ {
35
+ "id": 5,
36
+ "name": "name",
37
+ "variant": "declaration",
38
+ "kind": 1024,
39
+ "flags": {},
40
+ "comment": {
41
+ "summary": [
42
+ {
43
+ "kind": "text",
44
+ "text": "The name of the person."
45
+ }
46
+ ]
47
+ },
48
+ "sources": [
49
+ {
50
+ "fileName": "TestBasic.tsx",
51
+ "line": 8,
52
+ "character": 4,
53
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L8"
54
+ }
55
+ ],
56
+ "type": {
57
+ "type": "intrinsic",
58
+ "name": "string"
59
+ }
60
+ },
61
+ {
62
+ "id": 6,
63
+ "name": "age",
64
+ "variant": "declaration",
65
+ "kind": 1024,
66
+ "flags": {},
67
+ "comment": {
68
+ "summary": [
69
+ {
70
+ "kind": "text",
71
+ "text": "The age of the person."
72
+ }
73
+ ]
74
+ },
75
+ "sources": [
76
+ {
77
+ "fileName": "TestBasic.tsx",
78
+ "line": 11,
79
+ "character": 4,
80
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L11"
81
+ }
82
+ ],
83
+ "type": {
84
+ "type": "intrinsic",
85
+ "name": "number"
86
+ }
87
+ },
88
+ {
89
+ "id": 7,
90
+ "name": "isActive",
91
+ "variant": "declaration",
92
+ "kind": 1024,
93
+ "flags": {},
94
+ "comment": {
95
+ "summary": [
96
+ {
97
+ "kind": "text",
98
+ "text": "Whether the person is active."
99
+ }
100
+ ]
101
+ },
102
+ "sources": [
103
+ {
104
+ "fileName": "TestBasic.tsx",
105
+ "line": 14,
106
+ "character": 4,
107
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L14"
108
+ }
109
+ ],
110
+ "type": {
111
+ "type": "intrinsic",
112
+ "name": "boolean"
113
+ }
114
+ },
115
+ {
116
+ "id": 8,
117
+ "name": "createdAt",
118
+ "variant": "declaration",
119
+ "kind": 1024,
120
+ "flags": {},
121
+ "comment": {
122
+ "summary": [
123
+ {
124
+ "kind": "text",
125
+ "text": "The date the person was created."
126
+ }
127
+ ]
128
+ },
129
+ "sources": [
130
+ {
131
+ "fileName": "TestBasic.tsx",
132
+ "line": 17,
133
+ "character": 4,
134
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L17"
135
+ }
136
+ ],
137
+ "type": {
138
+ "type": "reference",
139
+ "target": {
140
+ "packageName": "typescript",
141
+ "packagePath": "lib/lib.es5.d.ts",
142
+ "qualifiedName": "Date"
143
+ },
144
+ "name": "Date",
145
+ "package": "typescript"
146
+ }
147
+ }
148
+ ],
149
+ "groups": [
150
+ {
151
+ "title": "Properties",
152
+ "children": [
153
+ 5,
154
+ 6,
155
+ 7,
156
+ 8
157
+ ]
158
+ }
159
+ ],
160
+ "sources": [
161
+ {
162
+ "fileName": "TestBasic.tsx",
163
+ "line": 6,
164
+ "character": 17,
165
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L6"
166
+ }
167
+ ],
168
+ "extendedTypes": [
169
+ {
170
+ "type": "reference",
171
+ "target": {
172
+ "packageName": "@types/react",
173
+ "packagePath": "index.d.ts",
174
+ "qualifiedName": "React.PropsWithChildren"
175
+ },
176
+ "name": "PropsWithChildren",
177
+ "package": "@types/react",
178
+ "qualifiedName": "React.PropsWithChildren"
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ "id": 1,
184
+ "name": "TestBasicComponent",
185
+ "variant": "declaration",
186
+ "kind": 64,
187
+ "flags": {},
188
+ "sources": [
189
+ {
190
+ "fileName": "TestBasic.tsx",
191
+ "line": 25,
192
+ "character": 16,
193
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L25"
194
+ }
195
+ ],
196
+ "signatures": [
197
+ {
198
+ "id": 2,
199
+ "name": "TestBasicComponent",
200
+ "variant": "signature",
201
+ "kind": 4096,
202
+ "flags": {},
203
+ "comment": {
204
+ "summary": [
205
+ {
206
+ "kind": "text",
207
+ "text": "TestBasicComponent is a React component that uses a basic props type."
208
+ }
209
+ ],
210
+ "blockTags": [
211
+ {
212
+ "tag": "@category",
213
+ "content": [
214
+ {
215
+ "kind": "text",
216
+ "text": "Component"
217
+ }
218
+ ]
219
+ }
220
+ ]
221
+ },
222
+ "sources": [
223
+ {
224
+ "fileName": "TestBasic.tsx",
225
+ "line": 25,
226
+ "character": 16,
227
+ "url": "https://github.com/livesession/xyd/blob/f7723028e9645a625baf4e64224af48eb32d122f/packages/xyd-sources/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx#L25"
228
+ }
229
+ ],
230
+ "parameters": [
231
+ {
232
+ "id": 3,
233
+ "name": "props",
234
+ "variant": "param",
235
+ "kind": 32768,
236
+ "flags": {},
237
+ "type": {
238
+ "type": "reference",
239
+ "target": 4,
240
+ "name": "Props",
241
+ "package": "@xyd-sources-examples/react"
242
+ }
243
+ }
244
+ ],
245
+ "type": {
246
+ "type": "reference",
247
+ "target": {
248
+ "packageName": "@types/react",
249
+ "packagePath": "index.d.ts",
250
+ "qualifiedName": "React.ReactElement"
251
+ },
252
+ "name": "ReactElement",
253
+ "package": "@types/react",
254
+ "qualifiedName": "React.ReactElement"
255
+ }
256
+ }
257
+ ]
258
+ }
259
+ ],
260
+ "groups": [
261
+ {
262
+ "title": "Interfaces",
263
+ "children": [
264
+ 4
265
+ ]
266
+ },
267
+ {
268
+ "title": "Functions",
269
+ "children": [
270
+ 1
271
+ ]
272
+ }
273
+ ],
274
+ "categories": [
275
+ {
276
+ "title": "Component",
277
+ "children": [
278
+ 1
279
+ ]
280
+ },
281
+ {
282
+ "title": "Other",
283
+ "children": [
284
+ 4
285
+ ]
286
+ }
287
+ ],
288
+ "packageName": "@xyd-sources-examples/react",
289
+ "symbolIdMap": {
290
+ "0": {
291
+ "packageName": "@xyd-sources-examples/react",
292
+ "packagePath": "src/TestBasic.tsx",
293
+ "qualifiedName": ""
294
+ },
295
+ "1": {
296
+ "packageName": "@xyd-sources-examples/react",
297
+ "packagePath": "src/TestBasic.tsx",
298
+ "qualifiedName": "TestBasicComponent"
299
+ },
300
+ "2": {
301
+ "packageName": "@xyd-sources-examples/react",
302
+ "packagePath": "src/TestBasic.tsx",
303
+ "qualifiedName": "TestBasicComponent"
304
+ },
305
+ "3": {
306
+ "packageName": "@xyd-sources-examples/react",
307
+ "packagePath": "src/TestBasic.tsx",
308
+ "qualifiedName": "props"
309
+ },
310
+ "4": {
311
+ "packageName": "@xyd-sources-examples/react",
312
+ "packagePath": "src/TestBasic.tsx",
313
+ "qualifiedName": "Props"
314
+ },
315
+ "5": {
316
+ "packageName": "@xyd-sources-examples/react",
317
+ "packagePath": "src/TestBasic.tsx",
318
+ "qualifiedName": "Props.name"
319
+ },
320
+ "6": {
321
+ "packageName": "@xyd-sources-examples/react",
322
+ "packagePath": "src/TestBasic.tsx",
323
+ "qualifiedName": "Props.age"
324
+ },
325
+ "7": {
326
+ "packageName": "@xyd-sources-examples/react",
327
+ "packagePath": "src/TestBasic.tsx",
328
+ "qualifiedName": "Props.isActive"
329
+ },
330
+ "8": {
331
+ "packageName": "@xyd-sources-examples/react",
332
+ "packagePath": "src/TestBasic.tsx",
333
+ "qualifiedName": "Props.createdAt"
334
+ }
335
+ },
336
+ "files": {
337
+ "entries": {
338
+ "1": "src/TestBasic.tsx"
339
+ },
340
+ "reflections": {
341
+ "1": 0
342
+ }
343
+ }
344
+ }
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "title": "TestBasicComponent",
4
+ "canonical": "@xyd-sources-examples/react/components/TestBasicComponent",
5
+ "description": "TestBasicComponent is a React component that uses a basic props type.\n",
6
+ "context": {
7
+ "symbolId": "1",
8
+ "symbolName": "TestBasicComponent",
9
+ "symbolKind": 64,
10
+ "packageName": "@xyd-sources-examples/react",
11
+ "fileName": "TestBasic.tsx",
12
+ "fileFullPath": "src/TestBasic.tsx",
13
+ "line": 25,
14
+ "col": 16,
15
+ "signatureText": {
16
+ "code": "export function TestBasicComponent(props: Props): ReactElement;",
17
+ "lang": "ts"
18
+ },
19
+ "sourcecode": {
20
+ "code": "export function TestBasicComponent(props: Props): ReactElement {\n return <div>{props.children}</div>;\n}",
21
+ "lang": "ts"
22
+ },
23
+ "category": "Component",
24
+ "group": [
25
+ "@xyd-sources-examples",
26
+ "react",
27
+ "Component"
28
+ ]
29
+ },
30
+ "examples": {
31
+ "groups": []
32
+ },
33
+ "definitions": [
34
+ {
35
+ "title": "Props",
36
+ "properties": [
37
+ {
38
+ "name": "name",
39
+ "type": "string",
40
+ "description": "The name of the person.\n"
41
+ },
42
+ {
43
+ "name": "age",
44
+ "type": "number",
45
+ "description": "The age of the person.\n"
46
+ },
47
+ {
48
+ "name": "isActive",
49
+ "type": "boolean",
50
+ "description": "Whether the person is active.\n"
51
+ },
52
+ {
53
+ "name": "createdAt",
54
+ "type": "Date",
55
+ "description": "The date the person was created.\n"
56
+ }
57
+ ],
58
+ "meta": [
59
+ {
60
+ "name": "type",
61
+ "value": "parameters"
62
+ }
63
+ ],
64
+ "variants": []
65
+ }
66
+ ]
67
+ }
68
+ ]