@teambit/api-reference 1.0.188 → 1.0.189

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.
@@ -0,0 +1,1256 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ClassSchema",
18
+ "location": {
19
+ "filePath": "api-reference.ui.runtime.tsx",
20
+ "line": 33,
21
+ "character": 1
22
+ },
23
+ "signature": "class APIReferenceUI",
24
+ "name": "APIReferenceUI",
25
+ "members": [
26
+ {
27
+ "__schema": "ConstructorSchema",
28
+ "location": {
29
+ "filePath": "api-reference.ui.runtime.tsx",
30
+ "line": 34,
31
+ "character": 3
32
+ },
33
+ "signature": "constructor APIReferenceUI(host: string, apiNodeRendererSlot: APINodeRendererSlot, code: CodeUI): APIReferenceUI",
34
+ "name": "constructor",
35
+ "params": [
36
+ {
37
+ "__schema": "ParameterSchema",
38
+ "location": {
39
+ "filePath": "api-reference.ui.runtime.tsx",
40
+ "line": 34,
41
+ "character": 15
42
+ },
43
+ "name": "host",
44
+ "type": {
45
+ "__schema": "KeywordTypeSchema",
46
+ "location": {
47
+ "filePath": "api-reference.ui.runtime.tsx",
48
+ "line": 34,
49
+ "character": 29
50
+ },
51
+ "name": "string"
52
+ },
53
+ "isOptional": false,
54
+ "isSpread": false
55
+ },
56
+ {
57
+ "__schema": "ParameterSchema",
58
+ "location": {
59
+ "filePath": "api-reference.ui.runtime.tsx",
60
+ "line": 34,
61
+ "character": 37
62
+ },
63
+ "name": "apiNodeRendererSlot",
64
+ "type": {
65
+ "__schema": "TypeRefSchema",
66
+ "location": {
67
+ "filePath": "api-reference.ui.runtime.tsx",
68
+ "line": 34,
69
+ "character": 66
70
+ },
71
+ "name": "APINodeRendererSlot"
72
+ },
73
+ "isOptional": false,
74
+ "isSpread": false
75
+ },
76
+ {
77
+ "__schema": "ParameterSchema",
78
+ "location": {
79
+ "filePath": "api-reference.ui.runtime.tsx",
80
+ "line": 34,
81
+ "character": 87
82
+ },
83
+ "name": "code",
84
+ "type": {
85
+ "__schema": "TypeRefSchema",
86
+ "location": {
87
+ "filePath": "api-reference.ui.runtime.tsx",
88
+ "line": 34,
89
+ "character": 101
90
+ },
91
+ "name": "CodeUI",
92
+ "componentId": {
93
+ "scope": "teambit.component",
94
+ "name": "code"
95
+ }
96
+ },
97
+ "isOptional": false,
98
+ "isSpread": false
99
+ }
100
+ ],
101
+ "returnType": {
102
+ "__schema": "ThisTypeSchema",
103
+ "location": {
104
+ "filePath": "api-reference.ui.runtime.tsx",
105
+ "line": 33,
106
+ "character": 1
107
+ },
108
+ "name": "APIReferenceUI"
109
+ },
110
+ "modifiers": []
111
+ },
112
+ {
113
+ "__schema": "VariableLikeSchema",
114
+ "location": {
115
+ "filePath": "api-reference.ui.runtime.tsx",
116
+ "line": 36,
117
+ "character": 3
118
+ },
119
+ "signature": "(property) APIReferenceUI.dependencies: Aspect[]",
120
+ "name": "dependencies",
121
+ "type": {
122
+ "__schema": "InferenceTypeSchema",
123
+ "location": {
124
+ "filePath": "api-reference.ui.runtime.tsx",
125
+ "line": 36,
126
+ "character": 3
127
+ },
128
+ "type": "Aspect[]"
129
+ },
130
+ "isOptional": true,
131
+ "defaultValue": "[ComponentAspect, CodeAspect]"
132
+ },
133
+ {
134
+ "__schema": "VariableLikeSchema",
135
+ "location": {
136
+ "filePath": "api-reference.ui.runtime.tsx",
137
+ "line": 37,
138
+ "character": 3
139
+ },
140
+ "signature": "(property) APIReferenceUI.runtime: RuntimeDefinition",
141
+ "name": "runtime",
142
+ "type": {
143
+ "__schema": "InferenceTypeSchema",
144
+ "location": {
145
+ "filePath": "api-reference.ui.runtime.tsx",
146
+ "line": 37,
147
+ "character": 3
148
+ },
149
+ "type": "RuntimeDefinition"
150
+ },
151
+ "isOptional": true,
152
+ "defaultValue": "UIRuntime"
153
+ },
154
+ {
155
+ "__schema": "VariableLikeSchema",
156
+ "location": {
157
+ "filePath": "api-reference.ui.runtime.tsx",
158
+ "line": 38,
159
+ "character": 3
160
+ },
161
+ "signature": "(property) APIReferenceUI.slots: ((registerFn: () => string) => SlotRegistry<APINodeRenderer[]>)[]",
162
+ "name": "slots",
163
+ "type": {
164
+ "__schema": "InferenceTypeSchema",
165
+ "location": {
166
+ "filePath": "api-reference.ui.runtime.tsx",
167
+ "line": 38,
168
+ "character": 3
169
+ },
170
+ "type": "((registerFn: () => string) => SlotRegistry<APINodeRenderer[]>)[]"
171
+ },
172
+ "isOptional": true,
173
+ "defaultValue": "[Slot.withType<APINodeRenderer[]>()]"
174
+ },
175
+ {
176
+ "__schema": "ReactSchema",
177
+ "location": {
178
+ "filePath": "api-reference.ui.runtime.tsx",
179
+ "line": 40,
180
+ "character": 3
181
+ },
182
+ "signature": "(method) APIReferenceUI.getAPIPage(): React.JSX.Element",
183
+ "name": "getAPIPage",
184
+ "returnType": {
185
+ "__schema": "TypeRefSchema",
186
+ "location": {
187
+ "filePath": "api-reference.ui.runtime.tsx",
188
+ "line": 40,
189
+ "character": 3
190
+ },
191
+ "name": "React.JSX.Element",
192
+ "packageName": "react"
193
+ },
194
+ "modifiers": []
195
+ },
196
+ {
197
+ "__schema": "VariableLikeSchema",
198
+ "location": {
199
+ "filePath": "api-reference.ui.runtime.tsx",
200
+ "line": 49,
201
+ "character": 3
202
+ },
203
+ "signature": "(property) APIReferenceUI.TaggedAPIPage: ({ componentId }: {\n componentId: string;\n}) => React.JSX.Element",
204
+ "name": "TaggedAPIPage",
205
+ "type": {
206
+ "__schema": "InferenceTypeSchema",
207
+ "location": {
208
+ "filePath": "api-reference.ui.runtime.tsx",
209
+ "line": 49,
210
+ "character": 3
211
+ },
212
+ "type": "({ componentId }: {\n componentId: string;\n}) => React.JSX.Element"
213
+ },
214
+ "isOptional": true,
215
+ "defaultValue": "({ componentId }: { componentId: string }) => {\n return (\n <APIRefRenderersProvider nodeRenderers={flatten(this.apiNodeRendererSlot.values())}>\n <TaggedExports componentId={componentId} />\n </APIRefRenderersProvider>\n );\n }"
216
+ },
217
+ {
218
+ "__schema": "FunctionLikeSchema",
219
+ "location": {
220
+ "filePath": "api-reference.ui.runtime.tsx",
221
+ "line": 57,
222
+ "character": 3
223
+ },
224
+ "signature": "(method) APIReferenceUI.registerSchemaClass(schema: SchemaNodeConstructor): void",
225
+ "name": "registerSchemaClass",
226
+ "params": [
227
+ {
228
+ "__schema": "ParameterSchema",
229
+ "location": {
230
+ "filePath": "api-reference.ui.runtime.tsx",
231
+ "line": 57,
232
+ "character": 23
233
+ },
234
+ "name": "schema",
235
+ "type": {
236
+ "__schema": "TypeRefSchema",
237
+ "location": {
238
+ "filePath": "api-reference.ui.runtime.tsx",
239
+ "line": 57,
240
+ "character": 31
241
+ },
242
+ "name": "SchemaNodeConstructor",
243
+ "componentId": {
244
+ "scope": "teambit.semantics",
245
+ "name": "entities/semantic-schema",
246
+ "version": "0.0.68"
247
+ }
248
+ },
249
+ "isOptional": false,
250
+ "isSpread": false
251
+ }
252
+ ],
253
+ "returnType": {
254
+ "__schema": "InferenceTypeSchema",
255
+ "location": {
256
+ "filePath": "api-reference.ui.runtime.tsx",
257
+ "line": 57,
258
+ "character": 3
259
+ },
260
+ "type": "void"
261
+ },
262
+ "modifiers": []
263
+ },
264
+ {
265
+ "__schema": "FunctionLikeSchema",
266
+ "location": {
267
+ "filePath": "api-reference.ui.runtime.tsx",
268
+ "line": 61,
269
+ "character": 3
270
+ },
271
+ "signature": "(method) APIReferenceUI.getSchemaClasses(): () => Record<string, SchemaNodeConstructor>",
272
+ "name": "getSchemaClasses",
273
+ "params": [],
274
+ "returnType": {
275
+ "__schema": "InferenceTypeSchema",
276
+ "location": {
277
+ "filePath": "api-reference.ui.runtime.tsx",
278
+ "line": 61,
279
+ "character": 3
280
+ },
281
+ "type": "() => Record<string, SchemaNodeConstructor>"
282
+ },
283
+ "modifiers": []
284
+ },
285
+ {
286
+ "__schema": "FunctionLikeSchema",
287
+ "location": {
288
+ "filePath": "api-reference.ui.runtime.tsx",
289
+ "line": 65,
290
+ "character": 3
291
+ },
292
+ "signature": "(method) APIReferenceUI.registerAPINodeRenderer(apiNodeRenderers: APINodeRenderer[]): void",
293
+ "name": "registerAPINodeRenderer",
294
+ "params": [
295
+ {
296
+ "__schema": "ParameterSchema",
297
+ "location": {
298
+ "filePath": "api-reference.ui.runtime.tsx",
299
+ "line": 65,
300
+ "character": 27
301
+ },
302
+ "name": "apiNodeRenderers",
303
+ "type": {
304
+ "__schema": "TypeArraySchema",
305
+ "location": {
306
+ "filePath": "api-reference.ui.runtime.tsx",
307
+ "line": 65,
308
+ "character": 45
309
+ },
310
+ "type": {
311
+ "__schema": "TypeRefSchema",
312
+ "location": {
313
+ "filePath": "api-reference.ui.runtime.tsx",
314
+ "line": 65,
315
+ "character": 45
316
+ },
317
+ "name": "APINodeRenderer",
318
+ "componentId": {
319
+ "scope": "teambit.api-reference",
320
+ "name": "models/api-node-renderer",
321
+ "version": "0.0.25"
322
+ }
323
+ }
324
+ },
325
+ "isOptional": false,
326
+ "isSpread": false
327
+ }
328
+ ],
329
+ "returnType": {
330
+ "__schema": "InferenceTypeSchema",
331
+ "location": {
332
+ "filePath": "api-reference.ui.runtime.tsx",
333
+ "line": 65,
334
+ "character": 3
335
+ },
336
+ "type": "void"
337
+ },
338
+ "modifiers": []
339
+ },
340
+ {
341
+ "__schema": "VariableLikeSchema",
342
+ "location": {
343
+ "filePath": "api-reference.ui.runtime.tsx",
344
+ "line": 69,
345
+ "character": 3
346
+ },
347
+ "signature": "(property) APIReferenceUI.apiNodeRenderers: APINodeRenderer[]",
348
+ "name": "apiNodeRenderers",
349
+ "type": {
350
+ "__schema": "TypeArraySchema",
351
+ "location": {
352
+ "filePath": "api-reference.ui.runtime.tsx",
353
+ "line": 69,
354
+ "character": 21
355
+ },
356
+ "type": {
357
+ "__schema": "TypeRefSchema",
358
+ "location": {
359
+ "filePath": "api-reference.ui.runtime.tsx",
360
+ "line": 69,
361
+ "character": 21
362
+ },
363
+ "name": "APINodeRenderer",
364
+ "componentId": {
365
+ "scope": "teambit.api-reference",
366
+ "name": "models/api-node-renderer",
367
+ "version": "0.0.25"
368
+ }
369
+ }
370
+ },
371
+ "isOptional": true,
372
+ "defaultValue": "[\n classRenderer,\n typeRenderer,\n interfaceRenderer,\n variableRenderer,\n functionRenderer,\n enumRenderer,\n unresolvedRenderer,\n typeRefRenderer,\n typeIntersectionRenderer,\n typeUnionRenderer,\n parameterRenderer,\n typeLiteralRenderer,\n inferenceTypeRenderer,\n typeArrayRenderer,\n thisRenderer,\n decoratorRenderer,\n ]"
373
+ },
374
+ {
375
+ "__schema": "FunctionLikeSchema",
376
+ "location": {
377
+ "filePath": "api-reference.ui.runtime.tsx",
378
+ "line": 88,
379
+ "character": 3
380
+ },
381
+ "signature": "(method) APIReferenceUI.provider([componentUI, codeUI]: [ComponentUI, CodeUI], _: any, [apiNodeRendererSlot]: [APINodeRendererSlot], harmony: Harmony): Promise<APIReferenceUI>",
382
+ "name": "provider",
383
+ "params": [
384
+ {
385
+ "__schema": "ParameterSchema",
386
+ "location": {
387
+ "filePath": "api-reference.ui.runtime.tsx",
388
+ "line": 89,
389
+ "character": 5
390
+ },
391
+ "name": "[ componentUI, codeUI ]",
392
+ "type": {
393
+ "__schema": "TupleTypeSchema",
394
+ "location": {
395
+ "filePath": "api-reference.ui.runtime.tsx",
396
+ "line": 89,
397
+ "character": 28
398
+ },
399
+ "elements": [
400
+ {
401
+ "__schema": "TypeRefSchema",
402
+ "location": {
403
+ "filePath": "api-reference.ui.runtime.tsx",
404
+ "line": 89,
405
+ "character": 29
406
+ },
407
+ "name": "ComponentUI",
408
+ "componentId": {
409
+ "scope": "teambit.component",
410
+ "name": "component"
411
+ }
412
+ },
413
+ {
414
+ "__schema": "TypeRefSchema",
415
+ "location": {
416
+ "filePath": "api-reference.ui.runtime.tsx",
417
+ "line": 89,
418
+ "character": 42
419
+ },
420
+ "name": "CodeUI",
421
+ "componentId": {
422
+ "scope": "teambit.component",
423
+ "name": "code"
424
+ }
425
+ }
426
+ ]
427
+ },
428
+ "isOptional": false,
429
+ "isSpread": false
430
+ },
431
+ {
432
+ "__schema": "ParameterSchema",
433
+ "location": {
434
+ "filePath": "api-reference.ui.runtime.tsx",
435
+ "line": 90,
436
+ "character": 5
437
+ },
438
+ "name": "_",
439
+ "type": {
440
+ "__schema": "InferenceTypeSchema",
441
+ "location": {
442
+ "filePath": "api-reference.ui.runtime.tsx",
443
+ "line": 90,
444
+ "character": 5
445
+ },
446
+ "type": "any"
447
+ },
448
+ "isOptional": false,
449
+ "isSpread": false
450
+ },
451
+ {
452
+ "__schema": "ParameterSchema",
453
+ "location": {
454
+ "filePath": "api-reference.ui.runtime.tsx",
455
+ "line": 91,
456
+ "character": 5
457
+ },
458
+ "name": "[ apiNodeRendererSlot ]",
459
+ "type": {
460
+ "__schema": "TupleTypeSchema",
461
+ "location": {
462
+ "filePath": "api-reference.ui.runtime.tsx",
463
+ "line": 91,
464
+ "character": 28
465
+ },
466
+ "elements": [
467
+ {
468
+ "__schema": "TypeRefSchema",
469
+ "location": {
470
+ "filePath": "api-reference.ui.runtime.tsx",
471
+ "line": 91,
472
+ "character": 29
473
+ },
474
+ "name": "APINodeRendererSlot"
475
+ }
476
+ ]
477
+ },
478
+ "isOptional": false,
479
+ "isSpread": false
480
+ },
481
+ {
482
+ "__schema": "ParameterSchema",
483
+ "location": {
484
+ "filePath": "api-reference.ui.runtime.tsx",
485
+ "line": 92,
486
+ "character": 5
487
+ },
488
+ "name": "harmony",
489
+ "type": {
490
+ "__schema": "TypeRefSchema",
491
+ "location": {
492
+ "filePath": "api-reference.ui.runtime.tsx",
493
+ "line": 92,
494
+ "character": 14
495
+ },
496
+ "name": "Harmony",
497
+ "componentId": {
498
+ "scope": "teambit.harmony",
499
+ "name": "harmony",
500
+ "version": "0.4.6"
501
+ }
502
+ },
503
+ "isOptional": false,
504
+ "isSpread": false
505
+ }
506
+ ],
507
+ "returnType": {
508
+ "__schema": "InferenceTypeSchema",
509
+ "location": {
510
+ "filePath": "api-reference.ui.runtime.tsx",
511
+ "line": 88,
512
+ "character": 3
513
+ },
514
+ "type": "Promise<APIReferenceUI>"
515
+ },
516
+ "modifiers": [
517
+ "static",
518
+ "async"
519
+ ]
520
+ }
521
+ ],
522
+ "extendsNodes": [],
523
+ "implementNodes": []
524
+ },
525
+ {
526
+ "__schema": "TypeSchema",
527
+ "location": {
528
+ "filePath": "api-reference.ui.runtime.tsx",
529
+ "line": 32,
530
+ "character": 1
531
+ },
532
+ "signature": "type APINodeRendererSlot = SlotRegistry<APINodeRenderer[]>",
533
+ "name": "APINodeRendererSlot",
534
+ "type": {
535
+ "__schema": "TypeRefSchema",
536
+ "location": {
537
+ "filePath": "api-reference.ui.runtime.tsx",
538
+ "line": 32,
539
+ "character": 35
540
+ },
541
+ "name": "SlotRegistry",
542
+ "componentId": {
543
+ "scope": "teambit.harmony",
544
+ "name": "harmony",
545
+ "version": "0.4.6"
546
+ },
547
+ "typeArgs": [
548
+ {
549
+ "__schema": "TypeArraySchema",
550
+ "location": {
551
+ "filePath": "api-reference.ui.runtime.tsx",
552
+ "line": 32,
553
+ "character": 48
554
+ },
555
+ "type": {
556
+ "__schema": "TypeRefSchema",
557
+ "location": {
558
+ "filePath": "api-reference.ui.runtime.tsx",
559
+ "line": 32,
560
+ "character": 48
561
+ },
562
+ "name": "APINodeRenderer",
563
+ "componentId": {
564
+ "scope": "teambit.api-reference",
565
+ "name": "models/api-node-renderer",
566
+ "version": "0.0.25"
567
+ }
568
+ }
569
+ }
570
+ ]
571
+ }
572
+ },
573
+ {
574
+ "__schema": "UnImplementedSchema",
575
+ "location": {
576
+ "filePath": "index.ts",
577
+ "line": 4,
578
+ "character": 16
579
+ },
580
+ "name": "APIReferenceAspect",
581
+ "type": "Identifier"
582
+ },
583
+ {
584
+ "__schema": "VariableLikeSchema",
585
+ "location": {
586
+ "filePath": "api-reference.aspect.ts",
587
+ "line": 3,
588
+ "character": 14
589
+ },
590
+ "signature": "const APIReferenceAspect: Aspect",
591
+ "name": "APIReferenceAspect",
592
+ "type": {
593
+ "__schema": "TypeRefSchema",
594
+ "location": {
595
+ "filePath": "api-reference.aspect.ts",
596
+ "line": 3,
597
+ "character": 14
598
+ },
599
+ "name": "Aspect",
600
+ "componentId": {
601
+ "scope": "teambit.harmony",
602
+ "name": "harmony",
603
+ "version": "0.4.6"
604
+ }
605
+ },
606
+ "isOptional": false,
607
+ "defaultValue": "Aspect.create({\n id: 'teambit.api-reference/api-reference',\n})"
608
+ }
609
+ ],
610
+ "internals": []
611
+ },
612
+ "internals": [
613
+ {
614
+ "__schema": "ModuleSchema",
615
+ "location": {
616
+ "filePath": "api-reference.ui.runtime.tsx",
617
+ "line": 1,
618
+ "character": 1
619
+ },
620
+ "exports": [
621
+ {
622
+ "__schema": "TypeSchema",
623
+ "location": {
624
+ "filePath": "api-reference.ui.runtime.tsx",
625
+ "line": 32,
626
+ "character": 1
627
+ },
628
+ "signature": "type APINodeRendererSlot = SlotRegistry<APINodeRenderer[]>",
629
+ "name": "APINodeRendererSlot",
630
+ "type": {
631
+ "__schema": "TypeRefSchema",
632
+ "location": {
633
+ "filePath": "api-reference.ui.runtime.tsx",
634
+ "line": 32,
635
+ "character": 35
636
+ },
637
+ "name": "SlotRegistry",
638
+ "componentId": {
639
+ "scope": "teambit.harmony",
640
+ "name": "harmony",
641
+ "version": "0.4.6"
642
+ },
643
+ "typeArgs": [
644
+ {
645
+ "__schema": "TypeArraySchema",
646
+ "location": {
647
+ "filePath": "api-reference.ui.runtime.tsx",
648
+ "line": 32,
649
+ "character": 48
650
+ },
651
+ "type": {
652
+ "__schema": "TypeRefSchema",
653
+ "location": {
654
+ "filePath": "api-reference.ui.runtime.tsx",
655
+ "line": 32,
656
+ "character": 48
657
+ },
658
+ "name": "APINodeRenderer",
659
+ "componentId": {
660
+ "scope": "teambit.api-reference",
661
+ "name": "models/api-node-renderer",
662
+ "version": "0.0.25"
663
+ }
664
+ }
665
+ }
666
+ ]
667
+ }
668
+ },
669
+ {
670
+ "__schema": "ClassSchema",
671
+ "location": {
672
+ "filePath": "api-reference.ui.runtime.tsx",
673
+ "line": 33,
674
+ "character": 1
675
+ },
676
+ "signature": "class APIReferenceUI",
677
+ "name": "APIReferenceUI",
678
+ "members": [
679
+ {
680
+ "__schema": "ConstructorSchema",
681
+ "location": {
682
+ "filePath": "api-reference.ui.runtime.tsx",
683
+ "line": 34,
684
+ "character": 3
685
+ },
686
+ "signature": "constructor APIReferenceUI(host: string, apiNodeRendererSlot: APINodeRendererSlot, code: CodeUI): APIReferenceUI",
687
+ "name": "constructor",
688
+ "params": [
689
+ {
690
+ "__schema": "ParameterSchema",
691
+ "location": {
692
+ "filePath": "api-reference.ui.runtime.tsx",
693
+ "line": 34,
694
+ "character": 15
695
+ },
696
+ "name": "host",
697
+ "type": {
698
+ "__schema": "KeywordTypeSchema",
699
+ "location": {
700
+ "filePath": "api-reference.ui.runtime.tsx",
701
+ "line": 34,
702
+ "character": 29
703
+ },
704
+ "name": "string"
705
+ },
706
+ "isOptional": false,
707
+ "isSpread": false
708
+ },
709
+ {
710
+ "__schema": "ParameterSchema",
711
+ "location": {
712
+ "filePath": "api-reference.ui.runtime.tsx",
713
+ "line": 34,
714
+ "character": 37
715
+ },
716
+ "name": "apiNodeRendererSlot",
717
+ "type": {
718
+ "__schema": "TypeRefSchema",
719
+ "location": {
720
+ "filePath": "api-reference.ui.runtime.tsx",
721
+ "line": 34,
722
+ "character": 66
723
+ },
724
+ "name": "APINodeRendererSlot"
725
+ },
726
+ "isOptional": false,
727
+ "isSpread": false
728
+ },
729
+ {
730
+ "__schema": "ParameterSchema",
731
+ "location": {
732
+ "filePath": "api-reference.ui.runtime.tsx",
733
+ "line": 34,
734
+ "character": 87
735
+ },
736
+ "name": "code",
737
+ "type": {
738
+ "__schema": "TypeRefSchema",
739
+ "location": {
740
+ "filePath": "api-reference.ui.runtime.tsx",
741
+ "line": 34,
742
+ "character": 101
743
+ },
744
+ "name": "CodeUI",
745
+ "componentId": {
746
+ "scope": "teambit.component",
747
+ "name": "code"
748
+ }
749
+ },
750
+ "isOptional": false,
751
+ "isSpread": false
752
+ }
753
+ ],
754
+ "returnType": {
755
+ "__schema": "ThisTypeSchema",
756
+ "location": {
757
+ "filePath": "api-reference.ui.runtime.tsx",
758
+ "line": 33,
759
+ "character": 1
760
+ },
761
+ "name": "APIReferenceUI"
762
+ },
763
+ "modifiers": []
764
+ },
765
+ {
766
+ "__schema": "VariableLikeSchema",
767
+ "location": {
768
+ "filePath": "api-reference.ui.runtime.tsx",
769
+ "line": 36,
770
+ "character": 3
771
+ },
772
+ "signature": "(property) APIReferenceUI.dependencies: Aspect[]",
773
+ "name": "dependencies",
774
+ "type": {
775
+ "__schema": "InferenceTypeSchema",
776
+ "location": {
777
+ "filePath": "api-reference.ui.runtime.tsx",
778
+ "line": 36,
779
+ "character": 3
780
+ },
781
+ "type": "Aspect[]"
782
+ },
783
+ "isOptional": true,
784
+ "defaultValue": "[ComponentAspect, CodeAspect]"
785
+ },
786
+ {
787
+ "__schema": "VariableLikeSchema",
788
+ "location": {
789
+ "filePath": "api-reference.ui.runtime.tsx",
790
+ "line": 37,
791
+ "character": 3
792
+ },
793
+ "signature": "(property) APIReferenceUI.runtime: RuntimeDefinition",
794
+ "name": "runtime",
795
+ "type": {
796
+ "__schema": "InferenceTypeSchema",
797
+ "location": {
798
+ "filePath": "api-reference.ui.runtime.tsx",
799
+ "line": 37,
800
+ "character": 3
801
+ },
802
+ "type": "RuntimeDefinition"
803
+ },
804
+ "isOptional": true,
805
+ "defaultValue": "UIRuntime"
806
+ },
807
+ {
808
+ "__schema": "VariableLikeSchema",
809
+ "location": {
810
+ "filePath": "api-reference.ui.runtime.tsx",
811
+ "line": 38,
812
+ "character": 3
813
+ },
814
+ "signature": "(property) APIReferenceUI.slots: ((registerFn: () => string) => SlotRegistry<APINodeRenderer[]>)[]",
815
+ "name": "slots",
816
+ "type": {
817
+ "__schema": "InferenceTypeSchema",
818
+ "location": {
819
+ "filePath": "api-reference.ui.runtime.tsx",
820
+ "line": 38,
821
+ "character": 3
822
+ },
823
+ "type": "((registerFn: () => string) => SlotRegistry<APINodeRenderer[]>)[]"
824
+ },
825
+ "isOptional": true,
826
+ "defaultValue": "[Slot.withType<APINodeRenderer[]>()]"
827
+ },
828
+ {
829
+ "__schema": "ReactSchema",
830
+ "location": {
831
+ "filePath": "api-reference.ui.runtime.tsx",
832
+ "line": 40,
833
+ "character": 3
834
+ },
835
+ "signature": "(method) APIReferenceUI.getAPIPage(): React.JSX.Element",
836
+ "name": "getAPIPage",
837
+ "returnType": {
838
+ "__schema": "TypeRefSchema",
839
+ "location": {
840
+ "filePath": "api-reference.ui.runtime.tsx",
841
+ "line": 40,
842
+ "character": 3
843
+ },
844
+ "name": "React.JSX.Element",
845
+ "packageName": "react"
846
+ },
847
+ "modifiers": []
848
+ },
849
+ {
850
+ "__schema": "VariableLikeSchema",
851
+ "location": {
852
+ "filePath": "api-reference.ui.runtime.tsx",
853
+ "line": 49,
854
+ "character": 3
855
+ },
856
+ "signature": "(property) APIReferenceUI.TaggedAPIPage: ({ componentId }: {\n componentId: string;\n}) => React.JSX.Element",
857
+ "name": "TaggedAPIPage",
858
+ "type": {
859
+ "__schema": "InferenceTypeSchema",
860
+ "location": {
861
+ "filePath": "api-reference.ui.runtime.tsx",
862
+ "line": 49,
863
+ "character": 3
864
+ },
865
+ "type": "({ componentId }: {\n componentId: string;\n}) => React.JSX.Element"
866
+ },
867
+ "isOptional": true,
868
+ "defaultValue": "({ componentId }: { componentId: string }) => {\n return (\n <APIRefRenderersProvider nodeRenderers={flatten(this.apiNodeRendererSlot.values())}>\n <TaggedExports componentId={componentId} />\n </APIRefRenderersProvider>\n );\n }"
869
+ },
870
+ {
871
+ "__schema": "FunctionLikeSchema",
872
+ "location": {
873
+ "filePath": "api-reference.ui.runtime.tsx",
874
+ "line": 57,
875
+ "character": 3
876
+ },
877
+ "signature": "(method) APIReferenceUI.registerSchemaClass(schema: SchemaNodeConstructor): void",
878
+ "name": "registerSchemaClass",
879
+ "params": [
880
+ {
881
+ "__schema": "ParameterSchema",
882
+ "location": {
883
+ "filePath": "api-reference.ui.runtime.tsx",
884
+ "line": 57,
885
+ "character": 23
886
+ },
887
+ "name": "schema",
888
+ "type": {
889
+ "__schema": "TypeRefSchema",
890
+ "location": {
891
+ "filePath": "api-reference.ui.runtime.tsx",
892
+ "line": 57,
893
+ "character": 31
894
+ },
895
+ "name": "SchemaNodeConstructor",
896
+ "componentId": {
897
+ "scope": "teambit.semantics",
898
+ "name": "entities/semantic-schema",
899
+ "version": "0.0.68"
900
+ }
901
+ },
902
+ "isOptional": false,
903
+ "isSpread": false
904
+ }
905
+ ],
906
+ "returnType": {
907
+ "__schema": "InferenceTypeSchema",
908
+ "location": {
909
+ "filePath": "api-reference.ui.runtime.tsx",
910
+ "line": 57,
911
+ "character": 3
912
+ },
913
+ "type": "void"
914
+ },
915
+ "modifiers": []
916
+ },
917
+ {
918
+ "__schema": "FunctionLikeSchema",
919
+ "location": {
920
+ "filePath": "api-reference.ui.runtime.tsx",
921
+ "line": 61,
922
+ "character": 3
923
+ },
924
+ "signature": "(method) APIReferenceUI.getSchemaClasses(): () => Record<string, SchemaNodeConstructor>",
925
+ "name": "getSchemaClasses",
926
+ "params": [],
927
+ "returnType": {
928
+ "__schema": "InferenceTypeSchema",
929
+ "location": {
930
+ "filePath": "api-reference.ui.runtime.tsx",
931
+ "line": 61,
932
+ "character": 3
933
+ },
934
+ "type": "() => Record<string, SchemaNodeConstructor>"
935
+ },
936
+ "modifiers": []
937
+ },
938
+ {
939
+ "__schema": "FunctionLikeSchema",
940
+ "location": {
941
+ "filePath": "api-reference.ui.runtime.tsx",
942
+ "line": 65,
943
+ "character": 3
944
+ },
945
+ "signature": "(method) APIReferenceUI.registerAPINodeRenderer(apiNodeRenderers: APINodeRenderer[]): void",
946
+ "name": "registerAPINodeRenderer",
947
+ "params": [
948
+ {
949
+ "__schema": "ParameterSchema",
950
+ "location": {
951
+ "filePath": "api-reference.ui.runtime.tsx",
952
+ "line": 65,
953
+ "character": 27
954
+ },
955
+ "name": "apiNodeRenderers",
956
+ "type": {
957
+ "__schema": "TypeArraySchema",
958
+ "location": {
959
+ "filePath": "api-reference.ui.runtime.tsx",
960
+ "line": 65,
961
+ "character": 45
962
+ },
963
+ "type": {
964
+ "__schema": "TypeRefSchema",
965
+ "location": {
966
+ "filePath": "api-reference.ui.runtime.tsx",
967
+ "line": 65,
968
+ "character": 45
969
+ },
970
+ "name": "APINodeRenderer",
971
+ "componentId": {
972
+ "scope": "teambit.api-reference",
973
+ "name": "models/api-node-renderer",
974
+ "version": "0.0.25"
975
+ }
976
+ }
977
+ },
978
+ "isOptional": false,
979
+ "isSpread": false
980
+ }
981
+ ],
982
+ "returnType": {
983
+ "__schema": "InferenceTypeSchema",
984
+ "location": {
985
+ "filePath": "api-reference.ui.runtime.tsx",
986
+ "line": 65,
987
+ "character": 3
988
+ },
989
+ "type": "void"
990
+ },
991
+ "modifiers": []
992
+ },
993
+ {
994
+ "__schema": "VariableLikeSchema",
995
+ "location": {
996
+ "filePath": "api-reference.ui.runtime.tsx",
997
+ "line": 69,
998
+ "character": 3
999
+ },
1000
+ "signature": "(property) APIReferenceUI.apiNodeRenderers: APINodeRenderer[]",
1001
+ "name": "apiNodeRenderers",
1002
+ "type": {
1003
+ "__schema": "TypeArraySchema",
1004
+ "location": {
1005
+ "filePath": "api-reference.ui.runtime.tsx",
1006
+ "line": 69,
1007
+ "character": 21
1008
+ },
1009
+ "type": {
1010
+ "__schema": "TypeRefSchema",
1011
+ "location": {
1012
+ "filePath": "api-reference.ui.runtime.tsx",
1013
+ "line": 69,
1014
+ "character": 21
1015
+ },
1016
+ "name": "APINodeRenderer",
1017
+ "componentId": {
1018
+ "scope": "teambit.api-reference",
1019
+ "name": "models/api-node-renderer",
1020
+ "version": "0.0.25"
1021
+ }
1022
+ }
1023
+ },
1024
+ "isOptional": true,
1025
+ "defaultValue": "[\n classRenderer,\n typeRenderer,\n interfaceRenderer,\n variableRenderer,\n functionRenderer,\n enumRenderer,\n unresolvedRenderer,\n typeRefRenderer,\n typeIntersectionRenderer,\n typeUnionRenderer,\n parameterRenderer,\n typeLiteralRenderer,\n inferenceTypeRenderer,\n typeArrayRenderer,\n thisRenderer,\n decoratorRenderer,\n ]"
1026
+ },
1027
+ {
1028
+ "__schema": "FunctionLikeSchema",
1029
+ "location": {
1030
+ "filePath": "api-reference.ui.runtime.tsx",
1031
+ "line": 88,
1032
+ "character": 3
1033
+ },
1034
+ "signature": "(method) APIReferenceUI.provider([componentUI, codeUI]: [ComponentUI, CodeUI], _: any, [apiNodeRendererSlot]: [APINodeRendererSlot], harmony: Harmony): Promise<APIReferenceUI>",
1035
+ "name": "provider",
1036
+ "params": [
1037
+ {
1038
+ "__schema": "ParameterSchema",
1039
+ "location": {
1040
+ "filePath": "api-reference.ui.runtime.tsx",
1041
+ "line": 89,
1042
+ "character": 5
1043
+ },
1044
+ "name": "[ componentUI, codeUI ]",
1045
+ "type": {
1046
+ "__schema": "TupleTypeSchema",
1047
+ "location": {
1048
+ "filePath": "api-reference.ui.runtime.tsx",
1049
+ "line": 89,
1050
+ "character": 28
1051
+ },
1052
+ "elements": [
1053
+ {
1054
+ "__schema": "TypeRefSchema",
1055
+ "location": {
1056
+ "filePath": "api-reference.ui.runtime.tsx",
1057
+ "line": 89,
1058
+ "character": 29
1059
+ },
1060
+ "name": "ComponentUI",
1061
+ "componentId": {
1062
+ "scope": "teambit.component",
1063
+ "name": "component"
1064
+ }
1065
+ },
1066
+ {
1067
+ "__schema": "TypeRefSchema",
1068
+ "location": {
1069
+ "filePath": "api-reference.ui.runtime.tsx",
1070
+ "line": 89,
1071
+ "character": 42
1072
+ },
1073
+ "name": "CodeUI",
1074
+ "componentId": {
1075
+ "scope": "teambit.component",
1076
+ "name": "code"
1077
+ }
1078
+ }
1079
+ ]
1080
+ },
1081
+ "isOptional": false,
1082
+ "isSpread": false
1083
+ },
1084
+ {
1085
+ "__schema": "ParameterSchema",
1086
+ "location": {
1087
+ "filePath": "api-reference.ui.runtime.tsx",
1088
+ "line": 90,
1089
+ "character": 5
1090
+ },
1091
+ "name": "_",
1092
+ "type": {
1093
+ "__schema": "InferenceTypeSchema",
1094
+ "location": {
1095
+ "filePath": "api-reference.ui.runtime.tsx",
1096
+ "line": 90,
1097
+ "character": 5
1098
+ },
1099
+ "type": "any"
1100
+ },
1101
+ "isOptional": false,
1102
+ "isSpread": false
1103
+ },
1104
+ {
1105
+ "__schema": "ParameterSchema",
1106
+ "location": {
1107
+ "filePath": "api-reference.ui.runtime.tsx",
1108
+ "line": 91,
1109
+ "character": 5
1110
+ },
1111
+ "name": "[ apiNodeRendererSlot ]",
1112
+ "type": {
1113
+ "__schema": "TupleTypeSchema",
1114
+ "location": {
1115
+ "filePath": "api-reference.ui.runtime.tsx",
1116
+ "line": 91,
1117
+ "character": 28
1118
+ },
1119
+ "elements": [
1120
+ {
1121
+ "__schema": "TypeRefSchema",
1122
+ "location": {
1123
+ "filePath": "api-reference.ui.runtime.tsx",
1124
+ "line": 91,
1125
+ "character": 29
1126
+ },
1127
+ "name": "APINodeRendererSlot"
1128
+ }
1129
+ ]
1130
+ },
1131
+ "isOptional": false,
1132
+ "isSpread": false
1133
+ },
1134
+ {
1135
+ "__schema": "ParameterSchema",
1136
+ "location": {
1137
+ "filePath": "api-reference.ui.runtime.tsx",
1138
+ "line": 92,
1139
+ "character": 5
1140
+ },
1141
+ "name": "harmony",
1142
+ "type": {
1143
+ "__schema": "TypeRefSchema",
1144
+ "location": {
1145
+ "filePath": "api-reference.ui.runtime.tsx",
1146
+ "line": 92,
1147
+ "character": 14
1148
+ },
1149
+ "name": "Harmony",
1150
+ "componentId": {
1151
+ "scope": "teambit.harmony",
1152
+ "name": "harmony",
1153
+ "version": "0.4.6"
1154
+ }
1155
+ },
1156
+ "isOptional": false,
1157
+ "isSpread": false
1158
+ }
1159
+ ],
1160
+ "returnType": {
1161
+ "__schema": "InferenceTypeSchema",
1162
+ "location": {
1163
+ "filePath": "api-reference.ui.runtime.tsx",
1164
+ "line": 88,
1165
+ "character": 3
1166
+ },
1167
+ "type": "Promise<APIReferenceUI>"
1168
+ },
1169
+ "modifiers": [
1170
+ "static",
1171
+ "async"
1172
+ ]
1173
+ }
1174
+ ],
1175
+ "extendsNodes": [],
1176
+ "implementNodes": []
1177
+ },
1178
+ {
1179
+ "__schema": "UnImplementedSchema",
1180
+ "location": {
1181
+ "filePath": "api-reference.ui.runtime.tsx",
1182
+ "line": 109,
1183
+ "character": 16
1184
+ },
1185
+ "name": "APIReferenceUI",
1186
+ "type": "Identifier"
1187
+ }
1188
+ ],
1189
+ "internals": [
1190
+ {
1191
+ "__schema": "UnImplementedSchema",
1192
+ "location": {
1193
+ "filePath": "api-reference.ui.runtime.tsx",
1194
+ "line": 111,
1195
+ "character": 1
1196
+ },
1197
+ "name": "APIReferenceAspect.addRuntime(APIReferenceUI);",
1198
+ "type": "ExpressionStatement"
1199
+ }
1200
+ ]
1201
+ },
1202
+ {
1203
+ "__schema": "ModuleSchema",
1204
+ "location": {
1205
+ "filePath": "api-reference.aspect.ts",
1206
+ "line": 1,
1207
+ "character": 1
1208
+ },
1209
+ "exports": [
1210
+ {
1211
+ "__schema": "VariableLikeSchema",
1212
+ "location": {
1213
+ "filePath": "api-reference.aspect.ts",
1214
+ "line": 3,
1215
+ "character": 14
1216
+ },
1217
+ "signature": "const APIReferenceAspect: Aspect",
1218
+ "name": "APIReferenceAspect",
1219
+ "type": {
1220
+ "__schema": "TypeRefSchema",
1221
+ "location": {
1222
+ "filePath": "api-reference.aspect.ts",
1223
+ "line": 3,
1224
+ "character": 14
1225
+ },
1226
+ "name": "Aspect",
1227
+ "componentId": {
1228
+ "scope": "teambit.harmony",
1229
+ "name": "harmony",
1230
+ "version": "0.4.6"
1231
+ }
1232
+ },
1233
+ "isOptional": false,
1234
+ "defaultValue": "Aspect.create({\n id: 'teambit.api-reference/api-reference',\n})"
1235
+ },
1236
+ {
1237
+ "__schema": "UnImplementedSchema",
1238
+ "location": {
1239
+ "filePath": "api-reference.aspect.ts",
1240
+ "line": 7,
1241
+ "character": 16
1242
+ },
1243
+ "name": "APIReferenceAspect",
1244
+ "type": "Identifier"
1245
+ }
1246
+ ],
1247
+ "internals": []
1248
+ }
1249
+ ],
1250
+ "componentId": {
1251
+ "scope": "teambit.api-reference",
1252
+ "name": "api-reference",
1253
+ "version": "1.0.189"
1254
+ },
1255
+ "taggedModuleExports": []
1256
+ }