@teambit/ui-foundation.ui.side-bar 0.0.875 → 0.0.876

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