@teambit/component.ui.version-dropdown 0.0.853 → 0.0.854

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,3766 +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": "version-dropdown-placeholder.tsx",
20
- "line": 23,
21
- "character": 1
22
- },
23
- "signature": "function SimpleVersion({ currentVersion, className, disabled, hasMoreVersions, isTag, useCurrentVersionLog, showFullVersion, loading, ...rest }: VersionProps): React.JSX.Element",
24
- "name": "SimpleVersion",
25
- "props": {
26
- "__schema": "ParameterSchema",
27
- "location": {
28
- "filePath": "version-dropdown-placeholder.tsx",
29
- "line": 23,
30
- "character": 31
31
- },
32
- "name": "{ currentVersion, className, disabled, hasMoreVersions, isTag = (version) => semver.valid(version) !== null, useCurrentVersionLog, showFullVersion, loading, ...rest }",
33
- "type": {
34
- "__schema": "TypeRefSchema",
35
- "location": {
36
- "filePath": "version-dropdown-placeholder.tsx",
37
- "line": 34,
38
- "character": 4
39
- },
40
- "name": "VersionProps"
41
- },
42
- "isOptional": false,
43
- "objectBindingNodes": [
44
- {
45
- "__schema": "InferenceTypeSchema",
46
- "location": {
47
- "filePath": "version-dropdown-placeholder.tsx",
48
- "line": 24,
49
- "character": 3
50
- },
51
- "name": "currentVersion",
52
- "type": "string",
53
- "isSpread": false
54
- },
55
- {
56
- "__schema": "InferenceTypeSchema",
57
- "location": {
58
- "filePath": "version-dropdown-placeholder.tsx",
59
- "line": 25,
60
- "character": 3
61
- },
62
- "name": "className",
63
- "type": "string",
64
- "isSpread": false
65
- },
66
- {
67
- "__schema": "InferenceTypeSchema",
68
- "location": {
69
- "filePath": "version-dropdown-placeholder.tsx",
70
- "line": 26,
71
- "character": 3
72
- },
73
- "name": "disabled",
74
- "type": "boolean",
75
- "isSpread": false
76
- },
77
- {
78
- "__schema": "InferenceTypeSchema",
79
- "location": {
80
- "filePath": "version-dropdown-placeholder.tsx",
81
- "line": 27,
82
- "character": 3
83
- },
84
- "name": "hasMoreVersions",
85
- "type": "boolean",
86
- "isSpread": false
87
- },
88
- {
89
- "__schema": "InferenceTypeSchema",
90
- "location": {
91
- "filePath": "version-dropdown-placeholder.tsx",
92
- "line": 28,
93
- "character": 3
94
- },
95
- "name": "isTag",
96
- "type": "(version?: string) => boolean",
97
- "defaultValue": "(version) => semver.valid(version) !== null",
98
- "isSpread": false
99
- },
100
- {
101
- "__schema": "InferenceTypeSchema",
102
- "location": {
103
- "filePath": "version-dropdown-placeholder.tsx",
104
- "line": 30,
105
- "character": 3
106
- },
107
- "name": "useCurrentVersionLog",
108
- "type": "(props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion",
109
- "isSpread": false
110
- },
111
- {
112
- "__schema": "InferenceTypeSchema",
113
- "location": {
114
- "filePath": "version-dropdown-placeholder.tsx",
115
- "line": 31,
116
- "character": 3
117
- },
118
- "name": "showFullVersion",
119
- "type": "boolean",
120
- "isSpread": false
121
- },
122
- {
123
- "__schema": "InferenceTypeSchema",
124
- "location": {
125
- "filePath": "version-dropdown-placeholder.tsx",
126
- "line": 32,
127
- "character": 3
128
- },
129
- "name": "loading",
130
- "type": "boolean",
131
- "isSpread": false
132
- },
133
- {
134
- "__schema": "InferenceTypeSchema",
135
- "location": {
136
- "filePath": "version-dropdown-placeholder.tsx",
137
- "line": 33,
138
- "character": 6
139
- },
140
- "name": "rest",
141
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
142
- "isSpread": true
143
- }
144
- ],
145
- "isSpread": false
146
- },
147
- "returnType": {
148
- "__schema": "TypeRefSchema",
149
- "location": {
150
- "filePath": "version-dropdown-placeholder.tsx",
151
- "line": 23,
152
- "character": 1
153
- },
154
- "name": "React.JSX.Element",
155
- "packageName": "react"
156
- },
157
- "modifiers": [
158
- "export"
159
- ]
160
- },
161
- {
162
- "__schema": "ReactSchema",
163
- "location": {
164
- "filePath": "version-dropdown-placeholder.tsx",
165
- "line": 48,
166
- "character": 1
167
- },
168
- "signature": "function DetailedVersion({ currentVersion, className, disabled, hasMoreVersions, isTag, loading, useCurrentVersionLog, showFullVersion, ...rest }: VersionProps): React.JSX.Element",
169
- "name": "DetailedVersion",
170
- "props": {
171
- "__schema": "ParameterSchema",
172
- "location": {
173
- "filePath": "version-dropdown-placeholder.tsx",
174
- "line": 48,
175
- "character": 33
176
- },
177
- "name": "{ currentVersion, className, disabled, hasMoreVersions, isTag = (version) => semver.valid(version) !== null, loading, useCurrentVersionLog, showFullVersion, ...rest }",
178
- "type": {
179
- "__schema": "TypeRefSchema",
180
- "location": {
181
- "filePath": "version-dropdown-placeholder.tsx",
182
- "line": 58,
183
- "character": 4
184
- },
185
- "name": "VersionProps"
186
- },
187
- "isOptional": false,
188
- "objectBindingNodes": [
189
- {
190
- "__schema": "InferenceTypeSchema",
191
- "location": {
192
- "filePath": "version-dropdown-placeholder.tsx",
193
- "line": 49,
194
- "character": 3
195
- },
196
- "name": "currentVersion",
197
- "type": "string",
198
- "isSpread": false
199
- },
200
- {
201
- "__schema": "InferenceTypeSchema",
202
- "location": {
203
- "filePath": "version-dropdown-placeholder.tsx",
204
- "line": 50,
205
- "character": 3
206
- },
207
- "name": "className",
208
- "type": "string",
209
- "isSpread": false
210
- },
211
- {
212
- "__schema": "InferenceTypeSchema",
213
- "location": {
214
- "filePath": "version-dropdown-placeholder.tsx",
215
- "line": 51,
216
- "character": 3
217
- },
218
- "name": "disabled",
219
- "type": "boolean",
220
- "isSpread": false
221
- },
222
- {
223
- "__schema": "InferenceTypeSchema",
224
- "location": {
225
- "filePath": "version-dropdown-placeholder.tsx",
226
- "line": 52,
227
- "character": 3
228
- },
229
- "name": "hasMoreVersions",
230
- "type": "boolean",
231
- "isSpread": false
232
- },
233
- {
234
- "__schema": "InferenceTypeSchema",
235
- "location": {
236
- "filePath": "version-dropdown-placeholder.tsx",
237
- "line": 53,
238
- "character": 3
239
- },
240
- "name": "isTag",
241
- "type": "(version?: string) => boolean",
242
- "defaultValue": "(version) => semver.valid(version) !== null",
243
- "isSpread": false
244
- },
245
- {
246
- "__schema": "InferenceTypeSchema",
247
- "location": {
248
- "filePath": "version-dropdown-placeholder.tsx",
249
- "line": 54,
250
- "character": 3
251
- },
252
- "name": "loading",
253
- "type": "boolean",
254
- "isSpread": false
255
- },
256
- {
257
- "__schema": "InferenceTypeSchema",
258
- "location": {
259
- "filePath": "version-dropdown-placeholder.tsx",
260
- "line": 55,
261
- "character": 3
262
- },
263
- "name": "useCurrentVersionLog",
264
- "type": "(props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion",
265
- "isSpread": false
266
- },
267
- {
268
- "__schema": "InferenceTypeSchema",
269
- "location": {
270
- "filePath": "version-dropdown-placeholder.tsx",
271
- "line": 56,
272
- "character": 3
273
- },
274
- "name": "showFullVersion",
275
- "type": "boolean",
276
- "isSpread": false
277
- },
278
- {
279
- "__schema": "InferenceTypeSchema",
280
- "location": {
281
- "filePath": "version-dropdown-placeholder.tsx",
282
- "line": 57,
283
- "character": 6
284
- },
285
- "name": "rest",
286
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
287
- "isSpread": true
288
- }
289
- ],
290
- "isSpread": false
291
- },
292
- "returnType": {
293
- "__schema": "TypeRefSchema",
294
- "location": {
295
- "filePath": "version-dropdown-placeholder.tsx",
296
- "line": 48,
297
- "character": 1
298
- },
299
- "name": "React.JSX.Element",
300
- "packageName": "react"
301
- },
302
- "modifiers": [
303
- "export"
304
- ]
305
- },
306
- {
307
- "__schema": "TypeSchema",
308
- "location": {
309
- "filePath": "version-dropdown-placeholder.tsx",
310
- "line": 13,
311
- "character": 1
312
- },
313
- "signature": "type VersionProps = {\n currentVersion?: string;\n isTag?: (version?: string) => boolean;\n disabled?: boolean;\n hasMoreVersions?: boolean;\n showFullVersion?: boolean;\n loading?: boolean;\n useCurrentVersionLog?: (props: {\n skip?: boolean;\n version?: string;\n }) => DropdownComponentVersion | undefined;\n} & React.HTMLAttributes<HTMLDivElement>",
314
- "name": "VersionProps",
315
- "type": {
316
- "__schema": "TypeIntersectionSchema",
317
- "location": {
318
- "filePath": "version-dropdown-placeholder.tsx",
319
- "line": 13,
320
- "character": 28
321
- },
322
- "types": [
323
- {
324
- "__schema": "TypeLiteralSchema",
325
- "location": {
326
- "filePath": "version-dropdown-placeholder.tsx",
327
- "line": 13,
328
- "character": 28
329
- },
330
- "members": [
331
- {
332
- "__schema": "VariableLikeSchema",
333
- "location": {
334
- "filePath": "version-dropdown-placeholder.tsx",
335
- "line": 14,
336
- "character": 3
337
- },
338
- "signature": "(property) currentVersion?: string",
339
- "name": "currentVersion",
340
- "type": {
341
- "__schema": "KeywordTypeSchema",
342
- "location": {
343
- "filePath": "version-dropdown-placeholder.tsx",
344
- "line": 14,
345
- "character": 20
346
- },
347
- "name": "string"
348
- },
349
- "isOptional": true
350
- },
351
- {
352
- "__schema": "VariableLikeSchema",
353
- "location": {
354
- "filePath": "version-dropdown-placeholder.tsx",
355
- "line": 15,
356
- "character": 3
357
- },
358
- "signature": "(property) isTag?: (version?: string) => boolean",
359
- "name": "isTag",
360
- "type": {
361
- "__schema": "FunctionLikeSchema",
362
- "location": {
363
- "filePath": "version-dropdown-placeholder.tsx",
364
- "line": 15,
365
- "character": 11
366
- },
367
- "signature": "(version?: string): boolean",
368
- "name": "",
369
- "params": [
370
- {
371
- "__schema": "ParameterSchema",
372
- "location": {
373
- "filePath": "version-dropdown-placeholder.tsx",
374
- "line": 15,
375
- "character": 12
376
- },
377
- "name": "version",
378
- "type": {
379
- "__schema": "KeywordTypeSchema",
380
- "location": {
381
- "filePath": "version-dropdown-placeholder.tsx",
382
- "line": 15,
383
- "character": 22
384
- },
385
- "name": "string"
386
- },
387
- "isOptional": true,
388
- "isSpread": false
389
- }
390
- ],
391
- "returnType": {
392
- "__schema": "KeywordTypeSchema",
393
- "location": {
394
- "filePath": "version-dropdown-placeholder.tsx",
395
- "line": 15,
396
- "character": 33
397
- },
398
- "name": "boolean"
399
- },
400
- "modifiers": []
401
- },
402
- "isOptional": true
403
- },
404
- {
405
- "__schema": "VariableLikeSchema",
406
- "location": {
407
- "filePath": "version-dropdown-placeholder.tsx",
408
- "line": 16,
409
- "character": 3
410
- },
411
- "signature": "(property) disabled?: boolean",
412
- "name": "disabled",
413
- "type": {
414
- "__schema": "KeywordTypeSchema",
415
- "location": {
416
- "filePath": "version-dropdown-placeholder.tsx",
417
- "line": 16,
418
- "character": 14
419
- },
420
- "name": "boolean"
421
- },
422
- "isOptional": true
423
- },
424
- {
425
- "__schema": "VariableLikeSchema",
426
- "location": {
427
- "filePath": "version-dropdown-placeholder.tsx",
428
- "line": 17,
429
- "character": 3
430
- },
431
- "signature": "(property) hasMoreVersions?: boolean",
432
- "name": "hasMoreVersions",
433
- "type": {
434
- "__schema": "KeywordTypeSchema",
435
- "location": {
436
- "filePath": "version-dropdown-placeholder.tsx",
437
- "line": 17,
438
- "character": 21
439
- },
440
- "name": "boolean"
441
- },
442
- "isOptional": true
443
- },
444
- {
445
- "__schema": "VariableLikeSchema",
446
- "location": {
447
- "filePath": "version-dropdown-placeholder.tsx",
448
- "line": 18,
449
- "character": 3
450
- },
451
- "signature": "(property) showFullVersion?: boolean",
452
- "name": "showFullVersion",
453
- "type": {
454
- "__schema": "KeywordTypeSchema",
455
- "location": {
456
- "filePath": "version-dropdown-placeholder.tsx",
457
- "line": 18,
458
- "character": 21
459
- },
460
- "name": "boolean"
461
- },
462
- "isOptional": true
463
- },
464
- {
465
- "__schema": "VariableLikeSchema",
466
- "location": {
467
- "filePath": "version-dropdown-placeholder.tsx",
468
- "line": 19,
469
- "character": 3
470
- },
471
- "signature": "(property) loading?: boolean",
472
- "name": "loading",
473
- "type": {
474
- "__schema": "KeywordTypeSchema",
475
- "location": {
476
- "filePath": "version-dropdown-placeholder.tsx",
477
- "line": 19,
478
- "character": 13
479
- },
480
- "name": "boolean"
481
- },
482
- "isOptional": true
483
- },
484
- {
485
- "__schema": "VariableLikeSchema",
486
- "location": {
487
- "filePath": "version-dropdown-placeholder.tsx",
488
- "line": 20,
489
- "character": 3
490
- },
491
- "signature": "(property) useCurrentVersionLog?: (props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion | undefined",
492
- "name": "useCurrentVersionLog",
493
- "type": {
494
- "__schema": "FunctionLikeSchema",
495
- "location": {
496
- "filePath": "version-dropdown-placeholder.tsx",
497
- "line": 20,
498
- "character": 26
499
- },
500
- "signature": "(props: { \u001b[1mskip\u001b[22m?: boolean; \u001b[1mversion\u001b[22m?: string }): DropdownComponentVersion | undefined",
501
- "name": "",
502
- "params": [
503
- {
504
- "__schema": "ParameterSchema",
505
- "location": {
506
- "filePath": "version-dropdown-placeholder.tsx",
507
- "line": 20,
508
- "character": 27
509
- },
510
- "name": "props",
511
- "type": {
512
- "__schema": "TypeLiteralSchema",
513
- "location": {
514
- "filePath": "version-dropdown-placeholder.tsx",
515
- "line": 20,
516
- "character": 34
517
- },
518
- "members": [
519
- {
520
- "__schema": "VariableLikeSchema",
521
- "location": {
522
- "filePath": "version-dropdown-placeholder.tsx",
523
- "line": 20,
524
- "character": 36
525
- },
526
- "signature": "(property) skip?: boolean",
527
- "name": "skip",
528
- "type": {
529
- "__schema": "KeywordTypeSchema",
530
- "location": {
531
- "filePath": "version-dropdown-placeholder.tsx",
532
- "line": 20,
533
- "character": 43
534
- },
535
- "name": "boolean"
536
- },
537
- "isOptional": true
538
- },
539
- {
540
- "__schema": "VariableLikeSchema",
541
- "location": {
542
- "filePath": "version-dropdown-placeholder.tsx",
543
- "line": 20,
544
- "character": 52
545
- },
546
- "signature": "(property) version?: string",
547
- "name": "version",
548
- "type": {
549
- "__schema": "KeywordTypeSchema",
550
- "location": {
551
- "filePath": "version-dropdown-placeholder.tsx",
552
- "line": 20,
553
- "character": 62
554
- },
555
- "name": "string"
556
- },
557
- "isOptional": true
558
- }
559
- ]
560
- },
561
- "isOptional": false,
562
- "isSpread": false
563
- }
564
- ],
565
- "returnType": {
566
- "__schema": "TypeUnionSchema",
567
- "location": {
568
- "filePath": "version-dropdown-placeholder.tsx",
569
- "line": 20,
570
- "character": 75
571
- },
572
- "types": [
573
- {
574
- "__schema": "TypeRefSchema",
575
- "location": {
576
- "filePath": "version-dropdown-placeholder.tsx",
577
- "line": 20,
578
- "character": 75
579
- },
580
- "name": "DropdownComponentVersion"
581
- },
582
- {
583
- "__schema": "KeywordTypeSchema",
584
- "location": {
585
- "filePath": "version-dropdown-placeholder.tsx",
586
- "line": 20,
587
- "character": 102
588
- },
589
- "name": "undefined"
590
- }
591
- ]
592
- },
593
- "modifiers": []
594
- },
595
- "isOptional": true
596
- }
597
- ]
598
- },
599
- {
600
- "__schema": "TypeRefSchema",
601
- "location": {
602
- "filePath": "version-dropdown-placeholder.tsx",
603
- "line": 21,
604
- "character": 5
605
- },
606
- "name": "HTMLAttributes",
607
- "packageName": "react",
608
- "typeArgs": [
609
- {
610
- "__schema": "TypeRefSchema",
611
- "location": {
612
- "filePath": "version-dropdown-placeholder.tsx",
613
- "line": 21,
614
- "character": 20
615
- },
616
- "name": "HTMLDivElement"
617
- }
618
- ]
619
- }
620
- ]
621
- }
622
- },
623
- {
624
- "__schema": "VariableLikeSchema",
625
- "location": {
626
- "filePath": "version-dropdown.tsx",
627
- "line": 57,
628
- "character": 14
629
- },
630
- "signature": "const VersionDropdown: React.MemoExoticComponent<({ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }: VersionDropdownProps) => React.JSX.Element>",
631
- "name": "VersionDropdown",
632
- "type": {
633
- "__schema": "InferenceTypeSchema",
634
- "location": {
635
- "filePath": "version-dropdown.tsx",
636
- "line": 57,
637
- "character": 14
638
- },
639
- "type": "React.MemoExoticComponent<({ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }: VersionDropdownProps) => React.JSX.Element>"
640
- },
641
- "isOptional": false,
642
- "defaultValue": "React.memo(_VersionDropdown)"
643
- },
644
- {
645
- "__schema": "TypeSchema",
646
- "location": {
647
- "filePath": "version-dropdown.tsx",
648
- "line": 17,
649
- "character": 1
650
- },
651
- "signature": "type DropdownComponentVersion = Partial<LegacyComponentLog> & {\n version: string;\n}",
652
- "name": "DropdownComponentVersion",
653
- "type": {
654
- "__schema": "TypeIntersectionSchema",
655
- "location": {
656
- "filePath": "version-dropdown.tsx",
657
- "line": 17,
658
- "character": 40
659
- },
660
- "types": [
661
- {
662
- "__schema": "TypeRefSchema",
663
- "location": {
664
- "filePath": "version-dropdown.tsx",
665
- "line": 17,
666
- "character": 40
667
- },
668
- "name": "Partial",
669
- "typeArgs": [
670
- {
671
- "__schema": "TypeRefSchema",
672
- "location": {
673
- "filePath": "version-dropdown.tsx",
674
- "line": 17,
675
- "character": 48
676
- },
677
- "name": "LegacyComponentLog",
678
- "componentId": {
679
- "scope": "teambit.component",
680
- "name": "legacy-component-log",
681
- "version": "0.0.402"
682
- }
683
- }
684
- ]
685
- },
686
- {
687
- "__schema": "TypeLiteralSchema",
688
- "location": {
689
- "filePath": "version-dropdown.tsx",
690
- "line": 17,
691
- "character": 70
692
- },
693
- "members": [
694
- {
695
- "__schema": "VariableLikeSchema",
696
- "location": {
697
- "filePath": "version-dropdown.tsx",
698
- "line": 17,
699
- "character": 72
700
- },
701
- "signature": "(property) version: string",
702
- "name": "version",
703
- "type": {
704
- "__schema": "KeywordTypeSchema",
705
- "location": {
706
- "filePath": "version-dropdown.tsx",
707
- "line": 17,
708
- "character": 81
709
- },
710
- "name": "string"
711
- },
712
- "isOptional": false
713
- }
714
- ]
715
- }
716
- ]
717
- }
718
- },
719
- {
720
- "__schema": "TypeSchema",
721
- "location": {
722
- "filePath": "version-dropdown.tsx",
723
- "line": 30,
724
- "character": 1
725
- },
726
- "signature": "type GetActiveTabIndex = (currentVersion?: string, tabs?: Array<VersionMenuTab>, tags?: DropdownComponentVersion[], snaps?: DropdownComponentVersion[], currentLane?: LaneModel) => number",
727
- "name": "GetActiveTabIndex",
728
- "type": {
729
- "__schema": "FunctionLikeSchema",
730
- "location": {
731
- "filePath": "version-dropdown.tsx",
732
- "line": 30,
733
- "character": 33
734
- },
735
- "signature": "(currentVersion?: string, tabs?: Array<VersionMenuTab>, tags?: DropdownComponentVersion[], snaps?: DropdownComponentVersion[], currentLane?: \u001b[2m(component: teambit.lanes/ui/models/lanes-model)\u001b[22m LaneModel): number",
736
- "name": "",
737
- "params": [
738
- {
739
- "__schema": "ParameterSchema",
740
- "location": {
741
- "filePath": "version-dropdown.tsx",
742
- "line": 31,
743
- "character": 3
744
- },
745
- "name": "currentVersion",
746
- "type": {
747
- "__schema": "KeywordTypeSchema",
748
- "location": {
749
- "filePath": "version-dropdown.tsx",
750
- "line": 31,
751
- "character": 20
752
- },
753
- "name": "string"
754
- },
755
- "isOptional": true,
756
- "isSpread": false
757
- },
758
- {
759
- "__schema": "ParameterSchema",
760
- "location": {
761
- "filePath": "version-dropdown.tsx",
762
- "line": 32,
763
- "character": 3
764
- },
765
- "name": "tabs",
766
- "type": {
767
- "__schema": "TypeRefSchema",
768
- "location": {
769
- "filePath": "version-dropdown.tsx",
770
- "line": 32,
771
- "character": 10
772
- },
773
- "name": "Array",
774
- "typeArgs": [
775
- {
776
- "__schema": "TypeRefSchema",
777
- "location": {
778
- "filePath": "version-dropdown.tsx",
779
- "line": 32,
780
- "character": 16
781
- },
782
- "name": "VersionMenuTab",
783
- "internalFilePath": "version-dropdown.tsx"
784
- }
785
- ]
786
- },
787
- "isOptional": true,
788
- "isSpread": false
789
- },
790
- {
791
- "__schema": "ParameterSchema",
792
- "location": {
793
- "filePath": "version-dropdown.tsx",
794
- "line": 33,
795
- "character": 3
796
- },
797
- "name": "tags",
798
- "type": {
799
- "__schema": "TypeArraySchema",
800
- "location": {
801
- "filePath": "version-dropdown.tsx",
802
- "line": 33,
803
- "character": 10
804
- },
805
- "type": {
806
- "__schema": "TypeRefSchema",
807
- "location": {
808
- "filePath": "version-dropdown.tsx",
809
- "line": 33,
810
- "character": 10
811
- },
812
- "name": "DropdownComponentVersion"
813
- }
814
- },
815
- "isOptional": true,
816
- "isSpread": false
817
- },
818
- {
819
- "__schema": "ParameterSchema",
820
- "location": {
821
- "filePath": "version-dropdown.tsx",
822
- "line": 34,
823
- "character": 3
824
- },
825
- "name": "snaps",
826
- "type": {
827
- "__schema": "TypeArraySchema",
828
- "location": {
829
- "filePath": "version-dropdown.tsx",
830
- "line": 34,
831
- "character": 11
832
- },
833
- "type": {
834
- "__schema": "TypeRefSchema",
835
- "location": {
836
- "filePath": "version-dropdown.tsx",
837
- "line": 34,
838
- "character": 11
839
- },
840
- "name": "DropdownComponentVersion"
841
- }
842
- },
843
- "isOptional": true,
844
- "isSpread": false
845
- },
846
- {
847
- "__schema": "ParameterSchema",
848
- "location": {
849
- "filePath": "version-dropdown.tsx",
850
- "line": 35,
851
- "character": 3
852
- },
853
- "name": "currentLane",
854
- "type": {
855
- "__schema": "TypeRefSchema",
856
- "location": {
857
- "filePath": "version-dropdown.tsx",
858
- "line": 35,
859
- "character": 17
860
- },
861
- "name": "LaneModel",
862
- "componentId": {
863
- "scope": "teambit.lanes",
864
- "name": "ui/models/lanes-model",
865
- "version": "0.0.210"
866
- }
867
- },
868
- "isOptional": true,
869
- "isSpread": false
870
- }
871
- ],
872
- "returnType": {
873
- "__schema": "KeywordTypeSchema",
874
- "location": {
875
- "filePath": "version-dropdown.tsx",
876
- "line": 36,
877
- "character": 6
878
- },
879
- "name": "number"
880
- },
881
- "modifiers": []
882
- }
883
- }
884
- ],
885
- "internals": []
886
- },
887
- "internals": [
888
- {
889
- "__schema": "ModuleSchema",
890
- "location": {
891
- "filePath": "version-dropdown-placeholder.tsx",
892
- "line": 1,
893
- "character": 1
894
- },
895
- "exports": [
896
- {
897
- "__schema": "TypeSchema",
898
- "location": {
899
- "filePath": "version-dropdown-placeholder.tsx",
900
- "line": 13,
901
- "character": 1
902
- },
903
- "signature": "type VersionProps = {\n currentVersion?: string;\n isTag?: (version?: string) => boolean;\n disabled?: boolean;\n hasMoreVersions?: boolean;\n showFullVersion?: boolean;\n loading?: boolean;\n useCurrentVersionLog?: (props: {\n skip?: boolean;\n version?: string;\n }) => DropdownComponentVersion | undefined;\n} & React.HTMLAttributes<HTMLDivElement>",
904
- "name": "VersionProps",
905
- "type": {
906
- "__schema": "TypeIntersectionSchema",
907
- "location": {
908
- "filePath": "version-dropdown-placeholder.tsx",
909
- "line": 13,
910
- "character": 28
911
- },
912
- "types": [
913
- {
914
- "__schema": "TypeLiteralSchema",
915
- "location": {
916
- "filePath": "version-dropdown-placeholder.tsx",
917
- "line": 13,
918
- "character": 28
919
- },
920
- "members": [
921
- {
922
- "__schema": "VariableLikeSchema",
923
- "location": {
924
- "filePath": "version-dropdown-placeholder.tsx",
925
- "line": 14,
926
- "character": 3
927
- },
928
- "signature": "(property) currentVersion?: string",
929
- "name": "currentVersion",
930
- "type": {
931
- "__schema": "KeywordTypeSchema",
932
- "location": {
933
- "filePath": "version-dropdown-placeholder.tsx",
934
- "line": 14,
935
- "character": 20
936
- },
937
- "name": "string"
938
- },
939
- "isOptional": true
940
- },
941
- {
942
- "__schema": "VariableLikeSchema",
943
- "location": {
944
- "filePath": "version-dropdown-placeholder.tsx",
945
- "line": 15,
946
- "character": 3
947
- },
948
- "signature": "(property) isTag?: (version?: string) => boolean",
949
- "name": "isTag",
950
- "type": {
951
- "__schema": "FunctionLikeSchema",
952
- "location": {
953
- "filePath": "version-dropdown-placeholder.tsx",
954
- "line": 15,
955
- "character": 11
956
- },
957
- "signature": "(version?: string): boolean",
958
- "name": "",
959
- "params": [
960
- {
961
- "__schema": "ParameterSchema",
962
- "location": {
963
- "filePath": "version-dropdown-placeholder.tsx",
964
- "line": 15,
965
- "character": 12
966
- },
967
- "name": "version",
968
- "type": {
969
- "__schema": "KeywordTypeSchema",
970
- "location": {
971
- "filePath": "version-dropdown-placeholder.tsx",
972
- "line": 15,
973
- "character": 22
974
- },
975
- "name": "string"
976
- },
977
- "isOptional": true,
978
- "isSpread": false
979
- }
980
- ],
981
- "returnType": {
982
- "__schema": "KeywordTypeSchema",
983
- "location": {
984
- "filePath": "version-dropdown-placeholder.tsx",
985
- "line": 15,
986
- "character": 33
987
- },
988
- "name": "boolean"
989
- },
990
- "modifiers": []
991
- },
992
- "isOptional": true
993
- },
994
- {
995
- "__schema": "VariableLikeSchema",
996
- "location": {
997
- "filePath": "version-dropdown-placeholder.tsx",
998
- "line": 16,
999
- "character": 3
1000
- },
1001
- "signature": "(property) disabled?: boolean",
1002
- "name": "disabled",
1003
- "type": {
1004
- "__schema": "KeywordTypeSchema",
1005
- "location": {
1006
- "filePath": "version-dropdown-placeholder.tsx",
1007
- "line": 16,
1008
- "character": 14
1009
- },
1010
- "name": "boolean"
1011
- },
1012
- "isOptional": true
1013
- },
1014
- {
1015
- "__schema": "VariableLikeSchema",
1016
- "location": {
1017
- "filePath": "version-dropdown-placeholder.tsx",
1018
- "line": 17,
1019
- "character": 3
1020
- },
1021
- "signature": "(property) hasMoreVersions?: boolean",
1022
- "name": "hasMoreVersions",
1023
- "type": {
1024
- "__schema": "KeywordTypeSchema",
1025
- "location": {
1026
- "filePath": "version-dropdown-placeholder.tsx",
1027
- "line": 17,
1028
- "character": 21
1029
- },
1030
- "name": "boolean"
1031
- },
1032
- "isOptional": true
1033
- },
1034
- {
1035
- "__schema": "VariableLikeSchema",
1036
- "location": {
1037
- "filePath": "version-dropdown-placeholder.tsx",
1038
- "line": 18,
1039
- "character": 3
1040
- },
1041
- "signature": "(property) showFullVersion?: boolean",
1042
- "name": "showFullVersion",
1043
- "type": {
1044
- "__schema": "KeywordTypeSchema",
1045
- "location": {
1046
- "filePath": "version-dropdown-placeholder.tsx",
1047
- "line": 18,
1048
- "character": 21
1049
- },
1050
- "name": "boolean"
1051
- },
1052
- "isOptional": true
1053
- },
1054
- {
1055
- "__schema": "VariableLikeSchema",
1056
- "location": {
1057
- "filePath": "version-dropdown-placeholder.tsx",
1058
- "line": 19,
1059
- "character": 3
1060
- },
1061
- "signature": "(property) loading?: boolean",
1062
- "name": "loading",
1063
- "type": {
1064
- "__schema": "KeywordTypeSchema",
1065
- "location": {
1066
- "filePath": "version-dropdown-placeholder.tsx",
1067
- "line": 19,
1068
- "character": 13
1069
- },
1070
- "name": "boolean"
1071
- },
1072
- "isOptional": true
1073
- },
1074
- {
1075
- "__schema": "VariableLikeSchema",
1076
- "location": {
1077
- "filePath": "version-dropdown-placeholder.tsx",
1078
- "line": 20,
1079
- "character": 3
1080
- },
1081
- "signature": "(property) useCurrentVersionLog?: (props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion | undefined",
1082
- "name": "useCurrentVersionLog",
1083
- "type": {
1084
- "__schema": "FunctionLikeSchema",
1085
- "location": {
1086
- "filePath": "version-dropdown-placeholder.tsx",
1087
- "line": 20,
1088
- "character": 26
1089
- },
1090
- "signature": "(props: { \u001b[1mskip\u001b[22m?: boolean; \u001b[1mversion\u001b[22m?: string }): DropdownComponentVersion | undefined",
1091
- "name": "",
1092
- "params": [
1093
- {
1094
- "__schema": "ParameterSchema",
1095
- "location": {
1096
- "filePath": "version-dropdown-placeholder.tsx",
1097
- "line": 20,
1098
- "character": 27
1099
- },
1100
- "name": "props",
1101
- "type": {
1102
- "__schema": "TypeLiteralSchema",
1103
- "location": {
1104
- "filePath": "version-dropdown-placeholder.tsx",
1105
- "line": 20,
1106
- "character": 34
1107
- },
1108
- "members": [
1109
- {
1110
- "__schema": "VariableLikeSchema",
1111
- "location": {
1112
- "filePath": "version-dropdown-placeholder.tsx",
1113
- "line": 20,
1114
- "character": 36
1115
- },
1116
- "signature": "(property) skip?: boolean",
1117
- "name": "skip",
1118
- "type": {
1119
- "__schema": "KeywordTypeSchema",
1120
- "location": {
1121
- "filePath": "version-dropdown-placeholder.tsx",
1122
- "line": 20,
1123
- "character": 43
1124
- },
1125
- "name": "boolean"
1126
- },
1127
- "isOptional": true
1128
- },
1129
- {
1130
- "__schema": "VariableLikeSchema",
1131
- "location": {
1132
- "filePath": "version-dropdown-placeholder.tsx",
1133
- "line": 20,
1134
- "character": 52
1135
- },
1136
- "signature": "(property) version?: string",
1137
- "name": "version",
1138
- "type": {
1139
- "__schema": "KeywordTypeSchema",
1140
- "location": {
1141
- "filePath": "version-dropdown-placeholder.tsx",
1142
- "line": 20,
1143
- "character": 62
1144
- },
1145
- "name": "string"
1146
- },
1147
- "isOptional": true
1148
- }
1149
- ]
1150
- },
1151
- "isOptional": false,
1152
- "isSpread": false
1153
- }
1154
- ],
1155
- "returnType": {
1156
- "__schema": "TypeUnionSchema",
1157
- "location": {
1158
- "filePath": "version-dropdown-placeholder.tsx",
1159
- "line": 20,
1160
- "character": 75
1161
- },
1162
- "types": [
1163
- {
1164
- "__schema": "TypeRefSchema",
1165
- "location": {
1166
- "filePath": "version-dropdown-placeholder.tsx",
1167
- "line": 20,
1168
- "character": 75
1169
- },
1170
- "name": "DropdownComponentVersion"
1171
- },
1172
- {
1173
- "__schema": "KeywordTypeSchema",
1174
- "location": {
1175
- "filePath": "version-dropdown-placeholder.tsx",
1176
- "line": 20,
1177
- "character": 102
1178
- },
1179
- "name": "undefined"
1180
- }
1181
- ]
1182
- },
1183
- "modifiers": []
1184
- },
1185
- "isOptional": true
1186
- }
1187
- ]
1188
- },
1189
- {
1190
- "__schema": "TypeRefSchema",
1191
- "location": {
1192
- "filePath": "version-dropdown-placeholder.tsx",
1193
- "line": 21,
1194
- "character": 5
1195
- },
1196
- "name": "HTMLAttributes",
1197
- "packageName": "react",
1198
- "typeArgs": [
1199
- {
1200
- "__schema": "TypeRefSchema",
1201
- "location": {
1202
- "filePath": "version-dropdown-placeholder.tsx",
1203
- "line": 21,
1204
- "character": 20
1205
- },
1206
- "name": "HTMLDivElement"
1207
- }
1208
- ]
1209
- }
1210
- ]
1211
- }
1212
- },
1213
- {
1214
- "__schema": "ReactSchema",
1215
- "location": {
1216
- "filePath": "version-dropdown-placeholder.tsx",
1217
- "line": 23,
1218
- "character": 1
1219
- },
1220
- "signature": "function SimpleVersion({ currentVersion, className, disabled, hasMoreVersions, isTag, useCurrentVersionLog, showFullVersion, loading, ...rest }: VersionProps): React.JSX.Element",
1221
- "name": "SimpleVersion",
1222
- "props": {
1223
- "__schema": "ParameterSchema",
1224
- "location": {
1225
- "filePath": "version-dropdown-placeholder.tsx",
1226
- "line": 23,
1227
- "character": 31
1228
- },
1229
- "name": "{ currentVersion, className, disabled, hasMoreVersions, isTag = (version) => semver.valid(version) !== null, useCurrentVersionLog, showFullVersion, loading, ...rest }",
1230
- "type": {
1231
- "__schema": "TypeRefSchema",
1232
- "location": {
1233
- "filePath": "version-dropdown-placeholder.tsx",
1234
- "line": 34,
1235
- "character": 4
1236
- },
1237
- "name": "VersionProps"
1238
- },
1239
- "isOptional": false,
1240
- "objectBindingNodes": [
1241
- {
1242
- "__schema": "InferenceTypeSchema",
1243
- "location": {
1244
- "filePath": "version-dropdown-placeholder.tsx",
1245
- "line": 24,
1246
- "character": 3
1247
- },
1248
- "name": "currentVersion",
1249
- "type": "string",
1250
- "isSpread": false
1251
- },
1252
- {
1253
- "__schema": "InferenceTypeSchema",
1254
- "location": {
1255
- "filePath": "version-dropdown-placeholder.tsx",
1256
- "line": 25,
1257
- "character": 3
1258
- },
1259
- "name": "className",
1260
- "type": "string",
1261
- "isSpread": false
1262
- },
1263
- {
1264
- "__schema": "InferenceTypeSchema",
1265
- "location": {
1266
- "filePath": "version-dropdown-placeholder.tsx",
1267
- "line": 26,
1268
- "character": 3
1269
- },
1270
- "name": "disabled",
1271
- "type": "boolean",
1272
- "isSpread": false
1273
- },
1274
- {
1275
- "__schema": "InferenceTypeSchema",
1276
- "location": {
1277
- "filePath": "version-dropdown-placeholder.tsx",
1278
- "line": 27,
1279
- "character": 3
1280
- },
1281
- "name": "hasMoreVersions",
1282
- "type": "boolean",
1283
- "isSpread": false
1284
- },
1285
- {
1286
- "__schema": "InferenceTypeSchema",
1287
- "location": {
1288
- "filePath": "version-dropdown-placeholder.tsx",
1289
- "line": 28,
1290
- "character": 3
1291
- },
1292
- "name": "isTag",
1293
- "type": "(version?: string) => boolean",
1294
- "defaultValue": "(version) => semver.valid(version) !== null",
1295
- "isSpread": false
1296
- },
1297
- {
1298
- "__schema": "InferenceTypeSchema",
1299
- "location": {
1300
- "filePath": "version-dropdown-placeholder.tsx",
1301
- "line": 30,
1302
- "character": 3
1303
- },
1304
- "name": "useCurrentVersionLog",
1305
- "type": "(props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion",
1306
- "isSpread": false
1307
- },
1308
- {
1309
- "__schema": "InferenceTypeSchema",
1310
- "location": {
1311
- "filePath": "version-dropdown-placeholder.tsx",
1312
- "line": 31,
1313
- "character": 3
1314
- },
1315
- "name": "showFullVersion",
1316
- "type": "boolean",
1317
- "isSpread": false
1318
- },
1319
- {
1320
- "__schema": "InferenceTypeSchema",
1321
- "location": {
1322
- "filePath": "version-dropdown-placeholder.tsx",
1323
- "line": 32,
1324
- "character": 3
1325
- },
1326
- "name": "loading",
1327
- "type": "boolean",
1328
- "isSpread": false
1329
- },
1330
- {
1331
- "__schema": "InferenceTypeSchema",
1332
- "location": {
1333
- "filePath": "version-dropdown-placeholder.tsx",
1334
- "line": 33,
1335
- "character": 6
1336
- },
1337
- "name": "rest",
1338
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
1339
- "isSpread": true
1340
- }
1341
- ],
1342
- "isSpread": false
1343
- },
1344
- "returnType": {
1345
- "__schema": "TypeRefSchema",
1346
- "location": {
1347
- "filePath": "version-dropdown-placeholder.tsx",
1348
- "line": 23,
1349
- "character": 1
1350
- },
1351
- "name": "React.JSX.Element",
1352
- "packageName": "react"
1353
- },
1354
- "modifiers": [
1355
- "export"
1356
- ]
1357
- },
1358
- {
1359
- "__schema": "ReactSchema",
1360
- "location": {
1361
- "filePath": "version-dropdown-placeholder.tsx",
1362
- "line": 48,
1363
- "character": 1
1364
- },
1365
- "signature": "function DetailedVersion({ currentVersion, className, disabled, hasMoreVersions, isTag, loading, useCurrentVersionLog, showFullVersion, ...rest }: VersionProps): React.JSX.Element",
1366
- "name": "DetailedVersion",
1367
- "props": {
1368
- "__schema": "ParameterSchema",
1369
- "location": {
1370
- "filePath": "version-dropdown-placeholder.tsx",
1371
- "line": 48,
1372
- "character": 33
1373
- },
1374
- "name": "{ currentVersion, className, disabled, hasMoreVersions, isTag = (version) => semver.valid(version) !== null, loading, useCurrentVersionLog, showFullVersion, ...rest }",
1375
- "type": {
1376
- "__schema": "TypeRefSchema",
1377
- "location": {
1378
- "filePath": "version-dropdown-placeholder.tsx",
1379
- "line": 58,
1380
- "character": 4
1381
- },
1382
- "name": "VersionProps"
1383
- },
1384
- "isOptional": false,
1385
- "objectBindingNodes": [
1386
- {
1387
- "__schema": "InferenceTypeSchema",
1388
- "location": {
1389
- "filePath": "version-dropdown-placeholder.tsx",
1390
- "line": 49,
1391
- "character": 3
1392
- },
1393
- "name": "currentVersion",
1394
- "type": "string",
1395
- "isSpread": false
1396
- },
1397
- {
1398
- "__schema": "InferenceTypeSchema",
1399
- "location": {
1400
- "filePath": "version-dropdown-placeholder.tsx",
1401
- "line": 50,
1402
- "character": 3
1403
- },
1404
- "name": "className",
1405
- "type": "string",
1406
- "isSpread": false
1407
- },
1408
- {
1409
- "__schema": "InferenceTypeSchema",
1410
- "location": {
1411
- "filePath": "version-dropdown-placeholder.tsx",
1412
- "line": 51,
1413
- "character": 3
1414
- },
1415
- "name": "disabled",
1416
- "type": "boolean",
1417
- "isSpread": false
1418
- },
1419
- {
1420
- "__schema": "InferenceTypeSchema",
1421
- "location": {
1422
- "filePath": "version-dropdown-placeholder.tsx",
1423
- "line": 52,
1424
- "character": 3
1425
- },
1426
- "name": "hasMoreVersions",
1427
- "type": "boolean",
1428
- "isSpread": false
1429
- },
1430
- {
1431
- "__schema": "InferenceTypeSchema",
1432
- "location": {
1433
- "filePath": "version-dropdown-placeholder.tsx",
1434
- "line": 53,
1435
- "character": 3
1436
- },
1437
- "name": "isTag",
1438
- "type": "(version?: string) => boolean",
1439
- "defaultValue": "(version) => semver.valid(version) !== null",
1440
- "isSpread": false
1441
- },
1442
- {
1443
- "__schema": "InferenceTypeSchema",
1444
- "location": {
1445
- "filePath": "version-dropdown-placeholder.tsx",
1446
- "line": 54,
1447
- "character": 3
1448
- },
1449
- "name": "loading",
1450
- "type": "boolean",
1451
- "isSpread": false
1452
- },
1453
- {
1454
- "__schema": "InferenceTypeSchema",
1455
- "location": {
1456
- "filePath": "version-dropdown-placeholder.tsx",
1457
- "line": 55,
1458
- "character": 3
1459
- },
1460
- "name": "useCurrentVersionLog",
1461
- "type": "(props: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion",
1462
- "isSpread": false
1463
- },
1464
- {
1465
- "__schema": "InferenceTypeSchema",
1466
- "location": {
1467
- "filePath": "version-dropdown-placeholder.tsx",
1468
- "line": 56,
1469
- "character": 3
1470
- },
1471
- "name": "showFullVersion",
1472
- "type": "boolean",
1473
- "isSpread": false
1474
- },
1475
- {
1476
- "__schema": "InferenceTypeSchema",
1477
- "location": {
1478
- "filePath": "version-dropdown-placeholder.tsx",
1479
- "line": 57,
1480
- "character": 6
1481
- },
1482
- "name": "rest",
1483
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
1484
- "isSpread": true
1485
- }
1486
- ],
1487
- "isSpread": false
1488
- },
1489
- "returnType": {
1490
- "__schema": "TypeRefSchema",
1491
- "location": {
1492
- "filePath": "version-dropdown-placeholder.tsx",
1493
- "line": 48,
1494
- "character": 1
1495
- },
1496
- "name": "React.JSX.Element",
1497
- "packageName": "react"
1498
- },
1499
- "modifiers": [
1500
- "export"
1501
- ]
1502
- }
1503
- ],
1504
- "internals": [
1505
- {
1506
- "__schema": "FunctionLikeSchema",
1507
- "location": {
1508
- "filePath": "version-dropdown-placeholder.tsx",
1509
- "line": 96,
1510
- "character": 1
1511
- },
1512
- "signature": "function commitMessage(message?: string, onClick?: React.MouseEventHandler<HTMLDivElement> | undefined): React.JSX.Element",
1513
- "name": "commitMessage",
1514
- "params": [
1515
- {
1516
- "__schema": "ParameterSchema",
1517
- "location": {
1518
- "filePath": "version-dropdown-placeholder.tsx",
1519
- "line": 96,
1520
- "character": 24
1521
- },
1522
- "name": "message",
1523
- "type": {
1524
- "__schema": "KeywordTypeSchema",
1525
- "location": {
1526
- "filePath": "version-dropdown-placeholder.tsx",
1527
- "line": 96,
1528
- "character": 34
1529
- },
1530
- "name": "string"
1531
- },
1532
- "isOptional": true,
1533
- "isSpread": false
1534
- },
1535
- {
1536
- "__schema": "ParameterSchema",
1537
- "location": {
1538
- "filePath": "version-dropdown-placeholder.tsx",
1539
- "line": 96,
1540
- "character": 42
1541
- },
1542
- "name": "onClick",
1543
- "type": {
1544
- "__schema": "TypeUnionSchema",
1545
- "location": {
1546
- "filePath": "version-dropdown-placeholder.tsx",
1547
- "line": 96,
1548
- "character": 52
1549
- },
1550
- "types": [
1551
- {
1552
- "__schema": "TypeRefSchema",
1553
- "location": {
1554
- "filePath": "version-dropdown-placeholder.tsx",
1555
- "line": 96,
1556
- "character": 52
1557
- },
1558
- "name": "React.MouseEventHandler",
1559
- "typeArgs": [
1560
- {
1561
- "__schema": "TypeRefSchema",
1562
- "location": {
1563
- "filePath": "version-dropdown-placeholder.tsx",
1564
- "line": 96,
1565
- "character": 76
1566
- },
1567
- "name": "HTMLDivElement"
1568
- }
1569
- ]
1570
- },
1571
- {
1572
- "__schema": "KeywordTypeSchema",
1573
- "location": {
1574
- "filePath": "version-dropdown-placeholder.tsx",
1575
- "line": 96,
1576
- "character": 94
1577
- },
1578
- "name": "undefined"
1579
- }
1580
- ]
1581
- },
1582
- "isOptional": true,
1583
- "isSpread": false
1584
- }
1585
- ],
1586
- "returnType": {
1587
- "__schema": "InferenceTypeSchema",
1588
- "location": {
1589
- "filePath": "version-dropdown-placeholder.tsx",
1590
- "line": 96,
1591
- "character": 1
1592
- },
1593
- "type": "React.JSX.Element"
1594
- },
1595
- "modifiers": []
1596
- }
1597
- ]
1598
- },
1599
- {
1600
- "__schema": "ModuleSchema",
1601
- "location": {
1602
- "filePath": "version-dropdown.tsx",
1603
- "line": 1,
1604
- "character": 1
1605
- },
1606
- "exports": [
1607
- {
1608
- "__schema": "VariableLikeSchema",
1609
- "location": {
1610
- "filePath": "version-dropdown.tsx",
1611
- "line": 15,
1612
- "character": 14
1613
- },
1614
- "signature": "const LOCAL_VERSION: \"workspace\"",
1615
- "name": "LOCAL_VERSION",
1616
- "type": {
1617
- "__schema": "InferenceTypeSchema",
1618
- "location": {
1619
- "filePath": "version-dropdown.tsx",
1620
- "line": 15,
1621
- "character": 14
1622
- },
1623
- "type": "\"workspace\""
1624
- },
1625
- "isOptional": false,
1626
- "defaultValue": "'workspace'"
1627
- },
1628
- {
1629
- "__schema": "TypeSchema",
1630
- "location": {
1631
- "filePath": "version-dropdown.tsx",
1632
- "line": 17,
1633
- "character": 1
1634
- },
1635
- "signature": "type DropdownComponentVersion = Partial<LegacyComponentLog> & {\n version: string;\n}",
1636
- "name": "DropdownComponentVersion",
1637
- "type": {
1638
- "__schema": "TypeIntersectionSchema",
1639
- "location": {
1640
- "filePath": "version-dropdown.tsx",
1641
- "line": 17,
1642
- "character": 40
1643
- },
1644
- "types": [
1645
- {
1646
- "__schema": "TypeRefSchema",
1647
- "location": {
1648
- "filePath": "version-dropdown.tsx",
1649
- "line": 17,
1650
- "character": 40
1651
- },
1652
- "name": "Partial",
1653
- "typeArgs": [
1654
- {
1655
- "__schema": "TypeRefSchema",
1656
- "location": {
1657
- "filePath": "version-dropdown.tsx",
1658
- "line": 17,
1659
- "character": 48
1660
- },
1661
- "name": "LegacyComponentLog",
1662
- "componentId": {
1663
- "scope": "teambit.component",
1664
- "name": "legacy-component-log",
1665
- "version": "0.0.402"
1666
- }
1667
- }
1668
- ]
1669
- },
1670
- {
1671
- "__schema": "TypeLiteralSchema",
1672
- "location": {
1673
- "filePath": "version-dropdown.tsx",
1674
- "line": 17,
1675
- "character": 70
1676
- },
1677
- "members": [
1678
- {
1679
- "__schema": "VariableLikeSchema",
1680
- "location": {
1681
- "filePath": "version-dropdown.tsx",
1682
- "line": 17,
1683
- "character": 72
1684
- },
1685
- "signature": "(property) version: string",
1686
- "name": "version",
1687
- "type": {
1688
- "__schema": "KeywordTypeSchema",
1689
- "location": {
1690
- "filePath": "version-dropdown.tsx",
1691
- "line": 17,
1692
- "character": 81
1693
- },
1694
- "name": "string"
1695
- },
1696
- "isOptional": false
1697
- }
1698
- ]
1699
- }
1700
- ]
1701
- }
1702
- },
1703
- {
1704
- "__schema": "TypeSchema",
1705
- "location": {
1706
- "filePath": "version-dropdown.tsx",
1707
- "line": 19,
1708
- "character": 1
1709
- },
1710
- "signature": "type UseComponentDropdownVersionsResult = {\n tags?: DropdownComponentVersion[];\n snaps?: DropdownComponentVersion[];\n loading?: boolean;\n}",
1711
- "name": "UseComponentDropdownVersionsResult",
1712
- "type": {
1713
- "__schema": "TypeLiteralSchema",
1714
- "location": {
1715
- "filePath": "version-dropdown.tsx",
1716
- "line": 19,
1717
- "character": 50
1718
- },
1719
- "members": [
1720
- {
1721
- "__schema": "VariableLikeSchema",
1722
- "location": {
1723
- "filePath": "version-dropdown.tsx",
1724
- "line": 20,
1725
- "character": 3
1726
- },
1727
- "signature": "(property) tags?: DropdownComponentVersion[]",
1728
- "name": "tags",
1729
- "type": {
1730
- "__schema": "TypeArraySchema",
1731
- "location": {
1732
- "filePath": "version-dropdown.tsx",
1733
- "line": 20,
1734
- "character": 10
1735
- },
1736
- "type": {
1737
- "__schema": "TypeRefSchema",
1738
- "location": {
1739
- "filePath": "version-dropdown.tsx",
1740
- "line": 20,
1741
- "character": 10
1742
- },
1743
- "name": "DropdownComponentVersion"
1744
- }
1745
- },
1746
- "isOptional": true
1747
- },
1748
- {
1749
- "__schema": "VariableLikeSchema",
1750
- "location": {
1751
- "filePath": "version-dropdown.tsx",
1752
- "line": 21,
1753
- "character": 3
1754
- },
1755
- "signature": "(property) snaps?: DropdownComponentVersion[]",
1756
- "name": "snaps",
1757
- "type": {
1758
- "__schema": "TypeArraySchema",
1759
- "location": {
1760
- "filePath": "version-dropdown.tsx",
1761
- "line": 21,
1762
- "character": 11
1763
- },
1764
- "type": {
1765
- "__schema": "TypeRefSchema",
1766
- "location": {
1767
- "filePath": "version-dropdown.tsx",
1768
- "line": 21,
1769
- "character": 11
1770
- },
1771
- "name": "DropdownComponentVersion"
1772
- }
1773
- },
1774
- "isOptional": true
1775
- },
1776
- {
1777
- "__schema": "VariableLikeSchema",
1778
- "location": {
1779
- "filePath": "version-dropdown.tsx",
1780
- "line": 22,
1781
- "character": 3
1782
- },
1783
- "signature": "(property) loading?: boolean",
1784
- "name": "loading",
1785
- "type": {
1786
- "__schema": "KeywordTypeSchema",
1787
- "location": {
1788
- "filePath": "version-dropdown.tsx",
1789
- "line": 22,
1790
- "character": 13
1791
- },
1792
- "name": "boolean"
1793
- },
1794
- "isOptional": true
1795
- }
1796
- ]
1797
- }
1798
- },
1799
- {
1800
- "__schema": "TypeSchema",
1801
- "location": {
1802
- "filePath": "version-dropdown.tsx",
1803
- "line": 24,
1804
- "character": 1
1805
- },
1806
- "signature": "type UseComponentDropdownVersionsProps = {\n skip?: boolean;\n}",
1807
- "name": "UseComponentDropdownVersionsProps",
1808
- "type": {
1809
- "__schema": "TypeLiteralSchema",
1810
- "location": {
1811
- "filePath": "version-dropdown.tsx",
1812
- "line": 24,
1813
- "character": 49
1814
- },
1815
- "members": [
1816
- {
1817
- "__schema": "VariableLikeSchema",
1818
- "location": {
1819
- "filePath": "version-dropdown.tsx",
1820
- "line": 25,
1821
- "character": 3
1822
- },
1823
- "signature": "(property) skip?: boolean",
1824
- "name": "skip",
1825
- "type": {
1826
- "__schema": "KeywordTypeSchema",
1827
- "location": {
1828
- "filePath": "version-dropdown.tsx",
1829
- "line": 25,
1830
- "character": 10
1831
- },
1832
- "name": "boolean"
1833
- },
1834
- "isOptional": true
1835
- }
1836
- ]
1837
- }
1838
- },
1839
- {
1840
- "__schema": "TypeSchema",
1841
- "location": {
1842
- "filePath": "version-dropdown.tsx",
1843
- "line": 27,
1844
- "character": 1
1845
- },
1846
- "signature": "type UseComponentDropdownVersions = (props?: UseComponentDropdownVersionsProps) => UseComponentDropdownVersionsResult",
1847
- "name": "UseComponentDropdownVersions",
1848
- "type": {
1849
- "__schema": "FunctionLikeSchema",
1850
- "location": {
1851
- "filePath": "version-dropdown.tsx",
1852
- "line": 27,
1853
- "character": 44
1854
- },
1855
- "signature": "(props?: UseComponentDropdownVersionsProps): UseComponentDropdownVersionsResult",
1856
- "name": "",
1857
- "params": [
1858
- {
1859
- "__schema": "ParameterSchema",
1860
- "location": {
1861
- "filePath": "version-dropdown.tsx",
1862
- "line": 28,
1863
- "character": 3
1864
- },
1865
- "name": "props",
1866
- "type": {
1867
- "__schema": "TypeRefSchema",
1868
- "location": {
1869
- "filePath": "version-dropdown.tsx",
1870
- "line": 28,
1871
- "character": 11
1872
- },
1873
- "name": "UseComponentDropdownVersionsProps",
1874
- "internalFilePath": "version-dropdown.tsx"
1875
- },
1876
- "isOptional": true,
1877
- "isSpread": false
1878
- }
1879
- ],
1880
- "returnType": {
1881
- "__schema": "TypeRefSchema",
1882
- "location": {
1883
- "filePath": "version-dropdown.tsx",
1884
- "line": 29,
1885
- "character": 6
1886
- },
1887
- "name": "UseComponentDropdownVersionsResult",
1888
- "internalFilePath": "version-dropdown.tsx"
1889
- },
1890
- "modifiers": []
1891
- }
1892
- },
1893
- {
1894
- "__schema": "TypeSchema",
1895
- "location": {
1896
- "filePath": "version-dropdown.tsx",
1897
- "line": 30,
1898
- "character": 1
1899
- },
1900
- "signature": "type GetActiveTabIndex = (currentVersion?: string, tabs?: Array<VersionMenuTab>, tags?: DropdownComponentVersion[], snaps?: DropdownComponentVersion[], currentLane?: LaneModel) => number",
1901
- "name": "GetActiveTabIndex",
1902
- "type": {
1903
- "__schema": "FunctionLikeSchema",
1904
- "location": {
1905
- "filePath": "version-dropdown.tsx",
1906
- "line": 30,
1907
- "character": 33
1908
- },
1909
- "signature": "(currentVersion?: string, tabs?: Array<VersionMenuTab>, tags?: DropdownComponentVersion[], snaps?: DropdownComponentVersion[], currentLane?: \u001b[2m(component: teambit.lanes/ui/models/lanes-model)\u001b[22m LaneModel): number",
1910
- "name": "",
1911
- "params": [
1912
- {
1913
- "__schema": "ParameterSchema",
1914
- "location": {
1915
- "filePath": "version-dropdown.tsx",
1916
- "line": 31,
1917
- "character": 3
1918
- },
1919
- "name": "currentVersion",
1920
- "type": {
1921
- "__schema": "KeywordTypeSchema",
1922
- "location": {
1923
- "filePath": "version-dropdown.tsx",
1924
- "line": 31,
1925
- "character": 20
1926
- },
1927
- "name": "string"
1928
- },
1929
- "isOptional": true,
1930
- "isSpread": false
1931
- },
1932
- {
1933
- "__schema": "ParameterSchema",
1934
- "location": {
1935
- "filePath": "version-dropdown.tsx",
1936
- "line": 32,
1937
- "character": 3
1938
- },
1939
- "name": "tabs",
1940
- "type": {
1941
- "__schema": "TypeRefSchema",
1942
- "location": {
1943
- "filePath": "version-dropdown.tsx",
1944
- "line": 32,
1945
- "character": 10
1946
- },
1947
- "name": "Array",
1948
- "typeArgs": [
1949
- {
1950
- "__schema": "TypeRefSchema",
1951
- "location": {
1952
- "filePath": "version-dropdown.tsx",
1953
- "line": 32,
1954
- "character": 16
1955
- },
1956
- "name": "VersionMenuTab",
1957
- "internalFilePath": "version-dropdown.tsx"
1958
- }
1959
- ]
1960
- },
1961
- "isOptional": true,
1962
- "isSpread": false
1963
- },
1964
- {
1965
- "__schema": "ParameterSchema",
1966
- "location": {
1967
- "filePath": "version-dropdown.tsx",
1968
- "line": 33,
1969
- "character": 3
1970
- },
1971
- "name": "tags",
1972
- "type": {
1973
- "__schema": "TypeArraySchema",
1974
- "location": {
1975
- "filePath": "version-dropdown.tsx",
1976
- "line": 33,
1977
- "character": 10
1978
- },
1979
- "type": {
1980
- "__schema": "TypeRefSchema",
1981
- "location": {
1982
- "filePath": "version-dropdown.tsx",
1983
- "line": 33,
1984
- "character": 10
1985
- },
1986
- "name": "DropdownComponentVersion"
1987
- }
1988
- },
1989
- "isOptional": true,
1990
- "isSpread": false
1991
- },
1992
- {
1993
- "__schema": "ParameterSchema",
1994
- "location": {
1995
- "filePath": "version-dropdown.tsx",
1996
- "line": 34,
1997
- "character": 3
1998
- },
1999
- "name": "snaps",
2000
- "type": {
2001
- "__schema": "TypeArraySchema",
2002
- "location": {
2003
- "filePath": "version-dropdown.tsx",
2004
- "line": 34,
2005
- "character": 11
2006
- },
2007
- "type": {
2008
- "__schema": "TypeRefSchema",
2009
- "location": {
2010
- "filePath": "version-dropdown.tsx",
2011
- "line": 34,
2012
- "character": 11
2013
- },
2014
- "name": "DropdownComponentVersion"
2015
- }
2016
- },
2017
- "isOptional": true,
2018
- "isSpread": false
2019
- },
2020
- {
2021
- "__schema": "ParameterSchema",
2022
- "location": {
2023
- "filePath": "version-dropdown.tsx",
2024
- "line": 35,
2025
- "character": 3
2026
- },
2027
- "name": "currentLane",
2028
- "type": {
2029
- "__schema": "TypeRefSchema",
2030
- "location": {
2031
- "filePath": "version-dropdown.tsx",
2032
- "line": 35,
2033
- "character": 17
2034
- },
2035
- "name": "LaneModel",
2036
- "componentId": {
2037
- "scope": "teambit.lanes",
2038
- "name": "ui/models/lanes-model",
2039
- "version": "0.0.210"
2040
- }
2041
- },
2042
- "isOptional": true,
2043
- "isSpread": false
2044
- }
2045
- ],
2046
- "returnType": {
2047
- "__schema": "KeywordTypeSchema",
2048
- "location": {
2049
- "filePath": "version-dropdown.tsx",
2050
- "line": 36,
2051
- "character": 6
2052
- },
2053
- "name": "number"
2054
- },
2055
- "modifiers": []
2056
- }
2057
- },
2058
- {
2059
- "__schema": "TypeSchema",
2060
- "location": {
2061
- "filePath": "version-dropdown.tsx",
2062
- "line": 37,
2063
- "character": 1
2064
- },
2065
- "signature": "type VersionDropdownProps = {\n localVersion?: boolean;\n latestVersion?: string;\n currentVersion: string;\n useCurrentVersionLog?: (props?: {\n skip?: boolean;\n version?: string;\n }) => DropdownComponentVersion | undefined;\n hasMoreVersions?: boolean;\n loading?: boolean;\n useComponentVersions?: UseComponentDropdownVersions;\n currentLane?: LaneModel;\n lanes?: LaneModel[];\n getActiveTabIndex?: GetActiveTabIndex;\n overrideVersionHref?: (version: string) => string;\n ... 5 more ...;\n PlaceholderComponent?: React.ComponentType<VersionProps>;\n} & React.HTMLAttributes<...>",
2066
- "name": "VersionDropdownProps",
2067
- "type": {
2068
- "__schema": "TypeIntersectionSchema",
2069
- "location": {
2070
- "filePath": "version-dropdown.tsx",
2071
- "line": 37,
2072
- "character": 36
2073
- },
2074
- "types": [
2075
- {
2076
- "__schema": "TypeLiteralSchema",
2077
- "location": {
2078
- "filePath": "version-dropdown.tsx",
2079
- "line": 37,
2080
- "character": 36
2081
- },
2082
- "members": [
2083
- {
2084
- "__schema": "VariableLikeSchema",
2085
- "location": {
2086
- "filePath": "version-dropdown.tsx",
2087
- "line": 38,
2088
- "character": 3
2089
- },
2090
- "signature": "(property) localVersion?: boolean",
2091
- "name": "localVersion",
2092
- "type": {
2093
- "__schema": "KeywordTypeSchema",
2094
- "location": {
2095
- "filePath": "version-dropdown.tsx",
2096
- "line": 38,
2097
- "character": 18
2098
- },
2099
- "name": "boolean"
2100
- },
2101
- "isOptional": true
2102
- },
2103
- {
2104
- "__schema": "VariableLikeSchema",
2105
- "location": {
2106
- "filePath": "version-dropdown.tsx",
2107
- "line": 39,
2108
- "character": 3
2109
- },
2110
- "signature": "(property) latestVersion?: string",
2111
- "name": "latestVersion",
2112
- "type": {
2113
- "__schema": "KeywordTypeSchema",
2114
- "location": {
2115
- "filePath": "version-dropdown.tsx",
2116
- "line": 39,
2117
- "character": 19
2118
- },
2119
- "name": "string"
2120
- },
2121
- "isOptional": true
2122
- },
2123
- {
2124
- "__schema": "VariableLikeSchema",
2125
- "location": {
2126
- "filePath": "version-dropdown.tsx",
2127
- "line": 40,
2128
- "character": 3
2129
- },
2130
- "signature": "(property) currentVersion: string",
2131
- "name": "currentVersion",
2132
- "type": {
2133
- "__schema": "KeywordTypeSchema",
2134
- "location": {
2135
- "filePath": "version-dropdown.tsx",
2136
- "line": 40,
2137
- "character": 19
2138
- },
2139
- "name": "string"
2140
- },
2141
- "isOptional": false
2142
- },
2143
- {
2144
- "__schema": "VariableLikeSchema",
2145
- "location": {
2146
- "filePath": "version-dropdown.tsx",
2147
- "line": 41,
2148
- "character": 3
2149
- },
2150
- "signature": "(property) useCurrentVersionLog?: (props?: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion | undefined",
2151
- "name": "useCurrentVersionLog",
2152
- "type": {
2153
- "__schema": "FunctionLikeSchema",
2154
- "location": {
2155
- "filePath": "version-dropdown.tsx",
2156
- "line": 41,
2157
- "character": 26
2158
- },
2159
- "signature": "(props?: { \u001b[1mskip\u001b[22m?: boolean; \u001b[1mversion\u001b[22m?: string }): DropdownComponentVersion | undefined",
2160
- "name": "",
2161
- "params": [
2162
- {
2163
- "__schema": "ParameterSchema",
2164
- "location": {
2165
- "filePath": "version-dropdown.tsx",
2166
- "line": 41,
2167
- "character": 27
2168
- },
2169
- "name": "props",
2170
- "type": {
2171
- "__schema": "TypeLiteralSchema",
2172
- "location": {
2173
- "filePath": "version-dropdown.tsx",
2174
- "line": 41,
2175
- "character": 35
2176
- },
2177
- "members": [
2178
- {
2179
- "__schema": "VariableLikeSchema",
2180
- "location": {
2181
- "filePath": "version-dropdown.tsx",
2182
- "line": 41,
2183
- "character": 37
2184
- },
2185
- "signature": "(property) skip?: boolean",
2186
- "name": "skip",
2187
- "type": {
2188
- "__schema": "KeywordTypeSchema",
2189
- "location": {
2190
- "filePath": "version-dropdown.tsx",
2191
- "line": 41,
2192
- "character": 44
2193
- },
2194
- "name": "boolean"
2195
- },
2196
- "isOptional": true
2197
- },
2198
- {
2199
- "__schema": "VariableLikeSchema",
2200
- "location": {
2201
- "filePath": "version-dropdown.tsx",
2202
- "line": 41,
2203
- "character": 53
2204
- },
2205
- "signature": "(property) version?: string",
2206
- "name": "version",
2207
- "type": {
2208
- "__schema": "KeywordTypeSchema",
2209
- "location": {
2210
- "filePath": "version-dropdown.tsx",
2211
- "line": 41,
2212
- "character": 63
2213
- },
2214
- "name": "string"
2215
- },
2216
- "isOptional": true
2217
- }
2218
- ]
2219
- },
2220
- "isOptional": true,
2221
- "isSpread": false
2222
- }
2223
- ],
2224
- "returnType": {
2225
- "__schema": "TypeUnionSchema",
2226
- "location": {
2227
- "filePath": "version-dropdown.tsx",
2228
- "line": 41,
2229
- "character": 76
2230
- },
2231
- "types": [
2232
- {
2233
- "__schema": "TypeRefSchema",
2234
- "location": {
2235
- "filePath": "version-dropdown.tsx",
2236
- "line": 41,
2237
- "character": 76
2238
- },
2239
- "name": "DropdownComponentVersion"
2240
- },
2241
- {
2242
- "__schema": "KeywordTypeSchema",
2243
- "location": {
2244
- "filePath": "version-dropdown.tsx",
2245
- "line": 41,
2246
- "character": 103
2247
- },
2248
- "name": "undefined"
2249
- }
2250
- ]
2251
- },
2252
- "modifiers": []
2253
- },
2254
- "isOptional": true
2255
- },
2256
- {
2257
- "__schema": "VariableLikeSchema",
2258
- "location": {
2259
- "filePath": "version-dropdown.tsx",
2260
- "line": 42,
2261
- "character": 3
2262
- },
2263
- "signature": "(property) hasMoreVersions?: boolean",
2264
- "name": "hasMoreVersions",
2265
- "type": {
2266
- "__schema": "KeywordTypeSchema",
2267
- "location": {
2268
- "filePath": "version-dropdown.tsx",
2269
- "line": 42,
2270
- "character": 21
2271
- },
2272
- "name": "boolean"
2273
- },
2274
- "isOptional": true
2275
- },
2276
- {
2277
- "__schema": "VariableLikeSchema",
2278
- "location": {
2279
- "filePath": "version-dropdown.tsx",
2280
- "line": 43,
2281
- "character": 3
2282
- },
2283
- "signature": "(property) loading?: boolean",
2284
- "name": "loading",
2285
- "type": {
2286
- "__schema": "KeywordTypeSchema",
2287
- "location": {
2288
- "filePath": "version-dropdown.tsx",
2289
- "line": 43,
2290
- "character": 13
2291
- },
2292
- "name": "boolean"
2293
- },
2294
- "isOptional": true
2295
- },
2296
- {
2297
- "__schema": "VariableLikeSchema",
2298
- "location": {
2299
- "filePath": "version-dropdown.tsx",
2300
- "line": 44,
2301
- "character": 3
2302
- },
2303
- "signature": "(property) useComponentVersions?: UseComponentDropdownVersions",
2304
- "name": "useComponentVersions",
2305
- "type": {
2306
- "__schema": "TypeRefSchema",
2307
- "location": {
2308
- "filePath": "version-dropdown.tsx",
2309
- "line": 44,
2310
- "character": 3
2311
- },
2312
- "name": "UseComponentDropdownVersions",
2313
- "internalFilePath": "version-dropdown.tsx"
2314
- },
2315
- "isOptional": true
2316
- },
2317
- {
2318
- "__schema": "VariableLikeSchema",
2319
- "location": {
2320
- "filePath": "version-dropdown.tsx",
2321
- "line": 45,
2322
- "character": 3
2323
- },
2324
- "signature": "(property) currentLane?: LaneModel",
2325
- "name": "currentLane",
2326
- "type": {
2327
- "__schema": "TypeRefSchema",
2328
- "location": {
2329
- "filePath": "version-dropdown.tsx",
2330
- "line": 45,
2331
- "character": 3
2332
- },
2333
- "name": "LaneModel",
2334
- "componentId": {
2335
- "scope": "teambit.lanes",
2336
- "name": "ui/models/lanes-model",
2337
- "version": "0.0.210"
2338
- }
2339
- },
2340
- "isOptional": true
2341
- },
2342
- {
2343
- "__schema": "VariableLikeSchema",
2344
- "location": {
2345
- "filePath": "version-dropdown.tsx",
2346
- "line": 46,
2347
- "character": 3
2348
- },
2349
- "signature": "(property) lanes?: LaneModel[]",
2350
- "name": "lanes",
2351
- "type": {
2352
- "__schema": "TypeArraySchema",
2353
- "location": {
2354
- "filePath": "version-dropdown.tsx",
2355
- "line": 46,
2356
- "character": 11
2357
- },
2358
- "type": {
2359
- "__schema": "TypeRefSchema",
2360
- "location": {
2361
- "filePath": "version-dropdown.tsx",
2362
- "line": 46,
2363
- "character": 11
2364
- },
2365
- "name": "LaneModel",
2366
- "componentId": {
2367
- "scope": "teambit.lanes",
2368
- "name": "ui/models/lanes-model",
2369
- "version": "0.0.210"
2370
- }
2371
- }
2372
- },
2373
- "isOptional": true
2374
- },
2375
- {
2376
- "__schema": "VariableLikeSchema",
2377
- "location": {
2378
- "filePath": "version-dropdown.tsx",
2379
- "line": 47,
2380
- "character": 3
2381
- },
2382
- "signature": "(property) getActiveTabIndex?: GetActiveTabIndex",
2383
- "name": "getActiveTabIndex",
2384
- "type": {
2385
- "__schema": "TypeRefSchema",
2386
- "location": {
2387
- "filePath": "version-dropdown.tsx",
2388
- "line": 47,
2389
- "character": 3
2390
- },
2391
- "name": "GetActiveTabIndex"
2392
- },
2393
- "isOptional": true
2394
- },
2395
- {
2396
- "__schema": "VariableLikeSchema",
2397
- "location": {
2398
- "filePath": "version-dropdown.tsx",
2399
- "line": 48,
2400
- "character": 3
2401
- },
2402
- "signature": "(property) overrideVersionHref?: (version: string) => string",
2403
- "name": "overrideVersionHref",
2404
- "type": {
2405
- "__schema": "FunctionLikeSchema",
2406
- "location": {
2407
- "filePath": "version-dropdown.tsx",
2408
- "line": 48,
2409
- "character": 25
2410
- },
2411
- "signature": "(version: string): string",
2412
- "name": "",
2413
- "params": [
2414
- {
2415
- "__schema": "ParameterSchema",
2416
- "location": {
2417
- "filePath": "version-dropdown.tsx",
2418
- "line": 48,
2419
- "character": 26
2420
- },
2421
- "name": "version",
2422
- "type": {
2423
- "__schema": "KeywordTypeSchema",
2424
- "location": {
2425
- "filePath": "version-dropdown.tsx",
2426
- "line": 48,
2427
- "character": 35
2428
- },
2429
- "name": "string"
2430
- },
2431
- "isOptional": false,
2432
- "isSpread": false
2433
- }
2434
- ],
2435
- "returnType": {
2436
- "__schema": "KeywordTypeSchema",
2437
- "location": {
2438
- "filePath": "version-dropdown.tsx",
2439
- "line": 48,
2440
- "character": 46
2441
- },
2442
- "name": "string"
2443
- },
2444
- "modifiers": []
2445
- },
2446
- "isOptional": true
2447
- },
2448
- {
2449
- "__schema": "VariableLikeSchema",
2450
- "location": {
2451
- "filePath": "version-dropdown.tsx",
2452
- "line": 49,
2453
- "character": 3
2454
- },
2455
- "signature": "(property) placeholderClassName?: string",
2456
- "name": "placeholderClassName",
2457
- "type": {
2458
- "__schema": "KeywordTypeSchema",
2459
- "location": {
2460
- "filePath": "version-dropdown.tsx",
2461
- "line": 49,
2462
- "character": 26
2463
- },
2464
- "name": "string"
2465
- },
2466
- "isOptional": true
2467
- },
2468
- {
2469
- "__schema": "VariableLikeSchema",
2470
- "location": {
2471
- "filePath": "version-dropdown.tsx",
2472
- "line": 50,
2473
- "character": 3
2474
- },
2475
- "signature": "(property) dropdownClassName?: string",
2476
- "name": "dropdownClassName",
2477
- "type": {
2478
- "__schema": "KeywordTypeSchema",
2479
- "location": {
2480
- "filePath": "version-dropdown.tsx",
2481
- "line": 50,
2482
- "character": 23
2483
- },
2484
- "name": "string"
2485
- },
2486
- "isOptional": true
2487
- },
2488
- {
2489
- "__schema": "VariableLikeSchema",
2490
- "location": {
2491
- "filePath": "version-dropdown.tsx",
2492
- "line": 51,
2493
- "character": 3
2494
- },
2495
- "signature": "(property) menuClassName?: string",
2496
- "name": "menuClassName",
2497
- "type": {
2498
- "__schema": "KeywordTypeSchema",
2499
- "location": {
2500
- "filePath": "version-dropdown.tsx",
2501
- "line": 51,
2502
- "character": 19
2503
- },
2504
- "name": "string"
2505
- },
2506
- "isOptional": true
2507
- },
2508
- {
2509
- "__schema": "VariableLikeSchema",
2510
- "location": {
2511
- "filePath": "version-dropdown.tsx",
2512
- "line": 52,
2513
- "character": 3
2514
- },
2515
- "signature": "(property) showVersionDetails?: boolean",
2516
- "name": "showVersionDetails",
2517
- "type": {
2518
- "__schema": "KeywordTypeSchema",
2519
- "location": {
2520
- "filePath": "version-dropdown.tsx",
2521
- "line": 52,
2522
- "character": 24
2523
- },
2524
- "name": "boolean"
2525
- },
2526
- "isOptional": true
2527
- },
2528
- {
2529
- "__schema": "VariableLikeSchema",
2530
- "location": {
2531
- "filePath": "version-dropdown.tsx",
2532
- "line": 53,
2533
- "character": 3
2534
- },
2535
- "signature": "(property) disabled?: boolean",
2536
- "name": "disabled",
2537
- "type": {
2538
- "__schema": "KeywordTypeSchema",
2539
- "location": {
2540
- "filePath": "version-dropdown.tsx",
2541
- "line": 53,
2542
- "character": 14
2543
- },
2544
- "name": "boolean"
2545
- },
2546
- "isOptional": true
2547
- },
2548
- {
2549
- "__schema": "VariableLikeSchema",
2550
- "location": {
2551
- "filePath": "version-dropdown.tsx",
2552
- "line": 54,
2553
- "character": 3
2554
- },
2555
- "signature": "(property) PlaceholderComponent?: React.ComponentType<VersionProps>",
2556
- "name": "PlaceholderComponent",
2557
- "type": {
2558
- "__schema": "TypeRefSchema",
2559
- "location": {
2560
- "filePath": "version-dropdown.tsx",
2561
- "line": 54,
2562
- "character": 26
2563
- },
2564
- "name": "React.ComponentType",
2565
- "typeArgs": [
2566
- {
2567
- "__schema": "TypeRefSchema",
2568
- "location": {
2569
- "filePath": "version-dropdown.tsx",
2570
- "line": 54,
2571
- "character": 46
2572
- },
2573
- "name": "VersionProps"
2574
- }
2575
- ]
2576
- },
2577
- "isOptional": true
2578
- }
2579
- ]
2580
- },
2581
- {
2582
- "__schema": "TypeRefSchema",
2583
- "location": {
2584
- "filePath": "version-dropdown.tsx",
2585
- "line": 55,
2586
- "character": 5
2587
- },
2588
- "name": "React.HTMLAttributes",
2589
- "typeArgs": [
2590
- {
2591
- "__schema": "TypeRefSchema",
2592
- "location": {
2593
- "filePath": "version-dropdown.tsx",
2594
- "line": 55,
2595
- "character": 26
2596
- },
2597
- "name": "HTMLDivElement"
2598
- }
2599
- ]
2600
- }
2601
- ]
2602
- }
2603
- },
2604
- {
2605
- "__schema": "VariableLikeSchema",
2606
- "location": {
2607
- "filePath": "version-dropdown.tsx",
2608
- "line": 57,
2609
- "character": 14
2610
- },
2611
- "signature": "const VersionDropdown: React.MemoExoticComponent<({ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }: VersionDropdownProps) => React.JSX.Element>",
2612
- "name": "VersionDropdown",
2613
- "type": {
2614
- "__schema": "InferenceTypeSchema",
2615
- "location": {
2616
- "filePath": "version-dropdown.tsx",
2617
- "line": 57,
2618
- "character": 14
2619
- },
2620
- "type": "React.MemoExoticComponent<({ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }: VersionDropdownProps) => React.JSX.Element>"
2621
- },
2622
- "isOptional": false,
2623
- "defaultValue": "React.memo(_VersionDropdown)"
2624
- },
2625
- {
2626
- "__schema": "TypeSchema",
2627
- "location": {
2628
- "filePath": "version-dropdown.tsx",
2629
- "line": 178,
2630
- "character": 1
2631
- },
2632
- "signature": "type VersionMenuTab = {\n name: 'SNAP';\n payload: DropdownComponentVersion[];\n} | {\n name: 'LANE';\n payload: LaneModel[];\n} | {\n name: 'TAG';\n payload: DropdownComponentVersion[];\n}",
2633
- "name": "VersionMenuTab",
2634
- "type": {
2635
- "__schema": "TypeUnionSchema",
2636
- "location": {
2637
- "filePath": "version-dropdown.tsx",
2638
- "line": 179,
2639
- "character": 3
2640
- },
2641
- "types": [
2642
- {
2643
- "__schema": "TypeLiteralSchema",
2644
- "location": {
2645
- "filePath": "version-dropdown.tsx",
2646
- "line": 179,
2647
- "character": 5
2648
- },
2649
- "members": [
2650
- {
2651
- "__schema": "VariableLikeSchema",
2652
- "location": {
2653
- "filePath": "version-dropdown.tsx",
2654
- "line": 180,
2655
- "character": 7
2656
- },
2657
- "signature": "(property) name: \"SNAP\"",
2658
- "name": "name",
2659
- "type": {
2660
- "__schema": "LiteralTypeSchema",
2661
- "location": {
2662
- "filePath": "version-dropdown.tsx",
2663
- "line": 180,
2664
- "character": 13
2665
- },
2666
- "name": "'SNAP'"
2667
- },
2668
- "isOptional": false
2669
- },
2670
- {
2671
- "__schema": "VariableLikeSchema",
2672
- "location": {
2673
- "filePath": "version-dropdown.tsx",
2674
- "line": 181,
2675
- "character": 7
2676
- },
2677
- "signature": "(property) payload: DropdownComponentVersion[]",
2678
- "name": "payload",
2679
- "type": {
2680
- "__schema": "TypeArraySchema",
2681
- "location": {
2682
- "filePath": "version-dropdown.tsx",
2683
- "line": 181,
2684
- "character": 16
2685
- },
2686
- "type": {
2687
- "__schema": "TypeRefSchema",
2688
- "location": {
2689
- "filePath": "version-dropdown.tsx",
2690
- "line": 181,
2691
- "character": 16
2692
- },
2693
- "name": "DropdownComponentVersion"
2694
- }
2695
- },
2696
- "isOptional": false
2697
- }
2698
- ]
2699
- },
2700
- {
2701
- "__schema": "TypeLiteralSchema",
2702
- "location": {
2703
- "filePath": "version-dropdown.tsx",
2704
- "line": 183,
2705
- "character": 5
2706
- },
2707
- "members": [
2708
- {
2709
- "__schema": "VariableLikeSchema",
2710
- "location": {
2711
- "filePath": "version-dropdown.tsx",
2712
- "line": 184,
2713
- "character": 7
2714
- },
2715
- "signature": "(property) name: \"LANE\"",
2716
- "name": "name",
2717
- "type": {
2718
- "__schema": "LiteralTypeSchema",
2719
- "location": {
2720
- "filePath": "version-dropdown.tsx",
2721
- "line": 184,
2722
- "character": 13
2723
- },
2724
- "name": "'LANE'"
2725
- },
2726
- "isOptional": false
2727
- },
2728
- {
2729
- "__schema": "VariableLikeSchema",
2730
- "location": {
2731
- "filePath": "version-dropdown.tsx",
2732
- "line": 185,
2733
- "character": 7
2734
- },
2735
- "signature": "(property) payload: LaneModel[]",
2736
- "name": "payload",
2737
- "type": {
2738
- "__schema": "TypeArraySchema",
2739
- "location": {
2740
- "filePath": "version-dropdown.tsx",
2741
- "line": 185,
2742
- "character": 16
2743
- },
2744
- "type": {
2745
- "__schema": "TypeRefSchema",
2746
- "location": {
2747
- "filePath": "version-dropdown.tsx",
2748
- "line": 185,
2749
- "character": 16
2750
- },
2751
- "name": "LaneModel",
2752
- "componentId": {
2753
- "scope": "teambit.lanes",
2754
- "name": "ui/models/lanes-model",
2755
- "version": "0.0.210"
2756
- }
2757
- }
2758
- },
2759
- "isOptional": false
2760
- }
2761
- ]
2762
- },
2763
- {
2764
- "__schema": "TypeLiteralSchema",
2765
- "location": {
2766
- "filePath": "version-dropdown.tsx",
2767
- "line": 187,
2768
- "character": 5
2769
- },
2770
- "members": [
2771
- {
2772
- "__schema": "VariableLikeSchema",
2773
- "location": {
2774
- "filePath": "version-dropdown.tsx",
2775
- "line": 188,
2776
- "character": 7
2777
- },
2778
- "signature": "(property) name: \"TAG\"",
2779
- "name": "name",
2780
- "type": {
2781
- "__schema": "LiteralTypeSchema",
2782
- "location": {
2783
- "filePath": "version-dropdown.tsx",
2784
- "line": 188,
2785
- "character": 13
2786
- },
2787
- "name": "'TAG'"
2788
- },
2789
- "isOptional": false
2790
- },
2791
- {
2792
- "__schema": "VariableLikeSchema",
2793
- "location": {
2794
- "filePath": "version-dropdown.tsx",
2795
- "line": 189,
2796
- "character": 7
2797
- },
2798
- "signature": "(property) payload: DropdownComponentVersion[]",
2799
- "name": "payload",
2800
- "type": {
2801
- "__schema": "TypeArraySchema",
2802
- "location": {
2803
- "filePath": "version-dropdown.tsx",
2804
- "line": 189,
2805
- "character": 16
2806
- },
2807
- "type": {
2808
- "__schema": "TypeRefSchema",
2809
- "location": {
2810
- "filePath": "version-dropdown.tsx",
2811
- "line": 189,
2812
- "character": 16
2813
- },
2814
- "name": "DropdownComponentVersion"
2815
- }
2816
- },
2817
- "isOptional": false
2818
- }
2819
- ]
2820
- }
2821
- ]
2822
- }
2823
- }
2824
- ],
2825
- "internals": [
2826
- {
2827
- "__schema": "ModuleSchema",
2828
- "location": {
2829
- "filePath": "version-dropdown.tsx",
2830
- "line": 58,
2831
- "character": 1
2832
- },
2833
- "exports": [
2834
- {
2835
- "__schema": "VariableLikeSchema",
2836
- "location": {
2837
- "filePath": "version-dropdown.tsx",
2838
- "line": 58,
2839
- "character": 7
2840
- },
2841
- "signature": "const VersionMenu: React.MemoExoticComponent<({ currentVersion, localVersion, latestVersion, overrideVersionHref, showVersionDetails, useVersions, currentLane, lanes, getActiveTabIndex, loading: loadingFromProps, open, ...rest }: VersionMenuProps) => React.JSX.Element>",
2842
- "name": "VersionMenu",
2843
- "type": {
2844
- "__schema": "InferenceTypeSchema",
2845
- "location": {
2846
- "filePath": "version-dropdown.tsx",
2847
- "line": 58,
2848
- "character": 7
2849
- },
2850
- "type": "React.MemoExoticComponent<({ currentVersion, localVersion, latestVersion, overrideVersionHref, showVersionDetails, useVersions, currentLane, lanes, getActiveTabIndex, loading: loadingFromProps, open, ...rest }: VersionMenuProps) => React.JSX.Element>"
2851
- },
2852
- "isOptional": false,
2853
- "defaultValue": "React.memo(_VersionMenu)"
2854
- }
2855
- ],
2856
- "internals": []
2857
- },
2858
- {
2859
- "__schema": "ReactSchema",
2860
- "location": {
2861
- "filePath": "version-dropdown.tsx",
2862
- "line": 59,
2863
- "character": 1
2864
- },
2865
- "signature": "function _VersionDropdown({ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }: VersionDropdownProps): React.JSX.Element",
2866
- "name": "_VersionDropdown",
2867
- "props": {
2868
- "__schema": "ParameterSchema",
2869
- "location": {
2870
- "filePath": "version-dropdown.tsx",
2871
- "line": 59,
2872
- "character": 27
2873
- },
2874
- "name": "{ currentVersion, latestVersion, localVersion, useCurrentVersionLog, hasMoreVersions, loading, overrideVersionHref, className, placeholderClassName, getActiveTabIndex, dropdownClassName, menuClassName, showVersionDetails = true, disabled, PlaceholderComponent: _PlaceholderComponent, currentLane, useComponentVersions, lanes, ...rest }",
2875
- "type": {
2876
- "__schema": "TypeRefSchema",
2877
- "location": {
2878
- "filePath": "version-dropdown.tsx",
2879
- "line": 79,
2880
- "character": 4
2881
- },
2882
- "name": "VersionDropdownProps",
2883
- "internalFilePath": "version-dropdown.tsx"
2884
- },
2885
- "isOptional": false,
2886
- "objectBindingNodes": [
2887
- {
2888
- "__schema": "InferenceTypeSchema",
2889
- "location": {
2890
- "filePath": "version-dropdown.tsx",
2891
- "line": 60,
2892
- "character": 3
2893
- },
2894
- "name": "currentVersion",
2895
- "type": "string",
2896
- "isSpread": false
2897
- },
2898
- {
2899
- "__schema": "InferenceTypeSchema",
2900
- "location": {
2901
- "filePath": "version-dropdown.tsx",
2902
- "line": 61,
2903
- "character": 3
2904
- },
2905
- "name": "latestVersion",
2906
- "type": "string",
2907
- "isSpread": false
2908
- },
2909
- {
2910
- "__schema": "InferenceTypeSchema",
2911
- "location": {
2912
- "filePath": "version-dropdown.tsx",
2913
- "line": 62,
2914
- "character": 3
2915
- },
2916
- "name": "localVersion",
2917
- "type": "boolean",
2918
- "isSpread": false
2919
- },
2920
- {
2921
- "__schema": "InferenceTypeSchema",
2922
- "location": {
2923
- "filePath": "version-dropdown.tsx",
2924
- "line": 63,
2925
- "character": 3
2926
- },
2927
- "name": "useCurrentVersionLog",
2928
- "type": "(props?: {\n skip?: boolean;\n version?: string;\n}) => DropdownComponentVersion",
2929
- "isSpread": false
2930
- },
2931
- {
2932
- "__schema": "InferenceTypeSchema",
2933
- "location": {
2934
- "filePath": "version-dropdown.tsx",
2935
- "line": 64,
2936
- "character": 3
2937
- },
2938
- "name": "hasMoreVersions",
2939
- "type": "boolean",
2940
- "isSpread": false
2941
- },
2942
- {
2943
- "__schema": "InferenceTypeSchema",
2944
- "location": {
2945
- "filePath": "version-dropdown.tsx",
2946
- "line": 65,
2947
- "character": 3
2948
- },
2949
- "name": "loading",
2950
- "type": "boolean",
2951
- "isSpread": false
2952
- },
2953
- {
2954
- "__schema": "InferenceTypeSchema",
2955
- "location": {
2956
- "filePath": "version-dropdown.tsx",
2957
- "line": 66,
2958
- "character": 3
2959
- },
2960
- "name": "overrideVersionHref",
2961
- "type": "(version: string) => string",
2962
- "isSpread": false
2963
- },
2964
- {
2965
- "__schema": "InferenceTypeSchema",
2966
- "location": {
2967
- "filePath": "version-dropdown.tsx",
2968
- "line": 67,
2969
- "character": 3
2970
- },
2971
- "name": "className",
2972
- "type": "string",
2973
- "isSpread": false
2974
- },
2975
- {
2976
- "__schema": "InferenceTypeSchema",
2977
- "location": {
2978
- "filePath": "version-dropdown.tsx",
2979
- "line": 68,
2980
- "character": 3
2981
- },
2982
- "name": "placeholderClassName",
2983
- "type": "string",
2984
- "isSpread": false
2985
- },
2986
- {
2987
- "__schema": "InferenceTypeSchema",
2988
- "location": {
2989
- "filePath": "version-dropdown.tsx",
2990
- "line": 69,
2991
- "character": 3
2992
- },
2993
- "name": "getActiveTabIndex",
2994
- "type": "GetActiveTabIndex",
2995
- "isSpread": false
2996
- },
2997
- {
2998
- "__schema": "InferenceTypeSchema",
2999
- "location": {
3000
- "filePath": "version-dropdown.tsx",
3001
- "line": 70,
3002
- "character": 3
3003
- },
3004
- "name": "dropdownClassName",
3005
- "type": "string",
3006
- "isSpread": false
3007
- },
3008
- {
3009
- "__schema": "InferenceTypeSchema",
3010
- "location": {
3011
- "filePath": "version-dropdown.tsx",
3012
- "line": 71,
3013
- "character": 3
3014
- },
3015
- "name": "menuClassName",
3016
- "type": "string",
3017
- "isSpread": false
3018
- },
3019
- {
3020
- "__schema": "InferenceTypeSchema",
3021
- "location": {
3022
- "filePath": "version-dropdown.tsx",
3023
- "line": 72,
3024
- "character": 3
3025
- },
3026
- "name": "showVersionDetails",
3027
- "type": "boolean",
3028
- "defaultValue": "true",
3029
- "isSpread": false
3030
- },
3031
- {
3032
- "__schema": "InferenceTypeSchema",
3033
- "location": {
3034
- "filePath": "version-dropdown.tsx",
3035
- "line": 73,
3036
- "character": 3
3037
- },
3038
- "name": "disabled",
3039
- "type": "boolean",
3040
- "isSpread": false
3041
- },
3042
- {
3043
- "__schema": "InferenceTypeSchema",
3044
- "location": {
3045
- "filePath": "version-dropdown.tsx",
3046
- "line": 74,
3047
- "character": 25
3048
- },
3049
- "name": "_PlaceholderComponent",
3050
- "type": "React.ComponentType<VersionProps>",
3051
- "isSpread": false
3052
- },
3053
- {
3054
- "__schema": "InferenceTypeSchema",
3055
- "location": {
3056
- "filePath": "version-dropdown.tsx",
3057
- "line": 75,
3058
- "character": 3
3059
- },
3060
- "name": "currentLane",
3061
- "type": "LaneModel",
3062
- "isSpread": false
3063
- },
3064
- {
3065
- "__schema": "InferenceTypeSchema",
3066
- "location": {
3067
- "filePath": "version-dropdown.tsx",
3068
- "line": 76,
3069
- "character": 3
3070
- },
3071
- "name": "useComponentVersions",
3072
- "type": "UseComponentDropdownVersions",
3073
- "isSpread": false
3074
- },
3075
- {
3076
- "__schema": "InferenceTypeSchema",
3077
- "location": {
3078
- "filePath": "version-dropdown.tsx",
3079
- "line": 77,
3080
- "character": 3
3081
- },
3082
- "name": "lanes",
3083
- "type": "LaneModel[]",
3084
- "isSpread": false
3085
- },
3086
- {
3087
- "__schema": "InferenceTypeSchema",
3088
- "location": {
3089
- "filePath": "version-dropdown.tsx",
3090
- "line": 78,
3091
- "character": 6
3092
- },
3093
- "name": "rest",
3094
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
3095
- "isSpread": true
3096
- }
3097
- ],
3098
- "isSpread": false
3099
- },
3100
- "returnType": {
3101
- "__schema": "TypeRefSchema",
3102
- "location": {
3103
- "filePath": "version-dropdown.tsx",
3104
- "line": 59,
3105
- "character": 1
3106
- },
3107
- "name": "React.JSX.Element",
3108
- "packageName": "react"
3109
- },
3110
- "modifiers": []
3111
- },
3112
- {
3113
- "__schema": "TypeSchema",
3114
- "location": {
3115
- "filePath": "version-dropdown.tsx",
3116
- "line": 164,
3117
- "character": 1
3118
- },
3119
- "signature": "type VersionMenuProps = {\n localVersion?: boolean;\n currentVersion?: string;\n latestVersion?: string;\n useVersions?: UseComponentDropdownVersions;\n currentLane?: LaneModel;\n lanes?: LaneModel[];\n overrideVersionHref?: (version: string) => string;\n showVersionDetails?: boolean;\n loading?: boolean;\n getActiveTabIndex?: GetActiveTabIndex;\n open?: boolean;\n} & React.HTMLAttributes<...>",
3120
- "name": "VersionMenuProps",
3121
- "type": {
3122
- "__schema": "TypeIntersectionSchema",
3123
- "location": {
3124
- "filePath": "version-dropdown.tsx",
3125
- "line": 164,
3126
- "character": 25
3127
- },
3128
- "types": [
3129
- {
3130
- "__schema": "TypeLiteralSchema",
3131
- "location": {
3132
- "filePath": "version-dropdown.tsx",
3133
- "line": 164,
3134
- "character": 25
3135
- },
3136
- "members": [
3137
- {
3138
- "__schema": "VariableLikeSchema",
3139
- "location": {
3140
- "filePath": "version-dropdown.tsx",
3141
- "line": 165,
3142
- "character": 3
3143
- },
3144
- "signature": "(property) localVersion?: boolean",
3145
- "name": "localVersion",
3146
- "type": {
3147
- "__schema": "KeywordTypeSchema",
3148
- "location": {
3149
- "filePath": "version-dropdown.tsx",
3150
- "line": 165,
3151
- "character": 18
3152
- },
3153
- "name": "boolean"
3154
- },
3155
- "isOptional": true
3156
- },
3157
- {
3158
- "__schema": "VariableLikeSchema",
3159
- "location": {
3160
- "filePath": "version-dropdown.tsx",
3161
- "line": 166,
3162
- "character": 3
3163
- },
3164
- "signature": "(property) currentVersion?: string",
3165
- "name": "currentVersion",
3166
- "type": {
3167
- "__schema": "KeywordTypeSchema",
3168
- "location": {
3169
- "filePath": "version-dropdown.tsx",
3170
- "line": 166,
3171
- "character": 20
3172
- },
3173
- "name": "string"
3174
- },
3175
- "isOptional": true
3176
- },
3177
- {
3178
- "__schema": "VariableLikeSchema",
3179
- "location": {
3180
- "filePath": "version-dropdown.tsx",
3181
- "line": 167,
3182
- "character": 3
3183
- },
3184
- "signature": "(property) latestVersion?: string",
3185
- "name": "latestVersion",
3186
- "type": {
3187
- "__schema": "KeywordTypeSchema",
3188
- "location": {
3189
- "filePath": "version-dropdown.tsx",
3190
- "line": 167,
3191
- "character": 19
3192
- },
3193
- "name": "string"
3194
- },
3195
- "isOptional": true
3196
- },
3197
- {
3198
- "__schema": "VariableLikeSchema",
3199
- "location": {
3200
- "filePath": "version-dropdown.tsx",
3201
- "line": 168,
3202
- "character": 3
3203
- },
3204
- "signature": "(property) useVersions?: UseComponentDropdownVersions",
3205
- "name": "useVersions",
3206
- "type": {
3207
- "__schema": "TypeRefSchema",
3208
- "location": {
3209
- "filePath": "version-dropdown.tsx",
3210
- "line": 168,
3211
- "character": 3
3212
- },
3213
- "name": "UseComponentDropdownVersions",
3214
- "internalFilePath": "version-dropdown.tsx"
3215
- },
3216
- "isOptional": true
3217
- },
3218
- {
3219
- "__schema": "VariableLikeSchema",
3220
- "location": {
3221
- "filePath": "version-dropdown.tsx",
3222
- "line": 169,
3223
- "character": 3
3224
- },
3225
- "signature": "(property) currentLane?: LaneModel",
3226
- "name": "currentLane",
3227
- "type": {
3228
- "__schema": "TypeRefSchema",
3229
- "location": {
3230
- "filePath": "version-dropdown.tsx",
3231
- "line": 169,
3232
- "character": 3
3233
- },
3234
- "name": "LaneModel",
3235
- "componentId": {
3236
- "scope": "teambit.lanes",
3237
- "name": "ui/models/lanes-model",
3238
- "version": "0.0.210"
3239
- }
3240
- },
3241
- "isOptional": true
3242
- },
3243
- {
3244
- "__schema": "VariableLikeSchema",
3245
- "location": {
3246
- "filePath": "version-dropdown.tsx",
3247
- "line": 170,
3248
- "character": 3
3249
- },
3250
- "signature": "(property) lanes?: LaneModel[]",
3251
- "name": "lanes",
3252
- "type": {
3253
- "__schema": "TypeArraySchema",
3254
- "location": {
3255
- "filePath": "version-dropdown.tsx",
3256
- "line": 170,
3257
- "character": 11
3258
- },
3259
- "type": {
3260
- "__schema": "TypeRefSchema",
3261
- "location": {
3262
- "filePath": "version-dropdown.tsx",
3263
- "line": 170,
3264
- "character": 11
3265
- },
3266
- "name": "LaneModel",
3267
- "componentId": {
3268
- "scope": "teambit.lanes",
3269
- "name": "ui/models/lanes-model",
3270
- "version": "0.0.210"
3271
- }
3272
- }
3273
- },
3274
- "isOptional": true
3275
- },
3276
- {
3277
- "__schema": "VariableLikeSchema",
3278
- "location": {
3279
- "filePath": "version-dropdown.tsx",
3280
- "line": 171,
3281
- "character": 3
3282
- },
3283
- "signature": "(property) overrideVersionHref?: (version: string) => string",
3284
- "name": "overrideVersionHref",
3285
- "type": {
3286
- "__schema": "FunctionLikeSchema",
3287
- "location": {
3288
- "filePath": "version-dropdown.tsx",
3289
- "line": 171,
3290
- "character": 25
3291
- },
3292
- "signature": "(version: string): string",
3293
- "name": "",
3294
- "params": [
3295
- {
3296
- "__schema": "ParameterSchema",
3297
- "location": {
3298
- "filePath": "version-dropdown.tsx",
3299
- "line": 171,
3300
- "character": 26
3301
- },
3302
- "name": "version",
3303
- "type": {
3304
- "__schema": "KeywordTypeSchema",
3305
- "location": {
3306
- "filePath": "version-dropdown.tsx",
3307
- "line": 171,
3308
- "character": 35
3309
- },
3310
- "name": "string"
3311
- },
3312
- "isOptional": false,
3313
- "isSpread": false
3314
- }
3315
- ],
3316
- "returnType": {
3317
- "__schema": "KeywordTypeSchema",
3318
- "location": {
3319
- "filePath": "version-dropdown.tsx",
3320
- "line": 171,
3321
- "character": 46
3322
- },
3323
- "name": "string"
3324
- },
3325
- "modifiers": []
3326
- },
3327
- "isOptional": true
3328
- },
3329
- {
3330
- "__schema": "VariableLikeSchema",
3331
- "location": {
3332
- "filePath": "version-dropdown.tsx",
3333
- "line": 172,
3334
- "character": 3
3335
- },
3336
- "signature": "(property) showVersionDetails?: boolean",
3337
- "name": "showVersionDetails",
3338
- "type": {
3339
- "__schema": "KeywordTypeSchema",
3340
- "location": {
3341
- "filePath": "version-dropdown.tsx",
3342
- "line": 172,
3343
- "character": 24
3344
- },
3345
- "name": "boolean"
3346
- },
3347
- "isOptional": true
3348
- },
3349
- {
3350
- "__schema": "VariableLikeSchema",
3351
- "location": {
3352
- "filePath": "version-dropdown.tsx",
3353
- "line": 173,
3354
- "character": 3
3355
- },
3356
- "signature": "(property) loading?: boolean",
3357
- "name": "loading",
3358
- "type": {
3359
- "__schema": "KeywordTypeSchema",
3360
- "location": {
3361
- "filePath": "version-dropdown.tsx",
3362
- "line": 173,
3363
- "character": 13
3364
- },
3365
- "name": "boolean"
3366
- },
3367
- "isOptional": true
3368
- },
3369
- {
3370
- "__schema": "VariableLikeSchema",
3371
- "location": {
3372
- "filePath": "version-dropdown.tsx",
3373
- "line": 174,
3374
- "character": 3
3375
- },
3376
- "signature": "(property) getActiveTabIndex?: GetActiveTabIndex",
3377
- "name": "getActiveTabIndex",
3378
- "type": {
3379
- "__schema": "TypeRefSchema",
3380
- "location": {
3381
- "filePath": "version-dropdown.tsx",
3382
- "line": 174,
3383
- "character": 3
3384
- },
3385
- "name": "GetActiveTabIndex"
3386
- },
3387
- "isOptional": true
3388
- },
3389
- {
3390
- "__schema": "VariableLikeSchema",
3391
- "location": {
3392
- "filePath": "version-dropdown.tsx",
3393
- "line": 175,
3394
- "character": 3
3395
- },
3396
- "signature": "(property) open?: boolean",
3397
- "name": "open",
3398
- "type": {
3399
- "__schema": "KeywordTypeSchema",
3400
- "location": {
3401
- "filePath": "version-dropdown.tsx",
3402
- "line": 175,
3403
- "character": 10
3404
- },
3405
- "name": "boolean"
3406
- },
3407
- "isOptional": true
3408
- }
3409
- ]
3410
- },
3411
- {
3412
- "__schema": "TypeRefSchema",
3413
- "location": {
3414
- "filePath": "version-dropdown.tsx",
3415
- "line": 176,
3416
- "character": 5
3417
- },
3418
- "name": "React.HTMLAttributes",
3419
- "typeArgs": [
3420
- {
3421
- "__schema": "TypeRefSchema",
3422
- "location": {
3423
- "filePath": "version-dropdown.tsx",
3424
- "line": 176,
3425
- "character": 26
3426
- },
3427
- "name": "HTMLDivElement"
3428
- }
3429
- ]
3430
- }
3431
- ]
3432
- }
3433
- },
3434
- {
3435
- "__schema": "ModuleSchema",
3436
- "location": {
3437
- "filePath": "version-dropdown.tsx",
3438
- "line": 192,
3439
- "character": 1
3440
- },
3441
- "exports": [
3442
- {
3443
- "__schema": "FunctionLikeSchema",
3444
- "location": {
3445
- "filePath": "version-dropdown.tsx",
3446
- "line": 192,
3447
- "character": 7
3448
- },
3449
- "signature": "function(currentVersion: string, tabs: VersionMenuTab[], tags: DropdownComponentVersion[], snaps: DropdownComponentVersion[]): number",
3450
- "name": "defaultActiveTabIndex",
3451
- "params": [
3452
- {
3453
- "__schema": "ParameterSchema",
3454
- "location": {
3455
- "filePath": "version-dropdown.tsx",
3456
- "line": 192,
3457
- "character": 7
3458
- },
3459
- "name": "currentVersion",
3460
- "type": {
3461
- "__schema": "TypeRefSchema",
3462
- "location": {
3463
- "filePath": "version-dropdown.tsx",
3464
- "line": 192,
3465
- "character": 30
3466
- },
3467
- "name": "GetActiveTabIndex"
3468
- },
3469
- "isOptional": false,
3470
- "isSpread": false
3471
- },
3472
- {
3473
- "__schema": "ParameterSchema",
3474
- "location": {
3475
- "filePath": "version-dropdown.tsx",
3476
- "line": 192,
3477
- "character": 7
3478
- },
3479
- "name": "tabs",
3480
- "type": {
3481
- "__schema": "TypeRefSchema",
3482
- "location": {
3483
- "filePath": "version-dropdown.tsx",
3484
- "line": 192,
3485
- "character": 30
3486
- },
3487
- "name": "GetActiveTabIndex"
3488
- },
3489
- "isOptional": false,
3490
- "defaultValue": "[]",
3491
- "isSpread": false
3492
- },
3493
- {
3494
- "__schema": "ParameterSchema",
3495
- "location": {
3496
- "filePath": "version-dropdown.tsx",
3497
- "line": 192,
3498
- "character": 7
3499
- },
3500
- "name": "tags",
3501
- "type": {
3502
- "__schema": "TypeRefSchema",
3503
- "location": {
3504
- "filePath": "version-dropdown.tsx",
3505
- "line": 192,
3506
- "character": 30
3507
- },
3508
- "name": "GetActiveTabIndex"
3509
- },
3510
- "isOptional": false,
3511
- "isSpread": false
3512
- },
3513
- {
3514
- "__schema": "ParameterSchema",
3515
- "location": {
3516
- "filePath": "version-dropdown.tsx",
3517
- "line": 192,
3518
- "character": 7
3519
- },
3520
- "name": "snaps",
3521
- "type": {
3522
- "__schema": "TypeRefSchema",
3523
- "location": {
3524
- "filePath": "version-dropdown.tsx",
3525
- "line": 192,
3526
- "character": 30
3527
- },
3528
- "name": "GetActiveTabIndex"
3529
- },
3530
- "isOptional": false,
3531
- "isSpread": false
3532
- }
3533
- ],
3534
- "returnType": {
3535
- "__schema": "InferenceTypeSchema",
3536
- "location": {
3537
- "filePath": "version-dropdown.tsx",
3538
- "line": 192,
3539
- "character": 50
3540
- },
3541
- "type": "number"
3542
- },
3543
- "modifiers": []
3544
- }
3545
- ],
3546
- "internals": []
3547
- },
3548
- {
3549
- "__schema": "ModuleSchema",
3550
- "location": {
3551
- "filePath": "version-dropdown.tsx",
3552
- "line": 198,
3553
- "character": 1
3554
- },
3555
- "exports": [
3556
- {
3557
- "__schema": "VariableLikeSchema",
3558
- "location": {
3559
- "filePath": "version-dropdown.tsx",
3560
- "line": 198,
3561
- "character": 7
3562
- },
3563
- "signature": "const VERSION_TAB_NAMES: readonly [\"TAG\", \"SNAP\", \"LANE\"]",
3564
- "name": "VERSION_TAB_NAMES",
3565
- "type": {
3566
- "__schema": "InferenceTypeSchema",
3567
- "location": {
3568
- "filePath": "version-dropdown.tsx",
3569
- "line": 198,
3570
- "character": 7
3571
- },
3572
- "type": "readonly [\"TAG\", \"SNAP\", \"LANE\"]"
3573
- },
3574
- "isOptional": false,
3575
- "defaultValue": "['TAG', 'SNAP', 'LANE'] as const"
3576
- }
3577
- ],
3578
- "internals": []
3579
- },
3580
- {
3581
- "__schema": "ReactSchema",
3582
- "location": {
3583
- "filePath": "version-dropdown.tsx",
3584
- "line": 199,
3585
- "character": 1
3586
- },
3587
- "signature": "function _VersionMenu({ currentVersion, localVersion, latestVersion, overrideVersionHref, showVersionDetails, useVersions, currentLane, lanes, getActiveTabIndex, loading: loadingFromProps, open, ...rest }: VersionMenuProps): React.JSX.Element",
3588
- "name": "_VersionMenu",
3589
- "props": {
3590
- "__schema": "ParameterSchema",
3591
- "location": {
3592
- "filePath": "version-dropdown.tsx",
3593
- "line": 199,
3594
- "character": 23
3595
- },
3596
- "name": "{ currentVersion, localVersion, latestVersion, overrideVersionHref, showVersionDetails, useVersions, currentLane, lanes, getActiveTabIndex = defaultActiveTabIndex, loading: loadingFromProps, open, ...rest }",
3597
- "type": {
3598
- "__schema": "TypeRefSchema",
3599
- "location": {
3600
- "filePath": "version-dropdown.tsx",
3601
- "line": 212,
3602
- "character": 4
3603
- },
3604
- "name": "VersionMenuProps",
3605
- "internalFilePath": "version-dropdown.tsx"
3606
- },
3607
- "isOptional": false,
3608
- "objectBindingNodes": [
3609
- {
3610
- "__schema": "InferenceTypeSchema",
3611
- "location": {
3612
- "filePath": "version-dropdown.tsx",
3613
- "line": 200,
3614
- "character": 3
3615
- },
3616
- "name": "currentVersion",
3617
- "type": "string",
3618
- "isSpread": false
3619
- },
3620
- {
3621
- "__schema": "InferenceTypeSchema",
3622
- "location": {
3623
- "filePath": "version-dropdown.tsx",
3624
- "line": 201,
3625
- "character": 3
3626
- },
3627
- "name": "localVersion",
3628
- "type": "boolean",
3629
- "isSpread": false
3630
- },
3631
- {
3632
- "__schema": "InferenceTypeSchema",
3633
- "location": {
3634
- "filePath": "version-dropdown.tsx",
3635
- "line": 202,
3636
- "character": 3
3637
- },
3638
- "name": "latestVersion",
3639
- "type": "string",
3640
- "isSpread": false
3641
- },
3642
- {
3643
- "__schema": "InferenceTypeSchema",
3644
- "location": {
3645
- "filePath": "version-dropdown.tsx",
3646
- "line": 203,
3647
- "character": 3
3648
- },
3649
- "name": "overrideVersionHref",
3650
- "type": "(version: string) => string",
3651
- "isSpread": false
3652
- },
3653
- {
3654
- "__schema": "InferenceTypeSchema",
3655
- "location": {
3656
- "filePath": "version-dropdown.tsx",
3657
- "line": 204,
3658
- "character": 3
3659
- },
3660
- "name": "showVersionDetails",
3661
- "type": "boolean",
3662
- "isSpread": false
3663
- },
3664
- {
3665
- "__schema": "InferenceTypeSchema",
3666
- "location": {
3667
- "filePath": "version-dropdown.tsx",
3668
- "line": 205,
3669
- "character": 3
3670
- },
3671
- "name": "useVersions",
3672
- "type": "UseComponentDropdownVersions",
3673
- "isSpread": false
3674
- },
3675
- {
3676
- "__schema": "InferenceTypeSchema",
3677
- "location": {
3678
- "filePath": "version-dropdown.tsx",
3679
- "line": 206,
3680
- "character": 3
3681
- },
3682
- "name": "currentLane",
3683
- "type": "LaneModel",
3684
- "isSpread": false
3685
- },
3686
- {
3687
- "__schema": "InferenceTypeSchema",
3688
- "location": {
3689
- "filePath": "version-dropdown.tsx",
3690
- "line": 207,
3691
- "character": 3
3692
- },
3693
- "name": "lanes",
3694
- "type": "LaneModel[]",
3695
- "isSpread": false
3696
- },
3697
- {
3698
- "__schema": "InferenceTypeSchema",
3699
- "location": {
3700
- "filePath": "version-dropdown.tsx",
3701
- "line": 208,
3702
- "character": 3
3703
- },
3704
- "name": "getActiveTabIndex",
3705
- "type": "GetActiveTabIndex",
3706
- "defaultValue": "defaultActiveTabIndex",
3707
- "isSpread": false
3708
- },
3709
- {
3710
- "__schema": "InferenceTypeSchema",
3711
- "location": {
3712
- "filePath": "version-dropdown.tsx",
3713
- "line": 209,
3714
- "character": 12
3715
- },
3716
- "name": "loadingFromProps",
3717
- "type": "boolean",
3718
- "isSpread": false
3719
- },
3720
- {
3721
- "__schema": "InferenceTypeSchema",
3722
- "location": {
3723
- "filePath": "version-dropdown.tsx",
3724
- "line": 210,
3725
- "character": 3
3726
- },
3727
- "name": "open",
3728
- "type": "boolean",
3729
- "isSpread": false
3730
- },
3731
- {
3732
- "__schema": "InferenceTypeSchema",
3733
- "location": {
3734
- "filePath": "version-dropdown.tsx",
3735
- "line": 211,
3736
- "character": 6
3737
- },
3738
- "name": "rest",
3739
- "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 252 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
3740
- "isSpread": true
3741
- }
3742
- ],
3743
- "isSpread": false
3744
- },
3745
- "returnType": {
3746
- "__schema": "TypeRefSchema",
3747
- "location": {
3748
- "filePath": "version-dropdown.tsx",
3749
- "line": 199,
3750
- "character": 1
3751
- },
3752
- "name": "React.JSX.Element",
3753
- "packageName": "react"
3754
- },
3755
- "modifiers": []
3756
- }
3757
- ]
3758
- }
3759
- ],
3760
- "componentId": {
3761
- "scope": "teambit.component",
3762
- "name": "ui/version-dropdown",
3763
- "version": "e97bc9d1e415fdd57a48a50f9566d1d7d2e93de1"
3764
- },
3765
- "taggedModuleExports": []
3766
- }