@teambit/variants 0.0.1100 → 0.0.1102

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