@teambit/variants 0.0.1030 → 0.0.1032

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