@teambit/component.ui.component-compare.component-compare 0.0.170 → 0.0.171

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