@teambit/compositions 1.0.268 → 1.0.270

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.268" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compositions/compositions@1.0.270" 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={78573:(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,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.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function m(e,o){if(null==e)return{};var t,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t=s[n],o.indexOf(t)>=0||(i[t]=e[t]);return i}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},55795:function(e,o,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.Compositions=void 0;var i=t(78573);Object.defineProperty(o,"Compositions",{enumerable:!0,get:function(){return n(i).default}})},45219:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.268",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].call(s.exports,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={};return(()=>{t.r(n),t.d(n,{compositions:()=>d,compositions_metadata:()=>h,overview:()=>u});var e={};t.r(e),t.d(e,{default:()=>l});var o=t(45219),i=(t(41594),t(5016));const s=TeambitMdxUiMdxScopeContext;var a=t(55795),r=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}var m={},c="wrapper";function l(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(Object.prototype.hasOwnProperty.call(e,n)){if(o.indexOf(n)>=0)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.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return(0,i.mdx)(c,p({},m,t,{components:o,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{Compositions:a.Compositions},mdxType:"MDXScopeProvider"},(0,i.mdx)(a.Compositions,{mdxType:"Compositions"})))}l.isMDXComponent=!0;const d=[o],u=[e],h={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),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={89890:(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,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.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function m(e,o){if(null==e)return{};var t,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)t=s[n],o.indexOf(t)>=0||(i[t]=e[t]);return i}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},43442:(e,o,t)=>{Object.defineProperty(o,"s",{enumerable:!0,get:function(){return n.default}});var n=i(t(89890));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}},88021:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.270",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={};return(()=>{t.r(n),t.d(n,{compositions:()=>d,compositions_metadata:()=>h,overview:()=>u});var e={};t.r(e),t.d(e,{default:()=>l});var o=t(88021),i=(t(41594),t(5016));const s=TeambitMdxUiMdxScopeContext;var a=t(43442),r=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}var m={},c="wrapper";function l(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(Object.prototype.hasOwnProperty.call(e,n)){if(o.indexOf(n)>=0)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.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,r);return(0,i.mdx)(c,p({},m,t,{components:o,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{Compositions:a.s},mdxType:"MDXScopeProvider"},(0,i.mdx)(a.s,{mdxType:"Compositions"})))}l.isMDXComponent=!0;const d=[o],u=[e],h={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -1163,13 +1163,13 @@
1163
1163
  "type": "() => React.JSX.Element"
1164
1164
  },
1165
1165
  "isOptional": true,
1166
- "defaultValue": "() => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n }"
1166
+ "defaultValue": "() => {\n return (\n <CompositionCompare\n emptyState={this.emptyStateSlot}\n PreviewView={(compositionProps) => {\n return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;\n }}\n />\n );\n }"
1167
1167
  },
1168
1168
  {
1169
1169
  "__schema": "VariableLikeSchema",
1170
1170
  "location": {
1171
1171
  "filePath": "compositions.ui.runtime.tsx",
1172
- "line": 34,
1172
+ "line": 41,
1173
1173
  "character": 3
1174
1174
  },
1175
1175
  "signature": "(property) CompositionsUI.dependencies: Aspect[]",
@@ -1178,7 +1178,7 @@
1178
1178
  "__schema": "InferenceTypeSchema",
1179
1179
  "location": {
1180
1180
  "filePath": "compositions.ui.runtime.tsx",
1181
- "line": 34,
1181
+ "line": 41,
1182
1182
  "character": 3
1183
1183
  },
1184
1184
  "type": "Aspect[]"
@@ -1190,7 +1190,7 @@
1190
1190
  "__schema": "VariableLikeSchema",
1191
1191
  "location": {
1192
1192
  "filePath": "compositions.ui.runtime.tsx",
1193
- "line": 35,
1193
+ "line": 42,
1194
1194
  "character": 3
1195
1195
  },
1196
1196
  "signature": "(property) CompositionsUI.runtime: RuntimeDefinition",
@@ -1199,7 +1199,7 @@
1199
1199
  "__schema": "InferenceTypeSchema",
1200
1200
  "location": {
1201
1201
  "filePath": "compositions.ui.runtime.tsx",
1202
- "line": 35,
1202
+ "line": 42,
1203
1203
  "character": 3
1204
1204
  },
1205
1205
  "type": "RuntimeDefinition"
@@ -1211,7 +1211,7 @@
1211
1211
  "__schema": "VariableLikeSchema",
1212
1212
  "location": {
1213
1213
  "filePath": "compositions.ui.runtime.tsx",
1214
- "line": 36,
1214
+ "line": 43,
1215
1215
  "character": 3
1216
1216
  },
1217
1217
  "signature": "(property) CompositionsUI.slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[]",
@@ -1220,7 +1220,7 @@
1220
1220
  "__schema": "InferenceTypeSchema",
1221
1221
  "location": {
1222
1222
  "filePath": "compositions.ui.runtime.tsx",
1223
- "line": 36,
1223
+ "line": 43,
1224
1224
  "character": 3
1225
1225
  },
1226
1226
  "type": "((registerFn: () => string) => SlotRegistry<ReactNode>)[]"
@@ -1232,7 +1232,7 @@
1232
1232
  "__schema": "FunctionLikeSchema",
1233
1233
  "location": {
1234
1234
  "filePath": "compositions.ui.runtime.tsx",
1235
- "line": 38,
1235
+ "line": 45,
1236
1236
  "character": 3
1237
1237
  },
1238
1238
  "signature": "(method) CompositionsUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], config: {}, [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]): Promise<CompositionsUI>",
@@ -1242,7 +1242,7 @@
1242
1242
  "__schema": "ParameterSchema",
1243
1243
  "location": {
1244
1244
  "filePath": "compositions.ui.runtime.tsx",
1245
- "line": 39,
1245
+ "line": 46,
1246
1246
  "character": 5
1247
1247
  },
1248
1248
  "name": "[ component, componentCompare ]",
@@ -1250,7 +1250,7 @@
1250
1250
  "__schema": "TupleTypeSchema",
1251
1251
  "location": {
1252
1252
  "filePath": "compositions.ui.runtime.tsx",
1253
- "line": 39,
1253
+ "line": 46,
1254
1254
  "character": 36
1255
1255
  },
1256
1256
  "elements": [
@@ -1258,7 +1258,7 @@
1258
1258
  "__schema": "TypeRefSchema",
1259
1259
  "location": {
1260
1260
  "filePath": "compositions.ui.runtime.tsx",
1261
- "line": 39,
1261
+ "line": 46,
1262
1262
  "character": 37
1263
1263
  },
1264
1264
  "name": "ComponentUI",
@@ -1271,7 +1271,7 @@
1271
1271
  "__schema": "TypeRefSchema",
1272
1272
  "location": {
1273
1273
  "filePath": "compositions.ui.runtime.tsx",
1274
- "line": 39,
1274
+ "line": 46,
1275
1275
  "character": 50
1276
1276
  },
1277
1277
  "name": "ComponentCompareUI",
@@ -1289,7 +1289,7 @@
1289
1289
  "__schema": "ParameterSchema",
1290
1290
  "location": {
1291
1291
  "filePath": "compositions.ui.runtime.tsx",
1292
- "line": 40,
1292
+ "line": 47,
1293
1293
  "character": 5
1294
1294
  },
1295
1295
  "name": "config",
@@ -1297,7 +1297,7 @@
1297
1297
  "__schema": "TypeLiteralSchema",
1298
1298
  "location": {
1299
1299
  "filePath": "compositions.ui.runtime.tsx",
1300
- "line": 40,
1300
+ "line": 47,
1301
1301
  "character": 13
1302
1302
  },
1303
1303
  "members": []
@@ -1309,7 +1309,7 @@
1309
1309
  "__schema": "ParameterSchema",
1310
1310
  "location": {
1311
1311
  "filePath": "compositions.ui.runtime.tsx",
1312
- "line": 41,
1312
+ "line": 48,
1313
1313
  "character": 5
1314
1314
  },
1315
1315
  "name": "[ compositionMenuSlot, emptyStateSlot ]",
@@ -1317,7 +1317,7 @@
1317
1317
  "__schema": "TupleTypeSchema",
1318
1318
  "location": {
1319
1319
  "filePath": "compositions.ui.runtime.tsx",
1320
- "line": 41,
1320
+ "line": 48,
1321
1321
  "character": 44
1322
1322
  },
1323
1323
  "elements": [
@@ -1325,7 +1325,7 @@
1325
1325
  "__schema": "TypeRefSchema",
1326
1326
  "location": {
1327
1327
  "filePath": "compositions.ui.runtime.tsx",
1328
- "line": 41,
1328
+ "line": 48,
1329
1329
  "character": 45
1330
1330
  },
1331
1331
  "name": "CompositionsMenuSlot"
@@ -1334,7 +1334,7 @@
1334
1334
  "__schema": "TypeRefSchema",
1335
1335
  "location": {
1336
1336
  "filePath": "compositions.ui.runtime.tsx",
1337
- "line": 41,
1337
+ "line": 48,
1338
1338
  "character": 67
1339
1339
  },
1340
1340
  "name": "EmptyStateSlot"
@@ -1349,7 +1349,7 @@
1349
1349
  "__schema": "InferenceTypeSchema",
1350
1350
  "location": {
1351
1351
  "filePath": "compositions.ui.runtime.tsx",
1352
- "line": 38,
1352
+ "line": 45,
1353
1353
  "character": 3
1354
1354
  },
1355
1355
  "type": "Promise<CompositionsUI>"
@@ -4003,13 +4003,13 @@
4003
4003
  "type": "() => React.JSX.Element"
4004
4004
  },
4005
4005
  "isOptional": true,
4006
- "defaultValue": "() => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n }"
4006
+ "defaultValue": "() => {\n return (\n <CompositionCompare\n emptyState={this.emptyStateSlot}\n PreviewView={(compositionProps) => {\n return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;\n }}\n />\n );\n }"
4007
4007
  },
4008
4008
  {
4009
4009
  "__schema": "VariableLikeSchema",
4010
4010
  "location": {
4011
4011
  "filePath": "compositions.ui.runtime.tsx",
4012
- "line": 34,
4012
+ "line": 41,
4013
4013
  "character": 3
4014
4014
  },
4015
4015
  "signature": "(property) CompositionsUI.dependencies: Aspect[]",
@@ -4018,7 +4018,7 @@
4018
4018
  "__schema": "InferenceTypeSchema",
4019
4019
  "location": {
4020
4020
  "filePath": "compositions.ui.runtime.tsx",
4021
- "line": 34,
4021
+ "line": 41,
4022
4022
  "character": 3
4023
4023
  },
4024
4024
  "type": "Aspect[]"
@@ -4030,7 +4030,7 @@
4030
4030
  "__schema": "VariableLikeSchema",
4031
4031
  "location": {
4032
4032
  "filePath": "compositions.ui.runtime.tsx",
4033
- "line": 35,
4033
+ "line": 42,
4034
4034
  "character": 3
4035
4035
  },
4036
4036
  "signature": "(property) CompositionsUI.runtime: RuntimeDefinition",
@@ -4039,7 +4039,7 @@
4039
4039
  "__schema": "InferenceTypeSchema",
4040
4040
  "location": {
4041
4041
  "filePath": "compositions.ui.runtime.tsx",
4042
- "line": 35,
4042
+ "line": 42,
4043
4043
  "character": 3
4044
4044
  },
4045
4045
  "type": "RuntimeDefinition"
@@ -4051,7 +4051,7 @@
4051
4051
  "__schema": "VariableLikeSchema",
4052
4052
  "location": {
4053
4053
  "filePath": "compositions.ui.runtime.tsx",
4054
- "line": 36,
4054
+ "line": 43,
4055
4055
  "character": 3
4056
4056
  },
4057
4057
  "signature": "(property) CompositionsUI.slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[]",
@@ -4060,7 +4060,7 @@
4060
4060
  "__schema": "InferenceTypeSchema",
4061
4061
  "location": {
4062
4062
  "filePath": "compositions.ui.runtime.tsx",
4063
- "line": 36,
4063
+ "line": 43,
4064
4064
  "character": 3
4065
4065
  },
4066
4066
  "type": "((registerFn: () => string) => SlotRegistry<ReactNode>)[]"
@@ -4072,7 +4072,7 @@
4072
4072
  "__schema": "FunctionLikeSchema",
4073
4073
  "location": {
4074
4074
  "filePath": "compositions.ui.runtime.tsx",
4075
- "line": 38,
4075
+ "line": 45,
4076
4076
  "character": 3
4077
4077
  },
4078
4078
  "signature": "(method) CompositionsUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], config: {}, [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]): Promise<CompositionsUI>",
@@ -4082,7 +4082,7 @@
4082
4082
  "__schema": "ParameterSchema",
4083
4083
  "location": {
4084
4084
  "filePath": "compositions.ui.runtime.tsx",
4085
- "line": 39,
4085
+ "line": 46,
4086
4086
  "character": 5
4087
4087
  },
4088
4088
  "name": "[ component, componentCompare ]",
@@ -4090,7 +4090,7 @@
4090
4090
  "__schema": "TupleTypeSchema",
4091
4091
  "location": {
4092
4092
  "filePath": "compositions.ui.runtime.tsx",
4093
- "line": 39,
4093
+ "line": 46,
4094
4094
  "character": 36
4095
4095
  },
4096
4096
  "elements": [
@@ -4098,7 +4098,7 @@
4098
4098
  "__schema": "TypeRefSchema",
4099
4099
  "location": {
4100
4100
  "filePath": "compositions.ui.runtime.tsx",
4101
- "line": 39,
4101
+ "line": 46,
4102
4102
  "character": 37
4103
4103
  },
4104
4104
  "name": "ComponentUI",
@@ -4111,7 +4111,7 @@
4111
4111
  "__schema": "TypeRefSchema",
4112
4112
  "location": {
4113
4113
  "filePath": "compositions.ui.runtime.tsx",
4114
- "line": 39,
4114
+ "line": 46,
4115
4115
  "character": 50
4116
4116
  },
4117
4117
  "name": "ComponentCompareUI",
@@ -4129,7 +4129,7 @@
4129
4129
  "__schema": "ParameterSchema",
4130
4130
  "location": {
4131
4131
  "filePath": "compositions.ui.runtime.tsx",
4132
- "line": 40,
4132
+ "line": 47,
4133
4133
  "character": 5
4134
4134
  },
4135
4135
  "name": "config",
@@ -4137,7 +4137,7 @@
4137
4137
  "__schema": "TypeLiteralSchema",
4138
4138
  "location": {
4139
4139
  "filePath": "compositions.ui.runtime.tsx",
4140
- "line": 40,
4140
+ "line": 47,
4141
4141
  "character": 13
4142
4142
  },
4143
4143
  "members": []
@@ -4149,7 +4149,7 @@
4149
4149
  "__schema": "ParameterSchema",
4150
4150
  "location": {
4151
4151
  "filePath": "compositions.ui.runtime.tsx",
4152
- "line": 41,
4152
+ "line": 48,
4153
4153
  "character": 5
4154
4154
  },
4155
4155
  "name": "[ compositionMenuSlot, emptyStateSlot ]",
@@ -4157,7 +4157,7 @@
4157
4157
  "__schema": "TupleTypeSchema",
4158
4158
  "location": {
4159
4159
  "filePath": "compositions.ui.runtime.tsx",
4160
- "line": 41,
4160
+ "line": 48,
4161
4161
  "character": 44
4162
4162
  },
4163
4163
  "elements": [
@@ -4165,7 +4165,7 @@
4165
4165
  "__schema": "TypeRefSchema",
4166
4166
  "location": {
4167
4167
  "filePath": "compositions.ui.runtime.tsx",
4168
- "line": 41,
4168
+ "line": 48,
4169
4169
  "character": 45
4170
4170
  },
4171
4171
  "name": "CompositionsMenuSlot"
@@ -4174,7 +4174,7 @@
4174
4174
  "__schema": "TypeRefSchema",
4175
4175
  "location": {
4176
4176
  "filePath": "compositions.ui.runtime.tsx",
4177
- "line": 41,
4177
+ "line": 48,
4178
4178
  "character": 67
4179
4179
  },
4180
4180
  "name": "EmptyStateSlot"
@@ -4189,7 +4189,7 @@
4189
4189
  "__schema": "InferenceTypeSchema",
4190
4190
  "location": {
4191
4191
  "filePath": "compositions.ui.runtime.tsx",
4192
- "line": 38,
4192
+ "line": 45,
4193
4193
  "character": 3
4194
4194
  },
4195
4195
  "type": "Promise<CompositionsUI>"
@@ -4207,7 +4207,7 @@
4207
4207
  "__schema": "UnImplementedSchema",
4208
4208
  "location": {
4209
4209
  "filePath": "compositions.ui.runtime.tsx",
4210
- "line": 58,
4210
+ "line": 65,
4211
4211
  "character": 16
4212
4212
  },
4213
4213
  "name": "CompositionsUI",
@@ -4219,7 +4219,7 @@
4219
4219
  "__schema": "UnImplementedSchema",
4220
4220
  "location": {
4221
4221
  "filePath": "compositions.ui.runtime.tsx",
4222
- "line": 60,
4222
+ "line": 67,
4223
4223
  "character": 1
4224
4224
  },
4225
4225
  "name": "CompositionsAspect.addRuntime(CompositionsUI);",
@@ -5808,7 +5808,7 @@
5808
5808
  "componentId": {
5809
5809
  "scope": "teambit.compositions",
5810
5810
  "name": "compositions",
5811
- "version": "1.0.268"
5811
+ "version": "1.0.270"
5812
5812
  },
5813
5813
  "taggedModuleExports": []
5814
5814
  }
@@ -8,7 +8,7 @@ import { CompositionCompare } from '@teambit/compositions.ui.composition-compare
8
8
  import { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';
9
9
  import { CompositionsSection } from './composition.section';
10
10
  import { CompositionsAspect } from './compositions.aspect';
11
- import { MenuBarWidget } from './compositions';
11
+ import { CompositionContent, MenuBarWidget } from './compositions';
12
12
 
13
13
  export type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;
14
14
  export type EmptyStateSlot = SlotRegistry<ComponentType>;
@@ -28,7 +28,14 @@ export class CompositionsUI {
28
28
  }
29
29
 
30
30
  getCompositionsCompare = () => {
31
- return <CompositionCompare emptyState={this.emptyStateSlot} />;
31
+ return (
32
+ <CompositionCompare
33
+ emptyState={this.emptyStateSlot}
34
+ PreviewView={(compositionProps) => {
35
+ return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;
36
+ }}
37
+ />
38
+ );
32
39
  };
33
40
 
34
41
  static dependencies = [ComponentAspect, ComponentCompareAspect];
@@ -67,7 +67,15 @@ function _compositions() {
67
67
  };
68
68
  return data;
69
69
  }
70
+ function _compositions2() {
71
+ const data = require("./compositions");
72
+ _compositions2 = function () {
73
+ return data;
74
+ };
75
+ return data;
76
+ }
70
77
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
78
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
71
79
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
72
80
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
73
81
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -77,7 +85,13 @@ class CompositionsUI {
77
85
  this.emptyStateSlot = emptyStateSlot;
78
86
  _defineProperty(this, "getCompositionsCompare", () => {
79
87
  return /*#__PURE__*/_react().default.createElement(_compositionsUi2().CompositionCompare, {
80
- emptyState: this.emptyStateSlot
88
+ emptyState: this.emptyStateSlot,
89
+ PreviewView: compositionProps => {
90
+ return /*#__PURE__*/_react().default.createElement(_compositions2().CompositionContent, _extends({}, compositionProps, {
91
+ fullContentHeight: true,
92
+ forceHeight: '100%'
93
+ }));
94
+ }
81
95
  });
82
96
  });
83
97
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_ui","_compositionsUi","_compositionsUi2","_componentCompare","_composition","_compositions","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","createElement","CompositionCompare","emptyState","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","registerRoutes","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { ComponentType } from 'react';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport { MenuBarWidget } from './compositions';\n\nexport type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\n\nexport class CompositionsUI {\n constructor(private menuBarWidgetSlot: CompositionsMenuSlot, private emptyStateSlot: EmptyStateSlot) {}\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n registerMenuWidget(...widget: MenuBarWidget[]) {\n this.menuBarWidgetSlot.register(widget);\n }\n\n getCompositionsCompare = () => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n };\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ReactNode>(), Slot.withType<ComponentType>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: {},\n [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]\n ) {\n const compositions = new CompositionsUI(compositionMenuSlot, emptyStateSlot);\n const section = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot\n );\n const compositionCompare = new CompositionCompareSection(compositions);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation(compositionCompare);\n componentCompare.registerRoutes([compositionCompare.route]);\n return compositions;\n }\n}\n\nexport default CompositionsUI;\n\nCompositionsAspect.addRuntime(CompositionsUI);\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,IAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,GAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,gBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,eAAA,YAAAA,CAAA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AAO,CAACQ,KAAK,CAAC;IACnEZ,gBAAgB,CAACU,kBAAkB,CAACJ,kBAAkB,CAAC;IACvDN,gBAAgB,CAACa,cAAc,CAAC,CAACP,kBAAkB,CAACG,KAAK,CAAC,CAAC;IAC3D,OAAON,YAAY;EACrB;AACF;AAACW,OAAA,CAAA5B,cAAA,GAAAA,cAAA;AAAApB,eAAA,CAxCYoB,cAAc,kBAkBH,CAAC6B,4BAAe,EAAEC,0CAAsB,CAAC;AAAAlD,eAAA,CAlBpDoB,cAAc,aAmBR+B,eAAS;AAAAnD,eAAA,CAnBfoB,cAAc,WAoBV,CAACgC,eAAI,CAACC,QAAQ,CAAY,CAAC,EAAED,eAAI,CAACC,QAAQ,CAAgB,CAAC,CAAC;AAAA,IAAAC,QAAA,GAAAN,OAAA,CAAAjD,OAAA,GAsB9DqB,cAAc;AAE7BmC,kCAAkB,CAACC,UAAU,CAACpC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_ui","_compositionsUi","_compositionsUi2","_componentCompare","_composition","_compositions","_compositions2","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_defineProperty","value","_toPropertyKey","defineProperty","enumerable","configurable","writable","t","_toPrimitive","r","e","Symbol","toPrimitive","TypeError","String","Number","CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","createElement","CompositionCompare","emptyState","PreviewView","compositionProps","CompositionContent","fullContentHeight","forceHeight","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","registerRoutes","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { ComponentType } from 'react';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport { CompositionContent, MenuBarWidget } from './compositions';\n\nexport type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\n\nexport class CompositionsUI {\n constructor(private menuBarWidgetSlot: CompositionsMenuSlot, private emptyStateSlot: EmptyStateSlot) {}\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n registerMenuWidget(...widget: MenuBarWidget[]) {\n this.menuBarWidgetSlot.register(widget);\n }\n\n getCompositionsCompare = () => {\n return (\n <CompositionCompare\n emptyState={this.emptyStateSlot}\n PreviewView={(compositionProps) => {\n return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;\n }}\n />\n );\n };\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ReactNode>(), Slot.withType<ComponentType>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: {},\n [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]\n ) {\n const compositions = new CompositionsUI(compositionMenuSlot, emptyStateSlot);\n const section = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot\n );\n const compositionCompare = new CompositionCompareSection(compositions);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation(compositionCompare);\n componentCompare.registerRoutes([composition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AAY,EACZ;MAAEpB,iBAAiB,EAAEoB,YAAY,CAACpB;IAAkB,CAAC,EACrDC,cACF,CAAC;IACD,MAAMsB,kBAAkB,GAAG,KAAIC,2CAAyB,EAACJ,YAAY,CAAC;IACtEJ,SAAS,CAACS,aAAa,CAACJ,OAAO,CAACK,KAAK,CAAC;IACtCV,SAAS,CAACW,kBAAkB,CAACN,OAAO,CAACO,cAAc,EAAEP,OAAO,CAACQ,KAAK,CAAC;IACnEZ,gBAAgB,CAACU,kBAAkB,CAACJ,kBAAkB,CAAC;IACvDN,gBAAgB,CAACa,cAAc,CAAC,CAACP,kBAAkB,CAACG,KAAK,CAAC,CAAC;IAC3D,OAAON,YAAY;EACrB;AACF;AAACW,OAAA,CAAAjC,cAAA,GAAAA,cAAA;AAAAhB,eAAA,CA/CYgB,cAAc,kBAyBH,CAACkC,4BAAe,EAAEC,0CAAsB,CAAC;AAAAnD,eAAA,CAzBpDgB,cAAc,aA0BRoC,eAAS;AAAApD,eAAA,CA1BfgB,cAAc,WA2BV,CAACqC,eAAI,CAACC,QAAQ,CAAY,CAAC,EAAED,eAAI,CAACC,QAAQ,CAAgB,CAAC,CAAC;AAAA,IAAAC,QAAA,GAAAN,OAAA,CAAAhE,OAAA,GAsB9D+B,cAAc;AAE7BwC,kCAAkB,CAACC,UAAU,CAACzC,cAAc,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.268/dist/compositions.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.268/dist/compositions.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.270/dist/compositions.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.270/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.268",
3
+ "version": "1.0.270",
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.268"
9
+ "version": "1.0.270"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -29,28 +29,28 @@
29
29
  "@teambit/documenter.ui.heading": "4.1.1",
30
30
  "@teambit/documenter.ui.property-table": "4.1.10",
31
31
  "@teambit/mdx.ui.mdx-layout": "1.0.9",
32
- "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.197",
32
+ "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.198",
33
33
  "@teambit/compositions.ui.composition-compare-section": "0.0.100",
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.268",
37
+ "@teambit/component": "1.0.270",
38
38
  "@teambit/compositions.model.composition-id": "0.0.502",
39
- "@teambit/graphql": "1.0.268",
39
+ "@teambit/graphql": "1.0.270",
40
40
  "@teambit/cli": "0.0.865",
41
- "@teambit/dev-files": "1.0.268",
42
- "@teambit/envs": "1.0.268",
43
- "@teambit/preview": "1.0.268",
44
- "@teambit/schema": "1.0.268",
45
- "@teambit/scope": "1.0.268",
41
+ "@teambit/dev-files": "1.0.270",
42
+ "@teambit/envs": "1.0.270",
43
+ "@teambit/preview": "1.0.270",
44
+ "@teambit/schema": "1.0.270",
45
+ "@teambit/scope": "1.0.270",
46
46
  "@teambit/toolbox.path.match-patterns": "0.0.15",
47
- "@teambit/workspace": "1.0.268",
47
+ "@teambit/workspace": "1.0.270",
48
48
  "@teambit/docs.ui.queries.get-docs": "0.0.508",
49
49
  "@teambit/panels": "0.0.867",
50
50
  "@teambit/preview.ui.component-preview": "1.0.12",
51
- "@teambit/ui-foundation.ui.buttons.collapser": "0.0.221",
52
- "@teambit/component-compare": "1.0.268",
53
- "@teambit/ui": "1.0.268"
51
+ "@teambit/ui-foundation.ui.buttons.collapser": "0.0.222",
52
+ "@teambit/component-compare": "1.0.270",
53
+ "@teambit/ui": "1.0.270"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/lodash": "4.14.165",