@teambit/ui-foundation.ui.side-bar 0.0.884 → 0.0.886

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