@teambit/schema 1.0.167 → 1.0.168
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 +2 -2
- package/artifacts/preview/teambit_semantics_schema-preview.js +1 -1
- package/artifacts/schema.json +5 -5
- package/dist/mock/button/index.d.ts +30 -0
- package/dist/mock/button/index.js +67 -2
- package/dist/mock/button/index.js.map +1 -1
- package/dist/mock/button-schemas.json +930 -0
- package/dist/preview-1708259356169.js +8 -0
- package/mock/button/index.ts +68 -0
- package/mock/button-schemas.json +930 -0
- package/package.json +11 -11
- package/dist/preview-1707967207539.js +0 -8
|
@@ -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.
|
|
3
|
+
<testsuite name="teambit.semantics/schema@1.0.168" tests="3" failures="0" errors="0" skipped="0">
|
|
4
4
|
<testcase classname="dist/schema.spec.js" name="should be able to generate JSON object with all schemas" time="0.008"/>
|
|
5
|
-
<testcase classname="dist/schema.spec.js" name="should be able to deserialize an JSON object to SchemaNode instances" time="0.
|
|
5
|
+
<testcase classname="dist/schema.spec.js" name="should be able to deserialize an JSON object to SchemaNode instances" time="0.018"/>
|
|
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={8728:(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)}()},54404:(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}},12952: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}},39536:(e,t,n)=>{"use strict";var r=n(12952),o=n(54404),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},47528:(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(63136);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var o=n(1048);Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return o.useLocation}});var i=n(59096);Object.defineProperty(t,"useNavigate",{enumerable:!0,get:function(){return i.useNavigate}});var a=n(50316);Object.defineProperty(t,"useNavigation",{enumerable:!0,get:function(){return a.useNavigation}}),Object.defineProperty(t,"NavigationProvider",{enumerable:!0,get:function(){return a.NavigationProvider}})},63136: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(6376)),s=n(50316),c=n(44476);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}))}))},44476: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(6376)),u=s(n(8728)),l=n(82156),p=n(1048),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:{},x=(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:x}))}))},50316: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(6376));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},1048:(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(50316);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},59096:(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(50316);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},55387: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(39536));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},82156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;var r=n(55387);Object.defineProperty(t,"compareUrl",{enumerable:!0,get:function(){return r.compareUrl}})},9532:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.167",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=a(n(6376));return o=function(){return e},e}function i(){const e=n(2048);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},2048:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.167",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=s(n(6376));return o=function(){return e},e}function i(){const e=n(47528);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&&Object.prototype.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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,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:String(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(){}}},80520:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.167",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=i(n(6376));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},6376: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(80520),o=n(9532);n(6376);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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,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,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.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={60416:(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)}()},71624:(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}},73392: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}},49284:(e,t,n)=>{"use strict";var r=n(73392),o=n(71624),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},27500:(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(88712);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.Link}});var o=n(17500);Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return o.useLocation}});var i=n(18344);Object.defineProperty(t,"useNavigate",{enumerable:!0,get:function(){return i.useNavigate}});var a=n(37916);Object.defineProperty(t,"useNavigation",{enumerable:!0,get:function(){return a.useNavigation}}),Object.defineProperty(t,"NavigationProvider",{enumerable:!0,get:function(){return a.NavigationProvider}})},88712: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(6376)),s=n(37916),c=n(69568);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}))}))},69568: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(6376)),u=s(n(60416)),l=n(6216),p=n(17500),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:{},x=(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:x}))}))},37916: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(6376));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},17500:(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(37916);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},18344:(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(37916);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},65888: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(49284));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},6216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareUrl=void 0;var r=n(65888);Object.defineProperty(t,"compareUrl",{enumerable:!0,get:function(){return r.compareUrl}})},83620:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.168",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=a(n(6376));return o=function(){return e},e}function i(){const e=n(10388);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},10388:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.168",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=s(n(6376));return o=function(){return e},e}function i(){const e=n(27500);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&&Object.prototype.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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,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:String(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(){}}},43928:(e,t,n)=>{"use strict";var r={id:"teambit.semantics/schema@1.0.168",homepage:"https://bit.cloud/teambit/semantics/schema",exported:!0};function o(){const e=i(n(6376));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},6376: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(43928),o=n(83620);n(6376);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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,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,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.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
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
"_legacy": {
|
|
612
612
|
"scope": "teambit.semantics",
|
|
613
613
|
"name": "schema",
|
|
614
|
-
"version": "1.0.
|
|
614
|
+
"version": "1.0.168"
|
|
615
615
|
},
|
|
616
616
|
"_scope": "teambit.semantics"
|
|
617
617
|
}
|
|
@@ -1416,7 +1416,7 @@
|
|
|
1416
1416
|
"componentId": {
|
|
1417
1417
|
"scope": "teambit.semantics",
|
|
1418
1418
|
"name": "entities/semantic-schema",
|
|
1419
|
-
"version": "0.0.
|
|
1419
|
+
"version": "0.0.67"
|
|
1420
1420
|
}
|
|
1421
1421
|
},
|
|
1422
1422
|
"modifiers": []
|
|
@@ -2578,7 +2578,7 @@
|
|
|
2578
2578
|
"_legacy": {
|
|
2579
2579
|
"scope": "teambit.semantics",
|
|
2580
2580
|
"name": "schema",
|
|
2581
|
-
"version": "1.0.
|
|
2581
|
+
"version": "1.0.168"
|
|
2582
2582
|
},
|
|
2583
2583
|
"_scope": "teambit.semantics"
|
|
2584
2584
|
}
|
|
@@ -3473,7 +3473,7 @@
|
|
|
3473
3473
|
"componentId": {
|
|
3474
3474
|
"scope": "teambit.semantics",
|
|
3475
3475
|
"name": "entities/semantic-schema",
|
|
3476
|
-
"version": "0.0.
|
|
3476
|
+
"version": "0.0.67"
|
|
3477
3477
|
}
|
|
3478
3478
|
},
|
|
3479
3479
|
"modifiers": []
|
|
@@ -3990,7 +3990,7 @@
|
|
|
3990
3990
|
"componentId": {
|
|
3991
3991
|
"scope": "teambit.semantics",
|
|
3992
3992
|
"name": "schema",
|
|
3993
|
-
"version": "1.0.
|
|
3993
|
+
"version": "1.0.168"
|
|
3994
3994
|
},
|
|
3995
3995
|
"taggedModuleExports": []
|
|
3996
3996
|
}
|
|
@@ -88,3 +88,33 @@ export interface CallSignatureWithTypeParams {
|
|
|
88
88
|
export type If<T, U, Y, N> = T extends U ? Y : N;
|
|
89
89
|
export declare function genericFunction<T>(a: T): <T_1>(a: T_1) => void;
|
|
90
90
|
export declare const gfnc2: <T>(a: T) => void;
|
|
91
|
+
export declare function LogMethod(message: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
92
|
+
export declare function CustomClassDecorator(config: {
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
fn?: () => string;
|
|
96
|
+
class?: ClassSomething;
|
|
97
|
+
arr?: [
|
|
98
|
+
string,
|
|
99
|
+
number,
|
|
100
|
+
boolean,
|
|
101
|
+
boolean,
|
|
102
|
+
number | undefined,
|
|
103
|
+
(a: string) => void,
|
|
104
|
+
{
|
|
105
|
+
a: string;
|
|
106
|
+
b: number;
|
|
107
|
+
},
|
|
108
|
+
ClassSomething
|
|
109
|
+
];
|
|
110
|
+
}): (target: any) => void;
|
|
111
|
+
export declare class ExampleDecoratorOne {
|
|
112
|
+
exampleMethod(): void;
|
|
113
|
+
}
|
|
114
|
+
export declare function ValidateArgs(config: {
|
|
115
|
+
type: string;
|
|
116
|
+
required: boolean;
|
|
117
|
+
}): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
118
|
+
export declare class ExampleDecoratorTwo {
|
|
119
|
+
exampleMethod(input: string): void;
|
|
120
|
+
}
|
|
@@ -23,11 +23,21 @@ var _exportNames = {
|
|
|
23
23
|
arrayBindingElements: true,
|
|
24
24
|
genericFunction: true,
|
|
25
25
|
gfnc2: true,
|
|
26
|
+
LogMethod: true,
|
|
27
|
+
CustomClassDecorator: true,
|
|
28
|
+
ExampleDecoratorOne: true,
|
|
29
|
+
ValidateArgs: true,
|
|
30
|
+
ExampleDecoratorTwo: true,
|
|
26
31
|
Compositions: true
|
|
27
32
|
};
|
|
28
|
-
exports.
|
|
33
|
+
exports.Compositions = exports.ClassSomething = exports.Array = void 0;
|
|
34
|
+
exports.CustomClassDecorator = CustomClassDecorator;
|
|
35
|
+
exports.Function = exports.Food = exports.ExampleDecoratorTwo = exports.ExampleDecoratorOne = void 0;
|
|
29
36
|
exports.Hi = Hi;
|
|
30
|
-
exports.
|
|
37
|
+
exports.HiThere = void 0;
|
|
38
|
+
exports.LogMethod = LogMethod;
|
|
39
|
+
exports.ValidateArgs = ValidateArgs;
|
|
40
|
+
exports.a1 = exports.a = void 0;
|
|
31
41
|
exports.arrayBindingElements = arrayBindingElements;
|
|
32
42
|
exports.b = void 0;
|
|
33
43
|
exports.genericFunction = genericFunction;
|
|
@@ -64,8 +74,10 @@ Object.defineProperty(exports, "Compositions", {
|
|
|
64
74
|
return _Compositions();
|
|
65
75
|
}
|
|
66
76
|
});
|
|
77
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2, _dec5, _dec6, _dec7, _dec8, _class3, _class4;
|
|
67
78
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
68
79
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
80
|
+
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
69
81
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
70
82
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
71
83
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -158,5 +170,58 @@ function genericFunction(a) {
|
|
|
158
170
|
return function (a) {};
|
|
159
171
|
}
|
|
160
172
|
const gfnc2 = exports.gfnc2 = genericFunction('');
|
|
173
|
+
function LogMethod(message) {
|
|
174
|
+
return function (target, propertyKey, descriptor) {
|
|
175
|
+
const originalMethod = descriptor.value;
|
|
176
|
+
descriptor.value = function (...args) {
|
|
177
|
+
console.log(`Logging: ${message}`);
|
|
178
|
+
return originalMethod.apply(this, args);
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function CustomClassDecorator(config) {
|
|
183
|
+
return function (target) {
|
|
184
|
+
console.log(`Class ${config.name} - ${config.description}`);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
let ExampleDecoratorOne = exports.ExampleDecoratorOne = (_dec = CustomClassDecorator({
|
|
188
|
+
name: 'ExampleClass2',
|
|
189
|
+
description: 'This is an example class 2'
|
|
190
|
+
}), _dec2 = LogMethod('This is a log message'), _dec3 = Reflect.metadata("design:type", Function), _dec4 = Reflect.metadata("design:paramtypes", []), _dec(_class = (_class2 = class ExampleDecoratorOne {
|
|
191
|
+
exampleMethod() {
|
|
192
|
+
// Method logic
|
|
193
|
+
}
|
|
194
|
+
}, (_applyDecoratedDescriptor(_class2.prototype, "exampleMethod", [_dec2, _dec3, _dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "exampleMethod"), _class2.prototype)), _class2)) || _class);
|
|
195
|
+
function ValidateArgs(config) {
|
|
196
|
+
return function (target, propertyKey, descriptor) {
|
|
197
|
+
const originalMethod = descriptor.value;
|
|
198
|
+
descriptor.value = function (...args) {
|
|
199
|
+
if (args[0] && typeof args[0] !== config.type) {
|
|
200
|
+
throw new Error('Invalid argument type');
|
|
201
|
+
}
|
|
202
|
+
if (config.required && !args[0]) {
|
|
203
|
+
throw new Error('Argument is required');
|
|
204
|
+
}
|
|
205
|
+
return originalMethod.apply(this, args);
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
let ExampleDecoratorTwo = exports.ExampleDecoratorTwo = (_dec5 = CustomClassDecorator({
|
|
210
|
+
name: 'ExampleClass',
|
|
211
|
+
description: 'This is an example class',
|
|
212
|
+
fn: () => 'hi',
|
|
213
|
+
class: new ClassSomething('dsa'),
|
|
214
|
+
arr: ['hi', 5, true, false, undefined, () => {}, {
|
|
215
|
+
a: 'hi',
|
|
216
|
+
b: 5
|
|
217
|
+
}, new ClassSomething('dsa')]
|
|
218
|
+
}), _dec6 = ValidateArgs({
|
|
219
|
+
type: 'string',
|
|
220
|
+
required: true
|
|
221
|
+
}), _dec7 = Reflect.metadata("design:type", Function), _dec8 = Reflect.metadata("design:paramtypes", [String]), _dec5(_class3 = (_class4 = class ExampleDecoratorTwo {
|
|
222
|
+
exampleMethod(input) {
|
|
223
|
+
// Method logic
|
|
224
|
+
}
|
|
225
|
+
}, (_applyDecoratedDescriptor(_class4.prototype, "exampleMethod", [_dec6, _dec7, _dec8], Object.getOwnPropertyDescriptor(_class4.prototype, "exampleMethod"), _class4.prototype)), _class4)) || _class3);
|
|
161
226
|
|
|
162
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","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","_defineProperty","obj","value","_toPropertyKey","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","myFunc","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName","genericFunction","gfnc2"],"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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AA,GAAGD,eAAe,CAAS,EAAE,CAAC"}
|
|
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","target","property","decorators","descriptor","context","desc","configurable","initializer","writable","slice","reverse","reduce","decorator","value","undefined","_defineProperty","obj","_toPropertyKey","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","myFunc","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","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","propertyKey","originalMethod","args","console","log","apply","CustomClassDecorator","config","name","description","ExampleDecoratorOne","Reflect","metadata","exampleMethod","ValidateArgs","type","Error","required","ExampleDecoratorTwo","fn","class","arr","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,CA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