@teambit/mdx 0.0.529 → 0.0.535

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.
@@ -15,9 +15,23 @@ export declare class MDXCompiler implements Compiler {
15
15
  constructor(id: string, config: MDXCompilerOpts);
16
16
  displayConfig(): string;
17
17
  transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput;
18
+ /**
19
+ * compile components inside isolated capsules. this being used during tag for the release.
20
+ * meaning, the final package of the component has the dists generated by this method.
21
+ */
18
22
  build(context: BuildContext): Promise<BuiltTaskResult>;
23
+ /**
24
+ * given a source file, return its parallel in the dists. e.g. "index.ts" => "dist/index.js"
25
+ * both, the return path and the given path are relative paths.
26
+ */
19
27
  getDistPathBySrcPath(srcPath: string): string;
20
28
  private replaceFileExtToJs;
29
+ /**
30
+ * only supported files matching get compiled. others, are copied to the dist dir.
31
+ */
21
32
  isFileSupported(filePath: string): boolean;
33
+ /**
34
+ * returns the version of the current compiler instance (e.g. '4.0.1').
35
+ */
22
36
  version(): string;
23
37
  }
@@ -8,10 +8,16 @@ import { ReactMain } from '@teambit/react';
8
8
  import { GeneratorMain } from '@teambit/generator';
9
9
  import { MDXCompiler, MDXCompilerOpts } from './mdx.compiler';
10
10
  export declare type MDXConfig = {
11
+ /**
12
+ * list of file extensions to consider as MDX files.
13
+ */
11
14
  extensions: string[];
12
15
  };
13
16
  export declare class MDXMain {
14
17
  icon(): string;
18
+ /**
19
+ * create an instance of the MDX compiler.
20
+ */
15
21
  createCompiler(opts?: MDXCompilerOpts): MDXCompiler;
16
22
  static runtime: import("@teambit/harmony").RuntimeDefinition;
17
23
  static dependencies: import("@teambit/harmony").Aspect[];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mdx",
3
- "version": "0.0.529",
3
+ "version": "0.0.535",
4
4
  "homepage": "https://bit.dev/teambit/mdx/mdx",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.mdx",
8
8
  "name": "mdx",
9
- "version": "0.0.529"
9
+ "version": "0.0.535"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -15,24 +15,24 @@
15
15
  "minimatch": "3.0.4",
16
16
  "@babel/runtime": "7.12.18",
17
17
  "core-js": "^3.0.0",
18
- "@teambit/builder": "0.0.549",
19
- "@teambit/compilation.modules.babel-compiler": "0.0.97",
20
- "@teambit/compiler": "0.0.549",
21
- "@teambit/mdx.modules.mdx-compiler": "0.0.459",
22
- "@teambit/dependency-resolver": "0.0.549",
23
- "@teambit/docs": "0.0.549",
24
- "@teambit/babel": "0.0.549",
25
- "@teambit/cli": "0.0.380",
26
- "@teambit/envs": "0.0.549",
27
- "@teambit/generator": "0.0.549",
28
- "@teambit/multi-compiler": "0.0.549",
29
- "@teambit/react": "0.0.549",
30
- "@teambit/typescript.modules.ts-config-mutator": "0.0.39",
31
- "@teambit/typescript": "0.0.549",
32
- "@teambit/compositions": "0.0.549",
18
+ "@teambit/builder": "0.0.555",
19
+ "@teambit/compilation.modules.babel-compiler": "0.0.101",
20
+ "@teambit/compiler": "0.0.555",
21
+ "@teambit/mdx.modules.mdx-compiler": "0.0.463",
22
+ "@teambit/dependency-resolver": "0.0.555",
23
+ "@teambit/docs": "0.0.555",
24
+ "@teambit/babel": "0.0.555",
25
+ "@teambit/cli": "0.0.386",
26
+ "@teambit/envs": "0.0.555",
27
+ "@teambit/generator": "0.0.555",
28
+ "@teambit/multi-compiler": "0.0.555",
29
+ "@teambit/react": "0.0.555",
30
+ "@teambit/typescript.modules.ts-config-mutator": "0.0.43",
31
+ "@teambit/typescript": "0.0.555",
32
+ "@teambit/compositions": "0.0.555",
33
33
  "@teambit/design.ui.empty-box": "0.0.352",
34
- "@teambit/tester": "0.0.549",
35
- "@teambit/ui": "0.0.549"
34
+ "@teambit/tester": "0.0.555",
35
+ "@teambit/ui": "0.0.555"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/fs-extra": "9.0.7",
@@ -43,10 +43,10 @@
43
43
  "@types/jest": "^26.0.0",
44
44
  "@types/react-dom": "^17.0.5",
45
45
  "@types/node": "12.20.4",
46
- "@teambit/mdx.aspect-docs.mdx": "0.0.101"
46
+ "@teambit/mdx.aspect-docs.mdx": "0.0.105"
47
47
  },
48
48
  "peerDependencies": {
49
- "@teambit/legacy": "1.0.76",
49
+ "@teambit/legacy": "1.0.172",
50
50
  "react-dom": "^16.8.0 || ^17.0.0",
51
51
  "react": "^16.8.0 || ^17.0.0"
52
52
  },
@@ -74,7 +74,7 @@
74
74
  "react": "-"
75
75
  },
76
76
  "peerDependencies": {
77
- "@teambit/legacy": "1.0.76",
77
+ "@teambit/legacy": "1.0.172",
78
78
  "react-dom": "^16.8.0 || ^17.0.0",
79
79
  "react": "^16.8.0 || ^17.0.0"
80
80
  }
package/tsconfig.json CHANGED
@@ -25,7 +25,6 @@
25
25
  "strict": true,
26
26
  "noImplicitAny": false,
27
27
  "rootDir": ".",
28
- "removeComments": true,
29
28
  "preserveConstEnums": true,
30
29
  "resolveJsonModule": true
31
30
  },
Binary file