@teambit/dev-files 1.0.329 → 1.0.331

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="3" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/dev-files@1.0.329" tests="3" failures="0" errors="0" skipped="0">
3
+ <testsuite name="teambit.component/dev-files@1.0.331" tests="3" failures="0" errors="0" skipped="0">
4
4
  <testcase classname="dist/dev-files.spec.js" name="get all dev files of the docs aspect" time="0.001"/>
5
5
  <testcase classname="dist/dev-files.spec.js" name="should get undefined as there are no files for aspect id"/>
6
6
  <testcase classname="dist/dev-files.spec.js" name="should list all dev files"/>
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.component/dev-files-preview"]=n():e["teambit.component/dev-files-preview"]=n()}(self,(()=>(()=>{"use strict";var e={75149:(e,n,t)=>{var o={id:"teambit.component/content/dev-files@1.95.9",homepage:"https://bit.dev/teambit/component/content/dev-files",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,s(t(41594));var r=t(5016),a=t(65682),i=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(this,arguments)}function p(e,n){if(null==e)return{};var t,o,r=l(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function l(e,n){if(null==e)return{};var t,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}s.__bit_component=o,d.__bit_component=o,p.__bit_component=o,l.__bit_component=o;var c={},m="wrapper";function u(e){var n=e.components,t=p(e,i);return(0,r.mdx)(m,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Dev Files"),(0,r.mdx)("p",null,"Dev files are component files used for development and not for production. Dev files are determined as such by the Dev Files Aspect."),(0,r.mdx)("p",null,"Categorizing files as dev files is especially useful in dependency resolution, as dependencies can be inferred to be of type ",(0,r.mdx)("inlineCode",{parentName:"p"},"devDependencies")," by looking at the type of files that use them (if 'package-a' is only used by the component's dev files, then it is a dev dependency of that component)."),(0,r.mdx)("p",null,"For example, the ",(0,r.mdx)("inlineCode",{parentName:"p"},"ui/card")," component has the following file structure:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"└── card\n ├── card.composition.tsx\n ├── card.docs.mdx\n ├── card.spec.tsx\n ├── card.tsx\n └── index.ts\n")),(0,r.mdx)("p",null,"To examine it:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ id │ company.scope/ui/card │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ ... │ │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ files │ card.composition.tsx │\n│ │ card.docs.mdx │\n│ │ card.spec.tsx │\n│ │ card.stories.tsx │\n│ │ card.tsx │\n│ │ index.ts │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev files │ card.spec.tsx (teambit.defender/tester) │\n│ │ card.composition.tsx (teambit.compositions/compositions) │\n│ │ card.docs.mdx (teambit.docs/docs) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ extensions │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dependencies │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ peer dependencies │ ... │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("p",null,"The component's compositions, documentation and test files are categorized as 'dev files'.\nTo the side of each listed dev file, you'll find the Aspect that registered it as such (via the Dev Files Aspect)."),(0,r.mdx)("p",null,"If, for example, ",(0,r.mdx)("inlineCode",{parentName:"p"},"@testing-library/react")," will be used by the test file, ",(0,r.mdx)("inlineCode",{parentName:"p"},"card.spec.tsx")," (and no other production file), it will be inferred as a dev dependency of that component."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-tsx"},"// card.spec.tsx\n\nimport React from 'react';\nimport { render } from '@testing-library/react';\nimport { BasicCard } from './card.composition';\n\nit('should render a Heading', () => {\n const { getByText } = render(<BasicCard />);\n const rendered = getByText('Self Host');\n expect(rendered).toBeTruthy();\n});\n")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n│ │ @testing-library/react@12.0.0---------- (package) │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("h2",null,"Configuring Dev Files"),(0,r.mdx)("p",null,"Dev files are configured by setting glob patterns that match the files' names."),(0,r.mdx)("h3",null,"Setting Glob Patterns via ",(0,r.mdx)("inlineCode",{parentName:"h3"},"workspace.jsonc")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"devFilePatterns")," property in ",(0,r.mdx)("inlineCode",{parentName:"p"},"teambit.component/dev-files")," to manually set a glob pattern for dev files."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'{\n "teambit.workspace/variants": {\n "{ui/**}": {\n "teambit.component/dev-files": {\n "devFilePatterns": ["**/*.story.+(js|ts|jsx|tsx)"]\n }\n }\n }\n}\n')),(0,r.mdx)("h3",null,"Setting Glob Patterns via the Dev Files API"),(0,r.mdx)("p",null,"Update your extension or create an new one to register glob patterns for dev files, using the Dev Files ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit create aspect extensions/my-dev-files\n")),(0,r.mdx)("h4",null,"registerDevPattern"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"registerDevPattern: (pattern: string[]) : void\n")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API to register an array of glob patterns."),(0,r.mdx)("p",null,"For example:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"import { MainRuntime } from '@teambit/cli';\nimport { DevFilesAspect, DevFilesMain } from '@teambit/dev-files';\nimport { MyDevFilesAspect } from './my-dev-files.aspect';\n\nexport class MyDevFilesMain {\n constructor(private devFiles: DevFilesMain) {}\n\n static slots = [];\n\n static dependencies = [DevFilesAspect];\n\n static runtime = MainRuntime;\n\n static async provider([devFiles]: [DevFilesMain]) {\n devFiles.registerDevPattern(['**/*.my-dev.*']);\n\n return new MyDevFilesMain(devFiles);\n }\n}\n\nMyDevFilesAspect.addRuntime(MyDevFilesMain);\n")),(0,r.mdx)("p",null,"Configure the workspace config with that aspect to apply it on all components in the workspace:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'// workspace.jsonc\n{\n "company.scope/extensions/my-dev-files": {}\n}\n'))))}u.__bit_component=o,u.isMDXComponent=!0},99433:function(e,n,t){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.DevFiles=void 0;var r=t(75149);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},633:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.329",homepage:"https://bit.cloud/teambit/component/dev-files",exported:!0};function r(){const e=a(t(41594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,r.__bit_component=o,a.__bit_component=o;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/dev-files.svg"}));i.__bit_component=o,n.Logo=i},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var a=n[o]={exports:{}};return e[o].call(a.exports,a,a.exports,t),a.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>v,compositions_metadata:()=>y,overview:()=>x});var r={};t.r(r),t.d(r,{default:()=>f});var a=t(633),i=(t(41594),t(5016)),s=t(65682),d=t(99433),p=t.n(d),l=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c.apply(null,arguments)}var m={},u="wrapper";function f(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||{}.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}(e,l);return(0,i.mdx)(u,c({},m,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{DevFiles:p()},mdxType:"MDXScopeProvider"},(0,i.mdx)(p(),{mdxType:"DevFiles"})))}f.isMDXComponent=!0;const v=[a],x=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.component/dev-files-preview"]=n():e["teambit.component/dev-files-preview"]=n()}(self,(()=>(()=>{"use strict";var e={95407:(e,n,t)=>{var o={id:"teambit.component/content/dev-files@1.95.9",homepage:"https://bit.dev/teambit/component/content/dev-files",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,s(t(41594));var r=t(5016),a=t(65682),i=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(this,arguments)}function p(e,n){if(null==e)return{};var t,o,r=l(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function l(e,n){if(null==e)return{};var t,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}s.__bit_component=o,d.__bit_component=o,p.__bit_component=o,l.__bit_component=o;var c={},m="wrapper";function u(e){var n=e.components,t=p(e,i);return(0,r.mdx)(m,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Dev Files"),(0,r.mdx)("p",null,"Dev files are component files used for development and not for production. Dev files are determined as such by the Dev Files Aspect."),(0,r.mdx)("p",null,"Categorizing files as dev files is especially useful in dependency resolution, as dependencies can be inferred to be of type ",(0,r.mdx)("inlineCode",{parentName:"p"},"devDependencies")," by looking at the type of files that use them (if 'package-a' is only used by the component's dev files, then it is a dev dependency of that component)."),(0,r.mdx)("p",null,"For example, the ",(0,r.mdx)("inlineCode",{parentName:"p"},"ui/card")," component has the following file structure:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"└── card\n ├── card.composition.tsx\n ├── card.docs.mdx\n ├── card.spec.tsx\n ├── card.tsx\n └── index.ts\n")),(0,r.mdx)("p",null,"To examine it:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ id │ company.scope/ui/card │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ ... │ │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ files │ card.composition.tsx │\n│ │ card.docs.mdx │\n│ │ card.spec.tsx │\n│ │ card.stories.tsx │\n│ │ card.tsx │\n│ │ index.ts │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev files │ card.spec.tsx (teambit.defender/tester) │\n│ │ card.composition.tsx (teambit.compositions/compositions) │\n│ │ card.docs.mdx (teambit.docs/docs) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ extensions │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dependencies │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ peer dependencies │ ... │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("p",null,"The component's compositions, documentation and test files are categorized as 'dev files'.\nTo the side of each listed dev file, you'll find the Aspect that registered it as such (via the Dev Files Aspect)."),(0,r.mdx)("p",null,"If, for example, ",(0,r.mdx)("inlineCode",{parentName:"p"},"@testing-library/react")," will be used by the test file, ",(0,r.mdx)("inlineCode",{parentName:"p"},"card.spec.tsx")," (and no other production file), it will be inferred as a dev dependency of that component."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-tsx"},"// card.spec.tsx\n\nimport React from 'react';\nimport { render } from '@testing-library/react';\nimport { BasicCard } from './card.composition';\n\nit('should render a Heading', () => {\n const { getByText } = render(<BasicCard />);\n const rendered = getByText('Self Host');\n expect(rendered).toBeTruthy();\n});\n")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n│ │ @testing-library/react@12.0.0---------- (package) │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("h2",null,"Configuring Dev Files"),(0,r.mdx)("p",null,"Dev files are configured by setting glob patterns that match the files' names."),(0,r.mdx)("h3",null,"Setting Glob Patterns via ",(0,r.mdx)("inlineCode",{parentName:"h3"},"workspace.jsonc")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"devFilePatterns")," property in ",(0,r.mdx)("inlineCode",{parentName:"p"},"teambit.component/dev-files")," to manually set a glob pattern for dev files."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'{\n "teambit.workspace/variants": {\n "{ui/**}": {\n "teambit.component/dev-files": {\n "devFilePatterns": ["**/*.story.+(js|ts|jsx|tsx)"]\n }\n }\n }\n}\n')),(0,r.mdx)("h3",null,"Setting Glob Patterns via the Dev Files API"),(0,r.mdx)("p",null,"Update your extension or create an new one to register glob patterns for dev files, using the Dev Files ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit create aspect extensions/my-dev-files\n")),(0,r.mdx)("h4",null,"registerDevPattern"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"registerDevPattern: (pattern: string[]) : void\n")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API to register an array of glob patterns."),(0,r.mdx)("p",null,"For example:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"import { MainRuntime } from '@teambit/cli';\nimport { DevFilesAspect, DevFilesMain } from '@teambit/dev-files';\nimport { MyDevFilesAspect } from './my-dev-files.aspect';\n\nexport class MyDevFilesMain {\n constructor(private devFiles: DevFilesMain) {}\n\n static slots = [];\n\n static dependencies = [DevFilesAspect];\n\n static runtime = MainRuntime;\n\n static async provider([devFiles]: [DevFilesMain]) {\n devFiles.registerDevPattern(['**/*.my-dev.*']);\n\n return new MyDevFilesMain(devFiles);\n }\n}\n\nMyDevFilesAspect.addRuntime(MyDevFilesMain);\n")),(0,r.mdx)("p",null,"Configure the workspace config with that aspect to apply it on all components in the workspace:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'// workspace.jsonc\n{\n "company.scope/extensions/my-dev-files": {}\n}\n'))))}u.__bit_component=o,u.isMDXComponent=!0},68239:function(e,n,t){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.DevFiles=void 0;var r=t(95407);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},18216:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.331",homepage:"https://bit.cloud/teambit/component/dev-files",exported:!0};function r(){const e=a(t(41594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,r.__bit_component=o,a.__bit_component=o;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/dev-files.svg"}));i.__bit_component=o,n.Logo=i},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var a=n[o]={exports:{}};return e[o].call(a.exports,a,a.exports,t),a.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>v,compositions_metadata:()=>y,overview:()=>x});var r={};t.r(r),t.d(r,{default:()=>f});var a=t(18216),i=(t(41594),t(5016)),s=t(65682),d=t(68239),p=t.n(d),l=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c.apply(null,arguments)}var m={},u="wrapper";function f(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||{}.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}(e,l);return(0,i.mdx)(u,c({},m,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{DevFiles:p()},mdxType:"MDXScopeProvider"},(0,i.mdx)(p(),{mdxType:"DevFiles"})))}f.isMDXComponent=!0;const v=[a],x=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
@@ -91,11 +91,7 @@
91
91
  "line": 54,
92
92
  "character": 19
93
93
  },
94
- "name": "EnvsMain",
95
- "componentId": {
96
- "scope": "teambit.envs",
97
- "name": "envs"
98
- }
94
+ "name": "EnvsMain"
99
95
  },
100
96
  "isOptional": false,
101
97
  "isSpread": false
@@ -115,11 +111,7 @@
115
111
  "line": 56,
116
112
  "character": 24
117
113
  },
118
- "name": "Workspace",
119
- "componentId": {
120
- "scope": "teambit.workspace",
121
- "name": "workspace"
122
- }
114
+ "name": "Workspace"
123
115
  },
124
116
  "isOptional": false,
125
117
  "isSpread": false
@@ -139,8 +131,7 @@
139
131
  "line": 58,
140
132
  "character": 29
141
133
  },
142
- "name": "DevPatternSlot",
143
- "internalFilePath": "dev-files.main.runtime.ts"
134
+ "name": "DevPatternSlot"
144
135
  },
145
136
  "isOptional": false,
146
137
  "isSpread": false
@@ -160,8 +151,7 @@
160
151
  "line": 63,
161
152
  "character": 22
162
153
  },
163
- "name": "DevFilesConfig",
164
- "internalFilePath": "dev-files.main.runtime.ts"
154
+ "name": "DevFilesConfig"
165
155
  },
166
156
  "isOptional": false,
167
157
  "isSpread": false
@@ -214,11 +204,7 @@
214
204
  "line": 71,
215
205
  "character": 39
216
206
  },
217
- "name": "Component",
218
- "componentId": {
219
- "scope": "teambit.component",
220
- "name": "component"
221
- }
207
+ "name": "Component"
222
208
  },
223
209
  "isOptional": false,
224
210
  "isSpread": false
@@ -262,11 +248,7 @@
262
248
  "line": 141,
263
249
  "character": 36
264
250
  },
265
- "name": "EnvJsonc",
266
- "componentId": {
267
- "scope": "teambit.envs",
268
- "name": "envs"
269
- }
251
+ "name": "EnvJsonc"
270
252
  },
271
253
  "isOptional": false,
272
254
  "isSpread": false
@@ -286,11 +268,7 @@
286
268
  "line": 141,
287
269
  "character": 53
288
270
  },
289
- "name": "EnvJsonc",
290
- "componentId": {
291
- "scope": "teambit.envs",
292
- "name": "envs"
293
- }
271
+ "name": "EnvJsonc"
294
272
  },
295
273
  "isOptional": false,
296
274
  "isSpread": false
@@ -312,11 +290,7 @@
312
290
  "line": 141,
313
291
  "character": 72
314
292
  },
315
- "name": "EnvJsonc",
316
- "componentId": {
317
- "scope": "teambit.envs",
318
- "name": "envs"
319
- }
293
+ "name": "EnvJsonc"
320
294
  }
321
295
  ]
322
296
  },
@@ -358,11 +332,7 @@
358
332
  "line": 170,
359
333
  "character": 29
360
334
  },
361
- "name": "Component",
362
- "componentId": {
363
- "scope": "teambit.component",
364
- "name": "component"
365
- }
335
+ "name": "Component"
366
336
  },
367
337
  "isOptional": false,
368
338
  "isSpread": false
@@ -443,11 +413,7 @@
443
413
  "line": 179,
444
414
  "character": 24
445
415
  },
446
- "name": "Component",
447
- "componentId": {
448
- "scope": "teambit.component",
449
- "name": "component"
450
- }
416
+ "name": "Component"
451
417
  },
452
418
  "isOptional": false,
453
419
  "isSpread": false
@@ -532,8 +498,7 @@
532
498
  "line": 188,
533
499
  "character": 31
534
500
  },
535
- "name": "DevPatterns",
536
- "internalFilePath": "dev-files.main.runtime.ts"
501
+ "name": "DevPatterns"
537
502
  },
538
503
  "isOptional": false,
539
504
  "isSpread": false
@@ -586,11 +551,7 @@
586
551
  "line": 196,
587
552
  "character": 26
588
553
  },
589
- "name": "Component",
590
- "componentId": {
591
- "scope": "teambit.component",
592
- "name": "component"
593
- }
554
+ "name": "Component"
594
555
  },
595
556
  "isOptional": false,
596
557
  "isSpread": false
@@ -633,8 +594,7 @@
633
594
  "line": 202,
634
595
  "character": 55
635
596
  },
636
- "name": "LegacyComponent",
637
- "packageName": "@teambit/legacy/dist/consumer/component"
597
+ "name": "LegacyComponent"
638
598
  },
639
599
  "isOptional": false,
640
600
  "isSpread": false
@@ -708,11 +668,7 @@
708
668
  "line": 214,
709
669
  "character": 36
710
670
  },
711
- "name": "Component",
712
- "componentId": {
713
- "scope": "teambit.component",
714
- "name": "component"
715
- }
671
+ "name": "Component"
716
672
  },
717
673
  "isOptional": false,
718
674
  "isSpread": false
@@ -734,8 +690,7 @@
734
690
  "line": 214,
735
691
  "character": 56
736
692
  },
737
- "name": "DevFiles",
738
- "internalFilePath": "dev-files.ts"
693
+ "name": "DevFiles"
739
694
  }
740
695
  ]
741
696
  },
@@ -860,11 +815,7 @@
860
815
  "line": 237,
861
816
  "character": 58
862
817
  },
863
- "name": "EnvsMain",
864
- "componentId": {
865
- "scope": "teambit.envs",
866
- "name": "envs"
867
- }
818
+ "name": "EnvsMain"
868
819
  },
869
820
  {
870
821
  "__schema": "TypeRefSchema",
@@ -873,11 +824,7 @@
873
824
  "line": 237,
874
825
  "character": 68
875
826
  },
876
- "name": "Workspace",
877
- "componentId": {
878
- "scope": "teambit.workspace",
879
- "name": "workspace"
880
- }
827
+ "name": "Workspace"
881
828
  },
882
829
  {
883
830
  "__schema": "TypeRefSchema",
@@ -886,11 +833,7 @@
886
833
  "line": 237,
887
834
  "character": 79
888
835
  },
889
- "name": "ComponentMain",
890
- "componentId": {
891
- "scope": "teambit.component",
892
- "name": "component"
893
- }
836
+ "name": "ComponentMain"
894
837
  },
895
838
  {
896
839
  "__schema": "TypeRefSchema",
@@ -899,11 +842,7 @@
899
842
  "line": 237,
900
843
  "character": 94
901
844
  },
902
- "name": "GraphqlMain",
903
- "componentId": {
904
- "scope": "teambit.harmony",
905
- "name": "graphql"
906
- }
845
+ "name": "GraphqlMain"
907
846
  },
908
847
  {
909
848
  "__schema": "TypeRefSchema",
@@ -912,11 +851,7 @@
912
851
  "line": 237,
913
852
  "character": 107
914
853
  },
915
- "name": "ScopeMain",
916
- "componentId": {
917
- "scope": "teambit.scope",
918
- "name": "scope"
919
- }
854
+ "name": "ScopeMain"
920
855
  }
921
856
  ]
922
857
  },
@@ -938,8 +873,7 @@
938
873
  "line": 238,
939
874
  "character": 13
940
875
  },
941
- "name": "DevFilesConfig",
942
- "internalFilePath": "dev-files.main.runtime.ts"
876
+ "name": "DevFilesConfig"
943
877
  },
944
878
  "isOptional": false,
945
879
  "isSpread": false
@@ -967,8 +901,7 @@
967
901
  "line": 239,
968
902
  "character": 24
969
903
  },
970
- "name": "DevPatternSlot",
971
- "internalFilePath": "dev-files.main.runtime.ts"
904
+ "name": "DevPatternSlot"
972
905
  }
973
906
  ]
974
907
  },
@@ -1273,7 +1206,7 @@
1273
1206
  "line": 34,
1274
1207
  "character": 28
1275
1208
  },
1276
- "signature": "(component: \u001b[2m(component: teambit.component/component)\u001b[22m Component): DevPattern",
1209
+ "signature": "(component: Component): DevPattern",
1277
1210
  "name": "",
1278
1211
  "params": [
1279
1212
  {
@@ -1291,11 +1224,7 @@
1291
1224
  "line": 34,
1292
1225
  "character": 40
1293
1226
  },
1294
- "name": "Component",
1295
- "componentId": {
1296
- "scope": "teambit.component",
1297
- "name": "component"
1298
- }
1227
+ "name": "Component"
1299
1228
  },
1300
1229
  "isOptional": false,
1301
1230
  "isSpread": false
@@ -1308,8 +1237,7 @@
1308
1237
  "line": 34,
1309
1238
  "character": 54
1310
1239
  },
1311
- "name": "DevPattern",
1312
- "internalFilePath": "dev-files.main.runtime.ts"
1240
+ "name": "DevPattern"
1313
1241
  },
1314
1242
  "modifiers": []
1315
1243
  }
@@ -1321,8 +1249,7 @@
1321
1249
  "line": 34,
1322
1250
  "character": 68
1323
1251
  },
1324
- "name": "DevPattern",
1325
- "internalFilePath": "dev-files.main.runtime.ts"
1252
+ "name": "DevPattern"
1326
1253
  }
1327
1254
  ]
1328
1255
  }
@@ -1523,11 +1450,6 @@
1523
1450
  "character": 30
1524
1451
  },
1525
1452
  "name": "SlotRegistry",
1526
- "componentId": {
1527
- "scope": "teambit.harmony",
1528
- "name": "harmony",
1529
- "version": "0.4.6"
1530
- },
1531
1453
  "typeArgs": [
1532
1454
  {
1533
1455
  "__schema": "TypeRefSchema",
@@ -1536,8 +1458,7 @@
1536
1458
  "line": 46,
1537
1459
  "character": 43
1538
1460
  },
1539
- "name": "DevPatterns",
1540
- "internalFilePath": "dev-files.main.runtime.ts"
1461
+ "name": "DevPatterns"
1541
1462
  }
1542
1463
  ]
1543
1464
  }
@@ -1625,11 +1546,7 @@
1625
1546
  "line": 54,
1626
1547
  "character": 19
1627
1548
  },
1628
- "name": "EnvsMain",
1629
- "componentId": {
1630
- "scope": "teambit.envs",
1631
- "name": "envs"
1632
- }
1549
+ "name": "EnvsMain"
1633
1550
  },
1634
1551
  "isOptional": false,
1635
1552
  "isSpread": false
@@ -1649,11 +1566,7 @@
1649
1566
  "line": 56,
1650
1567
  "character": 24
1651
1568
  },
1652
- "name": "Workspace",
1653
- "componentId": {
1654
- "scope": "teambit.workspace",
1655
- "name": "workspace"
1656
- }
1569
+ "name": "Workspace"
1657
1570
  },
1658
1571
  "isOptional": false,
1659
1572
  "isSpread": false
@@ -1673,8 +1586,7 @@
1673
1586
  "line": 58,
1674
1587
  "character": 29
1675
1588
  },
1676
- "name": "DevPatternSlot",
1677
- "internalFilePath": "dev-files.main.runtime.ts"
1589
+ "name": "DevPatternSlot"
1678
1590
  },
1679
1591
  "isOptional": false,
1680
1592
  "isSpread": false
@@ -1694,8 +1606,7 @@
1694
1606
  "line": 63,
1695
1607
  "character": 22
1696
1608
  },
1697
- "name": "DevFilesConfig",
1698
- "internalFilePath": "dev-files.main.runtime.ts"
1609
+ "name": "DevFilesConfig"
1699
1610
  },
1700
1611
  "isOptional": false,
1701
1612
  "isSpread": false
@@ -1748,11 +1659,7 @@
1748
1659
  "line": 71,
1749
1660
  "character": 39
1750
1661
  },
1751
- "name": "Component",
1752
- "componentId": {
1753
- "scope": "teambit.component",
1754
- "name": "component"
1755
- }
1662
+ "name": "Component"
1756
1663
  },
1757
1664
  "isOptional": false,
1758
1665
  "isSpread": false
@@ -1796,11 +1703,7 @@
1796
1703
  "line": 141,
1797
1704
  "character": 36
1798
1705
  },
1799
- "name": "EnvJsonc",
1800
- "componentId": {
1801
- "scope": "teambit.envs",
1802
- "name": "envs"
1803
- }
1706
+ "name": "EnvJsonc"
1804
1707
  },
1805
1708
  "isOptional": false,
1806
1709
  "isSpread": false
@@ -1820,11 +1723,7 @@
1820
1723
  "line": 141,
1821
1724
  "character": 53
1822
1725
  },
1823
- "name": "EnvJsonc",
1824
- "componentId": {
1825
- "scope": "teambit.envs",
1826
- "name": "envs"
1827
- }
1726
+ "name": "EnvJsonc"
1828
1727
  },
1829
1728
  "isOptional": false,
1830
1729
  "isSpread": false
@@ -1846,11 +1745,7 @@
1846
1745
  "line": 141,
1847
1746
  "character": 72
1848
1747
  },
1849
- "name": "EnvJsonc",
1850
- "componentId": {
1851
- "scope": "teambit.envs",
1852
- "name": "envs"
1853
- }
1748
+ "name": "EnvJsonc"
1854
1749
  }
1855
1750
  ]
1856
1751
  },
@@ -1892,11 +1787,7 @@
1892
1787
  "line": 170,
1893
1788
  "character": 29
1894
1789
  },
1895
- "name": "Component",
1896
- "componentId": {
1897
- "scope": "teambit.component",
1898
- "name": "component"
1899
- }
1790
+ "name": "Component"
1900
1791
  },
1901
1792
  "isOptional": false,
1902
1793
  "isSpread": false
@@ -1977,11 +1868,7 @@
1977
1868
  "line": 179,
1978
1869
  "character": 24
1979
1870
  },
1980
- "name": "Component",
1981
- "componentId": {
1982
- "scope": "teambit.component",
1983
- "name": "component"
1984
- }
1871
+ "name": "Component"
1985
1872
  },
1986
1873
  "isOptional": false,
1987
1874
  "isSpread": false
@@ -2066,8 +1953,7 @@
2066
1953
  "line": 188,
2067
1954
  "character": 31
2068
1955
  },
2069
- "name": "DevPatterns",
2070
- "internalFilePath": "dev-files.main.runtime.ts"
1956
+ "name": "DevPatterns"
2071
1957
  },
2072
1958
  "isOptional": false,
2073
1959
  "isSpread": false
@@ -2120,11 +2006,7 @@
2120
2006
  "line": 196,
2121
2007
  "character": 26
2122
2008
  },
2123
- "name": "Component",
2124
- "componentId": {
2125
- "scope": "teambit.component",
2126
- "name": "component"
2127
- }
2009
+ "name": "Component"
2128
2010
  },
2129
2011
  "isOptional": false,
2130
2012
  "isSpread": false
@@ -2167,8 +2049,7 @@
2167
2049
  "line": 202,
2168
2050
  "character": 55
2169
2051
  },
2170
- "name": "LegacyComponent",
2171
- "packageName": "@teambit/legacy/dist/consumer/component"
2052
+ "name": "LegacyComponent"
2172
2053
  },
2173
2054
  "isOptional": false,
2174
2055
  "isSpread": false
@@ -2242,11 +2123,7 @@
2242
2123
  "line": 214,
2243
2124
  "character": 36
2244
2125
  },
2245
- "name": "Component",
2246
- "componentId": {
2247
- "scope": "teambit.component",
2248
- "name": "component"
2249
- }
2126
+ "name": "Component"
2250
2127
  },
2251
2128
  "isOptional": false,
2252
2129
  "isSpread": false
@@ -2268,8 +2145,7 @@
2268
2145
  "line": 214,
2269
2146
  "character": 56
2270
2147
  },
2271
- "name": "DevFiles",
2272
- "internalFilePath": "dev-files.ts"
2148
+ "name": "DevFiles"
2273
2149
  }
2274
2150
  ]
2275
2151
  },
@@ -2394,11 +2270,7 @@
2394
2270
  "line": 237,
2395
2271
  "character": 58
2396
2272
  },
2397
- "name": "EnvsMain",
2398
- "componentId": {
2399
- "scope": "teambit.envs",
2400
- "name": "envs"
2401
- }
2273
+ "name": "EnvsMain"
2402
2274
  },
2403
2275
  {
2404
2276
  "__schema": "TypeRefSchema",
@@ -2407,11 +2279,7 @@
2407
2279
  "line": 237,
2408
2280
  "character": 68
2409
2281
  },
2410
- "name": "Workspace",
2411
- "componentId": {
2412
- "scope": "teambit.workspace",
2413
- "name": "workspace"
2414
- }
2282
+ "name": "Workspace"
2415
2283
  },
2416
2284
  {
2417
2285
  "__schema": "TypeRefSchema",
@@ -2420,11 +2288,7 @@
2420
2288
  "line": 237,
2421
2289
  "character": 79
2422
2290
  },
2423
- "name": "ComponentMain",
2424
- "componentId": {
2425
- "scope": "teambit.component",
2426
- "name": "component"
2427
- }
2291
+ "name": "ComponentMain"
2428
2292
  },
2429
2293
  {
2430
2294
  "__schema": "TypeRefSchema",
@@ -2433,11 +2297,7 @@
2433
2297
  "line": 237,
2434
2298
  "character": 94
2435
2299
  },
2436
- "name": "GraphqlMain",
2437
- "componentId": {
2438
- "scope": "teambit.harmony",
2439
- "name": "graphql"
2440
- }
2300
+ "name": "GraphqlMain"
2441
2301
  },
2442
2302
  {
2443
2303
  "__schema": "TypeRefSchema",
@@ -2446,11 +2306,7 @@
2446
2306
  "line": 237,
2447
2307
  "character": 107
2448
2308
  },
2449
- "name": "ScopeMain",
2450
- "componentId": {
2451
- "scope": "teambit.scope",
2452
- "name": "scope"
2453
- }
2309
+ "name": "ScopeMain"
2454
2310
  }
2455
2311
  ]
2456
2312
  },
@@ -2472,8 +2328,7 @@
2472
2328
  "line": 238,
2473
2329
  "character": 13
2474
2330
  },
2475
- "name": "DevFilesConfig",
2476
- "internalFilePath": "dev-files.main.runtime.ts"
2331
+ "name": "DevFilesConfig"
2477
2332
  },
2478
2333
  "isOptional": false,
2479
2334
  "isSpread": false
@@ -2501,8 +2356,7 @@
2501
2356
  "line": 239,
2502
2357
  "character": 24
2503
2358
  },
2504
- "name": "DevPatternSlot",
2505
- "internalFilePath": "dev-files.main.runtime.ts"
2359
+ "name": "DevPatternSlot"
2506
2360
  }
2507
2361
  ]
2508
2362
  },
@@ -2661,8 +2515,7 @@
2661
2515
  "line": 29,
2662
2516
  "character": 30
2663
2517
  },
2664
- "name": "DevPatternDescriptor",
2665
- "internalFilePath": "dev-files.main.runtime.ts"
2518
+ "name": "DevPatternDescriptor"
2666
2519
  }
2667
2520
  ]
2668
2521
  }
@@ -2683,7 +2536,7 @@
2683
2536
  "componentId": {
2684
2537
  "scope": "teambit.component",
2685
2538
  "name": "dev-files",
2686
- "version": "1.0.329"
2539
+ "version": "1.0.331"
2687
2540
  },
2688
2541
  "taggedModuleExports": []
2689
2542
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.329/dist/dev-files.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.329/dist/dev-files.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.331/dist/dev-files.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.331/dist/dev-files.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@teambit/dev-files",
3
- "version": "1.0.329",
3
+ "version": "1.0.331",
4
4
  "homepage": "https://bit.cloud/teambit/component/dev-files",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "dev-files",
9
- "version": "1.0.329"
9
+ "version": "1.0.331"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
13
13
  "lodash": "4.17.21",
14
14
  "@teambit/harmony": "0.4.6",
15
- "@teambit/component": "1.0.329",
16
- "@teambit/graphql": "1.0.329",
17
- "@teambit/cli": "0.0.906",
18
- "@teambit/envs": "1.0.329",
19
- "@teambit/scope": "1.0.329",
20
- "@teambit/workspace": "1.0.329"
15
+ "@teambit/component": "1.0.331",
16
+ "@teambit/graphql": "1.0.331",
17
+ "@teambit/cli": "0.0.908",
18
+ "@teambit/envs": "1.0.331",
19
+ "@teambit/scope": "1.0.331",
20
+ "@teambit/workspace": "1.0.331"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/lodash": "4.14.165",
@@ -25,7 +25,7 @@
25
25
  "chai": "4.3.0",
26
26
  "@types/mocha": "9.1.0",
27
27
  "@teambit/component.content.dev-files": "1.95.9",
28
- "@teambit/harmony.envs.core-aspect-env": "0.0.39"
28
+ "@teambit/harmony.envs.core-aspect-env": "0.0.42"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "^17.0.0 || ^18.0.0",