@teambit/compilation.aspect-docs.multi-compiler 0.0.0-3bf24dab4050863ccaacd43c052f5a11ccd78a88

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 @@
1
+ export { default as MultiCompiler } from './multi-compiler.mdx';
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
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; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAgE;AAAvD,oIAAA,OAAO,OAAiB"}
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MultiCompilerDocs: () => React.JSX.Element;
@@ -0,0 +1,15 @@
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.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))));
14
+ exports.MultiCompilerDocs = MultiCompilerDocs;
15
+ //# sourceMappingURL=multi-compiler.composition.js.map
@@ -0,0 +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"}
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: 'Docs for MultiCompiler aspect'
3
+ labels: ['docs', 'aspect', 'extensions']
4
+ ---
5
+
6
+ import { MultiCompiler } from './index';
7
+
8
+ ## Static Content Page in MDX
9
+
10
+ Docs for MultiCompiler aspect
11
+
12
+ ### Component usage
13
+
14
+ Use your component in any mdx file:
15
+
16
+ ```js
17
+ import { MultiCompiler } from '@teambit/aspect-docs.multi-compiler';
18
+
19
+ <MultiCompiler />;
20
+ ```
21
+
22
+ ### Render with theme and MDX providers
23
+
24
+ ```js
25
+ import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
26
+ import { MDXLayout } from '@teambit/ui.mdx-layout';
27
+ import { MultiCompiler } from '@teambit/aspect-docs.multi-compiler';
28
+
29
+ <ThemeCompositions>
30
+ <MDXLayout>
31
+ <MultiCompiler />
32
+ </MDXLayout>
33
+ </ThemeCompositions>;
34
+ ```
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = MDXContent;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _react2 = require("@mdx-js/react");
9
+ var _excluded = ["components"]; // @ts-nocheck
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
12
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
13
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
14
+ /* @jsxRuntime classic */
15
+ /* @jsx mdx */
16
+
17
+ var layoutProps = {};
18
+ var MDXLayout = "wrapper";
19
+ function MDXContent(_ref) {
20
+ var components = _ref.components,
21
+ props = _objectWithoutProperties(_ref, _excluded);
22
+ return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
23
+ components: components,
24
+ mdxType: "MDXLayout"
25
+ }), (0, _react2.mdx)("p", null, "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 ", (0, _react2.mdx)("inlineCode", {
26
+ parentName: "p"
27
+ }, "isFileSupported()"), " compiler API."), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
28
+ parentName: "ul"
29
+ }, (0, _react2.mdx)("inlineCode", {
30
+ parentName: "li"
31
+ }, "createCompiler(compilers: Compiler[], options: CompilerOptions)"), " API to support the creation a Multi-compiler instance which can be used in the Env API (the ", (0, _react2.mdx)("inlineCode", {
32
+ parentName: "li"
33
+ }, "overrideCompiler"), " and ", (0, _react2.mdx)("inlineCode", {
34
+ parentName: "li"
35
+ }, "getCompiler"), " APIs)."), (0, _react2.mdx)("li", {
36
+ parentName: "ul"
37
+ }, "Supports the creation of a multi-compiler build tasks.")), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
38
+ parentName: "pre",
39
+ "className": "language-ts"
40
+ }, "// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")));
41
+ }
42
+ ;
43
+ MDXContent.isMDXComponent = true;
44
+
45
+ //# sourceMappingURL=multi-compiler.mdx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_react2","_excluded","e","__esModule","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","layoutProps","MDXLayout","MDXContent","_ref","components","props","mdx","mdxType","parentName","isMDXComponent"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@3bf24dab4050863ccaacd43c052f5a11ccd78a88","sources":["multi-compiler.mdx.js"],"sourcesContent":["\n// @ts-nocheck\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\n\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 <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>\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAAmC,IAAAE,SAAA,mBAFnC;AAAA,SAAAH,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAN,CAAA,MAAAA,CAAA,GAAAO,SAAA,CAAAC,MAAA,EAAAR,CAAA,UAAAS,CAAA,GAAAF,SAAA,CAAAP,CAAA,YAAAU,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAAA,SAAAO,yBAAAd,CAAA,EAAAS,CAAA,gBAAAT,CAAA,iBAAAe,CAAA,EAAAL,CAAA,EAAAM,CAAA,GAAAC,6BAAA,CAAAjB,CAAA,EAAAS,CAAA,OAAAN,MAAA,CAAAe,qBAAA,QAAAZ,CAAA,GAAAH,MAAA,CAAAe,qBAAA,CAAAlB,CAAA,QAAAU,CAAA,MAAAA,CAAA,GAAAJ,CAAA,CAAAE,MAAA,EAAAE,CAAA,IAAAK,CAAA,GAAAT,CAAA,CAAAI,CAAA,UAAAD,CAAA,CAAAU,OAAA,CAAAJ,CAAA,QAAAK,oBAAA,CAAAR,IAA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;EAAI,2DAA+D,CAChF,CAAC,EACL,IAAA/B,OAAA,CAAA6B,GAAA,eAAK,IAAA7B,OAAA,CAAA6B,GAAA;IAAME,UAAU,EAAC,KAAK;IACvB,WAAW,EAAE;EAAa,mOAM1B,CAAM,CACC,CAAC;AAChB;AACA;AACAN,UAAU,CAACO,cAAc,GAAG,IAAI","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@3bf24dab4050863ccaacd43c052f5a11ccd78a88/dist/multi-compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@3bf24dab4050863ccaacd43c052f5a11ccd78a88/dist/multi-compiler.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Multi compiler docs","identifier":"MultiCompilerDocs"}]};
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as MultiCompiler } from './multi-compiler.mdx';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
3
+ import { MDXLayout } from '@teambit/mdx.ui.mdx-layout';
4
+ import { MultiCompiler } from './index';
5
+
6
+ export const MultiCompilerDocs = () => (
7
+ <ThemeCompositions>
8
+ <MDXLayout>
9
+ <MultiCompiler />
10
+ </MDXLayout>
11
+ </ThemeCompositions>
12
+ );
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: 'Docs for MultiCompiler aspect'
3
+ labels: ['docs', 'aspect', 'extensions']
4
+ ---
5
+
6
+ import { MultiCompiler } from './index';
7
+
8
+ ## Static Content Page in MDX
9
+
10
+ Docs for MultiCompiler aspect
11
+
12
+ ### Component usage
13
+
14
+ Use your component in any mdx file:
15
+
16
+ ```js
17
+ import { MultiCompiler } from '@teambit/aspect-docs.multi-compiler';
18
+
19
+ <MultiCompiler />;
20
+ ```
21
+
22
+ ### Render with theme and MDX providers
23
+
24
+ ```js
25
+ import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
26
+ import { MDXLayout } from '@teambit/ui.mdx-layout';
27
+ import { MultiCompiler } from '@teambit/aspect-docs.multi-compiler';
28
+
29
+ <ThemeCompositions>
30
+ <MDXLayout>
31
+ <MultiCompiler />
32
+ </MDXLayout>
33
+ </ThemeCompositions>;
34
+ ```
@@ -0,0 +1,12 @@
1
+ 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 `isFileSupported()` compiler API.
2
+
3
+ - `createCompiler(compilers: Compiler[], options: CompilerOptions)` API to support the creation a Multi-compiler instance which can be used in the Env API (the `overrideCompiler` and `getCompiler` APIs).
4
+ - Supports the creation of a multi-compiler build tasks.
5
+
6
+ ```ts
7
+ // create a multi compiler instance.
8
+ const compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);
9
+
10
+ // create a multi-compiler build task.
11
+ compiler.createTask('MultiCompiler', compiler);
12
+ ```
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@teambit/compilation.aspect-docs.multi-compiler",
3
+ "version": "0.0.0-3bf24dab4050863ccaacd43c052f5a11ccd78a88",
4
+ "homepage": "https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",
5
+ "main": "dist/index.js",
6
+ "componentId": {
7
+ "scope": "teambit.compilation",
8
+ "name": "aspect-docs/multi-compiler",
9
+ "version": "3bf24dab4050863ccaacd43c052f5a11ccd78a88"
10
+ },
11
+ "dependencies": {
12
+ "core-js": "^3.0.0",
13
+ "@mdx-js/react": "1.6.22",
14
+ "@teambit/mdx.ui.mdx-scope-context": "1.0.0"
15
+ },
16
+ "devDependencies": {
17
+ "@types/react": "^17.0.8",
18
+ "@types/mocha": "9.1.0",
19
+ "@types/node": "12.20.4",
20
+ "@types/react-dom": "^17.0.5",
21
+ "@types/jest": "^26.0.0",
22
+ "@babel/runtime": "7.20.0",
23
+ "@types/testing-library__jest-dom": "5.9.5",
24
+ "@teambit/documenter.theme.theme-compositions": "4.1.5",
25
+ "@teambit/mdx.ui.mdx-layout": "1.0.12"
26
+ },
27
+ "peerDependencies": {
28
+ "react": "^16.8.0 || ^17.0.0",
29
+ "react-dom": "^16.8.0 || ^17.0.0"
30
+ },
31
+ "license": "Apache-2.0",
32
+ "optionalDependencies": {},
33
+ "peerDependenciesMeta": {},
34
+ "private": false,
35
+ "engines": {
36
+ "node": ">=12.22.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/teambit/bit"
41
+ },
42
+ "keywords": [
43
+ "bit",
44
+ "components",
45
+ "collaboration",
46
+ "web",
47
+ "react",
48
+ "react-components",
49
+ "angular",
50
+ "angular-components"
51
+ ]
52
+ }
@@ -0,0 +1,29 @@
1
+ declare module '*.png' {
2
+ const value: any;
3
+ export = value;
4
+ }
5
+ declare module '*.svg' {
6
+ import type { FunctionComponent, SVGProps } from 'react';
7
+
8
+ export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
9
+ const src: string;
10
+ export default src;
11
+ }
12
+
13
+ // @TODO Gilad
14
+ declare module '*.jpg' {
15
+ const value: any;
16
+ export = value;
17
+ }
18
+ declare module '*.jpeg' {
19
+ const value: any;
20
+ export = value;
21
+ }
22
+ declare module '*.gif' {
23
+ const value: any;
24
+ export = value;
25
+ }
26
+ declare module '*.bmp' {
27
+ const value: any;
28
+ export = value;
29
+ }
@@ -0,0 +1,42 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+ declare module '*.module.scss' {
6
+ const classes: { readonly [key: string]: string };
7
+ export default classes;
8
+ }
9
+ declare module '*.module.sass' {
10
+ const classes: { readonly [key: string]: string };
11
+ export default classes;
12
+ }
13
+
14
+ declare module '*.module.less' {
15
+ const classes: { readonly [key: string]: string };
16
+ export default classes;
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const classes: { readonly [key: string]: string };
21
+ export default classes;
22
+ }
23
+
24
+ declare module '*.css' {
25
+ const classes: { readonly [key: string]: string };
26
+ export default classes;
27
+ }
28
+
29
+ declare module '*.sass' {
30
+ const classes: { readonly [key: string]: string };
31
+ export default classes;
32
+ }
33
+
34
+ declare module '*.scss' {
35
+ const classes: { readonly [key: string]: string };
36
+ export default classes;
37
+ }
38
+
39
+ declare module '*.mdx' {
40
+ const component: any;
41
+ export default component;
42
+ }