@teambit/variants 0.0.1353 → 0.0.1355

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