@teambit/bit 1.6.1 → 1.6.3

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.
@@ -0,0 +1,15 @@
1
+ .image_fullWidth__SCih6{width:100%}
2
+ .heading-sizes_xxs__KLO17{font-size:16px;font-size:var(--bit-h-xxs, 16px)}.heading-sizes_xs__0xI4A{font-size:18px;font-size:var(--bit-h-xs, 18px)}.heading-sizes_sm__Cugvn{font-size:24px;font-size:var(--bit-h-sm, 24px)}.heading-sizes_md__QVb\+t{font-size:26px;font-size:var(--bit-h-md, 26px)}.heading-sizes_lg__4U8FI{font-size:36px;font-size:var(--bit-h-lg, 36px)}.heading-sizes_xl__hQPE9{font-size:40px;font-size:var(--bit-h-xl, 40px)}.heading-sizes_xxl__Efn0M{font-size:50px;font-size:var(--bit-h-xxl, 50px)}
3
+ .heading_h1__FRoNM{font-weight:bold}.heading_h2__AsoBc{font-weight:bold}.heading_h3__INGub{font-weight:bold}.heading_h4__19dcF{font-weight:bold}.heading_h5__ApHzn{font-weight:bold}.heading_h6__OAWJl{font-weight:bold}
4
+ .margins_h1__pp7hY{margin-bottom:20px}
5
+ .component-grid_componentGrid__G6yeG{display:grid;grid-template-columns:repeat(auto-fill, minmax(197px, 1fr));grid-column-gap:10px;-moz-column-gap:10px;column-gap:10px;grid-gap:32px}
6
+ .preview-container_previewContainer__hazco{overflow:hidden;padding-bottom:57%;height:0;position:relative;border-radius:5px 5px 0 0}.preview-container_preview__ei0Ab{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;border-bottom:1px solid #cccfd4;border-bottom:1px solid var(--bit-border-color-light, #cccfd4)}.preview-container_preview__ei0Ab>iframe{pointer-events:none}.preview-container_emptyPreview__hUlXL{background-color:#ededed;background-color:var(--bit-border-color-lightest, #ededed)}
7
+ .deprecation-sticker_deprecated__kaYjN{display:none;position:absolute;top:7px;right:12px;background-color:#ffc640;text-transform:uppercase;border-radius:4px;font-weight:bold;font-size:10px;padding:3px 8px;z-index:1}.deprecation-sticker_deprecated__kaYjN.deprecation-sticker_show__5aQCe{display:inline;display:initial}
8
+ .ellipsis_ellipsis__Lh06u,.ellipsis_ellipsisDiv__7enru{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ellipsis_ellipsisDiv__7enru{display:inline-block}
9
+ .details_content__4O3k1{display:flex;flex-direction:column;justify-content:space-between;padding:16px;height:96px}.details_nameSpace__5iR5W{color:#6c707c;color:var(--bit-text-color-light, #6c707c);font-size:10px;font-weight:bold;text-transform:uppercase;margin-bottom:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.details_name__dfr1-{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:6px}.details_name__dfr1->span:first-child{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:5px}.details_versionHolder__WJPFa{display:flex;align-items:center;overflow:hidden}.details_versionHolder__WJPFa .details_img__oGFaH{height:14px;margin-left:5px}.details_description__CmRgY{color:#6c707c;color:var(--bit-text-color-light, #6c707c);font-size:14px;font-size:var(--bit-p-xs, 14px);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:2;box-orient:vertical;-webkit-line-clamp:2;-webkit-box-orient:vertical;-moz-line-clamp:2}
10
+ .card_componentCard__bTfhD{position:relative;border-color:#cccfd4;border-color:var(--bit-border-color-light, #cccfd4);border-width:1px;border-style:solid;width:100%;border-radius:5px;overflow:hidden;cursor:pointer;transition:border-color 300ms ease-in-out}.card_componentCard__bTfhD:hover{border-color:#6c707c;border-color:var(--bit-text-color-light, #6c707c);overflow:visible;overflow:initial}
11
+ .component-card_componentCardLink__SWVTW{text-decoration:none;color:var(--bit-text-color-heavy)}.component-card_bottom__Iqt5W{display:flex;justify-content:space-between;align-items:center;padding:0 16px 16px 16px}.component-card_bottom__Iqt5W>div{display:flex;align-items:center}.component-card_bottom__Iqt5W>div>span{font-size:14px;margin-right:10px}.component-card_bottom__Iqt5W>div .component-card_size__Cd055{font-size:11px;color:#6c707c;color:var(--bit-text-color-light, #6c707c);vertical-align:middle}.component-card_dot__LWNha{display:inline-block;height:14px;width:14px;border-radius:50%;background-color:#ededed}.component-card_img__BkvoS{height:14px}
12
+ .what-is-bit_bitCard__xjEgy{float:left;max-width:280px;margin:30px}.what-is-bit_logo__eIlNl{display:flex;opacity:.8;justify-content:center;align-items:center;width:100%;height:100%}
13
+ .left-right_leftRight__5epIP{display:flex;flex-direction:row;justify-content:space-between}
14
+ .page-frame_centerColumn__Pt8tm{width:calc(100% - 40px);max-width:1000px;margin-right:auto;margin-left:auto}.page-frame_wideColumn__Xsq0b{width:calc(100% - 40px);max-width:1440px;margin-right:auto;margin-left:auto}.page-frame_textColumn__gXoZS{max-width:700px}
15
+
@@ -0,0 +1,2 @@
1
+ /*! For license information please see teambit_harmony_bit-preview.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/bit-preview"]=t():e["teambit.harmony/bit-preview"]=t()}(self,(()=>(()=>{var e={45381:(e,t,n)=>{"use strict";var o=n(49010),r=n(93183),i=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,a=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function u(e){return(e||"").toString().replace(s,"")}var c=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function p(e){var t,o=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},r={},a=typeof(e=e||o);if("blob:"===e.protocol)r=new f(unescape(e.pathname),{});else if("string"===a)for(t in r=new f(e,{}),l)delete r[t];else if("object"===a){for(t in e)t in l||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=i.test(e.href))}return r}function d(e){e=u(e);var t=a.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&t[2].length>=2),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function f(e,t,n){if(e=u(e),!(this instanceof f))return new f(e,t,n);var i,a,s,l,m,b,_=c.slice(),h=typeof t,y=this,v=0;for("object"!==h&&"string"!==h&&(n=t,t=null),n&&"function"!=typeof n&&(n=r.parse),t=p(t),i=!(a=d(e||"")).protocol&&!a.slashes,y.slashes=a.slashes||i&&t.slashes,y.protocol=a.protocol||t.protocol||"",e=a.rest,a.slashes||(_[3]=[/(.*)/,"pathname"]);v<_.length;v++)"function"!=typeof(l=_[v])?(s=l[0],b=l[1],s!=s?y[b]=e:"string"==typeof s?~(m=e.indexOf(s))&&("number"==typeof l[2]?(y[b]=e.slice(0,m),e=e.slice(m+l[2])):(y[b]=e.slice(m),e=e.slice(0,m))):(m=s.exec(e))&&(y[b]=m[1],e=e.slice(0,m.index)),y[b]=y[b]||i&&l[3]&&t[b]||"",l[4]&&(y[b]=y[b].toLowerCase())):e=l(e);n&&(y.query=n(y.query)),i&&t.slashes&&"/"!==y.pathname.charAt(0)&&(""!==y.pathname||""!==t.pathname)&&(y.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=n.length,r=n[o-1],i=!1,a=0;o--;)"."===n[o]?n.splice(o,1):".."===n[o]?(n.splice(o,1),a++):a&&(0===o&&(i=!0),n.splice(o,1),a--);return i&&n.unshift(""),"."!==r&&".."!==r||n.push(""),n.join("/")}(y.pathname,t.pathname)),"/"!==y.pathname.charAt(0)&&y.hostname&&(y.pathname="/"+y.pathname),o(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(l=y.auth.split(":"),y.username=l[0]||"",y.password=l[1]||""),y.origin=y.protocol&&y.host&&"file:"!==y.protocol?y.protocol+"//"+y.host:"null",y.href=y.toString()}f.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||r.parse)(t)),i[e]=t;break;case"port":i[e]=t,o(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;default:i[e]=t}for(var s=0;s<c.length;s++){var u=c[s];u[4]&&(i[u[1]]=i[u[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=r.stringify);var t,n=this,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},f.extractProtocol=d,f.location=p,f.trimLeft=u,f.qs=r,e.exports=f},21292:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},5576:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=r.apply(null,n);a&&e.push(a)}else if("object"===i)for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},93183:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function r(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var o,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((o=e[i])||null!=o&&!isNaN(o)||(o=""),i=r(i),o=r(o),null===i||null===o)continue;a.push(i+"="+o)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var i=o(t[1]),a=o(t[2]);null===i||null===a||i in r||(r[i]=a)}return r}},49010:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},44404:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseImage=void 0;const i=r(n(87363)),a=r(n(5576)),s=r(n(56936));function u(e){var{alt:t,className:n,fullWidth:r}=e,u=o(e,["alt","className","fullWidth"]);return i.default.createElement("img",Object.assign({"data-bit-id":"teambit.base-ui/elements/image",alt:t},u,{className:a.default(s.default.image,r&&s.default.fullWidth,n)}))}u.__bit_component={id:"teambit.base-ui/elements/image@1.0.0",homepage:"https://bit.dev/teambit/base-ui/elements/image",exported:!0},t.BaseImage=u},91551:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(44404),t)},99333:function(e,t,n){"use strict";var o={id:"teambit.base-ui/routing/compare-url@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/compare-url",exported:!0},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;const i=r(n(45381));function a(e,t,{exact:n,strict:o}={}){if(e===t)return!0;o||(e=e.replace(/\/(?=[?#]|$)/,""),t=t.replace(/\/(?=[?#]|$)/,""));const r=i.default(e),a=i.default(t),l=s(r,a),p=!n||u(r,a),d=!o||c(r,a);return l&&p&&d}function s(e,t){return(!t.protocol||t.protocol===e.protocol)&&(!t.hostname||t.hostname===e.hostname)&&(!t.port||t.port===e.port)&&(!t.pathname||e.pathname.startsWith(t.pathname))&&(!t.query||l(t.query,e.query))&&(!t.hash||t.hash===e.hash)&&(!t.password||t.password===e.password)&&(!t.username||t.username===e.username)}function u(e,t){return(!t.pathname||e.pathname===t.pathname)&&(!t.query||l(e.query,t.query))}function c(e,t){return!t.pathname||e.pathname.endsWith("/")===t.pathname.endsWith("/")}function l(e,t){return Object.keys(e).every((n=>e[n]===t[n]))}a.__bit_component=o,t.compareUrl=a,s.__bit_component=o,u.__bit_component=o,c.__bit_component=o,l.__bit_component=o},62609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;var o=n(99333);Object.defineProperty(t,"compareUrl",{enumerable:!0,get:function(){return o.compareUrl}})},83442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;var o=n(18760);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return o.Link}})},18760:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;const r=o(n(87363)),i=n(23910);function a(e){const t=i.useRouting().Link;return r.default.createElement(t,Object.assign({},e))}a.__bit_component={id:"teambit.base-ui/routing/link@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/link",exported:!0},t.Link=a},65861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;var o=n(66229);Object.defineProperty(t,"NativeLink",{enumerable:!0,get:function(){return o.NativeLink}})},66229:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;const s=i(n(87363)),u={rel:"noopener",target:"_blank"};function c(e){var{href:t="",external:n,replace:o,onClick:r}=e,i=a(e,["href","external","replace","onClick"]);const c=n?u:{},l=s.useCallback((e=>{const i=null==r?void 0:r(e);return e.defaultPrevented||!o||n||(e.preventDefault(),window.location.replace(t)),i}),[t,o,r]);return s.default.createElement("a",Object.assign({},i,c,{onClick:l,href:t}))}c.__bit_component={id:"teambit.base-ui/routing/native-link@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/native-link",exported:!0},t.NativeLink=c},28635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeNavLink=void 0;var o=n(38291);Object.defineProperty(t,"NativeNavLink",{enumerable:!0,get:function(){return o.NativeNavLink}})},38291:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeNavLink=void 0;const u=i(n(87363)),c=s(n(5576)),l=n(65861),p=n(62609),d=n(65274);function f(e){var{activeClassName:t,activeStyle:n,isActive:o,exact:r,strict:i,style:s,className:f}=e,m=a(e,["activeClassName","activeStyle","isActive","exact","strict","style","className"]);const b=d.isBrowser?window.location.href:"/",_=u.useMemo((()=>m.href&&p.compareUrl(b,m.href)),[r,i,b,m.href]),h=(null==o?void 0:o())||_,y=u.useMemo((()=>h&&n?Object.assign(Object.assign({},s),n):s),[h,s]);return u.default.createElement(l.NativeLink,Object.assign({},m,{style:y,className:c.default(f,h&&t)}))}f.__bit_component={id:"teambit.base-ui/routing/native-nav-link@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/native-nav-link",exported:!0},t.NativeNavLink=f},23910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLocation=t.useRouting=t.RoutingProvider=void 0;var o=n(45870);Object.defineProperty(t,"RoutingProvider",{enumerable:!0,get:function(){return o.RoutingProvider}}),Object.defineProperty(t,"useRouting",{enumerable:!0,get:function(){return o.useRouting}}),Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return o.useLocation}})},45870:function(e,t,n){"use strict";var o={id:"teambit.base-ui/routing/routing-provider@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/routing-provider",exported:!0},r=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useLocation=t.useRouting=t.RoutingProvider=void 0;const s=a(n(87363)),u=n(65861),c=n(28635),l=n(65274),p={pathname:"/",search:"",hash:""},d={Link:u.NativeLink,NavLink:c.NativeNavLink,useLocation:()=>l.isBrowser?window.location:p},f=s.createContext(d);function m({value:e,children:t}){return s.default.createElement(f.Provider,{value:e},t)}function b(){return s.useContext(f)}function _(){return b().useLocation()}m.__bit_component=o,t.RoutingProvider=m,b.__bit_component=o,t.useRouting=b,_.__bit_component=o,t.useLocation=_},30745:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Heading=void 0;const i=r(n(87363));function a(e){var{element:t="h1"}=e,n=o(e,["element"]);const r=t;return i.default.createElement(r,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},n))}a.__bit_component={id:"teambit.base-ui/text/heading@1.0.4",homepage:"https://bit.dev/teambit/base-ui/text/heading",exported:!0},t.Heading=a},64793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Heading=void 0;var o=n(30745);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return o.Heading}})},65274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;var o=n(27177);Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return o.isBrowser}})},27177:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser="undefined"!=typeof window},69770:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.bitComponent=void 0;const r=o(n(87363)),i=n(30266),a=o(n(30744));t.bitComponent=[{id:"teambit.bit/bit",href:"https://bit.cloud/teambit/harmony/bit",description:"Bit is an open-source component for composing component driven software",envIcon:"https://static.bit.dev/extensions-icons/default.svg",preview:r.default.createElement("div",{className:a.default.logo},r.default.createElement(i.Logo,{customSize:64}))}]},79729:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WhatIsBitQuickStart=t.Size=t.WhatIsBit=t.default=t.WhatIsBitLong=void 0;var r=n(61547);Object.defineProperty(t,"WhatIsBitLong",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(r).default}});var i=n(27387);Object.defineProperty(t,"WhatIsBit",{enumerable:!0,get:function(){return i.WhatIsBit}}),Object.defineProperty(t,"Size",{enumerable:!0,get:function(){return i.Size}});var a=n(51441);Object.defineProperty(t,"WhatIsBitQuickStart",{enumerable:!0,get:function(){return a.WhatIsBitQuickStart}})},26075:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(87363));var r=n(40040),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}a.__bit_component=o,s.__bit_component=o,u.__bit_component=o,c.__bit_component=o;var l={},p="wrapper";function d(e){var t=e.components,n=u(e,i);return(0,r.mdx)(p,s({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"Bit does not prescribe how to build your entire application. It helps you define and compose components and allows for every component to adopt the dev tools that best fit its nature.\nA React component is likely to be compiled, tested and perhaps even deployed using a composition of tools different than the one a backend-service component, or a generic function, may use.\nBit comes with native support in various dev tools like TypeScript, Babel, Jest, Webpack, ESLint, and ready made development environments for React, NodeJS, Angular and more. New tools can be easily integrated by adding one more component into Bit!"))}d.__bit_component=o,d.isMDXComponent=!0},12742:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(87363));var r=n(40040),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}a.__bit_component=o,s.__bit_component=o,u.__bit_component=o,c.__bit_component=o;var l={},p="wrapper";function d(e){var t=e.components,n=u(e,i);return(0,r.mdx)(p,s({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"Bit does not prescribe how to build your entire application. It helps you define and compose components and allows for every component to adopt the dev tools that best fit its nature.\nA React component is likely to be compiled, tested and perhaps even deployed using a composition of tools different than the one a backend-service component, or a generic function, may use.\nBit comes with native support in various dev tools like TypeScript, Babel, Jest, Webpack, ESLint, and ready made development environments for React, NodeJS, Angular and more. New tools can be easily integrated by adding one more component into Bit!"))}d.__bit_component=o,d.isMDXComponent=!0},12418:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(87363));var r=n(40040),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}a.__bit_component=o,s.__bit_component=o,u.__bit_component=o,c.__bit_component=o;var l={},p="wrapper";function d(e){var t=e.components,n=u(e,i);return(0,r.mdx)(p,s({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("h3",null,"What is Bit?"),(0,r.mdx)("p",null,"Bit is an open-source tool for composing component-driven software."))}d.__bit_component=o,d.isMDXComponent=!0},51441:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WhatIsBitQuickStart=void 0;const r=o(n(87363)),i=n(1501),a=n(70908),s=n(92862),u=o(n(12742)),c=o(n(26075)),l=o(n(12418)),p=n(69770),d=o(n(94613)),f=()=>r.default.createElement(a.WideColumn,null,r.default.createElement(l.default,null),r.default.createElement(i.LeftRight,{className:d.default.leftRight,left:r.default.createElement(u.default,null),right:r.default.createElement(s.ComponentCardGroup,{components:p.bitComponent})}),r.default.createElement(c.default,null));f.__bit_component={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0},t.WhatIsBitQuickStart=f},85864:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=_,l(n(87363));var r=n(40040),i=n(92862),a=l(n(8374)),s=n(69770),u=l(n(30744)),c=["components"];function l(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,o,r=f(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}l.__bit_component=o,p.__bit_component=o,d.__bit_component=o,f.__bit_component=o;var m={},b="wrapper";function _(e){var t=e.components,n=d(e,c);return(0,r.mdx)(b,p({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"Bit is an open-source tool for composing component-driven software."),(0,r.mdx)(i.ComponentCardGroup,{components:s.bitComponent,className:u.default.bitCard,mdxType:"ComponentCardGroup"}),(0,r.mdx)("br",null),(0,r.mdx)(a.default,{components:s.bitComponent,mdxType:"WhatIsBitSmall"}),(0,r.mdx)("p",null,"Bit does not prescribe how to build your entire application. It helps you define and compose components and allows for every component to adopt the dev tools that best fit its nature.\nA React component is likely to be compiled, tested and perhaps even deployed using a composition of tools different than the one a backend-service component, or a generic function, may use.\nBit offers native support for various dev tools like ",(0,r.mdx)("a",{parentName:"p",href:"/tools/typescript"},"TypeScript"),", ",(0,r.mdx)("a",{parentName:"p",href:"/tools/babel"},"Babel"),", ",(0,r.mdx)("a",{parentName:"p",href:"/tools/jest"},"Jest"),", ",(0,r.mdx)("a",{parentName:"p",href:"/tools/webpack"},"Webpack"),", ",(0,r.mdx)("a",{parentName:"p",href:"/tools/eslint"},"ESLint")," and\nready made development environments for ",(0,r.mdx)("a",{parentName:"p",href:"/frameworks/react"},"React"),", ",(0,r.mdx)("a",{parentName:"p",href:"/frameworks/node"},"NodeJS"),", ",(0,r.mdx)("a",{parentName:"p",href:"/envs/angular"},"Angular")," and more. New tools can be easily integrated by\nextending Bit with one more component."))}_.__bit_component=o,_.isMDXComponent=!0},8374:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(87363));var r=n(40040),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}a.__bit_component=o,s.__bit_component=o,u.__bit_component=o,c.__bit_component=o;var l={},p="wrapper";function d(e){var t=e.components,n=u(e,i);return(0,r.mdx)(p,s({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"Bit stands at the intersection between product and engineering. ",(0,r.mdx)("strong",{parentName:"p"},"It helps you take complex product requirements, and break them down into independent,\nand reusable pieces called")," ",(0,r.mdx)("strong",{parentName:"p"},(0,r.mdx)("em",{parentName:"strong"},'"components"')),". It allows you to create components and compose them with each other. Components are described by names and APIs, and contain source code implementation.\nThey can be of different kinds like apps, pages, UI components, backend services and even content. You can ",(0,r.mdx)("a",{parentName:"p",href:"/thinking-in-components"},"think of almost anything in components"),"."),(0,r.mdx)("p",null,'It is common to think of components that function as full applications, as "large", whereas components that function as simple elements, like a \'button\', as "small".\nFor us, both types of components are "the same size", but each has a different responsibility. An app is a very concrete component. It has many dependencies and just a few (if any) dependents.\nA button, on the other hand, is very abstract. It has just a few dependencies and many dependents. Having this sort of dependents-to-dependencies ratio indicates that a component is highly-reusable.'))}d.__bit_component=o,d.isMDXComponent=!0},27387:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WhatIsBit=t.Size=void 0;const r=o(n(87363)),i=o(n(61547)),a=o(n(85864)),s=o(n(8374));var u;function c({size:e}){return e===u.SMALL?r.default.createElement(s.default,null):e===u.MEDIUM?r.default.createElement(a.default,null):r.default.createElement(i.default,null)}!function(e){e[e.SMALL=0]="SMALL",e[e.MEDIUM=1]="MEDIUM",e[e.LARGE=2]="LARGE"}(u=t.Size||(t.Size={})),c.__bit_component={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0},t.WhatIsBit=c},61547:(e,t,n)=>{"use strict";var o={id:"teambit.bit/content/what-is-bit@1.96.2",homepage:"https://bit.dev/teambit/bit/content/what-is-bit",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=f,s(n(87363));var r=n(40040),i=s(n(85864)),a=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,o,r=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}s.__bit_component=o,u.__bit_component=o,c.__bit_component=o,l.__bit_component=o;var p={},d="wrapper";function f(e){var t=e.components,n=c(e,a);return(0,r.mdx)(d,u({},p,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("h3",null,"What is Bit?"),(0,r.mdx)(i.default,{mdxType:"WhatIsBitShort"}),(0,r.mdx)("h3",null,"What can you do with Bit?"),(0,r.mdx)("p",null,"Anything is possible with Bit! We built ",(0,r.mdx)("a",{parentName:"p",href:"https://bit.dev"},"Bit")," and ",(0,r.mdx)("a",{parentName:"p",href:"https://bit.cloud"},"bit.cloud")," entirely using Bit. These are complex systems which includes infrastructure\ntools, cloud products and multiple user interfaces."),(0,r.mdx)("p",null,"People use Bit to create all kind of applications, from user interfaces with component-driven frameworks like React, Vue and Angular, to complex\nmicro-service architectures, serverless functions, CLI utilities, desktop applications, native mobile applications and even IoT. You can do with Bit about anything you can do with JS\nand even beyond."),(0,r.mdx)("h3",null,"What Bit supports?"),(0,r.mdx)("p",null,"Bit was built with TypeScript and supports it natively. It was designed to be language-agnostic, and will support other software languages in the future! For now, our development environments use TypeScript as the default compiler for JS and TS components. You can easily switch to Babel or any other compiler. Bit is completely agnostic to your tech stack."))}f.__bit_component=o,f.isMDXComponent=!0},20470:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CenterColumn=void 0;const i=r(n(87363)),a=r(n(5576)),s=r(n(54457));function u(e){var{children:t,className:n}=e,r=o(e,["children","className"]);return i.default.createElement("div",Object.assign({className:(0,a.default)(s.default.centerColumn,n)},r),t)}u.__bit_component={id:"teambit.base-ui/layout/page-frame@1.0.2",homepage:"https://bit.dev/teambit/base-ui/layout/page-frame",exported:!0},t.CenterColumn=u},70908:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CenterColumn=t.WideColumn=t.textColumn=t.wideColumn=t.centerColumn=void 0;const r=o(n(54457));t.centerColumn=r.default.centerColumn,t.wideColumn=r.default.wideColumn,t.textColumn=r.default.textColumn;var i=n(30183);Object.defineProperty(t,"WideColumn",{enumerable:!0,get:function(){return i.WideColumn}});var a=n(20470);Object.defineProperty(t,"CenterColumn",{enumerable:!0,get:function(){return a.CenterColumn}})},30183:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WideColumn=void 0;const i=r(n(87363)),a=r(n(5576)),s=r(n(54457));function u(e){var{children:t,className:n}=e,r=o(e,["children","className"]);return i.default.createElement("div",Object.assign({className:(0,a.default)(s.default.wideColumn,n)},r),t)}u.__bit_component={id:"teambit.base-ui/layout/page-frame@1.0.2",homepage:"https://bit.dev/teambit/base-ui/layout/page-frame",exported:!0},t.WideColumn=u},30266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Logo:()=>c,RecommendedSizes:()=>o});var o,r=n(87363),i=n.n(r),a=n(91551);!function(e){e[e.small=16]="small",e[e.medium=24]="medium",e[e.large=32]="large",e[e.xl=40]="xl"}(o||(o={}));const s=new URL(n(44627),n.b).toString();var u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function c(e){var{size:t,customSize:n,alt:o}=e,r=u(e,["size","customSize","alt"]);const c=n||t;return i().createElement(a.BaseImage,Object.assign({},r,{src:s,alt:o||"",height:c,width:c}))}c.__bit_component={id:"teambit.design/ui/brand/logo@1.96.2",homepage:"https://bit.dev/teambit/design/ui/brand/logo",exported:!0},c.defaultProps={size:o.medium,alt:"Bit"}},47572:function(e,t,n){"use strict";var o={id:"teambit.design/ui/heading@1.0.16",homepage:"https://bit.dev/teambit/design/ui/heading",exported:!0},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.H6=t.H5=t.H4=t.H3=t.H2=t.H1=void 0;const i=r(n(87363)),a=r(n(5576)),s=n(64793),u=r(n(69573)),c=r(n(27104)),l=r(n(96115));function p(e){return i.default.createElement(s.Heading,Object.assign({element:"h1"},e,{className:(0,a.default)(c.default.h1,l.default.h1,u.default[e.size||"lg"],e.className)}))}function d(e){return i.default.createElement(s.Heading,Object.assign({element:"h2"},e,{className:(0,a.default)(c.default.h2,u.default[e.size||"lg"],e.className)}))}function f(e){return i.default.createElement(s.Heading,Object.assign({element:"h3"},e,{className:(0,a.default)(c.default.h3,u.default[e.size||"md"],e.className)}))}function m(e){return i.default.createElement(s.Heading,Object.assign({element:"h4"},e,{className:(0,a.default)(c.default.h4,u.default[e.size||"sm"],e.className)}))}function b(e){return i.default.createElement(s.Heading,Object.assign({element:"h5"},e,{className:(0,a.default)(c.default.h5,u.default[e.size||"xs"],e.className)}))}function _(e){return i.default.createElement(s.Heading,Object.assign({element:"h6"},e,{className:(0,a.default)(c.default.h6,u.default[e.size||"xxs"],e.className)}))}p.__bit_component=o,t.H1=p,d.__bit_component=o,t.H2=d,f.__bit_component=o,t.H3=f,m.__bit_component=o,t.H4=m,b.__bit_component=o,t.H5=b,_.__bit_component=o,t.H6=_},42058:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(47572),t)},1501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LeftRight:()=>c});var o=n(87363),r=n.n(o),i=n(21292),a=n.n(i);const s={leftRight:"left-right_leftRight__5epIP"};var u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function c(e){var{left:t,right:n}=e,o=u(e,["left","right"]);return r().createElement("section",Object.assign({},o,{className:a()(s.leftRight,o.className)}),r().createElement("div",null,t),r().createElement("div",null,n))}c.__bit_component={id:"teambit.design/ui/layouts/sections/left-right@1.96.2",homepage:"https://bit.dev/teambit/design/ui/layouts/sections/left-right",exported:!0}},75239:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentCardGroup=void 0;const i=r(n(87363)),a=n(42058),s=n(15656),u=n(13668);function c(e){var{title:t,components:n}=e,r=o(e,["title","components"]);return i.default.createElement("div",Object.assign({},r),t&&i.default.createElement(a.H2,null,t),i.default.createElement(s.ComponentGrid,null,n.map((e=>i.default.createElement(u.ComponentCard,Object.assign({key:e.id},e))))))}c.__bit_component={id:"teambit.explorer/ui/gallery/component-card-group@1.96.1",homepage:"https://bit.dev/teambit/explorer/ui/gallery/component-card-group",exported:!0},t.ComponentCardGroup=c},92862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentCardGroup=void 0;var o=n(75239);Object.defineProperty(t,"ComponentCardGroup",{enumerable:!0,get:function(){return o.ComponentCardGroup}})},40955:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipsis=void 0;const r=o(n(87363)),i=o(n(5576)),a=o(n(37258));function s(e){return r.default.createElement("div",Object.assign({},e,{className:(0,i.default)(e.className,a.default.ellipsisDiv)}))}s.__bit_component={id:"teambit.design/ui/styles/ellipsis@0.0.347",homepage:"https://bit.dev/teambit/design/ui/styles/ellipsis",exported:!0},t.Ellipsis=s},27266:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipsis=t.ellipsis=void 0;const r=o(n(37258));t.ellipsis=r.default.ellipsis;var i=n(40955);Object.defineProperty(t,"Ellipsis",{enumerable:!0,get:function(){return i.Ellipsis}})},59992:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseComponentCard=void 0;const r=o(n(87363)),i=n(99221),a=n(43370),s=n(16836),u=n(23064);function c({id:e="",className:t,preview:n,version:o,description:c,isDeprecated:l,isVerified:p,children:d,contentClass:f}){return r.default.createElement(u.Card,{className:t},r.default.createElement(a.DeprecationSticker,{isDeprecated:l}),r.default.createElement(i.PreviewContainer,{preview:n}),r.default.createElement(s.ComponentDetails,{id:e,version:o,description:c,isVerified:p,className:f}),d)}c.__bit_component={id:"teambit.explorer/ui/gallery/base-component-card@0.0.492",homepage:"https://bit.dev/teambit/explorer/ui/gallery/base-component-card",exported:!0},t.BaseComponentCard=c},79485:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Card=void 0;const r=o(n(87363)),i=o(n(5576)),a=o(n(82623));function s({children:e,className:t}){return r.default.createElement("div",{className:(0,i.default)(a.default.componentCard,t)},e)}s.__bit_component={id:"teambit.explorer/ui/gallery/base-component-card@0.0.492",homepage:"https://bit.dev/teambit/explorer/ui/gallery/base-component-card",exported:!0},t.Card=s},23064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Card=void 0;var o=n(79485);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return o.Card}})},72541:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecationSticker=void 0;const r=o(n(87363)),i=o(n(5576)),a=o(n(74473));function s({isDeprecated:e}){return r.default.createElement("div",{className:(0,i.default)(a.default.deprecated,{[a.default.show]:e})},"deprecated")}s.__bit_component={id:"teambit.explorer/ui/gallery/base-component-card@0.0.492",homepage:"https://bit.dev/teambit/explorer/ui/gallery/base-component-card",exported:!0},t.DeprecationSticker=s},43370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecationSticker=void 0;var o=n(72541);Object.defineProperty(t,"DeprecationSticker",{enumerable:!0,get:function(){return o.DeprecationSticker}})},67355:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentDetails=void 0;const i=r(n(87363)),a=r(n(5576)),s=n(20404),u=n(27266),c=r(n(55666));function l(e){var{id:t,version:n,description:r,isVerified:l,className:p}=e,d=o(e,["id","version","description","isVerified","className"]);const f=t.split("/"),m=f.length>1&&f.slice(0,-1).join(" / "),b=f.slice(-1);return i.default.createElement("div",Object.assign({},d,{className:(0,a.default)(c.default.content,p)}),i.default.createElement("div",null,i.default.createElement("div",{className:c.default.nameSpace},m),i.default.createElement("div",{className:c.default.name},i.default.createElement("span",null,b),i.default.createElement("div",{className:c.default.versionHolder},n&&i.default.createElement(u.Ellipsis,null,"v",n),l&&i.default.createElement("img",{src:"https://static.bit.dev/extensions-icons/verified-field-badge.svg",className:c.default.img}))),i.default.createElement("div",{className:c.default.description},(0,s.ellipsis)(r||"",50))))}l.__bit_component={id:"teambit.explorer/ui/gallery/base-component-card@0.0.492",homepage:"https://bit.dev/teambit/explorer/ui/gallery/base-component-card",exported:!0},t.ComponentDetails=l},16836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentDetails=void 0;var o=n(67355);Object.defineProperty(t,"ComponentDetails",{enumerable:!0,get:function(){return o.ComponentDetails}})},5042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=t.ComponentDetails=t.DeprecationSticker=t.Card=t.BaseComponentCard=void 0;var o=n(59992);Object.defineProperty(t,"BaseComponentCard",{enumerable:!0,get:function(){return o.BaseComponentCard}});var r=n(23064);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return r.Card}});var i=n(43370);Object.defineProperty(t,"DeprecationSticker",{enumerable:!0,get:function(){return i.DeprecationSticker}});var a=n(16836);Object.defineProperty(t,"ComponentDetails",{enumerable:!0,get:function(){return a.ComponentDetails}});var s=n(99221);Object.defineProperty(t,"PreviewContainer",{enumerable:!0,get:function(){return s.PreviewContainer}})},99221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=void 0;var o=n(91044);Object.defineProperty(t,"PreviewContainer",{enumerable:!0,get:function(){return o.PreviewContainer}})},91044:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewContainer=void 0;const i=r(n(87363)),a=r(n(5576)),s=r(n(23685));function u(e){var{preview:t,className:n}=e,r=o(e,["preview","className"]);return i.default.createElement("div",Object.assign({},r,{className:(0,a.default)(s.default.previewContainer,n)}),i.default.createElement("div",{className:(0,a.default)(s.default.preview,{[s.default.emptyPreview]:!t})},t))}u.__bit_component={id:"teambit.explorer/ui/gallery/base-component-card@0.0.492",homepage:"https://bit.dev/teambit/explorer/ui/gallery/base-component-card",exported:!0},t.PreviewContainer=u},41602:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentCard=void 0;const r=o(n(87363)),i=n(83442),a=n(5042),s=o(n(86378));function u({id:e="",className:t,preview:n,version:o,description:u,envIcon:c,isDeprecated:l=!1,href:p,external:d}){return r.default.createElement(a.Card,{className:t},r.default.createElement(i.Link,{className:s.default.componentCardLink,href:p||e,external:d},r.default.createElement(a.DeprecationSticker,{isDeprecated:l}),r.default.createElement(a.PreviewContainer,{preview:n}),r.default.createElement(a.ComponentDetails,{id:e,version:o,description:u,className:s.default.content}),r.default.createElement("div",{className:s.default.bottom},r.default.createElement("div",{className:s.default.left}),r.default.createElement("img",{src:c,className:s.default.img}))))}u.__bit_component={id:"teambit.explorer/ui/gallery/component-card@0.0.495",homepage:"https://bit.dev/teambit/explorer/ui/gallery/component-card",exported:!0},t.ComponentCard=u},13668:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(41602),t)},68531:function(e,t,n){"use strict";var o=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentGrid=void 0;const i=r(n(87363)),a=r(n(5576)),s=r(n(37907));function u(e){var{children:t,className:n}=e,r=o(e,["children","className"]);return i.default.createElement("div",Object.assign({className:(0,a.default)(s.default.componentGrid,n)},r),t)}u.__bit_component={id:"teambit.explorer/ui/gallery/component-grid@0.0.486",homepage:"https://bit.dev/teambit/explorer/ui/gallery/component-grid",exported:!0},t.ComponentGrid=u},15656:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(68531),t)},20157:(e,t)=>{"use strict";function n(e,t){return e.length>t?`${e.substring(0,t)}...`:e}Object.defineProperty(t,"__esModule",{value:!0}),t.ellipsis=void 0,n.__bit_component={id:"teambit.toolbox/string/ellipsis@0.0.173",homepage:"https://bit.dev/teambit/toolbox/string/ellipsis",exported:!0},t.ellipsis=n},20404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ellipsis=void 0;var o=n(20157);Object.defineProperty(t,"ellipsis",{enumerable:!0,get:function(){return o.ellipsis}})},4520:(e,t,n)=>{"use strict";var o={id:"teambit.harmony/bit@1.6.3",homepage:"https://bit.cloud/teambit/harmony/bit",exported:!0};function r(){const e=a(n(87363));return r=function(){return e},e}function i(){const e=n(30266);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BitLogo=void 0,r.__bit_component=o,i.__bit_component=o,a.__bit_component=o;const s=()=>r().default.createElement("div",{style:{width:"50%",margin:"auto"}},r().default.createElement(i().Logo,{customSize:64}));s.__bit_component=o,t.BitLogo=s},43643:(e,t,n)=>{"use strict";var o={id:"teambit.harmony/bit@1.6.3",homepage:"https://bit.cloud/teambit/harmony/bit",exported:!0};function r(){const e=a(n(87363));return r=function(){return e},e}function i(){const e=n(79729);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function s(){return r().default.createElement(i().WhatIsBit,null)}Object.defineProperty(t,"__esModule",{value:!0}),t.abstract=void 0,t.default=s,t.tags=void 0,r.__bit_component=o,i.__bit_component=o,a.__bit_component=o,t.tags=["components","software","composable","component-driven","collaboration","development","design","product","architecture","compounding"],t.abstract="Bit is an open source toolchain for component-driven software",s.__bit_component=o},56936:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={fullWidth:"image_fullWidth__SCih6"}},94613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={}},30744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={bitCard:"what-is-bit_bitCard__xjEgy",logo:"what-is-bit_logo__eIlNl"}},54457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={centerColumn:"page-frame_centerColumn__Pt8tm",wideColumn:"page-frame_wideColumn__Xsq0b",textColumn:"page-frame_textColumn__gXoZS"}},69573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={xxs:"heading-sizes_xxs__KLO17",xs:"heading-sizes_xs__0xI4A",sm:"heading-sizes_sm__Cugvn",md:"heading-sizes_md__QVb+t",lg:"heading-sizes_lg__4U8FI",xl:"heading-sizes_xl__hQPE9",xxl:"heading-sizes_xxl__Efn0M"}},27104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={h1:"heading_h1__FRoNM",h2:"heading_h2__AsoBc",h3:"heading_h3__INGub",h4:"heading_h4__19dcF",h5:"heading_h5__ApHzn",h6:"heading_h6__OAWJl"}},96115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={h1:"margins_h1__pp7hY"}},37258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={ellipsis:"ellipsis_ellipsis__Lh06u",ellipsisDiv:"ellipsis_ellipsisDiv__7enru"}},82623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={componentCard:"card_componentCard__bTfhD"}},74473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={deprecated:"deprecation-sticker_deprecated__kaYjN",show:"deprecation-sticker_show__5aQCe"}},55666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={content:"details_content__4O3k1",nameSpace:"details_nameSpace__5iR5W",name:"details_name__dfr1-",versionHolder:"details_versionHolder__WJPFa",img:"details_img__oGFaH",description:"details_description__CmRgY"}},23685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={previewContainer:"preview-container_previewContainer__hazco",preview:"preview-container_preview__ei0Ab",emptyPreview:"preview-container_emptyPreview__hUlXL"}},86378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={componentCardLink:"component-card_componentCardLink__SWVTW",bottom:"component-card_bottom__Iqt5W",size:"component-card_size__Cd055",dot:"component-card_dot__LWNha",img:"component-card_img__BkvoS"}},37907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={componentGrid:"component-grid_componentGrid__G6yeG"}},44627:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzU0IiBoZWlnaHQ9IjM1NCIgdmlld0JveD0iMCAwIDM1NCAzNTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNzcgMzQ4QzI3MS40NDEgMzQ4IDM0OCAyNzEuNDQxIDM0OCAxNzdDMzQ4IDgyLjU1OTMgMjcxLjQ0MSA2IDE3NyA2QzgyLjU1OTMgNiA2IDgyLjU1OTMgNiAxNzdDNiAyNzEuNDQxIDgyLjU1OTMgMzQ4IDE3NyAzNDhaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXIpIiBzdHJva2U9IiM3QjcwQjYiIHN0cm9rZS13aWR0aD0iMTIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNjEuMjY1IDE5MS43MDlDMTYxLjI2NSAyMDkuNzI3IDE1MC41MjggMjIxLjMyOCAxMzEuMjc1IDIyMS4zMjhDMTI0LjM2NCAyMjEuMzI4IDExNy45NDcgMjE5Ljk3MSAxMTMuMDEgMjE3LjEzMkMxMDcuMzMzIDIxMy45MjMgMTA3LjMzMyAyMDkuODUxIDEwNy4zMzMgMjA1LjY1NVYxNDMuMzMxQzEwNy4zMzMgMTM4Ljg4OCAxMTAuMDQ4IDEzNi42NjcgMTE1LjYwMiAxMzYuNjY3QzEyMS4xNTUgMTM2LjY2NyAxMjMuODcgMTM4Ljg4OCAxMjMuODcgMTQzLjMzMVYxNjcuMDI2QzEyNi45NTYgMTY0LjkyOCAxMzEuMDI4IDE2My45NDEgMTM1LjcxOCAxNjMuOTQxQzE1MC43NzQgMTYzLjk0MSAxNjEuMjY1IDE3My45MzggMTYxLjI2NSAxOTEuNzA5Wk0xMjMuODcgMjA2LjE0OEMxMjUuOTY4IDIwNy4zODIgMTI4LjU2IDIwOCAxMzEuMzk5IDIwOEMxMzkuNDIgMjA4IDE0NC4zNTcgMjAyLjU2OSAxNDQuMzU3IDE5Mi44MkMxNDQuMzU3IDE4Mi45NDcgMTM5LjI5NyAxNzcuMjcgMTMxLjY0NSAxNzcuMjdDMTI4LjY4NCAxNzcuMjcgMTI1Ljk2OCAxNzguMTM0IDEyMy44NyAxNzkuNzM4VjIwNi4xNDhaTTE5Mi4xOCAxNDcuNjUxQzE5Mi4xOCAxNTMuMzI4IDE4OC4xMDcgMTU3LjI3NyAxODIuNDMgMTU3LjI3N0MxNzYuNzUzIDE1Ny4yNzcgMTcyLjY4IDE1My4zMjggMTcyLjY4IDE0Ny42NTFDMTcyLjY4IDE0MS45NzQgMTc2Ljc1MyAxMzguMTQ4IDE4Mi40MyAxMzguMTQ4QzE4OC4xMDcgMTM4LjE0OCAxOTIuMTggMTQxLjk3NCAxOTIuMTggMTQ3LjY1MVpNMTkwLjY5OSAxNzAuNjA1VjIxNC40MTdDMTkwLjY5OSAyMTguODYgMTg3Ljk4MyAyMjEuMDgxIDE4Mi40MyAyMjEuMDgxQzE3Ni44NzYgMjIxLjA4MSAxNzQuMTYxIDIxOC44NiAxNzQuMTYxIDIxNC40MTdWMTcwLjYwNUMxNzQuMTYxIDE2Ni4xNjMgMTc2Ljg3NiAxNjMuOTQxIDE4Mi40MyAxNjMuOTQxQzE4Ny45ODMgMTYzLjk0MSAxOTAuNjk5IDE2Ni4xNjMgMTkwLjY5OSAxNzAuNjA1Wk0yNDAuNzQzIDIwNi4yNzJDMjQ1LjMwOSAyMDYuMjcyIDI0Ni42NjYgMjExLjA4NSAyNDYuNjY2IDIxMy44QzI0Ni42NjYgMjE1LjUyOCAyNDYuMDQ5IDIxNy4yNTYgMjQzLjcwNCAyMTguNjEzQzI0MC45ODkgMjIwLjIxNyAyMzYuMyAyMjEuMzI4IDIzMS40ODcgMjIxLjMyOEMyMjIuNjAxIDIyMS4zMjggMjE3LjI5NCAyMTcuNzQ5IDIxNC41NzkgMjEyLjgxM0MyMTIuMTExIDIwOC4zNyAyMTEuODY0IDIwMy4wNjMgMjExLjg2NCAxOTcuMzg2VjE3OC44NzRIMjA3LjU0NEMyMDMuMTAyIDE3OC44NzQgMjAwLjg4IDE3Ni42NTMgMjAwLjg4IDE3MS45NjNDMjAwLjg4IDE2Ny4yNzMgMjAzLjEwMiAxNjUuMDUyIDIwNy41NDQgMTY1LjA1MkgyMTEuODY0VjE1NC4xOTFDMjExLjg2NCAxNDkuNzQ5IDIxNC41NzkgMTQ3LjUyNyAyMjAuMTMzIDE0Ny41MjdDMjI1LjY4NiAxNDcuNTI3IDIyOC40MDEgMTQ5Ljc0OSAyMjguNDAxIDE1NC4xOTFWMTY1LjA1MkgyMzguNzY4QzI0My4yMTEgMTY1LjA1MiAyNDUuNDMyIDE2Ny4yNzMgMjQ1LjQzMiAxNzEuOTYzQzI0NS40MzIgMTc2LjY1MyAyNDMuMjExIDE3OC44NzQgMjM4Ljc2OCAxNzguODc0SDIyOC40MDFWMTk3LjM4NkMyMjguNDAxIDE5OS42MDcgMjI4LjQwMSAyMDIuODE2IDIyOS41MTIgMjA0LjkxNEMyMzAuMzc2IDIwNi42NDIgMjMxLjk4IDIwNy4zODMgMjM0LjA3OCAyMDcuMzgzQzIzNS40MzYgMjA3LjM4MyAyMzYuNzkzIDIwNy4wMTIgMjM3LjkwNCAyMDYuNzY1QzIzOC44OTEgMjA2LjUxOSAyMzkuNzU1IDIwNi4yNzIgMjQwLjc0MyAyMDYuMjcyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTExOCA1MkM4OC45MTI5IDY0LjY1ODEgNjUuNTgyNCA4Ny45ODA1IDUzIDExNyIgc3Ryb2tlPSIjN0I3MEI2IiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhciIgeDE9IjE3NyIgeTE9IjEyIiB4Mj0iMTc3IiB5Mj0iMzM4Ljc5NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNzMzOThEIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzU5NEE5NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo="},40040:e=>{"use strict";e.exports=MdxJsReact},87363:e=>{"use strict";e.exports=React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href;var o={};return(()=>{"use strict";n.r(o),n.d(o,{compositions:()=>r,compositions_metadata:()=>a,overview:()=>i});var e=n(4520),t=n(43643);const r=[e],i=[t],a={compositions:[{displayName:"Bit logo",identifier:"BitLogo"}]}})(),o})()));
package/bin/bit CHANGED
File without changes
package/dist/bin/bit CHANGED
File without changes
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_bit@1.6.1/dist/bit.compositions.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_bit@1.6.1/dist/bit.docs.js';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_bit@1.6.3/dist/bit.compositions.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_bit@1.6.3/dist/bit.docs.js';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/bit",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/bit",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "bit",
9
- "version": "1.6.1"
9
+ "version": "1.6.3"
10
10
  },
11
11
  "dependencies": {
12
12
  "comment-json": "3.0.3",
@@ -31,7 +31,7 @@
31
31
  "@yarnpkg/plugin-pack": "3.2.0",
32
32
  "@yarnpkg/core": "3.5.2",
33
33
  "@yarnpkg/cli": "3.6.1",
34
- "@teambit/legacy": "1.0.625",
34
+ "@teambit/legacy": "1.0.626",
35
35
  "@apollo/client": "3.6.9",
36
36
  "@teambit/harmony": "0.4.6",
37
37
  "@teambit/design.ui.brand.logo": "1.96.2",
@@ -40,108 +40,108 @@
40
40
  "@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.1",
41
41
  "@teambit/base-react.navigation.link": "2.0.27",
42
42
  "@teambit/toolbox.performance.v8-cache": "0.0.31",
43
- "@teambit/cli": "0.0.840",
44
- "@teambit/aspect-loader": "1.0.108",
45
- "@teambit/clear-cache": "0.0.396",
46
- "@teambit/config": "0.0.859",
47
- "@teambit/workspace.modules.node-modules-linker": "0.0.158",
48
- "@teambit/api-reference": "1.0.108",
49
- "@teambit/api-server": "1.0.108",
50
- "@teambit/application": "1.0.108",
51
- "@teambit/aspect": "1.0.108",
52
- "@teambit/babel": "1.0.108",
53
- "@teambit/builder": "1.0.108",
54
- "@teambit/bundler": "1.0.108",
55
- "@teambit/cache": "0.0.933",
56
- "@teambit/changelog": "1.0.108",
57
- "@teambit/checkout": "1.0.108",
58
- "@teambit/cloud": "0.0.388",
59
- "@teambit/code": "1.0.108",
60
- "@teambit/command-bar": "1.0.108",
61
- "@teambit/community": "1.0.108",
62
- "@teambit/compiler": "1.0.108",
63
- "@teambit/component-compare": "1.0.108",
64
- "@teambit/component-log": "1.0.108",
65
- "@teambit/component-sizer": "1.0.108",
66
- "@teambit/component-tree": "1.0.108",
67
- "@teambit/component-writer": "1.0.108",
68
- "@teambit/component": "1.0.108",
69
- "@teambit/compositions": "1.0.108",
70
- "@teambit/dependencies": "1.0.108",
71
- "@teambit/dependency-resolver": "1.0.108",
72
- "@teambit/deprecation": "1.0.108",
73
- "@teambit/dev-files": "1.0.108",
74
- "@teambit/diagnostic": "1.0.108",
75
- "@teambit/docs": "1.0.108",
76
- "@teambit/eject": "1.0.108",
77
- "@teambit/env": "1.0.108",
78
- "@teambit/envs": "1.0.108",
79
- "@teambit/eslint": "1.0.108",
80
- "@teambit/export": "1.0.108",
81
- "@teambit/express": "0.0.939",
82
- "@teambit/forking": "1.0.108",
83
- "@teambit/formatter": "1.0.108",
84
- "@teambit/generator": "1.0.109",
85
- "@teambit/git": "1.0.108",
86
- "@teambit/global-config": "0.0.842",
87
- "@teambit/graph": "1.0.108",
88
- "@teambit/graphql": "1.0.108",
89
- "@teambit/harmony-ui-app": "1.0.108",
90
- "@teambit/html": "1.0.108",
91
- "@teambit/importer": "1.0.108",
92
- "@teambit/insights": "1.0.108",
93
- "@teambit/install": "1.0.108",
94
- "@teambit/ipc-events": "1.0.108",
95
- "@teambit/isolator": "1.0.108",
96
- "@teambit/issues": "1.0.108",
97
- "@teambit/jest": "1.0.108",
98
- "@teambit/lanes": "1.0.108",
99
- "@teambit/linter": "1.0.108",
100
- "@teambit/lister": "1.0.108",
101
- "@teambit/logger": "0.0.933",
102
- "@teambit/mdx": "1.0.108",
103
- "@teambit/merge-lanes": "1.0.108",
104
- "@teambit/merging": "1.0.108",
105
- "@teambit/mocha": "1.0.108",
106
- "@teambit/mover": "1.0.108",
107
- "@teambit/multi-compiler": "1.0.108",
108
- "@teambit/multi-tester": "1.0.108",
109
- "@teambit/new-component-helper": "1.0.108",
110
- "@teambit/node": "1.0.108",
111
- "@teambit/notifications": "1.0.108",
112
- "@teambit/panels": "0.0.841",
113
- "@teambit/pkg": "1.0.108",
114
- "@teambit/pnpm": "1.0.108",
115
- "@teambit/prettier": "1.0.108",
116
- "@teambit/preview": "1.0.108",
117
- "@teambit/pubsub": "1.0.108",
118
- "@teambit/react-native": "1.0.108",
119
- "@teambit/react-router": "1.0.108",
120
- "@teambit/react": "1.0.108",
121
- "@teambit/readme": "1.0.108",
122
- "@teambit/refactoring": "1.0.108",
123
- "@teambit/remove": "1.0.108",
124
- "@teambit/renaming": "1.0.108",
125
- "@teambit/schema": "1.0.108",
126
- "@teambit/scope": "1.0.108",
127
- "@teambit/sidebar": "1.0.108",
128
- "@teambit/sign": "1.0.108",
129
- "@teambit/snapping": "1.0.108",
130
- "@teambit/stash": "1.0.108",
131
- "@teambit/status": "1.0.108",
132
- "@teambit/tester": "1.0.108",
133
- "@teambit/tracker": "1.0.108",
134
- "@teambit/typescript": "1.0.108",
135
- "@teambit/ui": "1.0.108",
136
- "@teambit/update-dependencies": "1.0.108",
137
- "@teambit/user-agent": "1.0.108",
138
- "@teambit/variants": "0.0.952",
139
- "@teambit/watcher": "1.0.108",
140
- "@teambit/webpack": "1.0.108",
141
- "@teambit/worker": "0.0.1144",
142
- "@teambit/workspace-config-files": "1.0.108",
143
- "@teambit/workspace": "1.0.108",
144
- "@teambit/yarn": "1.0.108"
43
+ "@teambit/cli": "0.0.842",
44
+ "@teambit/aspect-loader": "1.0.110",
45
+ "@teambit/clear-cache": "0.0.398",
46
+ "@teambit/config": "0.0.861",
47
+ "@teambit/workspace.modules.node-modules-linker": "0.0.159",
48
+ "@teambit/api-reference": "1.0.110",
49
+ "@teambit/api-server": "1.0.110",
50
+ "@teambit/application": "1.0.110",
51
+ "@teambit/aspect": "1.0.110",
52
+ "@teambit/babel": "1.0.110",
53
+ "@teambit/builder": "1.0.110",
54
+ "@teambit/bundler": "1.0.110",
55
+ "@teambit/cache": "0.0.935",
56
+ "@teambit/changelog": "1.0.110",
57
+ "@teambit/checkout": "1.0.110",
58
+ "@teambit/cloud": "0.0.390",
59
+ "@teambit/code": "1.0.110",
60
+ "@teambit/command-bar": "1.0.110",
61
+ "@teambit/community": "1.0.110",
62
+ "@teambit/compiler": "1.0.110",
63
+ "@teambit/component-compare": "1.0.110",
64
+ "@teambit/component-log": "1.0.110",
65
+ "@teambit/component-sizer": "1.0.110",
66
+ "@teambit/component-tree": "1.0.110",
67
+ "@teambit/component-writer": "1.0.110",
68
+ "@teambit/component": "1.0.110",
69
+ "@teambit/compositions": "1.0.110",
70
+ "@teambit/dependencies": "1.0.110",
71
+ "@teambit/dependency-resolver": "1.0.110",
72
+ "@teambit/deprecation": "1.0.110",
73
+ "@teambit/dev-files": "1.0.110",
74
+ "@teambit/diagnostic": "1.0.110",
75
+ "@teambit/docs": "1.0.110",
76
+ "@teambit/eject": "1.0.110",
77
+ "@teambit/env": "1.0.110",
78
+ "@teambit/envs": "1.0.110",
79
+ "@teambit/eslint": "1.0.110",
80
+ "@teambit/export": "1.0.110",
81
+ "@teambit/express": "0.0.941",
82
+ "@teambit/forking": "1.0.110",
83
+ "@teambit/formatter": "1.0.110",
84
+ "@teambit/generator": "1.0.111",
85
+ "@teambit/git": "1.0.110",
86
+ "@teambit/global-config": "0.0.844",
87
+ "@teambit/graph": "1.0.110",
88
+ "@teambit/graphql": "1.0.110",
89
+ "@teambit/harmony-ui-app": "1.0.110",
90
+ "@teambit/html": "1.0.110",
91
+ "@teambit/importer": "1.0.110",
92
+ "@teambit/insights": "1.0.110",
93
+ "@teambit/install": "1.0.110",
94
+ "@teambit/ipc-events": "1.0.110",
95
+ "@teambit/isolator": "1.0.110",
96
+ "@teambit/issues": "1.0.110",
97
+ "@teambit/jest": "1.0.110",
98
+ "@teambit/lanes": "1.0.110",
99
+ "@teambit/linter": "1.0.110",
100
+ "@teambit/lister": "1.0.110",
101
+ "@teambit/logger": "0.0.935",
102
+ "@teambit/mdx": "1.0.110",
103
+ "@teambit/merge-lanes": "1.0.110",
104
+ "@teambit/merging": "1.0.110",
105
+ "@teambit/mocha": "1.0.110",
106
+ "@teambit/mover": "1.0.110",
107
+ "@teambit/multi-compiler": "1.0.110",
108
+ "@teambit/multi-tester": "1.0.110",
109
+ "@teambit/new-component-helper": "1.0.110",
110
+ "@teambit/node": "1.0.110",
111
+ "@teambit/notifications": "1.0.110",
112
+ "@teambit/panels": "0.0.843",
113
+ "@teambit/pkg": "1.0.110",
114
+ "@teambit/pnpm": "1.0.110",
115
+ "@teambit/prettier": "1.0.110",
116
+ "@teambit/preview": "1.0.110",
117
+ "@teambit/pubsub": "1.0.110",
118
+ "@teambit/react-native": "1.0.110",
119
+ "@teambit/react-router": "1.0.110",
120
+ "@teambit/react": "1.0.110",
121
+ "@teambit/readme": "1.0.110",
122
+ "@teambit/refactoring": "1.0.110",
123
+ "@teambit/remove": "1.0.110",
124
+ "@teambit/renaming": "1.0.110",
125
+ "@teambit/schema": "1.0.110",
126
+ "@teambit/scope": "1.0.110",
127
+ "@teambit/sidebar": "1.0.110",
128
+ "@teambit/sign": "1.0.110",
129
+ "@teambit/snapping": "1.0.110",
130
+ "@teambit/stash": "1.0.110",
131
+ "@teambit/status": "1.0.110",
132
+ "@teambit/tester": "1.0.110",
133
+ "@teambit/tracker": "1.0.110",
134
+ "@teambit/typescript": "1.0.110",
135
+ "@teambit/ui": "1.0.110",
136
+ "@teambit/update-dependencies": "1.0.110",
137
+ "@teambit/user-agent": "1.0.110",
138
+ "@teambit/variants": "0.0.954",
139
+ "@teambit/watcher": "1.0.110",
140
+ "@teambit/webpack": "1.0.110",
141
+ "@teambit/worker": "0.0.1146",
142
+ "@teambit/workspace-config-files": "1.0.110",
143
+ "@teambit/workspace": "1.0.110",
144
+ "@teambit/yarn": "1.0.110"
145
145
  },
146
146
  "devDependencies": {
147
147
  "@types/fs-extra": "9.0.7",
@@ -149,10 +149,10 @@
149
149
  "@types/jest": "^29.2.2",
150
150
  "@types/testing-library__jest-dom": "^5.9.5",
151
151
  "@teambit/bit.content.what-is-bit": "1.96.2",
152
- "@teambit/harmony.envs.core-aspect-env": "0.0.13"
152
+ "@teambit/harmony.envs.core-aspect-env": "0.0.15"
153
153
  },
154
154
  "peerDependencies": {
155
- "@teambit/legacy": "1.0.625",
155
+ "@teambit/legacy": "1.0.626",
156
156
  "react": "17.0.2",
157
157
  "@types/react": "^18.2.12"
158
158
  },
@@ -160,15 +160,19 @@
160
160
  "optionalDependencies": {},
161
161
  "peerDependenciesMeta": {},
162
162
  "exports": {
163
- "node": {
164
- "require": "./dist/index.js",
165
- "import": "./dist/esm.mjs"
163
+ ".": {
164
+ "node": {
165
+ "require": "./dist/index.js",
166
+ "import": "./dist/esm.mjs"
167
+ },
168
+ "default": "./dist/index.js"
166
169
  },
167
- "default": "./dist/index.js"
170
+ "./dist/*": "./dist/*",
171
+ "./artifacts/*": "./artifacts/*"
168
172
  },
169
173
  "private": false,
170
174
  "engines": {
171
- "node": ">=16.0.0"
175
+ "node": ">=18.12.0"
172
176
  },
173
177
  "repository": {
174
178
  "type": "git",
@@ -184,5 +188,11 @@
184
188
  ],
185
189
  "packageManagerPublishArgs": [
186
190
  "--access public"
187
- ]
191
+ ],
192
+ "bvm": {
193
+ "node": "20.10.0"
194
+ },
195
+ "bin": {
196
+ "bbit": "bin/bit"
197
+ }
188
198
  }
package/app.ts DELETED
@@ -1,32 +0,0 @@
1
- /* eslint-disable import/no-dynamic-require */
2
- /* eslint-disable import/first */
3
- process.on('uncaughtException', (err) => {
4
- // eslint-disable-next-line no-console
5
- console.error('uncaughtException', err);
6
- process.exit(1);
7
- });
8
-
9
- import { nativeCompileCache } from '@teambit/toolbox.performance.v8-cache';
10
-
11
- // Enable v8 compile cache, keep this before other imports
12
- nativeCompileCache?.install();
13
-
14
- import './hook-require';
15
- import { bootstrap } from '@teambit/legacy/dist/bootstrap';
16
- import { handleErrorAndExit } from '@teambit/legacy/dist/cli/handle-errors';
17
- import { runCLI } from './load-bit';
18
-
19
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
20
- initApp();
21
-
22
- async function initApp() {
23
- try {
24
- await bootstrap();
25
- // registerCoreExtensions();
26
- // const harmony = await Harmony.load([ConfigExt], {});
27
- await runCLI();
28
- } catch (err: any) {
29
- const originalError = err.originalError || err;
30
- await handleErrorAndExit(originalError, process.argv[2]);
31
- }
32
- }
package/bit.aspect.ts DELETED
@@ -1,9 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
-
3
- /**
4
- * Main bit aspect
5
- */
6
- export const BitAspect = Aspect.create({
7
- id: 'teambit.harmony/bit',
8
- dependencies: [],
9
- });
@@ -1,22 +0,0 @@
1
- import { MainRuntime } from '@teambit/cli';
2
- import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data';
3
-
4
- import { BitAspect } from './bit.aspect';
5
- import { provideBit } from './bit.provider';
6
- import { manifestsMap } from './manifests';
7
-
8
- const manifests = Object.values(manifestsMap);
9
-
10
- export function registerCoreExtensions() {
11
- const allCoreExtensionsNames = Object.keys(manifestsMap);
12
- ExtensionDataList.registerManyCoreExtensionNames(allCoreExtensionsNames);
13
- }
14
-
15
- export const BitMain = {
16
- name: 'bit',
17
- runtime: MainRuntime,
18
- dependencies: manifests,
19
- provider: provideBit,
20
- };
21
-
22
- BitAspect.addRuntime(BitMain);
package/bit.provider.ts DELETED
@@ -1,21 +0,0 @@
1
- import { manifestsMap } from './manifests';
2
-
3
- export type BitDeps = [];
4
-
5
- export type BitConfig = {
6
- cwd: string;
7
- /**
8
- * if set, during bit bootstrap it checks whether the current bit-version semver.satisfies this version.
9
- */
10
- engine?: string;
11
- /**
12
- * if true, it throws an error when "engine" not satisfied. otherwise, it just warns.
13
- */
14
- engineStrict?: boolean;
15
- };
16
-
17
- export async function provideBit() {
18
- return {
19
- manifestsMap,
20
- };
21
- }
package/hook-require.ts DELETED
@@ -1,31 +0,0 @@
1
- import path from 'path';
2
-
3
- export function hookRequire() {
4
- module.constructor.prototype.require = function (id: string) {
5
- if (typeof id !== 'string') throw new Error('hookRequire - id must be a string');
6
- if (!id) throw new Error('hookRequire - missing id');
7
-
8
- // TODO: this should be refactored away to be handled by the dev.
9
- if (id.endsWith('.scss') || id.endsWith('.css') || id.endsWith('.less') || id === 'reset-css') {
10
- return {};
11
- }
12
-
13
- // This is a workaround for the issue described here: https://github.com/nodejs/node/issues/44663
14
- try {
15
- return this.constructor._load(id, this);
16
- } catch (firstErr: any) {
17
- if (firstErr.code !== 'MODULE_NOT_FOUND') {
18
- throw firstErr;
19
- }
20
- try {
21
- const pkgJson = this.constructor._load(path.join(id, 'package.json'), this);
22
- if (!pkgJson.main || pkgJson.main === 'index.js') throw firstErr;
23
- return this.constructor._load(path.join(id, pkgJson.main), this);
24
- } catch (err) {
25
- throw firstErr;
26
- }
27
- }
28
- };
29
- }
30
-
31
- hookRequire();
package/index.ts DELETED
@@ -1,8 +0,0 @@
1
- export type { RuntimeManifest } from '@teambit/harmony';
2
- export { Aspect, RuntimeDefinition } from '@teambit/harmony';
3
- export { Hook, HookRegistry } from './hooks';
4
- export { manifestsMap, isCoreAspect, getAllCoreAspectsIds } from './manifests';
5
- export { registerCoreExtensions } from './bit.main.runtime';
6
- export { BitAspect } from './bit.aspect';
7
- export type { BitMain } from './bit.main.runtime';
8
- export { loadBit, restoreGlobals } from './load-bit';
package/load-bit.ts DELETED
@@ -1,308 +0,0 @@
1
- /* eslint-disable import/no-dynamic-require */
2
- /* eslint-disable import/first */
3
- process.on('uncaughtException', (err) => {
4
- // eslint-disable-next-line no-console
5
- console.error('uncaughtException', err);
6
- process.exit(1);
7
- });
8
-
9
- import { nativeCompileCache } from '@teambit/toolbox.performance.v8-cache';
10
-
11
- // Enable v8 compile cache, keep this before other imports
12
- nativeCompileCache?.install();
13
-
14
- import './hook-require';
15
-
16
- import {
17
- getAspectDir,
18
- getAspectDistDir,
19
- AspectLoaderMain,
20
- getCoreAspectPackageName,
21
- getCoreAspectName,
22
- } from '@teambit/aspect-loader';
23
- import json from 'comment-json';
24
- import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';
25
- import { ConfigAspect, ConfigRuntime } from '@teambit/config';
26
- import { Harmony, RuntimeDefinition, Extension } from '@teambit/harmony';
27
- // TODO: expose this types from harmony (once we have a way to expose it only for node)
28
- import { Config, ConfigOptions } from '@teambit/harmony/dist/harmony-config';
29
-
30
- import { VERSION_DELIMITER } from '@teambit/legacy-bit-id';
31
- import { getConsumerInfo, loadConsumer } from '@teambit/legacy/dist/consumer';
32
- import { ConsumerInfo } from '@teambit/legacy/dist/consumer/consumer-locator';
33
- import BitMap from '@teambit/legacy/dist/consumer/bit-map';
34
- import ComponentLoader from '@teambit/legacy/dist/consumer/component/component-loader';
35
- import ComponentConfig from '@teambit/legacy/dist/consumer/config/component-config';
36
- import ComponentOverrides from '@teambit/legacy/dist/consumer/config/component-overrides';
37
- import { PackageJsonTransformer } from '@teambit/workspace.modules.node-modules-linker';
38
- import { satisfies } from 'semver';
39
- import { getHarmonyVersion } from '@teambit/legacy/dist/bootstrap';
40
- import ClearCacheAspect from '@teambit/clear-cache';
41
- import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config';
42
- import WorkspaceConfig from '@teambit/legacy/dist/consumer/config/workspace-config';
43
- import { ComponentIdList, ComponentID } from '@teambit/component-id';
44
- import { findScopePath } from '@teambit/legacy/dist/utils';
45
- import logger from '@teambit/legacy/dist/logger/logger';
46
- import { ExternalActions } from '@teambit/legacy/dist/api/scope/lib/action';
47
- import { readdir } from 'fs-extra';
48
- import { resolve } from 'path';
49
- import { manifestsMap } from './manifests';
50
- import { BitAspect } from './bit.aspect';
51
- import { registerCoreExtensions } from './bit.main.runtime';
52
- import { BitConfig } from './bit.provider';
53
-
54
- async function loadLegacyConfig(config: any) {
55
- const harmony = await Harmony.load([ConfigAspect], ConfigRuntime.name, config.toObject());
56
- await harmony.run(async (aspect: Extension, runtime: RuntimeDefinition) => requireAspects(aspect, runtime));
57
- }
58
-
59
- async function getConfig(cwd = process.cwd()) {
60
- const consumerInfo = await getConsumerInfo(cwd);
61
- const scopePath = findScopePath(cwd);
62
- const globalConfigOpts = {
63
- name: '.bitrc.jsonc',
64
- };
65
- const configOpts: ConfigOptions = {
66
- global: globalConfigOpts,
67
- shouldThrow: false,
68
- cwd: consumerInfo?.path || scopePath,
69
- };
70
-
71
- if (consumerInfo) {
72
- const config = Config.load('workspace.jsonc', configOpts);
73
- return attachVersionsFromBitmap(config, consumerInfo);
74
- }
75
-
76
- if (scopePath && !consumerInfo) {
77
- return Config.load('scope.jsonc', configOpts);
78
- }
79
-
80
- return Config.loadGlobal(globalConfigOpts);
81
- }
82
-
83
- /**
84
- * This will attach versions of aspects configured in the config without version by resolves them from the bitmap file
85
- * It's required in order to support a usecase which you develop a local aspect and configure it in your workspace.jsonc
86
- * in that case you always want the workspace.jsonc config to be linked to your local aspect
87
- * but you don't want to change your workspace.jsonc version after each tag of the aspect
88
- * @param config
89
- */
90
- function attachVersionsFromBitmap(config: Config, consumerInfo: ConsumerInfo): Config {
91
- if (!consumerInfo || !consumerInfo.hasBitMap) {
92
- return config;
93
- }
94
- const rawConfig = config.toObject();
95
- const rawBitmap = BitMap.loadRawSync(consumerInfo.path);
96
- let parsedBitMap = {};
97
- try {
98
- parsedBitMap = rawBitmap ? json.parse(rawBitmap?.toString('utf8'), undefined, true) : {};
99
- // @todo: remove this if statement once we don't need the migration of the bitmap file for lanes
100
- // @ts-ignore
101
- if (parsedBitMap?._bit_lane?.name) {
102
- // backward compatibility. if "_bit_land" has the old format, then, later, when the bitmap is loaded again,
103
- // it'll take care of the migration.
104
- parsedBitMap = {};
105
- }
106
- BitMap.removeNonComponentFields(parsedBitMap);
107
- // Do nothing here, invalid bitmaps will be handled later
108
- // eslint-disable-next-line no-empty
109
- } catch (e: any) {}
110
- const defaultScope = rawConfig['teambit.workspace/workspace'].defaultScope;
111
- const allBitmapIds = Object.keys(parsedBitMap).map((id) =>
112
- BitMap.getComponentIdFromComponentJson(id, parsedBitMap[id], defaultScope)
113
- );
114
- const bitMapBitIds = ComponentIdList.fromArray(allBitmapIds);
115
- const result = Object.entries(rawConfig).reduce((acc, [aspectId, aspectConfig]) => {
116
- let newAspectEntry = aspectId;
117
- // In case the id already has a version we don't want to get it from the bitmap
118
- // We also don't want to add versions for core aspects
119
- if (!aspectId.includes(VERSION_DELIMITER) && !manifestsMap[aspectId]) {
120
- const versionFromBitmap = getVersionFromBitMapIds(bitMapBitIds, aspectId);
121
- if (versionFromBitmap) {
122
- newAspectEntry = `${aspectId}${VERSION_DELIMITER}${versionFromBitmap}`;
123
- }
124
- }
125
- acc[newAspectEntry] = aspectConfig;
126
- return acc;
127
- }, {});
128
- return new Config(result);
129
- }
130
-
131
- function getVersionFromBitMapIds(allBitmapIds: ComponentIdList, aspectId: string): string | undefined {
132
- let aspectBitId: ComponentID;
133
- try {
134
- aspectBitId = ComponentID.fromString(aspectId);
135
- } catch (err: any) {
136
- throw new Error(
137
- `unable to parse the component-id "${aspectId}" from the workspace.jsonc file, make sure this is a component id`
138
- );
139
- }
140
- // start by searching id in the bitmap with exact match (including scope name)
141
- // in case the aspect is not exported yet, it will be in the bitmap without a scope,
142
- // while in the aspect id it will have the default scope
143
- const found =
144
- allBitmapIds.searchWithoutVersion(aspectBitId) || allBitmapIds.searchWithoutScopeAndVersion(aspectBitId);
145
- return found && found.hasVersion() ? found.version : undefined;
146
- }
147
-
148
- export async function requireAspects(aspect: Extension, runtime: RuntimeDefinition) {
149
- const id = aspect.name;
150
- if (!id) throw new Error('could not retrieve aspect id');
151
- const dirPath = getAspectDistDir(id);
152
- const files = await readdir(dirPath);
153
- const runtimeFile = files.find((file) => file.includes(`.${runtime.name}.runtime.js`));
154
- if (!runtimeFile) return;
155
- // eslint-disable-next-line
156
- require(resolve(`${dirPath}/${runtimeFile}`));
157
- }
158
-
159
- function getMainAspect() {
160
- const mainAspectDir = getAspectDir(BitAspect.id);
161
- let version: string | undefined;
162
- const packageName = getCoreAspectPackageName(BitAspect.id);
163
-
164
- try {
165
- // eslint-disable-next-line global-require
166
- const packageJson = require(`${mainAspectDir}/package.json`);
167
- version = packageJson.version;
168
- } catch (err: any) {
169
- version = undefined;
170
- }
171
-
172
- return {
173
- path: mainAspectDir,
174
- version,
175
- packageName,
176
- aspect: BitAspect,
177
- name: getCoreAspectName(BitAspect.id),
178
- id: BitAspect.id,
179
- };
180
- }
181
-
182
- /**
183
- * Bit may crush during the aspect loading phase or workspace/consumer initialization.
184
- * normally, this is the desired behavior, however, some commands are there to help overcome these
185
- * errors, such as "bit clear-cache". for these commands we're better off loading the bare minimum,
186
- * which is only the CLI aspect.
187
- *
188
- * at this stage we don't have the commands objects, so we can't check the command/flags from there
189
- * instead, we have to check the `process.argv.` directly instead, which is not 100% accurate.
190
- */
191
- function shouldLoadInSafeMode() {
192
- const currentCommand = process.argv[2];
193
- const safeModeCommands = [
194
- 'init',
195
- 'cat-scope',
196
- 'cat-object',
197
- 'cat-component',
198
- 'cmp',
199
- 'cat-lane',
200
- 'login',
201
- 'logout',
202
- 'config',
203
- 'remote',
204
- ];
205
- const hasSafeModeFlag = process.argv.includes('--safe-mode');
206
- const isSafeModeCommand = safeModeCommands.includes(currentCommand) || isClearCacheCommand();
207
- return isSafeModeCommand || hasSafeModeFlag;
208
- }
209
-
210
- function isClearCacheCommand() {
211
- return process.argv[2] === 'clear-cache' || process.argv[2] === 'cc';
212
- }
213
-
214
- function shouldRunAsDaemon() {
215
- return process.env.BIT_DAEMON === 'true';
216
- }
217
-
218
- export async function loadBit(path = process.cwd()) {
219
- clearGlobalsIfNeeded();
220
- logger.info(`*** Loading Bit *** argv:\n${process.argv.join('\n')}`);
221
- const config = await getConfig(path);
222
- registerCoreExtensions();
223
- await loadLegacyConfig(config);
224
- const configMap = config.toObject();
225
- configMap[BitAspect.id] ||= {};
226
- configMap[BitAspect.id].cwd = path;
227
- verifyEngine(configMap[BitAspect.id]);
228
-
229
- const aspectsToLoad = [CLIAspect];
230
- const loadCLIOnly = shouldLoadInSafeMode();
231
- if (isClearCacheCommand()) aspectsToLoad.push(ClearCacheAspect);
232
- if (!loadCLIOnly) {
233
- aspectsToLoad.push(BitAspect);
234
- }
235
- if (shouldRunAsDaemon()) {
236
- logger.isDaemon = true;
237
- }
238
- const harmony = await Harmony.load(aspectsToLoad, MainRuntime.name, configMap);
239
-
240
- await harmony.run(async (aspect: Extension, runtime: RuntimeDefinition) => requireAspects(aspect, runtime));
241
- if (loadCLIOnly) return harmony;
242
- const aspectLoader = harmony.get<AspectLoaderMain>('teambit.harmony/aspect-loader');
243
- aspectLoader.setCoreAspects(Object.values(manifestsMap));
244
- aspectLoader.setMainAspect(getMainAspect());
245
- return harmony;
246
- }
247
-
248
- function verifyEngine(bitConfig: BitConfig) {
249
- if (!bitConfig.engine) {
250
- return;
251
- }
252
- const bitVersion = getHarmonyVersion(true);
253
- if (satisfies(bitVersion, bitConfig.engine)) {
254
- return;
255
- }
256
- const msg = `your bit version "${bitVersion}" doesn't satisfies the required "${bitConfig.engine}" version`;
257
- if (bitConfig.engineStrict) {
258
- throw new Error(`error: ${msg}`);
259
- }
260
- logger.console(msg, 'warn', 'yellow');
261
- }
262
-
263
- export async function runCLI() {
264
- const harmony = await loadBit();
265
- const cli = harmony.get<CLIMain>('teambit.harmony/cli');
266
- let hasWorkspace = true;
267
- try {
268
- harmony.get('teambit.workspace/workspace');
269
- } catch (err: any) {
270
- hasWorkspace = false;
271
- }
272
- await cli.run(hasWorkspace);
273
- }
274
-
275
- const globalsState: Record<string, any> = {};
276
-
277
- /**
278
- * loadBit may gets called multiple times (currently, it's happening during e2e-tests that call loadBit).
279
- * when it happens, the static methods in this function still have the callbacks that were added in
280
- * the previous loadBit call. this callbacks have the old data such as workspace/bitmap/consumer
281
- * of the previous workspace, which leads to hard-to-debug issues.
282
- */
283
- function clearGlobalsIfNeeded() {
284
- if (!loadConsumer.cache && !PackageJsonTransformer.packageJsonTransformersRegistry.length) {
285
- return;
286
- }
287
- delete loadConsumer.cache;
288
- ComponentLoader.onComponentLoadSubscribers = [];
289
- ComponentOverrides.componentOverridesLoadingRegistry = {};
290
- ComponentConfig.componentConfigLoadingRegistry = {};
291
- PackageJsonTransformer.packageJsonTransformersRegistry = [];
292
- globalsState.loadDeps = ComponentLoader.loadDeps;
293
- // @ts-ignore
294
- ComponentLoader.loadDeps = undefined;
295
- ExtensionDataList.coreExtensionsNames = new Map();
296
- ExtensionDataList.toModelObjectsHook = [];
297
- // @ts-ignore
298
- WorkspaceConfig.workspaceConfigEnsuringRegistry = undefined;
299
- // @ts-ignore
300
- WorkspaceConfig.workspaceConfigIsExistRegistry = undefined;
301
- // @ts-ignore
302
- WorkspaceConfig.workspaceConfigLoadingRegistry = undefined;
303
- ExternalActions.externalActions = [];
304
- }
305
-
306
- export function restoreGlobals() {
307
- if (globalsState.loadDeps) ComponentLoader.loadDeps = globalsState.loadDeps;
308
- }
package/manifests.ts DELETED
@@ -1,218 +0,0 @@
1
- import { AspectAspect } from '@teambit/aspect';
2
- import AspectLoaderAspect from '@teambit/aspect-loader';
3
- import { BuilderAspect } from '@teambit/builder';
4
- import { BundlerAspect } from '@teambit/bundler';
5
- import { CacheAspect } from '@teambit/cache';
6
- import { CLIAspect } from '@teambit/cli';
7
- import { CompilerAspect } from '@teambit/compiler';
8
- import { ComponentAspect } from '@teambit/component';
9
- import { CompositionsAspect } from '@teambit/compositions';
10
- import { ConfigAspect } from '@teambit/config';
11
- import { DependencyResolverAspect } from '@teambit/dependency-resolver';
12
- import { DeprecationAspect } from '@teambit/deprecation';
13
- import { DocsAspect } from '@teambit/docs';
14
- import { EnvsAspect } from '@teambit/envs';
15
- import { EnvAspect } from '@teambit/env';
16
- import { ExpressAspect } from '@teambit/express';
17
- import { YarnAspect } from '@teambit/yarn';
18
- import { GeneratorAspect } from '@teambit/generator';
19
- import { HarmonyUiAppAspect } from '@teambit/harmony-ui-app';
20
- import { GraphAspect } from '@teambit/graph';
21
- import { GraphqlAspect } from '@teambit/graphql';
22
- import { InsightsAspect } from '@teambit/insights';
23
- import { IsolatorAspect } from '@teambit/isolator';
24
- import { JestAspect } from '@teambit/jest';
25
- import { LoggerAspect } from '@teambit/logger';
26
- import { NodeAspect } from '@teambit/node';
27
- import { NotificationsAspect } from '@teambit/notifications';
28
- import { PanelUiAspect } from '@teambit/panels';
29
- import { PkgAspect } from '@teambit/pkg';
30
- import { PnpmAspect } from '@teambit/pnpm';
31
- import { PreviewAspect } from '@teambit/preview';
32
- import { ComponentSizerAspect } from '@teambit/component-sizer';
33
- import { ReactAspect } from '@teambit/react';
34
- import { ReactNativeAspect } from '@teambit/react-native';
35
- import { ReactRouterAspect } from '@teambit/react-router';
36
- import { SchemaAspect } from '@teambit/schema';
37
- import { PubsubAspect } from '@teambit/pubsub';
38
- import { ScopeAspect } from '@teambit/scope';
39
- // import { StencilAspect } from '@teambit/stencil';
40
- import { TesterAspect } from '@teambit/tester';
41
- import { MultiTesterAspect } from '@teambit/multi-tester';
42
- import { TypescriptAspect } from '@teambit/typescript';
43
- import { BabelAspect } from '@teambit/babel';
44
- import { UIAspect } from '@teambit/ui';
45
- import { VariantsAspect } from '@teambit/variants';
46
- import { WebpackAspect } from '@teambit/webpack';
47
- import { WorkspaceAspect } from '@teambit/workspace';
48
- import { WorkspaceConfigFilesAspect } from '@teambit/workspace-config-files';
49
- import { InstallAspect } from '@teambit/install';
50
- import { LinterAspect } from '@teambit/linter';
51
- import { FormatterAspect } from '@teambit/formatter';
52
- import { ChangelogAspect } from '@teambit/changelog';
53
- import { CodeAspect } from '@teambit/code';
54
- import { CommandBarAspect } from '@teambit/command-bar';
55
- import { SidebarAspect } from '@teambit/sidebar';
56
- import { ComponentTreeAspect } from '@teambit/component-tree';
57
- import { DevFilesAspect } from '@teambit/dev-files';
58
- import { ESLintAspect } from '@teambit/eslint';
59
- import { PrettierAspect } from '@teambit/prettier';
60
- import { SignAspect } from '@teambit/sign';
61
- import WorkerAspect from '@teambit/worker';
62
- import { GlobalConfigAspect } from '@teambit/global-config';
63
- import MultiCompilerAspect from '@teambit/multi-compiler';
64
- import MDXAspect from '@teambit/mdx';
65
- import ReadmeAspect from '@teambit/readme';
66
- import { ApplicationAspect } from '@teambit/application';
67
- import { UpdateDependenciesAspect } from '@teambit/update-dependencies';
68
- import { ExportAspect } from '@teambit/export';
69
- import { ImporterAspect } from '@teambit/importer';
70
- import { EjectAspect } from '@teambit/eject';
71
- import { UserAgentAspect } from '@teambit/user-agent';
72
- import { HtmlAspect } from '@teambit/html';
73
- import { LanesAspect } from '@teambit/lanes';
74
- import { ForkingAspect } from '@teambit/forking';
75
- import { RenamingAspect } from '@teambit/renaming';
76
- import { ComponentLogAspect } from '@teambit/component-log';
77
- import { ClearCacheAspect } from '@teambit/clear-cache';
78
- import { DiagnosticAspect } from '@teambit/diagnostic';
79
- import { NewComponentHelperAspect } from '@teambit/new-component-helper';
80
- import { MochaAspect } from '@teambit/mocha';
81
- import { CommunityAspect } from '@teambit/community';
82
- import { CloudAspect } from '@teambit/cloud';
83
- import { StatusAspect } from '@teambit/status';
84
- import { SnappingAspect } from '@teambit/snapping';
85
- import { MergingAspect } from '@teambit/merging';
86
- import { IssuesAspect } from '@teambit/issues';
87
- import { RefactoringAspect } from '@teambit/refactoring';
88
- import { ComponentCompareAspect } from '@teambit/component-compare';
89
- import { ListerAspect } from '@teambit/lister';
90
- import { DependenciesAspect } from '@teambit/dependencies';
91
- import { RemoveAspect } from '@teambit/remove';
92
- import { MergeLanesAspect } from '@teambit/merge-lanes';
93
- import { CheckoutAspect } from '@teambit/checkout';
94
- import { APIReferenceAspect } from '@teambit/api-reference';
95
- import { ApiServerAspect } from '@teambit/api-server';
96
- import { ComponentWriterAspect } from '@teambit/component-writer';
97
- import { TrackerAspect } from '@teambit/tracker';
98
- import { MoverAspect } from '@teambit/mover';
99
- import { WatcherAspect } from '@teambit/watcher';
100
- import { StashAspect } from '@teambit/stash';
101
- import { GitAspect } from '@teambit/git';
102
- import { IpcEventsAspect } from '@teambit/ipc-events';
103
- import { BitAspect } from './bit.aspect';
104
-
105
- export const manifestsMap = {
106
- [AspectLoaderAspect.id]: AspectLoaderAspect,
107
- [CLIAspect.id]: CLIAspect,
108
- [DevFilesAspect.id]: DevFilesAspect,
109
- [WorkspaceAspect.id]: WorkspaceAspect,
110
- [WorkspaceConfigFilesAspect.id]: WorkspaceConfigFilesAspect,
111
- [InstallAspect.id]: InstallAspect,
112
- [ESLintAspect.id]: ESLintAspect,
113
- [PrettierAspect.id]: PrettierAspect,
114
- [CompilerAspect.id]: CompilerAspect,
115
- [LinterAspect.id]: LinterAspect,
116
- [FormatterAspect.id]: FormatterAspect,
117
- [ComponentAspect.id]: ComponentAspect,
118
- [MDXAspect.id]: MDXAspect,
119
- [ReadmeAspect.id]: ReadmeAspect,
120
- [PreviewAspect.id]: PreviewAspect,
121
- [ComponentSizerAspect.id]: ComponentSizerAspect,
122
- [DocsAspect.id]: DocsAspect,
123
- [YarnAspect.id]: YarnAspect,
124
- [CompositionsAspect.id]: CompositionsAspect,
125
- [GlobalConfigAspect.id]: GlobalConfigAspect,
126
- [GraphqlAspect.id]: GraphqlAspect,
127
- [PnpmAspect.id]: PnpmAspect,
128
- [MultiCompilerAspect.id]: MultiCompilerAspect,
129
- [UIAspect.id]: UIAspect,
130
- [GeneratorAspect.id]: GeneratorAspect,
131
- [EnvsAspect.id]: EnvsAspect,
132
- [EnvAspect.id]: EnvAspect,
133
- [GraphAspect.id]: GraphAspect,
134
- [PubsubAspect.id]: PubsubAspect,
135
- [DependencyResolverAspect.id]: DependencyResolverAspect,
136
- [InsightsAspect.id]: InsightsAspect,
137
- [IsolatorAspect.id]: IsolatorAspect,
138
- [LoggerAspect.id]: LoggerAspect,
139
- [PkgAspect.id]: PkgAspect,
140
- [ReactAspect.id]: ReactAspect,
141
- [ReactNativeAspect.id]: ReactNativeAspect,
142
- [WorkerAspect.id]: WorkerAspect,
143
- // [StencilAspect.id]: StencilAspect,
144
- [ScopeAspect.id]: ScopeAspect,
145
- [TesterAspect.id]: TesterAspect,
146
- [MultiTesterAspect.id]: MultiTesterAspect,
147
- [BuilderAspect.id]: BuilderAspect,
148
- [VariantsAspect.id]: VariantsAspect,
149
- [DeprecationAspect.id]: DeprecationAspect,
150
- [ExpressAspect.id]: ExpressAspect,
151
- [AspectAspect.id]: AspectAspect,
152
- [WebpackAspect.id]: WebpackAspect,
153
- [SchemaAspect.id]: SchemaAspect,
154
- [ReactRouterAspect.id]: ReactRouterAspect,
155
- [TypescriptAspect.id]: TypescriptAspect,
156
- [PanelUiAspect.id]: PanelUiAspect,
157
- [BabelAspect.id]: BabelAspect,
158
- [NodeAspect.id]: NodeAspect,
159
- [NotificationsAspect.id]: NotificationsAspect,
160
- [BundlerAspect.id]: BundlerAspect,
161
- [JestAspect.id]: JestAspect,
162
- [CacheAspect.id]: CacheAspect,
163
- [ChangelogAspect.id]: ChangelogAspect,
164
- [CodeAspect.id]: CodeAspect,
165
- [CommandBarAspect.id]: CommandBarAspect,
166
- [SidebarAspect.id]: SidebarAspect,
167
- [ComponentTreeAspect.id]: ComponentTreeAspect,
168
- [SignAspect.id]: SignAspect,
169
- [UpdateDependenciesAspect.id]: UpdateDependenciesAspect,
170
- [ExportAspect.id]: ExportAspect,
171
- [ImporterAspect.id]: ImporterAspect,
172
- [HarmonyUiAppAspect.id]: HarmonyUiAppAspect,
173
- [UserAgentAspect.id]: UserAgentAspect,
174
- [ApplicationAspect.id]: ApplicationAspect,
175
- [EjectAspect.id]: EjectAspect,
176
- [HtmlAspect.id]: HtmlAspect,
177
- [LanesAspect.id]: LanesAspect,
178
- [ForkingAspect.id]: ForkingAspect,
179
- [RenamingAspect.id]: RenamingAspect,
180
- [NewComponentHelperAspect.id]: NewComponentHelperAspect,
181
- [ComponentLogAspect.id]: ComponentLogAspect,
182
- [ClearCacheAspect.id]: ClearCacheAspect,
183
- [MochaAspect.id]: MochaAspect,
184
- [DiagnosticAspect.id]: DiagnosticAspect,
185
- [StatusAspect.id]: StatusAspect,
186
- [CommunityAspect.id]: CommunityAspect,
187
- [CloudAspect.id]: CloudAspect,
188
- [SnappingAspect.id]: SnappingAspect,
189
- [MergingAspect.id]: MergingAspect,
190
- [IssuesAspect.id]: IssuesAspect,
191
- [RefactoringAspect.id]: RefactoringAspect,
192
- [ComponentCompareAspect.id]: ComponentCompareAspect,
193
- [ListerAspect.id]: ListerAspect,
194
- [DependenciesAspect.id]: DependenciesAspect,
195
- [RemoveAspect.id]: RemoveAspect,
196
- [MergeLanesAspect.id]: MergeLanesAspect,
197
- [CheckoutAspect.id]: CheckoutAspect,
198
- [ComponentWriterAspect.id]: ComponentWriterAspect,
199
- [APIReferenceAspect.id]: APIReferenceAspect,
200
- [ApiServerAspect.id]: ApiServerAspect,
201
- [TrackerAspect.id]: TrackerAspect,
202
- [MoverAspect.id]: MoverAspect,
203
- [WatcherAspect.id]: WatcherAspect,
204
- [StashAspect.id]: StashAspect,
205
- [GitAspect.id]: GitAspect,
206
- [IpcEventsAspect.id]: IpcEventsAspect,
207
- };
208
-
209
- export function isCoreAspect(id: string) {
210
- const _reserved = [BitAspect.id, ConfigAspect.id];
211
- if (_reserved.includes(id)) return true;
212
- return !!manifestsMap[id];
213
- }
214
-
215
- export function getAllCoreAspectsIds(): string[] {
216
- const _reserved = [BitAspect.id, ConfigAspect.id];
217
- return [...Object.keys(manifestsMap), ..._reserved];
218
- }