@teambit/schema 1.0.396 → 1.0.398
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.
- package/artifacts/__bit_junit.xml +3 -3
- package/artifacts/preview/teambit_semantics_schema-preview.js +1 -1
- package/artifacts/schema.json +3 -3
- package/dist/mock/button/index.js +2 -2
- package/dist/mock/button/index.js.map +1 -1
- package/dist/{preview-1725247248940.js → preview-1725542343103.js} +3 -3
- package/package.json +14 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="3" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.semantics/schema@1.0.
|
|
4
|
-
<testcase classname="dist/schema.spec.js" name="should be able to generate JSON object with all schemas" time="0.
|
|
5
|
-
<testcase classname="dist/schema.spec.js" name="should be able to deserialize an JSON object to SchemaNode instances" time="0.
|
|
3
|
+
<testsuite name="teambit.semantics/schema@1.0.398" tests="3" failures="0" errors="0" skipped="0">
|
|
4
|
+
<testcase classname="dist/schema.spec.js" name="should be able to generate JSON object with all schemas" time="0.013"/>
|
|
5
|
+
<testcase classname="dist/schema.spec.js" name="should be able to deserialize an JSON object to SchemaNode instances" time="0.011"/>
|
|
6
6
|
<testcase classname="dist/schema.spec.js" name="should not throw when it does not recognize the schema" time="0.001"/>
|
|
7
7
|
</testsuite>
|
|
8
8
|
</testsuites>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see teambit_semantics_schema-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.semantics/schema-preview"]=t():e["teambit.semantics/schema-preview"]=t()}(self,(()=>(()=>{var e={69685:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){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=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},84949:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},91788:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},67114:(e,t,n)=>{"use strict";var r=n(91788),o=n(84949),i=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,a=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(e){return(e||"").toString().replace(s,"")}var u=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function p(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new d(unescape(e.pathname),{});else if("string"===a)for(t in o=new d(e,{}),l)delete o[t];else if("object"===a){for(t in e)t in l||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function f(e){e=c(e);var t=a.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&t[2].length>=2),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function d(e,t,n){if(e=c(e),!(this instanceof d))return new d(e,t,n);var i,a,s,l,m,h,b=u.slice(),v=typeof t,_=this,y=0;for("object"!==v&&"string"!==v&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),t=p(t),i=!(a=f(e||"")).protocol&&!a.slashes,_.slashes=a.slashes||i&&t.slashes,_.protocol=a.protocol||t.protocol||"",e=a.rest,a.slashes||(b[3]=[/(.*)/,"pathname"]);y<b.length;y++)"function"!=typeof(l=b[y])?(s=l[0],h=l[1],s!=s?_[h]=e:"string"==typeof s?~(m=e.indexOf(s))&&("number"==typeof l[2]?(_[h]=e.slice(0,m),e=e.slice(m+l[2])):(_[h]=e.slice(m),e=e.slice(0,m))):(m=s.exec(e))&&(_[h]=m[1],e=e.slice(0,m.index)),_[h]=_[h]||i&&l[3]&&t[h]||"",l[4]&&(_[h]=_[h].toLowerCase())):e=l(e);n&&(_.query=n(_.query)),i&&t.slashes&&"/"!==_.pathname.charAt(0)&&(""!==_.pathname||""!==t.pathname)&&(_.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(_.pathname,t.pathname)),"/"!==_.pathname.charAt(0)&&_.hostname&&(_.pathname="/"+_.pathname),r(_.port,_.protocol)||(_.host=_.hostname,_.port=""),_.username=_.password="",_.auth&&(l=_.auth.split(":"),_.username=l[0]||"",_.password=l[1]||""),_.origin=_.protocol&&_.host&&"file:"!==_.protocol?_.protocol+"//"+_.host:"null",_.href=_.toString()}d.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;default:i[e]=t}for(var s=0;s<u.length;s++){var c=u[s];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},d.extractProtocol=f,d.location=p,d.trimLeft=c,d.qs=o,e.exports=d},25173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationProvider=t.useNavigation=t.useNavigate=t.useLocation=t.Link=void 0;var r=n(71473);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var o=n(87568);Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return o.useLocation}});var i=n(18852);Object.defineProperty(t,"useNavigate",{enumerable:!0,get:function(){return i.useNavigate}});var a=n(40189);Object.defineProperty(t,"useNavigation",{enumerable:!0,get:function(){return a.useNavigation}}),Object.defineProperty(t,"NavigationProvider",{enumerable:!0,get:function(){return a.NavigationProvider}})},71473:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;const a=i(n(41594)),s=n(40189),c=n(79187);t.Link=(0,a.forwardRef)((function(e,t){const n=(0,s.useNavigation)().Link||c.NativeLink;return e.native||e.external?a.default.createElement(c.NativeLink,Object.assign({},e,{ref:t})):a.default.createElement(n,Object.assign({},e,{ref:t}))}))},79187:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;const c=i(n(41594)),u=s(n(69685)),l=n(8079),p=n(87568),f={rel:"noopener",target:"_blank"};t.NativeLink=(0,c.forwardRef)((function(e,t){var{className:n,style:r,activeClassName:o,activeStyle:i,active:s,strict:d,exact:m,href:h,external:b,native:v,state:_}=e,y=a(e,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const g=(0,p.useLocation)(),O=!!o||!!i,j=(0,c.useMemo)((()=>!!O&&("boolean"==typeof s?s:!(!g||!h)&&(0,l.compareUrl)(g.pathname,h,{exact:m,strict:d}))),[s,h,g,O]),w=b?f:{},P=(0,c.useMemo)((()=>j&&i?Object.assign(Object.assign({},r),i):r),[j,r]);return c.default.createElement("a",Object.assign({},w,y,{ref:t,href:h,className:(0,u.default)(n,j&&o),style:P}))}))},40189:function(e,t,n){"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationProvider=t.useNavigation=t.NavigationContext=void 0;const s=a(n(41594));function c(){return(0,s.useContext)(t.NavigationContext)}function u({children:e,implementation:n}){return s.default.createElement(t.NavigationContext.Provider,{value:n},e)}t.NavigationContext=s.default.createContext({}),c.__bit_component=r,t.useNavigation=c,u.__bit_component=r,t.NavigationProvider=u},87568:(e,t,n)=>{"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.useLocation=void 0;const o=n(40189);function i(){return((0,o.useNavigation)().useLocation||a)()}function a(){if("undefined"!=typeof window)return window.location}i.__bit_component=r,t.useLocation=i,a.__bit_component=r},18852:(e,t,n)=>{"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.useNavigate=void 0;const o=n(40189);function i(){var e;const t=(0,o.useNavigation)();return(null===(e=t.useNavigate)||void 0===e?void 0:e.call(t))||a}function a(e,{replace:t}={}){if("undefined"==typeof window)throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location:n,history:r}=window;"number"==typeof e?r.go(e):t?n.replace(e):n.assign(e)}i.__bit_component=r,t.useNavigate=i,a.__bit_component=r},704:function(e,t,n){"use strict";var r={id:"teambit.base-ui/routing/compare-url@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/compare-url",exported:!0},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;const i=o(n(67114));function a(e,t,{exact:n,strict:r}={}){if(e===t)return!0;r||(e=e.replace(/\/(?=[?#]|$)/,""),t=t.replace(/\/(?=[?#]|$)/,""));const o=i.default(e),a=i.default(t),l=s(o,a),p=!n||c(o,a),f=!r||u(o,a);return l&&p&&f}function s(e,t){return(!t.protocol||t.protocol===e.protocol)&&(!t.hostname||t.hostname===e.hostname)&&(!t.port||t.port===e.port)&&(!t.pathname||e.pathname.startsWith(t.pathname))&&(!t.query||l(t.query,e.query))&&(!t.hash||t.hash===e.hash)&&(!t.password||t.password===e.password)&&(!t.username||t.username===e.username)}function c(e,t){return(!t.pathname||e.pathname===t.pathname)&&(!t.query||l(e.query,t.query))}function u(e,t){return!t.pathname||e.pathname.endsWith("/")===t.pathname.endsWith("/")}function l(e,t){return Object.keys(e).every((n=>e[n]===t[n]))}a.__bit_component=r,t.compareUrl=a,s.__bit_component=r,c.__bit_component=r,u.__bit_component=r,l.__bit_component=r},8079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;var r=n(704);Object.defineProperty(t,"compareUrl",{enumerable:!0,get:function(){return r.compareUrl}})},34689:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.396",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=a(n(41594));return o=function(){return e},e}function i(){const e=n(85445);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonWithIcon=t.ButtonWithCustomStyles=t.ButtonAsALink=t.BasicButton=void 0,t.Footer=c,o.__bit_component=r,i.__bit_component=r,a.__bit_component=r;const s=()=>o().default.createElement(i().Button,null,"click me");function c({children:e=o().default.createElement(s,null)}){return o().default.createElement(i().Button,null,e)}s.__bit_component=r,t.BasicButton=s,c.__bit_component=r;const u=()=>o().default.createElement(i().Button,{style:{background:"red"}},"click me");u.__bit_component=r,t.ButtonWithCustomStyles=u;const l=()=>o().default.createElement(i().Button,null,"click me");l.__bit_component=r,t.ButtonWithIcon=l;const p=()=>o().default.createElement(i().Button,{href:"https://bit.dev"},"Bit");p.__bit_component=r,t.ButtonAsALink=p},85445:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.396",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=s(n(41594));return o=function(){return e},e}function i(){const e=n(25173);return i=function(){return e},e}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=d(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e){const t=(0,o().useRef)(),n=l({},e),r=e.href?.startsWith("http:")||e.href?.startsWith("https:");return o().default.createElement(o().default.Fragment,null,e.href?o().default.createElement(i().Link,c({external:r,ref:t,className:e.className},n),e.children):o().default.createElement("button",c({className:e.className,ref:t},n),e.children))}Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=void 0,t.Button=m,o.__bit_component=r,i.__bit_component=r,a.__bit_component=r,s.__bit_component=r,c.__bit_component=r,u.__bit_component=r,l.__bit_component=r,p.__bit_component=r,f.__bit_component=r,d.__bit_component=r,m.__bit_component=r,t.Bar=class{foo(){}}},80938:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.396",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/code.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>d});var e={};n.r(e),n.d(e,{default:()=>p});var t=n(80938),o=n(34689);n(41594);const i=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var 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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var u={},l="wrapper";function p(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,i.mdx)(l,c({},u,n,{components:t,mdxType:"MDXLayout"}),(0,i.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}p.isMDXComponent=!0;const f=[t,o],d=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"},{displayName:"Basic button",identifier:"BasicButton"},{displayName:"Footer",identifier:"Footer"},{displayName:"Button with custom styles",identifier:"ButtonWithCustomStyles"},{displayName:"Button with icon",identifier:"ButtonWithIcon"},{displayName:"Button as a link",identifier:"ButtonAsALink"}]}})(),r})()));
|
|
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.semantics/schema-preview"]=t():e["teambit.semantics/schema-preview"]=t()}(self,(()=>(()=>{var e={69685:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){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=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},84949:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},91788:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},67114:(e,t,n)=>{"use strict";var r=n(91788),o=n(84949),i=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,a=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(e){return(e||"").toString().replace(s,"")}var u=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function p(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new d(unescape(e.pathname),{});else if("string"===a)for(t in o=new d(e,{}),l)delete o[t];else if("object"===a){for(t in e)t in l||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function f(e){e=c(e);var t=a.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!(t[2]&&t[2].length>=2),rest:t[2]&&1===t[2].length?"/"+t[3]:t[3]}}function d(e,t,n){if(e=c(e),!(this instanceof d))return new d(e,t,n);var i,a,s,l,m,h,b=u.slice(),v=typeof t,_=this,y=0;for("object"!==v&&"string"!==v&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),t=p(t),i=!(a=f(e||"")).protocol&&!a.slashes,_.slashes=a.slashes||i&&t.slashes,_.protocol=a.protocol||t.protocol||"",e=a.rest,a.slashes||(b[3]=[/(.*)/,"pathname"]);y<b.length;y++)"function"!=typeof(l=b[y])?(s=l[0],h=l[1],s!=s?_[h]=e:"string"==typeof s?~(m=e.indexOf(s))&&("number"==typeof l[2]?(_[h]=e.slice(0,m),e=e.slice(m+l[2])):(_[h]=e.slice(m),e=e.slice(0,m))):(m=s.exec(e))&&(_[h]=m[1],e=e.slice(0,m.index)),_[h]=_[h]||i&&l[3]&&t[h]||"",l[4]&&(_[h]=_[h].toLowerCase())):e=l(e);n&&(_.query=n(_.query)),i&&t.slashes&&"/"!==_.pathname.charAt(0)&&(""!==_.pathname||""!==t.pathname)&&(_.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(_.pathname,t.pathname)),"/"!==_.pathname.charAt(0)&&_.hostname&&(_.pathname="/"+_.pathname),r(_.port,_.protocol)||(_.host=_.hostname,_.port=""),_.username=_.password="",_.auth&&(l=_.auth.split(":"),_.username=l[0]||"",_.password=l[1]||""),_.origin=_.protocol&&_.host&&"file:"!==_.protocol?_.protocol+"//"+_.host:"null",_.href=_.toString()}d.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;default:i[e]=t}for(var s=0;s<u.length;s++){var c=u[s];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},d.extractProtocol=f,d.location=p,d.trimLeft=c,d.qs=o,e.exports=d},93068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationProvider=t.useNavigation=t.useNavigate=t.useLocation=t.Link=void 0;var r=n(58446);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var o=n(46191);Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return o.useLocation}});var i=n(21435);Object.defineProperty(t,"useNavigate",{enumerable:!0,get:function(){return i.useNavigate}});var a=n(39408);Object.defineProperty(t,"useNavigation",{enumerable:!0,get:function(){return a.useNavigation}}),Object.defineProperty(t,"NavigationProvider",{enumerable:!0,get:function(){return a.NavigationProvider}})},58446:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;const a=i(n(41594)),s=n(39408),c=n(72654);t.Link=(0,a.forwardRef)((function(e,t){const n=(0,s.useNavigation)().Link||c.NativeLink;return e.native||e.external?a.default.createElement(c.NativeLink,Object.assign({},e,{ref:t})):a.default.createElement(n,Object.assign({},e,{ref:t}))}))},72654:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;const c=i(n(41594)),u=s(n(69685)),l=n(57452),p=n(46191),f={rel:"noopener",target:"_blank"};t.NativeLink=(0,c.forwardRef)((function(e,t){var{className:n,style:r,activeClassName:o,activeStyle:i,active:s,strict:d,exact:m,href:h,external:b,native:v,state:_}=e,y=a(e,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const g=(0,p.useLocation)(),O=!!o||!!i,j=(0,c.useMemo)((()=>!!O&&("boolean"==typeof s?s:!(!g||!h)&&(0,l.compareUrl)(g.pathname,h,{exact:m,strict:d}))),[s,h,g,O]),w=b?f:{},P=(0,c.useMemo)((()=>j&&i?Object.assign(Object.assign({},r),i):r),[j,r]);return c.default.createElement("a",Object.assign({},w,y,{ref:t,href:h,className:(0,u.default)(n,j&&o),style:P}))}))},39408:function(e,t,n){"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationProvider=t.useNavigation=t.NavigationContext=void 0;const s=a(n(41594));function c(){return(0,s.useContext)(t.NavigationContext)}function u({children:e,implementation:n}){return s.default.createElement(t.NavigationContext.Provider,{value:n},e)}t.NavigationContext=s.default.createContext({}),c.__bit_component=r,t.useNavigation=c,u.__bit_component=r,t.NavigationProvider=u},46191:(e,t,n)=>{"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.useLocation=void 0;const o=n(39408);function i(){return((0,o.useNavigation)().useLocation||a)()}function a(){if("undefined"!=typeof window)return window.location}i.__bit_component=r,t.useLocation=i,a.__bit_component=r},21435:(e,t,n)=>{"use strict";var r={id:"teambit.base-react/navigation/link@2.0.27",homepage:"https://bit.dev/teambit/base-react/navigation/link",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.useNavigate=void 0;const o=n(39408);function i(){var e;const t=(0,o.useNavigation)();return(null===(e=t.useNavigate)||void 0===e?void 0:e.call(t))||a}function a(e,{replace:t}={}){if("undefined"==typeof window)throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location:n,history:r}=window;"number"==typeof e?r.go(e):t?n.replace(e):n.assign(e)}i.__bit_component=r,t.useNavigate=i,a.__bit_component=r},52959:function(e,t,n){"use strict";var r={id:"teambit.base-ui/routing/compare-url@1.0.0",homepage:"https://bit.dev/teambit/base-ui/routing/compare-url",exported:!0},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;const i=o(n(67114));function a(e,t,{exact:n,strict:r}={}){if(e===t)return!0;r||(e=e.replace(/\/(?=[?#]|$)/,""),t=t.replace(/\/(?=[?#]|$)/,""));const o=i.default(e),a=i.default(t),l=s(o,a),p=!n||c(o,a),f=!r||u(o,a);return l&&p&&f}function s(e,t){return(!t.protocol||t.protocol===e.protocol)&&(!t.hostname||t.hostname===e.hostname)&&(!t.port||t.port===e.port)&&(!t.pathname||e.pathname.startsWith(t.pathname))&&(!t.query||l(t.query,e.query))&&(!t.hash||t.hash===e.hash)&&(!t.password||t.password===e.password)&&(!t.username||t.username===e.username)}function c(e,t){return(!t.pathname||e.pathname===t.pathname)&&(!t.query||l(e.query,t.query))}function u(e,t){return!t.pathname||e.pathname.endsWith("/")===t.pathname.endsWith("/")}function l(e,t){return Object.keys(e).every((n=>e[n]===t[n]))}a.__bit_component=r,t.compareUrl=a,s.__bit_component=r,c.__bit_component=r,u.__bit_component=r,l.__bit_component=r},57452:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;var r=n(52959);Object.defineProperty(t,"compareUrl",{enumerable:!0,get:function(){return r.compareUrl}})},94896:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.398",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=a(n(41594));return o=function(){return e},e}function i(){const e=n(17116);return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonWithIcon=t.ButtonWithCustomStyles=t.ButtonAsALink=t.BasicButton=void 0,t.Footer=c,o.__bit_component=r,i.__bit_component=r,a.__bit_component=r;const s=()=>o().default.createElement(i().Button,null,"click me");function c({children:e=o().default.createElement(s,null)}){return o().default.createElement(i().Button,null,e)}s.__bit_component=r,t.BasicButton=s,c.__bit_component=r;const u=()=>o().default.createElement(i().Button,{style:{background:"red"}},"click me");u.__bit_component=r,t.ButtonWithCustomStyles=u;const l=()=>o().default.createElement(i().Button,null,"click me");l.__bit_component=r,t.ButtonWithIcon=l;const p=()=>o().default.createElement(i().Button,{href:"https://bit.dev"},"Bit");p.__bit_component=r,t.ButtonAsALink=p},17116:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.398",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=s(n(41594));return o=function(){return e},e}function i(){const e=n(93068);return i=function(){return e},e}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=d(e,"string");return"symbol"==typeof t?t:t+""}function d(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e){const t=(0,o().useRef)(),n=l({},e),r=e.href?.startsWith("http:")||e.href?.startsWith("https:");return o().default.createElement(o().default.Fragment,null,e.href?o().default.createElement(i().Link,c({external:r,ref:t,className:e.className},n),e.children):o().default.createElement("button",c({className:e.className,ref:t},n),e.children))}Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=void 0,t.Button=m,o.__bit_component=r,i.__bit_component=r,a.__bit_component=r,s.__bit_component=r,c.__bit_component=r,u.__bit_component=r,l.__bit_component=r,p.__bit_component=r,f.__bit_component=r,d.__bit_component=r,m.__bit_component=r,t.Bar=class{foo(){}}},92839:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.398",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/code.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{"use strict";e.exports=React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>d});var e={};n.r(e),n.d(e,{default:()=>p});var t=n(92839),o=n(94896);n(41594);const i=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var 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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var u={},l="wrapper";function p(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,i.mdx)(l,c({},u,n,{components:t,mdxType:"MDXLayout"}),(0,i.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}p.isMDXComponent=!0;const f=[t,o],d=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"},{displayName:"Basic button",identifier:"BasicButton"},{displayName:"Footer",identifier:"Footer"},{displayName:"Button with custom styles",identifier:"ButtonWithCustomStyles"},{displayName:"Button with icon",identifier:"ButtonWithIcon"},{displayName:"Button as a link",identifier:"ButtonAsALink"}]}})(),r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
"_legacy": {
|
|
652
652
|
"scope": "teambit.semantics",
|
|
653
653
|
"name": "schema",
|
|
654
|
-
"version": "1.0.
|
|
654
|
+
"version": "1.0.398"
|
|
655
655
|
},
|
|
656
656
|
"_scope": "teambit.semantics"
|
|
657
657
|
}
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
"_legacy": {
|
|
2749
2749
|
"scope": "teambit.semantics",
|
|
2750
2750
|
"name": "schema",
|
|
2751
|
-
"version": "1.0.
|
|
2751
|
+
"version": "1.0.398"
|
|
2752
2752
|
},
|
|
2753
2753
|
"_scope": "teambit.semantics"
|
|
2754
2754
|
}
|
|
@@ -4223,7 +4223,7 @@
|
|
|
4223
4223
|
"componentId": {
|
|
4224
4224
|
"scope": "teambit.semantics",
|
|
4225
4225
|
"name": "schema",
|
|
4226
|
-
"version": "1.0.
|
|
4226
|
+
"version": "1.0.398"
|
|
4227
4227
|
},
|
|
4228
4228
|
"taggedModuleExports": []
|
|
4229
4229
|
}
|
|
@@ -191,7 +191,7 @@ let ExampleDecoratorOne = exports.ExampleDecoratorOne = (_dec = CustomClassDecor
|
|
|
191
191
|
exampleMethod() {
|
|
192
192
|
// Method logic
|
|
193
193
|
}
|
|
194
|
-
},
|
|
194
|
+
}, _applyDecoratedDescriptor(_class2.prototype, "exampleMethod", [_dec2, _dec3, _dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "exampleMethod"), _class2.prototype), _class2)) || _class);
|
|
195
195
|
function ValidateArgs(config) {
|
|
196
196
|
return function (target, propertyKey, descriptor) {
|
|
197
197
|
const originalMethod = descriptor.value;
|
|
@@ -222,6 +222,6 @@ let ExampleDecoratorTwo = exports.ExampleDecoratorTwo = (_dec5 = CustomClassDeco
|
|
|
222
222
|
exampleMethod(input) {
|
|
223
223
|
// Method logic
|
|
224
224
|
}
|
|
225
|
-
},
|
|
225
|
+
}, _applyDecoratedDescriptor(_class4.prototype, "exampleMethod", [_dec6, _dec7, _dec8], Object.getOwnPropertyDescriptor(_class4.prototype, "exampleMethod"), _class4.prototype), _class4)) || _class3);
|
|
226
226
|
|
|
227
227
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_button","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Compositions","data","_interopRequireWildcard","_dec","_dec2","_dec3","_dec4","_class","_class2","_dec5","_dec6","_dec7","_dec8","_class3","_class4","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","_applyDecoratedDescriptor","l","configurable","initializer","writable","slice","reverse","reduce","value","_defineProperty","_toPropertyKey","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","myFunc","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","obj","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName","genericFunction","gfnc2","LogMethod","message","target","propertyKey","descriptor","originalMethod","args","console","log","apply","CustomClassDecorator","config","name","description","ExampleDecoratorOne","Reflect","metadata","exampleMethod","ValidateArgs","type","Error","required","ExampleDecoratorTwo","fn","class","arr","undefined","input"],"sources":["index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/prefer-as-const */\n/* eslint-disable one-var */\n/* eslint-disable max-classes-per-file */\n\n/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */\nexport function myFunc(a = 4, b = 5): number {\n return a + b;\n}\n\nexport * from './button';\n\nexport function Hi() {}\n\nexport const a = 4,\n b: 5 = 5;\n\nexport * as Compositions from './button.composition';\n\nexport const HiThere = 'HiThere';\n\nexport const Function = () => {};\n\nexport const Array = ['hi', 'there'];\n\nclass Foo {}\n\nclass ClassSomething {\n app = '';\n constructor(readonly da: 'dsa') {}\n\n a() {\n return new Foo();\n }\n get getter() {\n return 'hi';\n }\n\n set setter(a: boolean) {}\n}\n\nexport { ClassSomething };\n\nexport type IndexSig = { [key: string]: boolean };\n\nexport interface Hello {\n propertySig: () => void;\n methodSig(): string;\n}\n\nconst obj = { a: 1, b: 2 };\n\nexport const a1: typeof obj = { a: 5, b: 9 };\n\nexport type TypeOperator = keyof typeof obj;\n\n// this is for Jump in the definition\nclass Bar {\n foo() {}\n}\nexport const getBar = (bar: Bar) => new Bar();\n\nexport const tuple = ([a, b, c]: [string, Function, Record<string, any>]) => {};\n\nexport enum Food {\n Falafel,\n Hummus,\n Tahini,\n}\n\nexport async function getPromise(): Promise<string> {\n return 'promise';\n}\n\nclass T1 {}\nclass T2 {}\nclass T3<T, K> {}\nexport type TypeRefWithArgs = T3<T1, T2>;\n\nexport type ParenthesizedType = (T1 | T2)[];\n\nexport function typePredicateFn(str: any): str is string {\n return str;\n}\n\nexport function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition {}\n\nexport async function objectBindingElements({ prop = 1 }) {\n return prop;\n}\nexport async function arrayBindingElements([prop]: [string]) {\n return prop;\n}\n\ninterface config {\n someField: { a: string; b: boolean };\n}\nexport type IndexedAccessType = config['someField'];\n\nconst computedName = 'str';\nexport interface ComputedNameWithType {\n [computedName]: boolean;\n}\nexport interface ComputedNameNoType {\n [computedName];\n}\n\ntype World1 = 'world1-a' | 'world1-b';\ntype World2 = 'world2';\nexport type templateLiteralType = `hello ${World1} hi ${World2}`;\n\nexport interface CallSignatureWithTypeParams {\n <T>(a: string): T;\n}\n\n/**\n * Conditional Generic Type\n */\nexport type If<T, U, Y, N> = T extends U ? Y : N;\n\nexport function genericFunction<T>(a: T) {\n return function <T>(a: T) {};\n}\n\nexport const gfnc2 = genericFunction<string>('');\n\nexport function LogMethod(message: string) {\n return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {\n const originalMethod = descriptor.value;\n descriptor.value = function (...args: any[]) {\n console.log(`Logging: ${message}`);\n return originalMethod.apply(this, args);\n };\n };\n}\n\nexport function CustomClassDecorator(config: {\n name: string;\n description: string;\n fn?: () => string;\n class?: ClassSomething;\n arr?: [\n string,\n number,\n boolean,\n boolean,\n number | undefined,\n (a: string) => void,\n { a: string; b: number },\n ClassSomething\n ];\n}) {\n return function (target: any) {\n console.log(`Class ${config.name} - ${config.description}`);\n };\n}\n\n@CustomClassDecorator({ name: 'ExampleClass2', description: 'This is an example class 2' })\nexport class ExampleDecoratorOne {\n @LogMethod('This is a log message')\n exampleMethod() {\n // Method logic\n }\n}\n\nexport function ValidateArgs(config: { type: string; required: boolean }) {\n return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {\n const originalMethod = descriptor.value;\n descriptor.value = function (...args: any[]) {\n if (args[0] && typeof args[0] !== config.type) {\n throw new Error('Invalid argument type');\n }\n if (config.required && !args[0]) {\n throw new Error('Argument is required');\n }\n return originalMethod.apply(this, args);\n };\n };\n}\n\n@CustomClassDecorator({\n name: 'ExampleClass',\n description: 'This is an example class',\n fn: () => 'hi',\n class: new ClassSomething('dsa'),\n arr: ['hi', 5, true, false, undefined, () => {}, { a: 'hi', b: 5 }, new ClassSomething('dsa')],\n})\nexport class ExampleDecoratorTwo {\n @ValidateArgs({ type: 'string', required: true })\n exampleMethod(input: string) {\n // Method logic\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAAyB,SAAAS,cAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAf,OAAA;EAAAa,aAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAAb,MAAA,CAAAS,cAAA,CAAAD,OAAA;EAAAE,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAC,aAAA;EAAA;AAAA;AAAA,IAAAG,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,OAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,OAAA,EAAAC,OAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA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AAAkB,KAAA,EAAAC,KAAA,EAAAC,KAAA,GAAAxB,MAAA,CAAAsC,wBAAA,CAAAZ,OAAA,CAAAtB,SAAA,oBAAAsB,OAAA,CAAAtB,SAAA,IAAAsB,OAAA,MAAAD,OAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_button","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Compositions","data","_interopRequireWildcard","_dec","_dec2","_dec3","_dec4","_class","_class2","_dec5","_dec6","_dec7","_dec8","_class3","_class4","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","_applyDecoratedDescriptor","l","configurable","initializer","writable","slice","reverse","reduce","value","_defineProperty","_toPropertyKey","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","myFunc","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","obj","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName","genericFunction","gfnc2","LogMethod","message","target","propertyKey","descriptor","originalMethod","args","console","log","apply","CustomClassDecorator","config","name","description","ExampleDecoratorOne","Reflect","metadata","exampleMethod","ValidateArgs","type","Error","required","ExampleDecoratorTwo","fn","class","arr","undefined","input"],"sources":["index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/prefer-as-const */\n/* eslint-disable one-var */\n/* eslint-disable max-classes-per-file */\n\n/**\n * General comment of the myFunc\n * @deprecate example of deprecation tag\n * @param a { number } this is A\n * @param b this is B\n * @returns { number } results of adding a to b\n */\nexport function myFunc(a = 4, b = 5): number {\n return a + b;\n}\n\nexport * from './button';\n\nexport function Hi() {}\n\nexport const a = 4,\n b: 5 = 5;\n\nexport * as Compositions from './button.composition';\n\nexport const HiThere = 'HiThere';\n\nexport const Function = () => {};\n\nexport const Array = ['hi', 'there'];\n\nclass Foo {}\n\nclass ClassSomething {\n app = '';\n constructor(readonly da: 'dsa') {}\n\n a() {\n return new Foo();\n }\n get getter() {\n return 'hi';\n }\n\n set setter(a: boolean) {}\n}\n\nexport { ClassSomething };\n\nexport type IndexSig = { [key: string]: boolean };\n\nexport interface Hello {\n propertySig: () => void;\n methodSig(): string;\n}\n\nconst obj = { a: 1, b: 2 };\n\nexport const a1: typeof obj = { a: 5, b: 9 };\n\nexport type TypeOperator = keyof typeof obj;\n\n// this is for Jump in the definition\nclass Bar {\n foo() {}\n}\nexport const getBar = (bar: Bar) => new Bar();\n\nexport const tuple = ([a, b, c]: [string, Function, Record<string, any>]) => {};\n\nexport enum Food {\n Falafel,\n Hummus,\n Tahini,\n}\n\nexport async function getPromise(): Promise<string> {\n return 'promise';\n}\n\nclass T1 {}\nclass T2 {}\nclass T3<T, K> {}\nexport type TypeRefWithArgs = T3<T1, T2>;\n\nexport type ParenthesizedType = (T1 | T2)[];\n\nexport function typePredicateFn(str: any): str is string {\n return str;\n}\n\nexport function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition {}\n\nexport async function objectBindingElements({ prop = 1 }) {\n return prop;\n}\nexport async function arrayBindingElements([prop]: [string]) {\n return prop;\n}\n\ninterface config {\n someField: { a: string; b: boolean };\n}\nexport type IndexedAccessType = config['someField'];\n\nconst computedName = 'str';\nexport interface ComputedNameWithType {\n [computedName]: boolean;\n}\nexport interface ComputedNameNoType {\n [computedName];\n}\n\ntype World1 = 'world1-a' | 'world1-b';\ntype World2 = 'world2';\nexport type templateLiteralType = `hello ${World1} hi ${World2}`;\n\nexport interface CallSignatureWithTypeParams {\n <T>(a: string): T;\n}\n\n/**\n * Conditional Generic Type\n */\nexport type If<T, U, Y, N> = T extends U ? Y : N;\n\nexport function genericFunction<T>(a: T) {\n return function <T>(a: T) {};\n}\n\nexport const gfnc2 = genericFunction<string>('');\n\nexport function LogMethod(message: string) {\n return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {\n const originalMethod = descriptor.value;\n descriptor.value = function (...args: any[]) {\n console.log(`Logging: ${message}`);\n return originalMethod.apply(this, args);\n };\n };\n}\n\nexport function CustomClassDecorator(config: {\n name: string;\n description: string;\n fn?: () => string;\n class?: ClassSomething;\n arr?: [\n string,\n number,\n boolean,\n boolean,\n number | undefined,\n (a: string) => void,\n { a: string; b: number },\n ClassSomething\n ];\n}) {\n return function (target: any) {\n console.log(`Class ${config.name} - ${config.description}`);\n };\n}\n\n@CustomClassDecorator({ name: 'ExampleClass2', description: 'This is an example class 2' })\nexport class ExampleDecoratorOne {\n @LogMethod('This is a log message')\n exampleMethod() {\n // Method logic\n }\n}\n\nexport function ValidateArgs(config: { type: string; required: boolean }) {\n return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {\n const originalMethod = descriptor.value;\n descriptor.value = function (...args: any[]) {\n if (args[0] && typeof args[0] !== config.type) {\n throw new Error('Invalid argument type');\n }\n if (config.required && !args[0]) {\n throw new Error('Argument is required');\n }\n return originalMethod.apply(this, args);\n };\n };\n}\n\n@CustomClassDecorator({\n name: 'ExampleClass',\n description: 'This is an example class',\n fn: () => 'hi',\n class: new ClassSomething('dsa'),\n arr: ['hi', 5, true, false, undefined, () => {}, { a: 'hi', b: 5 }, new ClassSomething('dsa')],\n})\nexport class ExampleDecoratorTwo {\n @ValidateArgs({ type: 'string', required: true })\n exampleMethod(input: string) {\n // Method logic\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,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,IAAAhG,KAAA,GAP/BoF,oBAAoB,CAAC;EACpBE,IAAI,EAAE,cAAc;EACpBC,WAAW,EAAE,0BAA0B;EACvCU,EAAE,EAAEA,CAAA,KAAM,IAAI;EACdC,KAAK,EAAE,IAAIrD,cAAc,CAAC,KAAK,CAAC;EAChCsD,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAEC,SAAS,EAAE,MAAM,CAAC,CAAC,EAAE;IAAEpF,CAAC,EAAE,IAAI;IAAEuB,CAAC,EAAE;EAAE,CAAC,EAAE,IAAIM,cAAc,CAAC,KAAK,CAAC;AAC/F,CAAC,CAAC,EAAA5C,KAAA,GAEC2F,YAAY,CAAC;EAAEC,IAAI,EAAE,QAAQ;EAAEE,QAAQ,EAAE;AAAK,CAAC,CAAC,EAAA7F,KAAA,GAAAuF,OAAA,CAAAC,QAAA,gBAAAhD,QAAA,GAAAvC,KAAA,GAAAsF,OAAA,CAAAC,QAAA,uBAAAtD,MAAA,IAAApC,KAAA,CAAAI,OAAA,IAAAC,OAAA,GARnD,MAOa2F,mBAAmB,CAAC;EAE/BL,aAAaA,CAACU,KAAa,EAAE;IAC3B;EAAA;AAEJ,CAAC,EAAAhF,yBAAA,CAAAhB,OAAA,CAAAtB,SAAA,oBAAAkB,KAAA,EAAAC,KAAA,EAAAC,KAAA,GAAAxB,MAAA,CAAAsC,wBAAA,CAAAZ,OAAA,CAAAtB,SAAA,oBAAAsB,OAAA,CAAAtB,SAAA,GAAAsB,OAAA,MAAAD,OAAA","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.
|
|
2
|
-
import * as compositions_1 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.
|
|
3
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.398/dist/schema.composition.js';
|
|
2
|
+
import * as compositions_1 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.398/dist/mock/button/button.composition.js';
|
|
3
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.semantics_schema@1.0.398/dist/schema.docs.mdx';
|
|
4
4
|
|
|
5
5
|
export const compositions = [compositions_0, compositions_1];
|
|
6
6
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.398",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/semantics/schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.semantics",
|
|
8
8
|
"name": "schema",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.398"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"p-map-series": "2.1.0",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"fs-extra": "10.0.0",
|
|
16
16
|
"@teambit/harmony": "0.4.6",
|
|
17
17
|
"@teambit/semantics.entities.semantic-schema": "0.0.70",
|
|
18
|
-
"@teambit/envs": "1.0.
|
|
19
|
-
"@teambit/component": "1.0.
|
|
20
|
-
"@teambit/formatter": "1.0.
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/logger": "0.0.
|
|
23
|
-
"@teambit/graphql": "1.0.
|
|
24
|
-
"@teambit/builder": "1.0.
|
|
18
|
+
"@teambit/envs": "1.0.398",
|
|
19
|
+
"@teambit/component": "1.0.398",
|
|
20
|
+
"@teambit/formatter": "1.0.398",
|
|
21
|
+
"@teambit/cli": "0.0.975",
|
|
22
|
+
"@teambit/logger": "0.0.1068",
|
|
23
|
+
"@teambit/graphql": "1.0.398",
|
|
24
|
+
"@teambit/builder": "1.0.398",
|
|
25
25
|
"@teambit/defender.prettier.config-mutator": "0.0.100",
|
|
26
|
-
"@teambit/scope": "1.0.
|
|
27
|
-
"@teambit/typescript": "1.0.
|
|
28
|
-
"@teambit/workspace": "1.0.
|
|
26
|
+
"@teambit/scope": "1.0.398",
|
|
27
|
+
"@teambit/typescript": "1.0.398",
|
|
28
|
+
"@teambit/workspace": "1.0.398"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/chai": "4.2.15",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@types/mocha": "9.1.0",
|
|
36
36
|
"@teambit/component-id": "1.2.0",
|
|
37
37
|
"@teambit/harmony.envs.core-aspect-env": "0.0.47",
|
|
38
|
-
"@teambit/harmony.testing.load-aspect": "0.0.
|
|
39
|
-
"@teambit/tracker": "1.0.
|
|
38
|
+
"@teambit/harmony.testing.load-aspect": "0.0.225",
|
|
39
|
+
"@teambit/tracker": "1.0.398",
|
|
40
40
|
"@teambit/workspace.testing.mock-workspace": "0.0.27"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|