@teambit/compositions 1.0.420 → 1.0.422

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.compositions/compositions@1.0.420" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compositions/compositions@1.0.422" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["teambit.compositions/compositions-preview"]=o():e["teambit.compositions/compositions-preview"]=o()}(self,(()=>(()=>{"use strict";var e={98020:(e,o,t)=>{var n={id:"teambit.compositions/aspect-docs/compositions@0.0.168",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0};Object.defineProperty(o,"__esModule",{value:!0}),o.default=f,a(t(41594));var i=t(5016),s=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(null,arguments)}function p(e,o){if(null==e)return{};var t,n,i=m(e,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],o.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function m(e,o){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(o.includes(n))continue;t[n]=e[n]}return t}a.__bit_component=n,r.__bit_component=n,p.__bit_component=n,m.__bit_component=n;var c=function(e){return function(o){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,i.mdx)("div",o)}};c.__bit_component=n;var l=c("CompositionCard"),d=c("Button"),u={},h="wrapper";function f(e){var o=e.components,t=p(e,s);return(0,i.mdx)(h,r({},u,t,{components:o,mdxType:"MDXLayout"}),(0,i.mdx)("p",null,"The Compositions aspect renders component 'compositions' in isolation and displays them in the Workspace UI and Scope UI.\n'Compositions' are, essentially, small apps that exhibit and test a component in different contexts and variations."),(0,i.mdx)("p",null,'The Compositions aspect is an essential tool to authoring independent components as it renders component instances in "controlled environments", isolated and un-affected by code that was not purposefully included.\nThis sterile environment provides an accurate understanding of their look and behavior, for manual and automated testings.'),(0,i.mdx)("p",null,"Moreover, a component's composition is a way to demonstrate the component for other developers looking to use it, and non-developers, such as designers and product managers, looking to inspect it."),(0,i.mdx)("h4",null,"Features"),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Create component examples with zero configuration:")," Write your compositions the same way you write your components.\nPlace your examples in the component's ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.*")," file to have them rendered in the Workspace UI with no additional configurations."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"See your components render in all relevant contexts:")," - Render components in the visual context of related and dependant components to learn how changes impact other components during development."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Hot-reloading in workspace UI:")," - See various instances of a component render live to reflect most recent changes. Get immediate feedbacks to changes in your component's code."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Compositions as visual documentation:")," - Compositions play an essential part in a component documentation. They demonstrate potential behaviors and use cases for that component. Compositions are another step in promoting components' discoverability, both in your local workspace and in remote scopes."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Compositions as test samples for your CI")," - Use your compositions as samples for automated integration and unit tests, to track and view the impact of changes on all affected components in your different scopes."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Developer-Designers collaboration")," - Make visual compositions accessible to designers (and everyone else) to include them in the development and release process of web applications, in a visual way."),(0,i.mdx)("h2",null,"Quickstart & configurations"),(0,i.mdx)("p",null,"Compositions require no configuration. Any ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.*")," or ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.composition.*")," file will be loaded and displayed in the workspace UI.\nAny tagged version of a component will have its composition included in its build artifacts, to be used as part of the component's preview."),(0,i.mdx)("p",null,"To add your own file pattern for compositions (to be automatically loaded and displayed by the Compositions aspect):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-json"},'// In the workspace configuration file\n{\n "teambit.compositions/compositions": {\n "compositionFilePattern": ["**.my-pattern.tsx", "**.my-pattern-2.jsx"]\n }\n}\n')),(0,i.mdx)("h2",null,"Creating compositions"),(0,i.mdx)("blockquote",null,(0,i.mdx)("p",{parentName:"blockquote"},"This document uses React code as snippets.")),(0,i.mdx)("p",null,"Writing a composition does not require any configuration. Import the component to the component's ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.tsx")," file, use it to build a composition and export the new component (a.k.a, the composition) with a named export."),(0,i.mdx)("p",null,"The name of the export will be converted from PascalCase/camelCase and used for the composition name (e.g, ",(0,i.mdx)("inlineCode",{parentName:"p"},'"CompositionName" --\x3e "Composition name"'),")."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"For example"),", we'll create two compositions, 'Primary button' and 'Secondary button', each of which demonstrates a different variant or usage of that component.\nBoth compositions will be in themed (i.e, displayed in a specific context)."),(0,i.mdx)("p",null,"First, we'll create a new composition file in the component's directory:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"touch path/to/component/directory/<component-name>.compositions.tsx\n")),(0,i.mdx)("p",null,"Then, we'll import the component and use it to create the compositions:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx{}[button.compositions.jsx]"},"import React from 'react';\nimport { IrisTheme } from '@my-organization/design-system/iris-theme';\nimport { Button } from './button';\n\nexport const PrimaryButton = () => {\n return (\n <IrisTheme>\n <Button importance=\"cta\" style={{ width: 120 }}>\n Primary\n </Button>\n </IrisTheme>\n );\n};\n\nexport const SecondaryButton = () => {\n return (\n <IrisTheme>\n <Button importance=\"ghost\" style={{ width: 120 }}>\n Secondary\n </Button>\n </IrisTheme>\n );\n};\n")),(0,i.mdx)("div",{style:{width:450,display:"flex",justifyContent:"space-between"}},(0,i.mdx)(l,{Composition:function(){return(0,i.mdx)(d,{importance:"cta",style:{width:120},mdxType:"Button"},"Primary")},name:"Primary",mdxType:"CompositionCard"}),(0,i.mdx)(l,{Composition:function(){return(0,i.mdx)(d,{importance:"ghost",style:{width:120},mdxType:"Button"},"Secondary")},name:"Secondary",mdxType:"CompositionCard"})),(0,i.mdx)("h2",null,"Loading compositions"),(0,i.mdx)("p",null,"The Environment in use will automatically detect the composition file for each component and use it to load its compositions to the workspace UI."),(0,i.mdx)("h2",null,"Viewing component compositions"),(0,i.mdx)("p",null,"To explore compositions in your Workspace UI, start the local development server for your workspace (",(0,i.mdx)("inlineCode",{parentName:"p"},"bit start"),"),\nbrowse to a specific component and select the ",(0,i.mdx)("strong",{parentName:"p"},"compositions")," tab.\nThere, you will see the full list of compositions available for that component, along with additional component meta-data."),(0,i.mdx)("h2",null,"Using compositions for automated testings"),(0,i.mdx)("p",null,"Component compositions can be used in automated testing as well as manual examinations. To do that, simply import the compositions in your test file to run the appropriate tests."),(0,i.mdx)("p",null,"For example, the below snapshot test checks the 'Button' component when the 'variant' prop is set to 'primary'.\nIn addition to simple unit tests, compositions play an important role in integration test as they provide feedback as to how a change to the component may affect potential usages."),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React from 'react';\nimport testRenderer from 'react-test-renderer';\nimport { PrimaryButton } from './button.compositions.tsx';\n\ndescribe('Button', () => {\n it('renders correctly as \"primary\"', () => {\n const component = testRenderer.create(<PrimaryButton>test primary variant</PrimaryButton>);\n const tree = component.toJSON();\n expect(tree).toMatchSnapshot();\n });\n});\n")),(0,i.mdx)("h2",null,"Setting providers for all your compositions"),(0,i.mdx)("p",null,"Extend the React environment to customize its list of providers with your own composition providers.\nThe extended environment will then wrap every composition with these providers to make sure your themes or mock data are accessible to all of them,\nwithout you having to repeat that task ever again."),(0,i.mdx)("h2",null,"Compositions and storybook"),(0,i.mdx)("p",null,"Storybook displays individual components in different states and variations.\nIt is designed to help in authoring and displaying standalone components, each of which is usually part of a design system.\nIn contrast, 'Compositions' is mainly about examining how an independent component looks and behaves when used with other components.\nThese component integrations serve as a way to examine compositions that are likely to be part of real applications, using manual and automated testing."),(0,i.mdx)("p",null,"If you're looking for a Storybook-like solution, you can find that either in the Storybook extension (currently in development) or by using 'Compositions' for that use-case as well."))}f.__bit_component=n,f.isMDXComponent=!0},73180:(e,o,t)=>{Object.defineProperty(o,"s",{enumerable:!0,get:function(){return n.default}});var n=i(t(98020));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compositions/aspect-docs/compositions@0.0.168",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0}},86780:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.420",homepage:"https://bit.cloud/teambit/compositions/compositions",exported:!0};function i(){const e=s(t(41594));return i=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.Logo=void 0,i.__bit_component=n,s.__bit_component=n;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compositions.svg"}));a.__bit_component=n,o.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var s=o[n]={exports:{}};return e[n](s,s.exports,t),s.exports}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};t.r(n),t.d(n,{compositions:()=>h,compositions_metadata:()=>y,overview:()=>f});var i={};t.r(i),t.d(i,{default:()=>u});var s=t(86780),a=(t(41594),t(5016));const r=TeambitMdxUiMdxScopeContext;var p=t(73180),m=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c.apply(null,arguments)}var l={},d="wrapper";function u(e){var o=e.components,t=function(e,o){if(null==e)return{};var t,n,i=function(e,o){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(o.includes(n))continue;t[n]=e[n]}return t}(e,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],o.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,m);return(0,a.mdx)(d,c({},l,t,{components:o,mdxType:"MDXLayout"}),(0,a.mdx)(r.MDXScopeProvider,{components:{Compositions:p.s},mdxType:"MDXScopeProvider"},(0,a.mdx)(p.s,{mdxType:"Compositions"})))}u.isMDXComponent=!0;const h=[s],f=[i],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["teambit.compositions/compositions-preview"]=o():e["teambit.compositions/compositions-preview"]=o()}(self,(()=>(()=>{"use strict";var e={98020:(e,o,t)=>{var n={id:"teambit.compositions/aspect-docs/compositions@0.0.168",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0};Object.defineProperty(o,"__esModule",{value:!0}),o.default=f,a(t(41594));var i=t(5016),s=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(null,arguments)}function p(e,o){if(null==e)return{};var t,n,i=m(e,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],o.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function m(e,o){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(o.includes(n))continue;t[n]=e[n]}return t}a.__bit_component=n,r.__bit_component=n,p.__bit_component=n,m.__bit_component=n;var c=function(e){return function(o){return console.warn("Component "+e+" was not imported, exported, or provided by MDXProvider as global scope"),(0,i.mdx)("div",o)}};c.__bit_component=n;var l=c("CompositionCard"),d=c("Button"),u={},h="wrapper";function f(e){var o=e.components,t=p(e,s);return(0,i.mdx)(h,r({},u,t,{components:o,mdxType:"MDXLayout"}),(0,i.mdx)("p",null,"The Compositions aspect renders component 'compositions' in isolation and displays them in the Workspace UI and Scope UI.\n'Compositions' are, essentially, small apps that exhibit and test a component in different contexts and variations."),(0,i.mdx)("p",null,'The Compositions aspect is an essential tool to authoring independent components as it renders component instances in "controlled environments", isolated and un-affected by code that was not purposefully included.\nThis sterile environment provides an accurate understanding of their look and behavior, for manual and automated testings.'),(0,i.mdx)("p",null,"Moreover, a component's composition is a way to demonstrate the component for other developers looking to use it, and non-developers, such as designers and product managers, looking to inspect it."),(0,i.mdx)("h4",null,"Features"),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Create component examples with zero configuration:")," Write your compositions the same way you write your components.\nPlace your examples in the component's ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.*")," file to have them rendered in the Workspace UI with no additional configurations."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"See your components render in all relevant contexts:")," - Render components in the visual context of related and dependant components to learn how changes impact other components during development."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Hot-reloading in workspace UI:")," - See various instances of a component render live to reflect most recent changes. Get immediate feedbacks to changes in your component's code."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Compositions as visual documentation:")," - Compositions play an essential part in a component documentation. They demonstrate potential behaviors and use cases for that component. Compositions are another step in promoting components' discoverability, both in your local workspace and in remote scopes."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Compositions as test samples for your CI")," - Use your compositions as samples for automated integration and unit tests, to track and view the impact of changes on all affected components in your different scopes."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"Developer-Designers collaboration")," - Make visual compositions accessible to designers (and everyone else) to include them in the development and release process of web applications, in a visual way."),(0,i.mdx)("h2",null,"Quickstart & configurations"),(0,i.mdx)("p",null,"Compositions require no configuration. Any ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.*")," or ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.composition.*")," file will be loaded and displayed in the workspace UI.\nAny tagged version of a component will have its composition included in its build artifacts, to be used as part of the component's preview."),(0,i.mdx)("p",null,"To add your own file pattern for compositions (to be automatically loaded and displayed by the Compositions aspect):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-json"},'// In the workspace configuration file\n{\n "teambit.compositions/compositions": {\n "compositionFilePattern": ["**.my-pattern.tsx", "**.my-pattern-2.jsx"]\n }\n}\n')),(0,i.mdx)("h2",null,"Creating compositions"),(0,i.mdx)("blockquote",null,(0,i.mdx)("p",{parentName:"blockquote"},"This document uses React code as snippets.")),(0,i.mdx)("p",null,"Writing a composition does not require any configuration. Import the component to the component's ",(0,i.mdx)("inlineCode",{parentName:"p"},"*.compositions.tsx")," file, use it to build a composition and export the new component (a.k.a, the composition) with a named export."),(0,i.mdx)("p",null,"The name of the export will be converted from PascalCase/camelCase and used for the composition name (e.g, ",(0,i.mdx)("inlineCode",{parentName:"p"},'"CompositionName" --\x3e "Composition name"'),")."),(0,i.mdx)("p",null,(0,i.mdx)("strong",{parentName:"p"},"For example"),", we'll create two compositions, 'Primary button' and 'Secondary button', each of which demonstrates a different variant or usage of that component.\nBoth compositions will be in themed (i.e, displayed in a specific context)."),(0,i.mdx)("p",null,"First, we'll create a new composition file in the component's directory:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"touch path/to/component/directory/<component-name>.compositions.tsx\n")),(0,i.mdx)("p",null,"Then, we'll import the component and use it to create the compositions:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx{}[button.compositions.jsx]"},"import React from 'react';\nimport { IrisTheme } from '@my-organization/design-system/iris-theme';\nimport { Button } from './button';\n\nexport const PrimaryButton = () => {\n return (\n <IrisTheme>\n <Button importance=\"cta\" style={{ width: 120 }}>\n Primary\n </Button>\n </IrisTheme>\n );\n};\n\nexport const SecondaryButton = () => {\n return (\n <IrisTheme>\n <Button importance=\"ghost\" style={{ width: 120 }}>\n Secondary\n </Button>\n </IrisTheme>\n );\n};\n")),(0,i.mdx)("div",{style:{width:450,display:"flex",justifyContent:"space-between"}},(0,i.mdx)(l,{Composition:function(){return(0,i.mdx)(d,{importance:"cta",style:{width:120},mdxType:"Button"},"Primary")},name:"Primary",mdxType:"CompositionCard"}),(0,i.mdx)(l,{Composition:function(){return(0,i.mdx)(d,{importance:"ghost",style:{width:120},mdxType:"Button"},"Secondary")},name:"Secondary",mdxType:"CompositionCard"})),(0,i.mdx)("h2",null,"Loading compositions"),(0,i.mdx)("p",null,"The Environment in use will automatically detect the composition file for each component and use it to load its compositions to the workspace UI."),(0,i.mdx)("h2",null,"Viewing component compositions"),(0,i.mdx)("p",null,"To explore compositions in your Workspace UI, start the local development server for your workspace (",(0,i.mdx)("inlineCode",{parentName:"p"},"bit start"),"),\nbrowse to a specific component and select the ",(0,i.mdx)("strong",{parentName:"p"},"compositions")," tab.\nThere, you will see the full list of compositions available for that component, along with additional component meta-data."),(0,i.mdx)("h2",null,"Using compositions for automated testings"),(0,i.mdx)("p",null,"Component compositions can be used in automated testing as well as manual examinations. To do that, simply import the compositions in your test file to run the appropriate tests."),(0,i.mdx)("p",null,"For example, the below snapshot test checks the 'Button' component when the 'variant' prop is set to 'primary'.\nIn addition to simple unit tests, compositions play an important role in integration test as they provide feedback as to how a change to the component may affect potential usages."),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React from 'react';\nimport testRenderer from 'react-test-renderer';\nimport { PrimaryButton } from './button.compositions.tsx';\n\ndescribe('Button', () => {\n it('renders correctly as \"primary\"', () => {\n const component = testRenderer.create(<PrimaryButton>test primary variant</PrimaryButton>);\n const tree = component.toJSON();\n expect(tree).toMatchSnapshot();\n });\n});\n")),(0,i.mdx)("h2",null,"Setting providers for all your compositions"),(0,i.mdx)("p",null,"Extend the React environment to customize its list of providers with your own composition providers.\nThe extended environment will then wrap every composition with these providers to make sure your themes or mock data are accessible to all of them,\nwithout you having to repeat that task ever again."),(0,i.mdx)("h2",null,"Compositions and storybook"),(0,i.mdx)("p",null,"Storybook displays individual components in different states and variations.\nIt is designed to help in authoring and displaying standalone components, each of which is usually part of a design system.\nIn contrast, 'Compositions' is mainly about examining how an independent component looks and behaves when used with other components.\nThese component integrations serve as a way to examine compositions that are likely to be part of real applications, using manual and automated testing."),(0,i.mdx)("p",null,"If you're looking for a Storybook-like solution, you can find that either in the Storybook extension (currently in development) or by using 'Compositions' for that use-case as well."))}f.__bit_component=n,f.isMDXComponent=!0},73180:(e,o,t)=>{Object.defineProperty(o,"s",{enumerable:!0,get:function(){return n.default}});var n=i(t(98020));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compositions/aspect-docs/compositions@0.0.168",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0}},94822:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.422",homepage:"https://bit.cloud/teambit/compositions/compositions",exported:!0};function i(){const e=s(t(41594));return i=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.Logo=void 0,i.__bit_component=n,s.__bit_component=n;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compositions.svg"}));a.__bit_component=n,o.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var s=o[n]={exports:{}};return e[n](s,s.exports,t),s.exports}t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};t.r(n),t.d(n,{compositions:()=>h,compositions_metadata:()=>y,overview:()=>f});var i={};t.r(i),t.d(i,{default:()=>u});var s=t(94822),a=(t(41594),t(5016));const r=TeambitMdxUiMdxScopeContext;var p=t(73180),m=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c.apply(null,arguments)}var l={},d="wrapper";function u(e){var o=e.components,t=function(e,o){if(null==e)return{};var t,n,i=function(e,o){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(o.includes(n))continue;t[n]=e[n]}return t}(e,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],o.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,m);return(0,a.mdx)(d,c({},l,t,{components:o,mdxType:"MDXLayout"}),(0,a.mdx)(r.MDXScopeProvider,{components:{Compositions:p.s},mdxType:"MDXScopeProvider"},(0,a.mdx)(p.s,{mdxType:"Compositions"})))}u.isMDXComponent=!0;const h=[s],f=[i],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -160,7 +160,11 @@
160
160
  "line": 50,
161
161
  "character": 22
162
162
  },
163
- "name": "PreviewMain"
163
+ "name": "PreviewMain",
164
+ "componentId": {
165
+ "scope": "teambit.preview",
166
+ "name": "preview"
167
+ }
164
168
  },
165
169
  "isOptional": false,
166
170
  "isSpread": false
@@ -180,7 +184,11 @@
180
184
  "line": 55,
181
185
  "character": 24
182
186
  },
183
- "name": "Workspace"
187
+ "name": "Workspace",
188
+ "componentId": {
189
+ "scope": "teambit.workspace",
190
+ "name": "workspace"
191
+ }
184
192
  },
185
193
  "isOptional": false,
186
194
  "isSpread": false
@@ -200,7 +208,11 @@
200
208
  "line": 60,
201
209
  "character": 21
202
210
  },
203
- "name": "SchemaMain"
211
+ "name": "SchemaMain",
212
+ "componentId": {
213
+ "scope": "teambit.semantics",
214
+ "name": "schema"
215
+ }
204
216
  },
205
217
  "isOptional": false,
206
218
  "isSpread": false
@@ -220,7 +232,11 @@
220
232
  "line": 62,
221
233
  "character": 23
222
234
  },
223
- "name": "DevFilesMain"
235
+ "name": "DevFilesMain",
236
+ "componentId": {
237
+ "scope": "teambit.component",
238
+ "name": "dev-files"
239
+ }
224
240
  },
225
241
  "isOptional": false,
226
242
  "isSpread": false
@@ -240,7 +256,11 @@
240
256
  "line": 64,
241
257
  "character": 19
242
258
  },
243
- "name": "EnvsMain"
259
+ "name": "EnvsMain",
260
+ "componentId": {
261
+ "scope": "teambit.envs",
262
+ "name": "envs"
263
+ }
244
264
  },
245
265
  "isOptional": false,
246
266
  "isSpread": false
@@ -300,7 +320,11 @@
300
320
  "line": 70,
301
321
  "character": 31
302
322
  },
303
- "name": "Component"
323
+ "name": "Component",
324
+ "componentId": {
325
+ "scope": "teambit.component",
326
+ "name": "component"
327
+ }
304
328
  }
305
329
  },
306
330
  "isOptional": false,
@@ -315,6 +339,10 @@
315
339
  "character": 45
316
340
  },
317
341
  "name": "ComponentMap",
342
+ "componentId": {
343
+ "scope": "teambit.component",
344
+ "name": "component"
345
+ },
318
346
  "typeArgs": [
319
347
  {
320
348
  "__schema": "TypeArraySchema",
@@ -330,7 +358,12 @@
330
358
  "line": 70,
331
359
  "character": 58
332
360
  },
333
- "name": "AbstractVinyl"
361
+ "name": "AbstractVinyl",
362
+ "componentId": {
363
+ "scope": "teambit.component",
364
+ "name": "sources",
365
+ "version": "0.0.33"
366
+ }
334
367
  }
335
368
  }
336
369
  ]
@@ -426,7 +459,11 @@
426
459
  "line": 96,
427
460
  "character": 30
428
461
  },
429
- "name": "IComponent"
462
+ "name": "IComponent",
463
+ "componentId": {
464
+ "scope": "teambit.component",
465
+ "name": "component"
466
+ }
430
467
  },
431
468
  "isOptional": false,
432
469
  "isSpread": false
@@ -487,7 +524,11 @@
487
524
  "line": 108,
488
525
  "character": 31
489
526
  },
490
- "name": "Component"
527
+ "name": "Component",
528
+ "componentId": {
529
+ "scope": "teambit.component",
530
+ "name": "component"
531
+ }
491
532
  },
492
533
  "isOptional": false,
493
534
  "isSpread": false
@@ -558,7 +599,11 @@
558
599
  "line": 120,
559
600
  "character": 38
560
601
  },
561
- "name": "Component"
602
+ "name": "Component",
603
+ "componentId": {
604
+ "scope": "teambit.component",
605
+ "name": "component"
606
+ }
562
607
  },
563
608
  "isOptional": false,
564
609
  "isSpread": false
@@ -621,7 +666,11 @@
621
666
  "line": 133,
622
667
  "character": 36
623
668
  },
624
- "name": "Component"
669
+ "name": "Component",
670
+ "componentId": {
671
+ "scope": "teambit.component",
672
+ "name": "component"
673
+ }
625
674
  },
626
675
  "isOptional": false,
627
676
  "isSpread": false
@@ -641,7 +690,8 @@
641
690
  "line": 133,
642
691
  "character": 58
643
692
  },
644
- "name": "ComponentLoadOptions"
693
+ "name": "ComponentLoadOptions",
694
+ "packageName": "@teambit/legacy/dist/consumer/component/component-loader"
645
695
  },
646
696
  "isOptional": true,
647
697
  "isSpread": false
@@ -671,7 +721,11 @@
671
721
  "line": 133,
672
722
  "character": 89
673
723
  },
674
- "name": "AspectData"
724
+ "name": "AspectData",
725
+ "componentId": {
726
+ "scope": "teambit.component",
727
+ "name": "component"
728
+ }
675
729
  },
676
730
  {
677
731
  "__schema": "KeywordTypeSchema",
@@ -787,7 +841,11 @@
787
841
  "line": 177,
788
842
  "character": 7
789
843
  },
790
- "name": "PreviewMain"
844
+ "name": "PreviewMain",
845
+ "componentId": {
846
+ "scope": "teambit.preview",
847
+ "name": "preview"
848
+ }
791
849
  },
792
850
  {
793
851
  "__schema": "TypeRefSchema",
@@ -796,7 +854,11 @@
796
854
  "line": 178,
797
855
  "character": 7
798
856
  },
799
- "name": "GraphqlMain"
857
+ "name": "GraphqlMain",
858
+ "componentId": {
859
+ "scope": "teambit.harmony",
860
+ "name": "graphql"
861
+ }
800
862
  },
801
863
  {
802
864
  "__schema": "TypeRefSchema",
@@ -805,7 +867,11 @@
805
867
  "line": 179,
806
868
  "character": 7
807
869
  },
808
- "name": "Workspace"
870
+ "name": "Workspace",
871
+ "componentId": {
872
+ "scope": "teambit.workspace",
873
+ "name": "workspace"
874
+ }
809
875
  },
810
876
  {
811
877
  "__schema": "TypeRefSchema",
@@ -814,7 +880,11 @@
814
880
  "line": 180,
815
881
  "character": 7
816
882
  },
817
- "name": "SchemaMain"
883
+ "name": "SchemaMain",
884
+ "componentId": {
885
+ "scope": "teambit.semantics",
886
+ "name": "schema"
887
+ }
818
888
  },
819
889
  {
820
890
  "__schema": "TypeRefSchema",
@@ -823,7 +893,11 @@
823
893
  "line": 181,
824
894
  "character": 7
825
895
  },
826
- "name": "DevFilesMain"
896
+ "name": "DevFilesMain",
897
+ "componentId": {
898
+ "scope": "teambit.component",
899
+ "name": "dev-files"
900
+ }
827
901
  },
828
902
  {
829
903
  "__schema": "TypeRefSchema",
@@ -832,7 +906,11 @@
832
906
  "line": 182,
833
907
  "character": 7
834
908
  },
835
- "name": "EnvsMain"
909
+ "name": "EnvsMain",
910
+ "componentId": {
911
+ "scope": "teambit.envs",
912
+ "name": "envs"
913
+ }
836
914
  },
837
915
  {
838
916
  "__schema": "TypeRefSchema",
@@ -841,7 +919,11 @@
841
919
  "line": 183,
842
920
  "character": 7
843
921
  },
844
- "name": "ScopeMain"
922
+ "name": "ScopeMain",
923
+ "componentId": {
924
+ "scope": "teambit.scope",
925
+ "name": "scope"
926
+ }
845
927
  }
846
928
  ]
847
929
  },
@@ -863,7 +945,8 @@
863
945
  "line": 185,
864
946
  "character": 13
865
947
  },
866
- "name": "CompositionsConfig"
948
+ "name": "CompositionsConfig",
949
+ "internalFilePath": "compositions.main.runtime.ts"
867
950
  },
868
951
  "isOptional": false,
869
952
  "isSpread": false
@@ -1005,7 +1088,8 @@
1005
1088
  "line": 21,
1006
1089
  "character": 43
1007
1090
  },
1008
- "name": "ComponentType"
1091
+ "name": "ComponentType",
1092
+ "packageName": "react"
1009
1093
  },
1010
1094
  "isOptional": false,
1011
1095
  "isSpread": false
@@ -1054,7 +1138,8 @@
1054
1138
  "line": 26,
1055
1139
  "character": 33
1056
1140
  },
1057
- "name": "MenuBarWidget"
1141
+ "name": "MenuBarWidget",
1142
+ "internalFilePath": "compositions.tsx"
1058
1143
  }
1059
1144
  },
1060
1145
  "isOptional": false,
@@ -1189,7 +1274,11 @@
1189
1274
  "line": 46,
1190
1275
  "character": 37
1191
1276
  },
1192
- "name": "ComponentUI"
1277
+ "name": "ComponentUI",
1278
+ "componentId": {
1279
+ "scope": "teambit.component",
1280
+ "name": "component"
1281
+ }
1193
1282
  },
1194
1283
  {
1195
1284
  "__schema": "TypeRefSchema",
@@ -1198,7 +1287,11 @@
1198
1287
  "line": 46,
1199
1288
  "character": 50
1200
1289
  },
1201
- "name": "ComponentCompareUI"
1290
+ "name": "ComponentCompareUI",
1291
+ "componentId": {
1292
+ "scope": "teambit.component",
1293
+ "name": "component-compare"
1294
+ }
1202
1295
  }
1203
1296
  ]
1204
1297
  },
@@ -1310,6 +1403,11 @@
1310
1403
  "character": 36
1311
1404
  },
1312
1405
  "name": "SlotRegistry",
1406
+ "componentId": {
1407
+ "scope": "teambit.harmony",
1408
+ "name": "harmony",
1409
+ "version": "0.4.6"
1410
+ },
1313
1411
  "typeArgs": [
1314
1412
  {
1315
1413
  "__schema": "TypeArraySchema",
@@ -1325,7 +1423,8 @@
1325
1423
  "line": 13,
1326
1424
  "character": 49
1327
1425
  },
1328
- "name": "MenuBarWidget"
1426
+ "name": "MenuBarWidget",
1427
+ "internalFilePath": "compositions.tsx"
1329
1428
  }
1330
1429
  }
1331
1430
  ]
@@ -1358,6 +1457,11 @@
1358
1457
  "character": 30
1359
1458
  },
1360
1459
  "name": "SlotRegistry",
1460
+ "componentId": {
1461
+ "scope": "teambit.harmony",
1462
+ "name": "harmony",
1463
+ "version": "0.4.6"
1464
+ },
1361
1465
  "typeArgs": [
1362
1466
  {
1363
1467
  "__schema": "TypeRefSchema",
@@ -1366,7 +1470,8 @@
1366
1470
  "line": 14,
1367
1471
  "character": 43
1368
1472
  },
1369
- "name": "ComponentType"
1473
+ "name": "ComponentType",
1474
+ "packageName": "react"
1370
1475
  }
1371
1476
  ]
1372
1477
  }
@@ -1844,7 +1949,8 @@
1844
1949
  "line": 166,
1845
1950
  "character": 5
1846
1951
  },
1847
- "name": "ComponentCompositionProps"
1952
+ "name": "ComponentCompositionProps",
1953
+ "internalFilePath": "ui/composition-preview.tsx"
1848
1954
  }
1849
1955
  ]
1850
1956
  }
@@ -2004,7 +2110,11 @@
2004
2110
  "line": 20,
2005
2111
  "character": 22
2006
2112
  },
2007
- "name": "PreviewPreview"
2113
+ "name": "PreviewPreview",
2114
+ "componentId": {
2115
+ "scope": "teambit.preview",
2116
+ "name": "preview"
2117
+ }
2008
2118
  },
2009
2119
  "isOptional": false,
2010
2120
  "isSpread": false
@@ -2046,7 +2156,12 @@
2046
2156
  "line": 23,
2047
2157
  "character": 23
2048
2158
  },
2049
- "name": "ComponentID"
2159
+ "name": "ComponentID",
2160
+ "componentId": {
2161
+ "scope": "teambit.component",
2162
+ "name": "component-id",
2163
+ "version": "1.2.2"
2164
+ }
2050
2165
  },
2051
2166
  "isOptional": false,
2052
2167
  "isSpread": false
@@ -2086,7 +2201,11 @@
2086
2201
  "line": 23,
2087
2202
  "character": 60
2088
2203
  },
2089
- "name": "PreviewModule"
2204
+ "name": "PreviewModule",
2205
+ "componentId": {
2206
+ "scope": "teambit.preview",
2207
+ "name": "preview"
2208
+ }
2090
2209
  },
2091
2210
  "isOptional": false,
2092
2211
  "isSpread": false
@@ -2126,7 +2245,11 @@
2126
2245
  "line": 23,
2127
2246
  "character": 102
2128
2247
  },
2129
- "name": "RenderingContext"
2248
+ "name": "RenderingContext",
2249
+ "componentId": {
2250
+ "scope": "teambit.preview",
2251
+ "name": "preview"
2252
+ }
2130
2253
  },
2131
2254
  "isOptional": false,
2132
2255
  "isSpread": false
@@ -2199,7 +2322,11 @@
2199
2322
  "line": 42,
2200
2323
  "character": 64
2201
2324
  },
2202
- "name": "PreviewModule"
2325
+ "name": "PreviewModule",
2326
+ "componentId": {
2327
+ "scope": "teambit.preview",
2328
+ "name": "preview"
2329
+ }
2203
2330
  },
2204
2331
  "isOptional": false,
2205
2332
  "isSpread": false
@@ -2261,7 +2388,11 @@
2261
2388
  "line": 50,
2262
2389
  "character": 57
2263
2390
  },
2264
- "name": "PreviewModule"
2391
+ "name": "PreviewModule",
2392
+ "componentId": {
2393
+ "scope": "teambit.preview",
2394
+ "name": "preview"
2395
+ }
2265
2396
  },
2266
2397
  "isOptional": false,
2267
2398
  "isSpread": false
@@ -2282,7 +2413,8 @@
2282
2413
  "line": 50,
2283
2414
  "character": 73
2284
2415
  },
2285
- "name": "CompositionBrowserMetadataObject"
2416
+ "name": "CompositionBrowserMetadataObject",
2417
+ "internalFilePath": "composition.ts"
2286
2418
  },
2287
2419
  {
2288
2420
  "__schema": "KeywordTypeSchema",
@@ -2372,7 +2504,11 @@
2372
2504
  "line": 85,
2373
2505
  "character": 37
2374
2506
  },
2375
- "name": "PreviewPreview"
2507
+ "name": "PreviewPreview",
2508
+ "componentId": {
2509
+ "scope": "teambit.preview",
2510
+ "name": "preview"
2511
+ }
2376
2512
  }
2377
2513
  ]
2378
2514
  },
@@ -2432,7 +2568,8 @@
2432
2568
  "line": 13,
2433
2569
  "character": 93
2434
2570
  },
2435
- "name": "ComponentCompositionProps"
2571
+ "name": "ComponentCompositionProps",
2572
+ "internalFilePath": "ui/composition-preview.tsx"
2436
2573
  },
2437
2574
  "isOptional": false,
2438
2575
  "objectBindingNodes": [
@@ -2790,7 +2927,11 @@
2790
2927
  "line": 50,
2791
2928
  "character": 22
2792
2929
  },
2793
- "name": "PreviewMain"
2930
+ "name": "PreviewMain",
2931
+ "componentId": {
2932
+ "scope": "teambit.preview",
2933
+ "name": "preview"
2934
+ }
2794
2935
  },
2795
2936
  "isOptional": false,
2796
2937
  "isSpread": false
@@ -2810,7 +2951,11 @@
2810
2951
  "line": 55,
2811
2952
  "character": 24
2812
2953
  },
2813
- "name": "Workspace"
2954
+ "name": "Workspace",
2955
+ "componentId": {
2956
+ "scope": "teambit.workspace",
2957
+ "name": "workspace"
2958
+ }
2814
2959
  },
2815
2960
  "isOptional": false,
2816
2961
  "isSpread": false
@@ -2830,7 +2975,11 @@
2830
2975
  "line": 60,
2831
2976
  "character": 21
2832
2977
  },
2833
- "name": "SchemaMain"
2978
+ "name": "SchemaMain",
2979
+ "componentId": {
2980
+ "scope": "teambit.semantics",
2981
+ "name": "schema"
2982
+ }
2834
2983
  },
2835
2984
  "isOptional": false,
2836
2985
  "isSpread": false
@@ -2850,7 +2999,11 @@
2850
2999
  "line": 62,
2851
3000
  "character": 23
2852
3001
  },
2853
- "name": "DevFilesMain"
3002
+ "name": "DevFilesMain",
3003
+ "componentId": {
3004
+ "scope": "teambit.component",
3005
+ "name": "dev-files"
3006
+ }
2854
3007
  },
2855
3008
  "isOptional": false,
2856
3009
  "isSpread": false
@@ -2870,7 +3023,11 @@
2870
3023
  "line": 64,
2871
3024
  "character": 19
2872
3025
  },
2873
- "name": "EnvsMain"
3026
+ "name": "EnvsMain",
3027
+ "componentId": {
3028
+ "scope": "teambit.envs",
3029
+ "name": "envs"
3030
+ }
2874
3031
  },
2875
3032
  "isOptional": false,
2876
3033
  "isSpread": false
@@ -2930,7 +3087,11 @@
2930
3087
  "line": 70,
2931
3088
  "character": 31
2932
3089
  },
2933
- "name": "Component"
3090
+ "name": "Component",
3091
+ "componentId": {
3092
+ "scope": "teambit.component",
3093
+ "name": "component"
3094
+ }
2934
3095
  }
2935
3096
  },
2936
3097
  "isOptional": false,
@@ -2945,6 +3106,10 @@
2945
3106
  "character": 45
2946
3107
  },
2947
3108
  "name": "ComponentMap",
3109
+ "componentId": {
3110
+ "scope": "teambit.component",
3111
+ "name": "component"
3112
+ },
2948
3113
  "typeArgs": [
2949
3114
  {
2950
3115
  "__schema": "TypeArraySchema",
@@ -2960,7 +3125,12 @@
2960
3125
  "line": 70,
2961
3126
  "character": 58
2962
3127
  },
2963
- "name": "AbstractVinyl"
3128
+ "name": "AbstractVinyl",
3129
+ "componentId": {
3130
+ "scope": "teambit.component",
3131
+ "name": "sources",
3132
+ "version": "0.0.33"
3133
+ }
2964
3134
  }
2965
3135
  }
2966
3136
  ]
@@ -3056,7 +3226,11 @@
3056
3226
  "line": 96,
3057
3227
  "character": 30
3058
3228
  },
3059
- "name": "IComponent"
3229
+ "name": "IComponent",
3230
+ "componentId": {
3231
+ "scope": "teambit.component",
3232
+ "name": "component"
3233
+ }
3060
3234
  },
3061
3235
  "isOptional": false,
3062
3236
  "isSpread": false
@@ -3117,7 +3291,11 @@
3117
3291
  "line": 108,
3118
3292
  "character": 31
3119
3293
  },
3120
- "name": "Component"
3294
+ "name": "Component",
3295
+ "componentId": {
3296
+ "scope": "teambit.component",
3297
+ "name": "component"
3298
+ }
3121
3299
  },
3122
3300
  "isOptional": false,
3123
3301
  "isSpread": false
@@ -3188,7 +3366,11 @@
3188
3366
  "line": 120,
3189
3367
  "character": 38
3190
3368
  },
3191
- "name": "Component"
3369
+ "name": "Component",
3370
+ "componentId": {
3371
+ "scope": "teambit.component",
3372
+ "name": "component"
3373
+ }
3192
3374
  },
3193
3375
  "isOptional": false,
3194
3376
  "isSpread": false
@@ -3251,7 +3433,11 @@
3251
3433
  "line": 133,
3252
3434
  "character": 36
3253
3435
  },
3254
- "name": "Component"
3436
+ "name": "Component",
3437
+ "componentId": {
3438
+ "scope": "teambit.component",
3439
+ "name": "component"
3440
+ }
3255
3441
  },
3256
3442
  "isOptional": false,
3257
3443
  "isSpread": false
@@ -3271,7 +3457,8 @@
3271
3457
  "line": 133,
3272
3458
  "character": 58
3273
3459
  },
3274
- "name": "ComponentLoadOptions"
3460
+ "name": "ComponentLoadOptions",
3461
+ "packageName": "@teambit/legacy/dist/consumer/component/component-loader"
3275
3462
  },
3276
3463
  "isOptional": true,
3277
3464
  "isSpread": false
@@ -3301,7 +3488,11 @@
3301
3488
  "line": 133,
3302
3489
  "character": 89
3303
3490
  },
3304
- "name": "AspectData"
3491
+ "name": "AspectData",
3492
+ "componentId": {
3493
+ "scope": "teambit.component",
3494
+ "name": "component"
3495
+ }
3305
3496
  },
3306
3497
  {
3307
3498
  "__schema": "KeywordTypeSchema",
@@ -3417,7 +3608,11 @@
3417
3608
  "line": 177,
3418
3609
  "character": 7
3419
3610
  },
3420
- "name": "PreviewMain"
3611
+ "name": "PreviewMain",
3612
+ "componentId": {
3613
+ "scope": "teambit.preview",
3614
+ "name": "preview"
3615
+ }
3421
3616
  },
3422
3617
  {
3423
3618
  "__schema": "TypeRefSchema",
@@ -3426,7 +3621,11 @@
3426
3621
  "line": 178,
3427
3622
  "character": 7
3428
3623
  },
3429
- "name": "GraphqlMain"
3624
+ "name": "GraphqlMain",
3625
+ "componentId": {
3626
+ "scope": "teambit.harmony",
3627
+ "name": "graphql"
3628
+ }
3430
3629
  },
3431
3630
  {
3432
3631
  "__schema": "TypeRefSchema",
@@ -3435,7 +3634,11 @@
3435
3634
  "line": 179,
3436
3635
  "character": 7
3437
3636
  },
3438
- "name": "Workspace"
3637
+ "name": "Workspace",
3638
+ "componentId": {
3639
+ "scope": "teambit.workspace",
3640
+ "name": "workspace"
3641
+ }
3439
3642
  },
3440
3643
  {
3441
3644
  "__schema": "TypeRefSchema",
@@ -3444,7 +3647,11 @@
3444
3647
  "line": 180,
3445
3648
  "character": 7
3446
3649
  },
3447
- "name": "SchemaMain"
3650
+ "name": "SchemaMain",
3651
+ "componentId": {
3652
+ "scope": "teambit.semantics",
3653
+ "name": "schema"
3654
+ }
3448
3655
  },
3449
3656
  {
3450
3657
  "__schema": "TypeRefSchema",
@@ -3453,7 +3660,11 @@
3453
3660
  "line": 181,
3454
3661
  "character": 7
3455
3662
  },
3456
- "name": "DevFilesMain"
3663
+ "name": "DevFilesMain",
3664
+ "componentId": {
3665
+ "scope": "teambit.component",
3666
+ "name": "dev-files"
3667
+ }
3457
3668
  },
3458
3669
  {
3459
3670
  "__schema": "TypeRefSchema",
@@ -3462,7 +3673,11 @@
3462
3673
  "line": 182,
3463
3674
  "character": 7
3464
3675
  },
3465
- "name": "EnvsMain"
3676
+ "name": "EnvsMain",
3677
+ "componentId": {
3678
+ "scope": "teambit.envs",
3679
+ "name": "envs"
3680
+ }
3466
3681
  },
3467
3682
  {
3468
3683
  "__schema": "TypeRefSchema",
@@ -3471,7 +3686,11 @@
3471
3686
  "line": 183,
3472
3687
  "character": 7
3473
3688
  },
3474
- "name": "ScopeMain"
3689
+ "name": "ScopeMain",
3690
+ "componentId": {
3691
+ "scope": "teambit.scope",
3692
+ "name": "scope"
3693
+ }
3475
3694
  }
3476
3695
  ]
3477
3696
  },
@@ -3493,7 +3712,8 @@
3493
3712
  "line": 185,
3494
3713
  "character": 13
3495
3714
  },
3496
- "name": "CompositionsConfig"
3715
+ "name": "CompositionsConfig",
3716
+ "internalFilePath": "compositions.main.runtime.ts"
3497
3717
  },
3498
3718
  "isOptional": false,
3499
3719
  "isSpread": false
@@ -3556,6 +3776,11 @@
3556
3776
  "character": 36
3557
3777
  },
3558
3778
  "name": "SlotRegistry",
3779
+ "componentId": {
3780
+ "scope": "teambit.harmony",
3781
+ "name": "harmony",
3782
+ "version": "0.4.6"
3783
+ },
3559
3784
  "typeArgs": [
3560
3785
  {
3561
3786
  "__schema": "TypeArraySchema",
@@ -3571,7 +3796,8 @@
3571
3796
  "line": 13,
3572
3797
  "character": 49
3573
3798
  },
3574
- "name": "MenuBarWidget"
3799
+ "name": "MenuBarWidget",
3800
+ "internalFilePath": "compositions.tsx"
3575
3801
  }
3576
3802
  }
3577
3803
  ]
@@ -3594,6 +3820,11 @@
3594
3820
  "character": 30
3595
3821
  },
3596
3822
  "name": "SlotRegistry",
3823
+ "componentId": {
3824
+ "scope": "teambit.harmony",
3825
+ "name": "harmony",
3826
+ "version": "0.4.6"
3827
+ },
3597
3828
  "typeArgs": [
3598
3829
  {
3599
3830
  "__schema": "TypeRefSchema",
@@ -3602,7 +3833,8 @@
3602
3833
  "line": 14,
3603
3834
  "character": 43
3604
3835
  },
3605
- "name": "ComponentType"
3836
+ "name": "ComponentType",
3837
+ "packageName": "react"
3606
3838
  }
3607
3839
  ]
3608
3840
  }
@@ -3715,7 +3947,8 @@
3715
3947
  "line": 21,
3716
3948
  "character": 43
3717
3949
  },
3718
- "name": "ComponentType"
3950
+ "name": "ComponentType",
3951
+ "packageName": "react"
3719
3952
  },
3720
3953
  "isOptional": false,
3721
3954
  "isSpread": false
@@ -3764,7 +3997,8 @@
3764
3997
  "line": 26,
3765
3998
  "character": 33
3766
3999
  },
3767
- "name": "MenuBarWidget"
4000
+ "name": "MenuBarWidget",
4001
+ "internalFilePath": "compositions.tsx"
3768
4002
  }
3769
4003
  },
3770
4004
  "isOptional": false,
@@ -3899,7 +4133,11 @@
3899
4133
  "line": 46,
3900
4134
  "character": 37
3901
4135
  },
3902
- "name": "ComponentUI"
4136
+ "name": "ComponentUI",
4137
+ "componentId": {
4138
+ "scope": "teambit.component",
4139
+ "name": "component"
4140
+ }
3903
4141
  },
3904
4142
  {
3905
4143
  "__schema": "TypeRefSchema",
@@ -3908,7 +4146,11 @@
3908
4146
  "line": 46,
3909
4147
  "character": 50
3910
4148
  },
3911
- "name": "ComponentCompareUI"
4149
+ "name": "ComponentCompareUI",
4150
+ "componentId": {
4151
+ "scope": "teambit.component",
4152
+ "name": "component-compare"
4153
+ }
3912
4154
  }
3913
4155
  ]
3914
4156
  },
@@ -4205,7 +4447,8 @@
4205
4447
  "line": 15,
4206
4448
  "character": 17
4207
4449
  },
4208
- "name": "CompositionBrowserMetadata"
4450
+ "name": "CompositionBrowserMetadata",
4451
+ "internalFilePath": "composition.ts"
4209
4452
  }
4210
4453
  },
4211
4454
  "isOptional": false
@@ -4514,7 +4757,8 @@
4514
4757
  "line": 39,
4515
4758
  "character": 12
4516
4759
  },
4517
- "name": "ReactNode"
4760
+ "name": "ReactNode",
4761
+ "packageName": "react"
4518
4762
  },
4519
4763
  "isOptional": false
4520
4764
  }
@@ -4605,7 +4849,8 @@
4605
4849
  "line": 43,
4606
4850
  "character": 62
4607
4851
  },
4608
- "name": "CompositionsProp"
4852
+ "name": "CompositionsProp",
4853
+ "internalFilePath": "compositions.tsx"
4609
4854
  },
4610
4855
  "isOptional": false,
4611
4856
  "objectBindingNodes": [
@@ -4793,7 +5038,8 @@
4793
5038
  "line": 166,
4794
5039
  "character": 5
4795
5040
  },
4796
- "name": "ComponentCompositionProps"
5041
+ "name": "ComponentCompositionProps",
5042
+ "internalFilePath": "ui/composition-preview.tsx"
4797
5043
  }
4798
5044
  ]
4799
5045
  }
@@ -4977,7 +5223,11 @@
4977
5223
  "line": 20,
4978
5224
  "character": 22
4979
5225
  },
4980
- "name": "PreviewPreview"
5226
+ "name": "PreviewPreview",
5227
+ "componentId": {
5228
+ "scope": "teambit.preview",
5229
+ "name": "preview"
5230
+ }
4981
5231
  },
4982
5232
  "isOptional": false,
4983
5233
  "isSpread": false
@@ -5019,7 +5269,12 @@
5019
5269
  "line": 23,
5020
5270
  "character": 23
5021
5271
  },
5022
- "name": "ComponentID"
5272
+ "name": "ComponentID",
5273
+ "componentId": {
5274
+ "scope": "teambit.component",
5275
+ "name": "component-id",
5276
+ "version": "1.2.2"
5277
+ }
5023
5278
  },
5024
5279
  "isOptional": false,
5025
5280
  "isSpread": false
@@ -5059,7 +5314,11 @@
5059
5314
  "line": 23,
5060
5315
  "character": 60
5061
5316
  },
5062
- "name": "PreviewModule"
5317
+ "name": "PreviewModule",
5318
+ "componentId": {
5319
+ "scope": "teambit.preview",
5320
+ "name": "preview"
5321
+ }
5063
5322
  },
5064
5323
  "isOptional": false,
5065
5324
  "isSpread": false
@@ -5099,7 +5358,11 @@
5099
5358
  "line": 23,
5100
5359
  "character": 102
5101
5360
  },
5102
- "name": "RenderingContext"
5361
+ "name": "RenderingContext",
5362
+ "componentId": {
5363
+ "scope": "teambit.preview",
5364
+ "name": "preview"
5365
+ }
5103
5366
  },
5104
5367
  "isOptional": false,
5105
5368
  "isSpread": false
@@ -5172,7 +5435,11 @@
5172
5435
  "line": 42,
5173
5436
  "character": 64
5174
5437
  },
5175
- "name": "PreviewModule"
5438
+ "name": "PreviewModule",
5439
+ "componentId": {
5440
+ "scope": "teambit.preview",
5441
+ "name": "preview"
5442
+ }
5176
5443
  },
5177
5444
  "isOptional": false,
5178
5445
  "isSpread": false
@@ -5234,7 +5501,11 @@
5234
5501
  "line": 50,
5235
5502
  "character": 57
5236
5503
  },
5237
- "name": "PreviewModule"
5504
+ "name": "PreviewModule",
5505
+ "componentId": {
5506
+ "scope": "teambit.preview",
5507
+ "name": "preview"
5508
+ }
5238
5509
  },
5239
5510
  "isOptional": false,
5240
5511
  "isSpread": false
@@ -5255,7 +5526,8 @@
5255
5526
  "line": 50,
5256
5527
  "character": 73
5257
5528
  },
5258
- "name": "CompositionBrowserMetadataObject"
5529
+ "name": "CompositionBrowserMetadataObject",
5530
+ "internalFilePath": "composition.ts"
5259
5531
  },
5260
5532
  {
5261
5533
  "__schema": "KeywordTypeSchema",
@@ -5345,7 +5617,11 @@
5345
5617
  "line": 85,
5346
5618
  "character": 37
5347
5619
  },
5348
- "name": "PreviewPreview"
5620
+ "name": "PreviewPreview",
5621
+ "componentId": {
5622
+ "scope": "teambit.preview",
5623
+ "name": "preview"
5624
+ }
5349
5625
  }
5350
5626
  ]
5351
5627
  },
@@ -5458,7 +5734,12 @@
5458
5734
  "line": 11,
5459
5735
  "character": 5
5460
5736
  },
5461
- "name": "ComponentPreviewProps"
5737
+ "name": "ComponentPreviewProps",
5738
+ "componentId": {
5739
+ "scope": "teambit.preview",
5740
+ "name": "ui/component-preview",
5741
+ "version": "1.0.15"
5742
+ }
5462
5743
  }
5463
5744
  ]
5464
5745
  }
@@ -5487,7 +5768,8 @@
5487
5768
  "line": 13,
5488
5769
  "character": 93
5489
5770
  },
5490
- "name": "ComponentCompositionProps"
5771
+ "name": "ComponentCompositionProps",
5772
+ "internalFilePath": "ui/composition-preview.tsx"
5491
5773
  },
5492
5774
  "isOptional": false,
5493
5775
  "objectBindingNodes": [
@@ -5560,7 +5842,7 @@
5560
5842
  "componentId": {
5561
5843
  "scope": "teambit.compositions",
5562
5844
  "name": "compositions",
5563
- "version": "1.0.420"
5845
+ "version": "1.0.422"
5564
5846
  },
5565
5847
  "taggedModuleExports": []
5566
5848
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.420/dist/compositions.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.420/dist/compositions.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.422/dist/compositions.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.422/dist/compositions.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/compositions",
3
- "version": "1.0.420",
3
+ "version": "1.0.422",
4
4
  "homepage": "https://bit.cloud/teambit/compositions/compositions",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compositions",
8
8
  "name": "compositions",
9
- "version": "1.0.420"
9
+ "version": "1.0.422"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -34,25 +34,25 @@
34
34
  "@teambit/compositions.ui.composition-compare": "0.0.255",
35
35
  "@teambit/evangelist.elements.icon": "1.0.2",
36
36
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
37
- "@teambit/component": "1.0.420",
37
+ "@teambit/component": "1.0.422",
38
38
  "@teambit/compositions.model.composition-id": "0.0.502",
39
- "@teambit/graphql": "1.0.420",
40
- "@teambit/cli": "0.0.997",
39
+ "@teambit/graphql": "1.0.422",
40
+ "@teambit/cli": "0.0.999",
41
41
  "@teambit/component.sources": "0.0.33",
42
- "@teambit/dev-files": "1.0.420",
43
- "@teambit/envs": "1.0.420",
44
- "@teambit/preview": "1.0.420",
45
- "@teambit/schema": "1.0.420",
46
- "@teambit/scope": "1.0.420",
42
+ "@teambit/dev-files": "1.0.422",
43
+ "@teambit/envs": "1.0.422",
44
+ "@teambit/preview": "1.0.422",
45
+ "@teambit/schema": "1.0.422",
46
+ "@teambit/scope": "1.0.422",
47
47
  "@teambit/toolbox.path.match-patterns": "0.0.15",
48
- "@teambit/workspace": "1.0.420",
48
+ "@teambit/workspace": "1.0.422",
49
49
  "@teambit/design.ui.tooltip": "0.0.371",
50
50
  "@teambit/docs.ui.queries.get-docs": "0.0.508",
51
- "@teambit/panels": "0.0.999",
51
+ "@teambit/panels": "0.0.1001",
52
52
  "@teambit/preview.ui.component-preview": "1.0.15",
53
53
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.223",
54
- "@teambit/component-compare": "1.0.420",
55
- "@teambit/ui": "1.0.420"
54
+ "@teambit/component-compare": "1.0.422",
55
+ "@teambit/ui": "1.0.422"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/lodash": "4.14.165",