@teambit/api-reference 1.0.512 → 1.0.514

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