@teambit/dev-files 1.0.488 → 1.0.490

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.
@@ -1,7 +1,7 @@
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.488" tests="3" failures="0" errors="0" skipped="0">
4
- <testcase classname="dist/dev-files.spec.js" name="get all dev files of the docs aspect"/>
3
+ <testsuite name="teambit.component/dev-files@1.0.490" tests="3" failures="0" errors="0" skipped="0">
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"/>
7
7
  </testsuite>
@@ -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={97559:(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},91047: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(97559);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},16383:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.488",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(16383),i=(t(41594),t(5016)),s=t(65682),d=t(91047),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.includes(o))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.includes(t)||{}.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={32502:(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},20582: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(32502);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},56507:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.490",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(56507),i=(t(41594),t(5016)),s=t(65682),d=t(20582),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.includes(o))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.includes(t)||{}.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})()));
@@ -93,7 +93,11 @@
93
93
  "line": 54,
94
94
  "character": 19
95
95
  },
96
- "name": "EnvsMain"
96
+ "name": "EnvsMain",
97
+ "componentId": {
98
+ "scope": "teambit.envs",
99
+ "name": "envs"
100
+ }
97
101
  },
98
102
  "isOptional": false,
99
103
  "isSpread": false
@@ -113,7 +117,11 @@
113
117
  "line": 56,
114
118
  "character": 24
115
119
  },
116
- "name": "Workspace"
120
+ "name": "Workspace",
121
+ "componentId": {
122
+ "scope": "teambit.workspace",
123
+ "name": "workspace"
124
+ }
117
125
  },
118
126
  "isOptional": false,
119
127
  "isSpread": false
@@ -133,7 +141,8 @@
133
141
  "line": 58,
134
142
  "character": 29
135
143
  },
136
- "name": "DevPatternSlot"
144
+ "name": "DevPatternSlot",
145
+ "internalFilePath": "dev-files.main.runtime.ts"
137
146
  },
138
147
  "isOptional": false,
139
148
  "isSpread": false
@@ -153,7 +162,8 @@
153
162
  "line": 63,
154
163
  "character": 22
155
164
  },
156
- "name": "DevFilesConfig"
165
+ "name": "DevFilesConfig",
166
+ "internalFilePath": "dev-files.main.runtime.ts"
157
167
  },
158
168
  "isOptional": false,
159
169
  "isSpread": false
@@ -206,7 +216,11 @@
206
216
  "line": 71,
207
217
  "character": 39
208
218
  },
209
- "name": "Component"
219
+ "name": "Component",
220
+ "componentId": {
221
+ "scope": "teambit.component",
222
+ "name": "component"
223
+ }
210
224
  },
211
225
  "isOptional": false,
212
226
  "isSpread": false
@@ -250,7 +264,11 @@
250
264
  "line": 141,
251
265
  "character": 36
252
266
  },
253
- "name": "EnvJsonc"
267
+ "name": "EnvJsonc",
268
+ "componentId": {
269
+ "scope": "teambit.envs",
270
+ "name": "envs"
271
+ }
254
272
  },
255
273
  "isOptional": false,
256
274
  "isSpread": false
@@ -270,7 +288,11 @@
270
288
  "line": 141,
271
289
  "character": 53
272
290
  },
273
- "name": "EnvJsonc"
291
+ "name": "EnvJsonc",
292
+ "componentId": {
293
+ "scope": "teambit.envs",
294
+ "name": "envs"
295
+ }
274
296
  },
275
297
  "isOptional": false,
276
298
  "isSpread": false
@@ -292,7 +314,11 @@
292
314
  "line": 141,
293
315
  "character": 72
294
316
  },
295
- "name": "EnvJsonc"
317
+ "name": "EnvJsonc",
318
+ "componentId": {
319
+ "scope": "teambit.envs",
320
+ "name": "envs"
321
+ }
296
322
  }
297
323
  ]
298
324
  },
@@ -334,7 +360,11 @@
334
360
  "line": 170,
335
361
  "character": 29
336
362
  },
337
- "name": "Component"
363
+ "name": "Component",
364
+ "componentId": {
365
+ "scope": "teambit.component",
366
+ "name": "component"
367
+ }
338
368
  },
339
369
  "isOptional": false,
340
370
  "isSpread": false
@@ -415,7 +445,11 @@
415
445
  "line": 179,
416
446
  "character": 24
417
447
  },
418
- "name": "Component"
448
+ "name": "Component",
449
+ "componentId": {
450
+ "scope": "teambit.component",
451
+ "name": "component"
452
+ }
419
453
  },
420
454
  "isOptional": false,
421
455
  "isSpread": false
@@ -500,7 +534,8 @@
500
534
  "line": 188,
501
535
  "character": 31
502
536
  },
503
- "name": "DevPatterns"
537
+ "name": "DevPatterns",
538
+ "internalFilePath": "dev-files.main.runtime.ts"
504
539
  },
505
540
  "isOptional": false,
506
541
  "isSpread": false
@@ -553,7 +588,11 @@
553
588
  "line": 196,
554
589
  "character": 26
555
590
  },
556
- "name": "Component"
591
+ "name": "Component",
592
+ "componentId": {
593
+ "scope": "teambit.component",
594
+ "name": "component"
595
+ }
557
596
  },
558
597
  "isOptional": false,
559
598
  "isSpread": false
@@ -670,7 +709,11 @@
670
709
  "line": 214,
671
710
  "character": 36
672
711
  },
673
- "name": "Component"
712
+ "name": "Component",
713
+ "componentId": {
714
+ "scope": "teambit.component",
715
+ "name": "component"
716
+ }
674
717
  },
675
718
  "isOptional": false,
676
719
  "isSpread": false
@@ -692,7 +735,8 @@
692
735
  "line": 214,
693
736
  "character": 56
694
737
  },
695
- "name": "DevFiles"
738
+ "name": "DevFiles",
739
+ "internalFilePath": "dev-files.ts"
696
740
  }
697
741
  ]
698
742
  },
@@ -817,7 +861,11 @@
817
861
  "line": 237,
818
862
  "character": 58
819
863
  },
820
- "name": "EnvsMain"
864
+ "name": "EnvsMain",
865
+ "componentId": {
866
+ "scope": "teambit.envs",
867
+ "name": "envs"
868
+ }
821
869
  },
822
870
  {
823
871
  "__schema": "TypeRefSchema",
@@ -826,7 +874,11 @@
826
874
  "line": 237,
827
875
  "character": 68
828
876
  },
829
- "name": "Workspace"
877
+ "name": "Workspace",
878
+ "componentId": {
879
+ "scope": "teambit.workspace",
880
+ "name": "workspace"
881
+ }
830
882
  },
831
883
  {
832
884
  "__schema": "TypeRefSchema",
@@ -835,7 +887,11 @@
835
887
  "line": 237,
836
888
  "character": 79
837
889
  },
838
- "name": "ComponentMain"
890
+ "name": "ComponentMain",
891
+ "componentId": {
892
+ "scope": "teambit.component",
893
+ "name": "component"
894
+ }
839
895
  },
840
896
  {
841
897
  "__schema": "TypeRefSchema",
@@ -844,7 +900,11 @@
844
900
  "line": 237,
845
901
  "character": 94
846
902
  },
847
- "name": "GraphqlMain"
903
+ "name": "GraphqlMain",
904
+ "componentId": {
905
+ "scope": "teambit.harmony",
906
+ "name": "graphql"
907
+ }
848
908
  },
849
909
  {
850
910
  "__schema": "TypeRefSchema",
@@ -853,7 +913,11 @@
853
913
  "line": 237,
854
914
  "character": 107
855
915
  },
856
- "name": "ScopeMain"
916
+ "name": "ScopeMain",
917
+ "componentId": {
918
+ "scope": "teambit.scope",
919
+ "name": "scope"
920
+ }
857
921
  }
858
922
  ]
859
923
  },
@@ -875,7 +939,8 @@
875
939
  "line": 238,
876
940
  "character": 13
877
941
  },
878
- "name": "DevFilesConfig"
942
+ "name": "DevFilesConfig",
943
+ "internalFilePath": "dev-files.main.runtime.ts"
879
944
  },
880
945
  "isOptional": false,
881
946
  "isSpread": false
@@ -903,7 +968,8 @@
903
968
  "line": 239,
904
969
  "character": 24
905
970
  },
906
- "name": "DevPatternSlot"
971
+ "name": "DevPatternSlot",
972
+ "internalFilePath": "dev-files.main.runtime.ts"
907
973
  }
908
974
  ]
909
975
  },
@@ -1209,7 +1275,7 @@
1209
1275
  "line": 34,
1210
1276
  "character": 28
1211
1277
  },
1212
- "signature": "(component: Component): DevPattern",
1278
+ "signature": "(component: (component: teambit.component/component) Component): DevPattern",
1213
1279
  "name": "",
1214
1280
  "params": [
1215
1281
  {
@@ -1227,7 +1293,11 @@
1227
1293
  "line": 34,
1228
1294
  "character": 40
1229
1295
  },
1230
- "name": "Component"
1296
+ "name": "Component",
1297
+ "componentId": {
1298
+ "scope": "teambit.component",
1299
+ "name": "component"
1300
+ }
1231
1301
  },
1232
1302
  "isOptional": false,
1233
1303
  "isSpread": false
@@ -1240,7 +1310,8 @@
1240
1310
  "line": 34,
1241
1311
  "character": 54
1242
1312
  },
1243
- "name": "DevPattern"
1313
+ "name": "DevPattern",
1314
+ "internalFilePath": "dev-files.main.runtime.ts"
1244
1315
  },
1245
1316
  "modifiers": []
1246
1317
  }
@@ -1252,7 +1323,8 @@
1252
1323
  "line": 34,
1253
1324
  "character": 68
1254
1325
  },
1255
- "name": "DevPattern"
1326
+ "name": "DevPattern",
1327
+ "internalFilePath": "dev-files.main.runtime.ts"
1256
1328
  }
1257
1329
  ]
1258
1330
  }
@@ -1453,6 +1525,11 @@
1453
1525
  "character": 30
1454
1526
  },
1455
1527
  "name": "SlotRegistry",
1528
+ "componentId": {
1529
+ "scope": "teambit.harmony",
1530
+ "name": "harmony",
1531
+ "version": "0.4.6"
1532
+ },
1456
1533
  "typeArgs": [
1457
1534
  {
1458
1535
  "__schema": "TypeRefSchema",
@@ -1461,7 +1538,8 @@
1461
1538
  "line": 46,
1462
1539
  "character": 43
1463
1540
  },
1464
- "name": "DevPatterns"
1541
+ "name": "DevPatterns",
1542
+ "internalFilePath": "dev-files.main.runtime.ts"
1465
1543
  }
1466
1544
  ]
1467
1545
  }
@@ -1549,7 +1627,11 @@
1549
1627
  "line": 54,
1550
1628
  "character": 19
1551
1629
  },
1552
- "name": "EnvsMain"
1630
+ "name": "EnvsMain",
1631
+ "componentId": {
1632
+ "scope": "teambit.envs",
1633
+ "name": "envs"
1634
+ }
1553
1635
  },
1554
1636
  "isOptional": false,
1555
1637
  "isSpread": false
@@ -1569,7 +1651,11 @@
1569
1651
  "line": 56,
1570
1652
  "character": 24
1571
1653
  },
1572
- "name": "Workspace"
1654
+ "name": "Workspace",
1655
+ "componentId": {
1656
+ "scope": "teambit.workspace",
1657
+ "name": "workspace"
1658
+ }
1573
1659
  },
1574
1660
  "isOptional": false,
1575
1661
  "isSpread": false
@@ -1589,7 +1675,8 @@
1589
1675
  "line": 58,
1590
1676
  "character": 29
1591
1677
  },
1592
- "name": "DevPatternSlot"
1678
+ "name": "DevPatternSlot",
1679
+ "internalFilePath": "dev-files.main.runtime.ts"
1593
1680
  },
1594
1681
  "isOptional": false,
1595
1682
  "isSpread": false
@@ -1609,7 +1696,8 @@
1609
1696
  "line": 63,
1610
1697
  "character": 22
1611
1698
  },
1612
- "name": "DevFilesConfig"
1699
+ "name": "DevFilesConfig",
1700
+ "internalFilePath": "dev-files.main.runtime.ts"
1613
1701
  },
1614
1702
  "isOptional": false,
1615
1703
  "isSpread": false
@@ -1662,7 +1750,11 @@
1662
1750
  "line": 71,
1663
1751
  "character": 39
1664
1752
  },
1665
- "name": "Component"
1753
+ "name": "Component",
1754
+ "componentId": {
1755
+ "scope": "teambit.component",
1756
+ "name": "component"
1757
+ }
1666
1758
  },
1667
1759
  "isOptional": false,
1668
1760
  "isSpread": false
@@ -1706,7 +1798,11 @@
1706
1798
  "line": 141,
1707
1799
  "character": 36
1708
1800
  },
1709
- "name": "EnvJsonc"
1801
+ "name": "EnvJsonc",
1802
+ "componentId": {
1803
+ "scope": "teambit.envs",
1804
+ "name": "envs"
1805
+ }
1710
1806
  },
1711
1807
  "isOptional": false,
1712
1808
  "isSpread": false
@@ -1726,7 +1822,11 @@
1726
1822
  "line": 141,
1727
1823
  "character": 53
1728
1824
  },
1729
- "name": "EnvJsonc"
1825
+ "name": "EnvJsonc",
1826
+ "componentId": {
1827
+ "scope": "teambit.envs",
1828
+ "name": "envs"
1829
+ }
1730
1830
  },
1731
1831
  "isOptional": false,
1732
1832
  "isSpread": false
@@ -1748,7 +1848,11 @@
1748
1848
  "line": 141,
1749
1849
  "character": 72
1750
1850
  },
1751
- "name": "EnvJsonc"
1851
+ "name": "EnvJsonc",
1852
+ "componentId": {
1853
+ "scope": "teambit.envs",
1854
+ "name": "envs"
1855
+ }
1752
1856
  }
1753
1857
  ]
1754
1858
  },
@@ -1790,7 +1894,11 @@
1790
1894
  "line": 170,
1791
1895
  "character": 29
1792
1896
  },
1793
- "name": "Component"
1897
+ "name": "Component",
1898
+ "componentId": {
1899
+ "scope": "teambit.component",
1900
+ "name": "component"
1901
+ }
1794
1902
  },
1795
1903
  "isOptional": false,
1796
1904
  "isSpread": false
@@ -1871,7 +1979,11 @@
1871
1979
  "line": 179,
1872
1980
  "character": 24
1873
1981
  },
1874
- "name": "Component"
1982
+ "name": "Component",
1983
+ "componentId": {
1984
+ "scope": "teambit.component",
1985
+ "name": "component"
1986
+ }
1875
1987
  },
1876
1988
  "isOptional": false,
1877
1989
  "isSpread": false
@@ -1956,7 +2068,8 @@
1956
2068
  "line": 188,
1957
2069
  "character": 31
1958
2070
  },
1959
- "name": "DevPatterns"
2071
+ "name": "DevPatterns",
2072
+ "internalFilePath": "dev-files.main.runtime.ts"
1960
2073
  },
1961
2074
  "isOptional": false,
1962
2075
  "isSpread": false
@@ -2009,7 +2122,11 @@
2009
2122
  "line": 196,
2010
2123
  "character": 26
2011
2124
  },
2012
- "name": "Component"
2125
+ "name": "Component",
2126
+ "componentId": {
2127
+ "scope": "teambit.component",
2128
+ "name": "component"
2129
+ }
2013
2130
  },
2014
2131
  "isOptional": false,
2015
2132
  "isSpread": false
@@ -2126,7 +2243,11 @@
2126
2243
  "line": 214,
2127
2244
  "character": 36
2128
2245
  },
2129
- "name": "Component"
2246
+ "name": "Component",
2247
+ "componentId": {
2248
+ "scope": "teambit.component",
2249
+ "name": "component"
2250
+ }
2130
2251
  },
2131
2252
  "isOptional": false,
2132
2253
  "isSpread": false
@@ -2148,7 +2269,8 @@
2148
2269
  "line": 214,
2149
2270
  "character": 56
2150
2271
  },
2151
- "name": "DevFiles"
2272
+ "name": "DevFiles",
2273
+ "internalFilePath": "dev-files.ts"
2152
2274
  }
2153
2275
  ]
2154
2276
  },
@@ -2273,7 +2395,11 @@
2273
2395
  "line": 237,
2274
2396
  "character": 58
2275
2397
  },
2276
- "name": "EnvsMain"
2398
+ "name": "EnvsMain",
2399
+ "componentId": {
2400
+ "scope": "teambit.envs",
2401
+ "name": "envs"
2402
+ }
2277
2403
  },
2278
2404
  {
2279
2405
  "__schema": "TypeRefSchema",
@@ -2282,7 +2408,11 @@
2282
2408
  "line": 237,
2283
2409
  "character": 68
2284
2410
  },
2285
- "name": "Workspace"
2411
+ "name": "Workspace",
2412
+ "componentId": {
2413
+ "scope": "teambit.workspace",
2414
+ "name": "workspace"
2415
+ }
2286
2416
  },
2287
2417
  {
2288
2418
  "__schema": "TypeRefSchema",
@@ -2291,7 +2421,11 @@
2291
2421
  "line": 237,
2292
2422
  "character": 79
2293
2423
  },
2294
- "name": "ComponentMain"
2424
+ "name": "ComponentMain",
2425
+ "componentId": {
2426
+ "scope": "teambit.component",
2427
+ "name": "component"
2428
+ }
2295
2429
  },
2296
2430
  {
2297
2431
  "__schema": "TypeRefSchema",
@@ -2300,7 +2434,11 @@
2300
2434
  "line": 237,
2301
2435
  "character": 94
2302
2436
  },
2303
- "name": "GraphqlMain"
2437
+ "name": "GraphqlMain",
2438
+ "componentId": {
2439
+ "scope": "teambit.harmony",
2440
+ "name": "graphql"
2441
+ }
2304
2442
  },
2305
2443
  {
2306
2444
  "__schema": "TypeRefSchema",
@@ -2309,7 +2447,11 @@
2309
2447
  "line": 237,
2310
2448
  "character": 107
2311
2449
  },
2312
- "name": "ScopeMain"
2450
+ "name": "ScopeMain",
2451
+ "componentId": {
2452
+ "scope": "teambit.scope",
2453
+ "name": "scope"
2454
+ }
2313
2455
  }
2314
2456
  ]
2315
2457
  },
@@ -2331,7 +2473,8 @@
2331
2473
  "line": 238,
2332
2474
  "character": 13
2333
2475
  },
2334
- "name": "DevFilesConfig"
2476
+ "name": "DevFilesConfig",
2477
+ "internalFilePath": "dev-files.main.runtime.ts"
2335
2478
  },
2336
2479
  "isOptional": false,
2337
2480
  "isSpread": false
@@ -2359,7 +2502,8 @@
2359
2502
  "line": 239,
2360
2503
  "character": 24
2361
2504
  },
2362
- "name": "DevPatternSlot"
2505
+ "name": "DevPatternSlot",
2506
+ "internalFilePath": "dev-files.main.runtime.ts"
2363
2507
  }
2364
2508
  ]
2365
2509
  },
@@ -2518,7 +2662,8 @@
2518
2662
  "line": 29,
2519
2663
  "character": 30
2520
2664
  },
2521
- "name": "DevPatternDescriptor"
2665
+ "name": "DevPatternDescriptor",
2666
+ "internalFilePath": "dev-files.main.runtime.ts"
2522
2667
  }
2523
2668
  ]
2524
2669
  }
@@ -2539,7 +2684,7 @@
2539
2684
  "componentId": {
2540
2685
  "scope": "teambit.component",
2541
2686
  "name": "dev-files",
2542
- "version": "1.0.488"
2687
+ "version": "1.0.490"
2543
2688
  },
2544
2689
  "taggedModuleExports": []
2545
2690
  }
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.490/dist/dev-files.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.490/dist/dev-files.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/dev-files",
3
- "version": "1.0.488",
3
+ "version": "1.0.490",
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.488"
9
+ "version": "1.0.490"
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.488",
16
- "@teambit/graphql": "1.0.488",
17
- "@teambit/cli": "0.0.1065",
18
- "@teambit/component.sources": "0.0.53",
19
- "@teambit/envs": "1.0.488",
20
- "@teambit/legacy.consumer-component": "0.0.2",
21
- "@teambit/scope": "1.0.488",
22
- "@teambit/workspace": "1.0.488"
15
+ "@teambit/component": "1.0.490",
16
+ "@teambit/graphql": "1.0.490",
17
+ "@teambit/cli": "0.0.1067",
18
+ "@teambit/component.sources": "0.0.55",
19
+ "@teambit/envs": "1.0.490",
20
+ "@teambit/legacy.consumer-component": "0.0.4",
21
+ "@teambit/scope": "1.0.490",
22
+ "@teambit/workspace": "1.0.490"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/lodash": "4.14.165",
@@ -31,8 +31,7 @@
31
31
  "peerDependencies": {
32
32
  "react": "^17.0.0 || ^18.0.0",
33
33
  "@types/react": "^17.0.73",
34
- "@types/chai": "4.3.19",
35
- "@teambit/legacy": "1.0.624"
34
+ "@types/chai": "4.3.19"
36
35
  },
37
36
  "license": "Apache-2.0",
38
37
  "optionalDependencies": {},
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_dev-files@1.0.488/dist/dev-files.composition.js';
2
- import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_dev-files@1.0.488/dist/dev-files.docs.mdx';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};