@teambit/compositions 1.0.193 → 1.0.195

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.193" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compositions/compositions@1.0.195" 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={60005:(e,o,t)=>{var n={id:"teambit.compositions/aspect-docs/compositions@0.0.167",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},59435:(e,o,t)=>{Object.defineProperty(o,"s",{enumerable:!0,get:function(){return n.default}});var n=i(t(60005));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compositions/aspect-docs/compositions@0.0.167",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0}},76089:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.193",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(76089),i=(t(41594),t(5016));const s=TeambitMdxUiMdxScopeContext;var a=t(59435),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,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}(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})()));
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={60005:(e,o,t)=>{var n={id:"teambit.compositions/aspect-docs/compositions@0.0.167",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},59435:(e,o,t)=>{Object.defineProperty(o,"s",{enumerable:!0,get:function(){return n.default}});var n=i(t(60005));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compositions/aspect-docs/compositions@0.0.167",homepage:"https://bit.cloud/teambit/compositions/aspect-docs/compositions",exported:!0}},39923:(e,o,t)=>{var n={id:"teambit.compositions/compositions@1.0.195",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(39923),i=(t(41594),t(5016));const s=TeambitMdxUiMdxScopeContext;var a=t(59435),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,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}(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})()));
@@ -1719,7 +1719,7 @@
1719
1719
  "__schema": "TypeSchema",
1720
1720
  "location": {
1721
1721
  "filePath": "compositions.tsx",
1722
- "line": 155,
1722
+ "line": 158,
1723
1723
  "character": 1
1724
1724
  },
1725
1725
  "signature": "type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition | undefined;\n queryParams?: string | string[] | undefined;\n emptyState?: EmptyStateSlot | undefined;\n} & {\n composition?: Composition | undefined;\n} & ComponentPreviewProps",
@@ -1728,7 +1728,7 @@
1728
1728
  "__schema": "TypeIntersectionSchema",
1729
1729
  "location": {
1730
1730
  "filePath": "compositions.tsx",
1731
- "line": 155,
1731
+ "line": 158,
1732
1732
  "character": 39
1733
1733
  },
1734
1734
  "types": [
@@ -1736,7 +1736,7 @@
1736
1736
  "__schema": "TypeLiteralSchema",
1737
1737
  "location": {
1738
1738
  "filePath": "compositions.tsx",
1739
- "line": 155,
1739
+ "line": 158,
1740
1740
  "character": 39
1741
1741
  },
1742
1742
  "members": [
@@ -1744,7 +1744,7 @@
1744
1744
  "__schema": "VariableLikeSchema",
1745
1745
  "location": {
1746
1746
  "filePath": "compositions.tsx",
1747
- "line": 156,
1747
+ "line": 159,
1748
1748
  "character": 3
1749
1749
  },
1750
1750
  "signature": "(property) component: ComponentModel",
@@ -1753,7 +1753,7 @@
1753
1753
  "__schema": "TypeRefSchema",
1754
1754
  "location": {
1755
1755
  "filePath": "compositions.tsx",
1756
- "line": 156,
1756
+ "line": 159,
1757
1757
  "character": 3
1758
1758
  },
1759
1759
  "name": "ComponentModel",
@@ -1768,7 +1768,7 @@
1768
1768
  "__schema": "VariableLikeSchema",
1769
1769
  "location": {
1770
1770
  "filePath": "compositions.tsx",
1771
- "line": 157,
1771
+ "line": 160,
1772
1772
  "character": 3
1773
1773
  },
1774
1774
  "signature": "(property) selected?: Composition | undefined",
@@ -1777,7 +1777,7 @@
1777
1777
  "__schema": "TypeRefSchema",
1778
1778
  "location": {
1779
1779
  "filePath": "compositions.tsx",
1780
- "line": 157,
1780
+ "line": 160,
1781
1781
  "character": 14
1782
1782
  },
1783
1783
  "name": "Composition"
@@ -1788,7 +1788,7 @@
1788
1788
  "__schema": "VariableLikeSchema",
1789
1789
  "location": {
1790
1790
  "filePath": "compositions.tsx",
1791
- "line": 158,
1791
+ "line": 161,
1792
1792
  "character": 3
1793
1793
  },
1794
1794
  "signature": "(property) queryParams?: string | string[] | undefined",
@@ -1797,7 +1797,7 @@
1797
1797
  "__schema": "TypeUnionSchema",
1798
1798
  "location": {
1799
1799
  "filePath": "compositions.tsx",
1800
- "line": 158,
1800
+ "line": 161,
1801
1801
  "character": 17
1802
1802
  },
1803
1803
  "types": [
@@ -1805,7 +1805,7 @@
1805
1805
  "__schema": "KeywordTypeSchema",
1806
1806
  "location": {
1807
1807
  "filePath": "compositions.tsx",
1808
- "line": 158,
1808
+ "line": 161,
1809
1809
  "character": 17
1810
1810
  },
1811
1811
  "name": "string"
@@ -1814,14 +1814,14 @@
1814
1814
  "__schema": "TypeArraySchema",
1815
1815
  "location": {
1816
1816
  "filePath": "compositions.tsx",
1817
- "line": 158,
1817
+ "line": 161,
1818
1818
  "character": 26
1819
1819
  },
1820
1820
  "type": {
1821
1821
  "__schema": "KeywordTypeSchema",
1822
1822
  "location": {
1823
1823
  "filePath": "compositions.tsx",
1824
- "line": 158,
1824
+ "line": 161,
1825
1825
  "character": 26
1826
1826
  },
1827
1827
  "name": "string"
@@ -1835,7 +1835,7 @@
1835
1835
  "__schema": "VariableLikeSchema",
1836
1836
  "location": {
1837
1837
  "filePath": "compositions.tsx",
1838
- "line": 159,
1838
+ "line": 162,
1839
1839
  "character": 3
1840
1840
  },
1841
1841
  "signature": "(property) emptyState?: EmptyStateSlot | undefined",
@@ -1844,7 +1844,7 @@
1844
1844
  "__schema": "TypeRefSchema",
1845
1845
  "location": {
1846
1846
  "filePath": "compositions.tsx",
1847
- "line": 159,
1847
+ "line": 162,
1848
1848
  "character": 16
1849
1849
  },
1850
1850
  "name": "EmptyStateSlot"
@@ -1857,7 +1857,7 @@
1857
1857
  "__schema": "TypeRefSchema",
1858
1858
  "location": {
1859
1859
  "filePath": "compositions.tsx",
1860
- "line": 160,
1860
+ "line": 163,
1861
1861
  "character": 5
1862
1862
  },
1863
1863
  "name": "ComponentCompositionProps",
@@ -1870,7 +1870,7 @@
1870
1870
  "__schema": "ReactSchema",
1871
1871
  "location": {
1872
1872
  "filePath": "compositions.tsx",
1873
- "line": 162,
1873
+ "line": 165,
1874
1874
  "character": 1
1875
1875
  },
1876
1876
  "signature": "function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): React.JSX.Element",
@@ -1879,7 +1879,7 @@
1879
1879
  "__schema": "ParameterSchema",
1880
1880
  "location": {
1881
1881
  "filePath": "compositions.tsx",
1882
- "line": 162,
1882
+ "line": 165,
1883
1883
  "character": 36
1884
1884
  },
1885
1885
  "name": "{ component, selected, queryParams, emptyState, ...componentCompositionProps }",
@@ -1887,7 +1887,7 @@
1887
1887
  "__schema": "TypeRefSchema",
1888
1888
  "location": {
1889
1889
  "filePath": "compositions.tsx",
1890
- "line": 168,
1890
+ "line": 171,
1891
1891
  "character": 4
1892
1892
  },
1893
1893
  "name": "CompositionContentProps"
@@ -1898,7 +1898,7 @@
1898
1898
  "__schema": "InferenceTypeSchema",
1899
1899
  "location": {
1900
1900
  "filePath": "compositions.tsx",
1901
- "line": 163,
1901
+ "line": 166,
1902
1902
  "character": 3
1903
1903
  },
1904
1904
  "name": "component",
@@ -1909,7 +1909,7 @@
1909
1909
  "__schema": "InferenceTypeSchema",
1910
1910
  "location": {
1911
1911
  "filePath": "compositions.tsx",
1912
- "line": 164,
1912
+ "line": 167,
1913
1913
  "character": 3
1914
1914
  },
1915
1915
  "name": "selected",
@@ -1920,7 +1920,7 @@
1920
1920
  "__schema": "InferenceTypeSchema",
1921
1921
  "location": {
1922
1922
  "filePath": "compositions.tsx",
1923
- "line": 165,
1923
+ "line": 168,
1924
1924
  "character": 3
1925
1925
  },
1926
1926
  "name": "queryParams",
@@ -1931,7 +1931,7 @@
1931
1931
  "__schema": "InferenceTypeSchema",
1932
1932
  "location": {
1933
1933
  "filePath": "compositions.tsx",
1934
- "line": 166,
1934
+ "line": 169,
1935
1935
  "character": 3
1936
1936
  },
1937
1937
  "name": "emptyState",
@@ -1942,11 +1942,11 @@
1942
1942
  "__schema": "InferenceTypeSchema",
1943
1943
  "location": {
1944
1944
  "filePath": "compositions.tsx",
1945
- "line": 167,
1945
+ "line": 170,
1946
1946
  "character": 6
1947
1947
  },
1948
1948
  "name": "componentCompositionProps",
1949
- "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
1949
+ "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n srcDoc?: string | undefined;\n}",
1950
1950
  "isSpread": true
1951
1951
  }
1952
1952
  ],
@@ -1956,7 +1956,7 @@
1956
1956
  "__schema": "TypeRefSchema",
1957
1957
  "location": {
1958
1958
  "filePath": "compositions.tsx",
1959
- "line": 162,
1959
+ "line": 165,
1960
1960
  "character": 1
1961
1961
  },
1962
1962
  "name": "React.JSX.Element",
@@ -2495,7 +2495,7 @@
2495
2495
  "character": 85
2496
2496
  },
2497
2497
  "name": "rest",
2498
- "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
2498
+ "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n srcDoc?: string | undefined;\n}",
2499
2499
  "isSpread": true
2500
2500
  }
2501
2501
  ],
@@ -4558,7 +4558,7 @@
4558
4558
  "__schema": "TypeSchema",
4559
4559
  "location": {
4560
4560
  "filePath": "compositions.tsx",
4561
- "line": 33,
4561
+ "line": 36,
4562
4562
  "character": 1
4563
4563
  },
4564
4564
  "signature": "type MenuBarWidget = {\n location: 'start' | 'end';\n content: ReactNode;\n}",
@@ -4567,7 +4567,7 @@
4567
4567
  "__schema": "TypeLiteralSchema",
4568
4568
  "location": {
4569
4569
  "filePath": "compositions.tsx",
4570
- "line": 33,
4570
+ "line": 36,
4571
4571
  "character": 29
4572
4572
  },
4573
4573
  "members": [
@@ -4575,16 +4575,16 @@
4575
4575
  "__schema": "VariableLikeSchema",
4576
4576
  "location": {
4577
4577
  "filePath": "compositions.tsx",
4578
- "line": 34,
4578
+ "line": 37,
4579
4579
  "character": 3
4580
4580
  },
4581
- "signature": "(property) location: \"end\" | \"start\"",
4581
+ "signature": "(property) location: \"start\" | \"end\"",
4582
4582
  "name": "location",
4583
4583
  "type": {
4584
4584
  "__schema": "TypeUnionSchema",
4585
4585
  "location": {
4586
4586
  "filePath": "compositions.tsx",
4587
- "line": 34,
4587
+ "line": 37,
4588
4588
  "character": 13
4589
4589
  },
4590
4590
  "types": [
@@ -4592,7 +4592,7 @@
4592
4592
  "__schema": "LiteralTypeSchema",
4593
4593
  "location": {
4594
4594
  "filePath": "compositions.tsx",
4595
- "line": 34,
4595
+ "line": 37,
4596
4596
  "character": 13
4597
4597
  },
4598
4598
  "name": "'start'"
@@ -4601,7 +4601,7 @@
4601
4601
  "__schema": "LiteralTypeSchema",
4602
4602
  "location": {
4603
4603
  "filePath": "compositions.tsx",
4604
- "line": 34,
4604
+ "line": 37,
4605
4605
  "character": 23
4606
4606
  },
4607
4607
  "name": "'end'"
@@ -4614,7 +4614,7 @@
4614
4614
  "__schema": "VariableLikeSchema",
4615
4615
  "location": {
4616
4616
  "filePath": "compositions.tsx",
4617
- "line": 35,
4617
+ "line": 38,
4618
4618
  "character": 3
4619
4619
  },
4620
4620
  "signature": "(property) content: React.ReactNode",
@@ -4623,7 +4623,7 @@
4623
4623
  "__schema": "TypeRefSchema",
4624
4624
  "location": {
4625
4625
  "filePath": "compositions.tsx",
4626
- "line": 35,
4626
+ "line": 38,
4627
4627
  "character": 12
4628
4628
  },
4629
4629
  "name": "ReactNode",
@@ -4638,7 +4638,7 @@
4638
4638
  "__schema": "TypeSchema",
4639
4639
  "location": {
4640
4640
  "filePath": "compositions.tsx",
4641
- "line": 37,
4641
+ "line": 40,
4642
4642
  "character": 1
4643
4643
  },
4644
4644
  "signature": "type CompositionsProp = {\n menuBarWidgets?: CompositionsMenuSlot | undefined;\n emptyState?: EmptyStateSlot | undefined;\n}",
@@ -4647,7 +4647,7 @@
4647
4647
  "__schema": "TypeLiteralSchema",
4648
4648
  "location": {
4649
4649
  "filePath": "compositions.tsx",
4650
- "line": 37,
4650
+ "line": 40,
4651
4651
  "character": 32
4652
4652
  },
4653
4653
  "members": [
@@ -4655,7 +4655,7 @@
4655
4655
  "__schema": "VariableLikeSchema",
4656
4656
  "location": {
4657
4657
  "filePath": "compositions.tsx",
4658
- "line": 37,
4658
+ "line": 40,
4659
4659
  "character": 34
4660
4660
  },
4661
4661
  "signature": "(property) menuBarWidgets?: CompositionsMenuSlot | undefined",
@@ -4664,7 +4664,7 @@
4664
4664
  "__schema": "TypeRefSchema",
4665
4665
  "location": {
4666
4666
  "filePath": "compositions.tsx",
4667
- "line": 37,
4667
+ "line": 40,
4668
4668
  "character": 51
4669
4669
  },
4670
4670
  "name": "CompositionsMenuSlot"
@@ -4675,7 +4675,7 @@
4675
4675
  "__schema": "VariableLikeSchema",
4676
4676
  "location": {
4677
4677
  "filePath": "compositions.tsx",
4678
- "line": 37,
4678
+ "line": 40,
4679
4679
  "character": 73
4680
4680
  },
4681
4681
  "signature": "(property) emptyState?: EmptyStateSlot | undefined",
@@ -4684,7 +4684,7 @@
4684
4684
  "__schema": "TypeRefSchema",
4685
4685
  "location": {
4686
4686
  "filePath": "compositions.tsx",
4687
- "line": 37,
4687
+ "line": 40,
4688
4688
  "character": 86
4689
4689
  },
4690
4690
  "name": "EmptyStateSlot"
@@ -4698,7 +4698,7 @@
4698
4698
  "__schema": "ReactSchema",
4699
4699
  "location": {
4700
4700
  "filePath": "compositions.tsx",
4701
- "line": 39,
4701
+ "line": 42,
4702
4702
  "character": 1
4703
4703
  },
4704
4704
  "signature": "function Compositions({ menuBarWidgets, emptyState }: CompositionsProp): React.JSX.Element",
@@ -4707,7 +4707,7 @@
4707
4707
  "__schema": "ParameterSchema",
4708
4708
  "location": {
4709
4709
  "filePath": "compositions.tsx",
4710
- "line": 39,
4710
+ "line": 42,
4711
4711
  "character": 30
4712
4712
  },
4713
4713
  "name": "{ menuBarWidgets, emptyState }",
@@ -4715,7 +4715,7 @@
4715
4715
  "__schema": "TypeRefSchema",
4716
4716
  "location": {
4717
4717
  "filePath": "compositions.tsx",
4718
- "line": 39,
4718
+ "line": 42,
4719
4719
  "character": 62
4720
4720
  },
4721
4721
  "name": "CompositionsProp",
@@ -4727,7 +4727,7 @@
4727
4727
  "__schema": "InferenceTypeSchema",
4728
4728
  "location": {
4729
4729
  "filePath": "compositions.tsx",
4730
- "line": 39,
4730
+ "line": 42,
4731
4731
  "character": 32
4732
4732
  },
4733
4733
  "name": "menuBarWidgets",
@@ -4738,7 +4738,7 @@
4738
4738
  "__schema": "InferenceTypeSchema",
4739
4739
  "location": {
4740
4740
  "filePath": "compositions.tsx",
4741
- "line": 39,
4741
+ "line": 42,
4742
4742
  "character": 48
4743
4743
  },
4744
4744
  "name": "emptyState",
@@ -4752,7 +4752,7 @@
4752
4752
  "__schema": "TypeRefSchema",
4753
4753
  "location": {
4754
4754
  "filePath": "compositions.tsx",
4755
- "line": 39,
4755
+ "line": 42,
4756
4756
  "character": 1
4757
4757
  },
4758
4758
  "name": "React.JSX.Element",
@@ -4766,7 +4766,7 @@
4766
4766
  "__schema": "TypeSchema",
4767
4767
  "location": {
4768
4768
  "filePath": "compositions.tsx",
4769
- "line": 155,
4769
+ "line": 158,
4770
4770
  "character": 1
4771
4771
  },
4772
4772
  "signature": "type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition | undefined;\n queryParams?: string | string[] | undefined;\n emptyState?: EmptyStateSlot | undefined;\n} & {\n composition?: Composition | undefined;\n} & ComponentPreviewProps",
@@ -4775,7 +4775,7 @@
4775
4775
  "__schema": "TypeIntersectionSchema",
4776
4776
  "location": {
4777
4777
  "filePath": "compositions.tsx",
4778
- "line": 155,
4778
+ "line": 158,
4779
4779
  "character": 39
4780
4780
  },
4781
4781
  "types": [
@@ -4783,7 +4783,7 @@
4783
4783
  "__schema": "TypeLiteralSchema",
4784
4784
  "location": {
4785
4785
  "filePath": "compositions.tsx",
4786
- "line": 155,
4786
+ "line": 158,
4787
4787
  "character": 39
4788
4788
  },
4789
4789
  "members": [
@@ -4791,7 +4791,7 @@
4791
4791
  "__schema": "VariableLikeSchema",
4792
4792
  "location": {
4793
4793
  "filePath": "compositions.tsx",
4794
- "line": 156,
4794
+ "line": 159,
4795
4795
  "character": 3
4796
4796
  },
4797
4797
  "signature": "(property) component: ComponentModel",
@@ -4800,7 +4800,7 @@
4800
4800
  "__schema": "TypeRefSchema",
4801
4801
  "location": {
4802
4802
  "filePath": "compositions.tsx",
4803
- "line": 156,
4803
+ "line": 159,
4804
4804
  "character": 3
4805
4805
  },
4806
4806
  "name": "ComponentModel",
@@ -4815,7 +4815,7 @@
4815
4815
  "__schema": "VariableLikeSchema",
4816
4816
  "location": {
4817
4817
  "filePath": "compositions.tsx",
4818
- "line": 157,
4818
+ "line": 160,
4819
4819
  "character": 3
4820
4820
  },
4821
4821
  "signature": "(property) selected?: Composition | undefined",
@@ -4824,7 +4824,7 @@
4824
4824
  "__schema": "TypeRefSchema",
4825
4825
  "location": {
4826
4826
  "filePath": "compositions.tsx",
4827
- "line": 157,
4827
+ "line": 160,
4828
4828
  "character": 14
4829
4829
  },
4830
4830
  "name": "Composition"
@@ -4835,7 +4835,7 @@
4835
4835
  "__schema": "VariableLikeSchema",
4836
4836
  "location": {
4837
4837
  "filePath": "compositions.tsx",
4838
- "line": 158,
4838
+ "line": 161,
4839
4839
  "character": 3
4840
4840
  },
4841
4841
  "signature": "(property) queryParams?: string | string[] | undefined",
@@ -4844,7 +4844,7 @@
4844
4844
  "__schema": "TypeUnionSchema",
4845
4845
  "location": {
4846
4846
  "filePath": "compositions.tsx",
4847
- "line": 158,
4847
+ "line": 161,
4848
4848
  "character": 17
4849
4849
  },
4850
4850
  "types": [
@@ -4852,7 +4852,7 @@
4852
4852
  "__schema": "KeywordTypeSchema",
4853
4853
  "location": {
4854
4854
  "filePath": "compositions.tsx",
4855
- "line": 158,
4855
+ "line": 161,
4856
4856
  "character": 17
4857
4857
  },
4858
4858
  "name": "string"
@@ -4861,14 +4861,14 @@
4861
4861
  "__schema": "TypeArraySchema",
4862
4862
  "location": {
4863
4863
  "filePath": "compositions.tsx",
4864
- "line": 158,
4864
+ "line": 161,
4865
4865
  "character": 26
4866
4866
  },
4867
4867
  "type": {
4868
4868
  "__schema": "KeywordTypeSchema",
4869
4869
  "location": {
4870
4870
  "filePath": "compositions.tsx",
4871
- "line": 158,
4871
+ "line": 161,
4872
4872
  "character": 26
4873
4873
  },
4874
4874
  "name": "string"
@@ -4882,7 +4882,7 @@
4882
4882
  "__schema": "VariableLikeSchema",
4883
4883
  "location": {
4884
4884
  "filePath": "compositions.tsx",
4885
- "line": 159,
4885
+ "line": 162,
4886
4886
  "character": 3
4887
4887
  },
4888
4888
  "signature": "(property) emptyState?: EmptyStateSlot | undefined",
@@ -4891,7 +4891,7 @@
4891
4891
  "__schema": "TypeRefSchema",
4892
4892
  "location": {
4893
4893
  "filePath": "compositions.tsx",
4894
- "line": 159,
4894
+ "line": 162,
4895
4895
  "character": 16
4896
4896
  },
4897
4897
  "name": "EmptyStateSlot"
@@ -4904,7 +4904,7 @@
4904
4904
  "__schema": "TypeRefSchema",
4905
4905
  "location": {
4906
4906
  "filePath": "compositions.tsx",
4907
- "line": 160,
4907
+ "line": 163,
4908
4908
  "character": 5
4909
4909
  },
4910
4910
  "name": "ComponentCompositionProps",
@@ -4917,7 +4917,7 @@
4917
4917
  "__schema": "ReactSchema",
4918
4918
  "location": {
4919
4919
  "filePath": "compositions.tsx",
4920
- "line": 162,
4920
+ "line": 165,
4921
4921
  "character": 1
4922
4922
  },
4923
4923
  "signature": "function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): React.JSX.Element",
@@ -4926,7 +4926,7 @@
4926
4926
  "__schema": "ParameterSchema",
4927
4927
  "location": {
4928
4928
  "filePath": "compositions.tsx",
4929
- "line": 162,
4929
+ "line": 165,
4930
4930
  "character": 36
4931
4931
  },
4932
4932
  "name": "{ component, selected, queryParams, emptyState, ...componentCompositionProps }",
@@ -4934,7 +4934,7 @@
4934
4934
  "__schema": "TypeRefSchema",
4935
4935
  "location": {
4936
4936
  "filePath": "compositions.tsx",
4937
- "line": 168,
4937
+ "line": 171,
4938
4938
  "character": 4
4939
4939
  },
4940
4940
  "name": "CompositionContentProps"
@@ -4945,7 +4945,7 @@
4945
4945
  "__schema": "InferenceTypeSchema",
4946
4946
  "location": {
4947
4947
  "filePath": "compositions.tsx",
4948
- "line": 163,
4948
+ "line": 166,
4949
4949
  "character": 3
4950
4950
  },
4951
4951
  "name": "component",
@@ -4956,7 +4956,7 @@
4956
4956
  "__schema": "InferenceTypeSchema",
4957
4957
  "location": {
4958
4958
  "filePath": "compositions.tsx",
4959
- "line": 164,
4959
+ "line": 167,
4960
4960
  "character": 3
4961
4961
  },
4962
4962
  "name": "selected",
@@ -4967,7 +4967,7 @@
4967
4967
  "__schema": "InferenceTypeSchema",
4968
4968
  "location": {
4969
4969
  "filePath": "compositions.tsx",
4970
- "line": 165,
4970
+ "line": 168,
4971
4971
  "character": 3
4972
4972
  },
4973
4973
  "name": "queryParams",
@@ -4978,7 +4978,7 @@
4978
4978
  "__schema": "InferenceTypeSchema",
4979
4979
  "location": {
4980
4980
  "filePath": "compositions.tsx",
4981
- "line": 166,
4981
+ "line": 169,
4982
4982
  "character": 3
4983
4983
  },
4984
4984
  "name": "emptyState",
@@ -4989,11 +4989,11 @@
4989
4989
  "__schema": "InferenceTypeSchema",
4990
4990
  "location": {
4991
4991
  "filePath": "compositions.tsx",
4992
- "line": 167,
4992
+ "line": 170,
4993
4993
  "character": 6
4994
4994
  },
4995
4995
  "name": "componentCompositionProps",
4996
- "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
4996
+ "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n srcDoc?: string | undefined;\n}",
4997
4997
  "isSpread": true
4998
4998
  }
4999
4999
  ],
@@ -5003,7 +5003,7 @@
5003
5003
  "__schema": "TypeRefSchema",
5004
5004
  "location": {
5005
5005
  "filePath": "compositions.tsx",
5006
- "line": 162,
5006
+ "line": 165,
5007
5007
  "character": 1
5008
5008
  },
5009
5009
  "name": "React.JSX.Element",
@@ -5014,7 +5014,40 @@
5014
5014
  ]
5015
5015
  }
5016
5016
  ],
5017
- "internals": []
5017
+ "internals": [
5018
+ {
5019
+ "__schema": "ModuleSchema",
5020
+ "location": {
5021
+ "filePath": "compositions.tsx",
5022
+ "line": 34,
5023
+ "character": 1
5024
+ },
5025
+ "exports": [
5026
+ {
5027
+ "__schema": "VariableLikeSchema",
5028
+ "location": {
5029
+ "filePath": "compositions.tsx",
5030
+ "line": 34,
5031
+ "character": 7
5032
+ },
5033
+ "signature": "const Link: any",
5034
+ "name": "Link",
5035
+ "type": {
5036
+ "__schema": "InferenceTypeSchema",
5037
+ "location": {
5038
+ "filePath": "compositions.tsx",
5039
+ "line": 34,
5040
+ "character": 7
5041
+ },
5042
+ "type": "any"
5043
+ },
5044
+ "isOptional": false,
5045
+ "defaultValue": "BaseLink as any"
5046
+ }
5047
+ ],
5048
+ "internals": []
5049
+ }
5050
+ ]
5018
5051
  },
5019
5052
  {
5020
5053
  "__schema": "ModuleSchema",
@@ -5649,7 +5682,7 @@
5649
5682
  "character": 85
5650
5683
  },
5651
5684
  "name": "rest",
5652
- "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
5685
+ "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n srcDoc?: string | undefined;\n}",
5653
5686
  "isSpread": true
5654
5687
  }
5655
5688
  ],
@@ -5676,7 +5709,7 @@
5676
5709
  "componentId": {
5677
5710
  "scope": "teambit.compositions",
5678
5711
  "name": "compositions",
5679
- "version": "1.0.193"
5712
+ "version": "1.0.195"
5680
5713
  },
5681
5714
  "taggedModuleExports": []
5682
5715
  }
package/compositions.tsx CHANGED
@@ -19,7 +19,7 @@ import { MDXLayout } from '@teambit/mdx.ui.mdx-layout';
19
19
  import { Separator } from '@teambit/design.ui.separator';
20
20
  import { H1 } from '@teambit/documenter.ui.heading';
21
21
  import { AlertCard } from '@teambit/design.ui.alert-card';
22
- import { Link, useNavigate, useLocation } from '@teambit/base-react.navigation.link';
22
+ import { Link as BaseLink, useNavigate, useLocation } from '@teambit/base-react.navigation.link';
23
23
  import { OptionButton } from '@teambit/design.ui.input.option-button';
24
24
  import { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';
25
25
  import { EmptyStateSlot } from './compositions.ui.runtime';
@@ -30,6 +30,9 @@ import { CompositionsPanel } from './ui/compositions-panel/compositions-panel';
30
30
  import type { CompositionsMenuSlot } from './compositions.ui.runtime';
31
31
  import { ComponentCompositionProps } from './ui/composition-preview';
32
32
 
33
+ // @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest
34
+ const Link = BaseLink as any;
35
+
33
36
  export type MenuBarWidget = {
34
37
  location: 'start' | 'end';
35
38
  content: ReactNode;
@@ -21,7 +21,7 @@ export declare class CompositionsSection implements Section {
21
21
  };
22
22
  route: {
23
23
  path: string;
24
- element: JSX.Element;
24
+ element: import("react/jsx-runtime").JSX.Element;
25
25
  };
26
26
  order: number;
27
27
  }
@@ -1 +1 @@
1
- export declare const Logo: () => JSX.Element;
1
+ export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -12,11 +12,11 @@ export type CompositionsProp = {
12
12
  menuBarWidgets?: CompositionsMenuSlot;
13
13
  emptyState?: EmptyStateSlot;
14
14
  };
15
- export declare function Compositions({ menuBarWidgets, emptyState }: CompositionsProp): JSX.Element;
15
+ export declare function Compositions({ menuBarWidgets, emptyState }: CompositionsProp): import("react/jsx-runtime").JSX.Element;
16
16
  export type CompositionContentProps = {
17
17
  component: ComponentModel;
18
18
  selected?: Composition;
19
19
  queryParams?: string | string[];
20
20
  emptyState?: EmptyStateSlot;
21
21
  } & ComponentCompositionProps;
22
- export declare function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): JSX.Element;
22
+ export declare function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): import("react/jsx-runtime").JSX.Element;
@@ -201,6 +201,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
201
201
  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); }
202
202
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
203
203
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
204
+ // @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest
205
+ const Link = _baseReactNavigation().Link;
204
206
  function Compositions({
205
207
  menuBarWidgets,
206
208
  emptyState
@@ -245,7 +247,7 @@ function Compositions({
245
247
  }, /*#__PURE__*/_react().default.createElement(_compositionsUi().CompositionsMenuBar, {
246
248
  menuBarWidgets: menuBarWidgets,
247
249
  className: _compositionsModule().default.menuBar
248
- }, /*#__PURE__*/_react().default.createElement(_baseReactNavigation().Link, {
250
+ }, /*#__PURE__*/_react().default.createElement(Link, {
249
251
  external: true,
250
252
  href: currentCompositionFullUrl,
251
253
  className: _compositionsModule().default.openInNewTab
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireWildcard","require","_reactRouterDom","_lodash","_interopRequireDefault","_queryString","_documenterTheme","_baseUiSurfacesSplitPane","_baseUiSurfacesSplitPane2","_component","_documenterUi","_panels","_docsUiQueries","_uiFoundationUiButtons","_designUi","_previewUi","_uiFoundationUiHooks","_compositionsUi","_compositionsUiHooks","_mdxUi","_designUi2","_documenterUi2","_designUi3","_baseReactNavigation","_designUiInput","_designUiSurfaces","_compositionsModule","_ui","_compositionsPanel","_excluded","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","Compositions","menuBarWidgets","emptyState","component","useContext","ComponentContext","searchParams","useSearchParams","params","useParams","versionFromQueryParams","navigate","useNavigate","location","useLocation","currentCompositionName","currentComposition","compositions","find","composition","identifier","toLowerCase","head","selectedRef","useRef","current","properties","useDocs","id","isMobile","useIsMobile","showSidebar","isSidebarOpen","setSidebarOpenness","useState","sidebarOpenness","Layout","row","left","compositionUrl","toPreviewUrl","isScaling","preview","includesEnvTemplates","includesEnvTemplate","useNameParam","compositionIdentifierParam","currentCompositionFullUrl","compositionParams","setCompositionParams","fullscreen","queryParams","useMemo","queryString","stringify","useEffect","createElement","CompositionContextProvider","setQueryParams","SplitPane","layout","size","className","styles","compositionsPage","Pane","CompositionsMenuBar","menuBar","Link","external","href","openInNewTab","OptionButton","icon","CompositionContent","compositionPanel","selected","HoverSplitter","splitter","Collapser","placement","isOpen","onMouseDown","stopPropagation","onClick","x","tooltipContent","collapser","right","ThemeContext","TabContainer","tabsContainer","TabList","tabs","Tab","TabPanel","tabContent","CompositionsPanel","onSelectComposition","selectedCompositionFromUrl","pathSegments","pathname","split","filter","push","urlParams","URLSearchParams","newPath","join","toString","url","active","PropTable","rows","showListView","_ref","componentCompositionProps","env","environment","EmptyStateTemplate","host","noCompositionsPage","H1","title","Separator","isPresentational","separator","AlertCard","level","MDXLayout","buildStatus","StatusMessageCard","buildStatusMessage","status","EmptyBox","linkText","link","ComponentComposition","compositionsIframe","viewport","forceHeight","fullContentHeight","pubsub"],"sources":["compositions.tsx"],"sourcesContent":["import React, { useContext, useEffect, useState, useMemo, useRef, ReactNode } from 'react';\nimport { useParams, useSearchParams } from 'react-router-dom';\nimport head from 'lodash.head';\nimport queryString from 'query-string';\nimport { ThemeContext } from '@teambit/documenter.theme.theme-context';\nimport { SplitPane, Pane, Layout } from '@teambit/base-ui.surfaces.split-pane.split-pane';\nimport { HoverSplitter } from '@teambit/base-ui.surfaces.split-pane.hover-splitter';\nimport { ComponentContext, ComponentModel } from '@teambit/component';\nimport { PropTable } from '@teambit/documenter.ui.property-table';\nimport { Tab, TabContainer, TabList, TabPanel } from '@teambit/panels';\nimport { useDocs } from '@teambit/docs.ui.queries.get-docs';\nimport { Collapser } from '@teambit/ui-foundation.ui.buttons.collapser';\nimport { EmptyBox } from '@teambit/design.ui.empty-box';\nimport { toPreviewUrl } from '@teambit/preview.ui.component-preview';\nimport { useIsMobile } from '@teambit/ui-foundation.ui.hooks.use-is-mobile';\nimport { CompositionsMenuBar } from '@teambit/compositions.ui.compositions-menu-bar';\nimport { CompositionContextProvider } from '@teambit/compositions.ui.hooks.use-composition';\nimport { MDXLayout } from '@teambit/mdx.ui.mdx-layout';\nimport { Separator } from '@teambit/design.ui.separator';\nimport { H1 } from '@teambit/documenter.ui.heading';\nimport { AlertCard } from '@teambit/design.ui.alert-card';\nimport { Link, useNavigate, useLocation } from '@teambit/base-react.navigation.link';\nimport { OptionButton } from '@teambit/design.ui.input.option-button';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { EmptyStateSlot } from './compositions.ui.runtime';\nimport { Composition } from './composition';\nimport styles from './compositions.module.scss';\nimport { ComponentComposition } from './ui';\nimport { CompositionsPanel } from './ui/compositions-panel/compositions-panel';\nimport type { CompositionsMenuSlot } from './compositions.ui.runtime';\nimport { ComponentCompositionProps } from './ui/composition-preview';\n\nexport type MenuBarWidget = {\n location: 'start' | 'end';\n content: ReactNode;\n};\nexport type CompositionsProp = { menuBarWidgets?: CompositionsMenuSlot; emptyState?: EmptyStateSlot };\n\nexport function Compositions({ menuBarWidgets, emptyState }: CompositionsProp) {\n const component = useContext(ComponentContext);\n const [searchParams] = useSearchParams();\n const params = useParams();\n const versionFromQueryParams = searchParams.get('version');\n const navigate = useNavigate();\n const location = useLocation();\n const currentCompositionName = params['*'];\n const currentComposition =\n component.compositions.find((composition) => composition.identifier.toLowerCase() === currentCompositionName) ||\n head(component.compositions);\n\n const selectedRef = useRef(currentComposition);\n selectedRef.current = currentComposition;\n\n const properties = useDocs(component.id);\n\n const isMobile = useIsMobile();\n const showSidebar = !isMobile && component.compositions.length > 0;\n const [isSidebarOpen, setSidebarOpenness] = useState(showSidebar);\n\n const sidebarOpenness = isSidebarOpen ? Layout.row : Layout.left;\n\n const compositionUrl = toPreviewUrl(component, 'compositions');\n const isScaling = component?.preview?.isScaling;\n const includesEnvTemplates = component?.preview?.includesEnvTemplate;\n const useNameParam = component?.preview?.useNameParam;\n const compositionIdentifierParam =\n useNameParam || (isScaling && includesEnvTemplates === false)\n ? `name=${currentComposition?.identifier}`\n : currentComposition?.identifier;\n\n const currentCompositionFullUrl = toPreviewUrl(component, 'compositions', compositionIdentifierParam);\n\n const [compositionParams, setCompositionParams] = useState<Record<string, any>>({\n fullscreen: true,\n });\n\n const queryParams = useMemo(() => queryString.stringify(compositionParams), [compositionParams]);\n\n // collapse sidebar when empty, reopen when not\n useEffect(() => setSidebarOpenness(showSidebar), [showSidebar]);\n return (\n <CompositionContextProvider queryParams={compositionParams} setQueryParams={setCompositionParams}>\n <SplitPane layout={sidebarOpenness} size=\"85%\" className={styles.compositionsPage}>\n <Pane className={styles.left}>\n <CompositionsMenuBar menuBarWidgets={menuBarWidgets} className={styles.menuBar}>\n <Link external href={currentCompositionFullUrl} className={styles.openInNewTab}>\n <OptionButton icon=\"open-tab\" />\n </Link>\n </CompositionsMenuBar>\n <CompositionContent\n className={styles.compositionPanel}\n emptyState={emptyState}\n component={component}\n selected={currentComposition}\n queryParams={queryParams}\n />\n </Pane>\n <HoverSplitter className={styles.splitter}>\n <Collapser\n placement=\"left\"\n isOpen={isSidebarOpen}\n onMouseDown={(e) => e.stopPropagation()} // avoid split-pane drag\n onClick={() => setSidebarOpenness((x) => !x)}\n tooltipContent={`${isSidebarOpen ? 'Hide' : 'Show'} side compositions`}\n className={styles.collapser}\n />\n </HoverSplitter>\n <Pane className={styles.right}>\n <ThemeContext>\n <TabContainer className={styles.tabsContainer}>\n <TabList className={styles.tabs}>\n <Tab>compositions</Tab>\n <Tab>properties</Tab>\n </TabList>\n <TabPanel className={styles.tabContent}>\n <CompositionsPanel\n isScaling={isScaling}\n useNameParam={useNameParam}\n includesEnvTemplate={component.preview?.includesEnvTemplate}\n onSelectComposition={(composition) => {\n if (!currentComposition || !location) return;\n const selectedCompositionFromUrl = params['*'];\n\n const pathSegments = location.pathname.split('/').filter((x) => x);\n\n if (!selectedCompositionFromUrl) {\n pathSegments.push(composition.identifier.toLowerCase());\n } else {\n pathSegments[pathSegments.length - 1] = composition.identifier.toLowerCase();\n }\n\n const urlParams = new URLSearchParams();\n if (versionFromQueryParams) {\n urlParams.set('version', versionFromQueryParams);\n }\n const newPath = pathSegments.join('/');\n navigate(`/${newPath}?${urlParams.toString()}`);\n }}\n url={compositionUrl}\n compositions={component.compositions}\n active={currentComposition}\n />\n </TabPanel>\n <TabPanel className={styles.tabContent}>\n {properties && properties.length > 0 ? <PropTable rows={properties} showListView /> : <div />}\n </TabPanel>\n </TabContainer>\n </ThemeContext>\n </Pane>\n </SplitPane>\n </CompositionContextProvider>\n );\n}\n\nexport type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition;\n queryParams?: string | string[];\n emptyState?: EmptyStateSlot;\n} & ComponentCompositionProps;\n\nexport function CompositionContent({\n component,\n selected,\n queryParams,\n emptyState,\n ...componentCompositionProps\n}: CompositionContentProps) {\n const env = component.environment?.id;\n const EmptyStateTemplate = emptyState?.get(env || ''); // || defaultTemplate;\n\n if (component.compositions.length === 0 && component.host === 'teambit.workspace/workspace' && EmptyStateTemplate) {\n return (\n <div className={styles.noCompositionsPage}>\n <div>\n <H1 className={styles.title}>Compositions</H1>\n <Separator isPresentational className={styles.separator} />\n <AlertCard\n level=\"info\"\n title=\"There are no\n compositions for this Component. Learn how to add compositions:\"\n >\n <MDXLayout>\n <EmptyStateTemplate />\n </MDXLayout>\n </AlertCard>\n </div>\n </div>\n );\n }\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard className={styles.buildStatusMessage} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard\n className={styles.buildStatusMessage}\n status=\"FAILURE\"\n title=\"failed to get component preview \"\n ></StatusMessageCard>\n );\n\n // TODO: get the docs domain from the community aspect and pass it here as a prop\n if (component.compositions.length === 0) {\n return (\n <EmptyBox\n title=\"There are no compositions for this component.\"\n linkText=\"Learn how to create compositions\"\n link={`https://bit.dev/reference/dev-services-overview/compositions/compositions-overview`}\n />\n );\n }\n\n return (\n <ComponentComposition\n className={styles.compositionsIframe}\n // TODO: Oded to add control for viewport.\n viewport={null}\n component={component}\n forceHeight=\"100%\"\n composition={selected}\n fullContentHeight\n pubsub={true}\n queryParams={queryParams}\n {...componentCompositionProps}\n />\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAK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AkC,OAAA,CAAA8F,aAAA,CAAChH,SAAA,GAAA8L,QAAQ;MACPX,KAAK,EAAC,+CAA+C;MACrDY,QAAQ,EAAC,kCAAkC;MAC3CC,IAAI,EAAG;IAAoF,CAC5F,CAAC;EAEN;EAEA,oBACEhN,MAAA,GAAAkC,OAAA,CAAA8F,aAAA,CAACnG,GAAA,GAAAoL,oBAAoB,EAAA3J,QAAA;IACnBgF,SAAS,EAAEC,6BAAM,CAAC2E;IAClB;IAAA;IACAC,QAAQ,EAAE,IAAK;IACfxI,SAAS,EAAEA,SAAU;IACrByI,WAAW,EAAC,MAAM;IAClBzH,WAAW,EAAEyD,QAAS;IACtBiE,iBAAiB;IACjBC,MAAM,EAAE,IAAK;IACb3F,WAAW,EAAEA;EAAY,GACrBiE,yBAAyB,CAC9B,CAAC;AAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","data","_interopRequireWildcard","require","_reactRouterDom","_lodash","_interopRequireDefault","_queryString","_documenterTheme","_baseUiSurfacesSplitPane","_baseUiSurfacesSplitPane2","_component","_documenterUi","_panels","_docsUiQueries","_uiFoundationUiButtons","_designUi","_previewUi","_uiFoundationUiHooks","_compositionsUi","_compositionsUiHooks","_mdxUi","_designUi2","_documenterUi2","_designUi3","_baseReactNavigation","_designUiInput","_designUiSurfaces","_compositionsModule","_ui","_compositionsPanel","_excluded","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","Link","BaseLink","Compositions","menuBarWidgets","emptyState","component","useContext","ComponentContext","searchParams","useSearchParams","params","useParams","versionFromQueryParams","navigate","useNavigate","location","useLocation","currentCompositionName","currentComposition","compositions","find","composition","identifier","toLowerCase","head","selectedRef","useRef","current","properties","useDocs","id","isMobile","useIsMobile","showSidebar","isSidebarOpen","setSidebarOpenness","useState","sidebarOpenness","Layout","row","left","compositionUrl","toPreviewUrl","isScaling","preview","includesEnvTemplates","includesEnvTemplate","useNameParam","compositionIdentifierParam","currentCompositionFullUrl","compositionParams","setCompositionParams","fullscreen","queryParams","useMemo","queryString","stringify","useEffect","createElement","CompositionContextProvider","setQueryParams","SplitPane","layout","size","className","styles","compositionsPage","Pane","CompositionsMenuBar","menuBar","external","href","openInNewTab","OptionButton","icon","CompositionContent","compositionPanel","selected","HoverSplitter","splitter","Collapser","placement","isOpen","onMouseDown","stopPropagation","onClick","x","tooltipContent","collapser","right","ThemeContext","TabContainer","tabsContainer","TabList","tabs","Tab","TabPanel","tabContent","CompositionsPanel","onSelectComposition","selectedCompositionFromUrl","pathSegments","pathname","split","filter","push","urlParams","URLSearchParams","newPath","join","toString","url","active","PropTable","rows","showListView","_ref","componentCompositionProps","env","environment","EmptyStateTemplate","host","noCompositionsPage","H1","title","Separator","isPresentational","separator","AlertCard","level","MDXLayout","buildStatus","StatusMessageCard","buildStatusMessage","status","EmptyBox","linkText","link","ComponentComposition","compositionsIframe","viewport","forceHeight","fullContentHeight","pubsub"],"sources":["compositions.tsx"],"sourcesContent":["import React, { useContext, useEffect, useState, useMemo, useRef, ReactNode } from 'react';\nimport { useParams, useSearchParams } from 'react-router-dom';\nimport head from 'lodash.head';\nimport queryString from 'query-string';\nimport { ThemeContext } from '@teambit/documenter.theme.theme-context';\nimport { SplitPane, Pane, Layout } from '@teambit/base-ui.surfaces.split-pane.split-pane';\nimport { HoverSplitter } from '@teambit/base-ui.surfaces.split-pane.hover-splitter';\nimport { ComponentContext, ComponentModel } from '@teambit/component';\nimport { PropTable } from '@teambit/documenter.ui.property-table';\nimport { Tab, TabContainer, TabList, TabPanel } from '@teambit/panels';\nimport { useDocs } from '@teambit/docs.ui.queries.get-docs';\nimport { Collapser } from '@teambit/ui-foundation.ui.buttons.collapser';\nimport { EmptyBox } from '@teambit/design.ui.empty-box';\nimport { toPreviewUrl } from '@teambit/preview.ui.component-preview';\nimport { useIsMobile } from '@teambit/ui-foundation.ui.hooks.use-is-mobile';\nimport { CompositionsMenuBar } from '@teambit/compositions.ui.compositions-menu-bar';\nimport { CompositionContextProvider } from '@teambit/compositions.ui.hooks.use-composition';\nimport { MDXLayout } from '@teambit/mdx.ui.mdx-layout';\nimport { Separator } from '@teambit/design.ui.separator';\nimport { H1 } from '@teambit/documenter.ui.heading';\nimport { AlertCard } from '@teambit/design.ui.alert-card';\nimport { Link as BaseLink, useNavigate, useLocation } from '@teambit/base-react.navigation.link';\nimport { OptionButton } from '@teambit/design.ui.input.option-button';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { EmptyStateSlot } from './compositions.ui.runtime';\nimport { Composition } from './composition';\nimport styles from './compositions.module.scss';\nimport { ComponentComposition } from './ui';\nimport { CompositionsPanel } from './ui/compositions-panel/compositions-panel';\nimport type { CompositionsMenuSlot } from './compositions.ui.runtime';\nimport { ComponentCompositionProps } from './ui/composition-preview';\n\n// @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest\nconst Link = BaseLink as any;\n\nexport type MenuBarWidget = {\n location: 'start' | 'end';\n content: ReactNode;\n};\nexport type CompositionsProp = { menuBarWidgets?: CompositionsMenuSlot; emptyState?: EmptyStateSlot };\n\nexport function Compositions({ menuBarWidgets, emptyState }: CompositionsProp) {\n const component = useContext(ComponentContext);\n const [searchParams] = useSearchParams();\n const params = useParams();\n const versionFromQueryParams = searchParams.get('version');\n const navigate = useNavigate();\n const location = useLocation();\n const currentCompositionName = params['*'];\n const currentComposition =\n component.compositions.find((composition) => composition.identifier.toLowerCase() === currentCompositionName) ||\n head(component.compositions);\n\n const selectedRef = useRef(currentComposition);\n selectedRef.current = currentComposition;\n\n const properties = useDocs(component.id);\n\n const isMobile = useIsMobile();\n const showSidebar = !isMobile && component.compositions.length > 0;\n const [isSidebarOpen, setSidebarOpenness] = useState(showSidebar);\n\n const sidebarOpenness = isSidebarOpen ? Layout.row : Layout.left;\n\n const compositionUrl = toPreviewUrl(component, 'compositions');\n const isScaling = component?.preview?.isScaling;\n const includesEnvTemplates = component?.preview?.includesEnvTemplate;\n const useNameParam = component?.preview?.useNameParam;\n const compositionIdentifierParam =\n useNameParam || (isScaling && includesEnvTemplates === false)\n ? `name=${currentComposition?.identifier}`\n : currentComposition?.identifier;\n\n const currentCompositionFullUrl = toPreviewUrl(component, 'compositions', compositionIdentifierParam);\n\n const [compositionParams, setCompositionParams] = useState<Record<string, any>>({\n fullscreen: true,\n });\n\n const queryParams = useMemo(() => queryString.stringify(compositionParams), [compositionParams]);\n\n // collapse sidebar when empty, reopen when not\n useEffect(() => setSidebarOpenness(showSidebar), [showSidebar]);\n return (\n <CompositionContextProvider queryParams={compositionParams} setQueryParams={setCompositionParams}>\n <SplitPane layout={sidebarOpenness} size=\"85%\" className={styles.compositionsPage}>\n <Pane className={styles.left}>\n <CompositionsMenuBar menuBarWidgets={menuBarWidgets} className={styles.menuBar}>\n <Link external href={currentCompositionFullUrl} className={styles.openInNewTab}>\n <OptionButton icon=\"open-tab\" />\n </Link>\n </CompositionsMenuBar>\n <CompositionContent\n className={styles.compositionPanel}\n emptyState={emptyState}\n component={component}\n selected={currentComposition}\n queryParams={queryParams}\n />\n </Pane>\n <HoverSplitter className={styles.splitter}>\n <Collapser\n placement=\"left\"\n isOpen={isSidebarOpen}\n onMouseDown={(e) => e.stopPropagation()} // avoid split-pane drag\n onClick={() => setSidebarOpenness((x) => !x)}\n tooltipContent={`${isSidebarOpen ? 'Hide' : 'Show'} side compositions`}\n className={styles.collapser}\n />\n </HoverSplitter>\n <Pane className={styles.right}>\n <ThemeContext>\n <TabContainer className={styles.tabsContainer}>\n <TabList className={styles.tabs}>\n <Tab>compositions</Tab>\n <Tab>properties</Tab>\n </TabList>\n <TabPanel className={styles.tabContent}>\n <CompositionsPanel\n isScaling={isScaling}\n useNameParam={useNameParam}\n includesEnvTemplate={component.preview?.includesEnvTemplate}\n onSelectComposition={(composition) => {\n if (!currentComposition || !location) return;\n const selectedCompositionFromUrl = params['*'];\n\n const pathSegments = location.pathname.split('/').filter((x) => x);\n\n if (!selectedCompositionFromUrl) {\n pathSegments.push(composition.identifier.toLowerCase());\n } else {\n pathSegments[pathSegments.length - 1] = composition.identifier.toLowerCase();\n }\n\n const urlParams = new URLSearchParams();\n if (versionFromQueryParams) {\n urlParams.set('version', versionFromQueryParams);\n }\n const newPath = pathSegments.join('/');\n navigate(`/${newPath}?${urlParams.toString()}`);\n }}\n url={compositionUrl}\n compositions={component.compositions}\n active={currentComposition}\n />\n </TabPanel>\n <TabPanel className={styles.tabContent}>\n {properties && properties.length > 0 ? <PropTable rows={properties} showListView /> : <div />}\n </TabPanel>\n </TabContainer>\n </ThemeContext>\n </Pane>\n </SplitPane>\n </CompositionContextProvider>\n );\n}\n\nexport type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition;\n queryParams?: string | string[];\n emptyState?: EmptyStateSlot;\n} & ComponentCompositionProps;\n\nexport function CompositionContent({\n component,\n selected,\n queryParams,\n emptyState,\n ...componentCompositionProps\n}: CompositionContentProps) {\n const env = component.environment?.id;\n const EmptyStateTemplate = emptyState?.get(env || ''); // || defaultTemplate;\n\n if (component.compositions.length === 0 && component.host === 'teambit.workspace/workspace' && EmptyStateTemplate) {\n return (\n <div className={styles.noCompositionsPage}>\n <div>\n <H1 className={styles.title}>Compositions</H1>\n <Separator isPresentational className={styles.separator} />\n <AlertCard\n level=\"info\"\n title=\"There are no\n compositions for this Component. Learn how to add compositions:\"\n >\n <MDXLayout>\n <EmptyStateTemplate />\n </MDXLayout>\n </AlertCard>\n </div>\n </div>\n );\n }\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard className={styles.buildStatusMessage} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard\n className={styles.buildStatusMessage}\n status=\"FAILURE\"\n title=\"failed to get component preview \"\n ></StatusMessageCard>\n );\n\n // TODO: get the docs domain from the community aspect and pass it here as a prop\n if (component.compositions.length === 0) {\n return (\n <EmptyBox\n title=\"There are no compositions for this component.\"\n linkText=\"Learn how to create compositions\"\n link={`https://bit.dev/reference/dev-services-overview/compositions/compositions-overview`}\n />\n );\n }\n\n return (\n <ComponentComposition\n className={styles.compositionsIframe}\n // TODO: Oded to add control for viewport.\n viewport={null}\n component={component}\n forceHeight=\"100%\"\n composition={selected}\n fullContentHeight\n pubsub={true}\n queryParams={queryParams}\n {...componentCompositionProps}\n />\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,aAAA;EAAA,MAAAN,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAI,YAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,iBAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,gBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,yBAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,wBAAA,YAAAA,CAAA;IAAA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E,IAAK;IACb1F,WAAW,EAAEA;EAAY,GACrBgE,yBAAyB,CAC9B,CAAC;AAEN","ignoreList":[]}
@@ -15,7 +15,7 @@ export declare class CompositionsUI {
15
15
  */
16
16
  registerEmptyState(emptyStateComponent: ComponentType): this;
17
17
  registerMenuWidget(...widget: MenuBarWidget[]): void;
18
- getCompositionsCompare: () => JSX.Element;
18
+ getCompositionsCompare: () => import("react/jsx-runtime").JSX.Element;
19
19
  static dependencies: import("@teambit/harmony").Aspect[];
20
20
  static runtime: import("@teambit/harmony").RuntimeDefinition;
21
21
  static slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[];
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@1.0.193/dist/compositions.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@1.0.193/dist/compositions.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@1.0.195/dist/compositions.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@1.0.195/dist/compositions.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -6,4 +6,4 @@ export type ComponentCompositionProps = {
6
6
  */
7
7
  composition?: Composition;
8
8
  } & ComponentPreviewProps;
9
- export declare function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps): JSX.Element;
9
+ export declare function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps): import("react/jsx-runtime").JSX.Element;
@@ -24,4 +24,4 @@ export type CompositionsPanelProps = {
24
24
  includesEnvTemplate?: boolean;
25
25
  useNameParam?: boolean;
26
26
  } & React.HTMLAttributes<HTMLUListElement>;
27
- export declare function CompositionsPanel({ url, compositions, isScaling, onSelectComposition: onSelect, active, includesEnvTemplate, useNameParam, className, ...rest }: CompositionsPanelProps): JSX.Element;
27
+ export declare function CompositionsPanel({ url, compositions, isScaling, onSelectComposition: onSelect, active, includesEnvTemplate, useNameParam, className, ...rest }: CompositionsPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export type CompositionsPanelNodeProps = {
4
4
  onClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
5
5
  isActive: boolean;
6
6
  } & React.HTMLAttributes<HTMLLIElement>;
7
- export declare function CompositionsPanelNode({ name, onClick, isActive, ...rest }: CompositionsPanelNodeProps): JSX.Element;
7
+ export declare function CompositionsPanelNode({ name, onClick, isActive, ...rest }: CompositionsPanelNodeProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/compositions",
3
- "version": "1.0.193",
3
+ "version": "1.0.195",
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.193"
9
+ "version": "1.0.195"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -34,23 +34,23 @@
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.193",
37
+ "@teambit/component": "1.0.195",
38
38
  "@teambit/compositions.model.composition-id": "0.0.502",
39
- "@teambit/graphql": "1.0.193",
39
+ "@teambit/graphql": "1.0.195",
40
40
  "@teambit/cli": "0.0.857",
41
- "@teambit/dev-files": "1.0.193",
42
- "@teambit/envs": "1.0.193",
43
- "@teambit/preview": "1.0.193",
44
- "@teambit/schema": "1.0.193",
45
- "@teambit/scope": "1.0.193",
41
+ "@teambit/dev-files": "1.0.195",
42
+ "@teambit/envs": "1.0.195",
43
+ "@teambit/preview": "1.0.195",
44
+ "@teambit/schema": "1.0.195",
45
+ "@teambit/scope": "1.0.195",
46
46
  "@teambit/toolbox.path.match-patterns": "0.0.15",
47
- "@teambit/workspace": "1.0.193",
47
+ "@teambit/workspace": "1.0.195",
48
48
  "@teambit/docs.ui.queries.get-docs": "0.0.508",
49
49
  "@teambit/panels": "0.0.859",
50
50
  "@teambit/preview.ui.component-preview": "1.0.5",
51
51
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.219",
52
- "@teambit/component-compare": "1.0.193",
53
- "@teambit/ui": "1.0.193"
52
+ "@teambit/component-compare": "1.0.195",
53
+ "@teambit/ui": "1.0.195"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/lodash": "4.14.165",