construct-hub 0.3.154 → 0.3.155

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/.jsii +2 -2
  2. package/lib/backend/transliterator/transliterator.ecs-entrypoint.bundle/index.js +3 -3
  3. package/lib/construct-hub.js +1 -1
  4. package/lib/package-sources/code-artifact.js +1 -1
  5. package/lib/package-sources/npmjs.js +1 -1
  6. package/lib/package-tag/index.js +2 -2
  7. package/lib/s3/storage.js +1 -1
  8. package/lib/spdx-license.js +1 -1
  9. package/package.json +4 -4
  10. package/website/asset-manifest.json +40 -40
  11. package/website/index.html +1 -1
  12. package/website/static/js/0.8a29c50e.chunk.js +2 -0
  13. package/website/static/js/{0.c3605bb7.chunk.js.map → 0.8a29c50e.chunk.js.map} +1 -1
  14. package/website/static/js/{1.b4fe0250.chunk.js → 1.81b10c86.chunk.js} +2 -2
  15. package/website/static/js/{1.b4fe0250.chunk.js.map → 1.81b10c86.chunk.js.map} +1 -1
  16. package/website/static/js/{10.82256882.chunk.js → 10.7a168079.chunk.js} +2 -2
  17. package/website/static/js/{10.82256882.chunk.js.map → 10.7a168079.chunk.js.map} +1 -1
  18. package/website/static/js/11.b47f8af6.chunk.js +2 -0
  19. package/website/static/js/11.b47f8af6.chunk.js.map +1 -0
  20. package/website/static/js/12.7302ec1d.chunk.js +2 -0
  21. package/website/static/js/12.7302ec1d.chunk.js.map +1 -0
  22. package/website/static/js/13.74aea17d.chunk.js +2 -0
  23. package/website/static/js/13.74aea17d.chunk.js.map +1 -0
  24. package/website/static/js/14.e4eddcaa.chunk.js +2 -0
  25. package/website/static/js/14.e4eddcaa.chunk.js.map +1 -0
  26. package/website/static/js/{15.cb507824.chunk.js → 15.6ef33063.chunk.js} +3 -3
  27. package/website/static/js/{15.cb507824.chunk.js.LICENSE.txt → 15.6ef33063.chunk.js.LICENSE.txt} +0 -0
  28. package/website/static/js/{15.cb507824.chunk.js.map → 15.6ef33063.chunk.js.map} +1 -1
  29. package/website/static/js/{16.e16a9156.chunk.js → 16.f993fdf0.chunk.js} +2 -2
  30. package/website/static/js/{16.e16a9156.chunk.js.map → 16.f993fdf0.chunk.js.map} +1 -1
  31. package/website/static/js/{4.1867cb66.chunk.js → 4.1eab3eb7.chunk.js} +3 -3
  32. package/website/static/js/{4.1867cb66.chunk.js.LICENSE.txt → 4.1eab3eb7.chunk.js.LICENSE.txt} +0 -0
  33. package/website/static/js/{4.1867cb66.chunk.js.map → 4.1eab3eb7.chunk.js.map} +1 -1
  34. package/website/static/js/5.57c48aa7.chunk.js +3 -0
  35. package/website/static/js/{5.58f05811.chunk.js.LICENSE.txt → 5.57c48aa7.chunk.js.LICENSE.txt} +0 -0
  36. package/website/static/js/5.57c48aa7.chunk.js.map +1 -0
  37. package/website/static/js/6.89539c5d.chunk.js +2 -0
  38. package/website/static/js/6.89539c5d.chunk.js.map +1 -0
  39. package/website/static/js/7.67fa553e.chunk.js +2 -0
  40. package/website/static/js/7.67fa553e.chunk.js.map +1 -0
  41. package/website/static/js/8.924ac8b3.chunk.js +2 -0
  42. package/website/static/js/8.924ac8b3.chunk.js.map +1 -0
  43. package/website/static/js/{9.f62df5f9.chunk.js → 9.4a5b1b09.chunk.js} +2 -2
  44. package/website/static/js/{9.f62df5f9.chunk.js.map → 9.4a5b1b09.chunk.js.map} +1 -1
  45. package/website/static/js/main.6e0a8f1a.chunk.js +2 -0
  46. package/website/static/js/main.6e0a8f1a.chunk.js.map +1 -0
  47. package/website/static/js/runtime-main.28fa38d3.js +2 -0
  48. package/website/static/js/{runtime-main.95a72f94.js.map → runtime-main.28fa38d3.js.map} +1 -1
  49. package/website/static/js/0.c3605bb7.chunk.js +0 -2
  50. package/website/static/js/11.c99943c1.chunk.js +0 -2
  51. package/website/static/js/11.c99943c1.chunk.js.map +0 -1
  52. package/website/static/js/12.5bc9ff9b.chunk.js +0 -2
  53. package/website/static/js/12.5bc9ff9b.chunk.js.map +0 -1
  54. package/website/static/js/13.fe6adf3a.chunk.js +0 -2
  55. package/website/static/js/13.fe6adf3a.chunk.js.map +0 -1
  56. package/website/static/js/14.b8011de8.chunk.js +0 -2
  57. package/website/static/js/14.b8011de8.chunk.js.map +0 -1
  58. package/website/static/js/5.58f05811.chunk.js +0 -3
  59. package/website/static/js/5.58f05811.chunk.js.map +0 -1
  60. package/website/static/js/6.91230520.chunk.js +0 -2
  61. package/website/static/js/6.91230520.chunk.js.map +0 -1
  62. package/website/static/js/7.17b6768f.chunk.js +0 -2
  63. package/website/static/js/7.17b6768f.chunk.js.map +0 -1
  64. package/website/static/js/8.aabf50c9.chunk.js +0 -2
  65. package/website/static/js/8.aabf50c9.chunk.js.map +0 -1
  66. package/website/static/js/main.0c51a84b.chunk.js +0 -2
  67. package/website/static/js/main.0c51a84b.chunk.js.map +0 -1
  68. package/website/static/js/runtime-main.95a72f94.js +0 -2
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[0],{223:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return fe}));var r=n(56),o=n.n(r),i=n(347),a=n.n(i),u=n(101),c=n.n(u),s=n(0),l=n.n(s),f=n(99),p=n.n(f),d="bodyAttributes",y="htmlAttributes",h="titleAttributes",b={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},m=(Object.keys(b).map((function(e){return b[e]})),"charset"),T="cssText",v="href",w="http-equiv",g="innerHTML",A="itemprop",C="name",O="property",E="rel",S="src",j="target",P={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k="defaultTitle",L="defer",I="encodeSpecialCharacters",x="onChangeClientState",M="titleTemplate",N=Object.keys(P).reduce((function(e,t){return e[P[t]]=t,e}),{}),R=[b.NOSCRIPT,b.SCRIPT,b.STYLE],D="data-react-helmet",H="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=Object.assign||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},F=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},B=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},U=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},K=function(e){var t=Q(e,b.TITLE),n=Q(e,M);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Q(e,k);return t||r||void 0},W=function(e){return Q(e,x)||function(){}},z=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return _({},e,t)}),{})},J=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[b.BASE]})).map((function(e){return e[b.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},G=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&ee("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var u=i[a],c=u.toLowerCase();-1===t.indexOf(c)||n===E&&"canonical"===e[n].toLowerCase()||c===E&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(u)||u!==g&&u!==T&&u!==A||(n=u)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var u=i[a],c=p()({},r[u],o[u]);r[u]=c}return e}),[]).reverse()},Q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},V=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){V(t)}),0)}}(),X=function(e){return clearTimeout(e)},Z="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||V:e.requestAnimationFrame||V,$="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:e.cancelAnimationFrame||X,ee=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},te=null,ne=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ie(b.BODY,r),ie(b.HTML,o),oe(f,p);var d={baseTag:ae(b.BASE,n),linkTags:ae(b.LINK,i),metaTags:ae(b.META,a),noscriptTags:ae(b.NOSCRIPT,u),scriptTags:ae(b.SCRIPT,s),styleTags:ae(b.STYLE,l)},y={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),c(e,y,h)},re=function(e){return Array.isArray(e)?e.join(""):e},oe=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=re(e)),ie(b.TITLE,t)},ie=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(D),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),u=0;u<a.length;u++){var c=a[u],s=t[c]||"";n.getAttribute(c)!==s&&n.setAttribute(c,s),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(D):n.getAttribute(D)!==a.join(",")&&n.setAttribute(D,a.join(","))}},ae=function(e,t){var n=document.head||document.querySelector(b.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===g)n.innerHTML=t.innerHTML;else if(r===T)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(D,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},ue=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[P[n]||n]=e[n],t}),t)},se=function(e,t,n){switch(e){case b.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[D]=!0,r),i=ce(n,o);return[l.a.createElement(b.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=ue(n),i=re(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+U(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+U(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case d:case y:return{toComponent:function(){return ce(t)},toString:function(){return ue(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[D]=!0,r);return Object.keys(t).forEach((function(e){var n=P[e]||e;if(n===g||n===T){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),l.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===g||e===T)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+U(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},le=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:se(b.BASE,t,r),bodyAttributes:se(d,n,r),htmlAttributes:se(y,o,r),link:se(b.LINK,i,r),meta:se(b.META,a,r),noscript:se(b.NOSCRIPT,u,r),script:se(b.SCRIPT,c,r),style:se(b.STYLE,s,r),title:se(b.TITLE,{title:f,titleAttributes:p},r)}},fe=function(e){var t,n;return n=t=function(t){function n(){return q(this,n),B(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!c()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case b.SCRIPT:case b.NOSCRIPT:return{innerHTML:t};case b.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return _({},r,((t={})[n.type]=[].concat(r[n.type]||[],[_({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case b.TITLE:return _({},o,((t={})[r.type]=a,t.titleAttributes=_({},i),t));case b.BODY:return _({},o,{bodyAttributes:_({},i)});case b.HTML:return _({},o,{htmlAttributes:_({},i)})}return _({},o,((n={})[r.type]=_({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=_({},t);return Object.keys(e).forEach((function(t){var r;n=_({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return l.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)}(F(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case b.LINK:case b.META:case b.NOSCRIPT:case b.SCRIPT:case b.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=F(t,["children"]),o=_({},r);return n&&(o=this.mapChildrenToProps(n,o)),l.a.createElement(e,o)},Y(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(l.a.Component),t.propTypes={base:o.a.object,bodyAttributes:o.a.object,children:o.a.oneOfType([o.a.arrayOf(o.a.node),o.a.node]),defaultTitle:o.a.string,defer:o.a.bool,encodeSpecialCharacters:o.a.bool,htmlAttributes:o.a.object,link:o.a.arrayOf(o.a.object),meta:o.a.arrayOf(o.a.object),noscript:o.a.arrayOf(o.a.object),onChangeClientState:o.a.func,script:o.a.arrayOf(o.a.object),style:o.a.arrayOf(o.a.object),title:o.a.string,titleAttributes:o.a.object,titleTemplate:o.a.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=le({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:J([v,j],e),bodyAttributes:z(d,e),defer:Q(e,L),encode:Q(e,I),htmlAttributes:z(y,e),linkTags:G(b.LINK,[E,v],e),metaTags:G(b.META,[C,m,w,O,A],e),noscriptTags:G(b.NOSCRIPT,[g],e),onChangeClientState:W(e),scriptTags:G(b.SCRIPT,[S,g],e),styleTags:G(b.STYLE,[T],e),title:K(e),titleAttributes:z(h,e)}}),(function(e){te&&$(te),e.defer?te=Z((function(){ne(e,(function(){te=null}))})):(ne(e),te=null)}),le)((function(){return null})));fe.renderStatic=fe.rewind}).call(this,n(108))},347:function(e,t,n){"use strict";var r,o=n(0),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function l(){c=e(s.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),l()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",u),f}}}}]);
2
- //# sourceMappingURL=0.c3605bb7.chunk.js.map
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[11],{206:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var s=r(0),i=r(223),n={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},a=r(107),o=r(2),c=function(e){var t=e.children,r=e.meta,c=e.pageName,l=Object(a.b)(n[c]);Object(s.useEffect)((function(){l()}),[l]);var u=r.suffix,d=void 0===u||u,h=r.title,b=r.description,p=d?"".concat(h," - Construct Hub"):h;["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)(i.a,{children:[!1,Object(o.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(o.jsx)("meta",{charSet:"utf-8"}),Object(o.jsx)("title",{children:p}),Object(o.jsx)("meta",{content:p,property:"og:title"}),Object(o.jsx)("meta",{content:p,name:"twitter:title"}),Object(o.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(o.jsx)("meta",{content:b,name:"description"}),Object(o.jsx)("meta",{content:b,property:"og:description"}),Object(o.jsx)("meta",{content:b,name:"twitter:description"})]}),t]})}},294:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return d})),r.d(t,"f",(function(){return j}));var s=r(123),i=r(2),n=function(e){var t=e.children;return Object(i.jsxs)(s.b,{bg:"white",color:"blue.800",h:"100%",w:"100%",children:[t,Object(i.jsx)(s.b,{py:5,width:"100%"})]})},a=function(e){var t=e.children;return Object(i.jsx)(s.b,{bg:"gray.50",py:20,width:"100%",children:Object(i.jsx)(s.i,{as:"h1",mx:"auto",textAlign:"center",children:t})})},o=r(130),c=function(e){var t=e.question,r=e.children;return Object(i.jsxs)(o.d,{children:[Object(i.jsxs)(o.b,{children:[Object(i.jsx)(s.b,{flex:"1",py:2,textAlign:"left",children:Object(i.jsx)(s.i,{as:"h3",ml:8,size:"sm",children:t})}),Object(i.jsx)(o.c,{})]}),Object(i.jsx)(o.e,{px:12,py:4,children:Object(i.jsx)(s.q,{color:"blue.800",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:r})})]})},l=r(54),u=function(e){var t=e.href,r=e.children;return Object(i.jsx)(l.a,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:r})},d=function(e){var t=e.heading,r=e.children;return Object(i.jsxs)(o.d,{children:[Object(i.jsxs)(o.b,{children:[Object(i.jsx)(s.b,{flex:"1",textAlign:"left",children:Object(i.jsx)(s.i,{as:"h2",ml:4,my:4,size:"lg",children:t})}),Object(i.jsx)(o.c,{})]}),Object(i.jsx)(o.e,{p:0,children:Object(i.jsx)(o.a,{allowMultiple:!0,w:"100%",children:r})})]})},h=r(6),b=r(20),p=["children"],j=function(e){var t=e.children,r=Object(b.a)(e,p);return Object(i.jsx)(o.a,Object(h.a)(Object(h.a)({allowMultiple:!0},r),{},{children:t}))}},599:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var s=r(130),i=r(123),n=r(294),a=r(206),o=r(62),c=r(2),l=function(){return Object(c.jsx)(a.a,{meta:{description:"Learn about contributing to Construct Hub.",title:"Contribute"},pageName:"contribute",children:Object(c.jsxs)(n.a,{children:[Object(c.jsx)(n.b,{children:"Contributing to Construct Hub"}),Object(c.jsxs)(s.a,{allowMultiple:!0,allowToggle:!0,defaultIndex:[0],children:[Object(c.jsxs)(n.c,{question:"How can I add my construct to Construct Hub?",children:[Object(c.jsxs)(i.q,{children:["Constructs intended for Construct Hub must be published to the"," ",Object(c.jsx)(n.d,{href:"https://www.npmjs.com/",children:"npm Registry"})," under Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses and annotated with a keyword recognized by Construct Hub (awscdk, cdk8s, or cdktf)."]}),Object(c.jsxs)(i.q,{children:["Additionally, since one of the main goals of Construct Hub is to enable an ecosystem of constructs that can be consumed by all CDK languages, your library ",Object(c.jsx)("strong",{children:"must"})," be compiled with"," ",Object(c.jsx)(n.d,{href:"https://aws.github.io/jsii/",children:"JSII"}),", a TypeScript-based tool for building multi-language libraries. Construct Hub leverages the type information produced by the JSII compiler to render a rich multi-language API reference for each construct."]}),Object(c.jsxs)(i.q,{children:["Construct Hub continuously monitors the npm Registry. Packages that meet the above requirements appear in Construct Hub in about 30 minutes. If your package does not appear in Construct Hub, but meets these requirements, please file an issue against our"," ",Object(c.jsx)(n.d,{href:"".concat(o.a,"/issues/new"),children:"GitHub repository."})]}),Object(c.jsxs)(i.q,{children:["The community has provided some great resources about publishing construct libraries that meet Construct Hub requirements. For example, see"," ",Object(c.jsxs)(n.d,{href:"https://dev.to/aws-builders/a-beginner-s-guide-to-create-aws-cdk-construct-library-with-projen-5eh4",children:["\u201cA Beginner's Guide to Create AWS CDK ConstructLibrary with"," ","projen\u201d"]})," ","by ",Object(c.jsx)(n.d,{href:"https://hayao-k.dev/",children:"hayao-k"}),"."]}),Object(c.jsxs)(i.q,{children:["If you already have a library written in TypeScript and want to migrate it to JSII so it can be included in Construct Hub, see the"," ",Object(c.jsx)(n.d,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII library author guide."})]})]}),Object(c.jsxs)(n.c,{question:"What are the best practices for improving discoverability of a construct library on Construct Hub?",children:[Object(c.jsx)(i.q,{children:"To improve your construct library\u2019s visibility on Construct Hub, follow these best practices:"}),Object(c.jsxs)(i.n,{sx:{li:{mt:4}},children:[Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Helpful description."})," Publish your library with a description. Libraries without description have lower chances to be discovered by users. When you write your library\u2019s description, think: Why would someone use it? What makes it unique? Make the description as accurate and differentiated as possible."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Helpful keywords."})," Publish your library with helpful keywords, ones that can help potential users to find your package. Helpful keywords can be technologies that are being used by the library, use cases the library is useful for, service names that are being used by the library etc. For example: \u2018Monitoring\u2019, \u2018Kubernetes\u2019, \u2018Cost Management\u2019, \u2018Websites\u2019, \u2018AI\u2019, \u2018Containers\u2019 and more."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Helpful keywords."})," Publish your library with helpful keywords, ones that can help potential users to find your package. Helpful keywords can be technologies that are being used by the library, use cases the library is useful for, service names that are being used by the library etc. For example: \u2018Monitoring\u2019, \u2018Kubernetes\u2019, \u2018Cost Management\u2019, \u2018Websites\u2019, \u2018AI\u2019, \u2018Containers\u2019 and more."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Helpful README."})," Review your library\u2019s README file. Is it developer-friendly? That is, can developers quickly understand the use case you\u2019re trying to solve? Does your README make it easy to get started with your library? Does it explain how your library is different from other libraries? Is it easy to understand at first glance the value developers gain from the library? For more information see *\u201cQ: What are the best practices for a developer-friendly README file?\u201d.*"]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"API documentation."})," Document the library classes, methods, properties in the library\u2019s code. Construct Hub will display this information when it automatically generates the API documentation."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Maintain your library."})," Developers prefer libraries that are updated on a regular basis. Our experience shows that successful libraries are those where publishers engage and collaborate with the user community, respond to issues and pull requests, fix bugs, and add capabilities. To gain more developers trust, maintain the releases section on your code repository and make sure to describe the changes between different releases. You may consider to link the libraries you\u2019ve published with your code repository."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"AWS Partner Network (APN) badge."})," If you\u2019re an AWS partner and you are publishing a library for your offering, please reach out to us and we will be happy to add a badge to your libraries with your company\u2019s name."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Enable support for multiple programming languages."})," ","Make your library usable by a broader set of users and increase its value to the ecosystem. Starting with your library written in TypeScript, JSII will create packages in the other CDK programming languages. Construct Hub will then automatically generate API reference and transliterate code samples. All you need to do is to follow the instructions under *\u201cQ: How can I add my construct to Construct Hub?\u201d.*"]})]})]}),Object(c.jsxs)(n.c,{question:"What are the best practices for writing a developer-friendly README file?",children:[Object(c.jsx)(i.q,{children:"Developer-friendly READMEs help readers quickly understand your library\u2019s relevance to their needs and its unique value in comparison to similar libraries on the Construct Hub. Below is a suggestion for a README file structure:"}),Object(c.jsxs)(i.r,{sx:{li:{mt:4}},children:[Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"State and maturity of the library."})," Start your READMEs with helpful badges like"," ",Object(c.jsx)(n.d,{href:"https://www.npmjs.com/package/cdk-codepipeline-badge-notification",children:"CDK pipelines badges"}),". It will help users see the state of your package."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Short description"}),". What does this library do? Which use case does it solve? Which technologies and services does it use or support?"]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"What is unique about this library?"})," Help readers quickly find the right library for their needs by stating its special advantages right up front. How does it compare to other libraries addressing the same need or that use the same technologies and services? You don\u2019t need an explicit \u201cus vs. them\u201d feature checklist; just make sure you communicate your library\u2019s unique value."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Code samples."})," Include as many complete and working code samples as you can to help developers quickly understand how they can use your library. Some developers start reading code samples before anything else. Write your code samples in TypeScript, and Construct Hub will transliterate them to the other programming languages your library supports. A good practice is to include a minimal code sample of how to use your library in the first page of your README."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Author information."})," Share information about you, other packages you\u2019ve published, and additional helpful links that can improve your credibility with readers."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"License and support."})," Include a \u201cLicense\u201d and \u201cContributing\u201d sections that invite users to contribute via links to your source code repository and issue tracker. (Construct Hub provides \u201cLicense\u201d and \u201cProvide Feedback\u201d in your library\u2019s package page, but it\u2019s convenient to have them in the README too.)"]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Diagrams."})," Diagrams always help readers quickly understand what a library does. Consider adding diagrams for libraries that create multiple services that work together."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Explanatory videos."})," Consider sharing links to videos that can help potential customers engage with your library."]}),Object(c.jsxs)(i.m,{children:[Object(c.jsx)("strong",{children:"Absolute links vs. relative."})," Use absolute links (those that start with http:// or https://) and not relative links. Relative links are prone to breaking when the content is shared elsewhere."]})]})]}),Object(c.jsx)(n.c,{question:"Why isn\u2019t my package displayed on Construct Hub?",children:Object(c.jsxs)(i.q,{children:["Construct Hub includes publicly-available constructs that are JSII-compatible and that were published to the npm Registry with a permissive open-source license and a CDK keyword: aws-cdk, cdk8s, or cdktf. If you believe your package qualifies, but it still does not appear in Construct Hub, please raise an issue"," ",Object(c.jsx)(n.d,{href:"".concat(o.a,"/issues/new"),children:"here"}),"."]})}),Object(c.jsx)(n.c,{question:"Can I update my package after it has been displayed?",children:Object(c.jsx)(i.q,{children:"Yes, you can and should! After you publish a new valid version to the public npm Registry, it should appear on Construct Hub in about 30 minutes."})}),Object(c.jsx)(n.c,{question:"How can I report a bug or contribute code to a construct?",children:Object(c.jsx)(i.q,{children:"Each package is owned by its publisher, so contributions, such as bug reports and pull requests, should be made via the repository link provided by the publisher. You may press the \u2018Provide feedback\u2019 link at the package page to open a new issue in at the package\u2019s repository."})}),Object(c.jsxs)(n.c,{question:"How can I participate in link the Construct Hub community?",children:["Construct Hub is itself an open-source construct! Join the"," ",Object(c.jsx)(n.d,{href:"https://github.com/cdklabs/construct-hub",children:"Construct Hub GitHub community"}),". You are also welcome to join the #construct-hub-dev channel in the"," ",Object(c.jsx)(n.d,{href:"https://cdk.dev/",children:"CDK community Slack workspace"})]}),Object(c.jsx)(n.c,{question:"Is there a Slack channel for the CDK community?",children:Object(c.jsxs)(i.q,{children:["Please join the"," ",Object(c.jsx)(n.d,{href:"https://cdk.dev/",children:"CDK Slack channel"}),". This Slack channel is managed by the CDK community, for the CDK community."]})})]})]})})}}}]);
2
- //# sourceMappingURL=11.c99943c1.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["constants/pageInfo.ts","components/Page/Page.tsx","components/FAQ/FAQ.tsx","components/FAQ/FAQHeading.tsx","components/FAQ/FAQItem.tsx","components/FAQ/FAQLink.tsx","components/FAQ/FAQSection.tsx","components/FAQ/FAQSections.tsx","views/Contribute/Contribute.tsx"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","join","Helmet","process","content","charSet","property","FAQ","bg","color","h","w","py","width","FAQHeading","as","mx","textAlign","FAQItem","question","flex","ml","size","px","fontSize","sx","p","marginTop","marginBottom","FAQLink","href","ExternalLink","hasWarning","textDecoration","FAQSection","heading","my","allowMultiple","FAQSections","accordionProps","Contribute","allowToggle","defaultIndex","CONSTRUCT_HUB_REPO_URL","li","mt"],"mappings":"2LAAaA,EAAW,CACtBC,WAAY,CACVC,MAAO,CACLC,KAAM,oBAGVC,KAAM,CACJF,MAAO,CACLC,KAAM,cAGVE,IAAK,CACHH,MAAO,CACLC,KAAM,oCAGVG,eAAgB,CACdJ,MAAO,CACLC,KAAM,yBAGVI,OAAQ,CACNL,MAAO,CACLC,KAAM,gBAGVK,UAAW,CACTN,MAAO,CACLC,KAAM,oBAGVM,SAAU,CACRC,KAAM,CACJC,SAAU,aAEZT,MAAO,CACLC,KAAM,mB,gBCtBCS,EAAqC,SAAC,GAI5C,IAHLC,EAGI,EAHJA,SACAC,EAEI,EAFJA,KACAC,EACI,EADJA,SAEMC,EAAgBC,YAAYjB,EAASe,IAE3CG,qBAAU,WACRF,MACC,CAACA,IAEJ,MAA8CF,EAAtCK,cAAR,SAAuBC,EAAuBN,EAAvBM,MAAOC,EAAgBP,EAAhBO,YACxBC,EAAiBH,EAAM,UAAMC,EAAN,oBAAgCA,EAKjD,CACV,6DACA,wNACA,yDACA,qKACA,qBACA,qCACAG,KAAK,KAEP,OACE,qCACE,eAACC,EAAA,EAAD,YACGC,EAID,sBAAMC,QAAQ,sCAAsCvB,KAAK,aACzD,sBAAMwB,QAAQ,UAEd,gCAAQL,IACR,sBAAMI,QAASJ,EAAgBM,SAAS,aACxC,sBAAMF,QAASJ,EAAgBnB,KAAK,kBACpC,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IAAD,6BACkB,IAChB,cAACZ,EAAA,EAAD,CAASuB,KAAK,mBAAd,+BAFF","file":"static/js/11.c99943c1.chunk.js","sourcesContent":["export const pageInfo = {\n contribute: {\n event: {\n name: \"Contribute Load\",\n },\n },\n home: {\n event: {\n name: \"Home Load\",\n },\n },\n faq: {\n event: {\n name: \"Frequently Asked Questions Load\",\n },\n },\n packageProfile: {\n event: {\n name: \"Package Profile Load\",\n },\n },\n search: {\n event: {\n name: \"Search Load\",\n },\n },\n siteTerms: {\n event: {\n name: \"Site Terms Load\",\n },\n },\n notFound: {\n page: {\n pageType: \"errorPage\",\n },\n event: {\n name: \"404 Page Load\",\n },\n },\n} as const;\n","import { FunctionComponent, useEffect } from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport { pageInfo } from \"../../constants/pageInfo\";\nimport { usePageView } from \"../../contexts/Analytics\";\n\nexport interface PageProps {\n pageName: keyof typeof pageInfo;\n meta: {\n suffix?: boolean;\n title: string;\n description: string;\n };\n}\n\nexport const Page: FunctionComponent<PageProps> = ({\n children,\n meta,\n pageName,\n}) => {\n const trackPageView = usePageView(pageInfo[pageName]);\n\n useEffect(() => {\n trackPageView();\n }, [trackPageView]);\n\n const { suffix = true, title, description } = meta;\n const formattedTitle = suffix ? `${title} - Construct Hub` : title;\n\n // Should be the same as the \"real\" CSP, except most things come from HTTP\n // instead of HTTPS (because it is protocol-relative, and the dev site is\n // served over plain HTTP).\n const csp = [\n \"default-src 'self' 'unsafe-inline' http://*.awsstatic.com;\",\n \"connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"frame-src http://aws.demdex.net http://dpm.demdex.net;\",\n \"img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"object-src 'none';\",\n \"style-src 'self' 'unsafe-inline';\",\n ].join(\" \");\n\n return (\n <>\n <Helmet>\n {process.env.NODE_ENV === \"development\" && (\n <meta content={csp} httpEquiv=\"Content-Security-Policy\" />\n )}\n\n <meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />\n <meta charSet=\"utf-8\" />\n\n <title>{formattedTitle}</title>\n <meta content={formattedTitle} property=\"og:title\" />\n <meta content={formattedTitle} name=\"twitter:title\" />\n <meta content=\"summary\" name=\"twitter:card\" />\n\n <meta content={description} name=\"description\" />\n <meta content={description} property=\"og:description\" />\n <meta content={description} name=\"twitter:description\" />\n </Helmet>\n {children}\n </>\n );\n};\n","import { Box } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQ: FunctionComponent = ({ children }) => (\n <Box bg=\"white\" color=\"blue.800\" h=\"100%\" w=\"100%\">\n {children}\n <Box py={5} width=\"100%\" />\n </Box>\n);\n","import { Box, Heading } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQHeading: FunctionComponent = ({ children }) => (\n <Box bg=\"gray.50\" py={20} width=\"100%\">\n <Heading as=\"h1\" mx=\"auto\" textAlign=\"center\">\n {children}\n </Heading>\n </Box>\n);\n","import {\n Heading,\n Text,\n AccordionIcon,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Box,\n} from \"@chakra-ui/react\";\nimport type { FunctionComponent, ReactChild } from \"react\";\n\nexport interface FAQItemProps {\n question: ReactChild;\n}\n\nexport const FAQItem: FunctionComponent<FAQItemProps> = ({\n question,\n children,\n}) => (\n <AccordionItem>\n <AccordionButton>\n <Box flex=\"1\" py={2} textAlign=\"left\">\n <Heading as=\"h3\" ml={8} size=\"sm\">\n {question}\n </Heading>\n </Box>\n <AccordionIcon />\n </AccordionButton>\n <AccordionPanel px={12} py={4}>\n <Text\n color=\"blue.800\"\n fontSize=\"md\"\n sx={{ p: { marginTop: \"0\", marginBottom: \"4\" } }}\n >\n {children}\n </Text>\n </AccordionPanel>\n </AccordionItem>\n);\n","import { FunctionComponent } from \"react\";\nimport { ExternalLink } from \"../../components/ExternalLink\";\n\nexport interface FAQLinkProps {\n href: string;\n}\n\nexport const FAQLink: FunctionComponent<FAQLinkProps> = ({\n href,\n children,\n}) => (\n <ExternalLink\n color=\"inherit\"\n hasWarning={false}\n href={href}\n textDecoration=\"underline\"\n >\n {children}\n </ExternalLink>\n);\n","import {\n AccordionIcon,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Heading,\n Box,\n Accordion,\n} from \"@chakra-ui/react\";\n\nimport type { FunctionComponent } from \"react\";\n\nexport interface FAQSectionProps {\n heading: string;\n}\n\nexport const FAQSection: FunctionComponent<FAQSectionProps> = ({\n heading,\n children,\n}) => (\n <AccordionItem>\n <AccordionButton>\n <Box flex=\"1\" textAlign=\"left\">\n <Heading as=\"h2\" ml={4} my={4} size=\"lg\">\n {heading}\n </Heading>\n </Box>\n <AccordionIcon />\n </AccordionButton>\n <AccordionPanel p={0}>\n <Accordion allowMultiple w=\"100%\">\n {children}\n </Accordion>\n </AccordionPanel>\n </AccordionItem>\n);\n","import { Accordion, AccordionProps } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQSections: FunctionComponent<AccordionProps> = ({\n children,\n ...accordionProps\n}) => (\n <Accordion allowMultiple {...accordionProps}>\n {children}\n </Accordion>\n);\n","import {\n Accordion,\n OrderedList,\n ListItem,\n Text,\n UnorderedList,\n} from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { FAQ, FAQHeading, FAQItem, FAQLink } from \"../../components/FAQ\";\nimport { Page } from \"../../components/Page\";\nimport { CONSTRUCT_HUB_REPO_URL } from \"../../constants/links\";\n\nexport const Contribute: FunctionComponent = () => (\n <Page\n meta={{\n description: \"Learn about contributing to Construct Hub.\",\n title: \"Contribute\",\n }}\n pageName=\"contribute\"\n >\n <FAQ>\n <FAQHeading>Contributing to Construct Hub</FAQHeading>\n\n <Accordion allowMultiple allowToggle defaultIndex={[0]}>\n <FAQItem question=\"How can I add my construct to Construct Hub?\">\n <Text>\n Constructs intended for Construct Hub must be published to the{\" \"}\n <FAQLink href=\"https://www.npmjs.com/\">npm Registry</FAQLink> under\n Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses\n and annotated with a keyword recognized by Construct Hub (awscdk,\n cdk8s, or cdktf).\n </Text>\n\n <Text>\n Additionally, since one of the main goals of Construct Hub is to\n enable an ecosystem of constructs that can be consumed by all CDK\n languages, your library <strong>must</strong> be compiled with{\" \"}\n <FAQLink href=\"https://aws.github.io/jsii/\">JSII</FAQLink>, a\n TypeScript-based tool for building multi-language libraries.\n Construct Hub leverages the type information produced by the JSII\n compiler to render a rich multi-language API reference for each\n construct.\n </Text>\n\n <Text>\n Construct Hub continuously monitors the npm Registry. Packages that\n meet the above requirements appear in Construct Hub in about 30\n minutes. If your package does not appear in Construct Hub, but meets\n these requirements, please file an issue against our{\" \"}\n <FAQLink href={`${CONSTRUCT_HUB_REPO_URL}/issues/new`}>\n GitHub repository.\n </FAQLink>\n </Text>\n\n <Text>\n The community has provided some great resources about publishing\n construct libraries that meet Construct Hub requirements. For\n example, see{\" \"}\n <FAQLink href=\"https://dev.to/aws-builders/a-beginner-s-guide-to-create-aws-cdk-construct-library-with-projen-5eh4\">\n “A Beginner&apos;s Guide to Create AWS CDK ConstructLibrary with{\" \"}\n projen”\n </FAQLink>{\" \"}\n by <FAQLink href=\"https://hayao-k.dev/\">hayao-k</FAQLink>.\n </Text>\n\n <Text>\n If you already have a library written in TypeScript and want to\n migrate it to JSII so it can be included in Construct Hub, see the{\" \"}\n <FAQLink href=\"https://aws.github.io/jsii/user-guides/#library-author-guide\">\n JSII library author guide.\n </FAQLink>\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What are the best practices for improving discoverability of a construct library on Construct Hub?\">\n <Text>\n To improve your construct library’s visibility on Construct Hub,\n follow these best practices:\n </Text>\n <OrderedList sx={{ li: { mt: 4 } }}>\n <ListItem>\n <strong>Helpful description.</strong> Publish your library with a\n description. Libraries without description have lower chances to\n be discovered by users. When you write your library’s description,\n think: Why would someone use it? What makes it unique? Make the\n description as accurate and differentiated as possible.\n </ListItem>\n\n <ListItem>\n <strong>Helpful keywords.</strong> Publish your library with\n helpful keywords, ones that can help potential users to find your\n package. Helpful keywords can be technologies that are being used\n by the library, use cases the library is useful for, service names\n that are being used by the library etc. For example: ‘Monitoring’,\n ‘Kubernetes’, ‘Cost Management’, ‘Websites’, ‘AI’, ‘Containers’\n and more.\n </ListItem>\n\n <ListItem>\n <strong>Helpful keywords.</strong> Publish your library with\n helpful keywords, ones that can help potential users to find your\n package. Helpful keywords can be technologies that are being used\n by the library, use cases the library is useful for, service names\n that are being used by the library etc. For example: ‘Monitoring’,\n ‘Kubernetes’, ‘Cost Management’, ‘Websites’, ‘AI’, ‘Containers’\n and more.\n </ListItem>\n\n <ListItem>\n <strong>Helpful README.</strong> Review your library’s README\n file. Is it developer-friendly? That is, can developers quickly\n understand the use case you’re trying to solve? Does your README\n make it easy to get started with your library? Does it explain how\n your library is different from other libraries? Is it easy to\n understand at first glance the value developers gain from the\n library? For more information see *“Q: What are the best practices\n for a developer-friendly README file?”.*\n </ListItem>\n\n <ListItem>\n <strong>API documentation.</strong> Document the library classes,\n methods, properties in the library’s code. Construct Hub will\n display this information when it automatically generates the API\n documentation.\n </ListItem>\n\n <ListItem>\n <strong>Maintain your library.</strong> Developers prefer\n libraries that are updated on a regular basis. Our experience\n shows that successful libraries are those where publishers engage\n and collaborate with the user community, respond to issues and\n pull requests, fix bugs, and add capabilities. To gain more\n developers trust, maintain the releases section on your code\n repository and make sure to describe the changes between different\n releases. You may consider to link the libraries you’ve published\n with your code repository.\n </ListItem>\n\n <ListItem>\n <strong>AWS Partner Network (APN) badge.</strong> If you’re an AWS\n partner and you are publishing a library for your offering, please\n reach out to us and we will be happy to add a badge to your\n libraries with your company’s name.\n </ListItem>\n\n <ListItem>\n <strong>\n Enable support for multiple programming languages.\n </strong>{\" \"}\n Make your library usable by a broader set of users and increase\n its value to the ecosystem. Starting with your library written in\n TypeScript, JSII will create packages in the other CDK programming\n languages. Construct Hub will then automatically generate API\n reference and transliterate code samples. All you need to do is to\n follow the instructions under *“Q: How can I add my construct to\n Construct Hub?”.*\n </ListItem>\n </OrderedList>\n </FAQItem>\n\n <FAQItem question=\"What are the best practices for writing a developer-friendly README file?\">\n <Text>\n Developer-friendly READMEs help readers quickly understand your\n library’s relevance to their needs and its unique value in\n comparison to similar libraries on the Construct Hub. Below is a\n suggestion for a README file structure:\n </Text>\n\n <UnorderedList sx={{ li: { mt: 4 } }}>\n <ListItem>\n <strong>State and maturity of the library.</strong> Start your\n READMEs with helpful badges like{\" \"}\n <FAQLink href=\"https://www.npmjs.com/package/cdk-codepipeline-badge-notification\">\n CDK pipelines badges\n </FAQLink>\n . It will help users see the state of your package.\n </ListItem>\n\n <ListItem>\n <strong>Short description</strong>. What does this library do?\n Which use case does it solve? Which technologies and services does\n it use or support?\n </ListItem>\n\n <ListItem>\n <strong>What is unique about this library?</strong> Help readers\n quickly find the right library for their needs by stating its\n special advantages right up front. How does it compare to other\n libraries addressing the same need or that use the same\n technologies and services? You don’t need an explicit “us vs.\n them” feature checklist; just make sure you communicate your\n library’s unique value.\n </ListItem>\n\n <ListItem>\n <strong>Code samples.</strong> Include as many complete and\n working code samples as you can to help developers quickly\n understand how they can use your library. Some developers start\n reading code samples before anything else. Write your code samples\n in TypeScript, and Construct Hub will transliterate them to the\n other programming languages your library supports. A good practice\n is to include a minimal code sample of how to use your library in\n the first page of your README.\n </ListItem>\n\n <ListItem>\n <strong>Author information.</strong> Share information about you,\n other packages you’ve published, and additional helpful links that\n can improve your credibility with readers.\n </ListItem>\n\n <ListItem>\n <strong>License and support.</strong> Include a “License” and\n “Contributing” sections that invite users to contribute via links\n to your source code repository and issue tracker. (Construct Hub\n provides “License” and “Provide Feedback” in your library’s\n package page, but it’s convenient to have them in the README too.)\n </ListItem>\n\n <ListItem>\n <strong>Diagrams.</strong> Diagrams always help readers quickly\n understand what a library does. Consider adding diagrams for\n libraries that create multiple services that work together.\n </ListItem>\n\n <ListItem>\n <strong>Explanatory videos.</strong> Consider sharing links to\n videos that can help potential customers engage with your library.\n </ListItem>\n\n <ListItem>\n <strong>Absolute links vs. relative.</strong> Use absolute links\n (those that start with http:// or https://) and not relative\n links. Relative links are prone to breaking when the content is\n shared elsewhere.\n </ListItem>\n </UnorderedList>\n </FAQItem>\n\n <FAQItem question=\"Why isn’t my package displayed on Construct Hub?\">\n <Text>\n Construct Hub includes publicly-available constructs that are\n JSII-compatible and that were published to the npm Registry with a\n permissive open-source license and a CDK keyword: aws-cdk, cdk8s, or\n cdktf. If you believe your package qualifies, but it still does not\n appear in Construct Hub, please raise an issue{\" \"}\n <FAQLink href={`${CONSTRUCT_HUB_REPO_URL}/issues/new`}>\n here\n </FAQLink>\n .\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Can I update my package after it has been displayed?\">\n <Text>\n Yes, you can and should! After you publish a new valid version to\n the public npm Registry, it should appear on Construct Hub in about\n 30 minutes.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I report a bug or contribute code to a construct?\">\n <Text>\n Each package is owned by its publisher, so contributions, such as\n bug reports and pull requests, should be made via the repository\n link provided by the publisher. You may press the ‘Provide feedback’\n link at the package page to open a new issue in at the package’s\n repository.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I participate in link the Construct Hub community?\">\n Construct Hub is itself an open-source construct! Join the{\" \"}\n <FAQLink href=\"https://github.com/cdklabs/construct-hub\">\n Construct Hub GitHub community\n </FAQLink>\n . You are also welcome to join the #construct-hub-dev channel in the{\" \"}\n <FAQLink href=\"https://cdk.dev/\">\n CDK community Slack workspace\n </FAQLink>\n </FAQItem>\n\n <FAQItem question=\"Is there a Slack channel for the CDK community?\">\n <Text>\n Please join the{\" \"}\n <FAQLink href=\"https://cdk.dev/\">CDK Slack channel</FAQLink>. This\n Slack channel is managed by the CDK community, for the CDK\n community.\n </Text>\n </FAQItem>\n </Accordion>\n </FAQ>\n </Page>\n);\n"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[12],{206:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),s=n(223),o={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},c=n(107),i=n(2),a=function(e){var t=e.children,n=e.meta,a=e.pageName,d=Object(c.b)(o[a]);Object(r.useEffect)((function(){d()}),[d]);var u=n.suffix,l=void 0===u||u,h=n.title,b=n.description,p=l?"".concat(h," - Construct Hub"):h;["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(s.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:p}),Object(i.jsx)("meta",{content:p,property:"og:title"}),Object(i.jsx)("meta",{content:p,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:b,name:"description"}),Object(i.jsx)("meta",{content:b,property:"og:description"}),Object(i.jsx)("meta",{content:b,name:"twitter:description"})]}),t]})}},294:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return j}));var r=n(123),s=n(2),o=function(e){var t=e.children;return Object(s.jsxs)(r.b,{bg:"white",color:"blue.800",h:"100%",w:"100%",children:[t,Object(s.jsx)(r.b,{py:5,width:"100%"})]})},c=function(e){var t=e.children;return Object(s.jsx)(r.b,{bg:"gray.50",py:20,width:"100%",children:Object(s.jsx)(r.i,{as:"h1",mx:"auto",textAlign:"center",children:t})})},i=n(130),a=function(e){var t=e.question,n=e.children;return Object(s.jsxs)(i.d,{children:[Object(s.jsxs)(i.b,{children:[Object(s.jsx)(r.b,{flex:"1",py:2,textAlign:"left",children:Object(s.jsx)(r.i,{as:"h3",ml:8,size:"sm",children:t})}),Object(s.jsx)(i.c,{})]}),Object(s.jsx)(i.e,{px:12,py:4,children:Object(s.jsx)(r.q,{color:"blue.800",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:n})})]})},d=n(54),u=function(e){var t=e.href,n=e.children;return Object(s.jsx)(d.a,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:n})},l=function(e){var t=e.heading,n=e.children;return Object(s.jsxs)(i.d,{children:[Object(s.jsxs)(i.b,{children:[Object(s.jsx)(r.b,{flex:"1",textAlign:"left",children:Object(s.jsx)(r.i,{as:"h2",ml:4,my:4,size:"lg",children:t})}),Object(s.jsx)(i.c,{})]}),Object(s.jsx)(i.e,{p:0,children:Object(s.jsx)(i.a,{allowMultiple:!0,w:"100%",children:n})})]})},h=n(6),b=n(20),p=["children"],j=function(e){var t=e.children,n=Object(b.a)(e,p);return Object(s.jsx)(i.a,Object(h.a)(Object(h.a)({allowMultiple:!0},n),{},{children:t}))}},600:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(123),s=n(294),o=n(206),c=n(62),i=n(2),a=function(){return Object(i.jsx)(o.a,{meta:{title:"FAQ",description:"Frequently Asked Questions"},pageName:"faq",children:Object(i.jsxs)(s.a,{children:[Object(i.jsx)(s.b,{children:"Frequently Asked Questions"}),Object(i.jsxs)(s.f,{defaultIndex:[0,1],children:[Object(i.jsxs)(s.e,{heading:"General",children:[Object(i.jsxs)(s.c,{question:"How can I contribute to Construct Hub?",children:["You are encouraged to contribute to the construct ecosystem by publishing CDK libraries, contributing code to Construct Hub and providing us and libraries\u2019 publishers feedback. For more information, go to"," ",Object(i.jsx)(s.d,{href:"https://constructs.dev/contribute",children:"https://constructs.dev/contribute"}),"."]}),Object(i.jsx)(s.c,{question:"What is Construct Hub?",children:Object(i.jsx)("p",{children:"Construct Hub is a place to discover CDK constructs \u2014 a central destination for discovering and sharing cloud application design patterns and reference architectures defined for the AWS CDK, CDK for Kubernetes (CDK8s), CDK for Terraform (CDKtf) and other construct-based tools."})}),Object(i.jsx)(s.c,{question:"Why should I use Construct Hub?",children:Object(i.jsx)(r.q,{children:"Construct Hub is a central venue where CDK developers can discover construct libraries to help them build their applications. You can find construct libraries in TypeScript, Python, Java and .NET (Go is coming soon!), browse their developer guides and API references, and explore code samples in all the programming language that the package supports."})}),Object(i.jsx)(s.c,{question:"What is a construct?",children:Object(i.jsxs)(r.q,{children:["The Constructs Programming Model (CPM) introduces the notion of"," ",Object(i.jsx)("strong",{children:"constructs"}),", which represent building blocks that can be used to assemble complete cloud applications of any complexity. AWS, enterprises, startups, and individual developers use CDK constructs to share proven architecture patterns as reusable code libraries, so that everyone can benefit from the collective wisdom of the community."]})}),Object(i.jsxs)(s.c,{question:"What are the prerequisites for using a construct library?",children:[Object(i.jsxs)(r.q,{children:["To use a construct library in your code, you need to have your preferred programming language installed. In order to synthesize, diff, and deploy collections of resources you will need to install the CDK Toolkit command-line tool. For AWS CDK install the"," ",Object(i.jsx)(s.d,{href:"https://docs.aws.amazon.com/cdk/latest/guide/cli.html",children:"AWS CDK Toolkit command-line tool,"})," ","for CDK8s install the"," ",Object(i.jsx)(s.d,{href:"https://cdk8s.io/docs/latest/getting-started/",children:"CDK8s command-line tool"})," ","and for CDKtf install the"," ",Object(i.jsx)(s.d,{href:"https://learn.hashicorp.com/tutorials/terraform/cdktf-install",children:"CDKtf command-line tool."})]}),Object(i.jsx)(r.q,{children:"The CDK8s CLI doesn\u2019t require having any registered account nor having a running Kubernetes cluster as it only updates Kubernetes manifests."}),Object(i.jsx)(r.q,{children:"The CDKtf CLI requires having Terraform, Node, Yarn and Docker installed."}),Object(i.jsx)(r.q,{children:"Some construct libraries\u2019 documentation may include additional prerequisites which are unique to their implementation."})]}),Object(i.jsx)(s.c,{question:"Who owns the constructs in Construct Hub?",children:Object(i.jsx)(r.q,{children:"Constructs are user-generated content owned by the publishers of the individual packages. Each is governed by its own license terms chosen by its publisher (although only packages that were published to the npm registry under Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses are included in Construct Hub). License information can be accessed directly through the hyperlinked package page."})}),Object(i.jsx)(s.c,{question:"Is the content served in Construct Hub meant to be consumed programmatically?",children:Object(i.jsxs)(r.q,{children:["No. The content displayed in the site is user-generated, with some display formatting. We do not advise that you consume constructs from the search results programmatically. Construct Hub is a search engine or portal intended to surface third-party content from a public endpoint. We provide these results for your convenience AS-IS in accordance with our"," ",Object(i.jsx)(s.d,{href:"https://constructs.dev/terms",children:"Construct Hub Site Terms"}),"."]})}),Object(i.jsx)(s.c,{question:"Which CDK types are available on the Construct Hub?",children:Object(i.jsx)(r.q,{children:"Construct Hub currently has constructs for the CDK for CloudFormation (AWS CDK), CDK for Kubernetes (CDK8s) and CDK for Terraform (CDKtf). We are open to adding other construct-based tools as they evolve."})}),Object(i.jsx)(s.c,{question:"What is CDK for CloudFormation (AWS CDK)?",children:Object(i.jsxs)(r.q,{children:["CDK for CloudFormation (AWS CDK) is an open-source software development framework for defining applications on AWS and reusable abstractions using familiar programming languages and rich object-oriented APIs. AWS CDK apps synthesize into standard AWS CloudFormation templates, which can be deployed to create infrastructure on AWS. See"," ",Object(i.jsx)(s.d,{href:"https://aws.amazon.com/cdk/",children:"AWS Cloud Development Kit"})," ","for more information."]})}),Object(i.jsx)(s.c,{question:"What is CDK for Kubernetes (CDK8s)?",children:Object(i.jsxs)(r.q,{children:["CDK for Kubernetes (CDK8s, pronounced \u201ccd kates\u201d) is an open-source software development framework for defining Kubernetes applications and reusable abstractions using familiar programming languages and rich object-oriented APIs. CDK8s apps synthesize into standard Kubernetes manifests that can be applied to any Kubernetes cluster. See"," ",Object(i.jsx)(s.d,{href:"https://cdk8s.io/",children:"CDK for Kubernetes"})," for more information."]})}),Object(i.jsx)(s.c,{question:"What is CDK for Terraform (CDKtf)?",children:Object(i.jsxs)(r.q,{children:["The community preview of the Cloud Development Kit for Terraform (CDKtf) allows you to define infrastructure using a familiar programming language such as TypeScript, Python, or Go, while leveraging the hundreds of providers and thousands of module definitions provided by Terraform and the Terraform ecosystem. See"," ",Object(i.jsx)(s.d,{href:"https://learn.hashicorp.com/tutorials/terraform/cdktf",children:"CDK for Terraform"})," ","for more information."]})}),Object(i.jsx)(s.c,{question:"What programming languages are supported?",children:Object(i.jsx)(r.q,{children:"The Construct Hub GA supports constructs available for Python, TypeScript, Java and .NET. Support for Go will be included soon."})}),Object(i.jsx)(s.c,{question:"Will Go be supported?",children:Object(i.jsx)(r.q,{children:"Yes! We can\u2019t promise exactly when, but it should be soon."})}),Object(i.jsx)(s.c,{question:"Can I view the source code of a construct?",children:Object(i.jsx)(r.q,{children:"Source code is usually available via the repository link provided by the construct\u2019s publisher; this link appears on Construct Hub. We have noticed that the code in the linked repository can sometimes be newer or older than the code in the published package, so exercise care."})}),Object(i.jsx)(s.c,{question:"How can I install a package?",children:Object(i.jsx)(r.q,{children:"The details vary by construct. Click \u201cInstall\u201d in the package page to see the construct\u2019s installation instructions."})}),Object(i.jsx)(s.c,{question:"How can I report abuse?",children:Object(i.jsx)(r.q,{children:'Your trust is vital to the success of Construct Hub. If you believe a package contains suspicious code, violates its dependencies\u2019 licenses, or is otherwise not behaving as a good citizen of the community, click "Report abuse" at the bottom of the package page and send us an email with explanations and evidence to support your claims. If we can verify the issue, we will take appropriate action, up to and including removing the package from Construct Hub.'})}),Object(i.jsx)(s.c,{question:"How can I report a bug or contribute code to a construct?",children:Object(i.jsx)(r.q,{children:'Each package is owned by its publisher, so contributions, such as bug reports and pull requests, should be made via the repository link provided by the publisher. You may press the "Provide feedback" link at the package page to open a new issue in the package\u2019s repository.'})}),Object(i.jsx)(s.c,{question:"Why isn\u2019t my package displayed on Construct Hub?",children:Object(i.jsxs)(r.q,{children:["Construct Hub includes publicly-available constructs that are JSII-compatible and that were published to the npm Registry under Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses and with a CDK keyword: aws-cdk, cdk8s, or cdktf. If you believe your package qualifies, but it still does not appear in Construct Hub, please raise an issue"," ",Object(i.jsx)(s.d,{href:"".concat(c.a,"/issues/new"),children:"here"}),"."]})}),Object(i.jsx)(s.c,{question:"Can I update my package after it has been displayed?",children:Object(i.jsx)(r.q,{children:"Yes, you can and should! After you publish a new valid version to the public npm Registry, it should appear on Construct Hub in about 30 minutes."})}),Object(i.jsx)(s.c,{question:"How does Construct Hub relates to the Construct Catalog?",children:Object(i.jsxs)(r.q,{children:["The Construct Catalog was built by the CDK community in collaboration with the AWS CDK team. Construct Hub is the official version of the Construct Catalog with ongoing support by the AWS CDK team and essentially replaces the Construct Catalog."," ",Object(i.jsx)(s.d,{href:"https://awscdk.io/",children:"https://awscdk.io"})," now redirects to Construct Hub."]})}),Object(i.jsx)(s.c,{question:"Is there a cost for using third-party constructs from Construct Hub?",children:Object(i.jsx)(r.q,{children:"All packages on Construct Hub are published under Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses and can be freely used in your applications. For details, review the package\u2019s license via its repository link."})}),Object(i.jsx)(s.c,{question:"How can I participate in the Construct Hub community?",children:Object(i.jsxs)(r.q,{children:["Construct Hub is itself an open-source construct! Join the"," ",Object(i.jsx)(s.d,{href:c.a,children:"Construct Hub GitHub community"}),". You are also welcome to join the ",Object(i.jsx)("code",{children:"#construct-hub-dev"})," ","channel in the"," ",Object(i.jsx)(s.d,{href:"https://cdk.dev/",children:"CDK community"})," Slack workspace."]})}),Object(i.jsx)(s.c,{question:"Is there a community slack channel for the CDK community?",children:Object(i.jsxs)(r.q,{children:["Please join the CDK Slack channel (",Object(i.jsx)(s.d,{href:"https://cdk.dev/",children:"https://cdk.dev/"}),"). This Slack channel is managed by the CDK community for the CDK community."]})})]}),Object(i.jsxs)(s.e,{heading:"Getting Started",children:[Object(i.jsx)(s.c,{question:"Do I need a user account for Construct Hub?",children:Object(i.jsx)(r.q,{children:"No. Construct Hub doesn\u2019t require any signup."})}),Object(i.jsx)(s.c,{question:"How do I get started?",children:Object(i.jsx)(r.q,{children:"Start by exploring featured, community and official libraries for the CDK of your interest. Run a free-text search to find libraries for your needs, then filter the results by your preferred programming language, CDK type, CDK major version and/or author type. To learn more about a library, click its card to see helpful information like metadata, README, API reference and code samples in your preferred programing language."})})]})]})]})})}}}]);
2
- //# sourceMappingURL=12.5bc9ff9b.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["constants/pageInfo.ts","components/Page/Page.tsx","components/FAQ/FAQ.tsx","components/FAQ/FAQHeading.tsx","components/FAQ/FAQItem.tsx","components/FAQ/FAQLink.tsx","components/FAQ/FAQSection.tsx","components/FAQ/FAQSections.tsx","views/FAQ/FAQ.tsx"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","join","Helmet","process","content","charSet","property","FAQ","bg","color","h","w","py","width","FAQHeading","as","mx","textAlign","FAQItem","question","flex","ml","size","px","fontSize","sx","p","marginTop","marginBottom","FAQLink","href","ExternalLink","hasWarning","textDecoration","FAQSection","heading","my","allowMultiple","FAQSections","accordionProps","F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IALrE,iBAMiB,IACf,cAACnC,EAAA,EAAD,CAASuB,KAAK,mBAAd,2BAPF,yBAYF,cAACvB,EAAA,EAAD,CAASY,SAAS,4DAAlB,SACE,eAAC,IAAD,iDAEE,cAACZ,EAAA,EAAD,CAASuB,KAAK,mBAAd,8BAFF,uFASJ,eAACvB,EAAA,EAAD,CAAY4B,QAAQ,kBAApB,UACE,cAAC5B,EAAA,EAAD,CAASY,SAAS,8CAAlB,SACE,cAAC,IAAD,mEAGF,cAACZ,EAAA,EAAD,CAASY,SAAS,wBAAlB,SACE,cAAC,IAAD","file":"static/js/12.5bc9ff9b.chunk.js","sourcesContent":["export const pageInfo = {\n contribute: {\n event: {\n name: \"Contribute Load\",\n },\n },\n home: {\n event: {\n name: \"Home Load\",\n },\n },\n faq: {\n event: {\n name: \"Frequently Asked Questions Load\",\n },\n },\n packageProfile: {\n event: {\n name: \"Package Profile Load\",\n },\n },\n search: {\n event: {\n name: \"Search Load\",\n },\n },\n siteTerms: {\n event: {\n name: \"Site Terms Load\",\n },\n },\n notFound: {\n page: {\n pageType: \"errorPage\",\n },\n event: {\n name: \"404 Page Load\",\n },\n },\n} as const;\n","import { FunctionComponent, useEffect } from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport { pageInfo } from \"../../constants/pageInfo\";\nimport { usePageView } from \"../../contexts/Analytics\";\n\nexport interface PageProps {\n pageName: keyof typeof pageInfo;\n meta: {\n suffix?: boolean;\n title: string;\n description: string;\n };\n}\n\nexport const Page: FunctionComponent<PageProps> = ({\n children,\n meta,\n pageName,\n}) => {\n const trackPageView = usePageView(pageInfo[pageName]);\n\n useEffect(() => {\n trackPageView();\n }, [trackPageView]);\n\n const { suffix = true, title, description } = meta;\n const formattedTitle = suffix ? `${title} - Construct Hub` : title;\n\n // Should be the same as the \"real\" CSP, except most things come from HTTP\n // instead of HTTPS (because it is protocol-relative, and the dev site is\n // served over plain HTTP).\n const csp = [\n \"default-src 'self' 'unsafe-inline' http://*.awsstatic.com;\",\n \"connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"frame-src http://aws.demdex.net http://dpm.demdex.net;\",\n \"img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"object-src 'none';\",\n \"style-src 'self' 'unsafe-inline';\",\n ].join(\" \");\n\n return (\n <>\n <Helmet>\n {process.env.NODE_ENV === \"development\" && (\n <meta content={csp} httpEquiv=\"Content-Security-Policy\" />\n )}\n\n <meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />\n <meta charSet=\"utf-8\" />\n\n <title>{formattedTitle}</title>\n <meta content={formattedTitle} property=\"og:title\" />\n <meta content={formattedTitle} name=\"twitter:title\" />\n <meta content=\"summary\" name=\"twitter:card\" />\n\n <meta content={description} name=\"description\" />\n <meta content={description} property=\"og:description\" />\n <meta content={description} name=\"twitter:description\" />\n </Helmet>\n {children}\n </>\n );\n};\n","import { Box } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQ: FunctionComponent = ({ children }) => (\n <Box bg=\"white\" color=\"blue.800\" h=\"100%\" w=\"100%\">\n {children}\n <Box py={5} width=\"100%\" />\n </Box>\n);\n","import { Box, Heading } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQHeading: FunctionComponent = ({ children }) => (\n <Box bg=\"gray.50\" py={20} width=\"100%\">\n <Heading as=\"h1\" mx=\"auto\" textAlign=\"center\">\n {children}\n </Heading>\n </Box>\n);\n","import {\n Heading,\n Text,\n AccordionIcon,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Box,\n} from \"@chakra-ui/react\";\nimport type { FunctionComponent, ReactChild } from \"react\";\n\nexport interface FAQItemProps {\n question: ReactChild;\n}\n\nexport const FAQItem: FunctionComponent<FAQItemProps> = ({\n question,\n children,\n}) => (\n <AccordionItem>\n <AccordionButton>\n <Box flex=\"1\" py={2} textAlign=\"left\">\n <Heading as=\"h3\" ml={8} size=\"sm\">\n {question}\n </Heading>\n </Box>\n <AccordionIcon />\n </AccordionButton>\n <AccordionPanel px={12} py={4}>\n <Text\n color=\"blue.800\"\n fontSize=\"md\"\n sx={{ p: { marginTop: \"0\", marginBottom: \"4\" } }}\n >\n {children}\n </Text>\n </AccordionPanel>\n </AccordionItem>\n);\n","import { FunctionComponent } from \"react\";\nimport { ExternalLink } from \"../../components/ExternalLink\";\n\nexport interface FAQLinkProps {\n href: string;\n}\n\nexport const FAQLink: FunctionComponent<FAQLinkProps> = ({\n href,\n children,\n}) => (\n <ExternalLink\n color=\"inherit\"\n hasWarning={false}\n href={href}\n textDecoration=\"underline\"\n >\n {children}\n </ExternalLink>\n);\n","import {\n AccordionIcon,\n AccordionButton,\n AccordionItem,\n AccordionPanel,\n Heading,\n Box,\n Accordion,\n} from \"@chakra-ui/react\";\n\nimport type { FunctionComponent } from \"react\";\n\nexport interface FAQSectionProps {\n heading: string;\n}\n\nexport const FAQSection: FunctionComponent<FAQSectionProps> = ({\n heading,\n children,\n}) => (\n <AccordionItem>\n <AccordionButton>\n <Box flex=\"1\" textAlign=\"left\">\n <Heading as=\"h2\" ml={4} my={4} size=\"lg\">\n {heading}\n </Heading>\n </Box>\n <AccordionIcon />\n </AccordionButton>\n <AccordionPanel p={0}>\n <Accordion allowMultiple w=\"100%\">\n {children}\n </Accordion>\n </AccordionPanel>\n </AccordionItem>\n);\n","import { Accordion, AccordionProps } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQSections: FunctionComponent<AccordionProps> = ({\n children,\n ...accordionProps\n}) => (\n <Accordion allowMultiple {...accordionProps}>\n {children}\n </Accordion>\n);\n","import { Text } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport {\n FAQ,\n FAQHeading,\n FAQSections,\n FAQSection,\n FAQItem,\n FAQLink,\n} from \"../../components/FAQ\";\nimport { Page } from \"../../components/Page\";\nimport { CONSTRUCT_HUB_REPO_URL } from \"../../constants/links\";\n\nexport const FAQPage: FunctionComponent = () => (\n <Page\n meta={{\n title: \"FAQ\",\n description: \"Frequently Asked Questions\",\n }}\n pageName=\"faq\"\n >\n <FAQ>\n <FAQHeading>Frequently Asked Questions</FAQHeading>\n\n <FAQSections defaultIndex={[0, 1]}>\n <FAQSection heading=\"General\">\n <FAQItem question=\"How can I contribute to Construct Hub?\">\n You are encouraged to contribute to the construct ecosystem by\n publishing CDK libraries, contributing code to Construct Hub and\n providing us and libraries’ publishers feedback. For more\n information, go to{\" \"}\n <FAQLink href=\"https://constructs.dev/contribute\">\n https://constructs.dev/contribute\n </FAQLink>\n .\n </FAQItem>\n\n <FAQItem question=\"What is Construct Hub?\">\n <p>\n Construct Hub is a place to discover CDK constructs &mdash; a\n central destination for discovering and sharing cloud application\n design patterns and reference architectures defined for the AWS\n CDK, CDK for Kubernetes (CDK8s), CDK for Terraform (CDKtf) and\n other construct-based tools.\n </p>\n </FAQItem>\n\n <FAQItem question=\"Why should I use Construct Hub?\">\n <Text>\n Construct Hub is a central venue where CDK developers can discover\n construct libraries to help them build their applications. You can\n find construct libraries in TypeScript, Python, Java and .NET (Go\n is coming soon!), browse their developer guides and API\n references, and explore code samples in all the programming\n language that the package supports.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What is a construct?\">\n <Text>\n The Constructs Programming Model (CPM) introduces the notion of{\" \"}\n <strong>constructs</strong>, which represent building blocks that\n can be used to assemble complete cloud applications of any\n complexity. AWS, enterprises, startups, and individual developers\n use CDK constructs to share proven architecture patterns as\n reusable code libraries, so that everyone can benefit from the\n collective wisdom of the community.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What are the prerequisites for using a construct library?\">\n <Text>\n To use a construct library in your code, you need to have your\n preferred programming language installed. In order to synthesize,\n diff, and deploy collections of resources you will need to install\n the CDK Toolkit command-line tool. For AWS CDK install the{\" \"}\n <FAQLink href=\"https://docs.aws.amazon.com/cdk/latest/guide/cli.html\">\n AWS CDK Toolkit command-line tool,\n </FAQLink>{\" \"}\n for CDK8s install the{\" \"}\n <FAQLink href=\"https://cdk8s.io/docs/latest/getting-started/\">\n CDK8s command-line tool\n </FAQLink>{\" \"}\n and for CDKtf install the{\" \"}\n <FAQLink href=\"https://learn.hashicorp.com/tutorials/terraform/cdktf-install\">\n CDKtf command-line tool.\n </FAQLink>\n </Text>\n <Text>\n The CDK8s CLI doesn’t require having any registered account nor\n having a running Kubernetes cluster as it only updates Kubernetes\n manifests.\n </Text>\n <Text>\n The CDKtf CLI requires having Terraform, Node, Yarn and Docker\n installed.\n </Text>\n <Text>\n Some construct libraries’ documentation may include additional\n prerequisites which are unique to their implementation.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Who owns the constructs in Construct Hub?\">\n <Text>\n Constructs are user-generated content owned by the publishers of\n the individual packages. Each is governed by its own license terms\n chosen by its publisher (although only packages that were\n published to the npm registry under Apache, BSD, EPL, MPL-2.0, ISC\n and CDDL or MIT open source licenses are included in Construct\n Hub). License information can be accessed directly through the\n hyperlinked package page.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Is the content served in Construct Hub meant to be consumed programmatically?\">\n <Text>\n No. The content displayed in the site is user-generated, with some\n display formatting. We do not advise that you consume constructs\n from the search results programmatically. Construct Hub is a\n search engine or portal intended to surface third-party content\n from a public endpoint. We provide these results for your\n convenience AS-IS in accordance with our{\" \"}\n <FAQLink href=\"https://constructs.dev/terms\">\n Construct Hub Site Terms\n </FAQLink>\n .\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Which CDK types are available on the Construct Hub?\">\n <Text>\n Construct Hub currently has constructs for the CDK for\n CloudFormation (AWS CDK), CDK for Kubernetes (CDK8s) and CDK for\n Terraform (CDKtf). We are open to adding other construct-based\n tools as they evolve.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What is CDK for CloudFormation (AWS CDK)?\">\n <Text>\n CDK for CloudFormation (AWS CDK) is an open-source software\n development framework for defining applications on AWS and\n reusable abstractions using familiar programming languages and\n rich object-oriented APIs. AWS CDK apps synthesize into standard\n AWS CloudFormation templates, which can be deployed to create\n infrastructure on AWS. See{\" \"}\n <FAQLink href=\"https://aws.amazon.com/cdk/\">\n AWS Cloud Development Kit\n </FAQLink>{\" \"}\n for more information.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What is CDK for Kubernetes (CDK8s)?\">\n <Text>\n CDK for Kubernetes (CDK8s, pronounced “cd kates”) is an\n open-source software development framework for defining Kubernetes\n applications and reusable abstractions using familiar programming\n languages and rich object-oriented APIs. CDK8s apps synthesize\n into standard Kubernetes manifests that can be applied to any\n Kubernetes cluster. See{\" \"}\n <FAQLink href=\"https://cdk8s.io/\">CDK for Kubernetes</FAQLink> for\n more information.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What is CDK for Terraform (CDKtf)?\">\n <Text>\n The community preview of the Cloud Development Kit for Terraform\n (CDKtf) allows you to define infrastructure using a familiar\n programming language such as TypeScript, Python, or Go, while\n leveraging the hundreds of providers and thousands of module\n definitions provided by Terraform and the Terraform ecosystem. See{\" \"}\n <FAQLink href=\"https://learn.hashicorp.com/tutorials/terraform/cdktf\">\n CDK for Terraform\n </FAQLink>{\" \"}\n for more information.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"What programming languages are supported?\">\n <Text>\n The Construct Hub GA supports constructs available for Python,\n TypeScript, Java and .NET. Support for Go will be included soon.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Will Go be supported?\">\n <Text>\n Yes! We can’t promise exactly when, but it should be soon.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Can I view the source code of a construct?\">\n <Text>\n Source code is usually available via the repository link provided\n by the construct’s publisher; this link appears on Construct Hub.\n We have noticed that the code in the linked repository can\n sometimes be newer or older than the code in the published\n package, so exercise care.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I install a package?\">\n <Text>\n The details vary by construct. Click “Install” in the package page\n to see the construct’s installation instructions.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I report abuse?\">\n <Text>\n Your trust is vital to the success of Construct Hub. If you\n believe a package contains suspicious code, violates its\n dependencies’ licenses, or is otherwise not behaving as a good\n citizen of the community, click &quot;Report abuse&quot; at the\n bottom of the package page and send us an email with explanations\n and evidence to support your claims. If we can verify the issue,\n we will take appropriate action, up to and including removing the\n package from Construct Hub.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I report a bug or contribute code to a construct?\">\n <Text>\n Each package is owned by its publisher, so contributions, such as\n bug reports and pull requests, should be made via the repository\n link provided by the publisher. You may press the &quot;Provide\n feedback&quot; link at the package page to open a new issue in the\n package’s repository.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Why isn’t my package displayed on Construct Hub?\">\n <Text>\n Construct Hub includes publicly-available constructs that are\n JSII-compatible and that were published to the npm Registry under\n Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source\n licenses and with a CDK keyword: aws-cdk, cdk8s, or cdktf. If you\n believe your package qualifies, but it still does not appear in\n Construct Hub, please raise an issue{\" \"}\n <FAQLink href={`${CONSTRUCT_HUB_REPO_URL}/issues/new`}>\n here\n </FAQLink>\n .\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Can I update my package after it has been displayed?\">\n <Text>\n Yes, you can and should! After you publish a new valid version to\n the public npm Registry, it should appear on Construct Hub in\n about 30 minutes.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How does Construct Hub relates to the Construct Catalog?\">\n <Text>\n The Construct Catalog was built by the CDK community in\n collaboration with the AWS CDK team. Construct Hub is the official\n version of the Construct Catalog with ongoing support by the AWS\n CDK team and essentially replaces the Construct Catalog.{\" \"}\n <FAQLink href=\"https://awscdk.io/\">https://awscdk.io</FAQLink> now\n redirects to Construct Hub.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Is there a cost for using third-party constructs from Construct Hub?\">\n <Text>\n All packages on Construct Hub are published under Apache, BSD,\n EPL, MPL-2.0, ISC and CDDL or MIT open source licenses and can be\n freely used in your applications. For details, review the\n package’s license via its repository link.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"How can I participate in the Construct Hub community?\">\n <Text>\n Construct Hub is itself an open-source construct! Join the{\" \"}\n <FAQLink href={CONSTRUCT_HUB_REPO_URL}>\n Construct Hub GitHub community\n </FAQLink>\n . You are also welcome to join the <code>#construct-hub-dev</code>{\" \"}\n channel in the{\" \"}\n <FAQLink href=\"https://cdk.dev/\">CDK community</FAQLink> Slack\n workspace.\n </Text>\n </FAQItem>\n\n <FAQItem question=\"Is there a community slack channel for the CDK community?\">\n <Text>\n Please join the CDK Slack channel (\n <FAQLink href=\"https://cdk.dev/\">https://cdk.dev/</FAQLink>). This\n Slack channel is managed by the CDK community for the CDK\n community.\n </Text>\n </FAQItem>\n </FAQSection>\n\n <FAQSection heading=\"Getting Started\">\n <FAQItem question=\"Do I need a user account for Construct Hub?\">\n <Text>No. Construct Hub doesn’t require any signup.</Text>\n </FAQItem>\n\n <FAQItem question=\"How do I get started?\">\n <Text>\n Start by exploring featured, community and official libraries for\n the CDK of your interest. Run a free-text search to find libraries\n for your needs, then filter the results by your preferred\n programming language, CDK type, CDK major version and/or author\n type. To learn more about a library, click its card to see helpful\n information like metadata, README, API reference and code samples\n in your preferred programing language.\n </Text>\n </FAQItem>\n </FAQSection>\n </FAQSections>\n </FAQ>\n </Page>\n);\n"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[13],{206:function(e,t,s){"use strict";s.d(t,"a",(function(){return o}));var n=s(0),c=s(223),a={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},r=s(107),i=s(2),o=function(e){var t=e.children,s=e.meta,o=e.pageName,d=Object(r.b)(a[o]);Object(n.useEffect)((function(){d()}),[d]);var m=s.suffix,p=void 0===m||m,u=s.title,b=s.description,h=p?"".concat(u," - Construct Hub"):u;["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:b,name:"description"}),Object(i.jsx)("meta",{content:b,property:"og:description"}),Object(i.jsx)("meta",{content:b,name:"twitter:description"})]}),t]})}},263:function(e,t,s){"use strict";s.r(t),s.d(t,"NotFound",(function(){return j})),s.d(t,"default",(function(){return j}));var n=s(123),c=s(125),a=s(26),r=s(206),i=s(6),o=s(20),d=s(3),m=s(129),p=s(2),u=["sources"],b=Object(d.e)((function(e,t){var s=e.sources,c=Object(o.a)(e,u);return Object(p.jsxs)(n.b,{as:"picture",children:[null===s||void 0===s?void 0:s.map((function(e,t){return Object(p.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(p.jsx)(m.a,Object(i.a)({ref:t},c))]})}));b.displayName="Picture";var h={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},j=function(){return Object(p.jsx)(r.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(p.jsxs)(n.c,{h:"100%",position:"relative",w:"100%",children:[Object(p.jsx)(b,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),Object(p.jsxs)(n.f,{align:"center",direction:"column",justify:"center",children:[Object(p.jsx)(b,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(p.jsx)(c.a,{as:a.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}}}]);
2
- //# sourceMappingURL=13.fe6adf3a.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["constants/pageInfo.ts","components/Page/Page.tsx","components/Picture/Picture.tsx","views/NotFound/NotFound.tsx"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","join","Helmet","process","content","charSet","property","Picture","forwardRef","ref","sources","props","as","map","source","idx","media","srcSet","displayName","bgSources","optimal","fallback","NotFound","h","position","w","alt","inset","src","zIndex","align","direction","justify","Link","colorScheme","to"],"mappings":"2LAAaA,EAAW,CACtBC,WAAY,CACVC,MAAO,CACLC,KAAM,oBAGVC,KAAM,CACJF,MAAO,CACLC,KAAM,cAGVE,IAAK,CACHH,MAAO,CACLC,KAAM,oCAGVG,eAAgB,CACdJ,MAAO,CACLC,KAAM,yBAGVI,OAAQ,CACNL,MAAO,CACLC,KAAM,gBAGVK,UAAW,CACTN,MAAO,CACLC,KAAM,oBAGVM,SAAU,CACRC,KAAM,CACJC,SAAU,aAEZT,MAAO,CACLC,KAAM,m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AAC,IAAD,CAAQ8B,EAAE,OAAOC,SAAS,WAAWC,EAAE,OAAvC,UACE,cAAClB,EAAD,CACEmB,IAAI,GACJC,MAAO,EACPH,SAAS,WACTd,QAASS,EAAUC,QACnBQ,IAAKT,EAAUE,SACfQ,OAAO,SAET,eAAC,IAAD,CAAMC,MAAM,SAASC,UAAU,SAASC,QAAQ,SAAhD,UACE,cAACzB,EAAD,CACEmB,IAAI,YACJhB,QAAS,CAAC,CAAEO,OAAQ,uBACpBW,IAAI,sBAEN,cAAC,IAAD,CAAQhB,GAAIqB,IAAMC,YAAY,OAAOC,GAAG,IAAxC","file":"static/js/13.fe6adf3a.chunk.js","sourcesContent":["export const pageInfo = {\n contribute: {\n event: {\n name: \"Contribute Load\",\n },\n },\n home: {\n event: {\n name: \"Home Load\",\n },\n },\n faq: {\n event: {\n name: \"Frequently Asked Questions Load\",\n },\n },\n packageProfile: {\n event: {\n name: \"Package Profile Load\",\n },\n },\n search: {\n event: {\n name: \"Search Load\",\n },\n },\n siteTerms: {\n event: {\n name: \"Site Terms Load\",\n },\n },\n notFound: {\n page: {\n pageType: \"errorPage\",\n },\n event: {\n name: \"404 Page Load\",\n },\n },\n} as const;\n","import { FunctionComponent, useEffect } from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport { pageInfo } from \"../../constants/pageInfo\";\nimport { usePageView } from \"../../contexts/Analytics\";\n\nexport interface PageProps {\n pageName: keyof typeof pageInfo;\n meta: {\n suffix?: boolean;\n title: string;\n description: string;\n };\n}\n\nexport const Page: FunctionComponent<PageProps> = ({\n children,\n meta,\n pageName,\n}) => {\n const trackPageView = usePageView(pageInfo[pageName]);\n\n useEffect(() => {\n trackPageView();\n }, [trackPageView]);\n\n const { suffix = true, title, description } = meta;\n const formattedTitle = suffix ? `${title} - Construct Hub` : title;\n\n // Should be the same as the \"real\" CSP, except most things come from HTTP\n // instead of HTTPS (because it is protocol-relative, and the dev site is\n // served over plain HTTP).\n const csp = [\n \"default-src 'self' 'unsafe-inline' http://*.awsstatic.com;\",\n \"connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"frame-src http://aws.demdex.net http://dpm.demdex.net;\",\n \"img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"object-src 'none';\",\n \"style-src 'self' 'unsafe-inline';\",\n ].join(\" \");\n\n return (\n <>\n <Helmet>\n {process.env.NODE_ENV === \"development\" && (\n <meta content={csp} httpEquiv=\"Content-Security-Policy\" />\n )}\n\n <meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />\n <meta charSet=\"utf-8\" />\n\n <title>{formattedTitle}</title>\n <meta content={formattedTitle} property=\"og:title\" />\n <meta content={formattedTitle} name=\"twitter:title\" />\n <meta content=\"summary\" name=\"twitter:card\" />\n\n <meta content={description} name=\"description\" />\n <meta content={description} property=\"og:description\" />\n <meta content={description} name=\"twitter:description\" />\n </Helmet>\n {children}\n </>\n );\n};\n","import { Box, HTMLChakraProps, forwardRef, Image } from \"@chakra-ui/react\";\n\nexport interface PictureProps extends HTMLChakraProps<\"img\"> {\n alt: string;\n src: string;\n sources?: {\n media?: string;\n srcSet: string;\n }[];\n}\n\nexport const Picture = forwardRef<PictureProps, \"img\">(\n ({ sources, ...props }, ref) => (\n <Box as=\"picture\">\n {sources?.map((source, idx) => (\n <source key={idx} media={source.media} srcSet={source.srcSet} />\n ))}\n <Image ref={ref} {...props} />\n </Box>\n )\n);\n\nPicture.displayName = \"Picture\";\n","import { Button, Center, Flex } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Page } from \"../../components/Page\";\nimport { Picture } from \"../../components/Picture\";\n\nconst bgSources = {\n optimal: [\n { media: \"(max-width:1024px)\", srcSet: \"/assets/404-hive@50.webp\" },\n { media: \"(min-width:1024px)\", srcSet: \"/assets/404-hive@100.webp\" },\n { media: \"(min-width:1024px)\", srcSet: \"/assets/404-hive@100.png\" },\n ],\n fallback: \"/assets/404-hive@50.png\",\n};\n\nexport const NotFound: FunctionComponent = () => {\n return (\n <Page\n meta={{\n title: \"Not Found\",\n description: \"Oops! The page you were looking for does not exist\",\n }}\n pageName=\"notFound\"\n >\n <Center h=\"100%\" position=\"relative\" w=\"100%\">\n <Picture\n alt=\"\"\n inset={0}\n position=\"absolute\"\n sources={bgSources.optimal}\n src={bgSources.fallback}\n zIndex=\"hide\"\n />\n <Flex align=\"center\" direction=\"column\" justify=\"center\">\n <Picture\n alt=\"404 Image\"\n sources={[{ srcSet: \"/assets/robot.webp\" }]}\n src=\"/assets/robot.png\"\n />\n <Button as={Link} colorScheme=\"blue\" to=\"/\">\n Take Me Home\n </Button>\n </Flex>\n </Center>\n </Page>\n );\n};\n"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[14],{206:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(0),a=n(223),c={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},i=n(107),r=n(2),o=function(e){var t=e.children,n=e.meta,o=e.pageName,h=Object(i.b)(c[o]);Object(s.useEffect)((function(){h()}),[h]);var d=n.suffix,m=void 0===d||d,l=n.title,u=n.description,p=m?"".concat(l," - Construct Hub"):l;["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)(a.a,{children:[!1,Object(r.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(r.jsx)("meta",{charSet:"utf-8"}),Object(r.jsx)("title",{children:p}),Object(r.jsx)("meta",{content:p,property:"og:title"}),Object(r.jsx)("meta",{content:p,name:"twitter:title"}),Object(r.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(r.jsx)("meta",{content:u,name:"description"}),Object(r.jsx)("meta",{content:u,property:"og:description"}),Object(r.jsx)("meta",{content:u,name:"twitter:description"})]}),t]})}},601:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var s=n(123),a=n(54),c=n(206),i=n(62),r=n(2),o=function(){return Object(r.jsx)(c.a,{meta:{title:"Site Terms",description:"View the Construct Hub Site Terms"},pageName:"siteTerms",children:Object(r.jsx)(s.b,{bg:"white",h:"100%",py:16,w:"100%",children:Object(r.jsxs)(s.b,{as:"article",color:"gray.800",fontSize:"lg",maxW:{base:"80%",md:"38rem"},mx:"auto",textAlign:"justify",w:"100%",children:[Object(r.jsx)(s.i,{as:"h1",color:"blue.800",mb:8,mx:"auto",size:"lg",children:"AWS Site Terms for CDK Construct Hub"}),Object(r.jsxs)(s.p,{spacing:4,children:[Object(r.jsx)(s.q,{fontStyle:"italic",children:"Last Updated: July 2021"}),Object(r.jsxs)(s.q,{children:["Welcome to the AWS CDK Construct Hub site (the \u201cAWS Site\u201d or \u201cConstruct Hub\u201d). Except as specifically follows, the AWS CDK Construct Hub site shall be subject to the"," ",Object(r.jsx)(a.a,{hasWarning:!1,href:"https://aws.amazon.com/terms/",children:"Site Terms"})," ","(\u201cAWS Site Terms\u201d) and considered an AWS Site for purposes of applying the AWS Site Terms (together, the \u201cCDK Construct Hub Site Terms\u201d)."]}),Object(r.jsxs)(s.q,{children:["In place of the \u201cLicense and Site Access\u201d term of the AWS Site Terms, the Construct Hub is provided to you under this license:"," ",Object(r.jsx)(a.a,{hasWarning:!1,href:"".concat(i.a,"/blob/main/LICENSE"),children:"".concat(i.a,"/blob/main/LICENSE")}),". Some AWS Content and Third-Party Content may be provided to you under a separate license, such as the Apache License, Version 2.0, or other open source license. In the event of a conflict between the CDK Construct Hub Site Terms and any separate license, the separate license will prevail with respect to the AWS Content or Third-Party Content that is the subject of such separate license. This AWS Site is a construct registry and search site. The links to the CDK constructs displayed may comprise third party user generated content which shall, in any case, be subject to the \u201cDisclaimer of Warranties and Limitation of Liability\u201d section of the AWS Site Terms. Accessing a construct via its hyperlink will send you to a non-affiliated third party website (\u2018Third-Party Website\u201d) and you shall be subject to the terms and conditions of that Third-Party Website upon entering it."]})]})]})})})}}}]);
2
- //# sourceMappingURL=14.b8011de8.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["constants/pageInfo.ts","components/Page/Page.tsx","views/SiteTerms/SiteTerms.tsx"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","join","Helmet","process","content","charSet","property","SiteTerms","bg","h","py","w","as","color","fontSize","maxW","base","md","mx","textAlign","mb","size","spacing","fontStyle","ExternalLink","hasWarning","href","CONSTRUCT_HUB_REPO_URL"],"mappings":"2LAAaA,EAAW,CACtBC,WAAY,CACVC,MAAO,CACLC,KAAM,oBAGVC,KAAM,CACJF,MAAO,CACLC,KAAM,cAGVE,IAAK,CACHH,MAAO,CACLC,KAAM,oCAGVG,eAAgB,CACdJ,MAAO,CACLC,KAAM,yBAGVI,OAAQ,CACNL,MAAO,CACLC,KAAM,gBAGVK,UAAW,CACTN,MAAO,CACLC,KAAM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AC,IAAD,uMAG6C,IAC3C,cAACC,EAAA,EAAD,CACEC,YAAY,EACZC,KAAK,gCAFP,wBAKgB,IATlB,mKAcA,eAAC,IAAD,sJAEkE,IAChE,cAACF,EAAA,EAAD,CACEC,YAAY,EACZC,KAAI,UAAKC,IAAL,sBAFN,mBAIMA,IAJN,wBAHF","file":"static/js/14.b8011de8.chunk.js","sourcesContent":["export const pageInfo = {\n contribute: {\n event: {\n name: \"Contribute Load\",\n },\n },\n home: {\n event: {\n name: \"Home Load\",\n },\n },\n faq: {\n event: {\n name: \"Frequently Asked Questions Load\",\n },\n },\n packageProfile: {\n event: {\n name: \"Package Profile Load\",\n },\n },\n search: {\n event: {\n name: \"Search Load\",\n },\n },\n siteTerms: {\n event: {\n name: \"Site Terms Load\",\n },\n },\n notFound: {\n page: {\n pageType: \"errorPage\",\n },\n event: {\n name: \"404 Page Load\",\n },\n },\n} as const;\n","import { FunctionComponent, useEffect } from \"react\";\nimport { Helmet } from \"react-helmet\";\nimport { pageInfo } from \"../../constants/pageInfo\";\nimport { usePageView } from \"../../contexts/Analytics\";\n\nexport interface PageProps {\n pageName: keyof typeof pageInfo;\n meta: {\n suffix?: boolean;\n title: string;\n description: string;\n };\n}\n\nexport const Page: FunctionComponent<PageProps> = ({\n children,\n meta,\n pageName,\n}) => {\n const trackPageView = usePageView(pageInfo[pageName]);\n\n useEffect(() => {\n trackPageView();\n }, [trackPageView]);\n\n const { suffix = true, title, description } = meta;\n const formattedTitle = suffix ? `${title} - Construct Hub` : title;\n\n // Should be the same as the \"real\" CSP, except most things come from HTTP\n // instead of HTTPS (because it is protocol-relative, and the dev site is\n // served over plain HTTP).\n const csp = [\n \"default-src 'self' 'unsafe-inline' http://*.awsstatic.com;\",\n \"connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"frame-src http://aws.demdex.net http://dpm.demdex.net;\",\n \"img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;\",\n \"object-src 'none';\",\n \"style-src 'self' 'unsafe-inline';\",\n ].join(\" \");\n\n return (\n <>\n <Helmet>\n {process.env.NODE_ENV === \"development\" && (\n <meta content={csp} httpEquiv=\"Content-Security-Policy\" />\n )}\n\n <meta content=\"width=device-width, initial-scale=1\" name=\"viewport\" />\n <meta charSet=\"utf-8\" />\n\n <title>{formattedTitle}</title>\n <meta content={formattedTitle} property=\"og:title\" />\n <meta content={formattedTitle} name=\"twitter:title\" />\n <meta content=\"summary\" name=\"twitter:card\" />\n\n <meta content={description} name=\"description\" />\n <meta content={description} property=\"og:description\" />\n <meta content={description} name=\"twitter:description\" />\n </Helmet>\n {children}\n </>\n );\n};\n","import { Box, Heading, Stack, Text } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { ExternalLink } from \"../../components/ExternalLink\";\nimport { Page } from \"../../components/Page\";\nimport { CONSTRUCT_HUB_REPO_URL } from \"../../constants/links\";\n\nexport const SiteTerms: FunctionComponent = () => (\n <Page\n meta={{\n title: \"Site Terms\",\n description: \"View the Construct Hub Site Terms\",\n }}\n pageName=\"siteTerms\"\n >\n <Box bg=\"white\" h=\"100%\" py={16} w=\"100%\">\n <Box\n as=\"article\"\n color=\"gray.800\"\n fontSize=\"lg\"\n maxW={{ base: \"80%\", md: \"38rem\" }}\n mx=\"auto\"\n textAlign=\"justify\"\n w=\"100%\"\n >\n <Heading as=\"h1\" color=\"blue.800\" mb={8} mx=\"auto\" size=\"lg\">\n AWS Site Terms for CDK Construct Hub\n </Heading>\n <Stack spacing={4}>\n <Text fontStyle=\"italic\">Last Updated: July 2021</Text>\n <Text>\n Welcome to the AWS CDK Construct Hub site (the “AWS Site” or\n “Construct Hub”). Except as specifically follows, the AWS CDK\n Construct Hub site shall be subject to the{\" \"}\n <ExternalLink\n hasWarning={false}\n href=\"https://aws.amazon.com/terms/\"\n >\n Site Terms\n </ExternalLink>{\" \"}\n (“AWS Site Terms”) and considered an AWS Site for purposes of\n applying the AWS Site Terms (together, the “CDK Construct Hub Site\n Terms”).\n </Text>\n <Text>\n In place of the “License and Site Access” term of the AWS Site\n Terms, the Construct Hub is provided to you under this license:{\" \"}\n <ExternalLink\n hasWarning={false}\n href={`${CONSTRUCT_HUB_REPO_URL}/blob/main/LICENSE`}\n >\n {`${CONSTRUCT_HUB_REPO_URL}/blob/main/LICENSE`}\n </ExternalLink>\n . Some AWS Content and Third-Party Content may be provided to you\n under a separate license, such as the Apache License, Version 2.0,\n or other open source license. In the event of a conflict between the\n CDK Construct Hub Site Terms and any separate license, the separate\n license will prevail with respect to the AWS Content or Third-Party\n Content that is the subject of such separate license. This AWS Site\n is a construct registry and search site. The links to the CDK\n constructs displayed may comprise third party user generated content\n which shall, in any case, be subject to the “Disclaimer of\n Warranties and Limitation of Liability” section of the AWS Site\n Terms. Accessing a construct via its hyperlink will send you to a\n non-affiliated third party website (‘Third-Party Website”) and you\n shall be subject to the terms and conditions of that Third-Party\n Website upon entering it.\n </Text>\n </Stack>\n </Box>\n </Box>\n </Page>\n);\n"],"sourceRoot":""}