@teambit/mdx 0.0.1028 → 0.0.1030

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