@teambit/react 1.0.1083 → 1.0.1085

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.
Files changed (40) hide show
  1. package/artifacts/env-template/public/{761.85fc21305acc4b338568.js → 351.c4ad7767b27d6ecc7aa3.js} +12 -12
  2. package/artifacts/env-template/public/{252.dd1776cd36b7143d34ea.js → 492.65ac8e94e38a727a776e.js} +5 -5
  3. package/artifacts/env-template/public/{806.226eee9edf1026394782.js → 952.18043048b93d872e69b9.js} +2 -2
  4. package/artifacts/env-template/public/assets-manifest.json +18 -18
  5. package/artifacts/env-template/public/{compositions.2651d171f053f2e0e259.js → compositions.6039d84ca4cf718772d4.js} +2 -2
  6. package/artifacts/env-template/public/compositions.html +1 -1
  7. package/artifacts/env-template/public/{overview.05b271e7004863d4d6ba.js → overview.ad49944d4c4acd9b293a.js} +2 -2
  8. package/artifacts/env-template/public/overview.html +1 -1
  9. package/artifacts/env-template/public/{preview-root.33ee8ce7e66ee667e142.js → preview-root.061b56c653a3cc2ec137.js} +1 -1
  10. package/artifacts/env-template/public/static/css/preview-root.21652b71.css +1 -0
  11. package/{compositions-1785371732014.js → compositions-1785438161098.js} +2 -2
  12. package/dist/apps/web/react.application.js +5 -6
  13. package/dist/apps/web/react.application.js.map +1 -1
  14. package/dist/apps/web/ssr/ssr-express.js +6 -6
  15. package/dist/apps/web/ssr/ssr-express.js.map +1 -1
  16. package/dist/apps/web/webpack/mutators.js +3 -4
  17. package/dist/apps/web/webpack/mutators.js.map +1 -1
  18. package/dist/eslint/eslintrc.d.ts +1 -1
  19. package/dist/jest/jest.cjs.config.d.ts +4 -4
  20. package/dist/jest/jest.config.d.ts +1 -1
  21. package/dist/jest/jest.esm.config.d.ts +4 -4
  22. package/dist/prettier/prettier.config.d.ts +6 -3
  23. package/dist/{preview-1785371732014.js → preview-1785438161098.js} +2 -2
  24. package/dist/react.env.js +5 -6
  25. package/dist/react.env.js.map +1 -1
  26. package/dist/react.main.runtime.js +10 -10
  27. package/dist/react.main.runtime.js.map +1 -1
  28. package/dist/react.schema.d.ts +1 -1
  29. package/dist/react.schema.js +7 -11
  30. package/dist/react.schema.js.map +1 -1
  31. package/dist/webpack/overlay/formatWebpackMessages.d.ts +6 -0
  32. package/dist/webpack/overlay/launchEditorEndpoint.d.ts +1 -1
  33. package/dist/webpack/overlay/refreshOverlayInterop.d.ts +7 -1
  34. package/{overview-1785371732014.js → overview-1785438161098.js} +2 -2
  35. package/package.json +60 -33
  36. package/types/asset.d.ts +15 -3
  37. package/types/style.d.ts +4 -0
  38. package/artifacts/env-template/public/static/css/preview-root.5df7b9ad.css +0 -1
  39. /package/artifacts/env-template/public/{peers.59282f709487826a6776.js → peers.56422f4f9f9829b62ebe.js} +0 -0
  40. /package/artifacts/env-template/public/static/css/{252.61d2d806.css → 492.61d2d806.css} +0 -0
@@ -1,4 +1,4 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[806],{5435:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(30971);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},30971:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},11264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PreviewModules}},Object.defineProperty(exports,"uf",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(5435);return _previewModules=function(){return data},data}},58142:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=compareUrl;function isSubObject(source,target){for(const[key,value]of source.entries())if(target.get(key)!==value)return!1;return!0}function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.search||isSubObject(match.searchParams,base.searchParams))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.search||isSubObject(new URLSearchParams(base.search),new URLSearchParams(match.search)))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function compareUrl(baseUrlFromParams,toMatchUrlFromParams,{exact=!1,strict=!1}={}){if(baseUrlFromParams===toMatchUrlFromParams)return!0;let baseUrlStr=baseUrlFromParams,toMatchUrlStr=toMatchUrlFromParams;strict||(baseUrlStr=baseUrlStr.replace(/\/(?=[?#]|$)/,""),toMatchUrlStr=toMatchUrlStr.replace(/\/(?=[?#]|$)/,""));try{const base=new URL(baseUrlStr,"http://example.com"),match=new URL(toMatchUrlStr,"http://example.com"),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}catch(error){return console.error("Invalid URL provided:",error),!1}}},49729:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_js_1=__webpack_require__(16669);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_js_1.Link}});var use_location_js_1=__webpack_require__(3660);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_js_1.useLocation}});var use_navigate_js_1=__webpack_require__(11904);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_js_1.useNavigate}});var navigation_provider_js_1=__webpack_require__(61257);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_js_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_js_1.NavigationProvider}})},16669:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(12888)),navigation_provider_js_1=__webpack_require__(61257),native_link_js_1=__webpack_require__(74287);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_js_1.useNavigation)().Link||native_link_js_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_js_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},74287:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(96265)),compare_url_js_1=__webpack_require__(58142),use_location_js_1=__webpack_require__(3660),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,children,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","children","exact","href","external","native","state"]);const location=(0,use_location_js_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,compare_url_js_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}),children)})},61257:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationContext=void 0,exports.useNavigation=useNavigation,exports.NavigationProvider=NavigationProvider;const react_1=__importStar(__webpack_require__(12888));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}},3660:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=useLocation;const navigation_provider_js_1=__webpack_require__(61257);function NativeUseLocation(){if(!(typeof window>"u"))return window.location}function useLocation(){return((0,navigation_provider_js_1.useNavigation)().useLocation||NativeUseLocation)()}},11904:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=useNavigate;const navigation_provider_js_1=__webpack_require__(61257);function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}function useNavigate(){var _a;const nav=(0,navigation_provider_js_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}},67446:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(25360);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},25360:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97500)),react_1=__importDefault(__webpack_require__(12888)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(32785));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},30678:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(12888));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},40218:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;var composer_1=__webpack_require__(30678);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},80124:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0;var links_1=__webpack_require__(63253);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},63253:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},98362:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(12888)),base_react_navigation_link_1=__webpack_require__(49729),community_constants_links_1=__webpack_require__(80124),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){const style={props};return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},8520:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[952],{92617:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(31449);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},31449:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},78410:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PreviewModules}},Object.defineProperty(exports,"uf",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(92617);return _previewModules=function(){return data},data}},58142:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=compareUrl;function isSubObject(source,target){for(const[key,value]of source.entries())if(target.get(key)!==value)return!1;return!0}function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.search||isSubObject(match.searchParams,base.searchParams))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.search||isSubObject(new URLSearchParams(base.search),new URLSearchParams(match.search)))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function compareUrl(baseUrlFromParams,toMatchUrlFromParams,{exact=!1,strict=!1}={}){if(baseUrlFromParams===toMatchUrlFromParams)return!0;let baseUrlStr=baseUrlFromParams,toMatchUrlStr=toMatchUrlFromParams;strict||(baseUrlStr=baseUrlStr.replace(/\/(?=[?#]|$)/,""),toMatchUrlStr=toMatchUrlStr.replace(/\/(?=[?#]|$)/,""));try{const base=new URL(baseUrlStr,"http://example.com"),match=new URL(toMatchUrlStr,"http://example.com"),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}catch(error){return console.error("Invalid URL provided:",error),!1}}},49729:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_js_1=__webpack_require__(16669);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_js_1.Link}});var use_location_js_1=__webpack_require__(3660);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_js_1.useLocation}});var use_navigate_js_1=__webpack_require__(11904);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_js_1.useNavigate}});var navigation_provider_js_1=__webpack_require__(61257);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_js_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_js_1.NavigationProvider}})},16669:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(12888)),navigation_provider_js_1=__webpack_require__(61257),native_link_js_1=__webpack_require__(74287);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_js_1.useNavigation)().Link||native_link_js_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_js_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},74287:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(96265)),compare_url_js_1=__webpack_require__(58142),use_location_js_1=__webpack_require__(3660),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,children,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","children","exact","href","external","native","state"]);const location=(0,use_location_js_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,compare_url_js_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}),children)})},61257:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationContext=void 0,exports.useNavigation=useNavigation,exports.NavigationProvider=NavigationProvider;const react_1=__importStar(__webpack_require__(12888));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}},3660:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=useLocation;const navigation_provider_js_1=__webpack_require__(61257);function NativeUseLocation(){if(!(typeof window>"u"))return window.location}function useLocation(){return((0,navigation_provider_js_1.useNavigation)().useLocation||NativeUseLocation)()}},11904:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=useNavigate;const navigation_provider_js_1=__webpack_require__(61257);function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}function useNavigate(){var _a;const nav=(0,navigation_provider_js_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}},67446:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(25360);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},25360:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97500)),react_1=__importDefault(__webpack_require__(12888)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(32785));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},30678:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(12888));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},40218:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;var composer_1=__webpack_require__(30678);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},80124:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0;var links_1=__webpack_require__(63253);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},63253:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},98362:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(12888)),base_react_navigation_link_1=__webpack_require__(49729),community_constants_links_1=__webpack_require__(80124),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){const style={props};return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},8520:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
2
2
  .bit-error-page-title { font-size: 36px; }
3
3
  @media screen and (max-width: 480px) { .bit-error-page-title { font-size: 24px; } }
4
4
  `;function ErrorPage(_a){var{code,title,style,children}=_a,rest=__rest(_a,["code","title","style","children"]);return react_1.default.createElement("div",Object.assign({},rest,{style:Object.assign(Object.assign({},styles.errorPage),style)}),react_1.default.createElement("style",null,inlineStyles),react_1.default.createElement("h1",{style:styles.title,className:"bit-error-page-title"},title),react_1.default.createElement("img",{alt:"error",style:styles.img,src:`https://static.bit.dev/harmony/${code}.svg`}),children)}exports.ErrorPage=ErrorPage},64540:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0,__exportStar(__webpack_require__(8520),exports);var contact_footer_1=__webpack_require__(98362);Object.defineProperty(exports,"ContactIcons",{enumerable:!0,get:function(){return contact_footer_1.ContactIcons}})},96119:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;var not_found_page_1=__webpack_require__(90863);Object.defineProperty(exports,"NotFoundPage",{enumerable:!0,get:function(){return not_found_page_1.NotFoundPage}})},90863:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),design_ui_error_page_1=__webpack_require__(64540);function NotFoundPage(_a){var rest=__rest(_a,[]);return react_1.default.createElement(design_ui_error_page_1.ErrorPage,Object.assign({},rest,{code:404,title:"Page not found"}),react_1.default.createElement(design_ui_error_page_1.ContactIcons,null))}exports.NotFoundPage=NotFoundPage},55908:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(54260),exports)},54260:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StandaloneNotFoundPage=StandaloneNotFoundPage;const react_1=__importDefault(__webpack_require__(12888)),design_ui_pages_not_found_1=__webpack_require__(96119);function StandaloneNotFoundPage(){return react_1.default.createElement(design_ui_pages_not_found_1.NotFoundPage,{style:{fontFamily:'"Helvetica Neue",Helvetica, sans-serif'}})}},96265:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -33,4 +33,4 @@ Error generating stack: `+x.message+`
33
33
  Copyright (c) 2018 Jed Watson.
34
34
  Licensed under the MIT License (MIT), see
35
35
  http://jedwatson.github.io/classnames
36
- */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},92309:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(89699)}}]);
36
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},32185:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(89699)}}]);
@@ -1,34 +1,34 @@
1
1
  {
2
- "252.dd1776cd36b7143d34ea.js": "252.dd1776cd36b7143d34ea.js",
3
- "761.85fc21305acc4b338568.js": "761.85fc21305acc4b338568.js",
4
- "806.226eee9edf1026394782.js": "806.226eee9edf1026394782.js",
2
+ "351.c4ad7767b27d6ecc7aa3.js": "351.c4ad7767b27d6ecc7aa3.js",
3
+ "492.65ac8e94e38a727a776e.js": "492.65ac8e94e38a727a776e.js",
4
+ "952.18043048b93d872e69b9.js": "952.18043048b93d872e69b9.js",
5
5
  "compositions.css": "static/css/compositions.b7ba1a09.css",
6
6
  "compositions.html": "compositions.html",
7
- "compositions.js": "compositions.2651d171f053f2e0e259.js",
7
+ "compositions.js": "compositions.6039d84ca4cf718772d4.js",
8
8
  "entrypoints": {
9
9
  "peers": {
10
10
  "assets": {
11
11
  "js": [
12
- "peers.59282f709487826a6776.js"
12
+ "peers.56422f4f9f9829b62ebe.js"
13
13
  ]
14
14
  }
15
15
  },
16
16
  "preview-root": {
17
17
  "assets": {
18
18
  "js": [
19
- "761.85fc21305acc4b338568.js",
20
- "preview-root.33ee8ce7e66ee667e142.js"
19
+ "351.c4ad7767b27d6ecc7aa3.js",
20
+ "preview-root.061b56c653a3cc2ec137.js"
21
21
  ],
22
22
  "css": [
23
- "static/css/preview-root.5df7b9ad.css"
23
+ "static/css/preview-root.21652b71.css"
24
24
  ]
25
25
  }
26
26
  },
27
27
  "compositions": {
28
28
  "assets": {
29
29
  "js": [
30
- "806.226eee9edf1026394782.js",
31
- "compositions.2651d171f053f2e0e259.js"
30
+ "952.18043048b93d872e69b9.js",
31
+ "compositions.6039d84ca4cf718772d4.js"
32
32
  ],
33
33
  "css": [
34
34
  "static/css/compositions.b7ba1a09.css"
@@ -38,19 +38,19 @@
38
38
  "overview": {
39
39
  "assets": {
40
40
  "js": [
41
- "252.dd1776cd36b7143d34ea.js",
42
- "overview.05b271e7004863d4d6ba.js"
41
+ "492.65ac8e94e38a727a776e.js",
42
+ "overview.ad49944d4c4acd9b293a.js"
43
43
  ],
44
44
  "css": [
45
- "static/css/252.61d2d806.css"
45
+ "static/css/492.61d2d806.css"
46
46
  ]
47
47
  }
48
48
  }
49
49
  },
50
50
  "overview.html": "overview.html",
51
- "overview.js": "overview.05b271e7004863d4d6ba.js",
52
- "peers.js": "peers.59282f709487826a6776.js",
53
- "preview-root.css": "static/css/preview-root.5df7b9ad.css",
54
- "preview-root.js": "preview-root.33ee8ce7e66ee667e142.js",
55
- "static/css/252.61d2d806.css": "static/css/252.61d2d806.css"
51
+ "overview.js": "overview.ad49944d4c4acd9b293a.js",
52
+ "peers.js": "peers.56422f4f9f9829b62ebe.js",
53
+ "preview-root.css": "static/css/preview-root.21652b71.css",
54
+ "preview-root.js": "preview-root.061b56c653a3cc2ec137.js",
55
+ "static/css/492.61d2d806.css": "static/css/492.61d2d806.css"
56
56
  }
@@ -1,2 +1,2 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{74778:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bvm_versions_2_0_49_bit_2_0_49_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11264),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_aa880bdba40b9af1d8fe895dca476e207182accb_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(92309);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_49_bit_2_0_49_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_aa880bdba40b9af1d8fe895dca476e207182accb_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[806,761,518],()=>__webpack_exec__(74778));var __webpack_exports__=__webpack_require__.O()}]);
1
+ "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{69844:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bvm_versions_2_0_51_bit_2_0_51_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(78410),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32185);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_51_bit_2_0_51_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[952,351,518],()=>__webpack_exec__(69844));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.59282f709487826a6776.js"></script><script defer="defer" src="761.85fc21305acc4b338568.js"></script><script defer="defer" src="preview-root.33ee8ce7e66ee667e142.js"></script><script defer="defer" src="806.226eee9edf1026394782.js"></script><script defer="defer" src="compositions.2651d171f053f2e0e259.js"></script><link href="static/css/preview-root.5df7b9ad.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.56422f4f9f9829b62ebe.js"></script><script defer="defer" src="351.c4ad7767b27d6ecc7aa3.js"></script><script defer="defer" src="preview-root.061b56c653a3cc2ec137.js"></script><script defer="defer" src="952.18043048b93d872e69b9.js"></script><script defer="defer" src="compositions.6039d84ca4cf718772d4.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1,2 +1,2 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{34922:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bvm_versions_2_0_49_bit_2_0_49_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11264),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_0557d705b67dd1e1bccbac0bd34835a41036cf72_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52252);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_49_bit_2_0_49_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_0557d705b67dd1e1bccbac0bd34835a41036cf72_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891:()=>{},91044:()=>{},38954:()=>{},71220:()=>{},38854:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[252,761,518,806,866],()=>__webpack_exec__(34922));var __webpack_exports__=__webpack_require__.O()}]);
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{98724:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bvm_versions_2_0_51_bit_2_0_51_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(78410),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95492);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_51_bit_2_0_51_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891:()=>{},91044:()=>{},38954:()=>{},71220:()=>{},38854:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[492,351,518,952,866],()=>__webpack_exec__(98724));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.59282f709487826a6776.js"></script><script defer="defer" src="761.85fc21305acc4b338568.js"></script><script defer="defer" src="preview-root.33ee8ce7e66ee667e142.js"></script><script defer="defer" src="806.226eee9edf1026394782.js"></script><script defer="defer" src="compositions.2651d171f053f2e0e259.js"></script><script defer="defer" src="252.dd1776cd36b7143d34ea.js"></script><script defer="defer" src="overview.05b271e7004863d4d6ba.js"></script><link href="static/css/preview-root.5df7b9ad.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/252.61d2d806.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.56422f4f9f9829b62ebe.js"></script><script defer="defer" src="351.c4ad7767b27d6ecc7aa3.js"></script><script defer="defer" src="preview-root.061b56c653a3cc2ec137.js"></script><script defer="defer" src="952.18043048b93d872e69b9.js"></script><script defer="defer" src="compositions.6039d84ca4cf718772d4.js"></script><script defer="defer" src="492.65ac8e94e38a727a776e.js"></script><script defer="defer" src="overview.ad49944d4c4acd9b293a.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/492.61d2d806.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1 +1 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[518],{},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[761],()=>__webpack_exec__(98761));var __webpack_exports__=__webpack_require__.O()}]);
1
+ "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[518],{},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[351],()=>__webpack_exec__(1351));var __webpack_exports__=__webpack_require__.O()}]);
@@ -0,0 +1 @@
1
+ .frame\.module__overlayBorder--XzM3Z{border:2px solid #eebcc9;border:2px solid var(--bit-highlighter-color,#eebcc9);border-radius:11px;box-sizing:border-box;padding:4px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.frame\.module__hidden--XzM3Z{display:none}.label\.module__othersContainer--Y2EwO>*{margin-bottom:8px}.label\.module__othersContainer--Y2EwO>:last-child{margin-bottom:0}.label\.module__othersTooltip--Y2EwO{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.label\.module__othersTooltip--Y2EwO:before{content:"▾";display:inline-block;transition:transform .3s}.label\.module__othersTooltip--Y2EwO.label\.module__active--Y2EwO:before{transform:rotate(-180deg)}.label\.module__hidden--Y2EwO{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden}.component-strip\.module__componentStrip--XzYyN{border-radius:.5em;box-shadow:var(--bit-highlighter-shadow);display:flex;white-space:nowrap;width:-moz-fit-content;width:fit-content}.component-strip\.module__componentStrip--XzYyN>*{background:#eebcc9;background:var(--bit-highlighter-color,#eebcc9);line-height:1.5;margin-right:.125em;padding:0 .5em;transform:translateZ(0);transition:filter .3s,background-color .3s}.component-strip\.module__componentStrip--XzYyN>:link,.component-strip\.module__componentStrip--XzYyN>:visited{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.component-strip\.module__componentStrip--XzYyN>:link:hover,.component-strip\.module__componentStrip--XzYyN>:visited:hover{background:#f6dae2;background:var(--bit-highlighter-color-hover,#f6dae2)}.component-strip\.module__componentStrip--XzYyN>:link:active,.component-strip\.module__componentStrip--XzYyN>:visited:active{background:#e79db1;background:var(--bit-highlighter-color-active,#e79db1);color:inherit}.component-strip\.module__componentStrip--XzYyN>:first-child{border-bottom-left-radius:.5em;border-top-left-radius:.5em}.component-strip\.module__componentStrip--XzYyN>:last-child{border-bottom-right-radius:.5em;border-top-right-radius:.5em;margin-right:0}.component-strip\.module__nameBlock--XzYyN{display:flex}.component-strip\.module__nameBlock--XzYyN .component-strip\.module__version--XzYyN{max-width:13ch;overflow:hidden;text-overflow:ellipsis;transition:max-width .48s;white-space:nowrap}.component-strip\.module__nameBlock--XzYyN .component-strip\.module__version--XzYyN:hover{max-width:61ch}.element-highlighter\.module__label--XzQyM{padding:8px}.element-highlighter\.module__frame--XzQyM,.element-highlighter\.module__label--XzQyM{z-index:15500}.highlighter-provider\.module__highlighter--XzBjO{border:solid #ededed;border:0 solid var(--bit-border-color-lightest,#ededed);box-sizing:border-box;height:100%;transition:border .3s}.highlighter-provider\.module__highlighter--XzBjO.highlighter-provider\.module__active--XzBjO{border-width:8px;overflow:auto}.highlighter-provider\.module__label--XzBjO{font-family:sans-serif;font-size:12px}
@@ -1,4 +1,4 @@
1
- import { linkModules } from '/home/circleci/.bvm/versions/2.0.49/bit-2.0.49/node_modules/@teambit/preview/dist/preview-modules.js';
1
+ import { linkModules } from '/home/circleci/.bvm/versions/2.0.51/bit-2.0.51/node_modules/@teambit/preview/dist/preview-modules.js';
2
2
 
3
3
  // strip leading/trailing slashes from any id we compare
4
4
  function __bitNormalizeId(id) {
@@ -43,7 +43,7 @@ function __bitSurfaceToOverlay(err, componentId) {
43
43
  }, 0);
44
44
  }
45
45
 
46
- import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-aa880bdba40b9af1d8fe895dca476e207182accb.mjs";
46
+ import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-68b147035e4e910b00e4b8a4a3ce04a0de2e2e59.mjs";
47
47
  async function initializeModules() {
48
48
 
49
49
  linkModules('compositions', {
@@ -136,7 +136,6 @@ class ReactApp {
136
136
  };
137
137
  }
138
138
  async runSsr(context) {
139
- var _this$logger, _this$logger2, _this$logger3;
140
139
  const [from, to] = this.portRange;
141
140
  const port = await _toolboxNetwork().Port.getPort(from, to);
142
141
 
@@ -145,18 +144,18 @@ class ReactApp {
145
144
  if (clientBundle.errors.length > 0) return {
146
145
  errors: clientBundle.errors
147
146
  };
148
- (_this$logger = this.logger) === null || _this$logger === void 0 || _this$logger.info('[react.application] [ssr] client bundle - complete');
147
+ this.logger?.info('[react.application] [ssr] client bundle - complete');
149
148
 
150
149
  // bundle server
151
150
  const serverBundle = await this.buildSsr(context);
152
151
  if (serverBundle.errors.length > 0) return {
153
152
  errors: serverBundle.errors
154
153
  };
155
- (_this$logger2 = this.logger) === null || _this$logger2 === void 0 || _this$logger2.info('[react.application] [ssr] server bundle - complete');
154
+ this.logger?.info('[react.application] [ssr] server bundle - complete');
156
155
 
157
156
  // load server-side runtime
158
157
  const app = await (0, _ssrExpress().loadSsrApp)(context.workdir, context.appName);
159
- (_this$logger3 = this.logger) === null || _this$logger3 === void 0 || _this$logger3.info('[react.application] [ssr] bundle code - loaded');
158
+ this.logger?.info('[react.application] [ssr] bundle code - loaded');
160
159
  const expressApp = (0, _ssrExpress().createExpressSsr)({
161
160
  name: context.appName,
162
161
  workdir: context.workdir,
@@ -340,10 +339,10 @@ class ReactApp {
340
339
  const entries = targetEntries.map(entry => require.resolve(`${capsule.path}/${distDir}/${(0, _path().basename)(entry)}`));
341
340
  const bundlerContext = Object.assign(context, {
342
341
  targets: [{
343
- components: [capsule === null || capsule === void 0 ? void 0 : capsule.component],
342
+ components: [capsule?.component],
344
343
  entries,
345
344
  outputPath,
346
- hostRootDir: capsule === null || capsule === void 0 ? void 0 : capsule.path,
345
+ hostRootDir: capsule?.path,
347
346
  hostDependencies: this.getHostDependencies(),
348
347
  aliasHostDependencies: true
349
348
  }],
@@ -1 +1 @@
1
- {"version":3,"names":["_fs","data","require","_path","_toolboxNetwork","_component","_dependencyResolver","_lodash","_interopRequireDefault","_bitError","_webpack","_computeResults","_webpackAppSsr","_mutators","_ssrExpress","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactApp","constructor","name","entry","ssr","portRange","reactEnv","logger","dependencyResolver","bundler","ssrBundler","devServer","transformers","deploy","favicon","webpackModulePath","webpackDevServerModulePath","run","context","from","to","port","Port","getPort","listen","console","appName","devServerContext","getDevServerContext","getDevServer","addDevServer","setOutput","setDevServerClient","runSsr","_this$logger","_this$logger2","_this$logger3","clientBundle","buildClient","errors","info","serverBundle","buildSsr","app","loadSsrApp","workdir","expressApp","createExpressSsr","assets","parseAssets","htmlConfig","title","templateContent","html","minify","ctx","assign","create","targets","entries","getEntries","components","appComponent","outputPath","resolve","calcOutputPath","hostDependencies","getHostDependencies","aliasHostDependencies","capsuleNetwork","undefined","previousTasksResults","getBundler","config","merge","clientConfig","bundleResult","getSsrEntries","ssrConfig","build","ssrAppDir","join","getPublicDir","artifactsDir","buildSsrApp","computeResults","publicDir","dir","ssrPublicDir","getSsrBundler","runner","readFileSync","__dirname","toString","capsule","fs","writeFileSync","capsuleSsrDir","getPath","installer","getInstaller","packageManager","rootDir","cacheRootDirectory","install","getSsrPolicy","ComponentMap","Map","workspacePolicy","WorkspacePolicy","add","lifecycleType","dependencyId","version","getDefaultBundler","getDefaultSsrBundler","path","bundlerContext","getBuildContext","compact","configMutator","buildConfig","replaceTerserPlugin","env","ssrBuildConfig","ssrDir","distDir","getCompiler","targetEntries","map","basename","component","hostRootDir","rootPath","metaData","initiator","envId","id","applicationType","Array","isArray","BitError","publicPath","getAdditionalHostDependencies","exports"],"sources":["react.application.ts"],"sourcesContent":["import { readFileSync } from 'fs';\nimport { join, resolve, basename } from 'path';\nimport type { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';\nimport type { Bundler, DevServer, BundlerContext, DevServerContext, BundlerHtmlConfig } from '@teambit/bundler';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { ComponentMap } from '@teambit/component';\nimport type { Logger } from '@teambit/logger';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { WorkspacePolicy } from '@teambit/dependency-resolver';\nimport compact from 'lodash.compact';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\nimport { BitError } from '@teambit/bit-error';\nimport type { ReactEnv } from '../../react.env';\nimport type { ReactAppBuildResult } from './react-build-result';\nimport { html } from '../../webpack';\nimport type { ReactDeployContext } from './deploy-context';\nimport { computeResults } from './compute-results';\nimport { clientConfig, ssrConfig, calcOutputPath, ssrBuildConfig, buildConfig } from './webpack/webpack.app.ssr.config';\nimport { addDevServer, setOutput, replaceTerserPlugin, setDevServerClient } from './webpack/mutators';\nimport { createExpressSsr, loadSsrApp, parseAssets } from './ssr/ssr-express';\n\nexport class ReactApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string[] | ((path?: string) => Promise<string[]>),\n readonly ssr: string | (() => Promise<string>) | undefined,\n readonly portRange: [number, number],\n private reactEnv: ReactEnv,\n private logger: Logger,\n private dependencyResolver: DependencyResolverMain,\n readonly bundler?: Bundler,\n readonly ssrBundler?: Bundler,\n readonly devServer?: DevServer,\n readonly transformers: WebpackConfigTransformer[] = [],\n readonly deploy?: (context: ReactDeployContext) => Promise<void>,\n readonly favicon?: string,\n readonly webpackModulePath?: string,\n readonly webpackDevServerModulePath?: string\n ) {}\n readonly applicationType = 'react-common-js';\n readonly dir = 'public';\n readonly ssrDir = 'ssr';\n\n async run(context: AppContext): Promise<ApplicationInstance> {\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n\n if (this.devServer) {\n await this.devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n const devServerContext = await this.getDevServerContext(context);\n const devServer = this.reactEnv.getDevServer(\n devServerContext,\n [addDevServer, setOutput, setDevServerClient, ...this.transformers],\n this.webpackModulePath,\n this.webpackDevServerModulePath\n );\n await devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n async runSsr(context: AppContext): Promise<AppResult> {\n const [from, to] = this.portRange;\n const port = await Port.getPort(from, to);\n\n // bundle client\n const clientBundle = await this.buildClient(context);\n if (clientBundle.errors.length > 0) return { errors: clientBundle.errors };\n this.logger?.info('[react.application] [ssr] client bundle - complete');\n\n // bundle server\n const serverBundle = await this.buildSsr(context);\n if (serverBundle.errors.length > 0) return { errors: serverBundle.errors };\n this.logger?.info('[react.application] [ssr] server bundle - complete');\n\n // load server-side runtime\n const app = await loadSsrApp(context.workdir, context.appName);\n this.logger?.info('[react.application] [ssr] bundle code - loaded');\n\n const expressApp = createExpressSsr({\n name: context.appName,\n workdir: context.workdir,\n port,\n app,\n assets: parseAssets(clientBundle.assets),\n logger: this.logger,\n });\n\n expressApp.listen(port);\n this.logger.console(`listening on port ${port}`);\n return { port };\n }\n\n private async buildClient(context: AppContext) {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.appName,\n templateContent: html(context.appName),\n minify: false,\n favicon: this.favicon,\n },\n ];\n\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n html: htmlConfig,\n targets: [\n {\n entries: await this.getEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'browser')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([clientConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n private async buildSsr(context: AppContext) {\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n ...context,\n targets: [\n {\n entries: await this.getSsrEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'ssr')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([ssrConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n async build(context: AppBuildContext): Promise<ReactAppBuildResult> {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.name,\n templateContent: html(context.name),\n minify: false,\n favicon: this.favicon,\n // filename: ''.html`,\n },\n ];\n Object.assign(context, {\n html: htmlConfig,\n });\n const bundler = await this.getBundler(context);\n const bundleResult = await bundler.run();\n const ssrAppDir = join(this.getPublicDir(context.artifactsDir));\n\n if (this.ssr) await this.buildSsrApp(context, ssrAppDir);\n return computeResults(bundleResult, {\n publicDir: `${this.getPublicDir(context.artifactsDir)}/${this.dir}`,\n ssrPublicDir: ssrAppDir,\n });\n }\n\n private async buildSsrApp(context: AppBuildContext, ssrAppDir: string) {\n const ssrBundler = await this.getSsrBundler(context);\n await ssrBundler.run();\n const runner = readFileSync(join(__dirname, './ssr/app/runner')).toString();\n context.capsule.fs.writeFileSync(join(ssrAppDir, 'runner.js'), runner);\n const capsuleSsrDir = context.capsule.fs.getPath(ssrAppDir);\n const installer = this.dependencyResolver.getInstaller({\n packageManager: 'teambit.dependencies/yarn',\n rootDir: capsuleSsrDir,\n cacheRootDirectory: capsuleSsrDir,\n });\n await installer.install(capsuleSsrDir, this.getSsrPolicy(), new ComponentMap(new Map()));\n return ssrAppDir;\n }\n\n private getSsrPolicy() {\n const workspacePolicy = new WorkspacePolicy([]);\n workspacePolicy.add({ lifecycleType: 'runtime', dependencyId: 'express', value: { version: '4.18.1' } });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/react.rendering.ssr',\n value: { version: '0.0.3' },\n });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/ui-foundation.ui.pages.static-error',\n value: { version: '0.0.75' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react',\n value: { version: '17.0.2' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react-dom',\n value: { version: '17.0.2' },\n });\n return workspacePolicy;\n }\n\n private getBundler(context: AppBuildContext) {\n if (this.bundler) return this.bundler;\n return this.getDefaultBundler(context);\n }\n\n private getSsrBundler(context: AppBuildContext) {\n if (this.ssrBundler) return this.ssrBundler;\n return this.getDefaultSsrBundler(context);\n }\n\n private async getDefaultBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(buildConfig({ outputPath: join(outputPath, this.dir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getDefaultSsrBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(ssrBuildConfig({ outputPath: join(outputPath, this.ssrDir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getBuildContext(context: AppBuildContext, { outputPath }: { outputPath: string }) {\n const { capsule } = context;\n const reactEnv = context.env as ReactEnv;\n const { distDir } = reactEnv.getCompiler();\n const targetEntries = await this.getEntries(`${capsule.path}/${distDir}`);\n const entries = targetEntries.map((entry) => require.resolve(`${capsule.path}/${distDir}/${basename(entry)}`));\n\n const bundlerContext: BundlerContext = Object.assign(context, {\n targets: [\n {\n components: [capsule?.component],\n entries,\n outputPath,\n hostRootDir: capsule?.path,\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n entry: [],\n rootPath: '/',\n metaData: {\n initiator: `building app: ${context.name}`,\n envId: context.id,\n },\n });\n\n return bundlerContext;\n }\n\n private getPublicDir(artifactsDir: string) {\n return join(artifactsDir, this.applicationType, this.name);\n }\n\n async getEntries(path?: string): Promise<string[]> {\n if (Array.isArray(this.entry)) return this.entry;\n return this.entry(path);\n }\n\n async getSsrEntries(): Promise<string[]> {\n if (!this.ssr) throw new BitError('tried to build ssr without ssr entries');\n if (typeof this.ssr === 'string') return [this.ssr];\n return [await this.ssr()];\n }\n\n private async getDevServerContext(context: AppContext): Promise<DevServerContext> {\n const entries = await this.getEntries();\n return Object.assign(context, {\n entry: entries,\n rootPath: '',\n publicPath: `public/${this.name}`,\n title: this.name,\n favicon: this.favicon,\n hostDependencies: await this.getHostDependencies(),\n aliasHostDependencies: true,\n });\n }\n\n private getHostDependencies(): string[] {\n return this.reactEnv.getAdditionalHostDependencies();\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA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QAAQ,EAAE,OAAO,CAAC,IAAI,CAACA,GAAG,CAAC;IACnD,OAAO,CAAC,MAAM,IAAI,CAACA,GAAG,CAAC,CAAC,CAAC;EAC3B;EAEA,MAAcwB,mBAAmBA,CAACV,OAAmB,EAA6B;IAChF,MAAMyC,OAAO,GAAG,MAAM,IAAI,CAACC,UAAU,CAAC,CAAC;IACvC,OAAOzF,MAAM,CAACqF,MAAM,CAACtC,OAAO,EAAE;MAC5Bf,KAAK,EAAEwD,OAAO;MACd0E,QAAQ,EAAE,EAAE;MACZS,UAAU,EAAE,UAAU,IAAI,CAAC5I,IAAI,EAAE;MACjCiD,KAAK,EAAE,IAAI,CAACjD,IAAI;MAChBY,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBoD,gBAAgB,EAAE,MAAM,IAAI,CAACC,mBAAmB,CAAC,CAAC;MAClDC,qBAAqB,EAAE;IACzB,CAAC,CAAC;EACJ;EAEQD,mBAAmBA,CAAA,EAAa;IACtC,OAAO,IAAI,CAAC7D,QAAQ,CAACyI,6BAA6B,CAAC,CAAC;EACtD;AACF;AAACC,OAAA,CAAAhJ,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_fs","data","require","_path","_toolboxNetwork","_component","_dependencyResolver","_lodash","_interopRequireDefault","_bitError","_webpack","_computeResults","_webpackAppSsr","_mutators","_ssrExpress","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactApp","constructor","name","entry","ssr","portRange","reactEnv","logger","dependencyResolver","bundler","ssrBundler","devServer","transformers","deploy","favicon","webpackModulePath","webpackDevServerModulePath","run","context","from","to","port","Port","getPort","listen","console","appName","devServerContext","getDevServerContext","getDevServer","addDevServer","setOutput","setDevServerClient","runSsr","clientBundle","buildClient","errors","info","serverBundle","buildSsr","app","loadSsrApp","workdir","expressApp","createExpressSsr","assets","parseAssets","htmlConfig","title","templateContent","html","minify","ctx","assign","create","targets","entries","getEntries","components","appComponent","outputPath","resolve","calcOutputPath","hostDependencies","getHostDependencies","aliasHostDependencies","capsuleNetwork","undefined","previousTasksResults","getBundler","config","merge","clientConfig","bundleResult","getSsrEntries","ssrConfig","build","ssrAppDir","join","getPublicDir","artifactsDir","buildSsrApp","computeResults","publicDir","dir","ssrPublicDir","getSsrBundler","runner","readFileSync","__dirname","toString","capsule","fs","writeFileSync","capsuleSsrDir","getPath","installer","getInstaller","packageManager","rootDir","cacheRootDirectory","install","getSsrPolicy","ComponentMap","Map","workspacePolicy","WorkspacePolicy","add","lifecycleType","dependencyId","version","getDefaultBundler","getDefaultSsrBundler","path","bundlerContext","getBuildContext","compact","configMutator","buildConfig","replaceTerserPlugin","env","ssrBuildConfig","ssrDir","distDir","getCompiler","targetEntries","map","basename","component","hostRootDir","rootPath","metaData","initiator","envId","id","applicationType","Array","isArray","BitError","publicPath","getAdditionalHostDependencies","exports"],"sources":["react.application.ts"],"sourcesContent":["import { readFileSync } from 'fs';\nimport { join, resolve, basename } from 'path';\nimport type { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';\nimport type { Bundler, DevServer, BundlerContext, DevServerContext, BundlerHtmlConfig } from '@teambit/bundler';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { ComponentMap } from '@teambit/component';\nimport type { Logger } from '@teambit/logger';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { WorkspacePolicy } from '@teambit/dependency-resolver';\nimport compact from 'lodash.compact';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\nimport { BitError } from '@teambit/bit-error';\nimport type { ReactEnv } from '../../react.env';\nimport type { ReactAppBuildResult } from './react-build-result';\nimport { html } from '../../webpack';\nimport type { ReactDeployContext } from './deploy-context';\nimport { computeResults } from './compute-results';\nimport { clientConfig, ssrConfig, calcOutputPath, ssrBuildConfig, buildConfig } from './webpack/webpack.app.ssr.config';\nimport { addDevServer, setOutput, replaceTerserPlugin, setDevServerClient } from './webpack/mutators';\nimport { createExpressSsr, loadSsrApp, parseAssets } from './ssr/ssr-express';\n\nexport class ReactApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string[] | ((path?: string) => Promise<string[]>),\n readonly ssr: string | (() => Promise<string>) | undefined,\n readonly portRange: [number, number],\n private reactEnv: ReactEnv,\n private logger: Logger,\n private dependencyResolver: DependencyResolverMain,\n readonly bundler?: Bundler,\n readonly ssrBundler?: Bundler,\n readonly devServer?: DevServer,\n readonly transformers: WebpackConfigTransformer[] = [],\n readonly deploy?: (context: ReactDeployContext) => Promise<void>,\n readonly favicon?: string,\n readonly webpackModulePath?: string,\n readonly webpackDevServerModulePath?: string\n ) {}\n readonly applicationType = 'react-common-js';\n readonly dir = 'public';\n readonly ssrDir = 'ssr';\n\n async run(context: AppContext): Promise<ApplicationInstance> {\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n\n if (this.devServer) {\n await this.devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n const devServerContext = await this.getDevServerContext(context);\n const devServer = this.reactEnv.getDevServer(\n devServerContext,\n [addDevServer, setOutput, setDevServerClient, ...this.transformers],\n this.webpackModulePath,\n this.webpackDevServerModulePath\n );\n await devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n async runSsr(context: AppContext): Promise<AppResult> {\n const [from, to] = this.portRange;\n const port = await Port.getPort(from, to);\n\n // bundle client\n const clientBundle = await this.buildClient(context);\n if (clientBundle.errors.length > 0) return { errors: clientBundle.errors };\n this.logger?.info('[react.application] [ssr] client bundle - complete');\n\n // bundle server\n const serverBundle = await this.buildSsr(context);\n if (serverBundle.errors.length > 0) return { errors: serverBundle.errors };\n this.logger?.info('[react.application] [ssr] server bundle - complete');\n\n // load server-side runtime\n const app = await loadSsrApp(context.workdir, context.appName);\n this.logger?.info('[react.application] [ssr] bundle code - loaded');\n\n const expressApp = createExpressSsr({\n name: context.appName,\n workdir: context.workdir,\n port,\n app,\n assets: parseAssets(clientBundle.assets),\n logger: this.logger,\n });\n\n expressApp.listen(port);\n this.logger.console(`listening on port ${port}`);\n return { port };\n }\n\n private async buildClient(context: AppContext) {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.appName,\n templateContent: html(context.appName),\n minify: false,\n favicon: this.favicon,\n },\n ];\n\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n html: htmlConfig,\n targets: [\n {\n entries: await this.getEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'browser')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([clientConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n private async buildSsr(context: AppContext) {\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n ...context,\n targets: [\n {\n entries: await this.getSsrEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'ssr')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([ssrConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n async build(context: AppBuildContext): Promise<ReactAppBuildResult> {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.name,\n templateContent: html(context.name),\n minify: false,\n favicon: this.favicon,\n // filename: ''.html`,\n },\n ];\n Object.assign(context, {\n html: htmlConfig,\n });\n const bundler = await this.getBundler(context);\n const bundleResult = await bundler.run();\n const ssrAppDir = join(this.getPublicDir(context.artifactsDir));\n\n if (this.ssr) await this.buildSsrApp(context, ssrAppDir);\n return computeResults(bundleResult, {\n publicDir: `${this.getPublicDir(context.artifactsDir)}/${this.dir}`,\n ssrPublicDir: ssrAppDir,\n });\n }\n\n private async buildSsrApp(context: AppBuildContext, ssrAppDir: string) {\n const ssrBundler = await this.getSsrBundler(context);\n await ssrBundler.run();\n const runner = readFileSync(join(__dirname, './ssr/app/runner')).toString();\n context.capsule.fs.writeFileSync(join(ssrAppDir, 'runner.js'), runner);\n const capsuleSsrDir = context.capsule.fs.getPath(ssrAppDir);\n const installer = this.dependencyResolver.getInstaller({\n packageManager: 'teambit.dependencies/yarn',\n rootDir: capsuleSsrDir,\n cacheRootDirectory: capsuleSsrDir,\n });\n await installer.install(capsuleSsrDir, this.getSsrPolicy(), new ComponentMap(new Map()));\n return ssrAppDir;\n }\n\n private getSsrPolicy() {\n const workspacePolicy = new WorkspacePolicy([]);\n workspacePolicy.add({ lifecycleType: 'runtime', dependencyId: 'express', value: { version: '4.18.1' } });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/react.rendering.ssr',\n value: { version: '0.0.3' },\n });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/ui-foundation.ui.pages.static-error',\n value: { version: '0.0.75' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react',\n value: { version: '17.0.2' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react-dom',\n value: { version: '17.0.2' },\n });\n return workspacePolicy;\n }\n\n private getBundler(context: AppBuildContext) {\n if (this.bundler) return this.bundler;\n return this.getDefaultBundler(context);\n }\n\n private getSsrBundler(context: AppBuildContext) {\n if (this.ssrBundler) return this.ssrBundler;\n return this.getDefaultSsrBundler(context);\n }\n\n private async getDefaultBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(buildConfig({ outputPath: join(outputPath, this.dir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getDefaultSsrBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(ssrBuildConfig({ outputPath: join(outputPath, this.ssrDir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getBuildContext(context: AppBuildContext, { outputPath }: { outputPath: string }) {\n const { capsule } = context;\n const reactEnv = context.env as ReactEnv;\n const { distDir } = reactEnv.getCompiler();\n const targetEntries = await this.getEntries(`${capsule.path}/${distDir}`);\n const entries = targetEntries.map((entry) => require.resolve(`${capsule.path}/${distDir}/${basename(entry)}`));\n\n const bundlerContext: BundlerContext = Object.assign(context, {\n targets: [\n {\n components: [capsule?.component],\n entries,\n outputPath,\n hostRootDir: capsule?.path,\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n entry: [],\n rootPath: '/',\n metaData: {\n initiator: `building app: ${context.name}`,\n envId: context.id,\n },\n });\n\n return bundlerContext;\n }\n\n private getPublicDir(artifactsDir: string) {\n return join(artifactsDir, this.applicationType, this.name);\n }\n\n async getEntries(path?: string): Promise<string[]> {\n if (Array.isArray(this.entry)) return this.entry;\n return this.entry(path);\n }\n\n async getSsrEntries(): Promise<string[]> {\n if (!this.ssr) throw new BitError('tried to build ssr without ssr entries');\n if (typeof this.ssr === 'string') return [this.ssr];\n return [await this.ssr()];\n }\n\n private async getDevServerContext(context: AppContext): Promise<DevServerContext> {\n const entries = await this.getEntries();\n return Object.assign(context, {\n entry: entries,\n rootPath: '',\n publicPath: `public/${this.name}`,\n title: this.name,\n favicon: this.favicon,\n hostDependencies: await this.getHostDependencies(),\n aliasHostDependencies: true,\n });\n }\n\n private getHostDependencies(): string[] {\n return this.reactEnv.getAdditionalHostDependencies();\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,oBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,mBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAO,sBAAA,CAAAN,OAAA;EAAAK,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,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tD;AACF;AAACC,OAAA,CAAA7I,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -79,7 +79,7 @@ function createExpressSsr({
79
79
  });
80
80
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
81
81
  express.use(async (request, response) => {
82
- logger === null || logger === void 0 || logger.info(`[react.application] [ssr] handling "${request.url}"`);
82
+ logger?.info(`[react.application] [ssr] handling "${request.url}"`);
83
83
  const browser = (0, _reactRendering().browserFromExpress)(request, port);
84
84
  const session = {
85
85
  assets,
@@ -90,9 +90,9 @@ function createExpressSsr({
90
90
  try {
91
91
  // the app itself controls the response
92
92
  await app(session);
93
- logger === null || logger === void 0 || logger.console(`[react.application] [ssr] success "${request.url}"`);
93
+ logger?.console(`[react.application] [ssr] success "${request.url}"`);
94
94
  } catch (error) {
95
- logger === null || logger === void 0 || logger.consoleError(`[react.application] [ssr] error at "${request.url}"`, error);
95
+ logger?.consoleError(`[react.application] [ssr] error at "${request.url}"`, error);
96
96
  response.status(500).send((0, _uiFoundationUiPages().serverError)());
97
97
  }
98
98
  });
@@ -102,7 +102,7 @@ async function loadSsrApp(workdir, appName) {
102
102
  const entryFile = (0, _path().resolve)(workdir, (0, _webpackAppSsr().calcOutputPath)(appName, 'ssr'), MAGIC_FOLDER, _webpackAppSsr().SSR_ENTRY_FILE);
103
103
  if (!fs().existsSync(entryFile)) throw new Error(`expected ssr bundle entry file at "${entryFile}"`);
104
104
  const entry = await (specifier => new Promise(r => r(`${specifier}`)).then(s => _interopRequireWildcard(require(s))))(entryFile);
105
- const app = entry === null || entry === void 0 ? void 0 : entry.default;
105
+ const app = entry?.default;
106
106
  if (!app) throw new Error(`bundle entry file has no default export (at "${entryFile}")`);
107
107
  return app;
108
108
  }
@@ -110,8 +110,8 @@ function parseAssets(assets, publicPath = _webpackAppSsr().PUBLIC_PATH) {
110
110
  const deadAssets = assets.filter(x => !x.name);
111
111
  if (deadAssets.length > 0) throw new Error('missing some build assets (maybe need to turn on cachedAssets, etc)');
112
112
  return {
113
- css: assets.map(x => x.name).filter(name => name === null || name === void 0 ? void 0 : name.endsWith('.css')).map(name => (0, _urlJoin().default)(publicPath, name)),
114
- js: assets.map(x => x.name).filter(name => name === null || name === void 0 ? void 0 : name.endsWith('.js')).map(name => (0, _urlJoin().default)(publicPath, name))
113
+ css: assets.map(x => x.name).filter(name => name?.endsWith('.css')).map(name => (0, _urlJoin().default)(publicPath, name)),
114
+ js: assets.map(x => x.name).filter(name => name?.endsWith('.js')).map(name => (0, _urlJoin().default)(publicPath, name))
115
115
  };
116
116
  }
117
117