@teambit/component.ui.component-compare.component-compare 0.0.193 → 0.0.195

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