construct-hub 0.3.332 → 0.3.333

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/.jsii +2 -2
  2. package/changelog.md +1 -6
  3. package/lib/backend/feed-builder/update-feed.lambda.bundle/index.js +1 -1
  4. package/lib/backend/feed-builder/update-feed.lambda.bundle/index.js.map +2 -2
  5. package/lib/backend/transliterator/transliterator.ecs-entrypoint.bundle/index.js +2 -2
  6. package/lib/construct-hub.js +1 -1
  7. package/lib/package-sources/code-artifact.js +1 -1
  8. package/lib/package-sources/npmjs.js +1 -1
  9. package/lib/package-tag/index.js +3 -3
  10. package/lib/package-tag-group/index.js +2 -2
  11. package/lib/preload-file/index.js +1 -1
  12. package/lib/s3/storage.js +1 -1
  13. package/lib/spdx-license.js +1 -1
  14. package/package.json +6 -6
  15. package/releasetag.txt +1 -1
  16. package/version.txt +1 -1
  17. package/website/asset-manifest.json +15 -15
  18. package/website/index.html +1 -1
  19. package/website/static/js/19.d330fc34.chunk.js +2 -0
  20. package/website/static/js/19.d330fc34.chunk.js.map +1 -0
  21. package/website/static/js/29.1c8de512.chunk.js +2 -0
  22. package/website/static/js/29.1c8de512.chunk.js.map +1 -0
  23. package/website/static/js/540.c326d22f.chunk.js +2 -0
  24. package/website/static/js/540.c326d22f.chunk.js.map +1 -0
  25. package/website/static/js/577.b8baa31c.chunk.js +2 -0
  26. package/website/static/js/577.b8baa31c.chunk.js.map +1 -0
  27. package/website/static/js/679.72a0bb1a.chunk.js +2 -0
  28. package/website/static/js/679.72a0bb1a.chunk.js.map +1 -0
  29. package/website/static/js/926.633393a3.chunk.js +2 -0
  30. package/website/static/js/926.633393a3.chunk.js.map +1 -0
  31. package/website/static/js/{main.5abd3692.js → main.f64ed614.js} +3 -3
  32. package/website/static/js/{main.5abd3692.js.LICENSE.txt → main.f64ed614.js.LICENSE.txt} +0 -0
  33. package/website/static/js/main.f64ed614.js.map +1 -0
  34. package/website/static/js/19.6c0c3bb2.chunk.js +0 -2
  35. package/website/static/js/19.6c0c3bb2.chunk.js.map +0 -1
  36. package/website/static/js/283.255108b0.chunk.js +0 -2
  37. package/website/static/js/283.255108b0.chunk.js.map +0 -1
  38. package/website/static/js/540.2b86534a.chunk.js +0 -2
  39. package/website/static/js/540.2b86534a.chunk.js.map +0 -1
  40. package/website/static/js/577.4e3ff9fc.chunk.js +0 -2
  41. package/website/static/js/577.4e3ff9fc.chunk.js.map +0 -1
  42. package/website/static/js/679.dddc0a34.chunk.js +0 -2
  43. package/website/static/js/679.dddc0a34.chunk.js.map +0 -1
  44. package/website/static/js/926.75171058.chunk.js +0 -2
  45. package/website/static/js/926.75171058.chunk.js.map +0 -1
  46. package/website/static/js/main.5abd3692.js.map +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[19],{51773:function(e,t,r){r.d(t,{Z0:function(){return n},S1:function(){return o},u9:function(){return c},eI:function(){return u},vy:function(){return d},Dq:function(){return y}});var s=r(28735),i=r(80184),n=function(e){var t=e.children;return(0,i.jsxs)(s.xu,{bg:"bgSecondary",color:"textPrimary",h:"100%",w:"100%",children:[t,(0,i.jsx)(s.xu,{py:5,width:"100%"})]})},o=function(e){var t=e.children;return(0,i.jsx)(s.xu,{bg:"bgPrimary",py:20,width:"100%",children:(0,i.jsx)(s.X6,{as:"h1",color:"textPrimary",mx:"auto",textAlign:"center",children:t})})},a=r(35790),c=function(e){var t=e.question,r=e.children;return(0,i.jsxs)(a.Qd,{children:[(0,i.jsxs)(a.KF,{children:[(0,i.jsx)(s.xu,{flex:"1",py:2,textAlign:"left",children:(0,i.jsx)(s.X6,{as:"h3",ml:8,size:"sm",children:t})}),(0,i.jsx)(a.XE,{})]}),(0,i.jsx)(a.Hk,{px:12,py:4,children:(0,i.jsx)(s.xv,{color:"textPrimary",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:r})})]})},l=r(6074),u=function(e){var t=e.href,r=e.children;return(0,i.jsx)(l.d,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:r})},d=function(e){var t=e.heading,r=e.children;return(0,i.jsxs)(a.Qd,{children:[(0,i.jsxs)(a.KF,{children:[(0,i.jsx)(s.xu,{flex:"1",textAlign:"left",children:(0,i.jsx)(s.X6,{as:"h2",ml:4,my:4,size:"lg",children:t})}),(0,i.jsx)(a.XE,{})]}),(0,i.jsx)(a.Hk,{p:0,children:(0,i.jsx)(a.UQ,{allowMultiple:!0,w:"100%",children:r})})]})},h=r(1413),p=r(45987),b=["children"],y=function(e){var t=e.children,r=(0,p.Z)(e,b);return(0,i.jsx)(a.UQ,(0,h.Z)((0,h.Z)({allowMultiple:!0},r),{},{children:t}))}},41712:function(e,t,r){r.d(t,{T:function(){return c}});var s=r(72791),i=r(54270),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"}}},o=r(59534),a=r(80184),c=(["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(" "),function(e){var t=e.children,r=e.meta,c=e.pageName,l=(0,o.aQ)(n[c]);(0,s.useEffect)((function(){l()}),[l]);var u=r.suffix,d=void 0===u||u,h=r.title,p=r.description,b=d?"".concat(h," - Construct Hub"):h;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.q,{children:[!1,(0,a.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,a.jsx)("meta",{charSet:"utf-8"}),(0,a.jsx)("title",{children:b}),(0,a.jsx)("meta",{content:b,property:"og:title"}),(0,a.jsx)("meta",{content:b,name:"twitter:title"}),(0,a.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,a.jsx)("meta",{content:p,name:"description"}),(0,a.jsx)("meta",{content:p,property:"og:description"}),(0,a.jsx)("meta",{content:p,name:"twitter:description"})]}),t]})})},27019:function(e,t,r){r.r(t),r.d(t,{default:function(){return l}});var s=r(35790),i=r(28735),n=r(51773),o=r(41712),a=r(76798),c=r(80184),l=function(){return(0,c.jsx)(o.T,{meta:{description:"Learn about contributing to Construct Hub.",title:"Contribute"},pageName:"contribute",children:(0,c.jsxs)(n.Z0,{children:[(0,c.jsx)(n.S1,{children:"Contributing to Construct Hub"}),(0,c.jsxs)(s.UQ,{allowMultiple:!0,allowToggle:!0,defaultIndex:[0],children:[(0,c.jsxs)(n.u9,{question:"How can I add my construct to Construct Hub?",children:[(0,c.jsxs)(i.xv,{children:["Constructs intended for Construct Hub must be published to the"," ",(0,c.jsx)(n.eI,{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)."]}),(0,c.jsxs)(i.xv,{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 ",(0,c.jsx)("strong",{children:"must"})," be compiled with"," ",(0,c.jsx)(n.eI,{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."]}),(0,c.jsxs)(i.xv,{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"," ",(0,c.jsx)(n.eI,{href:"".concat(a.Sx,"/issues/new"),children:"GitHub repository."})]}),(0,c.jsxs)(i.xv,{children:["The community has provided some great resources about publishing construct libraries that meet Construct Hub requirements. For example, see"," ",(0,c.jsxs)(n.eI,{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 ",(0,c.jsx)(n.eI,{href:"https://hayao-k.dev/",children:"hayao-k"}),"."]}),(0,c.jsxs)(i.xv,{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"," ",(0,c.jsx)(n.eI,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII library author guide."})]})]}),(0,c.jsxs)(n.u9,{question:"What are the best practices for improving discoverability of a construct library on Construct Hub?",children:[(0,c.jsx)(i.xv,{children:"To improve your construct library\u2019s visibility on Construct Hub, follow these best practices:"}),(0,c.jsxs)(i.GS,{sx:{li:{mt:4}},children:[(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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.*"]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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.*"]})]})]}),(0,c.jsxs)(n.u9,{question:"What are the best practices for writing a developer-friendly README file?",children:[(0,c.jsx)(i.xv,{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:"}),(0,c.jsxs)(i.QI,{sx:{li:{mt:4}},children:[(0,c.jsxs)(i.HC,{children:[(0,c.jsx)("strong",{children:"State and maturity of the library."})," Start your READMEs with helpful badges like"," ",(0,c.jsx)(n.eI,{href:"https://www.npmjs.com/package/cdk-codepipeline-badge-notification",children:"CDK pipelines badges"}),". It will help users see the state of your package."]}),(0,c.jsxs)(i.HC,{children:[(0,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?"]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,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.)"]}),(0,c.jsxs)(i.HC,{children:[(0,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."]}),(0,c.jsxs)(i.HC,{children:[(0,c.jsx)("strong",{children:"Explanatory videos."})," Consider sharing links to videos that can help potential customers engage with your library."]}),(0,c.jsxs)(i.HC,{children:[(0,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."]})]})]}),(0,c.jsxs)(n.u9,{question:"Why isn\u2019t my package displayed on Construct Hub?",children:[(0,c.jsx)(i.xv,{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 does not appear in Construct Hub, please check the following:"}),(0,c.jsxs)(i.QI,{sx:{li:{my:4}},children:[(0,c.jsxs)(i.HC,{children:["You are using JSII to compile your project. When you successfully build your project with jsii, a ",(0,c.jsx)("code",{children:".jsii"})," file should get created in the root of your project. See the"," ",(0,c.jsx)(n.eI,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII Library Author Guide"})," ","for more information about setting up JSII."]}),(0,c.jsxs)(i.HC,{children:["Your packaged library includes the ",(0,c.jsx)("code",{children:".jsii"})," file. If you have a ",(0,c.jsx)("code",{children:".npmignore"})," file, make sure it does not ignore"," ",(0,c.jsx)("code",{children:".jsii"}),'. (You can add "',(0,c.jsx)("code",{children:"!.jsii"}),'" to specify it ',(0,c.jsx)("em",{children:"should"})," be included in the packaged library.) If you are using the ",(0,c.jsx)("code",{children:"files"})," field in"," ",(0,c.jsx)("code",{children:"package.json"}),', make sure it includes "',(0,c.jsx)("code",{children:".jsii"}),'" (this list takes precedence over'," ",(0,c.jsx)("code",{children:".npmignore"}),")."]})]}),(0,c.jsxs)(i.xv,{children:["If your package still does not appear in Construct Hub, please raise an issue"," ",(0,c.jsx)(n.eI,{href:"".concat(a.Sx,"/issues/new"),children:"here"}),"."]})]}),(0,c.jsx)(n.u9,{question:"Can I update my package after it has been displayed?",children:(0,c.jsx)(i.xv,{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."})}),(0,c.jsx)(n.u9,{question:"How can I report a bug or contribute code to a construct?",children:(0,c.jsx)(i.xv,{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."})}),(0,c.jsxs)(n.u9,{question:"How can I participate in link the Construct Hub community?",children:["Construct Hub is itself an open-source construct! Join the"," ",(0,c.jsx)(n.eI,{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"," ",(0,c.jsx)(n.eI,{href:"https://cdk.dev/",children:"CDK community Slack workspace"})]}),(0,c.jsx)(n.u9,{question:"Is there a Slack channel for the CDK community?",children:(0,c.jsxs)(i.xv,{children:["Please join the"," ",(0,c.jsx)(n.eI,{href:"https://cdk.dev/",children:"CDK Slack channel"}),". This Slack channel is managed by the CDK community, for the CDK community."]})})]})]})})}}}]);
2
- //# sourceMappingURL=19.6c0c3bb2.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/19.6c0c3bb2.chunk.js","mappings":"oTAGaA,EAAyB,SAAC,GAAD,IAAGC,EAAH,EAAGA,SAAH,OACpC,UAAC,KAAD,CAAKC,GAAG,cAAcC,MAAM,cAAcC,EAAE,OAAOC,EAAE,OAArD,UACGJ,GACD,SAAC,KAAD,CAAKK,GAAI,EAAGC,MAAM,aCHTC,EAAgC,SAAC,GAAD,IAAGP,EAAH,EAAGA,SAAH,OAC3C,SAAC,KAAD,CAAKC,GAAG,YAAYI,GAAI,GAAIC,MAAM,OAAlC,UACE,SAAC,KAAD,CAASE,GAAG,KAAKN,MAAM,cAAcO,GAAG,OAAOC,UAAU,SAAzD,SACGV,O,WCSMW,EAA2C,SAAC,GAAD,IACtDC,EADsD,EACtDA,SACAZ,EAFsD,EAEtDA,SAFsD,OAItD,UAAC,KAAD,YACE,UAAC,KAAD,YACE,SAAC,KAAD,CAAKa,KAAK,IAAIR,GAAI,EAAGK,UAAU,OAA/B,UACE,SAAC,KAAD,CAASF,GAAG,KAAKM,GAAI,EAAGC,KAAK,KAA7B,SACGH,OAGL,SAAC,KAAD,QAEF,SAAC,KAAD,CAAgBI,GAAI,GAAIX,GAAI,EAA5B,UACE,SAAC,KAAD,CACEH,MAAM,cACNe,SAAS,KACTC,GAAI,CAAEC,EAAG,CAAEC,UAAW,IAAKC,aAAc,MAH3C,SAKGrB,U,UC3BIsB,EAA2C,SAAC,GAAD,IACtDC,EADsD,EACtDA,KACAvB,EAFsD,EAEtDA,SAFsD,OAItD,SAACwB,EAAA,EAAD,CACEtB,MAAM,UACNuB,YAAY,EACZF,KAAMA,EACNG,eAAe,YAJjB,SAMG1B,KCDQ2B,EAAi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AC,KAAD,qTASF,UAACb,EAAA,GAAD,CAASa,SAAS,6DAAlB,uEAC6D,KAC3D,SAACb,EAAA,GAAD,CAASwB,KAAK,2CAAd,4CAFF,uEAKuE,KACrE,SAACxB,EAAA,GAAD,CAASwB,KAAK,mBAAd,+CAKF,SAACxB,EAAA,GAAD,CAASa,SAAS,kDAAlB,UACE,UAAC,KAAD,6BACkB,KAChB,SAACb,EAAA,GAAD,CAASwB,KAAK,mBAAd,+BAFF","sources":["components/FAQ/FAQ.tsx","components/FAQ/FAQHeading.tsx","components/FAQ/FAQItem.tsx","components/FAQ/FAQLink.tsx","components/FAQ/FAQSection.tsx","components/FAQ/FAQSections.tsx","constants/pageInfo.ts","components/Page/Page.tsx","views/Contribute/Contribute.tsx"],"sourcesContent":["import { Box } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQ: FunctionComponent = ({ children }) => (\n <Box bg=\"bgSecondary\" color=\"textPrimary\" 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=\"bgPrimary\" py={20} width=\"100%\">\n <Heading as=\"h1\" color=\"textPrimary\" 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=\"textPrimary\"\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","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\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).\nconst 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\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 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 {\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 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 does not appear\n in Construct Hub, please check the following:\n </Text>\n <UnorderedList sx={{ li: { my: 4 } }}>\n <ListItem>\n You are using JSII to compile your project. When you successfully\n build your project with jsii, a <code>.jsii</code> file should get\n created in the root of your project. See the{\" \"}\n <FAQLink href=\"https://aws.github.io/jsii/user-guides/#library-author-guide\">\n JSII Library Author Guide\n </FAQLink>{\" \"}\n for more information about setting up JSII.\n </ListItem>\n <ListItem>\n Your packaged library includes the <code>.jsii</code> file. If you\n have a <code>.npmignore</code> file, make sure it does not ignore{\" \"}\n <code>.jsii</code>. (You can add &quot;<code>!.jsii</code>\n &quot; to specify it <em>should</em> be included in the packaged\n library.) If you are using the <code>files</code> field in{\" \"}\n <code>package.json</code>, make sure it includes &quot;\n <code>.jsii</code>&quot; (this list takes precedence over{\" \"}\n <code>.npmignore</code>).\n </ListItem>\n </UnorderedList>\n <Text>\n If your package still does not appear in Construct Hub, please raise\n 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"],"names":["FAQ","children","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","pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","join","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","Helmet","process","content","charSet","property","Contribute","allowToggle","defaultIndex","CONSTRUCT_HUB_REPO_URL","li","mt"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[283],{50535:function(e,t,n){n.d(t,{y:function(){return c}});var r=n(28227),a=n(28735),i=n(53046),o=n(80184),c=function(e){var t=e.label,n=e.color,c=e.icon,s=(0,r.ff)("none","brightness(1.75)");return(0,o.jsxs)(a.Kq,{align:"center",direction:"row",filter:s,spacing:2,children:[(0,o.jsx)(i.Ee,{alt:"".concat(t," icon"),src:c,w:4}),(0,o.jsx)(a.xv,{color:n,fontWeight:"bold",children:t})]})}},2148:function(e,t,n){n.d(t,{N:function(){return o}});var r=n(81070),a=n(86617),i=n(80184),o=function(e){var t=e.children,n=e.language,o=a.dX.has(n),c=a.k8[n],s=o?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,i.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,i.jsx)("span",{children:t})})}},64159:function(e,t,n){var r;n.d(t,{L:function(){return I},$:function(){return r}}),function(e){e.Wide="wide"}(r||(r={}));var a=n(1413),i=n(72791),o=n(28735),c=n(81070),s=n(11853),d=n(10297),l=n(19748),u=n(67003),f=n(79227),m=(0,n(88606).$)("packageCard",["author","description","downloads","languages","published","title","version","comment","wideContainer"]),h=n(80184),v=function(e){var t=e["data-testid"],n=e.tooltip,r=e.value;return(0,h.jsx)(c.u,{hasArrow:!0,isDisabled:!n,label:n,placement:"left",children:(0,h.jsx)(o.xv,{"data-testid":t,fontSize:"xs",zIndex:1,children:r})})},p=function(){var e,t,n,r=D(),a=r.author,i=r.metadata.date,o=r.name,c=(0,d.V)().data,p=null===c||void 0===c||null===(e=c.packages)||void 0===e||null===(t=e[o])||void 0===t||null===(n=t.downloads)||void 0===n?void 0:n.npm,x="string"===typeof a?a:a.name,g=new Date(i);return(0,h.jsxs)(h.Fragment,{children:[void 0!==p&&(0,h.jsx)(v,{"data-testid":m.downloads,tooltip:"Download numbers are periodically sourced from the npm registry",value:"".concat(p.toLocaleString()," weekly downloads")}),(0,h.jsx)(v,{"data-testid":m.published,value:(0,h.jsx)(f.q,{date:g,fontSize:"xs",formattedDate:(0,s.Z)(g,{addSuffix:!0})})}),(0,h.jsx)(v,{"data-testid":m.author,value:(0,h.jsxs)(h.Fragment,{children:["By"," ",(0,h.jsx)(u.O,{color:"link",to:(0,l.yc)({query:x}),children:x})]})})]})},x=n(29439),g=n(91523),j=n(59534),w=n(7991),b=n(77766),y=function(e){var t=e.comment;return(0,h.jsxs)(o.xv,{"data-testid":m.comment,fontSize:"md",lineHeight:"tall",noOfLines:4,children:[(0,h.jsxs)(o.xv,{as:"span",color:"blue.500",fontWeight:"bold",children:["Editor's note:"," "]}),t]})},k=function(){var e=(0,w.Z)(),t=(0,x.Z)(e,1)[0],n=D(),r=n.dataEvent,a=n.description,i=n.comment,c=n.constructFrameworks,s=n.name,d=n.version;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.AB,{as:g.rU,"data-event":r?(0,j.oJ)(r,"Package Card",s):void 0,to:(0,l.Mt)({name:s,version:d,language:t}),children:(0,h.jsxs)(o.kC,{align:"center",children:[(0,h.jsx)(b.u,{constructFrameworks:c,mr:2,zIndex:1}),(0,h.jsx)(o.X6,{as:"h3",color:"textPrimary","data-testid":m.title,fontSize:"md",fontWeight:"bold",wordBreak:"normal",children:s})]})}),i?(0,h.jsx)(y,{comment:i}):(0,h.jsx)(o.xv,{color:"textPrimary","data-testid":m.description,fontSize:"md",lineHeight:"tall",noOfLines:4,children:a||"No description available."})]})},S=n(98371),Z=n(50535),T=function(){var e,t,n=(null!==(e=null===(t=D())||void 0===t?void 0:t.metadata)&&void 0!==e?e:{}).packageTags,r=void 0===n?[]:n,i=(0,S.JA)(r),c=(0,x.Z)(i,1)[0];return c?(0,h.jsx)(o.xu,{fontSize:"xs",children:(0,h.jsx)(Z.y,(0,a.Z)({},c))}):null},C=n(86617),L=n(2148),z={sm:5,md:6,lg:8},P=function(e){var t=e.isRounded,n=void 0!==t&&t,r=e.languages,a=e.name,i=e.size,o=void 0===i?"md":i,c=e.version,s=Object.keys(null!==r&&void 0!==r?r:{});return(0,h.jsx)(h.Fragment,{children:Object.entries(C.kP).sort((function(e,t){var n=(0,x.Z)(e,1)[0],r=(0,x.Z)(t,1)[0];return C.a2.indexOf(n)-C.a2.indexOf(r)})).map((function(e){var t=(0,x.Z)(e,2),r=t[0],i=t[1],d=r,u=d===C.SQ.TypeScript||s.includes(d),f=d===C.SQ.TypeScript||C.dX.has(d);if(!u)return null;var m=i.name,v=i.icon,p=(0,h.jsx)(v,{"aria-label":"Supports ".concat(m),borderRadius:n?"50%":0,h:z[o],opacity:f?1:.2,w:z[o]});return(0,h.jsx)(L.N,{language:d,children:f?(0,h.jsx)(g.rU,{"aria-label":"View package docs for ".concat(d),to:(0,l.Mt)({name:a,version:c,language:d}),children:p}):p},d)}))})},q=function(){var e=D();return(0,h.jsx)(P,(0,a.Z)((0,a.Z)({},e),{},{size:"sm"}))},A=n(29988),E=function(){var e=D(),t=e.keywords,n=void 0===t?[]:t,r=e.metadata.packageTags,a=void 0===r?[]:r,i=(0,S.QX)({packageTags:a,keywords:n});return(0,h.jsx)(h.Fragment,{children:i.slice(0,10).map((function(e){var t=e.id,n=e.keyword,r=(n=void 0===n?{}:n).label,a=n.color;return(0,h.jsx)(A.X,{value:t,variant:a,children:r},t)}))})},F=function(){return(0,h.jsx)(o.fG,{_hover:{"> article":{bg:"hoverPrimary"}},children:(0,h.jsxs)(o.rj,{as:"article",bg:"bgSecondary",border:"base",borderRadius:"sm",boxShadow:"base",color:"textPrimary","data-testid":m.wideContainer,h:"full",minH:"12.5rem",templateColumns:{base:"1fr",lg:"1fr 14rem"},w:"full",children:[(0,h.jsxs)(o.kC,{direction:"column",justify:"space-between",overflow:"hidden",p:5,sx:{gap:"0.5rem"},children:[(0,h.jsx)(o.Kq,{spacing:3,children:(0,h.jsx)(k,{})}),(0,h.jsx)(o.kC,{align:"center",sx:{gap:"0.5rem"},wrap:"wrap",children:(0,h.jsx)(E,{})})]}),(0,h.jsxs)(o.kC,{align:{base:"end",lg:"initial"},borderLeft:{lg:"base"},borderTop:{base:"base",lg:"none"},direction:{base:"row",lg:"column"},justify:"space-between",p:5,sx:{gap:"0.5rem"},children:[(0,h.jsxs)(o.Kq,{spacing:1,children:[(0,h.jsx)(T,{}),(0,h.jsx)(o.Kq,{spacing:1,children:(0,h.jsx)(p,{})})]}),(0,h.jsx)(o.Kq,{"data-testid":m.languages,direction:"row",spacing:2,children:(0,h.jsx)(q,{})})]})]})})},O=(0,i.createContext)(null),D=function(){return(0,i.useContext)(O)},I=function(e){var t=e["data-event"],n=e.pkg,i=e.variant,o=void 0===i?r.Wide:i;return(0,h.jsx)(O.Provider,{value:(0,a.Z)((0,a.Z)({},n),{},{dataEvent:t}),children:o===r.Wide&&(0,h.jsx)(F,{})})}},29988:function(e,t,n){n.d(t,{X:function(){return l}});var r=n(1413),a=n(45987),i=n(96450),o=n(19748),c=n(67003),s=n(80184),d=["children","value","label","zIndex"],l=function(e){var t=e.children,n=e.value,l=e.label,u=void 0===l?n:l,f=e.zIndex,m=(0,a.Z)(e,d);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,o.yc)({keywords:[n]}),zIndex:f,children:(0,s.jsx)(i.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},m),{},{children:(0,s.jsx)(i.Sn,{children:t})}))})}},41712:function(e,t,n){n.d(t,{T:function(){return s}});var r=n(72791),a=n(54270),i={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"}}},o=n(59534),c=n(80184),s=(["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(" "),function(e){var t=e.children,n=e.meta,s=e.pageName,d=(0,o.aQ)(i[s]);(0,r.useEffect)((function(){d()}),[d]);var l=n.suffix,u=void 0===l||l,f=n.title,m=n.description,h=u?"".concat(f," - Construct Hub"):f;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(a.q,{children:[!1,(0,c.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,c.jsx)("meta",{charSet:"utf-8"}),(0,c.jsx)("title",{children:h}),(0,c.jsx)("meta",{content:h,property:"og:title"}),(0,c.jsx)("meta",{content:h,name:"twitter:title"}),(0,c.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,c.jsx)("meta",{content:m,name:"description"}),(0,c.jsx)("meta",{content:m,property:"og:description"}),(0,c.jsx)("meta",{content:m,name:"twitter:description"})]}),t]})})},79227:function(e,t,n){n.d(t,{q:function(){return l}});var r=n(1413),a=n(45987),i=n(63209),o=n(28735),c=n(29158),s=n(80184),d=["date","format","formattedDate"],l=(0,i.Gp)((function(e,t){var n=e.date,i=e.format,l=e.formattedDate,u=(0,a.Z)(e,d);return(0,s.jsx)(o.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==l&&void 0!==l?l:(0,c.Z)(n,null!==i&&void 0!==i?i:"")}))}));l.displayName="Time"},56804:function(e,t,n){n.d(t,{E:function(){return a}});var r=n(24026),a=function(e){var t=(0,r.Z)().data;return(null!==t&&void 0!==t?t:{})[e]}},7991:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(29439),a=n(72791),i=n(79271),o=n(86617),c=n(29499),s=n(4487),d=o.SQ.TypeScript,l="preferred-language",u=function(e){return null!=e&&o.dX.has(e)},f=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(l))&&void 0!==t?t:"";if(u(n))return n}catch(r){}return d},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=(0,i.TH)(),d=o.pathname,m=o.hash,h=(0,i.k6)(),v=h.replace,p=(0,s.K)(),x=p.get(c.Tx.LANGUAGE),g=(0,a.useState)((function(){return f(x)})),j=(0,r.Z)(g,2),w=j[0],b=j[1];(0,a.useEffect)((function(){u(x)&&x!==w&&b(x)}),[x]),(0,a.useEffect)((function(){x!==w&&t&&(p.set(c.Tx.LANGUAGE,w),v({pathname:d,hash:m,search:p.toString()}))}),[w,t]);var y=(0,a.useCallback)((function(e){if(b(e),n)try{localStorage.setItem(l,e)}catch(t){}}),[n]);return(0,a.useMemo)((function(){return[w,y]}),[w,y])}},4487:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(72791),a=n(79271),i=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,t,n){n.d(t,{JA:function(){return o},QX:function(){return c}});var r=n(1413),a=n(93433),i=n(9272),o=function(e){return!e||e.length<1?[]:e.reduce((function(e,t){return t.highlight?[].concat((0,a.Z)(e),[t.highlight]):e}),[])},c=function(e){for(var t=e.packageTags,n=e.keywords,o=new Array,c=new Set,s=0,d=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)})).map((function(e){var t;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}))}(t)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!i.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(n)));s<d.length;s++){var l=d[s],u=l.keyword.label.toLowerCase();c.has(u)||(o.push(l),c.add(u))}return o}}}]);
2
- //# sourceMappingURL=283.255108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ASmG,OAAS,EAAU,GAEtCnG,EACJvG,QAAO,SAACP,GAAD,OAAWyN,QAAQzN,KAAW2N,EAAAA,EAAAA,IAAwB3N,MAC7DgG,KAAI,SAAChG,GAAD,MAAY,CACfkH,GAAIlH,EACJmH,QAAS,CACPnH,MAAAA,OAoBD4N,CAAmB9G,KAFxB,eAGG,CAHE,IAAMsG,EAAG,KAINpN,EAAQoN,EAAIjG,QAASnH,MAAM6N,cAC5BN,EAAUO,IAAI9N,KACjBqN,EAAWU,KAAKX,GAChBG,EAAUS,IAAIhO,IAIlB,OAAOqN","sources":["components/Highlight/Highlight.tsx","components/LanguageSupportTooltip/LanguageSupportTooltip.tsx","components/PackageCard/constants.ts","components/PackageCard/testIds.ts","components/PackageCard/Details.tsx","components/PackageCard/EditorsNote.tsx","components/PackageCard/Heading.tsx","components/PackageCard/Highlight.tsx","components/PackageLanguages/PackageLanguages.tsx","components/PackageCard/Languages.tsx","components/PackageCard/Tags.tsx","components/PackageCard/WideCard.tsx","components/PackageCard/PackageCard.tsx","components/PackageTag/PackageTag.tsx","constants/pageInfo.ts","components/Page/Page.tsx","components/Time/Time.tsx","hooks/useConfigValue/useConfigValue.ts","hooks/useLanguage/useLanguage.ts","hooks/useQueryParams/useQueryParams.ts","util/package.ts"],"sourcesContent":["import { Stack, Image, Text, useColorModeValue } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\ninterface HighlightProps {\n label: string;\n color?: string;\n icon?: string;\n}\n\nexport const Highlight: FunctionComponent<HighlightProps> = ({\n label,\n color,\n icon,\n}: HighlightProps) => {\n const brightness = useColorModeValue(\"none\", \"brightness(1.75)\");\n return (\n <Stack align=\"center\" direction=\"row\" filter={brightness} spacing={2}>\n <Image alt={`${label} icon`} src={icon} w={4} />\n <Text color={color} fontWeight=\"bold\">\n {label}\n </Text>\n </Stack>\n );\n};\n","import { Tooltip } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport {\n Language,\n LANGUAGE_NAME_MAP,\n TEMP_SUPPORTED_LANGUAGES,\n} from \"../../constants/languages\";\n\nexport interface LanguageSupportTooltipProps {\n language: Language;\n}\n\nexport const LanguageSupportTooltip: FunctionComponent<\n LanguageSupportTooltipProps\n> = ({ children, language }) => {\n const isSupported = TEMP_SUPPORTED_LANGUAGES.has(language);\n const langName = LANGUAGE_NAME_MAP[language];\n\n const message = isSupported\n ? `Click to view documentation in ${langName}`\n : `Documentation support for ${langName} is coming soon!`;\n\n return (\n <Tooltip hasArrow label={message} placement=\"top-start\">\n <span>{children}</span>\n </Tooltip>\n );\n};\n","export enum PackageCardType {\n Wide = \"wide\",\n}\n","import { createTestIds } from \"../../util/createTestIds\";\n\nconst testIds = createTestIds(\"packageCard\", [\n \"author\",\n \"description\",\n \"downloads\",\n \"languages\",\n \"published\",\n \"title\",\n \"version\",\n \"comment\",\n \"wideContainer\",\n] as const);\n\nexport default testIds;\n","import { Text, Tooltip } from \"@chakra-ui/react\";\nimport { formatDistanceToNowStrict } from \"date-fns\";\nimport { FunctionComponent, ReactChild } from \"react\";\nimport { useStats } from \"../../hooks/useStats\";\nimport { getSearchPath } from \"../../util/url\";\nimport { NavLink } from \"../NavLink\";\nimport { Time } from \"../Time\";\nimport { usePackageCard } from \"./PackageCard\";\nimport testIds from \"./testIds\";\n\ninterface DetailProps {\n \"data-testid\": string;\n tooltip?: string;\n value: ReactChild;\n}\n\nconst Detail: FunctionComponent<DetailProps> = ({\n \"data-testid\": dataTestid,\n tooltip,\n value,\n}) => (\n <Tooltip hasArrow isDisabled={!tooltip} label={tooltip} placement=\"left\">\n {/* zIndex required to allow tooltip to display due to card link overlay */}\n <Text data-testid={dataTestid} fontSize=\"xs\" zIndex={1}>\n {value}\n </Text>\n </Tooltip>\n);\n\nexport const Details: FunctionComponent = () => {\n const {\n author,\n metadata: { date },\n name,\n } = usePackageCard();\n\n const { data } = useStats();\n const downloads: number | undefined = data?.packages?.[name]?.downloads?.npm;\n\n const authorName = typeof author === \"string\" ? author : author.name;\n const publishDate = new Date(date);\n\n return (\n <>\n {downloads !== undefined && (\n <Detail\n data-testid={testIds.downloads}\n tooltip=\"Download numbers are periodically sourced from the npm registry\"\n value={`${downloads.toLocaleString()} weekly downloads`}\n />\n )}\n <Detail\n data-testid={testIds.published}\n value={\n <Time\n date={publishDate}\n fontSize=\"xs\"\n formattedDate={formatDistanceToNowStrict(publishDate, {\n addSuffix: true,\n })}\n />\n }\n />\n <Detail\n data-testid={testIds.author}\n value={\n <>\n By{\" \"}\n <NavLink\n color=\"link\"\n to={getSearchPath({\n query: authorName,\n })}\n >\n {authorName}\n </NavLink>\n </>\n }\n />\n </>\n );\n};\n","import { Text } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport testIds from \"./testIds\";\n\nexport const EditorsNote: FunctionComponent<{ comment?: string }> = ({\n comment,\n}) => {\n return (\n <Text\n data-testid={testIds.comment}\n fontSize=\"md\"\n lineHeight=\"tall\"\n noOfLines={4}\n >\n <Text as=\"span\" color=\"blue.500\" fontWeight=\"bold\">\n Editor&apos;s note:{\" \"}\n </Text>\n {comment}\n </Text>\n );\n};\n","import {\n Flex,\n Heading as ChakraHeading,\n LinkOverlay,\n Text,\n} from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { eventName } from \"../../contexts/Analytics\";\nimport { useLanguage } from \"../../hooks/useLanguage\";\nimport { getPackagePath } from \"../../util/url\";\nimport { CDKTypeBadge } from \"../CDKType\";\nimport { EditorsNote } from \"./EditorsNote\";\nimport { usePackageCard } from \"./PackageCard\";\nimport testIds from \"./testIds\";\n\nexport const Heading: FunctionComponent = () => {\n const [currentLanguage] = useLanguage();\n const {\n dataEvent,\n description,\n comment,\n constructFrameworks,\n name,\n version,\n } = usePackageCard();\n\n return (\n <>\n <LinkOverlay\n as={Link}\n data-event={\n dataEvent ? eventName(dataEvent, \"Package Card\", name) : undefined\n }\n to={getPackagePath({\n name,\n version,\n language: currentLanguage,\n })}\n >\n <Flex align=\"center\">\n <CDKTypeBadge\n constructFrameworks={constructFrameworks}\n mr={2}\n zIndex={1}\n />\n <ChakraHeading\n as=\"h3\"\n color=\"textPrimary\"\n data-testid={testIds.title}\n fontSize=\"md\"\n fontWeight=\"bold\"\n wordBreak=\"normal\"\n >\n {name}\n </ChakraHeading>\n </Flex>\n </LinkOverlay>\n {comment ? (\n <EditorsNote comment={comment} />\n ) : (\n <Text\n color=\"textPrimary\"\n data-testid={testIds.description}\n fontSize=\"md\"\n lineHeight=\"tall\"\n noOfLines={4}\n >\n {description || \"No description available.\"}\n </Text>\n )}\n </>\n );\n};\n","import { Box } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { highlightsFrom } from \"../../util/package\";\nimport { Highlight as HighlightComponent } from \"../Highlight\";\nimport { usePackageCard } from \"./PackageCard\";\n\nexport const Highlight: FunctionComponent = () => {\n const { packageTags = [] } = usePackageCard()?.metadata ?? {};\n const [highlight] = highlightsFrom(packageTags);\n\n if (!highlight) return null;\n\n return (\n <Box fontSize=\"xs\">\n <HighlightComponent {...highlight} />\n </Box>\n );\n};\n","import type { FunctionComponent } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Language,\n LANGUAGES,\n LANGUAGE_RENDER_MAP,\n TEMP_SUPPORTED_LANGUAGES,\n} from \"../../constants/languages\";\nimport { getPackagePath } from \"../../util/url\";\nimport { LanguageSupportTooltip } from \"../LanguageSupportTooltip\";\n\nconst sizes = {\n sm: 5,\n md: 6,\n lg: 8,\n};\n\nexport interface PackageLanguagesProps {\n isRounded?: boolean;\n languages?: Partial<Record<Language, unknown>>;\n name: string;\n size?: \"sm\" | \"md\" | \"lg\";\n version: string;\n}\n\nexport const PackageLanguages: FunctionComponent<PackageLanguagesProps> = ({\n isRounded = false,\n languages,\n name: packageName,\n size = \"md\",\n version,\n}) => {\n const targets = Object.keys(languages ?? {}) as Language[];\n return (\n <>\n {Object.entries(LANGUAGE_RENDER_MAP)\n // Ensure entries are always sorted in a stable way\n .sort(\n ([left], [right]) =>\n LANGUAGES.indexOf(left as Language) -\n LANGUAGES.indexOf(right as Language)\n )\n .map(([lang, info]) => {\n const language = lang as Language;\n\n const isSupportedByLibrary =\n language === Language.TypeScript || targets.includes(language);\n\n const isSupportedByConstructHub =\n language === Language.TypeScript || // TypeScript is always supported\n // Otherwise, the language must be supported by ConstructHub\n TEMP_SUPPORTED_LANGUAGES.has(language);\n\n if (!isSupportedByLibrary) return null;\n\n const { name, icon: Icon } = info;\n\n const icon = (\n <Icon\n aria-label={`Supports ${name}`}\n borderRadius={isRounded ? \"50%\" : 0}\n h={sizes[size]}\n opacity={isSupportedByConstructHub ? 1 : 0.2}\n w={sizes[size]}\n />\n );\n\n return (\n <LanguageSupportTooltip key={language} language={language}>\n {isSupportedByConstructHub ? (\n <Link\n aria-label={`View package docs for ${language}`}\n to={getPackagePath({ name: packageName, version, language })}\n >\n {icon}\n </Link>\n ) : (\n icon\n )}\n </LanguageSupportTooltip>\n );\n })}\n </>\n );\n};\n","import type { FunctionComponent } from \"react\";\nimport { PackageLanguages } from \"../PackageLanguages\";\nimport { usePackageCard } from \"./PackageCard\";\n\nexport const Languages: FunctionComponent = () => {\n const pkg = usePackageCard();\n return <PackageLanguages {...pkg} size=\"sm\" />;\n};\n","import { FunctionComponent } from \"react\";\nimport { tagObjectsFrom } from \"../../util/package\";\nimport { PackageTag } from \"../PackageTag\";\nimport { usePackageCard } from \"./PackageCard\";\n\nexport const Tags: FunctionComponent = () => {\n const {\n keywords = [],\n metadata: { packageTags = [] },\n } = usePackageCard();\n\n const tags = tagObjectsFrom({\n packageTags,\n keywords,\n });\n\n return (\n <>\n {tags.slice(0, 10).map(({ id, keyword: { label, color } = {} }) => (\n <PackageTag key={id} value={id} variant={color}>\n {label}\n </PackageTag>\n ))}\n </>\n );\n};\n","import { Flex, Grid, LinkBox, Stack } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { Details } from \"./Details\";\nimport { Heading } from \"./Heading\";\nimport { Highlight } from \"./Highlight\";\nimport { Languages } from \"./Languages\";\nimport { Tags } from \"./Tags\";\nimport testIds from \"./testIds\";\n\nexport const WideCard: FunctionComponent = () => {\n return (\n <LinkBox\n _hover={{\n \"> article\": {\n bg: \"hoverPrimary\",\n },\n }}\n >\n <Grid\n as=\"article\"\n bg=\"bgSecondary\"\n border=\"base\"\n borderRadius=\"sm\"\n boxShadow=\"base\"\n color=\"textPrimary\"\n data-testid={testIds.wideContainer}\n h=\"full\"\n minH=\"12.5rem\"\n templateColumns={{ base: \"1fr\", lg: \"1fr 14rem\" }}\n w=\"full\"\n >\n {/* Top / Left side of card */}\n <Flex\n direction=\"column\"\n justify=\"space-between\"\n overflow=\"hidden\"\n p={5}\n sx={{ gap: \"0.5rem\" }}\n >\n <Stack spacing={3}>\n <Heading />\n </Stack>\n\n <Flex align=\"center\" sx={{ gap: \"0.5rem\" }} wrap=\"wrap\">\n <Tags />\n </Flex>\n </Flex>\n\n {/* Bottom / Right side of card */}\n <Flex\n align={{ base: \"end\", lg: \"initial\" }}\n borderLeft={{ lg: \"base\" }}\n borderTop={{ base: \"base\", lg: \"none\" }}\n direction={{ base: \"row\", lg: \"column\" }}\n justify=\"space-between\"\n p={5}\n sx={{ gap: \"0.5rem\" }}\n >\n <Stack spacing={1}>\n <Highlight />\n <Stack spacing={1}>\n <Details />\n </Stack>\n </Stack>\n\n <Stack data-testid={testIds.languages} direction=\"row\" spacing={2}>\n <Languages />\n </Stack>\n </Flex>\n </Grid>\n </LinkBox>\n );\n};\n","import { createContext, FunctionComponent, useContext } from \"react\";\nimport { ExtendedCatalogPackage } from \"../../api/catalog-search\";\nimport { PackageCardType } from \"./constants\";\nimport { WideCard } from \"./WideCard\";\n\nexport interface PackageCardProps {\n \"data-event\"?: string;\n pkg: ExtendedCatalogPackage;\n variant?: PackageCardType;\n}\n\ninterface PackageCardState extends ExtendedCatalogPackage {\n comment?: string;\n dataEvent?: string;\n}\n\nconst PackageCardContext = createContext<PackageCardState | null>(null);\n\nexport const usePackageCard = () => useContext(PackageCardContext)!;\n\nexport const PackageCard: FunctionComponent<PackageCardProps> = ({\n \"data-event\": dataEvent,\n pkg,\n variant = PackageCardType.Wide,\n}) => {\n return (\n <PackageCardContext.Provider value={{ ...pkg, dataEvent }}>\n {variant === PackageCardType.Wide && <WideCard />}\n </PackageCardContext.Provider>\n );\n};\n","import { Tag, TagLabel, TagProps } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\nimport { getSearchPath } from \"../../util/url\";\nimport { NavLink } from \"../NavLink\";\n\nexport interface PackageTagProps extends TagProps {\n value: string;\n label?: string;\n zIndex?: string | number;\n}\n\nexport const PackageTag: FunctionComponent<PackageTagProps> = ({\n children,\n value,\n label = value,\n zIndex,\n ...tagProps\n}) => {\n return (\n <NavLink\n aria-label={`Tag: ${label}`}\n to={getSearchPath({ keywords: [value] })}\n zIndex={zIndex}\n >\n <Tag\n _hover={{\n textDecoration: \"underline\",\n }}\n {...tagProps}\n >\n <TagLabel>{children}</TagLabel>\n </Tag>\n </NavLink>\n );\n};\n","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\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).\nconst 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\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 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, BoxProps, forwardRef } from \"@chakra-ui/react\";\nimport { format } from \"date-fns\";\n\nexport type TimeOptions = {\n date: Date;\n format?: string;\n formattedDate?: string;\n};\n\nexport interface TimeProps extends BoxProps, TimeOptions {}\n\nexport const Time = forwardRef<TimeProps, \"time\">(\n ({ date, format: formatString, formattedDate, ...boxProps }, ref) => {\n return (\n <Box as=\"time\" dateTime={date.toISOString()} ref={ref} {...boxProps}>\n {formattedDate ?? format(date, formatString ?? \"\")}\n </Box>\n );\n }\n);\n\nTime.displayName = \"Time\";\n","import type { Config } from \"../../api/config\";\nimport { useConfig } from \"../../contexts/Config\";\n\nexport const useConfigValue = <T extends keyof Config>(key: T) => {\n const { data } = useConfig();\n return (data ?? {})[key];\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { useLocation, useHistory } from \"react-router-dom\";\nimport { Language, TEMP_SUPPORTED_LANGUAGES } from \"../../constants/languages\";\nimport { QUERY_PARAMS } from \"../../constants/url\";\nimport { useQueryParams } from \"../../hooks/useQueryParams\";\n\n// Only supported language atm\nconst defaultLang = Language.TypeScript;\n\nconst LOCAL_KEY = \"preferred-language\";\n\nconst isValidLang = (lang?: string | Language): lang is Language =>\n lang != null && TEMP_SUPPORTED_LANGUAGES.has(lang as Language);\n\nconst getInitialLang = (langFromParams: string | Language): Language => {\n // First, use language from query params in url\n if (isValidLang(langFromParams)) {\n return langFromParams;\n }\n\n // Next check for one stored in localStorage\n try {\n const storedLang = (localStorage.getItem(LOCAL_KEY) ?? \"\") as Language;\n if (isValidLang(storedLang)) return storedLang;\n } catch {\n // Do nothing, we just don't want to crash if localStorage access is blocked.\n }\n\n // Otherwise fallback to a default\n return defaultLang;\n};\n\nexport interface UseLanguageOptions {\n /**\n * Syncs the preferred language to a query param in URL\n */\n updateUrl?: boolean;\n /**\n * Saves the selected language to localStorage on select\n */\n updateSaved?: boolean;\n}\n\nexport const useLanguage = (options: UseLanguageOptions = {}) => {\n const { updateUrl, updateSaved } = options;\n const { pathname, hash } = useLocation();\n const { replace } = useHistory();\n const params = useQueryParams();\n const langFromParams = params.get(QUERY_PARAMS.LANGUAGE) as Language;\n\n // Passed as function to guarantee it runs on hook mount\n const [language, setLanguage] = useState<Language>(() =>\n getInitialLang(langFromParams)\n );\n\n // State subscribes to query param changes\n useEffect(() => {\n if (isValidLang(langFromParams) && langFromParams !== language) {\n setLanguage(langFromParams);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [langFromParams]);\n\n // Syncs language changes to URL if updateUrl = true\n useEffect(() => {\n if (langFromParams !== language && updateUrl) {\n params.set(QUERY_PARAMS.LANGUAGE, language);\n replace({ pathname, hash, search: params.toString() });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [language, updateUrl]);\n\n const update = useCallback(\n (val: Language) => {\n setLanguage(val);\n\n if (updateSaved) {\n try {\n localStorage.setItem(LOCAL_KEY, val);\n } catch {\n // OK to fail silently\n }\n }\n },\n [updateSaved]\n );\n\n return useMemo(() => [language, update] as const, [language, update]);\n};\n","import { useMemo } from \"react\";\nimport { useLocation } from \"react-router-dom\";\n\nexport const useQueryParams = () => {\n const { search } = useLocation();\n\n return useMemo(() => new URLSearchParams(search), [search]);\n};\n","import { PackageHighlight, PackageTagConfig } from \"../api/config\";\nimport { KEYWORD_IGNORE_LIST } from \"../constants/keywords\";\n\nexport interface TagObject extends PackageTagConfig {}\n\n/**\n * Reduces package tags to only return highlight tags\n */\nexport const highlightsFrom = (packageTags?: PackageTagConfig[]) => {\n if (!packageTags || packageTags.length < 1) return [];\n\n return packageTags.reduce(\n (accum: PackageHighlight[], tag: PackageTagConfig): PackageHighlight[] => {\n if (tag.highlight) {\n return [...accum, tag.highlight];\n }\n\n return accum;\n },\n []\n );\n};\n\n/**\n * Maps packageTags to an array of TagObjects, which can be rendered by the PackageTags Component\n */\nexport const mapPackageTags = (\n packageTags?: PackageTagConfig[]\n): TagObject[] => {\n return (packageTags ?? [])\n .filter((tag) => {\n return Boolean(tag.keyword?.label);\n })\n .map((tag) => ({\n ...tag,\n id: tag.keyword?.label!,\n }));\n};\n\n/**\n * Maps keywords to an array of TagObjects, which can be rendered by the PackageTags component\n */\nexport const mapPackageKeywords = (keywords?: string[]): TagObject[] => {\n if (!keywords || keywords.length < 1) return [];\n\n return keywords\n .filter((label) => Boolean(label) && !KEYWORD_IGNORE_LIST.has(label))\n .map((label) => ({\n id: label,\n keyword: {\n label,\n },\n }));\n};\n\n/**\n * Maps packageTags and keywords to a list of TagObjects, using mapPackageTags and mapPackageKeywords\n */\nexport const tagObjectsFrom = ({\n packageTags,\n keywords,\n}: {\n packageTags?: PackageTagConfig[];\n keywords?: string[];\n}): TagObject[] => {\n const tagObjects = new Array<TagObject>();\n const tagLabels = new Set<string>();\n\n for (const tag of [\n ...mapPackageTags(packageTags),\n ...mapPackageKeywords(keywords),\n ]) {\n const label = tag.keyword!.label.toLowerCase();\n if (!tagLabels.has(label)) {\n tagObjects.push(tag);\n tagLabels.add(label);\n }\n }\n\n return tagObjects;\n};\n"],"names":["Highlight","label","color","icon","brightness","useColorModeValue","align","direction","filter","spacing","alt","src","w","fontWeight","LanguageSupportTooltip","children","language","isSupported","TEMP_SUPPORTED_LANGUAGES","langName","LANGUAGE_NAME_MAP","message","hasArrow","placement","PackageCardType","createTestIds","Detail","dataTestid","tooltip","value","isDisabled","fontSize","zIndex","Details","usePackageCard","author","date","metadata","name","data","useStats","downloads","packages","npm","authorName","publishDate","Date","undefined","testIds","toLocaleString","Time","formattedDate","formatDistanceToNowStrict","addSuffix","NavLink","to","getSearchPath","query","EditorsNote","comment","lineHeight","noOfLines","as","Heading","useLanguage","currentLanguage","dataEvent","description","constructFrameworks","version","Link","eventName","getPackagePath","CDKType","mr","wordBreak","packageTags","highlightsFrom","highlight","sizes","sm","md","lg","PackageLanguages","isRounded","languages","packageName","size","targets","Object","keys","entries","LANGUAGE_RENDER_MAP","sort","left","right","LANGUAGES","map","lang","info","isSupportedByLibrary","Language","includes","isSupportedByConstructHub","Icon","borderRadius","h","opacity","Languages","pkg","Tags","keywords","tags","tagObjectsFrom","slice","id","keyword","PackageTag","variant","WideCard","_hover","bg","border","boxShadow","minH","templateColumns","base","justify","overflow","p","sx","gap","wrap","borderLeft","borderTop","PackageCardContext","createContext","useContext","PackageCard","Wide","Provider","tagProps","textDecoration","pageInfo","contribute","event","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","join","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","formattedTitle","Helmet","process","content","charSet","property","forwardRef","ref","formatString","format","boxProps","dateTime","toISOString","displayName","useConfigValue","key","useConfig","defaultLang","LOCAL_KEY","isValidLang","getInitialLang","langFromParams","storedLang","localStorage","getItem","options","updateUrl","updateSaved","useLocation","pathname","hash","useHistory","replace","params","useQueryParams","get","QUERY_PARAMS","useState","setLanguage","set","toString","update","useCallback","val","setItem","useMemo","URLSearchParams","length","reduce","accum","tag","tagObjects","Array","tagLabels","Set","Boolean","mapPackageTags","KEYWORD_IGNORE_LIST","mapPackageKeywords","toLowerCase","has","push","add"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[540],{41712:function(e,t,n){n.d(t,{T:function(){return o}});var s=n(72791),a=n(54270),i={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=n(59534),c=n(80184),o=(["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(" "),function(e){var t=e.children,n=e.meta,o=e.pageName,h=(0,r.aQ)(i[o]);(0,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;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(a.q,{children:[!1,(0,c.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,c.jsx)("meta",{charSet:"utf-8"}),(0,c.jsx)("title",{children:p}),(0,c.jsx)("meta",{content:p,property:"og:title"}),(0,c.jsx)("meta",{content:p,name:"twitter:title"}),(0,c.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,c.jsx)("meta",{content:u,name:"description"}),(0,c.jsx)("meta",{content:u,property:"og:description"}),(0,c.jsx)("meta",{content:u,name:"twitter:description"})]}),t]})})},98540:function(e,t,n){n.r(t),n.d(t,{default:function(){return o}});var s=n(28735),a=n(6074),i=n(41712),r=n(76798),c=n(80184),o=function(){return(0,c.jsx)(i.T,{meta:{title:"Site Terms",description:"View the Construct Hub Site Terms"},pageName:"siteTerms",children:(0,c.jsx)(s.xu,{bg:"bgSecondary",h:"100%",py:16,w:"100%",children:(0,c.jsxs)(s.xu,{as:"article",color:"textPrimary",fontSize:"lg",maxW:{base:"80%",md:"38rem"},mx:"auto",textAlign:"justify",w:"100%",children:[(0,c.jsx)(s.X6,{as:"h1",color:"textPrimary",mb:8,mx:"auto",size:"lg",children:"AWS Site Terms for CDK Construct Hub"}),(0,c.jsxs)(s.Kq,{spacing:4,children:[(0,c.jsx)(s.xv,{fontStyle:"italic",children:"Last Updated: July 2021"}),(0,c.jsxs)(s.xv,{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"," ",(0,c.jsx)(a.d,{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)."]}),(0,c.jsxs)(s.xv,{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:"," ",(0,c.jsx)(a.d,{hasWarning:!1,href:"".concat(r.Sx,"/blob/main/LICENSE"),children:"".concat(r.Sx,"/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=540.2b86534a.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/540.2b86534a.chunk.js","mappings":"4LAAaA,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,sBCVCS,GATD,CACV,6DACA,wNACA,yDACA,qKACA,qBACA,qCACAC,KAAK,KAE2C,SAAC,GAI5C,IAHLC,EAGI,EAHJA,SACAC,EAEI,EAFJA,KACAC,EACI,EADJA,SAEMC,GAAgBC,EAAAA,EAAAA,IAAYlB,EAASgB,KAE3CG,EAAAA,EAAAA,YAAU,WACRF,MACC,CAACA,IAEJ,MAA8CF,EAAtCK,OAAAA,OAAR,SAAuBC,EAAuBN,EAAvBM,MAAOC,EAAgBP,EAAhBO,YACxBC,EAAiBH,EAAM,UAAMC,EAAN,oBAAgCA,EAE7D,OACE,iCACE,UAACG,EAAA,EAAD,YACGC,GAID,iBAAMC,QAAQ,sCAAsCvB,KAAK,cACzD,iBAAMwB,QAAQ,WAEd,2BAAQJ,KACR,iBAAMG,QAASH,EAAgBK,SAAS,cACxC,iBAAMF,QAASH,EAAgBpB,KAAK,mBACpC,iBAAMuB,QAAQ,UAAUvB,KAAK,kBAE7B,iBAAMuB,QAASJ,EAAanB,KAAK,iBACjC,iBAAMuB,QAASJ,EAAaM,SAAS,oBACrC,iBAAMF,QAASJ,EAAanB,KAAK,2BAElCW,Q,6HCrDMe,EAA+B,kBAC1C,SAACjB,EAAA,EAAD,CACEG,KAAM,CACJM,MAAO,aACPC,YAAa,qCAEfN,SAAS,YALX,UAOE,SAAC,KAAD,CAAKc,GAAG,cAAcC,EAAE,OAAOC,GAAI,GAAIC,EAAE,OAAzC,UACE,UAAC,KAAD,CACEC,GAAG,UACHC,MAAM,cACNC,SAAS,KACTC,KAAM,CAAEC,KAAM,MAAOC,GAAI,SACzBC,GAAG,OACHC,UAAU,UACVR,EAAE,OAPJ,WASE,SAAC,KAAD,CAASC,GAAG,KAAKC,MAAM,cAAcO,GAAI,EAAGF,GAAG,OAAOG,KAAK,KAA3D,mDAGA,UAAC,KAAD,CAAOC,QAAS,EAAhB,WACE,SAAC,KAAD,CAAMC,UAAU,SAAhB,sCACA,UAAC,KAAD,uMAG6C,KAC3C,SAACC,EAAA,EAAD,CACEC,YAAY,EACZC,KAAK,gCAFP,wBAKgB,IATlB,oKAcA,UAAC,KAAD,sJAEkE,KAChE,SAACF,EAAA,EAAD,CACEC,YAAY,EACZC,KAAI,UAAKC,EAAAA,GAAL,sBAFN,mBAIMA,EAAAA,GAJN,wBAHF","sources":["constants/pageInfo.ts","components/Page/Page.tsx","views/SiteTerms/SiteTerms.tsx"],"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\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).\nconst 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\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 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=\"bgSecondary\" h=\"100%\" py={16} w=\"100%\">\n <Box\n as=\"article\"\n color=\"textPrimary\"\n fontSize=\"lg\"\n maxW={{ base: \"80%\", md: \"38rem\" }}\n mx=\"auto\"\n textAlign=\"justify\"\n w=\"100%\"\n >\n <Heading as=\"h1\" color=\"textPrimary\" 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"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","join","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","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"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[577],{41712:function(e,t,n){n.d(t,{T:function(){return c}});var r=n(72791),a=n(54270),s={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(59534),o=n(80184),c=(["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(" "),function(e){var t=e.children,n=e.meta,c=e.pageName,l=(0,i.aQ)(s[c]);(0,r.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,m=n.title,p=n.description,f=u?"".concat(m," - Construct Hub"):m;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a.q,{children:[!1,(0,o.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,o.jsx)("meta",{charSet:"utf-8"}),(0,o.jsx)("title",{children:f}),(0,o.jsx)("meta",{content:f,property:"og:title"}),(0,o.jsx)("meta",{content:f,name:"twitter:title"}),(0,o.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,o.jsx)("meta",{content:p,name:"description"}),(0,o.jsx)("meta",{content:p,property:"og:description"}),(0,o.jsx)("meta",{content:p,name:"twitter:description"})]}),t]})})},42577:function(e,t,n){n.r(t),n.d(t,{NotFound:function(){return h},default:function(){return h}});var r=n(28735),a=n(82504),s=n(91523),i=n(41712),o=n(1413),c=n(45987),l=n(63209),d=n(53046),u=n(80184),m=["sources"],p=(0,l.Gp)((function(e,t){var n=e.sources,a=(0,c.Z)(e,m);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),(0,u.jsx)(d.Ee,(0,o.Z)({ref:t},a))]})}));p.displayName="Picture";var f={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"},h=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(p,{alt:"",inset:0,position:"absolute",sources:f.optimal,src:f.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(p,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:s.rU,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})}},53046:function(e,t,n){n.d(t,{Ee:function(){return m}});var r=n(63209),a=n(96134),s=n(72791),i=n(8185);function o(){return o=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},o.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var l=["htmlWidth","htmlHeight","alt"],d=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],u=s.forwardRef((function(e,t){var n=e.htmlWidth,r=e.htmlHeight,a=e.alt,i=c(e,l);return s.createElement("img",o({width:n,height:r,ref:t,alt:a},i))})),m=(0,r.Gp)((function(e,t){var n=e.fallbackSrc,l=e.fallback,m=e.src,p=e.srcSet,f=e.align,h=e.fit,g=e.loading,v=e.ignoreFallback,b=e.crossOrigin,x=c(e,d),w=null!=g||v||void 0===n&&void 0===l,j=function(e){var t=e.loading,n=e.src,r=e.srcSet,a=e.onLoad,o=e.onError,c=e.crossOrigin,l=e.sizes,d=e.ignoreFallback,u=(0,s.useState)("pending"),m=u[0],p=u[1];(0,s.useEffect)((function(){p(n?"loading":"pending")}),[n]);var f=(0,s.useRef)(),h=(0,s.useCallback)((function(){if(n){g();var e=new Image;e.src=n,c&&(e.crossOrigin=c),r&&(e.srcset=r),l&&(e.sizes=l),t&&(e.loading=t),e.onload=function(e){g(),p("loaded"),null==a||a(e)},e.onerror=function(e){g(),p("failed"),null==o||o(e)},f.current=e}}),[n,c,r,l,a,o,t]),g=function(){f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return(0,i.a)((function(){if(!d)return"loading"===m&&h(),function(){g()}}),[m,h,d]),d?"loaded":m}(o({},e,{ignoreFallback:w})),k=o({ref:t,objectFit:h,objectPosition:f},w?x:(0,a.CE)(x,["onError","onLoad"]));return"loaded"!==j?l||s.createElement(r.m$.img,o({as:u,className:"chakra-image__placeholder",src:n},k)):s.createElement(r.m$.img,o({as:u,src:m,srcSet:p,crossOrigin:b,loading:g,className:"chakra-image"},k))}));a.Ts&&(m.displayName="Image")}}]);
2
- //# sourceMappingURL=577.4e3ff9fc.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/577.4e3ff9fc.chunk.js","mappings":"4LAAaA,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,sBCVCS,GATD,CACV,6DACA,wNACA,yDACA,qKACA,qBACA,qCACAC,KAAK,KAE2C,SAAC,GAI5C,IAHLC,EAGI,EAHJA,SACAC,EAEI,EAFJA,KACAC,EACI,EADJA,SAEMC,GAAgBC,EAAAA,EAAAA,IAAYlB,EAASgB,KAE3CG,EAAAA,EAAAA,YAAU,WACRF,MACC,CAACA,IAEJ,MAA8CF,EAAtCK,OAAAA,OAAR,SAAuBC,EAAuBN,EAAvBM,MAAOC,EAAgBP,EAAhBO,YACxBC,EAAiBH,EAAM,UAAMC,EAAN,oBAAgCA,EAE7D,OACE,iCACE,UAACG,EAAA,EAAD,YACGC,GAID,iBAA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oB,CAASvD,EAAS,GAAIzB,EAAO,CACxCwD,eAAgBE,KAGduB,EAASxD,EAAS,CACpB3B,IAAKA,EACLoF,UAAW5B,EACX6B,eAAgBhE,GACfuC,EAAeT,GAAOmC,EAAAA,EAAAA,IAAKnC,EAAM,CAAC,UAAW,YAEhD,MAAe,WAAXW,EAKElD,GACgBoC,EAAAA,cAAoBuC,EAAAA,GAAAA,IAAY5D,EAAS,CAC3DxB,GAAI4C,EACJyC,UAAW,4BACXrE,IAAKoC,GACJ4B,IAGenC,EAAAA,cAAoBuC,EAAAA,GAAAA,IAAY5D,EAAS,CAC3DxB,GAAI4C,EACJ5B,IAAKA,EACLX,OAAQA,EACRmD,YAAaA,EACbF,QAASA,EACT+B,UAAW,gBACVL,OAeDM,EAAAA,KACFnC,EAAQ7C,YAAc","sources":["constants/pageInfo.ts","components/Page/Page.tsx","components/Picture/Picture.tsx","views/NotFound/NotFound.tsx","../node_modules/@chakra-ui/image/dist/chakra-ui-image.esm.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\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).\nconst 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\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 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=\"brand\" to=\"/\">\n Take Me Home\n </Button>\n </Flex>\n </Center>\n </Page>\n );\n};\n","import { forwardRef, chakra } from '@chakra-ui/system';\nimport { omit, __DEV__ } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { useState, useEffect, useRef, useCallback } from 'react';\nimport { useSafeLayoutEffect } from '@chakra-ui/hooks';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\n/**\n * React hook that loads an image in the browser,\n * and let's us know the `status` so we can show image\n * fallback if it is still `pending`\n *\n * @returns the status of the image loading progress\n *\n * @example\n *\n * ```jsx\n * function App(){\n * const status = useImage({ src: \"image.png\" })\n * return status === \"loaded\" ? <img src=\"image.png\" /> : <Placeholder />\n * }\n * ```\n */\nfunction useImage(props) {\n var loading = props.loading,\n src = props.src,\n srcSet = props.srcSet,\n onLoad = props.onLoad,\n onError = props.onError,\n crossOrigin = props.crossOrigin,\n sizes = props.sizes,\n ignoreFallback = props.ignoreFallback;\n\n var _useState = useState(\"pending\"),\n status = _useState[0],\n setStatus = _useState[1];\n\n useEffect(function () {\n setStatus(src ? \"loading\" : \"pending\");\n }, [src]);\n var imageRef = useRef();\n var load = useCallback(function () {\n if (!src) return;\n flush();\n var img = new Image();\n img.src = src;\n if (crossOrigin) img.crossOrigin = crossOrigin;\n if (srcSet) img.srcset = srcSet;\n if (sizes) img.sizes = sizes;\n if (loading) img.loading = loading;\n\n img.onload = function (event) {\n flush();\n setStatus(\"loaded\");\n onLoad == null ? void 0 : onLoad(event);\n };\n\n img.onerror = function (error) {\n flush();\n setStatus(\"failed\");\n onError == null ? void 0 : onError(error);\n };\n\n imageRef.current = img;\n }, [src, crossOrigin, srcSet, sizes, onLoad, onError, loading]);\n\n var flush = function flush() {\n if (imageRef.current) {\n imageRef.current.onload = null;\n imageRef.current.onerror = null;\n imageRef.current = null;\n }\n };\n\n useSafeLayoutEffect(function () {\n /**\n * If user opts out of the fallback/placeholder\n * logic, let's bail out.\n */\n if (ignoreFallback) return undefined;\n\n if (status === \"loading\") {\n load();\n }\n\n return function () {\n flush();\n };\n }, [status, load, ignoreFallback]);\n /**\n * If user opts out of the fallback/placeholder\n * logic, let's just return 'loaded'\n */\n\n return ignoreFallback ? \"loaded\" : status;\n}\n\nvar _excluded = [\"htmlWidth\", \"htmlHeight\", \"alt\"],\n _excluded2 = [\"fallbackSrc\", \"fallback\", \"src\", \"srcSet\", \"align\", \"fit\", \"loading\", \"ignoreFallback\", \"crossOrigin\"];\nvar NativeImage = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var htmlWidth = props.htmlWidth,\n htmlHeight = props.htmlHeight,\n alt = props.alt,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n return /*#__PURE__*/React.createElement(\"img\", _extends({\n width: htmlWidth,\n height: htmlHeight,\n ref: ref,\n alt: alt\n }, rest));\n});\n\n/**\n * React component that renders an image with support\n * for fallbacks\n *\n * @see Docs https://chakra-ui.com/image\n */\nvar Image$1 = /*#__PURE__*/forwardRef(function (props, ref) {\n var fallbackSrc = props.fallbackSrc,\n fallback = props.fallback,\n src = props.src,\n srcSet = props.srcSet,\n align = props.align,\n fit = props.fit,\n loading = props.loading,\n ignoreFallback = props.ignoreFallback,\n crossOrigin = props.crossOrigin,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n /**\n * Defer to native `img` tag if `loading` prop is passed\n * @see https://github.com/chakra-ui/chakra-ui/issues/1027\n */\n\n\n var shouldIgnore = loading != null || ignoreFallback || fallbackSrc === undefined && fallback === undefined; // if the user doesn't provide any kind of fallback we should ignore it\n\n var status = useImage(_extends({}, props, {\n ignoreFallback: shouldIgnore\n }));\n\n var shared = _extends({\n ref: ref,\n objectFit: fit,\n objectPosition: align\n }, shouldIgnore ? rest : omit(rest, [\"onError\", \"onLoad\"]));\n\n if (status !== \"loaded\") {\n /**\n * If user passed a custom fallback component,\n * let's render it here.\n */\n if (fallback) return fallback;\n return /*#__PURE__*/React.createElement(chakra.img, _extends({\n as: NativeImage,\n className: \"chakra-image__placeholder\",\n src: fallbackSrc\n }, shared));\n }\n\n return /*#__PURE__*/React.createElement(chakra.img, _extends({\n as: NativeImage,\n src: src,\n srcSet: srcSet,\n crossOrigin: crossOrigin,\n loading: loading,\n className: \"chakra-image\"\n }, shared));\n});\n\n/**\n * Fallback component for most SSR users who want to use the native `img` with\n * support for chakra props\n */\nvar Img = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(chakra.img, _extends({\n ref: ref,\n as: NativeImage,\n className: \"chakra-image\"\n }, props));\n});\n\nif (__DEV__) {\n Image$1.displayName = \"Image\";\n}\n\nexport { Image$1 as Image, Img, useImage };\n"],"names":["pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","join","children","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","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","_extends","Object","assign","target","i","arguments","length","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded","_excluded2","NativeImage","React","htmlWidth","htmlHeight","rest","width","height","Image$1","fallbackSrc","fit","loading","ignoreFallback","crossOrigin","shouldIgnore","undefined","status","onLoad","onError","sizes","_useState","useState","setStatus","imageRef","useRef","load","useCallback","flush","img","Image","srcset","onload","onerror","error","current","useSafeLayoutEffect","useImage","shared","objectFit","objectPosition","omit","chakra","className","__DEV__"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[679],{51773:function(e,t,n){n.d(t,{Z0:function(){return o},S1:function(){return i},u9:function(){return c},eI:function(){return l},vy:function(){return d},Dq:function(){return f}});var r=n(28735),s=n(80184),o=function(e){var t=e.children;return(0,s.jsxs)(r.xu,{bg:"bgSecondary",color:"textPrimary",h:"100%",w:"100%",children:[t,(0,s.jsx)(r.xu,{py:5,width:"100%"})]})},i=function(e){var t=e.children;return(0,s.jsx)(r.xu,{bg:"bgPrimary",py:20,width:"100%",children:(0,s.jsx)(r.X6,{as:"h1",color:"textPrimary",mx:"auto",textAlign:"center",children:t})})},a=n(35790),c=function(e){var t=e.question,n=e.children;return(0,s.jsxs)(a.Qd,{children:[(0,s.jsxs)(a.KF,{children:[(0,s.jsx)(r.xu,{flex:"1",py:2,textAlign:"left",children:(0,s.jsx)(r.X6,{as:"h3",ml:8,size:"sm",children:t})}),(0,s.jsx)(a.XE,{})]}),(0,s.jsx)(a.Hk,{px:12,py:4,children:(0,s.jsx)(r.xv,{color:"textPrimary",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:n})})]})},u=n(6074),l=function(e){var t=e.href,n=e.children;return(0,s.jsx)(u.d,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:n})},d=function(e){var t=e.heading,n=e.children;return(0,s.jsxs)(a.Qd,{children:[(0,s.jsxs)(a.KF,{children:[(0,s.jsx)(r.xu,{flex:"1",textAlign:"left",children:(0,s.jsx)(r.X6,{as:"h2",ml:4,my:4,size:"lg",children:t})}),(0,s.jsx)(a.XE,{})]}),(0,s.jsx)(a.Hk,{p:0,children:(0,s.jsx)(a.UQ,{allowMultiple:!0,w:"100%",children:n})})]})},h=n(1413),p=n(45987),m=["children"],f=function(e){var t=e.children,n=(0,p.Z)(e,m);return(0,s.jsx)(a.UQ,(0,h.Z)((0,h.Z)({allowMultiple:!0},n),{},{children:t}))}},41712:function(e,t,n){n.d(t,{T:function(){return c}});var r=n(72791),s=n(54270),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"}}},i=n(59534),a=n(80184),c=(["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(" "),function(e){var t=e.children,n=e.meta,c=e.pageName,u=(0,i.aQ)(o[c]);(0,r.useEffect)((function(){u()}),[u]);var l=n.suffix,d=void 0===l||l,h=n.title,p=n.description,m=d?"".concat(h," - Construct Hub"):h;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.q,{children:[!1,(0,a.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,a.jsx)("meta",{charSet:"utf-8"}),(0,a.jsx)("title",{children:m}),(0,a.jsx)("meta",{content:m,property:"og:title"}),(0,a.jsx)("meta",{content:m,name:"twitter:title"}),(0,a.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,a.jsx)("meta",{content:p,name:"description"}),(0,a.jsx)("meta",{content:p,property:"og:description"}),(0,a.jsx)("meta",{content:p,name:"twitter:description"})]}),t]})})},679:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var r=n(28735),s=n(51773),o=n(41712),i=n(76798),a=n(80184),c=function(){return(0,a.jsx)(o.T,{meta:{title:"FAQ",description:"Frequently Asked Questions"},pageName:"faq",children:(0,a.jsxs)(s.Z0,{children:[(0,a.jsx)(s.S1,{children:"Frequently Asked Questions"}),(0,a.jsxs)(s.Dq,{defaultIndex:[0,1],children:[(0,a.jsxs)(s.vy,{heading:"General",children:[(0,a.jsxs)(s.u9,{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"," ",(0,a.jsx)(s.eI,{href:"https://constructs.dev/contribute",children:"https://constructs.dev/contribute"}),"."]}),(0,a.jsx)(s.u9,{question:"What is Construct Hub?",children:(0,a.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."})}),(0,a.jsx)(s.u9,{question:"Why should I use Construct Hub?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"What is a construct?",children:(0,a.jsxs)(r.xv,{children:["The Constructs Programming Model (CPM) introduces the notion of"," ",(0,a.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."]})}),(0,a.jsxs)(s.u9,{question:"What are the prerequisites for using a construct library?",children:[(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"https://docs.aws.amazon.com/cdk/latest/guide/cli.html",children:"AWS CDK Toolkit command-line tool,"})," ","for CDK8s install the"," ",(0,a.jsx)(s.eI,{href:"https://cdk8s.io/docs/latest/getting-started/",children:"CDK8s command-line tool"})," ","and for CDKtf install the"," ",(0,a.jsx)(s.eI,{href:"https://learn.hashicorp.com/tutorials/terraform/cdktf-install",children:"CDKtf command-line tool."})]}),(0,a.jsx)(r.xv,{children:"The CDK8s CLI doesn\u2019t require having any registered account nor having a running Kubernetes cluster as it only updates Kubernetes manifests."}),(0,a.jsx)(r.xv,{children:"The CDKtf CLI requires having Terraform, Node, Yarn and Docker installed."}),(0,a.jsx)(r.xv,{children:"Some construct libraries\u2019 documentation may include additional prerequisites which are unique to their implementation."})]}),(0,a.jsx)(s.u9,{question:"Who owns the constructs in Construct Hub?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"Is the content served in Construct Hub meant to be consumed programmatically?",children:(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"https://constructs.dev/terms",children:"Construct Hub Site Terms"}),"."]})}),(0,a.jsx)(s.u9,{question:"Which CDK types are available on the Construct Hub?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"What is CDK for CloudFormation (AWS CDK)?",children:(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"https://aws.amazon.com/cdk/",children:"AWS Cloud Development Kit"})," ","for more information."]})}),(0,a.jsx)(s.u9,{question:"What is CDK for Kubernetes (CDK8s)?",children:(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"https://cdk8s.io/",children:"CDK for Kubernetes"})," for more information."]})}),(0,a.jsx)(s.u9,{question:"What is CDK for Terraform (CDKtf)?",children:(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"https://learn.hashicorp.com/tutorials/terraform/cdktf",children:"CDK for Terraform"})," ","for more information."]})}),(0,a.jsx)(s.u9,{question:"What programming languages are supported?",children:(0,a.jsx)(r.xv,{children:"The Construct Hub GA supports constructs available for Python, TypeScript, Java and .NET. Support for Go will be included soon."})}),(0,a.jsx)(s.u9,{question:"Will Go be supported?",children:(0,a.jsx)(r.xv,{children:"Yes! We can\u2019t promise exactly when, but it should be soon."})}),(0,a.jsx)(s.u9,{question:"Can I view the source code of a construct?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"How can I install a package?",children:(0,a.jsx)(r.xv,{children:"The details vary by construct. Click \u201cInstall\u201d in the package page to see the construct\u2019s installation instructions."})}),(0,a.jsx)(s.u9,{question:"How can I report abuse?",children:(0,a.jsx)(r.xv,{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.'})}),(0,a.jsx)(s.u9,{question:"How can I report a bug or contribute code to a construct?",children:(0,a.jsx)(r.xv,{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.'})}),(0,a.jsx)(s.u9,{question:"Why isn\u2019t my package displayed on Construct Hub?",children:(0,a.jsxs)(r.xv,{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"," ",(0,a.jsx)(s.eI,{href:"".concat(i.Sx,"/issues/new"),children:"here"}),"."]})}),(0,a.jsx)(s.u9,{question:"Can I update my package after it has been displayed?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"How does Construct Hub relates to the Construct Catalog?",children:(0,a.jsxs)(r.xv,{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."," ",(0,a.jsx)(s.eI,{href:"https://awscdk.io/",children:"https://awscdk.io"})," now redirects to Construct Hub."]})}),(0,a.jsx)(s.u9,{question:"Is there a cost for using third-party constructs from Construct Hub?",children:(0,a.jsx)(r.xv,{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."})}),(0,a.jsx)(s.u9,{question:"How can I participate in the Construct Hub community?",children:(0,a.jsxs)(r.xv,{children:["Construct Hub is itself an open-source construct! Join the"," ",(0,a.jsx)(s.eI,{href:i.Sx,children:"Construct Hub GitHub community"}),". You are also welcome to join the ",(0,a.jsx)("code",{children:"#construct-hub-dev"})," ","channel in the"," ",(0,a.jsx)(s.eI,{href:"https://cdk.dev/",children:"CDK community"})," Slack workspace."]})}),(0,a.jsx)(s.u9,{question:"Is there a community slack channel for the CDK community?",children:(0,a.jsxs)(r.xv,{children:["Please join the CDK Slack channel (",(0,a.jsx)(s.eI,{href:"https://cdk.dev/",children:"https://cdk.dev/"}),"). This Slack channel is managed by the CDK community for the CDK community."]})})]}),(0,a.jsxs)(s.vy,{heading:"Getting Started",children:[(0,a.jsx)(s.u9,{question:"Do I need a user account for Construct Hub?",children:(0,a.jsx)(r.xv,{children:"No. Construct Hub doesn\u2019t require any signup."})}),(0,a.jsx)(s.u9,{question:"How do I get started?",children:(0,a.jsx)(r.xv,{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=679.dddc0a34.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/679.dddc0a34.chunk.js","mappings":"qTAGaA,EAAyB,SAAC,GAAD,IAAGC,EAAH,EAAGA,SAAH,OACpC,UAAC,KAAD,CAAKC,GAAG,cAAcC,MAAM,cAAcC,EAAE,OAAOC,EAAE,OAArD,UACGJ,GACD,SAAC,KAAD,CAAKK,GAAI,EAAGC,MAAM,aCHTC,EAAgC,SAAC,GAAD,IAAGP,EAAH,EAAGA,SAAH,OAC3C,SAAC,KAAD,CAAKC,GAAG,YAAYI,GAAI,GAAIC,MAAM,OAAlC,UACE,SAAC,KAAD,CAASE,GAAG,KAAKN,MAAM,cAAcO,GAAG,OAAOC,UAAU,SAAzD,SACGV,O,WCSMW,EAA2C,SAAC,GAAD,IACtDC,EADsD,EACtDA,SACAZ,EAFsD,EAEtDA,SAFsD,OAItD,UAAC,KAAD,YACE,UAAC,KAAD,YACE,SAAC,KAAD,CAAKa,KAAK,IAAIR,GAAI,EAAGK,UAAU,OAA/B,UACE,SAAC,KAAD,CAASF,GAAG,KAAKM,GAAI,EAAGC,KAAK,KAA7B,SACGH,OAGL,SAAC,KAAD,QAEF,SAAC,KAAD,CAAgBI,GAAI,GAAIX,GAAI,EAA5B,UACE,SAAC,KAAD,CACEH,MAAM,cACNe,SAAS,KACTC,GAAI,CAAEC,EAAG,CAAEC,UAAW,IAAKC,aAAc,MAH3C,SAKGrB,U,UC3BIsB,EAA2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UAcF,SAAChE,EAAA,GAAD,CAASa,SAAS,uDAAlB,UACE,SAAC,KAAD,mKAOF,SAACb,EAAA,GAAD,CAASa,SAAS,2DAAlB,UACE,UAAC,KAAD,kQAI2D,KACzD,SAACb,EAAA,GAAD,CAASwB,KAAK,qBAAd,+BALF,yCAUF,SAACxB,EAAA,GAAD,CAASa,SAAS,uEAAlB,UACE,SAAC,KAAD,4PAQF,SAACb,EAAA,GAAD,CAASa,SAAS,wDAAlB,UACE,UAAC,KAAD,wEAC6D,KAC3D,SAACb,EAAA,GAAD,CAASwB,KAAMwC,EAAAA,GAAf,4CAFF,uCAKqC,iDAAgC,IALrE,iBAMiB,KACf,SAAChE,EAAA,GAAD,CAASwB,KAAK,mBAAd,2BAPF,0BAYF,SAACxB,EAAA,GAAD,CAASa,SAAS,4DAAlB,UACE,UAAC,KAAD,kDAEE,SAACb,EAAA,GAAD,CAASwB,KAAK,mBAAd,8BAFF,wFASJ,UAACxB,EAAA,GAAD,CAAY6B,QAAQ,kBAApB,WACE,SAAC7B,EAAA,GAAD,CAASa,SAAS,8CAAlB,UACE,SAAC,KAAD,oEAGF,SAACb,EAAA,GAAD,CAASa,SAAS,wBAAlB,UACE,SAAC,KAAD","sources":["components/FAQ/FAQ.tsx","components/FAQ/FAQHeading.tsx","components/FAQ/FAQItem.tsx","components/FAQ/FAQLink.tsx","components/FAQ/FAQSection.tsx","components/FAQ/FAQSections.tsx","constants/pageInfo.ts","components/Page/Page.tsx","views/FAQ/FAQ.tsx"],"sourcesContent":["import { Box } from \"@chakra-ui/react\";\nimport type { FunctionComponent } from \"react\";\n\nexport const FAQ: FunctionComponent = ({ children }) => (\n <Box bg=\"bgSecondary\" color=\"textPrimary\" 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=\"bgPrimary\" py={20} width=\"100%\">\n <Heading as=\"h1\" color=\"textPrimary\" 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=\"textPrimary\"\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","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\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).\nconst 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\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 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 { 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"],"names":["FAQ","children","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","pageInfo","contribute","event","name","home","faq","packageProfile","search","siteTerms","notFound","page","pageType","Page","join","meta","pageName","trackPageView","usePageView","useEffect","suffix","title","description","formattedTitle","Helmet","process","content","charSet","property","FAQPage","defaultIndex","CONSTRUCT_HUB_REPO_URL"],"sourceRoot":""}