@teambit/compilation.aspect-docs.multi-compiler 0.0.131 → 0.0.132

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.
@@ -0,0 +1,2 @@
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.132/dist/multi-compiler.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.132/dist/multi-compiler.docs.mdx')]
package/dist/index.js CHANGED
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MultiCompiler = void 0;
7
- var multi_compiler_mdx_1 = require("./multi-compiler.mdx");
8
- Object.defineProperty(exports, "MultiCompiler", { enumerable: true, get: function () { return __importDefault(multi_compiler_mdx_1).default; } });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "MultiCompiler", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _multiCompiler["default"];
10
+ }
11
+ });
12
+
13
+ var _multiCompiler = _interopRequireDefault(require("./multi-compiler.mdx"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+
9
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAgE;AAAvD,oIAAA,OAAO,OAAiB"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default as MultiCompiler } from './multi-compiler.mdx';\n"]}
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const MultiCompilerDocs: () => JSX.Element;
@@ -1,15 +1,24 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
6
  exports.MultiCompilerDocs = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const documenter_theme_theme_compositions_1 = require("@teambit/documenter.theme.theme-compositions");
9
- const mdx_ui_mdx_layout_1 = require("@teambit/mdx.ui.mdx-layout");
10
- const index_1 = require("./index");
11
- const MultiCompilerDocs = () => (react_1.default.createElement(documenter_theme_theme_compositions_1.ThemeCompositions, null,
12
- react_1.default.createElement(mdx_ui_mdx_layout_1.MDXLayout, null,
13
- react_1.default.createElement(index_1.MultiCompiler, null))));
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _documenterTheme = require("@teambit/documenter.theme.theme-compositions");
11
+
12
+ var _mdxUi = require("@teambit/mdx.ui.mdx-layout");
13
+
14
+ var _index = require("./index");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ var MultiCompilerDocs = function MultiCompilerDocs() {
19
+ return /*#__PURE__*/_react["default"].createElement(_documenterTheme.ThemeCompositions, null, /*#__PURE__*/_react["default"].createElement(_mdxUi.MDXLayout, null, /*#__PURE__*/_react["default"].createElement(_index.MultiCompiler, null)));
20
+ };
21
+
14
22
  exports.MultiCompilerDocs = MultiCompilerDocs;
23
+
15
24
  //# sourceMappingURL=multi-compiler.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multi-compiler.composition.js","sourceRoot":"","sources":["../multi-compiler.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sGAAiF;AACjF,kEAAuD;AACvD,mCAAwC;AAEjC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,CACrC,8BAAC,uDAAiB;IAChB,8BAAC,6BAAS;QACR,8BAAC,qBAAa,OAAG,CACP,CACM,CACrB,CAAC;AANW,QAAA,iBAAiB,qBAM5B"}
1
+ {"version":3,"sources":["multi-compiler.composition.tsx"],"names":["MultiCompilerDocs"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEO,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB;AAAA,sBAC/B,gCAAC,kCAAD,qBACE,gCAAC,gBAAD,qBACE,gCAAC,oBAAD,OADF,CADF,CAD+B;AAAA,CAA1B","sourcesContent":["import React from 'react';\nimport { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';\nimport { MDXLayout } from '@teambit/mdx.ui.mdx-layout';\nimport { MultiCompiler } from './index';\n\nexport const MultiCompilerDocs = () => (\n <ThemeCompositions>\n <MDXLayout>\n <MultiCompiler />\n </MDXLayout>\n </ThemeCompositions>\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["multi-compiler.mdx.js"],"names":["layoutProps","MDXLayout","MDXContent","components","props","isMDXComponent"],"mappings":";;;;;;;AAEA;;AACA;;AAKA;;;;;;;;;;;;AAGA,IAAMA,WAAW,GAAG,EAApB;AAGA,IAAMC,SAAS,GAAG,SAAlB;;AACe,SAASC,UAAT,OAGZ;AAAA,MAFDC,UAEC,QAFDA,UAEC;AAAA,MADEC,KACF;;AACD,SAAO,iBAAC,SAAD,eAAeJ,WAAf,EAAgCI,KAAhC;AAAuC,IAAA,UAAU,EAAED,UAAnD;AAA+D,IAAA,OAAO,EAAC;AAAvE,MACL,iBAAC,uBAAD;AAAkB,IAAA,UAAU,EAAE,EAA9B;AAAkC,IAAA,OAAO,EAAC;AAA1C,KAA6D,+LAAsK;AAAY,IAAA,UAAU,EAAC;AAAvB,yBAAtK,mBAA7D,EACE,6BACE;AAAI,IAAA,UAAU,EAAC;AAAf,KAAoB;AAAY,IAAA,UAAU,EAAC;AAAvB,uEAApB,mGAAiO;AAAY,IAAA,UAAU,EAAC;AAAvB,wBAAjO,WAAuS;AAAY,IAAA,UAAU,EAAC;AAAvB,mBAAvS,YADF,EAEE;AAAI,IAAA,UAAU,EAAC;AAAf,8DAFF,CADF,EAKE,8BAAK;AAAM,IAAA,UAAU,EAAC,KAAjB;AACD,iBAAa;AADZ,sOAAL,CALF,CADK,CAAP;AAeD;;AAED;AACAD,UAAU,CAACG,cAAX,GAA4B,IAA5B","sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.131","sourcesContent":["\n// @ts-nocheck\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nimport { MDXScopeProvider } from '@teambit/mdx.ui.mdx-scope-context';\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n <MDXScopeProvider components={{}} mdxType=\"MDXScopeProvider\"><p>{`The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the `}<inlineCode parentName=\"p\">{`isFileSupported()`}</inlineCode>{` compiler API.`}</p>\n <ul>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`createCompiler(compilers: Compiler[], options: CompilerOptions)`}</inlineCode>{` API to support the creation a Multi-compiler instance which can be used in the Env API (the `}<inlineCode parentName=\"li\">{`overrideCompiler`}</inlineCode>{` and `}<inlineCode parentName=\"li\">{`getCompiler`}</inlineCode>{` APIs).`}</li>\n <li parentName=\"ul\">{`Supports the creation of a multi-compiler build tasks.`}</li>\n </ul>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-ts\"\n }}>{`// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n`}</code></pre></MDXScopeProvider>\n </MDXLayout>;\n}\n\n;\nMDXContent.isMDXComponent = true;"]}
1
+ {"version":3,"sources":["multi-compiler.mdx.js"],"names":["layoutProps","MDXLayout","MDXContent","components","props","isMDXComponent"],"mappings":";;;;;;;AAEA;;AACA;;AAKA;;;;;;;;;;;;AAGA,IAAMA,WAAW,GAAG,EAApB;AAGA,IAAMC,SAAS,GAAG,SAAlB;;AACe,SAASC,UAAT,OAGZ;AAAA,MAFDC,UAEC,QAFDA,UAEC;AAAA,MADEC,KACF;;AACD,SAAO,iBAAC,SAAD,eAAeJ,WAAf,EAAgCI,KAAhC;AAAuC,IAAA,UAAU,EAAED,UAAnD;AAA+D,IAAA,OAAO,EAAC;AAAvE,MACL,iBAAC,uBAAD;AAAkB,IAAA,UAAU,EAAE,EAA9B;AAAkC,IAAA,OAAO,EAAC;AAA1C,KAA6D,+LAAsK;AAAY,IAAA,UAAU,EAAC;AAAvB,yBAAtK,mBAA7D,EACE,6BACE;AAAI,IAAA,UAAU,EAAC;AAAf,KAAoB;AAAY,IAAA,UAAU,EAAC;AAAvB,uEAApB,mGAAiO;AAAY,IAAA,UAAU,EAAC;AAAvB,wBAAjO,WAAuS;AAAY,IAAA,UAAU,EAAC;AAAvB,mBAAvS,YADF,EAEE;AAAI,IAAA,UAAU,EAAC;AAAf,8DAFF,CADF,EAKE,8BAAK;AAAM,IAAA,UAAU,EAAC,KAAjB;AACD,iBAAa;AADZ,sOAAL,CALF,CADK,CAAP;AAeD;;AAED;AACAD,UAAU,CAACG,cAAX,GAA4B,IAA5B","sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.132","sourcesContent":["\n// @ts-nocheck\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nimport { MDXScopeProvider } from '@teambit/mdx.ui.mdx-scope-context';\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n <MDXScopeProvider components={{}} mdxType=\"MDXScopeProvider\"><p>{`The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the `}<inlineCode parentName=\"p\">{`isFileSupported()`}</inlineCode>{` compiler API.`}</p>\n <ul>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`createCompiler(compilers: Compiler[], options: CompilerOptions)`}</inlineCode>{` API to support the creation a Multi-compiler instance which can be used in the Env API (the `}<inlineCode parentName=\"li\">{`overrideCompiler`}</inlineCode>{` and `}<inlineCode parentName=\"li\">{`getCompiler`}</inlineCode>{` APIs).`}</li>\n <li parentName=\"ul\">{`Supports the creation of a multi-compiler build tasks.`}</li>\n </ul>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-ts\"\n }}>{`// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n`}</code></pre></MDXScopeProvider>\n </MDXLayout>;\n}\n\n;\nMDXContent.isMDXComponent = true;"]}
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
2
  "name": "@teambit/compilation.aspect-docs.multi-compiler",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "homepage": "https://bit.dev/teambit/compilation/aspect-docs/multi-compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "aspect-docs/multi-compiler",
9
- "version": "0.0.131"
9
+ "version": "0.0.132"
10
10
  },
11
11
  "dependencies": {
12
12
  "core-js": "^3.0.0",
13
13
  "@mdx-js/react": "1.6.22",
14
- "@teambit/mdx.ui.mdx-scope-context": "0.0.486"
14
+ "@teambit/mdx.ui.mdx-scope-context": "0.0.487"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/react": "^17.0.8",
18
- "@types/mocha": "5.2.7",
18
+ "@types/mocha": "9.1.0",
19
19
  "@types/testing-library__jest-dom": "5.9.5",
20
20
  "@babel/runtime": "7.12.18",
21
21
  "@types/jest": "^26.0.0",
22
22
  "@types/react-dom": "^17.0.5",
23
23
  "@types/node": "12.20.4",
24
24
  "@teambit/documenter.theme.theme-compositions": "4.1.1",
25
- "@teambit/mdx.ui.mdx-layout": "0.0.493"
25
+ "@teambit/mdx.ui.mdx-layout": "0.0.494"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react-dom": "^16.8.0 || ^17.0.0",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@teambit/legacy": "-",
46
- "@types/mocha": "5.2.7",
46
+ "@types/mocha": "9.1.0",
47
47
  "@types/testing-library__jest-dom": "5.9.5",
48
48
  "@babel/runtime": "7.12.18",
49
49
  "@types/jest": "^26.0.0",