@teambit/variants 0.0.1360 → 0.0.1362

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