@teambit/scope 1.0.310 → 1.0.311

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.scope/scope@1.0.310" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.scope/scope@1.0.311" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see teambit_scope_scope-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.scope/scope-preview"]=t():e["teambit.scope/scope-preview"]=t()}(self,(()=>(()=>{var e={88443:(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)}()},69685:(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)}()},78552:()=>{!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var e=!1;try{var t=document.createElement("div");t.addEventListener("focus",(function(e){e.preventDefault(),e.stopPropagation()}),!0),t.focus(Object.defineProperty({},"preventScroll",{get:function(){e=!0}}))}catch(e){}void 0!==HTMLElement.prototype.nativeFocus||e||(HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){var t=window.scrollY||window.pageYOffset;this.nativeFocus(),e&&e.preventScroll&&setTimeout((function(){window.scroll(window.scrollX||window.pageXOffset,t)}),0)})}}()},81903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigator=t.isBrowser=t.off=t.on=t.noop=void 0,t.noop=function(){},t.on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)},t.isBrowser="undefined"!=typeof window,t.isNavigator="undefined"!=typeof navigator},57793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(41594);t.default=function(e){o.useEffect(e,[])}},87709:(e,t,n)=>{"use strict";var o=n(41594),r=n(81903),i=r.isBrowser?window:null,a=function(e){return!!e.addEventListener},s=function(e){return!!e.on};t.A=function(e,t,n,c){void 0===n&&(n=i),o.useEffect((function(){if(t&&n)return a(n)?r.on(n,e,t,c):s(n)&&n.on(e,t,c),function(){a(n)?r.off(n,e,t,c):s(n)&&n.off(e,t,c)}}),[e,t,n,JSON.stringify(c)])}},33331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7746),r=n(41594),i=o.__importDefault(n(93797));t.default=function(e){var t=r.useRef(0),n=r.useState(e),o=n[0],a=n[1],s=r.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){a(e)}))}),[]);return i.default((function(){cancelAnimationFrame(t.current)})),[o,s]}},93797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7746),r=n(41594),i=o.__importDefault(n(57793));t.default=function(e){var t=r.useRef(e);t.current=e,i.default((function(){return function(){return t.current()}}))}},69200:(e,t,n)=>{"use strict";var o=n(7746),r=n(41594),i=o.__importDefault(n(33331)),a=n(81903);t.A=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var n=i.default({width:a.isBrowser?window.innerWidth:e,height:a.isBrowser?window.innerHeight:t}),o=n[0],s=n[1];return r.useEffect((function(){if(a.isBrowser){var e=function(){s({width:window.innerWidth,height:window.innerHeight})};return a.on(window,"resize",e),function(){a.off(window,"resize",e)}}}),[]),o}},51225: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(41594)),a=r(n(88443)),s=r(n(76076));function c(e){var{alt:t,className:n,fullWidth:r}=e,c=o(e,["alt","className","fullWidth"]);return i.default.createElement("img",Object.assign({"data-bit-id":"teambit.base-ui/elements/image",alt:t},c,{className:a.default(s.default.image,r&&s.default.fullWidth,n)}))}c.__bit_component={id:"teambit.base-ui/elements/image@1.0.0",homepage:"https://bit.dev/teambit/base-ui/elements/image",exported:!0},t.BaseImage=c},14076: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(51225),t)},62233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Image:()=>y});var o=n(41594),r=n.n(o),i=n(69685),a=n.n(i);n(78552);const s=ReactDom;var c=n(87709),l=n(69200),u=n(7746),p=function(e){return e+"ms"},f={getBoundingClientRect:function(){return{height:0,left:0,top:0,width:0}},style:{transform:null}},d=(0,o.memo)((function(e){var t=e.children,n=e.closeText,i=void 0===n?"Unzoom Image":n,a=e.onUnload,d=e.onLoad,m=e.overlayBgColorEnd,h=void 0===m?"rgba(255, 255, 255, 0.95)":m,y=e.overlayBgColorStart,v=void 0===y?"rgba(255, 255, 255, 0)":y,b=e.parentRef,g=e.portalEl,_=void 0===g?document.body:g,w=e.scrollableEl,x=void 0===w?window:w,O=e.transitionDuration,j=void 0===O?300:O,S=e.zoomMargin,P=void 0===S?0:S,E=e.zoomZindex,T=void 0===E?2147483647:E,k=(0,o.useRef)(null),M=(0,o.useState)(0)[1],D=(0,o.useState)(!1),C=D[0],I=D[1],A=(0,o.useState)(!1),z=A[0],B=A[1],N=(0,l.A)(),L=N.width,R=N.height,W=(0,o.useCallback)((function(e){e.preventDefault(),B(!0)}),[]),F=(0,o.useCallback)((function(e){"Escape"!==e.key&&27!==e.keyCode||(e.stopPropagation(),B(!0))}),[]),H=(0,o.useCallback)((function(){M((function(e){return e+1})),z||B(!0)}),[z]);(0,c.A)("keydown",F,document),(0,c.A)("scroll",H,x),(0,o.useEffect)((function(){I(!0),d(),k.current&&k.current.focus({preventScroll:!0})}),[d]),(0,o.useEffect)((function(){var e=z?setTimeout(a,j):null;return function(){e&&clearTimeout(e)}}),[z,a,j]);var X=b.current||f,U=X.getBoundingClientRect(),G=U.height,Z=U.left,$=U.top,J=U.width,V=function(e){var t=e.isLoaded,n=e.isUnloading,o=e.overlayBgColorEnd,r=e.zoomZindex,i={backgroundColor:e.overlayBgColorStart,transitionDuration:p(e.transitionDuration),zIndex:r};return t&&!n&&(i.backgroundColor=o),i}({isLoaded:C,isUnloading:z,overlayBgColorEnd:h,overlayBgColorStart:v,transitionDuration:j,zoomZindex:T}),Y=function(e){var t=e.height,n=e.innerHeight,o=e.innerWidth,r=e.isLoaded,i=e.isUnloading,a=e.left,s=e.originalTransform,c=e.top,l=e.transitionDuration,f=e.width,d=e.zoomMargin,m=p(l);if(!r||i){var h=(0,u.__spreadArrays)(["scale(1)","translate(0, 0)"],s?[s]:[]).join(" ");return{height:t,left:a,top:c,transform:h,WebkitTransform:h,transitionDuration:m,width:f}}var y=function(e){var t=e.zoomMargin,n=e.innerWidth/(e.width+t),o=e.innerHeight/(e.height+t);return Math.min(n,o)}({height:t,innerWidth:o,innerHeight:n,width:f,zoomMargin:d}),v=(o/2-(a+f/2))/y,b=(n/2-(c+t/2))/y,g=(0,u.__spreadArrays)(["scale("+y+")","translate("+v+"px, "+b+"px)"],s?[s]:[]).join(" ");return{height:t,left:a,top:c,transform:g,WebkitTransform:g,transitionDuration:m,width:f}}({height:G,isLoaded:C,innerHeight:R,innerWidth:L,isUnloading:z,left:Z,originalTransform:X.style.transform,top:$,transitionDuration:j,width:J,zoomMargin:P});return(0,s.createPortal)(r().createElement("div",{"aria-modal":!0,"data-rmiz-overlay":!0,role:"dialog",style:V},r().createElement("div",{"data-rmiz-modal-content":!0,style:Y},t),r().createElement("button",{"aria-label":i,"data-rmiz-btn-close":!0,onClick:W,ref:k})),_)}));const m=(0,o.memo)((function(e){var t=e.children,n=e.closeText,i=void 0===n?"Unzoom image":n,a=e.overlayBgColorEnd,s=void 0===a?"rgba(255, 255, 255, 0.95)":a,c=e.overlayBgColorStart,l=void 0===c?"rgba(255, 255, 255, 0)":c,u=e.portalEl,p=e.openText,f=void 0===p?"Zoom image":p,m=e.scrollableEl,h=e.transitionDuration,y=void 0===h?300:h,v=e.wrapElement,b=void 0===v?"div":v,g=e.wrapStyle,_=e.zoomMargin,w=void 0===_?0:_,x=e.zoomZindex,O=void 0===x?2147483647:x,j=(0,o.useState)(!1),S=j[0],P=j[1],E=(0,o.useState)(!1),T=E[0],k=E[1],M=(0,o.useRef)(null),D=(0,o.useRef)(null),C=(0,o.useCallback)((function(e){S||(e.preventDefault(),P(!0))}),[S]),I=(0,o.useCallback)((function(){k(!0)}),[]),A=(0,o.useCallback)((function(){P(!1),k(!1),D.current&&D.current.focus({preventScroll:!0})}),[]),z=S&&T?"hidden":"visible";return r().createElement(o.StrictMode,null,r().createElement(b,{"data-rmiz-wrap":z,ref:M,style:g},t,r().createElement("button",{"aria-label":f,"data-rmiz-btn-open":!0,onClick:C,ref:D}),"undefined"!=typeof window&&S&&r().createElement(d,{closeText:i,onLoad:I,onUnload:A,overlayBgColorEnd:s,overlayBgColorStart:l,parentRef:M,portalEl:u,scrollableEl:m,transitionDuration:y,zoomMargin:w,zoomZindex:O},t)))}));var h=n(14076);const y=e=>{var{center:t=!0,width:n,alt:o,src:i,className:s}=e,c=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}(e,["center","width","alt","src","className"]);return r().createElement("div",{style:{width:n||"100%"},className:a()(t&&"image_center__6-xCb",s)},r().createElement(m,null,r().createElement(h.BaseImage,Object.assign({fullWidth:!0,alt:o,src:i},c))))};y.__bit_component={id:"teambit.docs/ui/zoomable-image@1.95.0",homepage:"https://bit.dev/teambit/docs/ui/zoomable-image",exported:!0}},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return o.default}});var o=r(n(69285));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.scope/content/scope-overview@1.95.0",homepage:"https://bit.dev/teambit/scope/content/scope-overview",exported:!0}},69285:(e,t,n)=>{"use strict";var o={id:"teambit.scope/content/scope-overview@1.95.0",homepage:"https://bit.dev/teambit/scope/content/scope-overview",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=v,p(n(41594));var r=n(5016),i=n(65682),a=p(n(78199)),s=p(n(37080)),c=p(n(50758)),l=n(62233),u=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||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},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,o,r=m(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 m(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}p.__bit_component=o,f.__bit_component=o,d.__bit_component=o,m.__bit_component=o;var h={},y="wrapper";function v(e){var t=e.components,n=d(e,u);return(0,r.mdx)(y,f({},h,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{scopeImage:a.default,scopeGraph:s.default,componentTypes:c.default,Image:l.Image},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Scope Overview"),(0,r.mdx)("p",null,"Scope is a server for hosting components. Scopes help teams to share and use each other's components as by preserving team autonomy through versioning, forking, storing dependencies, and collaborate on changes of independent components.\nScopes defines ownership on components, as a single team owns the components exported to scope."),(0,r.mdx)(l.Image,{width:"70%",src:a.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Full stack of functionality"),(0,r.mdx)("p",null,"Scopes host components of any kind, from React, Angular and Node modules, all the way to a frontend apps or microservices. For a scope they are all Bit Components.",(0,r.mdx)("br",{parentName:"p"}),"\n","For example, the ",(0,r.mdx)("a",{parentName:"p",href:"https://bit.dev/teambit/mdx"},"MDX scope"),' contains all components relevant to handling MDX functionality in Bit. It exposes various types of components (or "APIs") to achieve this: Webpack loader, Node modules, React components and even a ',(0,r.mdx)("a",{parentName:"p",href:"/"},"Bit Aspect"),". This makes it easy for other teams to take leverage of MDX, not just as a feature but also as an API for their features."),(0,r.mdx)("p",null,"Scopes support various methods for using components, from adding as dependencies to runtime integrations, allowing the consumer to decide how whats the best solution for their use case."),(0,r.mdx)(l.Image,{width:"70%",src:c.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Team collaboration using components"),(0,r.mdx)("p",null,"Scopes provides visibility to components built by other teams, this is the first step towards better collaboration. Developers can find, use and depend on components by other teams. Instead of reinventing the wheel and rebuilding the same functionality, component visibility drives for collaboration. It is similar to how teams build with microservices and build team communication and collaboration by using each-other's APIs.",(0,r.mdx)("br",{parentName:"p"}),"\n","Moreover, developers can use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," and access to any component's source code and contribute change to collaborate on components."),(0,r.mdx)("p",null,"Bit keeps track on all these dependencies and flows, making team collaboration visible, easy to extend and optimize."),(0,r.mdx)(l.Image,{width:"70%",src:s.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Distributed and autonomous"),(0,r.mdx)("p",null,"Hosted scopes form a distributed network, where each scope is connected to the other scopes according to component dependencies. Each scope stores not only the components it hosts, but also the dependencies of those components.",(0,r.mdx)("br",{parentName:"p"}),"\n","When you export a component, the scope then does network calls to fetch the dependencies of the component from their respective scopes. This means that each scope becomes autonomous, as it contains all the dependencies needed to its components to run. In turn this makes teams more autonomous, as they can now build and use their components without having to worry about the dependencies."),(0,r.mdx)("p",null,"Scopes use standard HTTP for inner-scope communication, however, when building a network of scopes, you need to ensure scopes are able to connect to one another to fetch dependencies."),(0,r.mdx)("h2",null,"Source of truth"),(0,r.mdx)("p",null,"Scopes become the source of truth for components. Allowing different stakeholders to collaborate and work together from the same, or from different Workspaces.\nComponents can be maintained from multiple Workspaces in parallel, while Scopes are keeping them in sync, merging changes for all ends."),(0,r.mdx)("p",null,(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," can be used to fetch component updates. Using ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," is similar to using ",(0,r.mdx)("inlineCode",{parentName:"p"},"git fetch")," where new objects are being fetched but not checked out in your workspace. "),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit import\n⡃⢐ fetching 143 components from 18 remotes. delta-only: 143, all-history: 0.\n- up to date teambit.community/ui/hero \n- up to date teambit.community/ui/homepage/sections/distribution \n- updated teambit.design/ui/layouts/sections/left-right \n- updated teambit.design/ui/layouts/sections/section-group \n- updated teambit.design/ui/layouts/sections/top-down \n")),(0,r.mdx)("p",null,(0,r.mdx)("inlineCode",{parentName:"p"},"bit export")," is used to share component changes with others. It pushes new objects from a local Workspace to a remote Scope, allowing others to keep in sync with the latest\ncomponent changes."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit export\nexported 8 components successfully to remote scope `community`\n"))))}v.__bit_component=o,v.isMDXComponent=!0},18666:(e,t,n)=>{"use strict";var o={id:"teambit.scope/scope@1.0.310",homepage:"https://bit.cloud/teambit/scope/scope",exported:!0};function r(){const e=i(n(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=o,i.__bit_component=o;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/scope.svg"}));a.__bit_component=o,t.Logo=a},76076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={fullWidth:"image_fullWidth__sELLz"}},50758:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/3a1072c009accd203fa8.png"},37080:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/ccf5ea377e3a1a72829d.png"},78199:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/aef2176d16de53259dad.png"},5016:e=>{"use strict";e.exports=MdxJsReact},41594:e=>{"use strict";e.exports=React},65682:e=>{"use strict";e.exports=TeambitMdxUiMdxScopeContext},7746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>A,__assign:()=>i,__asyncDelegator:()=>S,__asyncGenerator:()=>j,__asyncValues:()=>P,__await:()=>O,__awaiter:()=>m,__classPrivateFieldGet:()=>D,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>C,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>B,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>r,__generator:()=>h,__importDefault:()=>M,__importStar:()=>k,__makeTemplateObject:()=>E,__metadata:()=>d,__param:()=>c,__propKey:()=>p,__read:()=>g,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>w,__values:()=>b,default:()=>N});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function a(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 s(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,o){t(n,o,e)}}function l(e,t,n,o,r,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=o.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?o.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,o.name):{}),f=!1,d=n.length-1;d>=0;d--){var m={};for(var h in o)m[h]="access"===h?{}:o[h];for(var h in o.access)m.access[h]=o.access[h];m.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var y=(0,n[d])("accessor"===c?{get:p.get,set:p.set}:p[l],m);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(p.get=s),(s=a(y.set))&&(p.set=s),(s=a(y.init))&&r.unshift(s)}else(s=a(y))&&("field"===c?r.unshift(s):p[l]=s)}u&&Object.defineProperty(u,o.name,p),f=!0}function u(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))}function h(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var y=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function x(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function j(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),o[Symbol.asyncIterator]=function(){return this},o;function a(e,t){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||s(e,t)}))},t&&(o[e]=t(o[e])))}function s(e,t){try{(n=r[e](t)).value instanceof O?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function S(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:O(e[o](t)),done:!1}:r?r(t):t}:r}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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)&&y(t,e,n);return T(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function D(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}function C(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function A(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(void 0===o){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if("function"!=typeof o)throw new TypeError("Object not disposable.");r&&(o=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}var z="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};function B(e){function t(t){e.error=e.hasError?new z(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var o=e.stack.pop();try{var r=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(r).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const N={__extends:r,__assign:i,__rest:a,__decorate:s,__param:c,__metadata:d,__awaiter:m,__generator:h,__createBinding:y,__exportStar:v,__values:b,__read:g,__spread:_,__spreadArrays:w,__spreadArray:x,__await:O,__asyncGenerator:j,__asyncDelegator:S,__asyncValues:P,__makeTemplateObject:E,__importStar:k,__importDefault:M,__classPrivateFieldGet:D,__classPrivateFieldSet:C,__classPrivateFieldIn:I,__addDisposableResource:A,__disposeResources:B}}},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.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})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>d});var e={};n.r(e),n.d(e,{default:()=>p});var t=n(18666),r=(n(41594),n(5016)),i=n(65682),a=n(5702),s=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(null,arguments)}var l={},u="wrapper";function p(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return(0,r.mdx)(u,c({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{ScopeOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,r.mdx)(a.Ay,{mdxType:"ScopeOverview"})))}p.isMDXComponent=!0;const f=[t],d=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),o})()));
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.scope/scope-preview"]=t():e["teambit.scope/scope-preview"]=t()}(self,(()=>(()=>{var e={88443:(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)}()},69685:(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)}()},78552:()=>{!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var e=!1;try{var t=document.createElement("div");t.addEventListener("focus",(function(e){e.preventDefault(),e.stopPropagation()}),!0),t.focus(Object.defineProperty({},"preventScroll",{get:function(){e=!0}}))}catch(e){}void 0!==HTMLElement.prototype.nativeFocus||e||(HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){var t=window.scrollY||window.pageYOffset;this.nativeFocus(),e&&e.preventScroll&&setTimeout((function(){window.scroll(window.scrollX||window.pageXOffset,t)}),0)})}}()},81903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigator=t.isBrowser=t.off=t.on=t.noop=void 0,t.noop=function(){},t.on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)},t.isBrowser="undefined"!=typeof window,t.isNavigator="undefined"!=typeof navigator},57793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(41594);t.default=function(e){o.useEffect(e,[])}},87709:(e,t,n)=>{"use strict";var o=n(41594),r=n(81903),i=r.isBrowser?window:null,a=function(e){return!!e.addEventListener},s=function(e){return!!e.on};t.A=function(e,t,n,c){void 0===n&&(n=i),o.useEffect((function(){if(t&&n)return a(n)?r.on(n,e,t,c):s(n)&&n.on(e,t,c),function(){a(n)?r.off(n,e,t,c):s(n)&&n.off(e,t,c)}}),[e,t,n,JSON.stringify(c)])}},33331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7746),r=n(41594),i=o.__importDefault(n(93797));t.default=function(e){var t=r.useRef(0),n=r.useState(e),o=n[0],a=n[1],s=r.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){a(e)}))}),[]);return i.default((function(){cancelAnimationFrame(t.current)})),[o,s]}},93797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7746),r=n(41594),i=o.__importDefault(n(57793));t.default=function(e){var t=r.useRef(e);t.current=e,i.default((function(){return function(){return t.current()}}))}},69200:(e,t,n)=>{"use strict";var o=n(7746),r=n(41594),i=o.__importDefault(n(33331)),a=n(81903);t.A=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var n=i.default({width:a.isBrowser?window.innerWidth:e,height:a.isBrowser?window.innerHeight:t}),o=n[0],s=n[1];return r.useEffect((function(){if(a.isBrowser){var e=function(){s({width:window.innerWidth,height:window.innerHeight})};return a.on(window,"resize",e),function(){a.off(window,"resize",e)}}}),[]),o}},51225: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(41594)),a=r(n(88443)),s=r(n(76076));function c(e){var{alt:t,className:n,fullWidth:r}=e,c=o(e,["alt","className","fullWidth"]);return i.default.createElement("img",Object.assign({"data-bit-id":"teambit.base-ui/elements/image",alt:t},c,{className:a.default(s.default.image,r&&s.default.fullWidth,n)}))}c.__bit_component={id:"teambit.base-ui/elements/image@1.0.0",homepage:"https://bit.dev/teambit/base-ui/elements/image",exported:!0},t.BaseImage=c},14076: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(51225),t)},62233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Image:()=>y});var o=n(41594),r=n.n(o),i=n(69685),a=n.n(i);n(78552);const s=ReactDom;var c=n(87709),l=n(69200),u=n(7746),p=function(e){return e+"ms"},f={getBoundingClientRect:function(){return{height:0,left:0,top:0,width:0}},style:{transform:null}},d=(0,o.memo)((function(e){var t=e.children,n=e.closeText,i=void 0===n?"Unzoom Image":n,a=e.onUnload,d=e.onLoad,m=e.overlayBgColorEnd,h=void 0===m?"rgba(255, 255, 255, 0.95)":m,y=e.overlayBgColorStart,v=void 0===y?"rgba(255, 255, 255, 0)":y,b=e.parentRef,g=e.portalEl,_=void 0===g?document.body:g,w=e.scrollableEl,x=void 0===w?window:w,O=e.transitionDuration,j=void 0===O?300:O,S=e.zoomMargin,P=void 0===S?0:S,E=e.zoomZindex,T=void 0===E?2147483647:E,k=(0,o.useRef)(null),M=(0,o.useState)(0)[1],D=(0,o.useState)(!1),C=D[0],I=D[1],A=(0,o.useState)(!1),z=A[0],B=A[1],N=(0,l.A)(),L=N.width,R=N.height,W=(0,o.useCallback)((function(e){e.preventDefault(),B(!0)}),[]),F=(0,o.useCallback)((function(e){"Escape"!==e.key&&27!==e.keyCode||(e.stopPropagation(),B(!0))}),[]),H=(0,o.useCallback)((function(){M((function(e){return e+1})),z||B(!0)}),[z]);(0,c.A)("keydown",F,document),(0,c.A)("scroll",H,x),(0,o.useEffect)((function(){I(!0),d(),k.current&&k.current.focus({preventScroll:!0})}),[d]),(0,o.useEffect)((function(){var e=z?setTimeout(a,j):null;return function(){e&&clearTimeout(e)}}),[z,a,j]);var X=b.current||f,U=X.getBoundingClientRect(),G=U.height,Z=U.left,$=U.top,J=U.width,V=function(e){var t=e.isLoaded,n=e.isUnloading,o=e.overlayBgColorEnd,r=e.zoomZindex,i={backgroundColor:e.overlayBgColorStart,transitionDuration:p(e.transitionDuration),zIndex:r};return t&&!n&&(i.backgroundColor=o),i}({isLoaded:C,isUnloading:z,overlayBgColorEnd:h,overlayBgColorStart:v,transitionDuration:j,zoomZindex:T}),Y=function(e){var t=e.height,n=e.innerHeight,o=e.innerWidth,r=e.isLoaded,i=e.isUnloading,a=e.left,s=e.originalTransform,c=e.top,l=e.transitionDuration,f=e.width,d=e.zoomMargin,m=p(l);if(!r||i){var h=(0,u.__spreadArrays)(["scale(1)","translate(0, 0)"],s?[s]:[]).join(" ");return{height:t,left:a,top:c,transform:h,WebkitTransform:h,transitionDuration:m,width:f}}var y=function(e){var t=e.zoomMargin,n=e.innerWidth/(e.width+t),o=e.innerHeight/(e.height+t);return Math.min(n,o)}({height:t,innerWidth:o,innerHeight:n,width:f,zoomMargin:d}),v=(o/2-(a+f/2))/y,b=(n/2-(c+t/2))/y,g=(0,u.__spreadArrays)(["scale("+y+")","translate("+v+"px, "+b+"px)"],s?[s]:[]).join(" ");return{height:t,left:a,top:c,transform:g,WebkitTransform:g,transitionDuration:m,width:f}}({height:G,isLoaded:C,innerHeight:R,innerWidth:L,isUnloading:z,left:Z,originalTransform:X.style.transform,top:$,transitionDuration:j,width:J,zoomMargin:P});return(0,s.createPortal)(r().createElement("div",{"aria-modal":!0,"data-rmiz-overlay":!0,role:"dialog",style:V},r().createElement("div",{"data-rmiz-modal-content":!0,style:Y},t),r().createElement("button",{"aria-label":i,"data-rmiz-btn-close":!0,onClick:W,ref:k})),_)}));const m=(0,o.memo)((function(e){var t=e.children,n=e.closeText,i=void 0===n?"Unzoom image":n,a=e.overlayBgColorEnd,s=void 0===a?"rgba(255, 255, 255, 0.95)":a,c=e.overlayBgColorStart,l=void 0===c?"rgba(255, 255, 255, 0)":c,u=e.portalEl,p=e.openText,f=void 0===p?"Zoom image":p,m=e.scrollableEl,h=e.transitionDuration,y=void 0===h?300:h,v=e.wrapElement,b=void 0===v?"div":v,g=e.wrapStyle,_=e.zoomMargin,w=void 0===_?0:_,x=e.zoomZindex,O=void 0===x?2147483647:x,j=(0,o.useState)(!1),S=j[0],P=j[1],E=(0,o.useState)(!1),T=E[0],k=E[1],M=(0,o.useRef)(null),D=(0,o.useRef)(null),C=(0,o.useCallback)((function(e){S||(e.preventDefault(),P(!0))}),[S]),I=(0,o.useCallback)((function(){k(!0)}),[]),A=(0,o.useCallback)((function(){P(!1),k(!1),D.current&&D.current.focus({preventScroll:!0})}),[]),z=S&&T?"hidden":"visible";return r().createElement(o.StrictMode,null,r().createElement(b,{"data-rmiz-wrap":z,ref:M,style:g},t,r().createElement("button",{"aria-label":f,"data-rmiz-btn-open":!0,onClick:C,ref:D}),"undefined"!=typeof window&&S&&r().createElement(d,{closeText:i,onLoad:I,onUnload:A,overlayBgColorEnd:s,overlayBgColorStart:l,parentRef:M,portalEl:u,scrollableEl:m,transitionDuration:y,zoomMargin:w,zoomZindex:O},t)))}));var h=n(14076);const y=e=>{var{center:t=!0,width:n,alt:o,src:i,className:s}=e,c=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}(e,["center","width","alt","src","className"]);return r().createElement("div",{style:{width:n||"100%"},className:a()(t&&"image_center__6-xCb",s)},r().createElement(m,null,r().createElement(h.BaseImage,Object.assign({fullWidth:!0,alt:o,src:i},c))))};y.__bit_component={id:"teambit.docs/ui/zoomable-image@1.95.0",homepage:"https://bit.dev/teambit/docs/ui/zoomable-image",exported:!0}},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return o.default}});var o=r(n(69285));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.scope/content/scope-overview@1.95.0",homepage:"https://bit.dev/teambit/scope/content/scope-overview",exported:!0}},69285:(e,t,n)=>{"use strict";var o={id:"teambit.scope/content/scope-overview@1.95.0",homepage:"https://bit.dev/teambit/scope/content/scope-overview",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=v,p(n(41594));var r=n(5016),i=n(65682),a=p(n(78199)),s=p(n(37080)),c=p(n(50758)),l=n(62233),u=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign||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},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,o,r=m(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 m(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}p.__bit_component=o,f.__bit_component=o,d.__bit_component=o,m.__bit_component=o;var h={},y="wrapper";function v(e){var t=e.components,n=d(e,u);return(0,r.mdx)(y,f({},h,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{scopeImage:a.default,scopeGraph:s.default,componentTypes:c.default,Image:l.Image},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Scope Overview"),(0,r.mdx)("p",null,"Scope is a server for hosting components. Scopes help teams to share and use each other's components as by preserving team autonomy through versioning, forking, storing dependencies, and collaborate on changes of independent components.\nScopes defines ownership on components, as a single team owns the components exported to scope."),(0,r.mdx)(l.Image,{width:"70%",src:a.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Full stack of functionality"),(0,r.mdx)("p",null,"Scopes host components of any kind, from React, Angular and Node modules, all the way to a frontend apps or microservices. For a scope they are all Bit Components.",(0,r.mdx)("br",{parentName:"p"}),"\n","For example, the ",(0,r.mdx)("a",{parentName:"p",href:"https://bit.dev/teambit/mdx"},"MDX scope"),' contains all components relevant to handling MDX functionality in Bit. It exposes various types of components (or "APIs") to achieve this: Webpack loader, Node modules, React components and even a ',(0,r.mdx)("a",{parentName:"p",href:"/"},"Bit Aspect"),". This makes it easy for other teams to take leverage of MDX, not just as a feature but also as an API for their features."),(0,r.mdx)("p",null,"Scopes support various methods for using components, from adding as dependencies to runtime integrations, allowing the consumer to decide how whats the best solution for their use case."),(0,r.mdx)(l.Image,{width:"70%",src:c.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Team collaboration using components"),(0,r.mdx)("p",null,"Scopes provides visibility to components built by other teams, this is the first step towards better collaboration. Developers can find, use and depend on components by other teams. Instead of reinventing the wheel and rebuilding the same functionality, component visibility drives for collaboration. It is similar to how teams build with microservices and build team communication and collaboration by using each-other's APIs.",(0,r.mdx)("br",{parentName:"p"}),"\n","Moreover, developers can use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," and access to any component's source code and contribute change to collaborate on components."),(0,r.mdx)("p",null,"Bit keeps track on all these dependencies and flows, making team collaboration visible, easy to extend and optimize."),(0,r.mdx)(l.Image,{width:"70%",src:s.default,mdxType:"Image"}),(0,r.mdx)("h2",null,"Distributed and autonomous"),(0,r.mdx)("p",null,"Hosted scopes form a distributed network, where each scope is connected to the other scopes according to component dependencies. Each scope stores not only the components it hosts, but also the dependencies of those components.",(0,r.mdx)("br",{parentName:"p"}),"\n","When you export a component, the scope then does network calls to fetch the dependencies of the component from their respective scopes. This means that each scope becomes autonomous, as it contains all the dependencies needed to its components to run. In turn this makes teams more autonomous, as they can now build and use their components without having to worry about the dependencies."),(0,r.mdx)("p",null,"Scopes use standard HTTP for inner-scope communication, however, when building a network of scopes, you need to ensure scopes are able to connect to one another to fetch dependencies."),(0,r.mdx)("h2",null,"Source of truth"),(0,r.mdx)("p",null,"Scopes become the source of truth for components. Allowing different stakeholders to collaborate and work together from the same, or from different Workspaces.\nComponents can be maintained from multiple Workspaces in parallel, while Scopes are keeping them in sync, merging changes for all ends."),(0,r.mdx)("p",null,(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," can be used to fetch component updates. Using ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit import")," is similar to using ",(0,r.mdx)("inlineCode",{parentName:"p"},"git fetch")," where new objects are being fetched but not checked out in your workspace. "),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit import\n⡃⢐ fetching 143 components from 18 remotes. delta-only: 143, all-history: 0.\n- up to date teambit.community/ui/hero \n- up to date teambit.community/ui/homepage/sections/distribution \n- updated teambit.design/ui/layouts/sections/left-right \n- updated teambit.design/ui/layouts/sections/section-group \n- updated teambit.design/ui/layouts/sections/top-down \n")),(0,r.mdx)("p",null,(0,r.mdx)("inlineCode",{parentName:"p"},"bit export")," is used to share component changes with others. It pushes new objects from a local Workspace to a remote Scope, allowing others to keep in sync with the latest\ncomponent changes."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit export\nexported 8 components successfully to remote scope `community`\n"))))}v.__bit_component=o,v.isMDXComponent=!0},43959:(e,t,n)=>{"use strict";var o={id:"teambit.scope/scope@1.0.311",homepage:"https://bit.cloud/teambit/scope/scope",exported:!0};function r(){const e=i(n(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=o,i.__bit_component=o;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/scope.svg"}));a.__bit_component=o,t.Logo=a},76076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={fullWidth:"image_fullWidth__sELLz"}},50758:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/3a1072c009accd203fa8.png"},37080:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/ccf5ea377e3a1a72829d.png"},78199:(e,t,n)=>{"use strict";e.exports=n.p+"static/images/aef2176d16de53259dad.png"},5016:e=>{"use strict";e.exports=MdxJsReact},41594:e=>{"use strict";e.exports=React},65682:e=>{"use strict";e.exports=TeambitMdxUiMdxScopeContext},7746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>A,__assign:()=>i,__asyncDelegator:()=>S,__asyncGenerator:()=>j,__asyncValues:()=>P,__await:()=>O,__awaiter:()=>m,__classPrivateFieldGet:()=>D,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>C,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>B,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>r,__generator:()=>h,__importDefault:()=>M,__importStar:()=>k,__makeTemplateObject:()=>E,__metadata:()=>d,__param:()=>c,__propKey:()=>p,__read:()=>g,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>w,__values:()=>b,default:()=>N});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function a(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 s(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,o){t(n,o,e)}}function l(e,t,n,o,r,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=o.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?o.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,o.name):{}),f=!1,d=n.length-1;d>=0;d--){var m={};for(var h in o)m[h]="access"===h?{}:o[h];for(var h in o.access)m.access[h]=o.access[h];m.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var y=(0,n[d])("accessor"===c?{get:p.get,set:p.set}:p[l],m);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(p.get=s),(s=a(y.set))&&(p.set=s),(s=a(y.init))&&r.unshift(s)}else(s=a(y))&&("field"===c?r.unshift(s):p[l]=s)}u&&Object.defineProperty(u,o.name,p),f=!0}function u(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))}function h(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var y=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function x(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function j(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),o[Symbol.asyncIterator]=function(){return this},o;function a(e,t){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||s(e,t)}))},t&&(o[e]=t(o[e])))}function s(e,t){try{(n=r[e](t)).value instanceof O?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function S(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:O(e[o](t)),done:!1}:r?r(t):t}:r}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(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)&&y(t,e,n);return T(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function D(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}function C(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function A(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var o,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(void 0===o){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],n&&(r=o)}if("function"!=typeof o)throw new TypeError("Object not disposable.");r&&(o=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:o,async:n})}else n&&e.stack.push({async:!0});return t}var z="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};function B(e){function t(t){e.error=e.hasError?new z(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var o=e.stack.pop();try{var r=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(r).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const N={__extends:r,__assign:i,__rest:a,__decorate:s,__param:c,__metadata:d,__awaiter:m,__generator:h,__createBinding:y,__exportStar:v,__values:b,__read:g,__spread:_,__spreadArrays:w,__spreadArray:x,__await:O,__asyncGenerator:j,__asyncDelegator:S,__asyncValues:P,__makeTemplateObject:E,__importStar:k,__importDefault:M,__classPrivateFieldGet:D,__classPrivateFieldSet:C,__classPrivateFieldIn:I,__addDisposableResource:A,__disposeResources:B}}},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.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})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var o={};return(()=>{"use strict";n.r(o),n.d(o,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>d});var e={};n.r(e),n.d(e,{default:()=>p});var t=n(43959),r=(n(41594),n(5016)),i=n(65682),a=n(5702),s=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(null,arguments)}var l={},u="wrapper";function p(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return(0,r.mdx)(u,c({},l,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{ScopeOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,r.mdx)(a.Ay,{mdxType:"ScopeOverview"})))}p.isMDXComponent=!0;const f=[t],d=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),o})()));
@@ -100,7 +100,7 @@
100
100
  "_legacy": {
101
101
  "scope": "teambit.scope",
102
102
  "name": "scope",
103
- "version": "1.0.310"
103
+ "version": "1.0.311"
104
104
  },
105
105
  "_scope": "teambit.scope"
106
106
  }
@@ -193,7 +193,7 @@
193
193
  "_legacy": {
194
194
  "scope": "teambit.scope",
195
195
  "name": "scope",
196
- "version": "1.0.310"
196
+ "version": "1.0.311"
197
197
  },
198
198
  "_scope": "teambit.scope"
199
199
  }
@@ -2126,7 +2126,8 @@
2126
2126
  "character": 3
2127
2127
  },
2128
2128
  "raw": "/**\n * register to the post-export slot.\n */",
2129
- "comment": "register to the post-export slot."
2129
+ "comment": "register to the post-export slot.",
2130
+ "tags": []
2130
2131
  },
2131
2132
  "signature": "(method) ScopeMain.onPostPut(postPutFn: OnPostPut): this",
2132
2133
  "name": "onPostPut",
@@ -2179,7 +2180,8 @@
2179
2180
  "character": 3
2180
2181
  },
2181
2182
  "raw": "/**\n * register to the post-delete slot.\n */",
2182
- "comment": "register to the post-delete slot."
2183
+ "comment": "register to the post-delete slot.",
2184
+ "tags": []
2183
2185
  },
2184
2186
  "signature": "(method) ScopeMain.onPostDelete(postDeleteFn: OnPostDelete): this",
2185
2187
  "name": "onPostDelete",
@@ -2232,7 +2234,8 @@
2232
2234
  "character": 3
2233
2235
  },
2234
2236
  "raw": "/**\n * register to the post-export slot.\n */",
2235
- "comment": "register to the post-export slot."
2237
+ "comment": "register to the post-export slot.",
2238
+ "tags": []
2236
2239
  },
2237
2240
  "signature": "(method) ScopeMain.registerOnPostExport(postExportFn: OnPostExport): this",
2238
2241
  "name": "registerOnPostExport",
@@ -2414,7 +2417,8 @@
2414
2417
  "character": 3
2415
2418
  },
2416
2419
  "raw": "/**\n * Will fetch a list of components into the current scope.\n * This will only fetch the object and won't write the files to the actual FS\n */",
2417
- "comment": "Will fetch a list of components into the current scope.\nThis will only fetch the object and won't write the files to the actual FS"
2420
+ "comment": "Will fetch a list of components into the current scope.\nThis will only fetch the object and won't write the files to the actual FS",
2421
+ "tags": []
2418
2422
  },
2419
2423
  "signature": "(method) ScopeMain.fetch(ids: ComponentIdList): void",
2420
2424
  "name": "fetch",
@@ -2741,7 +2745,8 @@
2741
2745
  "character": 3
2742
2746
  },
2743
2747
  "raw": "/**\n * for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n * 1. scope-index (.bit/index.json file).\n * 2. remote-refs (.bit/refs/*).\n * 3. global config. so for example if a user logs in or out it would be reflected.\n * it's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\n * Because these data are kept in memory, they're not up to date anymore.\n */",
2744
- "comment": "for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n1. scope-index (.bit/index.json file).\n2. remote-refs (.bit/refs/*).\n3. global config. so for example if a user logs in or out it would be reflected.\nit's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\nBecause these data are kept in memory, they're not up to date anymore."
2748
+ "comment": "for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n1. scope-index (.bit/index.json file).\n2. remote-refs (.bit/refs/*).\n3. global config. so for example if a user logs in or out it would be reflected.\nit's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\nBecause these data are kept in memory, they're not up to date anymore.",
2749
+ "tags": []
2745
2750
  },
2746
2751
  "signature": "(method) ScopeMain.watchScopeInternalFiles(): Promise<void>",
2747
2752
  "name": "watchScopeInternalFiles",
@@ -3088,7 +3093,8 @@
3088
3093
  "character": 3
3089
3094
  },
3090
3095
  "raw": "/**\n * import components into the scope.\n */",
3091
- "comment": "import components into the scope."
3096
+ "comment": "import components into the scope.",
3097
+ "tags": []
3092
3098
  },
3093
3099
  "signature": "(method) ScopeMain.import(ids: ComponentID[], { useCache, reFetchUnBuiltVersion, preferDependencyGraph, lane, reason, }?: {\n useCache?: boolean;\n reFetchUnBuiltVersion?: boolean;\n lane?: Lane;\n preferDependencyGraph?: boolean;\n reason?: string;\n}): Promise<void>",
3094
3100
  "name": "import",
@@ -3157,7 +3163,8 @@
3157
3163
  "character": 7
3158
3164
  },
3159
3165
  "raw": "/**\n * if the component exists locally, don't go to the server to search for updates.\n */",
3160
- "comment": "if the component exists locally, don't go to the server to search for updates."
3166
+ "comment": "if the component exists locally, don't go to the server to search for updates.",
3167
+ "tags": []
3161
3168
  },
3162
3169
  "signature": "(property) useCache?: boolean | undefined",
3163
3170
  "name": "useCache",
@@ -3187,7 +3194,8 @@
3187
3194
  "character": 7
3188
3195
  },
3189
3196
  "raw": "/**\n * if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\n * whether the version was already built there.\n */",
3190
- "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there."
3197
+ "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there.",
3198
+ "tags": []
3191
3199
  },
3192
3200
  "signature": "(property) reFetchUnBuiltVersion?: boolean | undefined",
3193
3201
  "name": "reFetchUnBuiltVersion",
@@ -3217,7 +3225,8 @@
3217
3225
  "character": 7
3218
3226
  },
3219
3227
  "raw": "/**\n * if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\n * not from the component-scope.\n */",
3220
- "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope."
3228
+ "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope.",
3229
+ "tags": []
3221
3230
  },
3222
3231
  "signature": "(property) lane?: Lane | undefined",
3223
3232
  "name": "lane",
@@ -3248,7 +3257,8 @@
3248
3257
  "character": 7
3249
3258
  },
3250
3259
  "raw": "/**\n * if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies\n */",
3251
- "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies"
3260
+ "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies",
3261
+ "tags": []
3252
3262
  },
3253
3263
  "signature": "(property) preferDependencyGraph?: boolean | undefined",
3254
3264
  "name": "preferDependencyGraph",
@@ -3278,7 +3288,8 @@
3278
3288
  "character": 7
3279
3289
  },
3280
3290
  "raw": "/**\n * reason why this import is needed (to show in the terminal)\n */",
3281
- "comment": "reason why this import is needed (to show in the terminal)"
3291
+ "comment": "reason why this import is needed (to show in the terminal)",
3292
+ "tags": []
3282
3293
  },
3283
3294
  "signature": "(property) reason?: string | undefined",
3284
3295
  "name": "reason",
@@ -3313,7 +3324,8 @@
3313
3324
  "character": 7
3314
3325
  },
3315
3326
  "raw": "/**\n * if the component exists locally, don't go to the server to search for updates.\n */",
3316
- "comment": "if the component exists locally, don't go to the server to search for updates."
3327
+ "comment": "if the component exists locally, don't go to the server to search for updates.",
3328
+ "tags": []
3317
3329
  },
3318
3330
  "signature": "(property) useCache?: boolean | undefined",
3319
3331
  "name": "useCache",
@@ -3343,7 +3355,8 @@
3343
3355
  "character": 7
3344
3356
  },
3345
3357
  "raw": "/**\n * if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\n * whether the version was already built there.\n */",
3346
- "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there."
3358
+ "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there.",
3359
+ "tags": []
3347
3360
  },
3348
3361
  "signature": "(property) reFetchUnBuiltVersion?: boolean | undefined",
3349
3362
  "name": "reFetchUnBuiltVersion",
@@ -3373,7 +3386,8 @@
3373
3386
  "character": 7
3374
3387
  },
3375
3388
  "raw": "/**\n * if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies\n */",
3376
- "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies"
3389
+ "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies",
3390
+ "tags": []
3377
3391
  },
3378
3392
  "signature": "(property) preferDependencyGraph?: boolean | undefined",
3379
3393
  "name": "preferDependencyGraph",
@@ -3403,7 +3417,8 @@
3403
3417
  "character": 7
3404
3418
  },
3405
3419
  "raw": "/**\n * if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\n * not from the component-scope.\n */",
3406
- "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope."
3420
+ "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope.",
3421
+ "tags": []
3407
3422
  },
3408
3423
  "signature": "(property) lane?: Lane | undefined",
3409
3424
  "name": "lane",
@@ -3434,7 +3449,8 @@
3434
3449
  "character": 7
3435
3450
  },
3436
3451
  "raw": "/**\n * reason why this import is needed (to show in the terminal)\n */",
3437
- "comment": "reason why this import is needed (to show in the terminal)"
3452
+ "comment": "reason why this import is needed (to show in the terminal)",
3453
+ "tags": []
3438
3454
  },
3439
3455
  "signature": "(property) reason?: string | undefined",
3440
3456
  "name": "reason",
@@ -3677,7 +3693,8 @@
3677
3693
  "character": 3
3678
3694
  },
3679
3695
  "raw": "/**\n * get a component from a remote without importing it\n */",
3680
- "comment": "get a component from a remote without importing it"
3696
+ "comment": "get a component from a remote without importing it",
3697
+ "tags": []
3681
3698
  },
3682
3699
  "signature": "(method) ScopeMain.getRemoteComponent(id: ComponentID): Promise<Component>",
3683
3700
  "name": "getRemoteComponent",
@@ -3751,7 +3768,8 @@
3751
3768
  "character": 3
3752
3769
  },
3753
3770
  "raw": "/**\n * get a component from a remote without importing it\n */",
3754
- "comment": "get a component from a remote without importing it"
3771
+ "comment": "get a component from a remote without importing it",
3772
+ "tags": []
3755
3773
  },
3756
3774
  "signature": "(method) ScopeMain.getManyRemoteComponents(ids: ComponentID[]): Promise<Component[]>",
3757
3775
  "name": "getManyRemoteComponents",
@@ -3841,7 +3859,8 @@
3841
3859
  "character": 3
3842
3860
  },
3843
3861
  "raw": "/**\n * list all components in the scope.\n */",
3844
- "comment": "list all components in the scope."
3862
+ "comment": "list all components in the scope.",
3863
+ "tags": []
3845
3864
  },
3846
3865
  "signature": "(method) ScopeMain.list(filter?: {\n offset: number;\n limit: number;\n namespaces?: string[];\n}, includeCache?: boolean, includeFromLanes?: boolean, includeDeleted?: boolean): Promise<Component[]>",
3847
3866
  "name": "list",
@@ -4050,7 +4069,8 @@
4050
4069
  "character": 3
4051
4070
  },
4052
4071
  "raw": "/**\n * for now, list of invalid components are mostly useful for the workspace.\n * in the future, this can return components that failed to load in the scope due to objects file\n * corruption or similar issues.\n */",
4053
- "comment": "for now, list of invalid components are mostly useful for the workspace.\nin the future, this can return components that failed to load in the scope due to objects file\ncorruption or similar issues."
4072
+ "comment": "for now, list of invalid components are mostly useful for the workspace.\nin the future, this can return components that failed to load in the scope due to objects file\ncorruption or similar issues.",
4073
+ "tags": []
4054
4074
  },
4055
4075
  "signature": "(method) ScopeMain.listInvalid(): Promise<never[]>",
4056
4076
  "name": "listInvalid",
@@ -4408,7 +4428,8 @@
4408
4428
  "character": 3
4409
4429
  },
4410
4430
  "raw": "/**\n * determine whether a component exists in the scope.\n */",
4411
- "comment": "determine whether a component exists in the scope."
4431
+ "comment": "determine whether a component exists in the scope.",
4432
+ "tags": []
4412
4433
  },
4413
4434
  "signature": "(method) ScopeMain.exists(modelComponent: ModelComponent): boolean",
4414
4435
  "name": "exists",
@@ -4562,7 +4583,8 @@
4562
4583
  "character": 3
4563
4584
  },
4564
4585
  "raw": "/**\n * important! you probably want to use `getMany`, which returns the components from the scope.\n * this method loads all aspects of the loaded components. (which hurts performance)\n */",
4565
- "comment": "important! you probably want to use `getMany`, which returns the components from the scope.\nthis method loads all aspects of the loaded components. (which hurts performance)"
4586
+ "comment": "important! you probably want to use `getMany`, which returns the components from the scope.\nthis method loads all aspects of the loaded components. (which hurts performance)",
4587
+ "tags": []
4566
4588
  },
4567
4589
  "signature": "(method) ScopeMain.loadMany(ids: ComponentID[], lane?: Lane, opts?: LoadOptions): Promise<Component[]>",
4568
4590
  "name": "loadMany",
@@ -5084,7 +5106,8 @@
5084
5106
  "character": 3
5085
5107
  },
5086
5108
  "raw": "/**\n * get component log sorted by the timestamp in ascending order (from the earliest to the latest)\n */",
5087
- "comment": "get component log sorted by the timestamp in ascending order (from the earliest to the latest)"
5109
+ "comment": "get component log sorted by the timestamp in ascending order (from the earliest to the latest)",
5110
+ "tags": []
5088
5111
  },
5089
5112
  "signature": "(method) ScopeMain.getLogs(id: ComponentID, shortHash?: boolean, startsFrom?: string): Promise<ComponentLog[]>",
5090
5113
  "name": "getLogs",
@@ -5226,7 +5249,8 @@
5226
5249
  "character": 3
5227
5250
  },
5228
5251
  "raw": "/**\n * whether a component is soft-removed.\n * the version is required as it can be removed on a lane. in which case, the version is the head in the lane.\n */",
5229
- "comment": "whether a component is soft-removed.\nthe version is required as it can be removed on a lane. in which case, the version is the head in the lane."
5252
+ "comment": "whether a component is soft-removed.\nthe version is required as it can be removed on a lane. in which case, the version is the head in the lane.",
5253
+ "tags": []
5230
5254
  },
5231
5255
  "signature": "(method) ScopeMain.isComponentRemoved(id: ComponentID): Promise<Boolean>",
5232
5256
  "name": "isComponentRemoved",
@@ -5296,7 +5320,8 @@
5296
5320
  "character": 3
5297
5321
  },
5298
5322
  "raw": "/**\n * whether the id with the specified version exits in the local scope.\n */",
5299
- "comment": "whether the id with the specified version exits in the local scope."
5323
+ "comment": "whether the id with the specified version exits in the local scope.",
5324
+ "tags": []
5300
5325
  },
5301
5326
  "signature": "(method) ScopeMain.isComponentInScope(id: ComponentID): Promise<boolean>",
5302
5327
  "name": "isComponentInScope",
@@ -5580,6 +5605,7 @@
5580
5605
  "character": 3
5581
5606
  },
5582
5607
  "raw": "/**\n * @deprecated use `this.idsByPattern` instead for consistency, which supports also negation and list of patterns.\n */",
5608
+ "comment": "",
5583
5609
  "tags": [
5584
5610
  {
5585
5611
  "__schema": "TagSchema",
@@ -5697,7 +5723,8 @@
5697
5723
  "character": 3
5698
5724
  },
5699
5725
  "raw": "/**\n * get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\n * it uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n * (among others) negate character \"!\" to exclude ids. See the package page for more supported characters.\n */",
5700
- "comment": "get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\nit uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n(among others) negate character \"!\" to exclude ids. See the package page for more supported characters."
5726
+ "comment": "get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\nit uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n(among others) negate character \"!\" to exclude ids. See the package page for more supported characters.",
5727
+ "tags": []
5701
5728
  },
5702
5729
  "signature": "(method) ScopeMain.idsByPattern(pattern: string, throwForNoMatch?: boolean): Promise<ComponentID[]>",
5703
5730
  "name": "idsByPattern",
@@ -6450,6 +6477,7 @@
6450
6477
  "character": 3
6451
6478
  },
6452
6479
  "raw": "/**\n * @deprecated use `this.resolveComponentId` instead.\n */",
6480
+ "comment": "",
6453
6481
  "tags": [
6454
6482
  {
6455
6483
  "__schema": "TagSchema",
@@ -6566,7 +6594,8 @@
6566
6594
  "character": 3
6567
6595
  },
6568
6596
  "raw": "/**\n * list all component ids from a remote-scope\n */",
6569
- "comment": "list all component ids from a remote-scope"
6597
+ "comment": "list all component ids from a remote-scope",
6598
+ "tags": []
6570
6599
  },
6571
6600
  "signature": "(method) ScopeMain.listRemoteScope(scopeName: string): Promise<ComponentID[]>",
6572
6601
  "name": "listRemoteScope",
@@ -6724,7 +6753,8 @@
6724
6753
  "character": 3
6725
6754
  },
6726
6755
  "raw": "/**\n * ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\n * It has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc.\n */",
6727
- "comment": "ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\nIt has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc."
6756
+ "comment": "ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\nIt has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc.",
6757
+ "tags": []
6728
6758
  },
6729
6759
  "signature": "(method) ScopeMain.getBitObjectModelComponent(id: ComponentID, throwIfNotExist?: boolean): Promise<ModelComponent | undefined>",
6730
6760
  "name": "getBitObjectModelComponent",
@@ -6835,7 +6865,8 @@
6835
6865
  "character": 3
6836
6866
  },
6837
6867
  "raw": "/**\n * Version BitObject holds the data of the source files and build artifacts of a specific snap/tag.\n */",
6838
- "comment": "Version BitObject holds the data of the source files and build artifacts of a specific snap/tag."
6868
+ "comment": "Version BitObject holds the data of the source files and build artifacts of a specific snap/tag.",
6869
+ "tags": []
6839
6870
  },
6840
6871
  "signature": "(method) ScopeMain.getBitObjectVersion(modelComponent: ModelComponent, version: string, throwIfNotExist?: boolean): Promise<Version | undefined>",
6841
6872
  "name": "getBitObjectVersion",
@@ -7063,7 +7094,8 @@
7063
7094
  "character": 3
7064
7095
  },
7065
7096
  "raw": "/**\n * get a component and load its aspect\n */",
7066
- "comment": "get a component and load its aspect"
7097
+ "comment": "get a component and load its aspect",
7098
+ "tags": []
7067
7099
  },
7068
7100
  "signature": "(method) ScopeMain.load(id: ComponentID, lane?: Lane, opts?: LoadOptions): Promise<Component | undefined>",
7069
7101
  "name": "load",
@@ -7636,7 +7668,8 @@
7636
7668
  "character": 3
7637
7669
  },
7638
7670
  "raw": "/**\n * declare the slots of scope extension.\n */",
7639
- "comment": "declare the slots of scope extension."
7671
+ "comment": "declare the slots of scope extension.",
7672
+ "tags": []
7640
7673
  },
7641
7674
  "signature": "(property) ScopeMain.slots: (((registerFn: () => string) => SlotRegistry<OnPostPut>) | ((registerFn: () => string) => SlotRegistry<OnPostObjectsPersist>) | ((registerFn: () => string) => SlotRegistry<...>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
7642
7675
  "name": "slots",
@@ -8056,7 +8089,7 @@
8056
8089
  "_legacy": {
8057
8090
  "scope": "teambit.scope",
8058
8091
  "name": "scope",
8059
- "version": "1.0.310"
8092
+ "version": "1.0.311"
8060
8093
  },
8061
8094
  "_scope": "teambit.scope"
8062
8095
  }
@@ -9040,7 +9073,8 @@
9040
9073
  "character": 3
9041
9074
  },
9042
9075
  "raw": "/**\n * register a new badge into the scope overview.\n */",
9043
- "comment": "register a new badge into the scope overview."
9076
+ "comment": "register a new badge into the scope overview.",
9077
+ "tags": []
9044
9078
  },
9045
9079
  "signature": "(method) ScopeUI.registerBadge(...badges: ScopeBadge[]): this",
9046
9080
  "name": "registerBadge",
@@ -9143,7 +9177,8 @@
9143
9177
  "character": 3
9144
9178
  },
9145
9179
  "raw": "/**\n * register a new line beneath the scope overview section.\n */",
9146
- "comment": "register a new line beneath the scope overview section."
9180
+ "comment": "register a new line beneath the scope overview section.",
9181
+ "tags": []
9147
9182
  },
9148
9183
  "signature": "(method) ScopeUI.registerOverviewLine(...lines: OverviewLine[]): this",
9149
9184
  "name": "registerOverviewLine",
@@ -9204,7 +9239,8 @@
9204
9239
  "character": 3
9205
9240
  },
9206
9241
  "raw": "/**\n * register a route to the scope.\n */",
9207
- "comment": "register a route to the scope."
9242
+ "comment": "register a route to the scope.",
9243
+ "tags": []
9208
9244
  },
9209
9245
  "signature": "(method) ScopeUI.registerRoutes(routes: RouteProps[]): this",
9210
9246
  "name": "registerRoutes",
@@ -9452,7 +9488,8 @@
9452
9488
  "character": 3
9453
9489
  },
9454
9490
  "raw": "/**\n * register a scope overview.\n */",
9455
- "comment": "register a scope overview."
9491
+ "comment": "register a scope overview.",
9492
+ "tags": []
9456
9493
  },
9457
9494
  "signature": "(method) ScopeUI.replaceOverview(): void",
9458
9495
  "name": "replaceOverview",
@@ -9483,7 +9520,8 @@
9483
9520
  "character": 3
9484
9521
  },
9485
9522
  "raw": "/**\n * register description.\n */",
9486
- "comment": "register description."
9523
+ "comment": "register description.",
9524
+ "tags": []
9487
9525
  },
9488
9526
  "signature": "(method) ScopeUI.replaceDescription(): void",
9489
9527
  "name": "replaceDescription",
@@ -9514,7 +9552,8 @@
9514
9552
  "character": 3
9515
9553
  },
9516
9554
  "raw": "/**\n * register metadata section.\n */",
9517
- "comment": "register metadata section."
9555
+ "comment": "register metadata section.",
9556
+ "tags": []
9518
9557
  },
9519
9558
  "signature": "(method) ScopeUI.replaceMetadataSection(): void",
9520
9559
  "name": "replaceMetadataSection",
@@ -9545,7 +9584,8 @@
9545
9584
  "character": 3
9546
9585
  },
9547
9586
  "raw": "/**\n * register a metadata item.\n */",
9548
- "comment": "register a metadata item."
9587
+ "comment": "register a metadata item.",
9588
+ "tags": []
9549
9589
  },
9550
9590
  "signature": "(method) ScopeUI.registerMetadataItem(): void",
9551
9591
  "name": "registerMetadataItem",
@@ -9597,7 +9637,8 @@
9597
9637
  "character": 3
9598
9638
  },
9599
9639
  "raw": "/**\n * register metadata.\n */",
9600
- "comment": "register metadata."
9640
+ "comment": "register metadata.",
9641
+ "tags": []
9601
9642
  },
9602
9643
  "signature": "(method) ScopeUI.registerMetadata(): void",
9603
9644
  "name": "registerMetadata",
@@ -9628,7 +9669,8 @@
9628
9669
  "character": 3
9629
9670
  },
9630
9671
  "raw": "/**\n * add a new context to the scope.\n */",
9631
- "comment": "add a new context to the scope."
9672
+ "comment": "add a new context to the scope.",
9673
+ "tags": []
9632
9674
  },
9633
9675
  "signature": "(method) ScopeUI.addContext(...context: ScopeContextType[]): this",
9634
9676
  "name": "addContext",
@@ -9710,7 +9752,8 @@
9710
9752
  "character": 3
9711
9753
  },
9712
9754
  "raw": "/**\n * register a sidebar Widget for the scope\n */",
9713
- "comment": "register a sidebar Widget for the scope"
9755
+ "comment": "register a sidebar Widget for the scope",
9756
+ "tags": []
9714
9757
  },
9715
9758
  "signature": "(property) ScopeUI.registerSidebarWidget: (componentTreeNodes: ComponentTreeNode[]) => this",
9716
9759
  "name": "registerSidebarWidget",
@@ -9741,7 +9784,8 @@
9741
9784
  "character": 3
9742
9785
  },
9743
9786
  "raw": "/**\n * register a sidebar link to the section above the drawers\n */",
9744
- "comment": "register a sidebar link to the section above the drawers"
9787
+ "comment": "register a sidebar link to the section above the drawers",
9788
+ "tags": []
9745
9789
  },
9746
9790
  "signature": "(property) ScopeUI.registerSidebarLink: (...links: SidebarItem[]) => void",
9747
9791
  "name": "registerSidebarLink",
@@ -9793,7 +9837,8 @@
9793
9837
  "character": 3
9794
9838
  },
9795
9839
  "raw": "/**\n * register component filters\n */",
9796
- "comment": "register component filters"
9840
+ "comment": "register component filters",
9841
+ "tags": []
9797
9842
  },
9798
9843
  "signature": "(property) ScopeUI.registerDrawerComponentFilters: (filters: ComponentFilters) => void",
9799
9844
  "name": "registerDrawerComponentFilters",
@@ -10219,7 +10264,8 @@
10219
10264
  "character": 3
10220
10265
  },
10221
10266
  "raw": "/** registers available components */",
10222
- "comment": "registers available components"
10267
+ "comment": "registers available components",
10268
+ "tags": []
10223
10269
  },
10224
10270
  "signature": "(property) ScopeUI.setComponents: (components: ComponentModel[]) => void",
10225
10271
  "name": "setComponents",
@@ -10924,7 +10970,7 @@
10924
10970
  "_legacy": {
10925
10971
  "scope": "teambit.scope",
10926
10972
  "name": "scope",
10927
- "version": "1.0.310"
10973
+ "version": "1.0.311"
10928
10974
  },
10929
10975
  "_scope": "teambit.scope"
10930
10976
  }
@@ -11877,7 +11923,8 @@
11877
11923
  "character": 3
11878
11924
  },
11879
11925
  "raw": "/**\n * In case the component we are loading is app, whether to load it as app (in a scope aspects capsule)\n */",
11880
- "comment": "In case the component we are loading is app, whether to load it as app (in a scope aspects capsule)"
11926
+ "comment": "In case the component we are loading is app, whether to load it as app (in a scope aspects capsule)",
11927
+ "tags": []
11881
11928
  },
11882
11929
  "signature": "(property) loadApps?: boolean | undefined",
11883
11930
  "name": "loadApps",
@@ -11907,7 +11954,8 @@
11907
11954
  "character": 3
11908
11955
  },
11909
11956
  "raw": "/**\n * In case the component we are loading is env, whether to load it as env (in a scope aspects capsule)\n */",
11910
- "comment": "In case the component we are loading is env, whether to load it as env (in a scope aspects capsule)"
11957
+ "comment": "In case the component we are loading is env, whether to load it as env (in a scope aspects capsule)",
11958
+ "tags": []
11911
11959
  },
11912
11960
  "signature": "(property) loadEnvs?: boolean | undefined",
11913
11961
  "name": "loadEnvs",
@@ -12037,7 +12085,8 @@
12037
12085
  "character": 3
12038
12086
  },
12039
12087
  "raw": "/**\n * Set a different package manager for the aspects capsules\n */",
12040
- "comment": "Set a different package manager for the aspects capsules"
12088
+ "comment": "Set a different package manager for the aspects capsules",
12089
+ "tags": []
12041
12090
  },
12042
12091
  "signature": "(property) aspectsPackageManager?: string | undefined",
12043
12092
  "name": "aspectsPackageManager",
@@ -12067,7 +12116,8 @@
12067
12116
  "character": 3
12068
12117
  },
12069
12118
  "raw": "/**\n * Set a different node linker for the aspects capsules\n */",
12070
- "comment": "Set a different node linker for the aspects capsules"
12119
+ "comment": "Set a different node linker for the aspects capsules",
12120
+ "tags": []
12071
12121
  },
12072
12122
  "signature": "(property) aspectsNodeLinker?: NodeLinker | undefined",
12073
12123
  "name": "aspectsNodeLinker",
@@ -13926,7 +13976,8 @@
13926
13976
  "character": 3
13927
13977
  },
13928
13978
  "raw": "/**\n * register to the post-export slot.\n */",
13929
- "comment": "register to the post-export slot."
13979
+ "comment": "register to the post-export slot.",
13980
+ "tags": []
13930
13981
  },
13931
13982
  "signature": "(method) ScopeMain.onPostPut(postPutFn: OnPostPut): this",
13932
13983
  "name": "onPostPut",
@@ -13979,7 +14030,8 @@
13979
14030
  "character": 3
13980
14031
  },
13981
14032
  "raw": "/**\n * register to the post-delete slot.\n */",
13982
- "comment": "register to the post-delete slot."
14033
+ "comment": "register to the post-delete slot.",
14034
+ "tags": []
13983
14035
  },
13984
14036
  "signature": "(method) ScopeMain.onPostDelete(postDeleteFn: OnPostDelete): this",
13985
14037
  "name": "onPostDelete",
@@ -14032,7 +14084,8 @@
14032
14084
  "character": 3
14033
14085
  },
14034
14086
  "raw": "/**\n * register to the post-export slot.\n */",
14035
- "comment": "register to the post-export slot."
14087
+ "comment": "register to the post-export slot.",
14088
+ "tags": []
14036
14089
  },
14037
14090
  "signature": "(method) ScopeMain.registerOnPostExport(postExportFn: OnPostExport): this",
14038
14091
  "name": "registerOnPostExport",
@@ -14214,7 +14267,8 @@
14214
14267
  "character": 3
14215
14268
  },
14216
14269
  "raw": "/**\n * Will fetch a list of components into the current scope.\n * This will only fetch the object and won't write the files to the actual FS\n */",
14217
- "comment": "Will fetch a list of components into the current scope.\nThis will only fetch the object and won't write the files to the actual FS"
14270
+ "comment": "Will fetch a list of components into the current scope.\nThis will only fetch the object and won't write the files to the actual FS",
14271
+ "tags": []
14218
14272
  },
14219
14273
  "signature": "(method) ScopeMain.fetch(ids: ComponentIdList): void",
14220
14274
  "name": "fetch",
@@ -14541,7 +14595,8 @@
14541
14595
  "character": 3
14542
14596
  },
14543
14597
  "raw": "/**\n * for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n * 1. scope-index (.bit/index.json file).\n * 2. remote-refs (.bit/refs/*).\n * 3. global config. so for example if a user logs in or out it would be reflected.\n * it's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\n * Because these data are kept in memory, they're not up to date anymore.\n */",
14544
- "comment": "for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n1. scope-index (.bit/index.json file).\n2. remote-refs (.bit/refs/*).\n3. global config. so for example if a user logs in or out it would be reflected.\nit's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\nBecause these data are kept in memory, they're not up to date anymore."
14598
+ "comment": "for long-running processes, such as `bit start` or `bit watch`, it's important to keep the following data up to date:\n1. scope-index (.bit/index.json file).\n2. remote-refs (.bit/refs/*).\n3. global config. so for example if a user logs in or out it would be reflected.\nit's possible that other commands (e.g. `bit import`) modified these files, while these processes are running.\nBecause these data are kept in memory, they're not up to date anymore.",
14599
+ "tags": []
14545
14600
  },
14546
14601
  "signature": "(method) ScopeMain.watchScopeInternalFiles(): Promise<void>",
14547
14602
  "name": "watchScopeInternalFiles",
@@ -14888,7 +14943,8 @@
14888
14943
  "character": 3
14889
14944
  },
14890
14945
  "raw": "/**\n * import components into the scope.\n */",
14891
- "comment": "import components into the scope."
14946
+ "comment": "import components into the scope.",
14947
+ "tags": []
14892
14948
  },
14893
14949
  "signature": "(method) ScopeMain.import(ids: ComponentID[], { useCache, reFetchUnBuiltVersion, preferDependencyGraph, lane, reason, }?: {\n useCache?: boolean;\n reFetchUnBuiltVersion?: boolean;\n lane?: Lane;\n preferDependencyGraph?: boolean;\n reason?: string;\n}): Promise<void>",
14894
14950
  "name": "import",
@@ -14957,7 +15013,8 @@
14957
15013
  "character": 7
14958
15014
  },
14959
15015
  "raw": "/**\n * if the component exists locally, don't go to the server to search for updates.\n */",
14960
- "comment": "if the component exists locally, don't go to the server to search for updates."
15016
+ "comment": "if the component exists locally, don't go to the server to search for updates.",
15017
+ "tags": []
14961
15018
  },
14962
15019
  "signature": "(property) useCache?: boolean | undefined",
14963
15020
  "name": "useCache",
@@ -14987,7 +15044,8 @@
14987
15044
  "character": 7
14988
15045
  },
14989
15046
  "raw": "/**\n * if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\n * whether the version was already built there.\n */",
14990
- "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there."
15047
+ "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there.",
15048
+ "tags": []
14991
15049
  },
14992
15050
  "signature": "(property) reFetchUnBuiltVersion?: boolean | undefined",
14993
15051
  "name": "reFetchUnBuiltVersion",
@@ -15017,7 +15075,8 @@
15017
15075
  "character": 7
15018
15076
  },
15019
15077
  "raw": "/**\n * if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\n * not from the component-scope.\n */",
15020
- "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope."
15078
+ "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope.",
15079
+ "tags": []
15021
15080
  },
15022
15081
  "signature": "(property) lane?: Lane | undefined",
15023
15082
  "name": "lane",
@@ -15048,7 +15107,8 @@
15048
15107
  "character": 7
15049
15108
  },
15050
15109
  "raw": "/**\n * if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies\n */",
15051
- "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies"
15110
+ "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies",
15111
+ "tags": []
15052
15112
  },
15053
15113
  "signature": "(property) preferDependencyGraph?: boolean | undefined",
15054
15114
  "name": "preferDependencyGraph",
@@ -15078,7 +15138,8 @@
15078
15138
  "character": 7
15079
15139
  },
15080
15140
  "raw": "/**\n * reason why this import is needed (to show in the terminal)\n */",
15081
- "comment": "reason why this import is needed (to show in the terminal)"
15141
+ "comment": "reason why this import is needed (to show in the terminal)",
15142
+ "tags": []
15082
15143
  },
15083
15144
  "signature": "(property) reason?: string | undefined",
15084
15145
  "name": "reason",
@@ -15113,7 +15174,8 @@
15113
15174
  "character": 7
15114
15175
  },
15115
15176
  "raw": "/**\n * if the component exists locally, don't go to the server to search for updates.\n */",
15116
- "comment": "if the component exists locally, don't go to the server to search for updates."
15177
+ "comment": "if the component exists locally, don't go to the server to search for updates.",
15178
+ "tags": []
15117
15179
  },
15118
15180
  "signature": "(property) useCache?: boolean | undefined",
15119
15181
  "name": "useCache",
@@ -15143,7 +15205,8 @@
15143
15205
  "character": 7
15144
15206
  },
15145
15207
  "raw": "/**\n * if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\n * whether the version was already built there.\n */",
15146
- "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there."
15208
+ "comment": "if the Version objects exists locally, but its `buildStatus` is Pending or Failed, reach the remote to find\nwhether the version was already built there.",
15209
+ "tags": []
15147
15210
  },
15148
15211
  "signature": "(property) reFetchUnBuiltVersion?: boolean | undefined",
15149
15212
  "name": "reFetchUnBuiltVersion",
@@ -15173,7 +15236,8 @@
15173
15236
  "character": 7
15174
15237
  },
15175
15238
  "raw": "/**\n * if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies\n */",
15176
- "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies"
15239
+ "comment": "if an external is missing and the remote has it with the dependency graph, don't fetch all its dependencies",
15240
+ "tags": []
15177
15241
  },
15178
15242
  "signature": "(property) preferDependencyGraph?: boolean | undefined",
15179
15243
  "name": "preferDependencyGraph",
@@ -15203,7 +15267,8 @@
15203
15267
  "character": 7
15204
15268
  },
15205
15269
  "raw": "/**\n * if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\n * not from the component-scope.\n */",
15206
- "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope."
15270
+ "comment": "if the component is on a lane, provide the lane object. the component will be fetched from the lane-scope and\nnot from the component-scope.",
15271
+ "tags": []
15207
15272
  },
15208
15273
  "signature": "(property) lane?: Lane | undefined",
15209
15274
  "name": "lane",
@@ -15234,7 +15299,8 @@
15234
15299
  "character": 7
15235
15300
  },
15236
15301
  "raw": "/**\n * reason why this import is needed (to show in the terminal)\n */",
15237
- "comment": "reason why this import is needed (to show in the terminal)"
15302
+ "comment": "reason why this import is needed (to show in the terminal)",
15303
+ "tags": []
15238
15304
  },
15239
15305
  "signature": "(property) reason?: string | undefined",
15240
15306
  "name": "reason",
@@ -15477,7 +15543,8 @@
15477
15543
  "character": 3
15478
15544
  },
15479
15545
  "raw": "/**\n * get a component from a remote without importing it\n */",
15480
- "comment": "get a component from a remote without importing it"
15546
+ "comment": "get a component from a remote without importing it",
15547
+ "tags": []
15481
15548
  },
15482
15549
  "signature": "(method) ScopeMain.getRemoteComponent(id: ComponentID): Promise<Component>",
15483
15550
  "name": "getRemoteComponent",
@@ -15551,7 +15618,8 @@
15551
15618
  "character": 3
15552
15619
  },
15553
15620
  "raw": "/**\n * get a component from a remote without importing it\n */",
15554
- "comment": "get a component from a remote without importing it"
15621
+ "comment": "get a component from a remote without importing it",
15622
+ "tags": []
15555
15623
  },
15556
15624
  "signature": "(method) ScopeMain.getManyRemoteComponents(ids: ComponentID[]): Promise<Component[]>",
15557
15625
  "name": "getManyRemoteComponents",
@@ -15641,7 +15709,8 @@
15641
15709
  "character": 3
15642
15710
  },
15643
15711
  "raw": "/**\n * list all components in the scope.\n */",
15644
- "comment": "list all components in the scope."
15712
+ "comment": "list all components in the scope.",
15713
+ "tags": []
15645
15714
  },
15646
15715
  "signature": "(method) ScopeMain.list(filter?: {\n offset: number;\n limit: number;\n namespaces?: string[];\n}, includeCache?: boolean, includeFromLanes?: boolean, includeDeleted?: boolean): Promise<Component[]>",
15647
15716
  "name": "list",
@@ -15850,7 +15919,8 @@
15850
15919
  "character": 3
15851
15920
  },
15852
15921
  "raw": "/**\n * for now, list of invalid components are mostly useful for the workspace.\n * in the future, this can return components that failed to load in the scope due to objects file\n * corruption or similar issues.\n */",
15853
- "comment": "for now, list of invalid components are mostly useful for the workspace.\nin the future, this can return components that failed to load in the scope due to objects file\ncorruption or similar issues."
15922
+ "comment": "for now, list of invalid components are mostly useful for the workspace.\nin the future, this can return components that failed to load in the scope due to objects file\ncorruption or similar issues.",
15923
+ "tags": []
15854
15924
  },
15855
15925
  "signature": "(method) ScopeMain.listInvalid(): Promise<never[]>",
15856
15926
  "name": "listInvalid",
@@ -16208,7 +16278,8 @@
16208
16278
  "character": 3
16209
16279
  },
16210
16280
  "raw": "/**\n * determine whether a component exists in the scope.\n */",
16211
- "comment": "determine whether a component exists in the scope."
16281
+ "comment": "determine whether a component exists in the scope.",
16282
+ "tags": []
16212
16283
  },
16213
16284
  "signature": "(method) ScopeMain.exists(modelComponent: ModelComponent): boolean",
16214
16285
  "name": "exists",
@@ -16362,7 +16433,8 @@
16362
16433
  "character": 3
16363
16434
  },
16364
16435
  "raw": "/**\n * important! you probably want to use `getMany`, which returns the components from the scope.\n * this method loads all aspects of the loaded components. (which hurts performance)\n */",
16365
- "comment": "important! you probably want to use `getMany`, which returns the components from the scope.\nthis method loads all aspects of the loaded components. (which hurts performance)"
16436
+ "comment": "important! you probably want to use `getMany`, which returns the components from the scope.\nthis method loads all aspects of the loaded components. (which hurts performance)",
16437
+ "tags": []
16366
16438
  },
16367
16439
  "signature": "(method) ScopeMain.loadMany(ids: ComponentID[], lane?: Lane, opts?: LoadOptions): Promise<Component[]>",
16368
16440
  "name": "loadMany",
@@ -16884,7 +16956,8 @@
16884
16956
  "character": 3
16885
16957
  },
16886
16958
  "raw": "/**\n * get component log sorted by the timestamp in ascending order (from the earliest to the latest)\n */",
16887
- "comment": "get component log sorted by the timestamp in ascending order (from the earliest to the latest)"
16959
+ "comment": "get component log sorted by the timestamp in ascending order (from the earliest to the latest)",
16960
+ "tags": []
16888
16961
  },
16889
16962
  "signature": "(method) ScopeMain.getLogs(id: ComponentID, shortHash?: boolean, startsFrom?: string): Promise<ComponentLog[]>",
16890
16963
  "name": "getLogs",
@@ -17026,7 +17099,8 @@
17026
17099
  "character": 3
17027
17100
  },
17028
17101
  "raw": "/**\n * whether a component is soft-removed.\n * the version is required as it can be removed on a lane. in which case, the version is the head in the lane.\n */",
17029
- "comment": "whether a component is soft-removed.\nthe version is required as it can be removed on a lane. in which case, the version is the head in the lane."
17102
+ "comment": "whether a component is soft-removed.\nthe version is required as it can be removed on a lane. in which case, the version is the head in the lane.",
17103
+ "tags": []
17030
17104
  },
17031
17105
  "signature": "(method) ScopeMain.isComponentRemoved(id: ComponentID): Promise<Boolean>",
17032
17106
  "name": "isComponentRemoved",
@@ -17096,7 +17170,8 @@
17096
17170
  "character": 3
17097
17171
  },
17098
17172
  "raw": "/**\n * whether the id with the specified version exits in the local scope.\n */",
17099
- "comment": "whether the id with the specified version exits in the local scope."
17173
+ "comment": "whether the id with the specified version exits in the local scope.",
17174
+ "tags": []
17100
17175
  },
17101
17176
  "signature": "(method) ScopeMain.isComponentInScope(id: ComponentID): Promise<boolean>",
17102
17177
  "name": "isComponentInScope",
@@ -17380,6 +17455,7 @@
17380
17455
  "character": 3
17381
17456
  },
17382
17457
  "raw": "/**\n * @deprecated use `this.idsByPattern` instead for consistency, which supports also negation and list of patterns.\n */",
17458
+ "comment": "",
17383
17459
  "tags": [
17384
17460
  {
17385
17461
  "__schema": "TagSchema",
@@ -17497,7 +17573,8 @@
17497
17573
  "character": 3
17498
17574
  },
17499
17575
  "raw": "/**\n * get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\n * it uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n * (among others) negate character \"!\" to exclude ids. See the package page for more supported characters.\n */",
17500
- "comment": "get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\nit uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n(among others) negate character \"!\" to exclude ids. See the package page for more supported characters."
17576
+ "comment": "get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.\nit uses multimatch (https://www.npmjs.com/package/multimatch) package for the matching algorithm, which supports\n(among others) negate character \"!\" to exclude ids. See the package page for more supported characters.",
17577
+ "tags": []
17501
17578
  },
17502
17579
  "signature": "(method) ScopeMain.idsByPattern(pattern: string, throwForNoMatch?: boolean): Promise<ComponentID[]>",
17503
17580
  "name": "idsByPattern",
@@ -18250,6 +18327,7 @@
18250
18327
  "character": 3
18251
18328
  },
18252
18329
  "raw": "/**\n * @deprecated use `this.resolveComponentId` instead.\n */",
18330
+ "comment": "",
18253
18331
  "tags": [
18254
18332
  {
18255
18333
  "__schema": "TagSchema",
@@ -18366,7 +18444,8 @@
18366
18444
  "character": 3
18367
18445
  },
18368
18446
  "raw": "/**\n * list all component ids from a remote-scope\n */",
18369
- "comment": "list all component ids from a remote-scope"
18447
+ "comment": "list all component ids from a remote-scope",
18448
+ "tags": []
18370
18449
  },
18371
18450
  "signature": "(method) ScopeMain.listRemoteScope(scopeName: string): Promise<ComponentID[]>",
18372
18451
  "name": "listRemoteScope",
@@ -18524,7 +18603,8 @@
18524
18603
  "character": 3
18525
18604
  },
18526
18605
  "raw": "/**\n * ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\n * It has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc.\n */",
18527
- "comment": "ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\nIt has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc."
18606
+ "comment": "ModelComponent is of type `BitObject` which gets saved into the local scope as an object file.\nIt has data about the tags and the component head. It doesn't have any data about the source-files/artifacts etc.",
18607
+ "tags": []
18528
18608
  },
18529
18609
  "signature": "(method) ScopeMain.getBitObjectModelComponent(id: ComponentID, throwIfNotExist?: boolean): Promise<ModelComponent | undefined>",
18530
18610
  "name": "getBitObjectModelComponent",
@@ -18635,7 +18715,8 @@
18635
18715
  "character": 3
18636
18716
  },
18637
18717
  "raw": "/**\n * Version BitObject holds the data of the source files and build artifacts of a specific snap/tag.\n */",
18638
- "comment": "Version BitObject holds the data of the source files and build artifacts of a specific snap/tag."
18718
+ "comment": "Version BitObject holds the data of the source files and build artifacts of a specific snap/tag.",
18719
+ "tags": []
18639
18720
  },
18640
18721
  "signature": "(method) ScopeMain.getBitObjectVersion(modelComponent: ModelComponent, version: string, throwIfNotExist?: boolean): Promise<Version | undefined>",
18641
18722
  "name": "getBitObjectVersion",
@@ -18863,7 +18944,8 @@
18863
18944
  "character": 3
18864
18945
  },
18865
18946
  "raw": "/**\n * get a component and load its aspect\n */",
18866
- "comment": "get a component and load its aspect"
18947
+ "comment": "get a component and load its aspect",
18948
+ "tags": []
18867
18949
  },
18868
18950
  "signature": "(method) ScopeMain.load(id: ComponentID, lane?: Lane, opts?: LoadOptions): Promise<Component | undefined>",
18869
18951
  "name": "load",
@@ -19436,7 +19518,8 @@
19436
19518
  "character": 3
19437
19519
  },
19438
19520
  "raw": "/**\n * declare the slots of scope extension.\n */",
19439
- "comment": "declare the slots of scope extension."
19521
+ "comment": "declare the slots of scope extension.",
19522
+ "tags": []
19440
19523
  },
19441
19524
  "signature": "(property) ScopeMain.slots: (((registerFn: () => string) => SlotRegistry<OnPostPut>) | ((registerFn: () => string) => SlotRegistry<OnPostObjectsPersist>) | ((registerFn: () => string) => SlotRegistry<...>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
19442
19525
  "name": "slots",
@@ -19856,7 +19939,7 @@
19856
19939
  "_legacy": {
19857
19940
  "scope": "teambit.scope",
19858
19941
  "name": "scope",
19859
- "version": "1.0.310"
19942
+ "version": "1.0.311"
19860
19943
  },
19861
19944
  "_scope": "teambit.scope"
19862
19945
  }
@@ -22160,7 +22243,8 @@
22160
22243
  "character": 3
22161
22244
  },
22162
22245
  "raw": "/**\n * register a new badge into the scope overview.\n */",
22163
- "comment": "register a new badge into the scope overview."
22246
+ "comment": "register a new badge into the scope overview.",
22247
+ "tags": []
22164
22248
  },
22165
22249
  "signature": "(method) ScopeUI.registerBadge(...badges: ScopeBadge[]): this",
22166
22250
  "name": "registerBadge",
@@ -22263,7 +22347,8 @@
22263
22347
  "character": 3
22264
22348
  },
22265
22349
  "raw": "/**\n * register a new line beneath the scope overview section.\n */",
22266
- "comment": "register a new line beneath the scope overview section."
22350
+ "comment": "register a new line beneath the scope overview section.",
22351
+ "tags": []
22267
22352
  },
22268
22353
  "signature": "(method) ScopeUI.registerOverviewLine(...lines: OverviewLine[]): this",
22269
22354
  "name": "registerOverviewLine",
@@ -22324,7 +22409,8 @@
22324
22409
  "character": 3
22325
22410
  },
22326
22411
  "raw": "/**\n * register a route to the scope.\n */",
22327
- "comment": "register a route to the scope."
22412
+ "comment": "register a route to the scope.",
22413
+ "tags": []
22328
22414
  },
22329
22415
  "signature": "(method) ScopeUI.registerRoutes(routes: RouteProps[]): this",
22330
22416
  "name": "registerRoutes",
@@ -22572,7 +22658,8 @@
22572
22658
  "character": 3
22573
22659
  },
22574
22660
  "raw": "/**\n * register a scope overview.\n */",
22575
- "comment": "register a scope overview."
22661
+ "comment": "register a scope overview.",
22662
+ "tags": []
22576
22663
  },
22577
22664
  "signature": "(method) ScopeUI.replaceOverview(): void",
22578
22665
  "name": "replaceOverview",
@@ -22603,7 +22690,8 @@
22603
22690
  "character": 3
22604
22691
  },
22605
22692
  "raw": "/**\n * register description.\n */",
22606
- "comment": "register description."
22693
+ "comment": "register description.",
22694
+ "tags": []
22607
22695
  },
22608
22696
  "signature": "(method) ScopeUI.replaceDescription(): void",
22609
22697
  "name": "replaceDescription",
@@ -22634,7 +22722,8 @@
22634
22722
  "character": 3
22635
22723
  },
22636
22724
  "raw": "/**\n * register metadata section.\n */",
22637
- "comment": "register metadata section."
22725
+ "comment": "register metadata section.",
22726
+ "tags": []
22638
22727
  },
22639
22728
  "signature": "(method) ScopeUI.replaceMetadataSection(): void",
22640
22729
  "name": "replaceMetadataSection",
@@ -22665,7 +22754,8 @@
22665
22754
  "character": 3
22666
22755
  },
22667
22756
  "raw": "/**\n * register a metadata item.\n */",
22668
- "comment": "register a metadata item."
22757
+ "comment": "register a metadata item.",
22758
+ "tags": []
22669
22759
  },
22670
22760
  "signature": "(method) ScopeUI.registerMetadataItem(): void",
22671
22761
  "name": "registerMetadataItem",
@@ -22717,7 +22807,8 @@
22717
22807
  "character": 3
22718
22808
  },
22719
22809
  "raw": "/**\n * register metadata.\n */",
22720
- "comment": "register metadata."
22810
+ "comment": "register metadata.",
22811
+ "tags": []
22721
22812
  },
22722
22813
  "signature": "(method) ScopeUI.registerMetadata(): void",
22723
22814
  "name": "registerMetadata",
@@ -22748,7 +22839,8 @@
22748
22839
  "character": 3
22749
22840
  },
22750
22841
  "raw": "/**\n * add a new context to the scope.\n */",
22751
- "comment": "add a new context to the scope."
22842
+ "comment": "add a new context to the scope.",
22843
+ "tags": []
22752
22844
  },
22753
22845
  "signature": "(method) ScopeUI.addContext(...context: ScopeContextType[]): this",
22754
22846
  "name": "addContext",
@@ -22830,7 +22922,8 @@
22830
22922
  "character": 3
22831
22923
  },
22832
22924
  "raw": "/**\n * register a sidebar Widget for the scope\n */",
22833
- "comment": "register a sidebar Widget for the scope"
22925
+ "comment": "register a sidebar Widget for the scope",
22926
+ "tags": []
22834
22927
  },
22835
22928
  "signature": "(property) ScopeUI.registerSidebarWidget: (componentTreeNodes: ComponentTreeNode[]) => this",
22836
22929
  "name": "registerSidebarWidget",
@@ -22861,7 +22954,8 @@
22861
22954
  "character": 3
22862
22955
  },
22863
22956
  "raw": "/**\n * register a sidebar link to the section above the drawers\n */",
22864
- "comment": "register a sidebar link to the section above the drawers"
22957
+ "comment": "register a sidebar link to the section above the drawers",
22958
+ "tags": []
22865
22959
  },
22866
22960
  "signature": "(property) ScopeUI.registerSidebarLink: (...links: SidebarItem[]) => void",
22867
22961
  "name": "registerSidebarLink",
@@ -22913,7 +23007,8 @@
22913
23007
  "character": 3
22914
23008
  },
22915
23009
  "raw": "/**\n * register component filters\n */",
22916
- "comment": "register component filters"
23010
+ "comment": "register component filters",
23011
+ "tags": []
22917
23012
  },
22918
23013
  "signature": "(property) ScopeUI.registerDrawerComponentFilters: (filters: ComponentFilters) => void",
22919
23014
  "name": "registerDrawerComponentFilters",
@@ -23339,7 +23434,8 @@
23339
23434
  "character": 3
23340
23435
  },
23341
23436
  "raw": "/** registers available components */",
23342
- "comment": "registers available components"
23437
+ "comment": "registers available components",
23438
+ "tags": []
23343
23439
  },
23344
23440
  "signature": "(property) ScopeUI.setComponents: (components: ComponentModel[]) => void",
23345
23441
  "name": "setComponents",
@@ -23803,7 +23899,7 @@
23803
23899
  "componentId": {
23804
23900
  "scope": "teambit.scope",
23805
23901
  "name": "scope",
23806
- "version": "1.0.310"
23902
+ "version": "1.0.311"
23807
23903
  },
23808
23904
  "taggedModuleExports": []
23809
23905
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.310/dist/scope.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.310/dist/scope.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.311/dist/scope.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_scope@1.0.311/dist/scope.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/scope",
3
- "version": "1.0.310",
3
+ "version": "1.0.311",
4
4
  "homepage": "https://bit.cloud/teambit/scope/scope",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.scope",
8
8
  "name": "scope",
9
- "version": "1.0.310"
9
+ "version": "1.0.311"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -50,34 +50,34 @@
50
50
  "@teambit/component.modules.component-url": "0.0.167",
51
51
  "@teambit/scope.models.scope-model": "0.0.510",
52
52
  "@teambit/scope.ui.hooks.scope-context": "0.0.504",
53
- "@teambit/aspect-loader": "1.0.310",
54
- "@teambit/cli": "0.0.887",
55
- "@teambit/compiler": "1.0.310",
56
- "@teambit/component": "1.0.310",
57
- "@teambit/dependency-resolver": "1.0.310",
58
- "@teambit/envs": "1.0.310",
59
- "@teambit/global-config": "0.0.890",
53
+ "@teambit/aspect-loader": "1.0.311",
54
+ "@teambit/cli": "0.0.888",
55
+ "@teambit/compiler": "1.0.311",
56
+ "@teambit/component": "1.0.311",
57
+ "@teambit/dependency-resolver": "1.0.311",
58
+ "@teambit/envs": "1.0.311",
59
+ "@teambit/global-config": "0.0.891",
60
60
  "@teambit/harmony.modules.requireable-component": "0.0.497",
61
- "@teambit/isolator": "1.0.310",
62
- "@teambit/logger": "0.0.980",
61
+ "@teambit/isolator": "1.0.311",
62
+ "@teambit/logger": "0.0.981",
63
63
  "@teambit/legacy-component-log": "0.0.403",
64
- "@teambit/builder": "1.0.310",
65
- "@teambit/express": "0.0.986",
66
- "@teambit/graph": "1.0.310",
67
- "@teambit/graphql": "1.0.310",
68
- "@teambit/ui": "1.0.310",
64
+ "@teambit/builder": "1.0.311",
65
+ "@teambit/express": "0.0.987",
66
+ "@teambit/graph": "1.0.311",
67
+ "@teambit/graphql": "1.0.311",
68
+ "@teambit/ui": "1.0.311",
69
69
  "@teambit/workspace.modules.match-pattern": "0.0.505",
70
70
  "@teambit/component.ui.component-drawer": "0.0.401",
71
71
  "@teambit/lanes.hooks.use-lane-components": "0.0.264",
72
72
  "@teambit/lanes.hooks.use-lanes": "0.0.264",
73
73
  "@teambit/lanes.ui.models.lanes-model": "0.0.216",
74
- "@teambit/command-bar": "1.0.310",
75
- "@teambit/component-tree": "1.0.310",
74
+ "@teambit/command-bar": "1.0.311",
75
+ "@teambit/component-tree": "1.0.311",
76
76
  "@teambit/component.ui.component-filters.component-filter-context": "0.0.222",
77
77
  "@teambit/component.ui.component-filters.deprecate-filter": "0.0.220",
78
78
  "@teambit/component.ui.component-filters.env-filter": "0.0.230",
79
79
  "@teambit/component.ui.component-filters.show-main-filter": "0.0.213",
80
- "@teambit/sidebar": "1.0.310",
80
+ "@teambit/sidebar": "1.0.311",
81
81
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.509",
82
82
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.222",
83
83
  "@teambit/component-descriptor": "0.0.421",