@teambit/dependencies.aspect-docs.yarn 0.0.0-4ecd83774c92d6aa45afd5c95dc65a9580603d27

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 Yarn } from './yarn.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.Yarn = void 0;
7
+ var yarn_mdx_1 = require("./yarn.mdx");
8
+ Object.defineProperty(exports, "Yarn", { enumerable: true, get: function () { return __importDefault(yarn_mdx_1).default; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA6C;AAApC,iHAAA,OAAO,OAAQ"}
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.dependencies_aspect-docs_yarn@4ecd83774c92d6aa45afd5c95dc65a9580603d27/dist/yarn.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.dependencies_aspect-docs_yarn@4ecd83774c92d6aa45afd5c95dc65a9580603d27/dist/yarn.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Yarn docs","identifier":"YarnDocs"}]};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const YarnDocs: () => 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.YarnDocs = 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 YarnDocs = () => (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.Yarn, null))));
14
+ exports.YarnDocs = YarnDocs;
15
+ //# sourceMappingURL=yarn.composition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yarn.composition.js","sourceRoot":"","sources":["../yarn.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sGAAiF;AACjF,kEAAuD;AACvD,mCAA+B;AAExB,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAC5B,8BAAC,uDAAiB;IAChB,8BAAC,6BAAS;QACR,8BAAC,YAAI,OAAG,CACE,CACM,CACrB,CAAC;AANW,QAAA,QAAQ,YAMnB"}
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: 'Docs for Yarn aspect'
3
+ labels: ['docs', 'aspect', 'extensions']
4
+ ---
5
+
6
+ import { Yarn } from './index';
7
+
8
+ ## Static Content Page in MDX
9
+
10
+ Docs for Yarn aspect
11
+
12
+ ### Component usage
13
+
14
+ Use your component in any mdx file:
15
+
16
+ ```js
17
+ import { Yarn } from '@teambit/aspect-docs.yarn';
18
+
19
+ <Yarn />;
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 { Yarn } from '@teambit/aspect-docs.yarn';
28
+
29
+ <ThemeCompositions>
30
+ <MDXLayout>
31
+ <Yarn />
32
+ </MDXLayout>
33
+ </ThemeCompositions>;
34
+ ```
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = MDXContent;
7
+ var _jsxRuntime = require("react/jsx-runtime");
8
+ var _react = require("@mdx-js/react");
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
+ MDXContent.isMDXComponent = true;
16
+ function _createMdxContent(props) {
17
+ var _components = _objectSpread(_objectSpread({
18
+ blockquote: "blockquote",
19
+ code: "code",
20
+ h2: "h2",
21
+ hr: "hr",
22
+ p: "p",
23
+ pre: "pre",
24
+ strong: "strong"
25
+ }, (0, _react.useMDXComponents)()), props.components);
26
+ return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
27
+ children: [(0, _jsxRuntime.jsxs)(_components.p, {
28
+ children: ["Yarn is a Bit aspect that enables the use of the Yarn ", (0, _jsxRuntime.jsx)(_components.strong, {
29
+ children: "v2"
30
+ }), " package manager in a Bit workspace (the Yarn aspect utilizes Yarn's programmatic API).\nThe yarn aspect is used ", (0, _jsxRuntime.jsx)(_components.strong, {
31
+ children: "indirectly"
32
+ }), " by the 'Dependency Resolver'"]
33
+ }), "\n", (0, _jsxRuntime.jsx)(_components.h2, {
34
+ children: "Quickstart"
35
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.p, {
36
+ children: ["To start using the yarn aspect as a package manager for your workspace, set the Dependency Resolver ", (0, _jsxRuntime.jsx)(_components.code, {
37
+ children: "packageManager"
38
+ }), " property to 'yarn'."]
39
+ }), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
40
+ children: (0, _jsxRuntime.jsx)(_components.code, {
41
+ className: "language-json",
42
+ children: "{\n \"teambit.dependencies/dependency-resolver\": {\n \"packageManager\": \"teambit.dependencies/yarn\"\n }\n}\n"
43
+ })
44
+ }), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
45
+ children: ["\n", (0, _jsxRuntime.jsx)(_components.p, {
46
+ children: "Package manager are only configurable at the workspace configuration root-level.\nThat means, different components in the same workspace cannot use different package manager."
47
+ }), "\n"]
48
+ }), "\n", (0, _jsxRuntime.jsx)(_components.hr, {}), "\n", (0, _jsxRuntime.jsxs)(_components.blockquote, {
49
+ children: ["\n", (0, _jsxRuntime.jsx)(_components.p, {
50
+ children: "Packages on NPM will be installed from Bit.dev's registry instead of NPM's. This will be done using the user's Bit credentials."
51
+ }), "\n"]
52
+ })]
53
+ });
54
+ }
55
+ function MDXContent() {
56
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
57
+ var _provideComponents$pr = _objectSpread(_objectSpread({}, (0, _react.useMDXComponents)()), props.components),
58
+ MDXLayout = _provideComponents$pr.wrapper;
59
+ return MDXLayout ? (0, _jsxRuntime.jsx)(MDXLayout, _objectSpread(_objectSpread({}, props), {}, {
60
+ children: (0, _jsxRuntime.jsx)(_createMdxContent, _objectSpread({}, props))
61
+ })) : _createMdxContent(props);
62
+ }
63
+
64
+ //# sourceMappingURL=yarn.mdx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_jsxRuntime","require","_react","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","toPrimitive","call","TypeError","String","Number","MDXContent","isMDXComponent","_createMdxContent","props","_components","blockquote","code","h2","hr","p","pre","strong","_provideComponents","components","_jsxs","_Fragment","children","_jsx","className","undefined","_provideComponents$pr","MDXLayout","wrapper"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.dependencies_aspect-docs_yarn@4ecd83774c92d6aa45afd5c95dc65a9580603d27","sources":["yarn.mdx.js"],"sourcesContent":["MDXContent.isMDXComponent = true;\nimport {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from \"react/jsx-runtime\";\nimport {useMDXComponents as _provideComponents} from \"@mdx-js/react\";\nfunction _createMdxContent(props) {\n const _components = {\n blockquote: \"blockquote\",\n code: \"code\",\n h2: \"h2\",\n hr: \"hr\",\n p: \"p\",\n pre: \"pre\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Yarn is a Bit aspect that enables the use of the Yarn \", _jsx(_components.strong, {\n children: \"v2\"\n }), \" package manager in a Bit workspace (the Yarn aspect utilizes Yarn's programmatic API).\\nThe yarn aspect is used \", _jsx(_components.strong, {\n children: \"indirectly\"\n }), \" by the 'Dependency Resolver'\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Quickstart\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To start using the yarn aspect as a package manager for your workspace, set the Dependency Resolver \", _jsx(_components.code, {\n children: \"packageManager\"\n }), \" property to 'yarn'.\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-json\",\n children: \"{\\n \\\"teambit.dependencies/dependency-resolver\\\": {\\n \\\"packageManager\\\": \\\"teambit.dependencies/yarn\\\"\\n }\\n}\\n\"\n })\n }), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsx(_components.p, {\n children: \"Package manager are only configurable at the workspace configuration root-level.\\nThat means, different components in the same workspace cannot use different package manager.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.hr, {}), \"\\n\", _jsxs(_components.blockquote, {\n children: [\"\\n\", _jsx(_components.p, {\n children: \"Packages on NPM will be installed from Bit.dev's registry instead of NPM's. This will be done using the user's Bit credentials.\"\n }), \"\\n\"]\n })]\n });\n}\nexport default function MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\n"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAqE,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAA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AAAvC,aAAA,CAAAA,aAAA,KACK,IAAA+B,uBAAkB,EAAC,CAAC,GACpBT,KAAK,CAACU,UAAU;IAFLQ,SAAS,GAAAD,qBAAA,CAAlBE,OAAO;EAId,OAAOD,SAAS,GAAG,IAAAJ,eAAI,EAACI,SAAS,EAAAxC,aAAA,CAAAA,aAAA,KAC5BsB,KAAK;IACRa,QAAQ,EAAE,IAAAC,eAAI,EAACf,iBAAiB,EAAArB,aAAA,KAC3BsB,KAAK,CACT;EAAC,EACH,CAAC,GAAGD,iBAAiB,CAACC,KAAK,CAAC;AAC/B","ignoreList":[]}
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as Yarn } from './yarn.mdx';
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@teambit/dependencies.aspect-docs.yarn",
3
+ "version": "0.0.0-4ecd83774c92d6aa45afd5c95dc65a9580603d27",
4
+ "homepage": "https://bit.cloud/teambit/dependencies/aspect-docs/yarn",
5
+ "main": "dist/index.js",
6
+ "componentId": {
7
+ "scope": "teambit.dependencies",
8
+ "name": "aspect-docs/yarn",
9
+ "version": "4ecd83774c92d6aa45afd5c95dc65a9580603d27"
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": "^19.0.0",
18
+ "@types/mocha": "9.1.0",
19
+ "@types/node": "12.20.4",
20
+ "@types/react-dom": "^19.0.0",
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": "^17.0.0 || ^18.0.0 || ^19.0.0",
29
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.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
+ }
@@ -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 { Yarn } from './index';
5
+
6
+ export const YarnDocs = () => (
7
+ <ThemeCompositions>
8
+ <MDXLayout>
9
+ <Yarn />
10
+ </MDXLayout>
11
+ </ThemeCompositions>
12
+ );
package/yarn.docs.mdx ADDED
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: 'Docs for Yarn aspect'
3
+ labels: ['docs', 'aspect', 'extensions']
4
+ ---
5
+
6
+ import { Yarn } from './index';
7
+
8
+ ## Static Content Page in MDX
9
+
10
+ Docs for Yarn aspect
11
+
12
+ ### Component usage
13
+
14
+ Use your component in any mdx file:
15
+
16
+ ```js
17
+ import { Yarn } from '@teambit/aspect-docs.yarn';
18
+
19
+ <Yarn />;
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 { Yarn } from '@teambit/aspect-docs.yarn';
28
+
29
+ <ThemeCompositions>
30
+ <MDXLayout>
31
+ <Yarn />
32
+ </MDXLayout>
33
+ </ThemeCompositions>;
34
+ ```
package/yarn.mdx ADDED
@@ -0,0 +1,21 @@
1
+ Yarn is a Bit aspect that enables the use of the Yarn **v2** package manager in a Bit workspace (the Yarn aspect utilizes Yarn's programmatic API).
2
+ The yarn aspect is used **indirectly** by the 'Dependency Resolver'
3
+
4
+ ## Quickstart
5
+
6
+ To start using the yarn aspect as a package manager for your workspace, set the Dependency Resolver `packageManager` property to 'yarn'.
7
+
8
+ ```json
9
+ {
10
+ "teambit.dependencies/dependency-resolver": {
11
+ "packageManager": "teambit.dependencies/yarn"
12
+ }
13
+ }
14
+ ```
15
+
16
+ > Package manager are only configurable at the workspace configuration root-level.
17
+ > That means, different components in the same workspace cannot use different package manager.
18
+
19
+ ---
20
+
21
+ > Packages on NPM will be installed from Bit.dev's registry instead of NPM's. This will be done using the user's Bit credentials.