From 469856e8a1d92fc6c765ede28069c066b0de3951 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sat, 9 Dec 2023 13:20:39 -0500 Subject: [PATCH 01/21] Update code for next 13 https://nextjs.org/docs/pages/building-your-application/upgrading/version-13 --- components/Image.tsx | 2 +- .../ForIndividualsCardContent/ForIndividualsCardContent.js | 2 -- .../ForLegislatorsCardContent/ForLegislatorsCardContent.js | 4 ---- components/about/ForOrgsCardContent/ForOrgsCardContent.js | 2 +- components/links.tsx | 4 ++-- components/search/bills/BillHit.tsx | 2 +- components/search/testimony/TestimonyHit.tsx | 2 +- 7 files changed, 6 insertions(+), 12 deletions(-) diff --git a/components/Image.tsx b/components/Image.tsx index 6e0d95209..d2f3d5a73 100644 --- a/components/Image.tsx +++ b/components/Image.tsx @@ -1,4 +1,4 @@ -import NextImage, { ImageProps, ImageLoaderProps } from "next/image" +import NextImage, { ImageProps, ImageLoaderProps } from "next/legacy/image" const customLoader = ({ src }: ImageLoaderProps) => { return src diff --git a/components/about/ForIndividualsCardContent/ForIndividualsCardContent.js b/components/about/ForIndividualsCardContent/ForIndividualsCardContent.js index a0333665a..e1d9da8b0 100644 --- a/components/about/ForIndividualsCardContent/ForIndividualsCardContent.js +++ b/components/about/ForIndividualsCardContent/ForIndividualsCardContent.js @@ -1,8 +1,6 @@ import { Row, Col } from "../../bootstrap" -import Image from "react-bootstrap/Image" import styles from "./ForIndividualsCardContent.module.css" import { SignInWithButton } from "../../auth" -import Link from "next/link" import { useTranslation } from "next-i18next" const WhyMAPLECardContent = () => { diff --git a/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js b/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js index 1a11f9279..06d190de9 100644 --- a/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js +++ b/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js @@ -1,9 +1,5 @@ import { Row, Col } from "../../bootstrap" -import Image from "react-bootstrap/Image" import styles from "./ForLegislatorsCardContent.module.css" -import { SignInWithButton } from "../../auth" -import Link from "next/link" -import { useTranslation } from "next-i18next" const WhyMAPLECardContent = () => { const { t } = useTranslation("forlegislators") diff --git a/components/about/ForOrgsCardContent/ForOrgsCardContent.js b/components/about/ForOrgsCardContent/ForOrgsCardContent.js index d0a2f1581..c5c1b452c 100644 --- a/components/about/ForOrgsCardContent/ForOrgsCardContent.js +++ b/components/about/ForOrgsCardContent/ForOrgsCardContent.js @@ -83,7 +83,7 @@ const BenefitsCardContent = () => {

{t("benefits.legislativeResearch.bodytext1")}{" "} - {t("benefits.legislativeResearch.linkText")} + {t("benefits.legislativeResearch.linkText")} {" "} {t("benefits.legislativeResearch.bodytext2")}

diff --git a/components/links.tsx b/components/links.tsx index 7de1bacf8..b7c439a34 100644 --- a/components/links.tsx +++ b/components/links.tsx @@ -10,7 +10,7 @@ type LinkProps = PropsWithChildren<{ href: string; className?: string }> export const Internal = forwardRef( ({ href, children, className, ...rest }: LinkProps, ref) => { return ( - + {children} @@ -42,7 +42,7 @@ export function External({ } export const Wrap: React.FC<{ href: string }> = ({ href, children }) => ( - + {children} ) diff --git a/components/search/bills/BillHit.tsx b/components/search/bills/BillHit.tsx index 1f08cead4..f3d2d2515 100644 --- a/components/search/bills/BillHit.tsx +++ b/components/search/bills/BillHit.tsx @@ -139,7 +139,7 @@ export const BillHit = ({ hit }: { hit: Hit }) => { : false return ( - + diff --git a/components/search/testimony/TestimonyHit.tsx b/components/search/testimony/TestimonyHit.tsx index 18eca17cf..efb94caf8 100644 --- a/components/search/testimony/TestimonyHit.tsx +++ b/components/search/testimony/TestimonyHit.tsx @@ -13,7 +13,7 @@ export const TestimonyHit = ({ hit }: { hit: Hit }) => { const url = maple.testimony({ publishedId: hit.id }) console.log(url) return ( - + From ca247b1db76f28c5d45d772666d988f39d815ea5 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sat, 9 Dec 2023 13:40:04 -0500 Subject: [PATCH 02/21] Update app to next 13 and react 18. Suspiciously painless --- .../ForLegislatorsCardContent.js | 1 + package.json | 8 +- yarn.lock | 1294 +++++++++++------ 3 files changed, 888 insertions(+), 415 deletions(-) diff --git a/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js b/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js index 06d190de9..b54a3070d 100644 --- a/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js +++ b/components/about/ForLegislatorsCardContent/ForLegislatorsCardContent.js @@ -1,5 +1,6 @@ import { Row, Col } from "../../bootstrap" import styles from "./ForLegislatorsCardContent.module.css" +import { useTranslation } from "next-i18next" const WhyMAPLECardContent = () => { const { t } = useTranslation("forlegislators") diff --git a/package.json b/package.json index 57687f10b..b74b6e56d 100644 --- a/package.json +++ b/package.json @@ -98,19 +98,19 @@ "luxon": "^3.1.1", "marked": "^4.2.5", "nanoid": "^3.3.1", - "next": "^12.1.5", + "next": "13", "next-i18next": "^13.1.5", "next-on-netlify": "^2.9.0", "next-redux-wrapper": "^8.1.0", "papaparse": "^5.3.0", "ra-core": "^4.8.3", - "react": "^17.0.2", + "react": "^18.2.0", "react-admin": "^4.8.3", "react-admin-firebase": "^4.0.12", "react-async-hook": "^4.0.0", "react-bootstrap": "^2.1.1", "react-copy-to-clipboard": "^5.1.0", - "react-dom": "^17.0.2", + "react-dom": "^18.2.0", "react-hook-form": "^7.33.1", "react-i18next": "^13.2.2", "react-inlinesvg": "^3.0.1", @@ -163,7 +163,7 @@ "clsx": "^1.2.1", "concurrently": "^7.0.0", "eslint": "^8.7.0", - "eslint-config-next": "^12.0.9", + "eslint-config-next": "13", "eslint-config-prettier": "^8.3.0", "firebase-admin": "^10", "firebase-tools": "^11.16.0", diff --git a/yarn.lock b/yarn.lock index 73848da75..9cb95f214 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2027,14 +2027,6 @@ pirates "^4.0.5" source-map-support "^0.5.16" -"@babel/runtime-corejs3@^7.10.2": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.12.5.tgz#ffee91da0eb4c6dae080774e94ba606368e414f4" - integrity sha512-roGr54CsTmNPPzZoCP1AmDXuBoNao7tnSA83TXTwt+UK5QVyh1DIJnrgYRPWKCF2flqZQXwa7Yr8v7VmLzF0YQ== - dependencies: - core-js-pure "^3.0.0" - regenerator-runtime "^0.13.4" - "@babel/runtime@7.7.2": version "7.7.2" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.2.tgz#111a78002a5c25fc8e3361bedc9529c696b85a6a" @@ -2056,13 +2048,6 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.10.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" - integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== - dependencies: - regenerator-runtime "^0.13.4" - "@babel/runtime@^7.12.0", "@babel/runtime@^7.13.10": version "7.17.2" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" @@ -2077,7 +2062,14 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.13.16", "@babel/runtime@^7.14.0", "@babel/runtime@^7.16.3", "@babel/runtime@^7.6.2": +"@babel/runtime@^7.12.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": + version "7.12.5" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" + integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== + dependencies: + regenerator-runtime "^0.13.4" + +"@babel/runtime@^7.13.16", "@babel/runtime@^7.14.0", "@babel/runtime@^7.6.2": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.16.7.tgz#03ff99f64106588c9c403c6ecb8c3bafbbdff1fa" integrity sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ== @@ -2112,6 +2104,13 @@ dependencies: regenerator-runtime "^0.14.0" +"@babel/runtime@^7.23.2": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.5.tgz#11edb98f8aeec529b82b211028177679144242db" + integrity sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@~7.5.4": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132" @@ -3922,82 +3921,62 @@ prop-types "^15.8.1" react-is "^18.2.0" -"@next/env@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/env/-/env-12.3.0.tgz#85f971fdc668cc312342761057c59cb8ab1abadf" - integrity sha512-PTJpjAFVbzBQ9xXpzMTroShvD5YDIIy46jQ7d4LrWpY+/5a8H90Tm8hE3Hvkc5RBRspVo7kvEOnqQms0A+2Q6w== +"@next/env@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/env/-/env-13.5.6.tgz#c1148e2e1aa166614f05161ee8f77ded467062bc" + integrity sha512-Yac/bV5sBGkkEXmAX5FWPS9Mmo2rthrOPRQQNfycJPkjUAUclomCPH7QFVCDQ4Mp2k2K1SSM6m0zrxYrOwtFQw== -"@next/eslint-plugin-next@12.0.9": - version "12.0.9" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.0.9.tgz#86edc490141fe3495765224d6cc25be158881802" - integrity sha512-Pi7eV7Omt4wkY1UI9Kvv3KQLvAkmWKb5EHePCE1fyR+LeYmKCNYtjVst3QTDkNeULbpPwnDqIISWu+x2y5G9EA== +"@next/eslint-plugin-next@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-13.5.6.tgz#cf279b94ddc7de49af8e8957f0c3b7349bc489bf" + integrity sha512-ng7pU/DDsxPgT6ZPvuprxrkeew3XaRf4LAT4FabaEO/hAbvVx4P7wqnqdbTdDn1kgTvsI4tpIgT4Awn/m0bGbg== dependencies: glob "7.1.7" -"@next/swc-android-arm-eabi@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.3.0.tgz#9a934904643591cb6f66eb09803a92d2b10ada13" - integrity sha512-/PuirPnAKsYBw93w/7Q9hqy+KGOU9mjYprZ/faxMUJh/dc6v3rYLxkZKNG9nFPIW4QKNTCnhP40xF9hLnxO+xg== - -"@next/swc-android-arm64@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.3.0.tgz#c1e3e24d0625efe88f45a2135c8f5c4dff594749" - integrity sha512-OaI+FhAM6P9B6Ybwbn0Zl8YwWido0lLwhDBi9WiYCh4RQmIXAyVIoIJPHo4fP05+mXaJ/k1trvDvuURvHOq2qw== - -"@next/swc-darwin-arm64@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.3.0.tgz#37a9f971b9ad620184af69f38243a36757126fb9" - integrity sha512-9s4d3Mhii+WFce8o8Jok7WC3Bawkr9wEUU++SJRptjU1L5tsfYJMrSYCACHLhZujziNDLyExe4Hwwsccps1sfg== - -"@next/swc-darwin-x64@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.3.0.tgz#fb017f1066c8cf2b8da49ef3588c8731d8bf1bf3" - integrity sha512-2scC4MqUTwGwok+wpVxP+zWp7WcCAVOtutki2E1n99rBOTnUOX6qXkgxSy083yBN6GqwuC/dzHeN7hIKjavfRA== - -"@next/swc-freebsd-x64@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.3.0.tgz#e7955b016f41e0f95088e3459ff4197027871fbf" - integrity sha512-xAlruUREij/bFa+qsE1tmsP28t7vz02N4ZDHt2lh3uJUniE0Ne9idyIDLc1Ed0IF2RjfgOp4ZVunuS3OM0sngw== - -"@next/swc-linux-arm-gnueabihf@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.3.0.tgz#d2233267bffaa24378245b328f2f8a01a37eab29" - integrity sha512-jin2S4VT/cugc2dSZEUIabhYDJNgrUh7fufbdsaAezgcQzqfdfJqfxl4E9GuafzB4cbRPTaqA0V5uqbp0IyGkQ== - -"@next/swc-linux-arm64-gnu@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.3.0.tgz#149a0cb877352ab63e81cf1dd53b37f382929d2a" - integrity sha512-RqJHDKe0WImeUrdR0kayTkRWgp4vD/MS7g0r6Xuf8+ellOFH7JAAJffDW3ayuVZeMYOa7RvgNFcOoWnrTUl9Nw== - -"@next/swc-linux-arm64-musl@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.3.0.tgz#73ec7f121f56fd7cf99cf2b00cf41f62c4560e90" - integrity sha512-nvNWoUieMjvDjpYJ/4SQe9lQs2xMj6ZRs8N+bmTrVu9leY2Fg3WD6W9p/1uU9hGO8u+OdF13wc4iRShu/WYIHg== - -"@next/swc-linux-x64-gnu@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.3.0.tgz#6812e52ef21bfd091810f271dd61da11d82b66b9" - integrity sha512-4ajhIuVU9PeQCMMhdDgZTLrHmjbOUFuIyg6J19hZqwEwDTSqQyrSLkbJs2Nd7IRiM6Ul/XyrtEFCpk4k+xD2+w== - -"@next/swc-linux-x64-musl@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.3.0.tgz#c9e7ffb6d44da330961c1ce651c5b03a1becfe22" - integrity sha512-U092RBYbaGxoMAwpauePJEu2PuZSEoUCGJBvsptQr2/2XIMwAJDYM4c/M5NfYEsBr+yjvsYNsOpYfeQ88D82Yg== - -"@next/swc-win32-arm64-msvc@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.3.0.tgz#e0d9d26297f52b0d3b3c2f5138ddcce30601bc98" - integrity sha512-pzSzaxjDEJe67bUok9Nxf9rykbJfHXW0owICFsPBsqHyc+cr8vpF7g9e2APTCddtVhvjkga9ILoZJ9NxWS7Yiw== - -"@next/swc-win32-ia32-msvc@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.3.0.tgz#37daeac1acc68537b8e76cd81fde96dce11f78b4" - integrity sha512-MQGUpMbYhQmTZ06a9e0hPQJnxFMwETo2WtyAotY3GEzbNCQVbCGhsvqEKcl+ZEHgShlHXUWvSffq1ZscY6gK7A== - -"@next/swc-win32-x64-msvc@12.3.0": - version "12.3.0" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.3.0.tgz#c1b983316307f8f55fee491942b5d244bd2036e2" - integrity sha512-C/nw6OgQpEULWqs+wgMHXGvlJLguPRFFGqR2TAqWBerQ8J+Sg3z1ZTqwelkSi4FoqStGuZ2UdFHIDN1ySmR1xA== +"@next/swc-darwin-arm64@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.5.6.tgz#b15d139d8971360fca29be3bdd703c108c9a45fb" + integrity sha512-5nvXMzKtZfvcu4BhtV0KH1oGv4XEW+B+jOfmBdpFI3C7FrB/MfujRpWYSBBO64+qbW8pkZiSyQv9eiwnn5VIQA== + +"@next/swc-darwin-x64@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.5.6.tgz#9c72ee31cc356cb65ce6860b658d807ff39f1578" + integrity sha512-6cgBfxg98oOCSr4BckWjLLgiVwlL3vlLj8hXg2b+nDgm4bC/qVXXLfpLB9FHdoDu4057hzywbxKvmYGmi7yUzA== + +"@next/swc-linux-arm64-gnu@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.5.6.tgz#59f5f66155e85380ffa26ee3d95b687a770cfeab" + integrity sha512-txagBbj1e1w47YQjcKgSU4rRVQ7uF29YpnlHV5xuVUsgCUf2FmyfJ3CPjZUvpIeXCJAoMCFAoGnbtX86BK7+sg== + +"@next/swc-linux-arm64-musl@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.5.6.tgz#f012518228017052736a87d69bae73e587c76ce2" + integrity sha512-cGd+H8amifT86ZldVJtAKDxUqeFyLWW+v2NlBULnLAdWsiuuN8TuhVBt8ZNpCqcAuoruoSWynvMWixTFcroq+Q== + +"@next/swc-linux-x64-gnu@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.5.6.tgz#339b867a7e9e7ee727a700b496b269033d820df4" + integrity sha512-Mc2b4xiIWKXIhBy2NBTwOxGD3nHLmq4keFk+d4/WL5fMsB8XdJRdtUlL87SqVCTSaf1BRuQQf1HvXZcy+rq3Nw== + +"@next/swc-linux-x64-musl@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.5.6.tgz#ae0ae84d058df758675830bcf70ca1846f1028f2" + integrity sha512-CFHvP9Qz98NruJiUnCe61O6GveKKHpJLloXbDSWRhqhkJdZD2zU5hG+gtVJR//tyW897izuHpM6Gtf6+sNgJPQ== + +"@next/swc-win32-arm64-msvc@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.5.6.tgz#a5cc0c16920485a929a17495064671374fdbc661" + integrity sha512-aFv1ejfkbS7PUa1qVPwzDHjQWQtknzAZWGTKYIAaS4NMtBlk3VyA6AYn593pqNanlicewqyl2jUhQAaFV/qXsg== + +"@next/swc-win32-ia32-msvc@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.5.6.tgz#6a2409b84a2cbf34bf92fe714896455efb4191e4" + integrity sha512-XqqpHgEIlBHvzwG8sp/JXMFkLAfGLqkbVsyN+/Ih1mR8INb6YCc2x/Mbwi6hsAgUnqQztz8cvEbHJUbSl7RHDg== + +"@next/swc-win32-x64-msvc@13.5.6": + version "13.5.6" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.6.tgz#4a3e2a206251abc729339ba85f60bc0433c2865d" + integrity sha512-Cqfe1YmOS7k+5mGu92nl5ULkzpKuxJrP3+4AEuPmrpFZ3BHxTY3TnHmU1On3bFmFFs6FbTcdF58CCUProGpIGQ== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -4258,10 +4237,10 @@ uncontrollable "^7.2.1" warning "^4.0.3" -"@rushstack/eslint-patch@^1.0.8": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.0.tgz#7f698254aadf921e48dda8c0a6b304026b8a9323" - integrity sha512-JLo+Y592QzIE+q7Dl2pMUtt4q8SKYI5jDrZxrozEQxnGVOyYE+GWK9eLkwTaeN9DDctlaRAQ3TBmzZ1qdLE30A== +"@rushstack/eslint-patch@^1.3.3": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.6.0.tgz#1898e7a7b943680d757417a47fb10f5fcc230b39" + integrity sha512-2/U3GXA6YiPYQDLGwtGlnNgKYBSwCFIHf8Y9LUY5VATHdtbLlU0Y1R3QoBnT0aB4qv/BEiVVsj7LJXoQCgJ2vA== "@sideway/address@^4.1.3": version "4.1.4" @@ -5506,10 +5485,10 @@ regenerator-runtime "^0.13.7" resolve-from "^5.0.0" -"@swc/helpers@0.4.11": - version "0.4.11" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.11.tgz#db23a376761b3d31c26502122f349a21b592c8de" - integrity sha512-rEUrBSGIoSFuYxwBYtlUFMlE2CwGhmW+w9355/5oduSw8e5h2+Tj4UrAGNNgP9915++wj5vkQo0UuOBqOAq4nw== +"@swc/helpers@0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d" + integrity sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw== dependencies: tslib "^2.4.0" @@ -6240,49 +6219,50 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/parser@^5.0.0": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.10.1.tgz#4ce9633cc33fc70bc13786cb793c1a76fe5ad6bd" - integrity sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA== +"@typescript-eslint/parser@^5.4.2 || ^6.0.0": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.13.2.tgz#390b79cc9a57a5f904d197a201cc4b6bc4f9afb9" + integrity sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg== dependencies: - "@typescript-eslint/scope-manager" "5.10.1" - "@typescript-eslint/types" "5.10.1" - "@typescript-eslint/typescript-estree" "5.10.1" - debug "^4.3.2" + "@typescript-eslint/scope-manager" "6.13.2" + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/typescript-estree" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + debug "^4.3.4" -"@typescript-eslint/scope-manager@5.10.1": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.10.1.tgz#f0539c73804d2423506db2475352a4dec36cd809" - integrity sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg== +"@typescript-eslint/scope-manager@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz#5fa4e4adace028dafac212c770640b94e7b61052" + integrity sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA== dependencies: - "@typescript-eslint/types" "5.10.1" - "@typescript-eslint/visitor-keys" "5.10.1" + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" -"@typescript-eslint/types@5.10.1": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.10.1.tgz#dca9bd4cb8c067fc85304a31f38ec4766ba2d1ea" - integrity sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q== +"@typescript-eslint/types@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.13.2.tgz#c044aac24c2f6cefb8e921e397acad5417dd0ae6" + integrity sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg== -"@typescript-eslint/typescript-estree@5.10.1": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.1.tgz#b268e67be0553f8790ba3fe87113282977adda15" - integrity sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ== +"@typescript-eslint/typescript-estree@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz#ae556ee154c1acf025b48d37c3ef95a1d55da258" + integrity sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w== dependencies: - "@typescript-eslint/types" "5.10.1" - "@typescript-eslint/visitor-keys" "5.10.1" - debug "^4.3.2" - globby "^11.0.4" + "@typescript-eslint/types" "6.13.2" + "@typescript-eslint/visitor-keys" "6.13.2" + debug "^4.3.4" + globby "^11.1.0" is-glob "^4.0.3" - semver "^7.3.5" - tsutils "^3.21.0" + semver "^7.5.4" + ts-api-utils "^1.0.1" -"@typescript-eslint/visitor-keys@5.10.1": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz#29102de692f59d7d34ecc457ed59ab5fc558010b" - integrity sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ== +"@typescript-eslint/visitor-keys@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz#e0a4a80cf842bb08e6127b903284166ac4a5594c" + integrity sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw== dependencies: - "@typescript-eslint/types" "5.10.1" - eslint-visitor-keys "^3.0.0" + "@typescript-eslint/types" "6.13.2" + eslint-visitor-keys "^3.4.1" "@vue/compiler-core@3.3.4": version "3.3.4" @@ -7078,19 +7058,18 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -aria-query@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" - integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== - dependencies: - "@babel/runtime" "^7.10.2" - "@babel/runtime-corejs3" "^7.10.2" - aria-query@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c" integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg== +aria-query@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" + arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" @@ -7145,7 +7124,7 @@ array-includes@^3.0.3: get-intrinsic "^1.1.1" is-string "^1.0.7" -array-includes@^3.1.3, array-includes@^3.1.4: +array-includes@^3.1.3: version "3.1.4" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.4.tgz#f5b493162c760f3539631f005ba2bb46acb45ba9" integrity sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw== @@ -7156,6 +7135,17 @@ array-includes@^3.1.3, array-includes@^3.1.4: get-intrinsic "^1.1.1" is-string "^1.0.7" +array-includes@^3.1.6, array-includes@^3.1.7: + version "3.1.7" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.7.tgz#8cd2e01b26f7a3086cbc87271593fe921c62abda" + integrity sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-string "^1.0.7" + array-union@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" @@ -7178,6 +7168,17 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== +array.prototype.findlastindex@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" + integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.2.1" + array.prototype.flat@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz#0b0c1567bf57b38b56b4c97b8aa72ab45e4adc7b" @@ -7188,14 +7189,15 @@ array.prototype.flat@^1.2.1: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" -array.prototype.flat@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13" - integrity sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg== +array.prototype.flat@^1.3.1, array.prototype.flat@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" array.prototype.flatmap@^1.2.1: version "1.3.0" @@ -7207,14 +7209,15 @@ array.prototype.flatmap@^1.2.1: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" -array.prototype.flatmap@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz#908dc82d8a406930fdf38598d51e7411d18d4446" - integrity sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA== +array.prototype.flatmap@^1.3.1, array.prototype.flatmap@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz#c9a7c6831db8e719d6ce639190146c24bbd3e527" + integrity sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ== dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.19.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" array.prototype.foreach@^1.0.2: version "1.0.4" @@ -7250,6 +7253,30 @@ array.prototype.reduce@^1.0.4: es-array-method-boxes-properly "^1.0.0" is-string "^1.0.7" +array.prototype.tosorted@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz#620eff7442503d66c799d95503f82b475745cefd" + integrity sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.2.1" + +arraybuffer.prototype.slice@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" + integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" + arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -7300,10 +7327,10 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== -ast-types-flow@^0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= +ast-types-flow@^0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.8.tgz#0a85e1c92695769ac13a428bb653e7538bea27d6" + integrity sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ== ast-types@0.13.3: version "0.13.3" @@ -7363,6 +7390,13 @@ async@^3.2.0, async@^3.2.3: resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9" integrity sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g== +asynciterator.prototype@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz#8c5df0514936cdd133604dfcc9d3fb93f09b2b62" + integrity sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg== + dependencies: + has-symbols "^1.0.3" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -7447,10 +7481,10 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== -axe-core@^4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.3.5.tgz#78d6911ba317a8262bfee292aeafcc1e04b49cc5" - integrity sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA== +axe-core@=4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf" + integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ== axios@^0.21.1: version "0.21.4" @@ -7467,10 +7501,12 @@ axios@^0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" -axobject-query@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" - integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== +axobject-query@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-3.2.1.tgz#39c378a6e3b06ca679f29138151e45b2b32da62a" + integrity sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg== + dependencies: + dequal "^2.0.3" babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" @@ -8060,6 +8096,13 @@ builtin-status-codes@^3.0.0: resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" integrity sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ== +busboy@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + bytes@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" @@ -8198,6 +8241,15 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.4, call-bind@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" + integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== + dependencies: + function-bind "^1.1.2" + get-intrinsic "^1.2.1" + set-function-length "^1.1.1" + call-me-maybe@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" @@ -8276,11 +8328,16 @@ camelize@^1.0.0: resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b" integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs= -caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001332, caniuse-lite@^1.0.30001370: +caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001370: version "1.0.30001478" resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001478.tgz" integrity sha512-gMhDyXGItTHipJj2ApIvR+iVB5hd0KP3svMWWXDvZOmjzJJassGLMfxRkQCSYgGd2gtdL/ReeiyvMSFD1Ss6Mw== +caniuse-lite@^1.0.30001406: + version "1.0.30001566" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz#61a8e17caf3752e3e426d4239c549ebbb37fef0d" + integrity sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA== + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -8565,6 +8622,11 @@ cli-width@^3.0.0: resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== +client-only@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + cliui@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" @@ -8947,11 +9009,6 @@ core-js-compat@^3.21.0, core-js-compat@^3.22.1, core-js-compat@^3.8.1: browserslist "^4.21.3" semver "7.0.0" -core-js-pure@^3.0.0: - version "3.8.3" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.8.3.tgz#10e9e3b2592ecaede4283e8f3ad7020811587c02" - integrity sha512-V5qQZVAr9K0xu7jXg1M7qTEwuxUgqr7dUOezGaNa7i+Xn9oXAU/d1fzqD9ObuwpVQOaorO5s70ckyi1woP9lVA== - core-js-pure@^3.8.1: version "3.25.0" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.25.0.tgz#f8d1f176ff29abbfeb610110de891d5ae5a361d4" @@ -9273,7 +9330,7 @@ cyclist@^1.0.1: resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" integrity sha512-NJGVKPS81XejHcLhaLJS7plab0fK3slPh11mESeeDq2W4ZI5kUKK/LRRdVDvjJseojbPB7ZwjnyOybg3Igea/A== -damerau-levenshtein@^1.0.7: +damerau-levenshtein@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== @@ -9444,6 +9501,15 @@ defer-to-connect@^1.0.1: resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== +define-data-property@^1.0.1, define-data-property@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" + integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== + dependencies: + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + define-lazy-prop@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" @@ -9464,6 +9530,15 @@ define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +define-properties@^1.2.0, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + define-property@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" @@ -9550,7 +9625,7 @@ deps-regex@^0.1.4: resolved "https://registry.yarnpkg.com/deps-regex/-/deps-regex-0.1.4.tgz#518667b7691460a5e7e0a341be76eb7ce8090184" integrity sha512-3tzwGYogSJi8HoG93R5x9NrdefZQOXgHgGih/7eivloOq6yC6O+yoFxZnkgP661twvfILONfoKRdF9GQOGx2RA== -dequal@^2.0.0: +dequal@^2.0.0, dequal@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== @@ -9930,6 +10005,14 @@ enhanced-resolve@^5.10.0, enhanced-resolve@^5.7.0: graceful-fs "^4.2.4" tapable "^2.2.0" +enhanced-resolve@^5.12.0: + version "5.15.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" + integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + ent@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" @@ -10071,6 +10154,51 @@ es-abstract@^1.20.4: unbox-primitive "^1.0.2" which-typed-array "^1.1.9" +es-abstract@^1.22.1: + version "1.22.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" + integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.2" + available-typed-arrays "^1.0.5" + call-bind "^1.0.5" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.2" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.12" + is-weakref "^1.0.2" + object-inspect "^1.13.1" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.1" + safe-array-concat "^1.0.1" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.8" + string.prototype.trimend "^1.0.7" + string.prototype.trimstart "^1.0.7" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.13" + es-array-method-boxes-properly@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" @@ -10090,6 +10218,26 @@ es-get-iterator@^1.0.2: is-string "^1.0.5" isarray "^2.0.5" +es-iterator-helpers@^1.0.12, es-iterator-helpers@^1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz#bd81d275ac766431d19305923707c3efd9f1ae40" + integrity sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g== + dependencies: + asynciterator.prototype "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.1" + es-abstract "^1.22.1" + es-set-tostringtag "^2.0.1" + function-bind "^1.1.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + iterator.prototype "^1.1.2" + safe-array-concat "^1.0.1" + es-module-lexer@^0.9.0: version "0.9.3" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" @@ -10184,27 +10332,27 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-config-next@^12.0.9: - version "12.0.9" - resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-12.0.9.tgz#97ca3f651d8eabbaa8a5b3a6e48cc942c3b518d3" - integrity sha512-mhpFUsdctLw9PPOVF6S45n7uEzeRth9Xub6CbsKG8Bmr4QFTs1vhbFjp3cjdFIxjMQNuY8hcu66XFlvBB768Iw== - dependencies: - "@next/eslint-plugin-next" "12.0.9" - "@rushstack/eslint-patch" "^1.0.8" - "@typescript-eslint/parser" "^5.0.0" - eslint-import-resolver-node "^0.3.4" - eslint-import-resolver-typescript "^2.4.0" - eslint-plugin-import "^2.25.2" - eslint-plugin-jsx-a11y "^6.5.1" - eslint-plugin-react "^7.27.0" - eslint-plugin-react-hooks "^4.3.0" +eslint-config-next@13: + version "13.5.6" + resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-13.5.6.tgz#3a5a6222d5cb32256760ad68ab8e976e866a08c8" + integrity sha512-o8pQsUHTo9aHqJ2YiZDym5gQAMRf7O2HndHo/JZeY7TDD+W4hk6Ma8Vw54RHiBeb7OWWO5dPirQB+Is/aVQ7Kg== + dependencies: + "@next/eslint-plugin-next" "13.5.6" + "@rushstack/eslint-patch" "^1.3.3" + "@typescript-eslint/parser" "^5.4.2 || ^6.0.0" + eslint-import-resolver-node "^0.3.6" + eslint-import-resolver-typescript "^3.5.2" + eslint-plugin-import "^2.28.1" + eslint-plugin-jsx-a11y "^6.7.1" + eslint-plugin-react "^7.33.2" + eslint-plugin-react-hooks "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" eslint-config-prettier@^8.3.0: version "8.3.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a" integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew== -eslint-import-resolver-node@^0.3.4, eslint-import-resolver-node@^0.3.6: +eslint-import-resolver-node@^0.3.6: version "0.3.6" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw== @@ -10212,86 +10360,106 @@ eslint-import-resolver-node@^0.3.4, eslint-import-resolver-node@^0.3.6: debug "^3.2.7" resolve "^1.20.0" -eslint-import-resolver-typescript@^2.4.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.5.0.tgz#07661966b272d14ba97f597b51e1a588f9722f0a" - integrity sha512-qZ6e5CFr+I7K4VVhQu3M/9xGv9/YmwsEXrsm3nimw8vWaVHRDrQRp26BgCypTxBp3vUp4o5aVEJRiy0F2DFddQ== +eslint-import-resolver-node@^0.3.9: + version "0.3.9" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" + integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== dependencies: - debug "^4.3.1" - glob "^7.1.7" - is-glob "^4.0.1" - resolve "^1.20.0" - tsconfig-paths "^3.9.0" + debug "^3.2.7" + is-core-module "^2.13.0" + resolve "^1.22.4" + +eslint-import-resolver-typescript@^3.5.2: + version "3.6.1" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz#7b983680edd3f1c5bce1a5829ae0bc2d57fe9efa" + integrity sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg== + dependencies: + debug "^4.3.4" + enhanced-resolve "^5.12.0" + eslint-module-utils "^2.7.4" + fast-glob "^3.3.1" + get-tsconfig "^4.5.0" + is-core-module "^2.11.0" + is-glob "^4.0.3" -eslint-module-utils@^2.7.2: - version "2.7.3" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz#ad7e3a10552fdd0642e1e55292781bd6e34876ee" - integrity sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ== +eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== dependencies: debug "^3.2.7" - find-up "^2.1.0" -eslint-plugin-import@^2.25.2: - version "2.25.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz#322f3f916a4e9e991ac7af32032c25ce313209f1" - integrity sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA== +eslint-plugin-import@^2.28.1: + version "2.29.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz#8133232e4329ee344f2f612885ac3073b0b7e155" + integrity sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg== dependencies: - array-includes "^3.1.4" - array.prototype.flat "^1.2.5" - debug "^2.6.9" + array-includes "^3.1.7" + array.prototype.findlastindex "^1.2.3" + array.prototype.flat "^1.3.2" + array.prototype.flatmap "^1.3.2" + debug "^3.2.7" doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.6" - eslint-module-utils "^2.7.2" - has "^1.0.3" - is-core-module "^2.8.0" + eslint-import-resolver-node "^0.3.9" + eslint-module-utils "^2.8.0" + hasown "^2.0.0" + is-core-module "^2.13.1" is-glob "^4.0.3" - minimatch "^3.0.4" - object.values "^1.1.5" - resolve "^1.20.0" - tsconfig-paths "^3.12.0" - -eslint-plugin-jsx-a11y@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8" - integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g== - dependencies: - "@babel/runtime" "^7.16.3" - aria-query "^4.2.2" - array-includes "^3.1.4" - ast-types-flow "^0.0.7" - axe-core "^4.3.5" - axobject-query "^2.2.0" - damerau-levenshtein "^1.0.7" + minimatch "^3.1.2" + object.fromentries "^2.0.7" + object.groupby "^1.0.1" + object.values "^1.1.7" + semver "^6.3.1" + tsconfig-paths "^3.14.2" + +eslint-plugin-jsx-a11y@^6.7.1: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.8.0.tgz#2fa9c701d44fcd722b7c771ec322432857fcbad2" + integrity sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA== + dependencies: + "@babel/runtime" "^7.23.2" + aria-query "^5.3.0" + array-includes "^3.1.7" + array.prototype.flatmap "^1.3.2" + ast-types-flow "^0.0.8" + axe-core "=4.7.0" + axobject-query "^3.2.1" + damerau-levenshtein "^1.0.8" emoji-regex "^9.2.2" - has "^1.0.3" - jsx-ast-utils "^3.2.1" - language-tags "^1.0.5" - minimatch "^3.0.4" - -eslint-plugin-react-hooks@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172" - integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA== + es-iterator-helpers "^1.0.15" + hasown "^2.0.0" + jsx-ast-utils "^3.3.5" + language-tags "^1.0.9" + minimatch "^3.1.2" + object.entries "^1.1.7" + object.fromentries "^2.0.7" + +"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705": + version "4.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" + integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-react@^7.27.0: - version "7.28.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.28.0.tgz#8f3ff450677571a659ce76efc6d80b6a525adbdf" - integrity sha512-IOlFIRHzWfEQQKcAD4iyYDndHwTQiCMcJVJjxempf203jnNLUnW34AXLrV33+nEXoifJE2ZEGmcjKPL8957eSw== +eslint-plugin-react@^7.33.2: + version "7.33.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz#69ee09443ffc583927eafe86ffebb470ee737608" + integrity sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw== dependencies: - array-includes "^3.1.4" - array.prototype.flatmap "^1.2.5" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" + array.prototype.tosorted "^1.1.1" doctrine "^2.1.0" + es-iterator-helpers "^1.0.12" estraverse "^5.3.0" jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.0.4" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.0" - object.values "^1.1.5" - prop-types "^15.7.2" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.6" + minimatch "^3.1.2" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + object.hasown "^1.1.2" + object.values "^1.1.6" + prop-types "^15.8.1" + resolve "^2.0.0-next.4" + semver "^6.3.1" + string.prototype.matchall "^4.0.8" eslint-scope@5.1.1: version "5.1.1" @@ -10329,11 +10497,16 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.1.0, eslint-visitor-keys@^3.2.0: +eslint-visitor-keys@^3.1.0, eslint-visitor-keys@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1" integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ== +eslint-visitor-keys@^3.4.1: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + eslint@^8.7.0: version "8.7.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.7.0.tgz#22e036842ee5b7cf87b03fe237731675b4d3633c" @@ -10797,6 +10970,17 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" +fast-glob@^3.3.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-parse@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/fast-json-parse/-/fast-json-parse-1.0.3.tgz#43e5c61ee4efa9265633046b770fb682a7577c4d" @@ -11015,13 +11199,6 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" -find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= - dependencies: - locate-path "^2.0.0" - find-up@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" @@ -11419,6 +11596,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.0, function.prototype.name@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" @@ -11429,12 +11611,22 @@ function.prototype.name@^1.1.0, function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" +function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" + functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -11572,6 +11764,16 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" + integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== + dependencies: + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" @@ -11614,6 +11816,13 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" +get-tsconfig@^4.5.0: + version "4.7.2" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.2.tgz#0dcd6fb330391d46332f4c6c1bf89a6514c2ddce" + integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A== + dependencies: + resolve-pkg-maps "^1.0.0" + get-uri@3: version "3.0.2" resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-3.0.2.tgz#f0ef1356faabc70e1f9404fa3b66b2ba9bfc725c" @@ -11740,7 +11949,7 @@ glob@^7.0.0, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.1.1, glob@^7.1.7: +glob@^7.1.1: version "7.2.0" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== @@ -11825,7 +12034,7 @@ globalthis@^1.0.0, globalthis@^1.0.3: dependencies: define-properties "^1.1.3" -globby@^11.0.2, globby@^11.0.4: +globby@^11.0.2, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -12183,6 +12392,13 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +hasown@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" + integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== + dependencies: + function-bind "^1.1.2" + hast-to-hyperscript@^9.0.0: version "9.0.1" resolved "https://registry.yarnpkg.com/hast-to-hyperscript/-/hast-to-hyperscript-9.0.1.tgz#9b67fd188e4c81e8ad66f803855334173920218d" @@ -12899,6 +13115,13 @@ is-arrayish@^0.3.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== +is-async-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-async-function/-/is-async-function-2.0.0.tgz#8e4418efd3e5d3a6ebb0164c05ef5afb69aa9646" + integrity sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA== + dependencies: + has-tostringtag "^1.0.0" + is-bigint@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" @@ -12955,6 +13178,13 @@ is-ci@^2.0.0: dependencies: ci-info "^2.0.0" +is-core-module@^2.11.0, is-core-module@^2.13.1: + version "2.13.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" + integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== + dependencies: + hasown "^2.0.0" + is-core-module@^2.13.0, is-core-module@^2.4.0, is-core-module@^2.5.0: version "2.13.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.0.tgz#bb52aa6e2cbd49a30c2ba68c42bf3435ba6072db" @@ -12962,7 +13192,7 @@ is-core-module@^2.13.0, is-core-module@^2.4.0, is-core-module@^2.5.0: dependencies: has "^1.0.3" -is-core-module@^2.2.0, is-core-module@^2.8.0, is-core-module@^2.8.1: +is-core-module@^2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211" integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA== @@ -12990,7 +13220,7 @@ is-data-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" -is-date-object@^1.0.1: +is-date-object@^1.0.1, is-date-object@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== @@ -13055,6 +13285,13 @@ is-extglob@^2.1.0, is-extglob@^2.1.1: resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= +is-finalizationregistry@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz#c8749b65f17c133313e661b1289b95ad3dbd62e6" + integrity sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw== + dependencies: + call-bind "^1.0.2" + is-finite@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" @@ -13087,6 +13324,13 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== +is-generator-function@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72" + integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A== + dependencies: + has-tostringtag "^1.0.0" + is-glob@^3.0.0, is-glob@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" @@ -13131,7 +13375,7 @@ is-lambda@^1.0.1: resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha1-PZh3iZ5qU+/AFgUEzeFfgubwYdU= -is-map@^2.0.2: +is-map@^2.0.1, is-map@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" integrity sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg== @@ -13220,7 +13464,7 @@ is-regex@^1.1.2, is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-set@^2.0.2: +is-set@^2.0.1, is-set@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== @@ -13277,6 +13521,13 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" +is-typed-array@^1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" + integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== + dependencies: + which-typed-array "^1.1.11" + is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" @@ -13297,6 +13548,11 @@ is-utf8@^0.2.0: resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== +is-weakmap@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" + integrity sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA== + is-weakref@^1.0.1, is-weakref@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" @@ -13304,6 +13560,14 @@ is-weakref@^1.0.1, is-weakref@^1.0.2: dependencies: call-bind "^1.0.2" +is-weakset@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.2.tgz#4569d67a747a1ce5a994dfd4ef6dcea76e7c0a1d" + integrity sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + is-whitespace-character@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz#0858edd94a95594c7c9dd0b5c174ec6e45ee4aa7" @@ -13471,6 +13735,17 @@ iterate-value@^1.0.2: es-get-iterator "^1.0.2" iterate-iterator "^1.0.1" +iterator.prototype@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.2.tgz#5e29c8924f01916cb9335f1ff80619dcff22b0c0" + integrity sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w== + dependencies: + define-properties "^1.2.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + reflect.getprototypeof "^1.0.4" + set-function-name "^2.0.1" + jest-changed-files@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.5.1.tgz#a348aed00ec9bf671cc58a66fcbe7c3dfd6a68f5" @@ -14184,6 +14459,13 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" +json5@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== + dependencies: + minimist "^1.2.0" + json5@^2.1.2: version "2.2.0" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" @@ -14258,7 +14540,7 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: +"jsx-ast-utils@^2.4.1 || ^3.0.0": version "3.2.1" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b" integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA== @@ -14266,6 +14548,16 @@ jsprim@^1.2.2: array-includes "^3.1.3" object.assign "^4.1.2" +jsx-ast-utils@^3.3.5: + version "3.3.5" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz#4766bd05a8e2a11af222becd19e15575e52a853a" + integrity sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ== + dependencies: + array-includes "^3.1.6" + array.prototype.flat "^1.3.1" + object.assign "^4.1.4" + object.values "^1.1.6" + jszip@^3.6.0: version "3.7.1" resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.7.1.tgz#bd63401221c15625a1228c556ca8a68da6fda3d9" @@ -14377,17 +14669,17 @@ kuler@^2.0.0: resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A== -language-subtag-registry@~0.3.2: - version "0.3.21" - resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a" - integrity sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg== +language-subtag-registry@^0.3.20: + version "0.3.22" + resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz#2e1500861b2e457eba7e7ae86877cbd08fa1fd1d" + integrity sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w== -language-tags@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo= +language-tags@^1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.9.tgz#1ffdcd0ec0fafb4b1be7f8b11f306ad0f9c08777" + integrity sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA== dependencies: - language-subtag-registry "~0.3.2" + language-subtag-registry "^0.3.20" latest-version@^5.1.0: version "5.1.0" @@ -14556,14 +14848,6 @@ loader-utils@^3.2.0: resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.0.tgz#bcecc51a7898bee7473d4bc6b845b23af8304d4f" integrity sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ== -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - locate-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" @@ -15478,7 +15762,7 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== -minimatch@^3.0.2, minimatch@^3.1.1: +minimatch@^3.0.2, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -15844,31 +16128,28 @@ next-redux-wrapper@^8.1.0: resolved "https://registry.yarnpkg.com/next-redux-wrapper/-/next-redux-wrapper-8.1.0.tgz#d9c135f1ceeb2478375bdacd356eb9db273d3a07" integrity sha512-2hIau0hcI6uQszOtrvAFqgc0NkZegKYhBB7ZAKiG3jk7zfuQb4E7OV9jfxViqqojh3SEHdnFfPkN9KErttUKuw== -next@^12.1.5: - version "12.3.0" - resolved "https://registry.yarnpkg.com/next/-/next-12.3.0.tgz#0e4c1ed0092544c7e8f4c998ca57cf6529e286cb" - integrity sha512-GpzI6me9V1+XYtfK0Ae9WD0mKqHyzQlGq1xH1rzNIYMASo4Tkl4rTe9jSqtBpXFhOS33KohXs9ZY38Akkhdciw== - dependencies: - "@next/env" "12.3.0" - "@swc/helpers" "0.4.11" - caniuse-lite "^1.0.30001332" - postcss "8.4.14" - styled-jsx "5.0.6" - use-sync-external-store "1.2.0" +next@13: + version "13.5.6" + resolved "https://registry.yarnpkg.com/next/-/next-13.5.6.tgz#e964b5853272236c37ce0dd2c68302973cf010b1" + integrity sha512-Y2wTcTbO4WwEsVb4A8VSnOsG1I9ok+h74q0ZdxkwM3EODqrs4pasq7O0iUxbcS9VtWMicG7f3+HAj0r1+NtKSw== + dependencies: + "@next/env" "13.5.6" + "@swc/helpers" "0.5.2" + busboy "1.6.0" + caniuse-lite "^1.0.30001406" + postcss "8.4.31" + styled-jsx "5.1.1" + watchpack "2.4.0" optionalDependencies: - "@next/swc-android-arm-eabi" "12.3.0" - "@next/swc-android-arm64" "12.3.0" - "@next/swc-darwin-arm64" "12.3.0" - "@next/swc-darwin-x64" "12.3.0" - "@next/swc-freebsd-x64" "12.3.0" - "@next/swc-linux-arm-gnueabihf" "12.3.0" - "@next/swc-linux-arm64-gnu" "12.3.0" - "@next/swc-linux-arm64-musl" "12.3.0" - "@next/swc-linux-x64-gnu" "12.3.0" - "@next/swc-linux-x64-musl" "12.3.0" - "@next/swc-win32-arm64-msvc" "12.3.0" - "@next/swc-win32-ia32-msvc" "12.3.0" - "@next/swc-win32-x64-msvc" "12.3.0" + "@next/swc-darwin-arm64" "13.5.6" + "@next/swc-darwin-x64" "13.5.6" + "@next/swc-linux-arm64-gnu" "13.5.6" + "@next/swc-linux-arm64-musl" "13.5.6" + "@next/swc-linux-x64-gnu" "13.5.6" + "@next/swc-linux-x64-musl" "13.5.6" + "@next/swc-win32-arm64-msvc" "13.5.6" + "@next/swc-win32-ia32-msvc" "13.5.6" + "@next/swc-win32-x64-msvc" "13.5.6" nice-try@^1.0.4: version "1.0.5" @@ -16241,6 +16522,11 @@ object-inspect@^1.12.3: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz#ba62dffd67ee256c8c086dfae69e016cd1f198b9" integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== +object-inspect@^1.13.1: + version "1.13.1" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== + object-inspect@^1.9.0: version "1.9.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" @@ -16287,7 +16573,16 @@ object.entries@^1.1.0, object.entries@^1.1.5: define-properties "^1.1.3" es-abstract "^1.19.1" -"object.fromentries@^2.0.0 || ^1.0.0", object.fromentries@^2.0.5: +object.entries@^1.1.6, object.entries@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.7.tgz#2b47760e2a2e3a752f39dd874655c61a7f03c131" + integrity sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + +"object.fromentries@^2.0.0 || ^1.0.0": version "2.0.5" resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== @@ -16296,6 +16591,15 @@ object.entries@^1.1.0, object.entries@^1.1.5: define-properties "^1.1.3" es-abstract "^1.19.1" +object.fromentries@^2.0.6, object.fromentries@^2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.7.tgz#71e95f441e9a0ea6baf682ecaaf37fa2a8d7e616" + integrity sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.2: version "2.1.4" resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.4.tgz#7965e6437a57278b587383831a9b829455a4bc37" @@ -16306,13 +16610,23 @@ object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.2 define-properties "^1.1.4" es-abstract "^1.20.1" -object.hasown@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.0.tgz#7232ed266f34d197d15cac5880232f7a4790afe5" - integrity sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg== +object.groupby@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee" + integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ== dependencies: - define-properties "^1.1.3" - es-abstract "^1.19.1" + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + +object.hasown@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.3.tgz#6a5f2897bb4d3668b8e79364f98ccf971bda55ae" + integrity sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA== + dependencies: + define-properties "^1.2.0" + es-abstract "^1.22.1" object.pick@^1.3.0: version "1.3.0" @@ -16321,7 +16635,7 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" -object.values@^1.1.0, object.values@^1.1.5: +object.values@^1.1.0: version "1.1.5" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== @@ -16330,6 +16644,15 @@ object.values@^1.1.0, object.values@^1.1.5: define-properties "^1.1.3" es-abstract "^1.19.1" +object.values@^1.1.6, object.values@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.7.tgz#617ed13272e7e1071b43973aa1655d9291b8442a" + integrity sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + objectorarray@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/objectorarray/-/objectorarray-1.0.5.tgz#2c05248bbefabd8f43ad13b41085951aac5e68a5" @@ -16526,13 +16849,6 @@ p-finally@^1.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -16547,13 +16863,6 @@ p-limit@^3.0.1, p-limit@^3.0.2: dependencies: yocto-queue "^0.1.0" -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= - dependencies: - p-limit "^1.1.0" - p-locate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" @@ -16601,11 +16910,6 @@ p-timeout@^3.1.0: dependencies: p-finally "^1.0.0" -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= - p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -16812,7 +17116,7 @@ path-key@^3.0.0, path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -path-parse@^1.0.6, path-parse@^1.0.7: +path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -17112,12 +17416,12 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0: resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@8.4.14: - version "8.4.14" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf" - integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig== +postcss@8.4.31: + version "8.4.31" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d" + integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ== dependencies: - nanoid "^3.3.4" + nanoid "^3.3.6" picocolors "^1.0.0" source-map-js "^1.0.2" @@ -17814,14 +18118,13 @@ react-docgen@^5.0.0: node-dir "^0.1.10" strip-indent "^3.0.0" -react-dom@^17.0.2: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" - integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== +react-dom@^18.2.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" - scheduler "^0.20.2" + scheduler "^0.23.0" react-dropzone@^12.0.4: version "12.1.0" @@ -18068,13 +18371,12 @@ react-twitter-embed@^4.0.4: dependencies: scriptjs "^2.5.9" -react@^17.0.2: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" - integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== +react@^18.2.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" read-pkg-up@^1.0.1: version "1.0.1" @@ -18236,6 +18538,18 @@ redux@^4.1.2: dependencies: "@babel/runtime" "^7.9.2" +reflect.getprototypeof@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz#aaccbf41aca3821b87bb71d9dcbc7ad0ba50a3f3" + integrity sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + globalthis "^1.0.3" + which-builtin-type "^1.1.3" + regenerate-unicode-properties@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56" @@ -18288,14 +18602,6 @@ regex-parser@^2.2.11: resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.2.11.tgz#3b37ec9049e19479806e878cabe7c1ca83ccfe58" integrity sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q== -regexp.prototype.flags@^1.3.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz#b3f4c0059af9e47eca9f3f660e51d81307e72307" - integrity sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" @@ -18305,6 +18611,15 @@ regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: define-properties "^1.1.3" functions-have-names "^1.2.2" +regexp.prototype.flags@^1.5.0, regexp.prototype.flags@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" + integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + set-function-name "^2.0.0" + regexpp@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" @@ -18569,6 +18884,11 @@ resolve-from@^5.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + resolve-url-loader@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz#ee3142fb1f1e0d9db9524d539cfa166e9314f795" @@ -18617,13 +18937,23 @@ resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^2.0.0-next.3: - version "2.0.0-next.3" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46" - integrity sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q== +resolve@^1.22.4: + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== dependencies: - is-core-module "^2.2.0" - path-parse "^1.0.6" + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +resolve@^2.0.0-next.4: + version "2.0.0-next.5" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.5.tgz#6b0ec3107e671e52b68cd068ef327173b90dc03c" + integrity sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" responselike@^1.0.2: version "1.0.2" @@ -18790,6 +19120,16 @@ sade@^1.7.3: dependencies: mri "^1.1.0" +safe-array-concat@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.0.1.tgz#91686a63ce3adbea14d61b14c99572a8ff84754c" + integrity sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + isarray "^2.0.5" + safe-buffer@5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" @@ -18891,13 +19231,12 @@ sb@^6.5.10: dependencies: "@storybook/cli" "6.5.10" -scheduler@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" - integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== +scheduler@^0.23.0: + version "0.23.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe" + integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" schema-utils@2.7.0: version "2.7.0" @@ -18989,6 +19328,11 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + semver@^7.0.0, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" @@ -19003,6 +19347,13 @@ semver@^7.3.7, semver@^7.3.8: dependencies: lru-cache "^6.0.0" +semver@^7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + send@0.17.2: version "0.17.2" resolved "https://registry.yarnpkg.com/send/-/send-0.17.2.tgz#926622f76601c41808012c8bf1688fe3906f7820" @@ -19098,6 +19449,25 @@ set-blocking@^2.0.0, set-blocking@~2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= +set-function-length@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" + integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== + dependencies: + define-data-property "^1.1.1" + get-intrinsic "^1.2.1" + gopd "^1.0.1" + has-property-descriptors "^1.0.0" + +set-function-name@^2.0.0, set-function-name@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" + integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== + dependencies: + define-data-property "^1.0.1" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.0" + set-immediate-shim@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" @@ -19565,6 +19935,11 @@ stream-shift@^1.0.0: resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + strict-uri-encode@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" @@ -19627,18 +20002,19 @@ string-width@^4.1.0, string-width@^4.2.0: regexp.prototype.flags "^1.4.1" side-channel "^1.0.4" -string.prototype.matchall@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa" - integrity sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg== +string.prototype.matchall@^4.0.8: + version "4.0.10" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz#a1553eb532221d4180c51581d6072cd65d1ee100" + integrity sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - has-symbols "^1.0.2" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.3.1" + define-properties "^1.2.0" + es-abstract "^1.22.1" + get-intrinsic "^1.2.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + regexp.prototype.flags "^1.5.0" + set-function-name "^2.0.0" side-channel "^1.0.4" string.prototype.padend@^3.0.0: @@ -19668,6 +20044,15 @@ string.prototype.trim@^1.2.6, string.prototype.trim@^1.2.7: define-properties "^1.1.4" es-abstract "^1.20.4" +string.prototype.trim@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd" + integrity sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string.prototype.trimend@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" @@ -19694,6 +20079,15 @@ string.prototype.trimend@^1.0.6: define-properties "^1.1.4" es-abstract "^1.20.4" +string.prototype.trimend@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz#1bb3afc5008661d73e2dc015cd4853732d6c471e" + integrity sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string.prototype.trimstart@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" @@ -19720,6 +20114,15 @@ string.prototype.trimstart@^1.0.6: define-properties "^1.1.4" es-abstract "^1.20.4" +string.prototype.trimstart@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz#d4cdb44b83a4737ffbac2d406e405d43d0184298" + integrity sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -19869,10 +20272,12 @@ styled-components@^5.3.3: shallowequal "^1.1.0" supports-color "^5.5.0" -styled-jsx@5.0.6: - version "5.0.6" - resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.6.tgz#fa684790a9cc3badded14badea163418fe568f77" - integrity sha512-xOeROtkK5MGMDimBQ3J6iPId8q0t/BDoG5XN6oKkZClVz9ISF/hihN8OCn2LggMU6N32aXnrXBdn3auSqNS9fA== +styled-jsx@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.1.tgz#839a1c3aaacc4e735fed0781b8619ea5d0009d1f" + integrity sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw== + dependencies: + client-only "0.0.1" stylis@4.0.13: version "4.0.13" @@ -20346,6 +20751,11 @@ trough@^2.0.0: resolved "https://registry.yarnpkg.com/trough/-/trough-2.1.0.tgz#0f7b511a4fde65a46f18477ab38849b22c554876" integrity sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g== +ts-api-utils@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" + integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== + ts-dedent@^2.0.0, ts-dedent@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ts-dedent/-/ts-dedent-2.2.0.tgz#39e4bd297cd036292ae2394eb3412be63f563bb5" @@ -20384,14 +20794,14 @@ tsconfig-paths-webpack-plugin@^4.0.0: enhanced-resolve "^5.7.0" tsconfig-paths "^4.0.0" -tsconfig-paths@^3.12.0, tsconfig-paths@^3.9.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz#19769aca6ee8f6a1a341e38c8fa45dd9fb18899b" - integrity sha512-e5adrnOYT6zqVnWqZu7i/BQ3BnhzvGbjEjejFXO20lKIKpwTaupkCPgEfv4GZK1IBciJUEhYs3J3p75FdaTFVg== +tsconfig-paths@^3.14.2: + version "3.14.2" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" + integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== dependencies: "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" + json5 "^1.0.2" + minimist "^1.2.6" strip-bom "^3.0.0" tsconfig-paths@^4.0.0: @@ -20412,7 +20822,7 @@ tsconfig-paths@^4.1.2: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^1.11.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@^1.11.1, tslib@^1.8.0, tslib@^1.9.0, tslib@^1.9.3: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== @@ -20432,13 +20842,6 @@ tslib@^2.0.3, tslib@^2.3.0, tslib@^2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - tty-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" @@ -20513,6 +20916,36 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + typed-array-length@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" @@ -20943,7 +21376,7 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -use-sync-external-store@1.2.0, use-sync-external-store@^1.0.0: +use-sync-external-store@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== @@ -21173,6 +21606,14 @@ watchpack-chokidar2@^2.0.1: dependencies: chokidar "^2.1.8" +watchpack@2.4.0, watchpack@^2.2.0, watchpack@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" + integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + watchpack@^1.7.4: version "1.7.5" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.7.5.tgz#1267e6c55e0b9b5be44c2023aed5437a2c26c453" @@ -21184,14 +21625,6 @@ watchpack@^1.7.4: chokidar "^3.4.1" watchpack-chokidar2 "^2.0.1" -watchpack@^2.2.0, watchpack@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" - integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== - dependencies: - glob-to-regexp "^0.4.1" - graceful-fs "^4.1.2" - wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" @@ -21417,6 +21850,34 @@ which-boxed-primitive@^1.0.2: is-string "^1.0.5" is-symbol "^1.0.3" +which-builtin-type@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/which-builtin-type/-/which-builtin-type-1.1.3.tgz#b1b8443707cc58b6e9bf98d32110ff0c2cbd029b" + integrity sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw== + dependencies: + function.prototype.name "^1.1.5" + has-tostringtag "^1.0.0" + is-async-function "^2.0.0" + is-date-object "^1.0.5" + is-finalizationregistry "^1.0.2" + is-generator-function "^1.0.10" + is-regex "^1.1.4" + is-weakref "^1.0.2" + isarray "^2.0.5" + which-boxed-primitive "^1.0.2" + which-collection "^1.0.1" + which-typed-array "^1.1.9" + +which-collection@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz#70eab71ebbbd2aefaf32f917082fc62cdcb70906" + integrity sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A== + dependencies: + is-map "^2.0.1" + is-set "^2.0.1" + is-weakmap "^2.0.1" + is-weakset "^2.0.1" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -21430,6 +21891,17 @@ which-pm@2.0.0: load-yaml-file "^0.2.0" path-exists "^4.0.0" +which-typed-array@^1.1.11, which-typed-array@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.13.tgz#870cd5be06ddb616f504e7b039c4c24898184d36" + integrity sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.4" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" + which-typed-array@^1.1.9: version "1.1.9" resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6" From 29e5c9ed0fe24e422d584b8b3e23aa255ad778ed Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sat, 9 Dec 2023 14:21:12 -0500 Subject: [PATCH 03/21] Update to next 14 and node 18. Continue using node 16 for functions deployment --- .tool-versions | 2 +- firebase.json | 3 +- functions/package.json | 3 - package.json | 10 +- yarn.lock | 1718 +++------------------------------------- 5 files changed, 137 insertions(+), 1599 deletions(-) diff --git a/.tool-versions b/.tool-versions index ffd2870b7..1e04d796d 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 16.18.0 +nodejs 18.17.0 diff --git a/firebase.json b/firebase.json index 4512a2c9a..96ef85222 100644 --- a/firebase.json +++ b/firebase.json @@ -6,7 +6,8 @@ }, "functions": { "predeploy": ["yarn build:functions"], - "source": "functions" + "source": "functions", + "runtime": "nodejs16" }, "firestore": { "rules": "firestore.rules", diff --git a/functions/package.json b/functions/package.json index 73d4e5c0b..5c7cc871b 100644 --- a/functions/package.json +++ b/functions/package.json @@ -11,9 +11,6 @@ "enable-cors-dev": "gsutil cors set cors.json gs://digital-testimony-dev.appspot.com", "enable-cors-prod": "gsutil cors set cors.json gs://digital-testimony-prod.appspot.com" }, - "engines": { - "node": "16" - }, "main": "lib/index.js", "dependencies": { "@google-cloud/firestore": "^5.0.2", diff --git a/package.json b/package.json index b74b6e56d..491aa1aa8 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "backfill-user-nf": "ts-node -P tsconfig.script.json scripts/firebase-admin/backfillNotificationFrequency.ts --swc" }, "engines": { - "node": ">=16" + "node": "18" }, "browserslist": { "production": [ @@ -76,6 +76,8 @@ "@react-aria/utils": "^3.13.1", "@reduxjs/toolkit": "^1.8.3", "@types/papaparse": "^5.3.5", + "@types/react": "^18.2.43", + "@types/react-dom": "^18.2.17", "autolinker": "^3.16.0", "awesome-debounce-promise": "^2.1.0", "bootstrap": "5.1.3", @@ -98,9 +100,8 @@ "luxon": "^3.1.1", "marked": "^4.2.5", "nanoid": "^3.3.1", - "next": "13", + "next": "^14.0.4", "next-i18next": "^13.1.5", - "next-on-netlify": "^2.9.0", "next-redux-wrapper": "^8.1.0", "papaparse": "^5.3.0", "ra-core": "^4.8.3", @@ -114,7 +115,6 @@ "react-hook-form": "^7.33.1", "react-i18next": "^13.2.2", "react-inlinesvg": "^3.0.1", - "react-leaflet-geojson-patterns": "^1.1.0", "react-markdown": "^8.0.4", "react-overlays": "^5.1.1", "react-query": "^3.39.3", @@ -163,7 +163,7 @@ "clsx": "^1.2.1", "concurrently": "^7.0.0", "eslint": "^8.7.0", - "eslint-config-next": "13", + "eslint-config-next": "^14.0.4", "eslint-config-prettier": "^8.3.0", "firebase-admin": "^10", "firebase-tools": "^11.16.0", diff --git a/yarn.lock b/yarn.lock index 9cb95f214..db0e2937a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -33,654 +33,6 @@ call-me-maybe "^1.0.1" js-yaml "^4.1.0" -"@aws-crypto/crc32@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@aws-crypto/crc32/-/crc32-1.0.0.tgz#6a0164fd92bb365860ba6afb5dfef449701eb8ca" - integrity sha512-wr4EyCv3ZfLH3Sg7FErV6e/cLhpk9rUP/l5322y8PRgpQsItdieaLbtE4aDOR+dxl8U7BG9FIwWXH4TleTDZ9A== - dependencies: - tslib "^1.11.1" - -"@aws-crypto/ie11-detection@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@aws-crypto/ie11-detection/-/ie11-detection-1.0.0.tgz#d3a6af29ba7f15458f79c41d1cd8cac3925e726a" - integrity sha512-kCKVhCF1oDxFYgQrxXmIrS5oaWulkvRcPz+QBDMsUr2crbF4VGgGT6+uQhSwJFdUAQ2A//Vq+uT83eJrkzFgXA== - dependencies: - tslib "^1.11.1" - -"@aws-crypto/sha256-browser@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-browser/-/sha256-browser-1.1.0.tgz#20092cc6c08d8f04db0ed57b6f05cff150384f77" - integrity sha512-VIpuLRDonMAHgomrsm/zKbeXTnxpr4aHDQmS4pF+NcpvBp64l675yjGA9hyUYs/QJwBjUl8WqMjh9tIRgi85Sg== - dependencies: - "@aws-crypto/ie11-detection" "^1.0.0" - "@aws-crypto/sha256-js" "^1.1.0" - "@aws-crypto/supports-web-crypto" "^1.0.0" - "@aws-sdk/types" "^3.1.0" - "@aws-sdk/util-locate-window" "^3.0.0" - "@aws-sdk/util-utf8-browser" "^3.0.0" - tslib "^1.11.1" - -"@aws-crypto/sha256-js@^1.0.0", "@aws-crypto/sha256-js@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-js/-/sha256-js-1.1.0.tgz#a58386ad18186e392e0f1d98d18831261d27b071" - integrity sha512-VIhuqbPgXDVr8sZe2yhgQcDRRmzf4CI8fmC1A3bHiRfE6wlz1d8KpeemqbuoEHotz/Dch9yOxlshyQDNjNFeHA== - dependencies: - "@aws-sdk/types" "^3.1.0" - "@aws-sdk/util-utf8-browser" "^3.0.0" - tslib "^1.11.1" - -"@aws-crypto/supports-web-crypto@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@aws-crypto/supports-web-crypto/-/supports-web-crypto-1.0.0.tgz#c40901bc17ac1e875e248df16a2b47ad8bfd9a93" - integrity sha512-IHLfv+WmVH89EW4n6a5eE8/hUlz6qkWGMn/v4r5ZgzcXdTC5nolii2z3k46y01hWRiC2PPhOdeSLzMUCUMco7g== - dependencies: - tslib "^1.11.1" - -"@aws-sdk/abort-controller@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/abort-controller/-/abort-controller-1.0.0-rc.3.tgz#c4cde5f1a1c0d3b6e6c5ddc04a0e423cb8bcc1f1" - integrity sha512-+os/c2PDtDzaeAMqH3f03EDwMAesxy3O5lFcT2vr43iiQkXRnYwaWFD4QPwDQGzKDjksPKSa6iag4OjzGf0ezA== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/chunked-blob-reader-native@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/chunked-blob-reader-native/-/chunked-blob-reader-native-1.0.0-rc.3.tgz#5a863d61f84ca0ff32e440f4c214e1929af05978" - integrity sha512-ouuN4cBmwfVPVVQeBhKm18BHkBK/ZVn0VDE4WXVMqu3WjNBxulKYCvJ7mkxi1oWWzp+RGa1TwIQuancB1IHrdA== - dependencies: - "@aws-sdk/util-base64-browser" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/chunked-blob-reader@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/chunked-blob-reader/-/chunked-blob-reader-1.0.0-rc.3.tgz#f704a8c6133931bbde3ee015936dc136763dd992" - integrity sha512-d4B6mOYxZqo+y2op5BwEsG0wxewyNhVmyvfdQfhaJowNjhZpQ6vhYkh3umOarLwyC72dNScKBQYLnOsf5chtDg== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/client-s3@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-1.0.0-rc.3.tgz#88ba3fe10308ffc0fe9bdd334071130ccd43eae7" - integrity sha512-/IYV2zoGo8SIId0VsJ/lSI6hkP0nSNvibjQtTIOu/E0edoeHtotXtuJ3SLpsuwGGm8mZtMuq1R6W1q0G/o/DrA== - dependencies: - "@aws-crypto/sha256-browser" "^1.0.0" - "@aws-crypto/sha256-js" "^1.0.0" - "@aws-sdk/config-resolver" "1.0.0-rc.3" - "@aws-sdk/credential-provider-node" "1.0.0-rc.3" - "@aws-sdk/eventstream-serde-browser" "1.0.0-rc.3" - "@aws-sdk/eventstream-serde-config-resolver" "1.0.0-rc.3" - "@aws-sdk/eventstream-serde-node" "1.0.0-rc.3" - "@aws-sdk/fetch-http-handler" "1.0.0-rc.3" - "@aws-sdk/hash-blob-browser" "1.0.0-rc.3" - "@aws-sdk/hash-node" "1.0.0-rc.3" - "@aws-sdk/hash-stream-node" "1.0.0-rc.3" - "@aws-sdk/invalid-dependency" "1.0.0-rc.3" - "@aws-sdk/md5-js" "1.0.0-rc.3" - "@aws-sdk/middleware-apply-body-checksum" "1.0.0-rc.3" - "@aws-sdk/middleware-bucket-endpoint" "1.0.0-rc.3" - "@aws-sdk/middleware-content-length" "1.0.0-rc.3" - "@aws-sdk/middleware-expect-continue" "1.0.0-rc.3" - "@aws-sdk/middleware-host-header" "1.0.0-rc.3" - "@aws-sdk/middleware-location-constraint" "1.0.0-rc.3" - "@aws-sdk/middleware-logger" "1.0.0-rc.3" - "@aws-sdk/middleware-retry" "1.0.0-rc.3" - "@aws-sdk/middleware-sdk-s3" "1.0.0-rc.3" - "@aws-sdk/middleware-serde" "1.0.0-rc.3" - "@aws-sdk/middleware-signing" "1.0.0-rc.3" - "@aws-sdk/middleware-ssec" "1.0.0-rc.3" - "@aws-sdk/middleware-stack" "1.0.0-rc.3" - "@aws-sdk/middleware-user-agent" "1.0.0-rc.3" - "@aws-sdk/node-config-provider" "1.0.0-rc.3" - "@aws-sdk/node-http-handler" "1.0.0-rc.3" - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/smithy-client" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/url-parser-browser" "1.0.0-rc.3" - "@aws-sdk/url-parser-node" "1.0.0-rc.3" - "@aws-sdk/util-base64-browser" "1.0.0-rc.3" - "@aws-sdk/util-base64-node" "1.0.0-rc.3" - "@aws-sdk/util-body-length-browser" "1.0.0-rc.3" - "@aws-sdk/util-body-length-node" "1.0.0-rc.3" - "@aws-sdk/util-user-agent-browser" "1.0.0-rc.3" - "@aws-sdk/util-user-agent-node" "1.0.0-rc.3" - "@aws-sdk/util-utf8-browser" "1.0.0-rc.3" - "@aws-sdk/util-utf8-node" "1.0.0-rc.3" - "@aws-sdk/xml-builder" "1.0.0-rc.3" - fast-xml-parser "^3.16.0" - tslib "^2.0.0" - -"@aws-sdk/config-resolver@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/config-resolver/-/config-resolver-1.0.0-rc.3.tgz#0eb877cdabffb75ba3ed89f14e86301faeec12d2" - integrity sha512-twz204J+R5SFUOWe7VPYoF9yZA3HsMujnZKkm7QTunKUYRrrZcG1x6KeArIpk1mKFlrtm1tcab5BqUDUKgm23A== - dependencies: - "@aws-sdk/signature-v4" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/credential-provider-env@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-1.0.0-rc.3.tgz#9e7f21d1aa1d54e6a7f3f87626d2a46896ca7294" - integrity sha512-QG9YUDy1qjghL6MsXIE4wxXuTDeBsNWcXYIMpuvn5bJSVDmcSmXwVFMyCiYvDlN57zbomWaNvYiq9TS50aw0Ng== - dependencies: - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/credential-provider-imds@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-imds/-/credential-provider-imds-1.0.0-rc.3.tgz#d5709e1ef009b7c87387e0c377c8840a7a27b9db" - integrity sha512-vMRAlXdU4ZUeLGgtXh+MCzyZrdoXA8tJldR5n0glbODAym1Ap6ZQ9Y/apQvaHiMxyTd/PCcPg0cwSmhlnwdhTg== - dependencies: - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/credential-provider-ini@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-1.0.0-rc.3.tgz#23301a8cf39b004b4ba866d58469f766b819218e" - integrity sha512-3/dvnmtnjGSoBn9MSTtO6/Vpd0RxwA1oOeHlFhswr4ZDMI3Nn8almvUhjtC+wkKKSG+ushkEJaDDPy6P+7xqRA== - dependencies: - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/shared-ini-file-loader" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/credential-provider-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-1.0.0-rc.3.tgz#9f6ebecec5f1622ed1b9172c9ae43b147dbc75a9" - integrity sha512-UbtN7dMjyUgYyYKSQLAMmx1aGT9HD00bf0suvn9H4lo5piWuJ/30CoBqIl/l2l+6z0AdK2DcGoF5yuLyJSX0ww== - dependencies: - "@aws-sdk/credential-provider-env" "1.0.0-rc.3" - "@aws-sdk/credential-provider-imds" "1.0.0-rc.3" - "@aws-sdk/credential-provider-ini" "1.0.0-rc.3" - "@aws-sdk/credential-provider-process" "1.0.0-rc.3" - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/credential-provider-process@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-1.0.0-rc.3.tgz#8752ee9efb696d24c84cbd1da64ed76b93269820" - integrity sha512-gz98CXgAwtsW1CkK9F8SOW1EEHFFHsl3QCBs1i4CErYr08i/2sa1LHOjxyIJ9RMRM0WNPBCLH4btvpajOGtXBA== - dependencies: - "@aws-sdk/credential-provider-ini" "1.0.0-rc.3" - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/shared-ini-file-loader" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/eventstream-marshaller@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/eventstream-marshaller/-/eventstream-marshaller-1.0.0-rc.3.tgz#ce4a190365ae949f6ad0639ab2285ce21d28046e" - integrity sha512-LBWqTd+VRVBdmBYm/K3ueBHLNOCUlj0uLQOExfvKFTugQ1t3i5JoZKLYNbTJyid8sMmbyq1y/nfM+kAHXguwAQ== - dependencies: - "@aws-crypto/crc32" "^1.0.0" - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-hex-encoding" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/eventstream-serde-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/eventstream-serde-browser/-/eventstream-serde-browser-1.0.0-rc.3.tgz#ea9229e17317c457dd11206565a04dc1bbccb579" - integrity sha512-dMWtrnaOBLxEFvEtX7r66Pxh+XipRdDYHHNTSsg3Vaj+cDcCUkur2tplhKaBQY9bElfGB2Rb2R7XsfIxt9PZ0w== - dependencies: - "@aws-sdk/eventstream-marshaller" "1.0.0-rc.3" - "@aws-sdk/eventstream-serde-universal" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/eventstream-serde-config-resolver@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-1.0.0-rc.3.tgz#198f81974c4e5396d090c3d48826c6f5e2486819" - integrity sha512-hnp8DwEK64p2mwMDyBIgGq7yOaxDe3H1O7xoNmKb/owqQAcV8BxhhbrJYrsXNSeE/lO2zckPcL1imzuKHudTfA== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/eventstream-serde-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/eventstream-serde-node/-/eventstream-serde-node-1.0.0-rc.3.tgz#cb0d74f24b43cd14963a0ee8252cc47260ddf483" - integrity sha512-QTIygM8qoVfDv6paFTdyvuAdgUSm/VDFa36OZd+IXSgzoYYrI/psutpYCyt/27oiPH+rFPrOofs9A1mXIWWMhg== - dependencies: - "@aws-sdk/eventstream-marshaller" "1.0.0-rc.3" - "@aws-sdk/eventstream-serde-universal" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/eventstream-serde-universal@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/eventstream-serde-universal/-/eventstream-serde-universal-1.0.0-rc.3.tgz#b05d04171ae00b6f33ea1412979f78c1840ea410" - integrity sha512-YAQMuEI+J0LEf8tOISYSihkEiEH2YpQpvXkLlWyybmWEa1XjmGaZS5V1HP/xf5cA/HPtIsApCz2VYTY50A/Lxw== - dependencies: - "@aws-sdk/eventstream-marshaller" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/fetch-http-handler@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/fetch-http-handler/-/fetch-http-handler-1.0.0-rc.3.tgz#4ab211faf75c4b1d14dc36b85311519f4723fe97" - integrity sha512-1xd4DuW8Su7qHKg9wipVGhscvLsVRhZi9pRLxh13lIKEIt+ryxXzrex1YoxDUnDH3ZI7YhdeLhZIonlgaNT+Gw== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/querystring-builder" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-base64-browser" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/hash-blob-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/hash-blob-browser/-/hash-blob-browser-1.0.0-rc.3.tgz#2d1dcd1750b366817a0692424403edc808dc3cb8" - integrity sha512-2lgiclNMd3hiNBjoSh7UuzSY9ucpVF7Z6AmSmERWqN5Sm69u1q8p0RgyyWnKd0JZRelPlB8gBXk4EzxBPSTSLA== - dependencies: - "@aws-sdk/chunked-blob-reader" "1.0.0-rc.3" - "@aws-sdk/chunked-blob-reader-native" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/hash-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/hash-node/-/hash-node-1.0.0-rc.3.tgz#f46571f597dd8a301362dfef4c5dfd343116f9a4" - integrity sha512-Q3DikdeGA6pih2ftZajlNaHxsNUaKEXneZdxyoaSKyMppEni3eK2Z2ZjzyjDuXflYLkNtj4ylscure+uIKAApg== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-buffer-from" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/hash-stream-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/hash-stream-node/-/hash-stream-node-1.0.0-rc.3.tgz#8b4f668e5d482c509dfe402812b2a2f2a9e36b1b" - integrity sha512-ry78JhVXHIUdH/aokQ/YBxQ+26zC5VOgK2XLq9eDdxBTz2sefjwzk3Qs5eY1GZKfyUlKMwdRpCibo9FlPVPJeg== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/invalid-dependency@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/invalid-dependency/-/invalid-dependency-1.0.0-rc.3.tgz#857a44dcb666ec3be55ccde6f2912eff7dfddcad" - integrity sha512-Fl71S5Igd5Mi81QklxhhEWzwKbm+QP1kUYoc5nVK2sE+iLqdF9jwg7/ONBN8jISjTD8GPIW7NWL2SQNINNryMw== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/is-array-buffer@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/is-array-buffer/-/is-array-buffer-1.0.0-rc.3.tgz#47e47b7e5eb7e0ac9e7fa24f56a78550fbae63bc" - integrity sha512-tHFTBiXAgBZmAKaJIL2e2QPR9kA1tZTUJMqKaybWjhXckvb29EgUOLcdK+W2kMSqKIGqEINbAaV7S11ydBtYIg== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/md5-js@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/md5-js/-/md5-js-1.0.0-rc.3.tgz#c9ecabe2a7fccf017f6cfcb972c1cdb579da8f9c" - integrity sha512-UfHtEs5IWl39yU4X/95605bFMKErWRd+uPgtqEtCWDDGyw4uwUUrkyrhTfJKuUFvTj9ov0Lb03x5QPNDybAelQ== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-utf8-browser" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-apply-body-checksum@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-apply-body-checksum/-/middleware-apply-body-checksum-1.0.0-rc.3.tgz#1ba3053e65a06fa093b72c45bd28f6053d12028c" - integrity sha512-f8CMcb1mxPWHJvLxegpjF1fwoa/vFjIaRIrXgUoPMhFNICRZPGnzim2o2mGyjWcS39VkM6G7vpmosNv2zc4EJg== - dependencies: - "@aws-sdk/is-array-buffer" "1.0.0-rc.3" - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-bucket-endpoint@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-1.0.0-rc.3.tgz#3dc26338bb8b631adb93c2ef2bce4bdddf29e01d" - integrity sha512-bC7Fx78spMF+5sQhjncOHdjEamNGIIZx6KBWN5Z2JkTTfrEoN24VtM6wWXkNRn3EtN7usWBaGT1bCx3/Vk+R0A== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-arn-parser" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-content-length@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-content-length/-/middleware-content-length-1.0.0-rc.3.tgz#0410e78a508ec4ef8cb8987433ed621a7cfa7946" - integrity sha512-eQfeMwneYxxF6NMF5AokilQHm3HMUbtBVmybdrrM+vs027DRQBDqcZ2GXwVI93kcS4GaibNnzX804rG2xA2UwA== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-expect-continue@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-1.0.0-rc.3.tgz#54eb6e68b7e791febbee44fe107886ead02c47d0" - integrity sha512-rDs68vBn0sSWl3z1ecXSw7n+MeiSW//r6NSAWAmBE58BDjHSfwQ+aB3izpSHDGIiGZO4aasnwZAP7NjzYvxiWQ== - dependencies: - "@aws-sdk/middleware-header-default" "1.0.0-rc.3" - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-header-default@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-header-default/-/middleware-header-default-1.0.0-rc.3.tgz#3a6186aa0d0575626f07b92b774aa15b73b54230" - integrity sha512-h0zQFCaBzu7SoRRlKYws76C8q8hY/Ja7G6E69X7fGbrcmNFMjm4aZq0eipKvOIg7cGbrcFnyOnWqLlWaL76nwA== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-host-header@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-1.0.0-rc.3.tgz#d7dca9b683bacc0f985b4f1e86cef938d88ad52d" - integrity sha512-44aOjB9yd2TCDj8c9sr+8+rhQ63kkuIAcMdbt3P/fXKUWwTAW+bcvknaynya3hLa8B75tEQ112xVBb+HoDR//g== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-location-constraint@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-1.0.0-rc.3.tgz#22781315b246f426acde32e894acb3e59cb9d5bf" - integrity sha512-VdW0/g8SVckRQsz55DrPIzyrF+Qgat3qt+qE9c6Gk7u6XaF05BlG7rbjsStd3Eml+FsKG1KOO3RgDCWvgESmNw== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-logger@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-1.0.0-rc.3.tgz#a786bb90d3a5a184f9b8331ee90f05f3210b04b7" - integrity sha512-M1IfI6//hFgMKQXqXdXGNMf/qU4pkwzR9+Wz6TZ6iELtZaXce00ZzTK1szmO1pkWRVeXsCwr4fsbhj7OD4zZ8g== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-retry@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-retry/-/middleware-retry-1.0.0-rc.3.tgz#8b06fd8c49b3a3e7279551309e418533fac73d9b" - integrity sha512-Y8JhZPJM10H1KDobUP7aYM6ghBdVT4QM+04iAQBfYZPCc0ksyN+PKZLi97kxOrbg+a4HL593CG2UVnY4WI2tBQ== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/service-error-classification" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - react-native-get-random-values "^1.4.0" - tslib "^1.8.0" - uuid "^3.0.0" - -"@aws-sdk/middleware-sdk-s3@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-1.0.0-rc.3.tgz#1c9a26476887c464b5e52da116a752dc8975dddd" - integrity sha512-TDICHo5wONd4GUgLEtSjlygKRzXBfxkPQcNEGB2Mnbi+xbDa4FNd6XszkOrNMzxtmqD53ub/iDQewcBr9U9HJQ== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/util-arn-parser" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-serde@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-serde/-/middleware-serde-1.0.0-rc.3.tgz#81307310c51d50ec8425bee9fb08d35a7458dcfc" - integrity sha512-3IK4Hz8YV4+AIGJLjDu3QTKjfHGVIPrY5x4ubFzbGVc6EC9y69y+Yh3425ca3xeAVQFnORQn/707LiNKLlsD8g== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-signing@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-signing/-/middleware-signing-1.0.0-rc.3.tgz#34bad68f17052c298a09905728a35f8906fe55dc" - integrity sha512-RqIQwPaHvyY38rmIR+A9b3EwIaPPAKA4rmaTGAT1jeS7H65tXJeKc7aAXJWvDn9E1Fj56mOHTOd86FgP45MrUg== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/signature-v4" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-ssec@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-ssec/-/middleware-ssec-1.0.0-rc.3.tgz#45e77e8c1e998fe42bc290c7d4c65c84952e6f3b" - integrity sha512-sqv/TELHxAvpqOi7uhfCwLGVyOb1ihehfnSeqsyh2HPphg529ssmDUCF6jsi5maMc3lM/eHQ8LDPSXU9H58wwQ== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-stack@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-stack/-/middleware-stack-1.0.0-rc.3.tgz#e46193e696f15275e548e0cdbe1ca734e9e1c6b9" - integrity sha512-DV5RPf0rNsZVOtZA+nEDyWhfKUazUjWQppzXGjvCUSLaaPTINPUXf/go5M4S/62mn/9gxCftN5SShMP5yw1sNQ== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/middleware-user-agent@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-1.0.0-rc.3.tgz#de42837456482cd06596c0c5cebb80480d630e33" - integrity sha512-Zrp3kETrrWgJLlnjkSuetOH5cN5URqLd6WQmhZlEm0isvr+2RyDDOA4wP6JjmMhCmrG02/8/b4pMOPH/vUm/LQ== - dependencies: - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/node-config-provider@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/node-config-provider/-/node-config-provider-1.0.0-rc.3.tgz#b79fd5e95e4ca543b8d6aa2bf59b9ce2cc89c96a" - integrity sha512-1i0fjunUMYP479hAq7D8RugfMmC3KCUzvZA2xtjFQcE31d7YrlfGstwBq/kvNcIcw+yc3r7SC54KzwgqfSSvzA== - dependencies: - "@aws-sdk/property-provider" "1.0.0-rc.3" - "@aws-sdk/shared-ini-file-loader" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/node-http-handler@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/node-http-handler/-/node-http-handler-1.0.0-rc.3.tgz#da316daa5bcf536099e43d57cb136b8c2553a17f" - integrity sha512-hK0NM3PxGVCgKLZoAb8bXFQlOA1JGd2DwfjDdAn4XfIhEH4QfbuFZxjkQhNcDwkKIqzCmlYTbgJvWKRbbFkEXg== - dependencies: - "@aws-sdk/abort-controller" "1.0.0-rc.3" - "@aws-sdk/protocol-http" "1.0.0-rc.3" - "@aws-sdk/querystring-builder" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/property-provider@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/property-provider/-/property-provider-1.0.0-rc.3.tgz#4dce009bcc55d8779f721100462b8d6ac489606c" - integrity sha512-WrYlUVaq63k0fYdnIJziphfdTITaTlW0b1qrRzFsqKPRN1AnQenzFs27ZHaaecmFfGg3q1Y2fci3cpyNUBTruQ== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/protocol-http@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/protocol-http/-/protocol-http-1.0.0-rc.3.tgz#7759e6f96df292c01daaff42f2b921180df17c5d" - integrity sha512-paOSLmXvce84BRCx+JIYGpsVCtn3GCGvzLywaPCHeES2OekwD86PJQskCDAlshRPOy/LCdxYVdMt7FrEBuyQrg== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/querystring-builder@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/querystring-builder/-/querystring-builder-1.0.0-rc.3.tgz#d24135a0523a8d9645d874deeb0ba5a6f6c15428" - integrity sha512-PWTaV+0r/7FlPNjjKJQ/WyT4oRx4tG5efOuzQobb4/Bw2AFqVCzE2DMGx1V8YKqdq3QFckvRuoFDVqftyhF/Jw== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-uri-escape" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/querystring-parser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/querystring-parser/-/querystring-parser-1.0.0-rc.3.tgz#9fdd79eb0a06846f25da5f97477e8d8f1255785a" - integrity sha512-TkA/4wM76WzsiMOs0Lxqk33rP+J0YtCjmpGzS+x4oqNbdVYQBpYtbwqN+9nsrOeieCFRWq9QWl6QM4IyJT9gRA== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/service-error-classification@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/service-error-classification/-/service-error-classification-1.0.0-rc.3.tgz#711f6769cabc7fbdac9f0d5270968824762fa29f" - integrity sha512-qE/gPzAoQF3DJEPyQk5iQyTZEbVx53a41T+UHEYKYMaGXuAJfoBKnsucDNxgAYXSwcp+3Wp7XA1TUfcygEiZ/Q== - -"@aws-sdk/shared-ini-file-loader@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-1.0.0-rc.3.tgz#05aa96572d78f0c4c5edcc7f42ed14076d1b16ea" - integrity sha512-wynHRRZENIZUS714NX9cu9BDbxAL7DzOJvPYAj2tgC3bJNt0jkbQxNTePpolwWx7QNwFfQgDbK76LPkIo30dJQ== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/signature-v4@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4/-/signature-v4-1.0.0-rc.3.tgz#7ccc61f17d8f083dcbce5e30843c60f8b0388d67" - integrity sha512-ARfmXLW4NMmQF5/3xGiasi6nrlvddZauJOgG9t2STTog8gijn+y+V7wh26A7e4vgv1hyE0RdonylbakUH1R4Nw== - dependencies: - "@aws-sdk/is-array-buffer" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - "@aws-sdk/util-hex-encoding" "1.0.0-rc.3" - "@aws-sdk/util-uri-escape" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/smithy-client@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/smithy-client/-/smithy-client-1.0.0-rc.3.tgz#b96e97fa6b8bb3de8ecd918d842b2fb972fa0ac6" - integrity sha512-mlzpr5NLkaoPdTVrr3HIxuNbVJtq9IIrgfVXjqCNixOqJDRG46qiXubfaSsf4giwP8CE6zK9cDkvVDKyV0dl8A== - dependencies: - "@aws-sdk/middleware-stack" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/types@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-1.0.0-rc.3.tgz#98466080e07244d8f7406cc61ae7918d02b339a2" - integrity sha512-pKKR2SXG8IHbWcmVgFwLUrHqqqFOEuf5JiQmP7dEBjUXqavzDnqFUY7g9PGuM8928IQqL7IXrRsK7R+VbLgodQ== - -"@aws-sdk/types@^3.1.0": - version "3.4.1" - resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.4.1.tgz#efd5c9ca2166d5569f353345fea5d9ff252350c5" - integrity sha512-HqDPRdMzseVD4I/8Bb8TBAzg2X0U7oDiPfvYcvZt8fpVO2SwBOiLMh9tiEnRin48uRBbQMAw8D8wmCpyU78Dvg== - -"@aws-sdk/url-parser-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/url-parser-browser/-/url-parser-browser-1.0.0-rc.3.tgz#d9e1da2acdfb7f2486a68e951dd185dd7b0764e8" - integrity sha512-bTCB4K1nxX3juaOSRdjUC+nq1KZX1Ipy5pMQoDiRWYCgMgUAcqeWuxlclF3dc8vuhYUWa2A86D5lT3zrP0Gqag== - dependencies: - "@aws-sdk/querystring-parser" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/url-parser-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/url-parser-node/-/url-parser-node-1.0.0-rc.3.tgz#0cdd48fa068a1cf243b46b4eb4c927f38499f63d" - integrity sha512-W2No+drp3jCjkr1edSReGNLyXF+a34qHOcy8cJ6ZtPe5eLzCroZ33+w1gJ01r5UboWwzo8Qyz7QPxD5J0zPVzw== - dependencies: - "@aws-sdk/querystring-parser" "1.0.0-rc.3" - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - url "^0.11.0" - -"@aws-sdk/util-arn-parser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-arn-parser/-/util-arn-parser-1.0.0-rc.3.tgz#738e945d2dfd009d78c4c07e3773d41c1c525262" - integrity sha512-mIXiyBYDAQa9EdaKKU4oQsWAvSWVXAumCH89N5VQfrlRCuaqRUdmE83CJx69wcLFbrZCZmCJD2gcPVG5Ywa+NQ== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-base64-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-base64-browser/-/util-base64-browser-1.0.0-rc.3.tgz#49cb2a1c9f177327b66eb2a150e643334dd3ce0d" - integrity sha512-peqOSoOCTGlZVX9gC+4SxaSXQqSsjzNfKxKLZwcP/HhHIPU/I+tbnRbH4a2Cx29DsopTngu0GKLuPJEL67bvog== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-base64-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-base64-node/-/util-base64-node-1.0.0-rc.3.tgz#ef68e130e7b42b673f93af4a68b46c1542702e64" - integrity sha512-gz/JScFQ9MMdI59VdJTbgZrnNdTPXOJKesMwoEMH8nMb6/Wi3+KL2NH/GC92hxhuE/JbA1vdrelvCFOED8E1Jg== - dependencies: - "@aws-sdk/util-buffer-from" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/util-body-length-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-body-length-browser/-/util-body-length-browser-1.0.0-rc.3.tgz#f3052599445e06081002788693ada1fb99ea4a51" - integrity sha512-xvMrCo+5DshN4Fu3zar2RxaqPJ/QRAEOChyWEGUqjE+9/cow+uWsqBX3FdeY84mV6dkdcAJLQvP8aVH+v+w+lw== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-body-length-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-body-length-node/-/util-body-length-node-1.0.0-rc.3.tgz#e7068c9feff896a3720f71eab5ca44c76e587764" - integrity sha512-q7n3IP5s9TIMao9sK4an+xxBubHqWXoeqCQ5haeDmqQTBiZQYcyQQq61YJRghj2/53SH5MMS1ACncw3kvnO92g== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-buffer-from@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-buffer-from/-/util-buffer-from-1.0.0-rc.3.tgz#6a18955cb422b5649c9675d64bc2defa6e1175ac" - integrity sha512-43FzXSA3356C/QRCKZSmGTVwH4BgObNJDvF4z5dwwrfqU+tXjnUdnFo5hLsHq+fwjtWuXLkAyi+vz07x3MphvA== - dependencies: - "@aws-sdk/is-array-buffer" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/util-hex-encoding@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-hex-encoding/-/util-hex-encoding-1.0.0-rc.3.tgz#4229f2495f3a5ef32c8c7ada7ab14bd6f983d269" - integrity sha512-GXHBBGdAH2HPn18RFMsvXAvBtO8pG0I2PlGHfKhn+ym+UT1lHHYpCd3/PawUVUYnFZrqIj+j48IjFFJ3XMPXyQ== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-locate-window@^3.0.0": - version "3.4.1" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-locate-window/-/util-locate-window-3.4.1.tgz#933318165601fdb147693b8719996ddc60cae29d" - integrity sha512-wjN2FWqlPDek9WIvwLeRCjjbf3P2751j2DL0EOUHmm231gpCCGfiV1Ykb1ZY9iKlYkFumybs8C+5QOQXTrQUlg== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-uri-escape@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-uri-escape/-/util-uri-escape-1.0.0-rc.3.tgz#53b7ba5c353cef31f0d1f10c06d8dfc2118a3371" - integrity sha512-PW1Uh5nJ32VKysV6DxyO40gONJR8s0QFeS55apyPUeCYCrdEjwsNvftDWbRJIcVpvkRSrbDezWc5CJC0S8WXjQ== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-user-agent-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-1.0.0-rc.3.tgz#2b8d7a79c7e79099fe9a41976d4eeb39f5d83c21" - integrity sha512-ev7bjF6QejDTi/UTvBLfiUETrXtuBf5sJl8ocWRUcrCnje5DW5lat2LaC7KWeRppQ4NA//ldavF5ngAxsn8TzA== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/util-user-agent-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-1.0.0-rc.3.tgz#f9a7337b80e4118a12c4cc4f83512e9b5e48cb4e" - integrity sha512-5ELevKFFsHcyPSOrQ3mgdaNZ+Fr1I4J+/8aKoOiBO1Pnp15/xlVS4GkRiE0uUmAvBbUh1sByMvTo7ITeOBvlxA== - dependencies: - "@aws-sdk/types" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/util-utf8-browser@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-browser/-/util-utf8-browser-1.0.0-rc.3.tgz#ca2f1ee3c3774203675455e6cf6a52256d40849d" - integrity sha512-ypEJ2zsfm844dPSnES5lvS80Jb6hQ7D9iu0TUKQfIVu0LernJaAiSM05UEbktN+bEAoQBi9S64l8JjHVKFWu1Q== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-utf8-browser@^3.0.0": - version "3.4.1" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.4.1.tgz#fef8faa75addce8726b08c2963171e8949ac315c" - integrity sha512-dZ13D/y0cqFAe6LlWa17BXseRzRh96i8Jdx23I8zNSTcXctIetqINMwtO9KeJMl20vQTj8iORb4J496FgVRuUA== - dependencies: - tslib "^1.8.0" - -"@aws-sdk/util-utf8-node@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-node/-/util-utf8-node-1.0.0-rc.3.tgz#d6841823b949f4209fdcc405c5ad5d4b483e6e60" - integrity sha512-80BWIgYzdw/cKxUrXf+7IKp07saLfCl7p4Q+zitcTrng9bSbPhjntXBS+dOFrBU2fBUynfI2K+9k5taJRKgOTQ== - dependencies: - "@aws-sdk/util-buffer-from" "1.0.0-rc.3" - tslib "^1.8.0" - -"@aws-sdk/xml-builder@1.0.0-rc.3": - version "1.0.0-rc.3" - resolved "https://registry.yarnpkg.com/@aws-sdk/xml-builder/-/xml-builder-1.0.0-rc.3.tgz#2b0b6b4c182b96245889f4c8e2004eef847401f4" - integrity sha512-WdW/bZLVMNrEdG++m4B4QmZ6KnYsF3V68CDkZKg8IgDOMON4YOqUPBYDHNR8Wtdd1JQFLMDzrcqnXQqLb5dWgA== - dependencies: - tslib "^1.8.0" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" @@ -3414,296 +2766,6 @@ "@types/yargs" "^16.0.0" chalk "^4.0.0" -"@jimp/bmp@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/bmp/-/bmp-0.16.1.tgz#6e2da655b2ba22e721df0795423f34e92ef13768" - integrity sha512-iwyNYQeBawrdg/f24x3pQ5rEx+/GwjZcCXd3Kgc+ZUd+Ivia7sIqBsOnDaMZdKCBPlfW364ekexnlOqyVa0NWg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - bmp-js "^0.1.0" - -"@jimp/core@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/core/-/core-0.16.1.tgz#68c4288f6ef7f31a0f6b859ba3fb28dae930d39d" - integrity sha512-la7kQia31V6kQ4q1kI/uLimu8FXx7imWVajDGtwUG8fzePLWDFJyZl0fdIXVCL1JW2nBcRHidUot6jvlRDi2+g== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - any-base "^1.1.0" - buffer "^5.2.0" - exif-parser "^0.1.12" - file-type "^9.0.0" - load-bmfont "^1.3.1" - mkdirp "^0.5.1" - phin "^2.9.1" - pixelmatch "^4.0.2" - tinycolor2 "^1.4.1" - -"@jimp/custom@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/custom/-/custom-0.16.1.tgz#28b659c59e20a1d75a0c46067bd3f4bd302cf9c5" - integrity sha512-DNUAHNSiUI/j9hmbatD6WN/EBIyeq4AO0frl5ETtt51VN1SvE4t4v83ZA/V6ikxEf3hxLju4tQ5Pc3zmZkN/3A== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/core" "^0.16.1" - -"@jimp/gif@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/gif/-/gif-0.16.1.tgz#d1f7c3a58f4666482750933af8b8f4666414f3ca" - integrity sha512-r/1+GzIW1D5zrP4tNrfW+3y4vqD935WBXSc8X/wm23QTY9aJO9Lw6PEdzpYCEY+SOklIFKaJYUAq/Nvgm/9ryw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - gifwrap "^0.9.2" - omggif "^1.0.9" - -"@jimp/jpeg@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/jpeg/-/jpeg-0.16.1.tgz#3b7bb08a4173f2f6d81f3049b251df3ee2ac8175" - integrity sha512-8352zrdlCCLFdZ/J+JjBslDvml+fS3Z8gttdml0We759PnnZGqrnPRhkOEOJbNUlE+dD4ckLeIe6NPxlS/7U+w== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - jpeg-js "0.4.2" - -"@jimp/plugin-blit@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-blit/-/plugin-blit-0.16.1.tgz#09ea919f9d326de3b9c2826fe4155da37dde8edb" - integrity sha512-fKFNARm32RoLSokJ8WZXHHH2CGzz6ire2n1Jh6u+XQLhk9TweT1DcLHIXwQMh8oR12KgjbgsMGvrMVlVknmOAg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-blur@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-blur/-/plugin-blur-0.16.1.tgz#e614fa002797dcd662e705d4cea376e7db968bf5" - integrity sha512-1WhuLGGj9MypFKRcPvmW45ht7nXkOKu+lg3n2VBzIB7r4kKNVchuI59bXaCYQumOLEqVK7JdB4glaDAbCQCLyw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-circle@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-circle/-/plugin-circle-0.16.1.tgz#20e3194a67ca29740aba2630fd4d0a89afa27491" - integrity sha512-JK7yi1CIU7/XL8hdahjcbGA3V7c+F+Iw+mhMQhLEi7Q0tCnZ69YJBTamMiNg3fWPVfMuvWJJKOBRVpwNTuaZRg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-color@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-color/-/plugin-color-0.16.1.tgz#0f298ba74dee818b663834cd80d53e56f3755233" - integrity sha512-9yQttBAO5SEFj7S6nJK54f+1BnuBG4c28q+iyzm1JjtnehjqMg6Ljw4gCSDCvoCQ3jBSYHN66pmwTV74SU1B7A== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - tinycolor2 "^1.4.1" - -"@jimp/plugin-contain@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-contain/-/plugin-contain-0.16.1.tgz#3c5f5c495fd9bb08a970739d83694934f58123f2" - integrity sha512-44F3dUIjBDHN+Ym/vEfg+jtjMjAqd2uw9nssN67/n4FdpuZUVs7E7wadKY1RRNuJO+WgcD5aDQcsvurXMETQTg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-cover@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-cover/-/plugin-cover-0.16.1.tgz#0e8caec16a40abe15b1b32e5383a603a3306dc41" - integrity sha512-YztWCIldBAVo0zxcQXR+a/uk3/TtYnpKU2CanOPJ7baIuDlWPsG+YE4xTsswZZc12H9Kl7CiziEbDtvF9kwA/Q== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-crop@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-crop/-/plugin-crop-0.16.1.tgz#b362497c873043fe47ba881ab08604bf7226f50f" - integrity sha512-UQdva9oQzCVadkyo3T5Tv2CUZbf0klm2cD4cWMlASuTOYgaGaFHhT9st+kmfvXjKL8q3STkBu/zUPV6PbuV3ew== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-displace@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-displace/-/plugin-displace-0.16.1.tgz#4dd9db518c3e78de9d723f86a234bf98922afe8d" - integrity sha512-iVAWuz2+G6Heu8gVZksUz+4hQYpR4R0R/RtBzpWEl8ItBe7O6QjORAkhxzg+WdYLL2A/Yd4ekTpvK0/qW8hTVw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-dither@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-dither/-/plugin-dither-0.16.1.tgz#b47de2c0bb09608bed228b41c3cd01a85ec2d45b" - integrity sha512-tADKVd+HDC9EhJRUDwMvzBXPz4GLoU6s5P7xkVq46tskExYSptgj5713J5Thj3NMgH9Rsqu22jNg1H/7tr3V9Q== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-fisheye@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-fisheye/-/plugin-fisheye-0.16.1.tgz#f625047b6cdbe1b83b89e9030fd025ab19cdb1a4" - integrity sha512-BWHnc5hVobviTyIRHhIy9VxI1ACf4CeSuCfURB6JZm87YuyvgQh5aX5UDKtOz/3haMHXBLP61ZBxlNpMD8CG4A== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-flip@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-flip/-/plugin-flip-0.16.1.tgz#7a99ea22bde802641017ed0f2615870c144329bb" - integrity sha512-KdxTf0zErfZ8DyHkImDTnQBuHby+a5YFdoKI/G3GpBl3qxLBvC+PWkS2F/iN3H7wszP7/TKxTEvWL927pypT0w== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-gaussian@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-gaussian/-/plugin-gaussian-0.16.1.tgz#0845e314085ccd52e34fad9a83949bc0d81a68e8" - integrity sha512-u9n4wjskh3N1mSqketbL6tVcLU2S5TEaFPR40K6TDv4phPLZALi1Of7reUmYpVm8mBDHt1I6kGhuCJiWvzfGyg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-invert@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-invert/-/plugin-invert-0.16.1.tgz#7e6f5a15707256f3778d06921675bbcf18545c97" - integrity sha512-2DKuyVXANH8WDpW9NG+PYFbehzJfweZszFYyxcaewaPLN0GxvxVLOGOPP1NuUTcHkOdMFbE0nHDuB7f+sYF/2w== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-mask@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-mask/-/plugin-mask-0.16.1.tgz#e7f2460e05c3cda7af5e76f33ccb0579f66f90df" - integrity sha512-snfiqHlVuj4bSFS0v96vo2PpqCDMe4JB+O++sMo5jF5mvGcGL6AIeLo8cYqPNpdO6BZpBJ8MY5El0Veckhr39Q== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-normalize@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-normalize/-/plugin-normalize-0.16.1.tgz#032dfd88eefbc4dedc8b1b2d243832e4f3af30c8" - integrity sha512-dOQfIOvGLKDKXPU8xXWzaUeB0nvkosHw6Xg1WhS1Z5Q0PazByhaxOQkSKgUryNN/H+X7UdbDvlyh/yHf3ITRaw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-print@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-print/-/plugin-print-0.16.1.tgz#66b803563f9d109825970714466e6ab9ae639ff6" - integrity sha512-ceWgYN40jbN4cWRxixym+csyVymvrryuKBQ+zoIvN5iE6OyS+2d7Mn4zlNgumSczb9GGyZZESIgVcBDA1ezq0Q== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - load-bmfont "^1.4.0" - -"@jimp/plugin-resize@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-resize/-/plugin-resize-0.16.1.tgz#65e39d848ed13ba2d6c6faf81d5d590396571d10" - integrity sha512-u4JBLdRI7dargC04p2Ha24kofQBk3vhaf0q8FwSYgnCRwxfvh2RxvhJZk9H7Q91JZp6wgjz/SjvEAYjGCEgAwQ== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-rotate@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-rotate/-/plugin-rotate-0.16.1.tgz#53fb5d51a4b3d05af9c91c2a8fffe5d7a1a47c8c" - integrity sha512-ZUU415gDQ0VjYutmVgAYYxC9Og9ixu2jAGMCU54mSMfuIlmohYfwARQmI7h4QB84M76c9hVLdONWjuo+rip/zg== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-scale@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-scale/-/plugin-scale-0.16.1.tgz#89f6ba59feed3429847ed226aebda33a240cc647" - integrity sha512-jM2QlgThIDIc4rcyughD5O7sOYezxdafg/2Xtd1csfK3z6fba3asxDwthqPZAgitrLgiKBDp6XfzC07Y/CefUw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-shadow@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-shadow/-/plugin-shadow-0.16.1.tgz#a7af892a740febf41211e10a5467c3c5c521a04c" - integrity sha512-MeD2Is17oKzXLnsphAa1sDstTu6nxscugxAEk3ji0GV1FohCvpHBcec0nAq6/czg4WzqfDts+fcPfC79qWmqrA== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugin-threshold@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugin-threshold/-/plugin-threshold-0.16.1.tgz#34f3078f9965145b7ae26c53a32ad74b1195bbf5" - integrity sha512-iGW8U/wiCSR0+6syrPioVGoSzQFt4Z91SsCRbgNKTAk7D+XQv6OI78jvvYg4o0c2FOlwGhqz147HZV5utoSLxA== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - -"@jimp/plugins@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/plugins/-/plugins-0.16.1.tgz#9f08544c97226d6460a16ced79f57e85bec3257b" - integrity sha512-c+lCqa25b+4q6mJZSetlxhMoYuiltyS+ValLzdwK/47+aYsq+kcJNl+TuxIEKf59yr9+5rkbpsPkZHLF/V7FFA== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/plugin-blit" "^0.16.1" - "@jimp/plugin-blur" "^0.16.1" - "@jimp/plugin-circle" "^0.16.1" - "@jimp/plugin-color" "^0.16.1" - "@jimp/plugin-contain" "^0.16.1" - "@jimp/plugin-cover" "^0.16.1" - "@jimp/plugin-crop" "^0.16.1" - "@jimp/plugin-displace" "^0.16.1" - "@jimp/plugin-dither" "^0.16.1" - "@jimp/plugin-fisheye" "^0.16.1" - "@jimp/plugin-flip" "^0.16.1" - "@jimp/plugin-gaussian" "^0.16.1" - "@jimp/plugin-invert" "^0.16.1" - "@jimp/plugin-mask" "^0.16.1" - "@jimp/plugin-normalize" "^0.16.1" - "@jimp/plugin-print" "^0.16.1" - "@jimp/plugin-resize" "^0.16.1" - "@jimp/plugin-rotate" "^0.16.1" - "@jimp/plugin-scale" "^0.16.1" - "@jimp/plugin-shadow" "^0.16.1" - "@jimp/plugin-threshold" "^0.16.1" - timm "^1.6.1" - -"@jimp/png@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/png/-/png-0.16.1.tgz#f24cfc31529900b13a2dd9d4fdb4460c1e4d814e" - integrity sha512-iyWoCxEBTW0OUWWn6SveD4LePW89kO7ZOy5sCfYeDM/oTPLpR8iMIGvZpZUz1b8kvzFr27vPst4E5rJhGjwsdw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/utils" "^0.16.1" - pngjs "^3.3.3" - -"@jimp/tiff@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/tiff/-/tiff-0.16.1.tgz#0e8756695687d7574b6bc73efab0acd4260b7a12" - integrity sha512-3K3+xpJS79RmSkAvFMgqY5dhSB+/sxhwTFA9f4AVHUK0oKW+u6r52Z1L0tMXHnpbAdR9EJ+xaAl2D4x19XShkQ== - dependencies: - "@babel/runtime" "^7.7.2" - utif "^2.0.1" - -"@jimp/types@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/types/-/types-0.16.1.tgz#0dbab37b3202315c91010f16c31766d35a2322cc" - integrity sha512-g1w/+NfWqiVW4CaXSJyD28JQqZtm2eyKMWPhBBDCJN9nLCN12/Az0WFF3JUAktzdsEC2KRN2AqB1a2oMZBNgSQ== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/bmp" "^0.16.1" - "@jimp/gif" "^0.16.1" - "@jimp/jpeg" "^0.16.1" - "@jimp/png" "^0.16.1" - "@jimp/tiff" "^0.16.1" - timm "^1.6.1" - -"@jimp/utils@^0.16.1": - version "0.16.1" - resolved "https://registry.yarnpkg.com/@jimp/utils/-/utils-0.16.1.tgz#2f51e6f14ff8307c4aa83d5e1a277da14a9fe3f7" - integrity sha512-8fULQjB0x4LzUSiSYG6ZtQl355sZjxbv8r9PPAuYHzS9sGiSHJQavNqK/nKnpDsVkU88/vRGcE7t3nMU0dEnVw== - dependencies: - "@babel/runtime" "^7.7.2" - regenerator-runtime "^0.13.3" - "@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" @@ -3921,62 +2983,62 @@ prop-types "^15.8.1" react-is "^18.2.0" -"@next/env@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/env/-/env-13.5.6.tgz#c1148e2e1aa166614f05161ee8f77ded467062bc" - integrity sha512-Yac/bV5sBGkkEXmAX5FWPS9Mmo2rthrOPRQQNfycJPkjUAUclomCPH7QFVCDQ4Mp2k2K1SSM6m0zrxYrOwtFQw== +"@next/env@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/env/-/env-14.0.4.tgz#d5cda0c4a862d70ae760e58c0cd96a8899a2e49a" + integrity sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ== -"@next/eslint-plugin-next@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-13.5.6.tgz#cf279b94ddc7de49af8e8957f0c3b7349bc489bf" - integrity sha512-ng7pU/DDsxPgT6ZPvuprxrkeew3XaRf4LAT4FabaEO/hAbvVx4P7wqnqdbTdDn1kgTvsI4tpIgT4Awn/m0bGbg== +"@next/eslint-plugin-next@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-14.0.4.tgz#474fd88d92209270021186043513fbdc4203f5ec" + integrity sha512-U3qMNHmEZoVmHA0j/57nRfi3AscXNvkOnxDmle/69Jz/G0o/gWjXTDdlgILZdrxQ0Lw/jv2mPW8PGy0EGIHXhQ== dependencies: glob "7.1.7" -"@next/swc-darwin-arm64@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.5.6.tgz#b15d139d8971360fca29be3bdd703c108c9a45fb" - integrity sha512-5nvXMzKtZfvcu4BhtV0KH1oGv4XEW+B+jOfmBdpFI3C7FrB/MfujRpWYSBBO64+qbW8pkZiSyQv9eiwnn5VIQA== - -"@next/swc-darwin-x64@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.5.6.tgz#9c72ee31cc356cb65ce6860b658d807ff39f1578" - integrity sha512-6cgBfxg98oOCSr4BckWjLLgiVwlL3vlLj8hXg2b+nDgm4bC/qVXXLfpLB9FHdoDu4057hzywbxKvmYGmi7yUzA== - -"@next/swc-linux-arm64-gnu@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.5.6.tgz#59f5f66155e85380ffa26ee3d95b687a770cfeab" - integrity sha512-txagBbj1e1w47YQjcKgSU4rRVQ7uF29YpnlHV5xuVUsgCUf2FmyfJ3CPjZUvpIeXCJAoMCFAoGnbtX86BK7+sg== - -"@next/swc-linux-arm64-musl@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.5.6.tgz#f012518228017052736a87d69bae73e587c76ce2" - integrity sha512-cGd+H8amifT86ZldVJtAKDxUqeFyLWW+v2NlBULnLAdWsiuuN8TuhVBt8ZNpCqcAuoruoSWynvMWixTFcroq+Q== - -"@next/swc-linux-x64-gnu@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.5.6.tgz#339b867a7e9e7ee727a700b496b269033d820df4" - integrity sha512-Mc2b4xiIWKXIhBy2NBTwOxGD3nHLmq4keFk+d4/WL5fMsB8XdJRdtUlL87SqVCTSaf1BRuQQf1HvXZcy+rq3Nw== - -"@next/swc-linux-x64-musl@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.5.6.tgz#ae0ae84d058df758675830bcf70ca1846f1028f2" - integrity sha512-CFHvP9Qz98NruJiUnCe61O6GveKKHpJLloXbDSWRhqhkJdZD2zU5hG+gtVJR//tyW897izuHpM6Gtf6+sNgJPQ== - -"@next/swc-win32-arm64-msvc@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.5.6.tgz#a5cc0c16920485a929a17495064671374fdbc661" - integrity sha512-aFv1ejfkbS7PUa1qVPwzDHjQWQtknzAZWGTKYIAaS4NMtBlk3VyA6AYn593pqNanlicewqyl2jUhQAaFV/qXsg== - -"@next/swc-win32-ia32-msvc@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.5.6.tgz#6a2409b84a2cbf34bf92fe714896455efb4191e4" - integrity sha512-XqqpHgEIlBHvzwG8sp/JXMFkLAfGLqkbVsyN+/Ih1mR8INb6YCc2x/Mbwi6hsAgUnqQztz8cvEbHJUbSl7RHDg== - -"@next/swc-win32-x64-msvc@13.5.6": - version "13.5.6" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.6.tgz#4a3e2a206251abc729339ba85f60bc0433c2865d" - integrity sha512-Cqfe1YmOS7k+5mGu92nl5ULkzpKuxJrP3+4AEuPmrpFZ3BHxTY3TnHmU1On3bFmFFs6FbTcdF58CCUProGpIGQ== +"@next/swc-darwin-arm64@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.4.tgz#27b1854c2cd04eb1d5e75081a1a792ad91526618" + integrity sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg== + +"@next/swc-darwin-x64@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.4.tgz#9940c449e757d0ee50bb9e792d2600cc08a3eb3b" + integrity sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw== + +"@next/swc-linux-arm64-gnu@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.0.4.tgz#0eafd27c8587f68ace7b4fa80695711a8434de21" + integrity sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w== + +"@next/swc-linux-arm64-musl@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.0.4.tgz#2b0072adb213f36dada5394ea67d6e82069ae7dd" + integrity sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ== + +"@next/swc-linux-x64-gnu@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.0.4.tgz#68c67d20ebc8e3f6ced6ff23a4ba2a679dbcec32" + integrity sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A== + +"@next/swc-linux-x64-musl@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.0.4.tgz#67cd81b42fb2caf313f7992fcf6d978af55a1247" + integrity sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw== + +"@next/swc-win32-arm64-msvc@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.0.4.tgz#be06585906b195d755ceda28f33c633e1443f1a3" + integrity sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w== + +"@next/swc-win32-ia32-msvc@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.0.4.tgz#e76cabefa9f2d891599c3d85928475bd8d3f6600" + integrity sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg== + +"@next/swc-win32-x64-msvc@14.0.4": + version "14.0.4" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.0.4.tgz#e74892f1a9ccf41d3bf5979ad6d3d77c07b9cba1" + integrity sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -4278,20 +3340,6 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@sls-next/lambda-at-edge@^1.5.2": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@sls-next/lambda-at-edge/-/lambda-at-edge-1.7.0.tgz#86b2a4642ef252eb8bb96b8931808d4c18d54082" - integrity sha512-mBdw4EgsNB9tE7pZ/YIhfkZbkbXzGjcaeJxGBKN0HsJwMJCNdJKnxPC2a29rvaovHnyFD6s91HVJ9V7b1GH/XQ== - dependencies: - "@aws-sdk/client-s3" "1.0.0-rc.3" - "@zeit/node-file-trace" "^0.6.5" - cookie "^0.4.1" - execa "^4.0.2" - fs-extra "^9.0.1" - get-stream "^6.0.0" - jsonwebtoken "^8.5.1" - path-to-regexp "^6.1.0" - "@storybook/addon-actions@6.5.12", "@storybook/addon-actions@^6.5.12": version "6.5.12" resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-6.5.12.tgz#9d2bf3bffa41cf4f92c7220c8f6e3a3f5da55019" @@ -6049,6 +5097,13 @@ dependencies: "@types/react" "*" +"@types/react-dom@^18.2.17": + version "18.2.17" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.17.tgz#375c55fab4ae671bd98448dcfa153268d01d6f64" + integrity sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg== + dependencies: + "@types/react" "*" + "@types/react-is@^16.7.1 || ^17.0.0": version "17.0.3" resolved "https://registry.yarnpkg.com/@types/react-is/-/react-is-17.0.3.tgz#2d855ba575f2fc8d17ef9861f084acc4b90a137a" @@ -6103,6 +5158,15 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/react@^18.2.43": + version "18.2.43" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.43.tgz#c58e5abe241e6f71f60ce30e2a9aceb9d3a2a374" + integrity sha512-nvOV01ZdBdd/KW6FahSbcNplt2jCJfyWdTos61RYHV+FVv5L/g9AOX1bmbVcWcLFL8+KHQfh1zVIQrud6ihyQA== + dependencies: + "@types/prop-types" "*" + "@types/scheduler" "*" + csstype "^3.0.2" + "@types/scheduler@*": version "0.16.2" resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39" @@ -6598,28 +5662,6 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@zeit/node-file-trace@^0.6.5": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@zeit/node-file-trace/-/node-file-trace-0.6.5.tgz#ffd443e4648eb88591c53b1a871a47bff651b62e" - integrity sha512-PbxtiZBU+axKtR9dU2/iQgK9+aP/ip94SqI/FCMWppmFPGlxGKHf8UnJZskFuqLZeWWzL+L+8SeipsNHATO9nw== - dependencies: - acorn "^7.1.1" - acorn-class-fields "^0.3.2" - acorn-export-ns-from "^0.1.0" - acorn-import-meta "^1.1.0" - acorn-numeric-separator "^0.3.0" - acorn-static-class-features "^0.2.1" - bindings "^1.4.0" - estree-walker "^0.6.0" - glob "^7.1.3" - graceful-fs "^4.1.15" - micromatch "^4.0.2" - mkdirp "^0.5.1" - node-gyp-build "^4.2.2" - node-pre-gyp "^0.13.0" - resolve-from "^5.0.0" - rollup-pluginutils "^2.8.2" - abab@^2.0.3, abab@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" @@ -6653,18 +5695,6 @@ accepts@~1.3.8: mime-types "~2.1.34" negotiator "0.6.3" -acorn-class-fields@^0.3.2: - version "0.3.7" - resolved "https://registry.yarnpkg.com/acorn-class-fields/-/acorn-class-fields-0.3.7.tgz#a35122f3cc6ad2bb33b1857e79215677fcfdd720" - integrity sha512-jdUWSFce0fuADUljmExz4TWpPkxmRW/ZCPRqeeUzbGf0vFUcpQYbyq52l75qGd0oSwwtAepeL6hgb/naRgvcKQ== - dependencies: - acorn-private-class-elements "^0.2.7" - -acorn-export-ns-from@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/acorn-export-ns-from/-/acorn-export-ns-from-0.1.0.tgz#192687869bba3bcb2ef1a1ba196486ea7e100e5c" - integrity sha512-QDQJBe2DfxNBIMxs+19XY2i/XXilJn+kPgX30HWNYK4IXoNj3ACNSWPU7szL0SzqjFyOG4zoZxG9P7JfNw5g7A== - acorn-globals@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" @@ -6678,33 +5708,11 @@ acorn-import-assertions@^1.7.6: resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9" integrity sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw== -acorn-import-meta@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/acorn-import-meta/-/acorn-import-meta-1.1.0.tgz#c384423462ee7d4721d4de83231021a36cb09def" - integrity sha512-pshgiVR5mhpjFVdizKTN+kAGRqjJFUOEB3TvpQ6kiAutb1lvHrIVVcGoe5xzMpJkVNifCeymMG7/tsDkWn8CdQ== - acorn-jsx@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn-numeric-separator@^0.3.0: - version "0.3.6" - resolved "https://registry.yarnpkg.com/acorn-numeric-separator/-/acorn-numeric-separator-0.3.6.tgz#af7f0abaf8e74bd9ca1117602954d0a3b75804f3" - integrity sha512-jUr5esgChu4k7VzesH/Nww3EysuyGJJcTEEiXqILUFKpO96PNyEXmK21M6nE0TSqGA1PeEg1MzgqJaoFsn9JMw== - -acorn-private-class-elements@^0.2.7: - version "0.2.7" - resolved "https://registry.yarnpkg.com/acorn-private-class-elements/-/acorn-private-class-elements-0.2.7.tgz#b14902c705bcff267adede1c9f61c1a317ef95d2" - integrity sha512-+GZH2wOKNZOBI4OOPmzpo4cs6mW297sn6fgIk1dUI08jGjhAaEwvC39mN2gJAg2lmAQJ1rBkFqKWonL3Zz6PVA== - -acorn-static-class-features@^0.2.1: - version "0.2.4" - resolved "https://registry.yarnpkg.com/acorn-static-class-features/-/acorn-static-class-features-0.2.4.tgz#a0f5261dd483f25196716854f2d7652a1deb39ee" - integrity sha512-5X4mpYq5J3pdndLmIB0+WtFd/mKWnNYpuTlTzj32wUu/PMmEGOiayQ5UrqgwdBNiaZBtDDh5kddpP7Yg2QaQYA== - dependencies: - acorn-private-class-elements "^0.2.7" - acorn-walk@^7.1.1, acorn-walk@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" @@ -6952,11 +5960,6 @@ ansicolors@~0.3.2: resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979" integrity sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk= -any-base@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/any-base/-/any-base-1.1.0.tgz#ae101a62bc08a597b4c9ab5b7089d456630549fe" - integrity sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg== - anymatch@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" @@ -6973,29 +5976,21 @@ anymatch@^3.0.0, anymatch@^3.0.3, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -anymatch@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" - integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - app-root-dir@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/app-root-dir/-/app-root-dir-1.0.2.tgz#38187ec2dea7577fff033ffcb12172692ff6e118" integrity sha512-jlpIfsOoNoafl92Sz//64uQHGSyMrD2vYG5d8o2a4qGvyNCvXur7bzIsWtAC/6flI2RYAp3kv8rsfBtaLm7w0g== -aproba@^1.0.3, aproba@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" - integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== - "aproba@^1.0.3 || ^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== +aproba@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + archiver-utils@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/archiver-utils/-/archiver-utils-2.1.0.tgz#e8a460e94b693c3e3da182a098ca6285ba9249e2" @@ -7033,14 +6028,6 @@ are-we-there-yet@^2.0.0: delegates "^1.0.0" readable-stream "^3.6.0" -are-we-there-yet@~1.1.2: - version "1.1.5" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" - integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - arg@^4.1.0: version "4.1.3" resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" @@ -7765,7 +6752,7 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -bindings@^1.4.0, bindings@^1.5.0: +bindings@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== @@ -7795,11 +6782,6 @@ bluebird@^3.5.5: resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -bmp-js@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/bmp-js/-/bmp-js-0.1.0.tgz#e05a63f796a6c1ff25f4771ec7adadc148c07233" - integrity sha1-4Fpj95amwf8l9Hcex62twUjAcjM= - bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" @@ -8059,11 +7041,6 @@ buffer-equal-constant-time@1.0.1: resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" integrity sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= -buffer-equal@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-0.0.1.tgz#91bc74b11ea405bc916bc6aa908faafa5b4aac4b" - integrity sha1-kbx0sR6kBbyRa8aqkI+q+ltKrEs= - buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -8083,7 +7060,7 @@ buffer@^4.3.0: ieee754 "^1.1.4" isarray "^1.0.0" -buffer@^5.2.0, buffer@^5.5.0: +buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== @@ -8470,21 +7447,6 @@ chokidar@^2.1.8: optionalDependencies: fsevents "^1.2.7" -chokidar@^3.5.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" - integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== - dependencies: - anymatch "~3.1.1" - braces "~3.0.2" - glob-parent "~5.1.0" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.5.0" - optionalDependencies: - fsevents "~2.3.1" - chownr@^1.1.1: version "1.1.4" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" @@ -8681,11 +7643,6 @@ co@^4.6.0: resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= - collapse-white-space@^1.0.2: version "1.0.6" resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.6.tgz#e63629c0016665792060dbbeb79c42239d2c5287" @@ -8809,7 +7766,7 @@ commander@^4.0.1, commander@^4.1.1: resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== -commander@^6.0.0, commander@^6.2.1: +commander@^6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== @@ -8928,7 +7885,7 @@ console-browserify@^1.1.0: resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== -console-control-strings@^1.0.0, console-control-strings@^1.1.0, console-control-strings@~1.1.0: +console-control-strings@^1.0.0, console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= @@ -8967,7 +7924,7 @@ cookie-signature@1.0.6: resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= -cookie@0.4.1, cookie@^0.4.1: +cookie@0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.1.tgz#afd713fe26ebd21ba95ceb61f9a8116e50a537d1" integrity sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA== @@ -9366,13 +8323,6 @@ date-fns@^2.19.0, date-fns@^2.29.3: resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8" integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA== -debounce-fn@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/debounce-fn/-/debounce-fn-4.0.0.tgz#ed76d206d8a50e60de0dd66d494d82835ffe61c7" - integrity sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ== - dependencies: - mimic-fn "^3.0.0" - debounce-promise@^3.1.0: version "3.1.2" resolved "https://registry.yarnpkg.com/debounce-promise/-/debounce-promise-3.1.2.tgz#320fb8c7d15a344455cd33cee5ab63530b6dc7c5" @@ -9392,7 +8342,7 @@ debug@4, debug@4.3.1, debug@^4.1.0, debug@^4.1.1: dependencies: ms "2.1.2" -debug@^3.0.0, debug@^3.2.6, debug@^3.2.7: +debug@^3.0.0, debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== @@ -9665,11 +8615,6 @@ detab@2.0.4: dependencies: repeat-string "^1.5.4" -detect-libc@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= - detect-newline@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" @@ -10332,12 +9277,12 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-config-next@13: - version "13.5.6" - resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-13.5.6.tgz#3a5a6222d5cb32256760ad68ab8e976e866a08c8" - integrity sha512-o8pQsUHTo9aHqJ2YiZDym5gQAMRf7O2HndHo/JZeY7TDD+W4hk6Ma8Vw54RHiBeb7OWWO5dPirQB+Is/aVQ7Kg== +eslint-config-next@^14.0.4: + version "14.0.4" + resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-14.0.4.tgz#7cd2c0a3b310203d41cf0dbf9d31f9b0a6235b4a" + integrity sha512-9/xbOHEQOmQtqvQ1UsTQZpnA7SlDMBtuKJ//S4JnoyK3oGLhILKXdBgu/UO7lQo/2xOykQULS1qQ6p2+EpHgAQ== dependencies: - "@next/eslint-plugin-next" "13.5.6" + "@next/eslint-plugin-next" "14.0.4" "@rushstack/eslint-patch" "^1.3.3" "@typescript-eslint/parser" "^5.4.2 || ^6.0.0" eslint-import-resolver-node "^0.3.6" @@ -10595,11 +9540,6 @@ estree-to-babel@^3.1.0: "@babel/types" "^7.2.0" c8 "^7.6.0" -estree-walker@^0.6.0, estree-walker@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" - integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== - estree-walker@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" @@ -10661,21 +9601,6 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" -execa@^4.0.2: - version "4.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" - integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== - dependencies: - cross-spawn "^7.0.0" - get-stream "^5.0.0" - human-signals "^1.1.1" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.0" - onetime "^5.1.0" - signal-exit "^3.0.2" - strip-final-newline "^2.0.0" - execa@^5.0.0, execa@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" @@ -10726,11 +9651,6 @@ exenv@^1.2.2: resolved "https://registry.yarnpkg.com/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d" integrity sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw== -exif-parser@^0.1.12: - version "0.1.12" - resolved "https://registry.yarnpkg.com/exif-parser/-/exif-parser-0.1.12.tgz#58a9d2d72c02c1f6f02a0ef4a9166272b7760922" - integrity sha1-WKnS1ywCwfbwKg70qRZicrd2CSI= - exit-on-epipe@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz#0bdd92e87d5285d267daa8171d0eb06159689692" @@ -10937,11 +9857,6 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -fast-base64-decode@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz#b434a0dd7d92b12b43f26819300d2dafb83ee418" - integrity sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q== - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -11008,11 +9923,6 @@ fast-url-parser@^1.1.3: dependencies: punycode "^1.3.2" -fast-xml-parser@^3.16.0: - version "3.17.6" - resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.17.6.tgz#4f5df8cf927c3e59a10362abcfb7335c34bc5c5f" - integrity sha512-40WHI/5d2MOzf1sD2bSaTXlPn1lueJLAX6j1xH5dSAr6tNeut8B9ktEL6sjAK9yVON4uNj9//axOdBJUuruCzw== - fastq@^1.6.0: version "1.13.0" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" @@ -11100,11 +10010,6 @@ file-system-cache@^1.0.5: fs-extra "^10.1.0" ramda "^0.28.0" -file-type@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/file-type/-/file-type-9.0.0.tgz#a68d5ad07f486414dfb2c8866f73161946714a18" - integrity sha512-Qe/5NJrgIOlwijpq3B7BEpzPFcgzggOTagZmkXQY4LA6bsXKTUstK7Wp12lEJ/mLKTpvIZxmIuRcLYWT6ov9lw== - file-uri-to-path@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" @@ -11531,13 +10436,6 @@ fs-extra@^9.0.0, fs-extra@^9.0.1: jsonfile "^6.0.1" universalify "^2.0.0" -fs-minipass@^1.2.5: - version "1.2.7" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" - integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== - dependencies: - minipass "^2.6.0" - fs-minipass@^2.0.0, fs-minipass@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" @@ -11578,11 +10476,6 @@ fsevents@^2.1.2, fsevents@^2.3.2, fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== -fsevents@~2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.1.tgz#b209ab14c61012636c8863507edf7fb68cc54e9f" - integrity sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw== - ftp@^0.3.10: version "0.3.10" resolved "https://registry.yarnpkg.com/ftp/-/ftp-0.3.10.tgz#9197d861ad8142f3e63d5a83bfe4c59f7330885d" @@ -11666,20 +10559,6 @@ gauge@^4.0.0: strip-ansi "^6.0.1" wide-align "^1.1.2" -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - gaxios@^4.0.0: version "4.3.2" resolved "https://registry.yarnpkg.com/gaxios/-/gaxios-4.3.2.tgz#845827c2dc25a0213c8ab4155c7a28910f5be83f" @@ -11796,7 +10675,7 @@ get-stream@^4.0.0, get-stream@^4.1.0: dependencies: pump "^3.0.0" -get-stream@^5.0.0, get-stream@^5.1.0: +get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== @@ -11847,14 +10726,6 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -gifwrap@^0.9.2: - version "0.9.2" - resolved "https://registry.yarnpkg.com/gifwrap/-/gifwrap-0.9.2.tgz#348e286e67d7cf57942172e1e6f05a71cee78489" - integrity sha512-fcIswrPaiCDAyO8xnWvHSZdWChjKXUanKKpAiWWJ/UTkEi/aYKn5+90e7DE820zbEaVR9CE2y4z9bzhQijZ0BA== - dependencies: - image-q "^1.1.1" - omggif "^1.0.10" - github-slugger@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.4.0.tgz#206eb96cdb22ee56fdc53a28d5a302338463444e" @@ -11887,13 +10758,6 @@ glob-parent@^6.0.1: dependencies: is-glob "^4.0.3" -glob-parent@~5.1.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" - integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== - dependencies: - is-glob "^4.0.1" - glob-promise@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/glob-promise/-/glob-promise-3.4.0.tgz#b6b8f084504216f702dc2ce8c9bc9ac8866fdb20" @@ -12007,7 +10871,7 @@ global-prefix@^3.0.0: kind-of "^6.0.2" which "^1.3.1" -global@^4.4.0, global@~4.4.0: +global@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/global/-/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406" integrity sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w== @@ -12191,7 +11055,7 @@ graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== -graceful-fs@^4.1.5: +graceful-fs@^4.1.5, graceful-fs@^4.2.11: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -12322,7 +11186,7 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has-unicode@^2.0.0, has-unicode@^2.0.1: +has-unicode@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= @@ -12705,11 +11569,6 @@ https-proxy-agent@^4.0.0: agent-base "5" debug "4" -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -12741,7 +11600,7 @@ i18next@^23.5.1: dependencies: "@babel/runtime" "^7.22.5" -iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4: +iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -12782,13 +11641,6 @@ iferr@^0.1.5: resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" integrity sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA== -ignore-walk@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37" - integrity sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw== - dependencies: - minimatch "^3.0.4" - ignore@^4.0.3, ignore@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" @@ -12804,11 +11656,6 @@ ignore@^5.2.0: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== -image-q@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/image-q/-/image-q-1.1.1.tgz#fc84099664460b90ca862d9300b6bfbbbfbf8056" - integrity sha1-/IQJlmRGC5DKhi2TALa/u7+/gFY= - image-size@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.0.2.tgz#d778b6d0ab75b2737c1556dd631652eb963bc486" @@ -13297,13 +12144,6 @@ is-finite@^1.0.0: resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= - dependencies: - number-is-nan "^1.0.0" - is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" @@ -13314,7 +12154,7 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== -is-function@^1.0.1, is-function@^1.0.2: +is-function@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.2.tgz#4f097f30abf6efadac9833b17ca5dc03f8144e08" integrity sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ== @@ -14228,17 +13068,6 @@ jest@^27.5.1: import-local "^3.0.2" jest-cli "^27.5.1" -jimp@^0.16.1: - version "0.16.1" - resolved "https://registry.yarnpkg.com/jimp/-/jimp-0.16.1.tgz#192f851a30e5ca11112a3d0aa53137659a78ca7a" - integrity sha512-+EKVxbR36Td7Hfd23wKGIeEyHbxShZDX6L8uJkgVW3ESA9GiTEPK08tG1XI2r/0w5Ch0HyJF5kPqF9K7EmGjaw== - dependencies: - "@babel/runtime" "^7.7.2" - "@jimp/custom" "^0.16.1" - "@jimp/plugins" "^0.16.1" - "@jimp/types" "^0.16.1" - regenerator-runtime "^0.13.3" - jju@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" @@ -14271,11 +13100,6 @@ jose@^2.0.5: dependencies: "@panva/asn1.js" "^1.0.0" -jpeg-js@0.4.2: - version "0.4.2" - resolved "https://registry.yarnpkg.com/jpeg-js/-/jpeg-js-0.4.2.tgz#8b345b1ae4abde64c2da2fe67ea216a114ac279d" - integrity sha512-+az2gi/hvex7eLTMTlbRLOhH6P6WFdk2ITI8HJsaH2VqYO0I594zXSYEP+tf4FW+8Cy68ScDXoAsQdyQanv3sw== - js-sha3@0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" @@ -14780,20 +13604,6 @@ lit@^2.1.3: lit-element "^3.2.0" lit-html "^2.3.0" -load-bmfont@^1.3.1, load-bmfont@^1.4.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/load-bmfont/-/load-bmfont-1.4.1.tgz#c0f5f4711a1e2ccff725a7b6078087ccfcddd3e9" - integrity sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA== - dependencies: - buffer-equal "0.0.1" - mime "^1.3.4" - parse-bmfont-ascii "^1.0.3" - parse-bmfont-binary "^1.0.5" - parse-bmfont-xml "^1.1.4" - phin "^2.9.1" - xhr "^2.0.1" - xtend "^4.0.0" - load-json-file@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" @@ -14915,11 +13725,6 @@ lodash.isboolean@^3.0.3: resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= -lodash.isfunction@^3.0.9: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz#06de25df4db327ac931981d1bdb067e5af68d051" - integrity sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw== - lodash.isinteger@^4.0.4: version "4.0.4" resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" @@ -15705,7 +14510,7 @@ mime-types@^2.1.25, mime-types@^2.1.27, mime-types@^2.1.30, mime-types@^2.1.35, dependencies: mime-db "1.52.0" -mime@1.6.0, mime@^1.3.4: +mime@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== @@ -15730,7 +14535,7 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -mimic-fn@^3.0.0, mimic-fn@^3.1.0: +mimic-fn@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-3.1.0.tgz#65755145bbf3e36954b949c16450427451d5ca74" integrity sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ== @@ -15848,14 +14653,6 @@ minipass-sized@^1.0.3: dependencies: minipass "^3.0.0" -minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" - integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== - dependencies: - safe-buffer "^5.1.2" - yallist "^3.0.0" - minipass@^3.0.0, minipass@^3.1.1: version "3.1.3" resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.3.tgz#7d42ff1f39635482e15f9cdb53184deebd5815fd" @@ -15870,13 +14667,6 @@ minipass@^3.1.6: dependencies: yallist "^4.0.0" -minizlib@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" - integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== - dependencies: - minipass "^2.9.0" - minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" @@ -15914,7 +14704,7 @@ mkdirp@0.3.0: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" integrity sha1-G79asbqCevI1dRQ0kEJkVfSB/h4= -mkdirp@^0.5.0, mkdirp@^0.5.1: +mkdirp@^0.5.1: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== @@ -16066,15 +14856,6 @@ ncp@^2.0.0: resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" integrity sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA== -needle@^2.2.1: - version "2.6.0" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.6.0.tgz#24dbb55f2509e2324b4a99d61f413982013ccdbe" - integrity sha512-KKYdza4heMsEfSWD7VPUIz3zX2XDwOyX2d+geb4vrERZMT5RMU6ujjaD+I5Yr54uZxQ2w6XRTAhHBbSCyovZBg== - dependencies: - debug "^3.2.6" - iconv-lite "^0.4.4" - sax "^1.2.4" - negotiator@0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" @@ -16111,45 +14892,34 @@ next-i18next@^13.1.5: hoist-non-react-statics "^3.3.2" i18next-fs-backend "^2.1.1" -next-on-netlify@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/next-on-netlify/-/next-on-netlify-2.9.0.tgz#9d66fc65802e26d41bd7fcc5eb9a73326708a5e2" - integrity sha512-1M93P6VEvsDCzpx2bt6lRmnoLTd47YbVIrH6O2xb2Cptd6bJF+uACP3tdtD7Jv7HrCkfMqbGYalEeHAc/0RwKA== - dependencies: - "@sls-next/lambda-at-edge" "^1.5.2" - chokidar "^3.5.1" - commander "^6.0.0" - debounce-fn "^4.0.0" - fs-extra "^9.0.1" - jimp "^0.16.1" - next-redux-wrapper@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/next-redux-wrapper/-/next-redux-wrapper-8.1.0.tgz#d9c135f1ceeb2478375bdacd356eb9db273d3a07" integrity sha512-2hIau0hcI6uQszOtrvAFqgc0NkZegKYhBB7ZAKiG3jk7zfuQb4E7OV9jfxViqqojh3SEHdnFfPkN9KErttUKuw== -next@13: - version "13.5.6" - resolved "https://registry.yarnpkg.com/next/-/next-13.5.6.tgz#e964b5853272236c37ce0dd2c68302973cf010b1" - integrity sha512-Y2wTcTbO4WwEsVb4A8VSnOsG1I9ok+h74q0ZdxkwM3EODqrs4pasq7O0iUxbcS9VtWMicG7f3+HAj0r1+NtKSw== +next@^14.0.4: + version "14.0.4" + resolved "https://registry.yarnpkg.com/next/-/next-14.0.4.tgz#bf00b6f835b20d10a5057838fa2dfced1d0d84dc" + integrity sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA== dependencies: - "@next/env" "13.5.6" + "@next/env" "14.0.4" "@swc/helpers" "0.5.2" busboy "1.6.0" caniuse-lite "^1.0.30001406" + graceful-fs "^4.2.11" postcss "8.4.31" styled-jsx "5.1.1" watchpack "2.4.0" optionalDependencies: - "@next/swc-darwin-arm64" "13.5.6" - "@next/swc-darwin-x64" "13.5.6" - "@next/swc-linux-arm64-gnu" "13.5.6" - "@next/swc-linux-arm64-musl" "13.5.6" - "@next/swc-linux-x64-gnu" "13.5.6" - "@next/swc-linux-x64-musl" "13.5.6" - "@next/swc-win32-arm64-msvc" "13.5.6" - "@next/swc-win32-ia32-msvc" "13.5.6" - "@next/swc-win32-x64-msvc" "13.5.6" + "@next/swc-darwin-arm64" "14.0.4" + "@next/swc-darwin-x64" "14.0.4" + "@next/swc-linux-arm64-gnu" "14.0.4" + "@next/swc-linux-arm64-musl" "14.0.4" + "@next/swc-linux-x64-gnu" "14.0.4" + "@next/swc-linux-x64-musl" "14.0.4" + "@next/swc-win32-arm64-msvc" "14.0.4" + "@next/swc-win32-ia32-msvc" "14.0.4" + "@next/swc-win32-x64-msvc" "14.0.4" nice-try@^1.0.4: version "1.0.5" @@ -16202,11 +14972,6 @@ node-forge@^1.3.1: resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== -node-gyp-build@^4.2.2: - version "4.2.3" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.2.3.tgz#ce6277f853835f718829efb47db20f3e4d9c4739" - integrity sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg== - node-gyp@^9.3.0: version "9.3.1" resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-9.3.1.tgz#1e19f5f290afcc9c46973d68700cbd21a96192e4" @@ -16268,22 +15033,6 @@ node-polyglot@^2.2.2: string.prototype.trim "^1.2.6" warning "^4.0.3" -node-pre-gyp@^0.13.0: - version "0.13.0" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz#df9ab7b68dd6498137717838e4f92a33fc9daa42" - integrity sha512-Md1D3xnEne8b/HGVQkZZwV27WUi1ZRuZBij24TNaZwUPU3ZAFtvT6xxJGaUVillfmMKnn5oD1HoGsp2Ftik7SQ== - dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.1" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.2.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4" - node-releases@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01" @@ -16301,14 +15050,6 @@ nopt@1.0.10: dependencies: abbrev "1" -nopt@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.3.tgz#a375cad9d02fd921278d954c2254d5aa57e15e48" - integrity sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg== - dependencies: - abbrev "1" - osenv "^0.1.4" - nopt@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d" @@ -16358,13 +15099,6 @@ normalize-url@^4.1.0: resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== -npm-bundled@^1.0.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b" - integrity sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA== - dependencies: - npm-normalize-package-bin "^1.0.1" - npm-check@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/npm-check/-/npm-check-6.0.1.tgz#0df44d6ed8ab7bb29cf52fb3338b59adb6af1cd6" @@ -16398,20 +15132,6 @@ npm-check@^6.0.1: update-notifier "^5.1.0" xtend "^4.0.2" -npm-normalize-package-bin@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" - integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== - -npm-packlist@^1.1.6: - version "1.4.8" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.8.tgz#56ee6cc135b9f98ad3d51c1c95da22bbb9b2ef3e" - integrity sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A== - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - npm-normalize-package-bin "^1.0.1" - npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -16419,23 +15139,13 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" -npm-run-path@^4.0.0, npm-run-path@^4.0.1: +npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== dependencies: path-key "^3.0.0" -npmlog@^4.0.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" - integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - npmlog@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" @@ -16468,11 +15178,6 @@ num2fraction@^1.2.2: resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" integrity sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg== -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= - nwsapi@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" @@ -16483,7 +15188,7 @@ oauth-sign@~0.9.0: resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== -object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: +object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= @@ -16663,11 +15368,6 @@ oblivious-set@1.0.0: resolved "https://registry.yarnpkg.com/oblivious-set/-/oblivious-set-1.0.0.tgz#c8316f2c2fb6ff7b11b6158db3234c49f733c566" integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw== -omggif@^1.0.10, omggif@^1.0.9: - version "1.0.10" - resolved "https://registry.yarnpkg.com/omggif/-/omggif-1.0.10.tgz#ddaaf90d4a42f532e9e7cb3a95ecdd47f17c7b19" - integrity sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw== - on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -16795,19 +15495,11 @@ os-homedir@^1.0.0: resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= -os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: +os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - p-all@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-all/-/p-all-2.1.0.tgz#91419be56b7dee8fe4c5db875d55e0da084244a0" @@ -16949,7 +15641,7 @@ package-json@^6.3.0, package-json@^6.5.0: registry-url "^5.0.0" semver "^6.2.0" -pako@^1.0.5, pako@~1.0.2, pako@~1.0.5: +pako@~1.0.2, pako@~1.0.5: version "1.0.11" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== @@ -16994,24 +15686,6 @@ parse-asn1@^5.0.0, parse-asn1@^5.1.5: pbkdf2 "^3.0.3" safe-buffer "^5.1.1" -parse-bmfont-ascii@^1.0.3: - version "1.0.6" - resolved "https://registry.yarnpkg.com/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz#11ac3c3ff58f7c2020ab22769079108d4dfa0285" - integrity sha1-Eaw8P/WPfCAgqyJ2kHkQjU36AoU= - -parse-bmfont-binary@^1.0.5: - version "1.0.6" - resolved "https://registry.yarnpkg.com/parse-bmfont-binary/-/parse-bmfont-binary-1.0.6.tgz#d038b476d3e9dd9db1e11a0b0e53a22792b69006" - integrity sha1-0Di0dtPp3Z2x4RoLDlOiJ5K2kAY= - -parse-bmfont-xml@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/parse-bmfont-xml/-/parse-bmfont-xml-1.1.4.tgz#015319797e3e12f9e739c4d513872cd2fa35f389" - integrity sha512-bjnliEOmGv3y1aMEfREMBJ9tfL3WR0i0CKPj61DnSLaoxWR3nLrsQrEbCId/8rF4NyRF0cCqisSVXyQYWM+mCQ== - dependencies: - xml-parse-from-string "^1.0.0" - xml2js "^0.4.5" - parse-entities@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8" @@ -17024,11 +15698,6 @@ parse-entities@^2.0.0: is-decimal "^1.0.0" is-hexadecimal "^1.0.0" -parse-headers@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.3.tgz#5e8e7512383d140ba02f0c7aa9f49b4399c92515" - integrity sha512-QhhZ+DCCit2Coi2vmAKbq5RGTRcQUOE2+REgv8vdyu7MnYx2eZztegqtTx99TZ86GTIwqiy3+4nQTWZ2tgmdCA== - parse-json@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" @@ -17133,11 +15802,6 @@ path-to-regexp@^1.8.0: dependencies: isarray "0.0.1" -path-to-regexp@^6.1.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-6.2.0.tgz#f7b3803336104c346889adece614669230645f38" - integrity sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg== - path-type@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" @@ -17185,11 +15849,6 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -phin@^2.9.1: - version "2.9.3" - resolved "https://registry.yarnpkg.com/phin/-/phin-2.9.3.tgz#f9b6ac10a035636fb65dfc576aaaa17b8743125c" - integrity sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA== - picocolors@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" @@ -17247,13 +15906,6 @@ pirates@^4.0.1, pirates@^4.0.4, pirates@^4.0.5: resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== -pixelmatch@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/pixelmatch/-/pixelmatch-4.0.2.tgz#8f47dcec5011b477b67db03c243bc1f3085e8854" - integrity sha1-j0fc7FARtHe2fbA8JDvB8wheiFQ= - dependencies: - pngjs "^3.0.0" - pkg-dir@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" @@ -17282,11 +15934,6 @@ please-upgrade-node@^3.2.0: dependencies: semver-compare "^1.0.0" -pngjs@^3.0.0, pngjs@^3.3.3: - version "3.4.0" - resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" - integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w== - pnp-webpack-plugin@1.6.4: version "1.6.4" resolved "https://registry.yarnpkg.com/pnp-webpack-plugin/-/pnp-webpack-plugin-1.6.4.tgz#c9711ac4dc48a685dabafc86f8b6dd9f8df84149" @@ -18016,7 +16663,7 @@ rc-config-loader@^4.0.0: json5 "^2.2.2" require-from-string "^2.0.2" -rc@^1.2.7, rc@^1.2.8: +rc@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== @@ -18221,13 +16868,6 @@ react-is@^18.0.0, react-is@^18.2.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== -react-leaflet-geojson-patterns@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/react-leaflet-geojson-patterns/-/react-leaflet-geojson-patterns-1.1.0.tgz#a4f0693898ad5203cb131d2a721e171a349b3e6c" - integrity sha512-eEv6Ea1MPrg7vIgZsvKbZSkqUwR4Vcy3TMSKAkrQ/ZZjQ/36z5j42jSERDRzL4v1Z/iME9I6J2g8KqLopUs6Jg== - dependencies: - lodash.isfunction "^3.0.9" - react-lifecycles-compat@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" @@ -18259,13 +16899,6 @@ react-merge-refs@^1.0.0: resolved "https://registry.yarnpkg.com/react-merge-refs/-/react-merge-refs-1.1.0.tgz#73d88b892c6c68cbb7a66e0800faa374f4c38b06" integrity sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ== -react-native-get-random-values@^1.4.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/react-native-get-random-values/-/react-native-get-random-values-1.5.1.tgz#f335a37c09a4892deaf40187e73a888e14e82d60" - integrity sha512-L76sTcz3jdFmc7Gn41SHOxCioYY3m4rtuWEUI6X8IeWVmkflHXrSyAObOW4eNTM5qytH+45pgMCVKJzfB/Ik4A== - dependencies: - fast-base64-decode "^1.0.0" - react-overlays@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/react-overlays/-/react-overlays-5.1.1.tgz#2e7cf49744b56537c7828ccb94cfc63dd778ae4f" @@ -18414,7 +17047,7 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -18469,13 +17102,6 @@ readdirp@^3.5.0, readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -readdirp@~3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" - integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ== - dependencies: - picomatch "^2.2.1" - recast@^0.19.0: version "0.19.1" resolved "https://registry.yarnpkg.com/recast/-/recast-0.19.1.tgz#555f3612a5a10c9f44b9a923875c51ff775de6c8" @@ -18572,7 +17198,7 @@ regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.7: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== -regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4: +regenerator-runtime@^0.13.4: version "0.13.7" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew== @@ -19043,13 +17669,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-pluginutils@^2.8.2: - version "2.8.2" - resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" - integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== - dependencies: - estree-walker "^0.6.1" - router@^1.3.1: version "1.3.6" resolved "https://registry.yarnpkg.com/router/-/router-1.3.6.tgz#35302dc8d69f75b00797d618d92d6c9fb35604bf" @@ -19212,11 +17831,6 @@ sass@^1.49.0: immutable "^4.0.0" source-map-js ">=0.6.2 <2.0.0" -sax@>=0.6.0, sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - saxes@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" @@ -19313,7 +17927,7 @@ semver-diff@^3.1.1: dependencies: semver "^6.3.0" -"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0, semver@^5.7.1: +"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.6.0, semver@^5.7.1: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== @@ -19444,7 +18058,7 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" -set-blocking@^2.0.0, set-blocking@~2.0.0: +set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= @@ -19953,23 +18567,6 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -string-width@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -"string-width@^1.0.2 || 2", string-width@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -19979,6 +18576,14 @@ string-width@^1.0.1: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" +string-width@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + string-width@^4.1.0, string-width@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" @@ -20142,7 +18747,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^3.0.0, strip-ansi@^3.0.1: +strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= @@ -20390,19 +18995,6 @@ tar-stream@^2.2.0: inherits "^2.0.3" readable-stream "^3.1.1" -tar@^4: - version "4.4.13" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" - integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA== - dependencies: - chownr "^1.1.1" - fs-minipass "^1.2.5" - minipass "^2.8.6" - minizlib "^1.2.1" - mkdirp "^0.5.0" - safe-buffer "^5.1.2" - yallist "^3.0.3" - tar@^6.0.2: version "6.1.0" resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.0.tgz#d1724e9bcc04b977b18d5c573b333a2207229a83" @@ -20584,16 +19176,6 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" -timm@^1.6.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/timm/-/timm-1.7.1.tgz#96bab60c7d45b5a10a8a4d0f0117c6b7e5aff76f" - integrity sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw== - -tinycolor2@^1.4.1: - version "1.4.2" - resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803" - integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA== - tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -20822,7 +19404,7 @@ tsconfig-paths@^4.1.2: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^1.11.1, tslib@^1.8.0, tslib@^1.9.0, tslib@^1.9.3: +tslib@^1.9.0, tslib@^1.9.3: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== @@ -21391,13 +19973,6 @@ usehooks-ts@^2.5.3: resolved "https://registry.yarnpkg.com/usehooks-ts/-/usehooks-ts-2.5.3.tgz#379738eda9dc4058431a6fb6c0252ed7144102b8" integrity sha512-9R6gMpMSjW7twa1wpW67xYWhEB7UGyKj+8/CEN6RHPlJsdv4fmzDe8mB+Dn5ABcTWtFajqqm1uVpSPGTUQ715g== -utif@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/utif/-/utif-2.0.1.tgz#9e1582d9bbd20011a6588548ed3266298e711759" - integrity sha512-Z/S1fNKCicQTf375lIP9G8Sa1H/phcysstNrrSdZKj1f9g58J4NMgb5IgiEZN9/nLMPDwF0W7hdOe9Qq2IYoLg== - dependencies: - pako "^1.0.5" - util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" @@ -21440,7 +20015,7 @@ uuid-browser@^3.1.0: resolved "https://registry.yarnpkg.com/uuid-browser/-/uuid-browser-3.1.0.tgz#0f05a40aef74f9e5951e20efbf44b11871e56410" integrity sha512-dsNgbLaTrd6l3MMxTtouOCFw4CBFc/3a+GgYA2YyrJvyQ1u6q4pcu3ktLoUZ/VN/Aw9WsauazbgsgdfVWgAKQg== -uuid@^3.0.0, uuid@^3.3.2: +uuid@^3.3.2: version "3.4.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== @@ -21928,13 +20503,6 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" -wide-align@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - wide-align@^1.1.2: version "1.1.5" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" @@ -22078,39 +20646,11 @@ xdg-basedir@^4.0.0: resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== -xhr@^2.0.1: - version "2.6.0" - resolved "https://registry.yarnpkg.com/xhr/-/xhr-2.6.0.tgz#b69d4395e792b4173d6b7df077f0fc5e4e2b249d" - integrity sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA== - dependencies: - global "~4.4.0" - is-function "^1.0.1" - parse-headers "^2.0.0" - xtend "^4.0.0" - xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xml-parse-from-string@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/xml-parse-from-string/-/xml-parse-from-string-1.0.1.tgz#a9029e929d3dbcded169f3c6e28238d95a5d5a28" - integrity sha1-qQKekp09vN7RafPG4oI42VpdWig= - -xml2js@^0.4.5: - version "0.4.23" - resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" - integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug== - dependencies: - sax ">=0.6.0" - xmlbuilder "~11.0.0" - -xmlbuilder@~11.0.0: - version "11.0.1" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3" - integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA== - xmlchars@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" @@ -22141,7 +20681,7 @@ yallist@^2.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= -yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: +yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== From 4f79120613adb8b10e36782640019f8d8d8e7a90 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sat, 9 Dec 2023 14:56:19 -0500 Subject: [PATCH 04/21] Get app running in docker compose, update tests for react 18 --- .prettierignore | 4 +- components/auth/hooks.test.ts | 2 +- .../db/testimony/useEditTestimony.test.ts | 5 +- .../usePublishedTestimonyListing.test.ts | 10 +- .../db/testimony/useTestimonyListing.test.ts | 6 +- components/db/useAsync.test.ts | 5 +- components/db/useUpcoming.test.ts | 6 +- .../moderation/moderationComponents.test.tsx | 6 +- infra/Dockerfile.node | 2 +- infra/firebase.compose.json | 3 +- package.json | 10 +- tests/integration/testimony.test.ts | 1 - tests/system/testimonyListing.test.ts | 2 +- yarn.lock | 244 +++++++++--------- 14 files changed, 145 insertions(+), 161 deletions(-) diff --git a/.prettierignore b/.prettierignore index c70a3ad57..66c8c1f60 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,4 +10,6 @@ exportedTestData dist.yml analysis/data dist -*.handlebars \ No newline at end of file +*.handlebars +coverage +storybook-static \ No newline at end of file diff --git a/components/auth/hooks.test.ts b/components/auth/hooks.test.ts index 035a6814f..acbf9f731 100644 --- a/components/auth/hooks.test.ts +++ b/components/auth/hooks.test.ts @@ -1,4 +1,4 @@ -import { act, renderHook } from "@testing-library/react-hooks" +import { act, renderHook } from "@testing-library/react" import { UserCredential } from "firebase/auth" import { nanoid } from "nanoid" import { terminateFirebase, testDb } from "../../tests/testUtils" diff --git a/components/db/testimony/useEditTestimony.test.ts b/components/db/testimony/useEditTestimony.test.ts index 20bfacdf6..5eda77208 100644 --- a/components/db/testimony/useEditTestimony.test.ts +++ b/components/db/testimony/useEditTestimony.test.ts @@ -1,6 +1,6 @@ -import { waitFor } from "@testing-library/react" -import { act, renderHook } from "@testing-library/react-hooks" +import { act, renderHook, waitFor } from "@testing-library/react" import { User } from "firebase/auth" +import { currentGeneralCourt } from "functions/src/shared" import { nanoid } from "nanoid" import { DraftTestimony, Testimony, useEditTestimony } from "." import { @@ -9,7 +9,6 @@ import { signInUser3 } from "../../../tests/integration/common" import { terminateFirebase, testDb } from "../../../tests/testUtils" -import { currentGeneralCourt } from "functions/src/shared" let uid: string let user: User diff --git a/components/db/testimony/usePublishedTestimonyListing.test.ts b/components/db/testimony/usePublishedTestimonyListing.test.ts index 391ff836c..623bfe7b1 100644 --- a/components/db/testimony/usePublishedTestimonyListing.test.ts +++ b/components/db/testimony/usePublishedTestimonyListing.test.ts @@ -1,4 +1,4 @@ -import { renderHook } from "@testing-library/react-hooks" +import { renderHook, waitFor } from "@testing-library/react" import { usePublishedTestimonyListing } from "." import { terminateFirebase, testAuth } from "../../../tests/testUtils" @@ -7,7 +7,7 @@ afterAll(terminateFirebase) /** These tests use data seeded in `tests/seed/seedTestimony` */ describe("usePublishedTestimonyListing", () => { it("lists published testimony for a particular bill", async () => { - const { result, waitFor } = renderHook(() => + const { result } = renderHook(() => usePublishedTestimonyListing({ billId: "H1" }) ) @@ -24,9 +24,7 @@ describe("usePublishedTestimonyListing", () => { it("lists published testimony for a particular user", async () => { const { uid } = await testAuth.getUserByEmail("test3@example.com") - const { result, waitFor } = renderHook(() => - usePublishedTestimonyListing({ uid }) - ) + const { result } = renderHook(() => usePublishedTestimonyListing({ uid })) await waitFor(() => expect(result.current.items.loading).toBeFalsy()) @@ -41,7 +39,7 @@ describe("usePublishedTestimonyListing", () => { it("lists published testimony for a particular user and bill", async () => { const { uid } = await testAuth.getUserByEmail("test3@example.com") - const { result, waitFor } = renderHook(() => + const { result } = renderHook(() => usePublishedTestimonyListing({ billId: "H1", uid }) ) diff --git a/components/db/testimony/useTestimonyListing.test.ts b/components/db/testimony/useTestimonyListing.test.ts index bef1bd95c..40455e085 100644 --- a/components/db/testimony/useTestimonyListing.test.ts +++ b/components/db/testimony/useTestimonyListing.test.ts @@ -1,4 +1,4 @@ -import { act, renderHook } from "@testing-library/react-hooks" +import { act, renderHook, waitFor } from "@testing-library/react" import { useTestimonyListing } from "." import { signInUser2, signInUser3 } from "../../../tests/integration/common" import { terminateFirebase, testDb } from "../../../tests/testUtils" @@ -13,7 +13,7 @@ describe("useTestimonyListing", () => { it("list all testimony for a particular user", async () => { const { uid } = await signInUser3() - const { result, waitFor } = renderHook(() => useTestimonyListing(uid)) + const { result } = renderHook(() => useTestimonyListing(uid)) await waitFor( () => { @@ -43,7 +43,7 @@ describe("useTestimonyListing", () => { it("updates as testimony is added", async () => { const { uid } = await signInUser2() - const { result, waitFor } = renderHook(() => useTestimonyListing(uid)) + const { result } = renderHook(() => useTestimonyListing(uid)) await waitFor(() => expect(result.current.loading).toBeFalsy(), { timeout: 5000 }) diff --git a/components/db/useAsync.test.ts b/components/db/useAsync.test.ts index 05c9581e6..6c29c1ff8 100644 --- a/components/db/useAsync.test.ts +++ b/components/db/useAsync.test.ts @@ -1,5 +1,4 @@ -import { waitFor } from "@testing-library/react" -import { act, renderHook } from "@testing-library/react-hooks" +import { waitFor, act, renderHook } from "@testing-library/react" import { useAsync, useAsyncCallback } from "react-async-hook" const callback1 = async () => 1 @@ -30,7 +29,7 @@ test("useAsync updates when dependencies change", async () => { }) test("useAsyncCallback waits for execute to update when the callback changes", async () => { - const { result, waitFor, rerender } = renderHook( + const { result, rerender } = renderHook( (cb: any) => useAsyncCallback(cb), { initialProps: callback1 diff --git a/components/db/useUpcoming.test.ts b/components/db/useUpcoming.test.ts index 4c781ab67..a9b2e3201 100644 --- a/components/db/useUpcoming.test.ts +++ b/components/db/useUpcoming.test.ts @@ -1,4 +1,4 @@ -import { renderHook } from "@testing-library/react-hooks" +import { renderHook, waitFor } from "@testing-library/react" import { terminateFirebase, testDb, testTimestamp } from "../../tests/testUtils" import { useUpcomingBills } from "./useUpcomingBills" @@ -25,7 +25,7 @@ describe("useUpcomingBills", () => { nextHearingAt: testTimestamp.now() }) - const { waitFor, result } = renderHook(() => useUpcomingBills()) + const { result } = renderHook(() => useUpcomingBills()) await waitFor(() => expect(result.current).not.toHaveLength(0)) }) @@ -37,7 +37,7 @@ describe("useUpcomingEvents", () => { const cutoff = DateTime.utc(2022, 3, 8) mockedMidnight.mockReturnValue(cutoff.toJSDate()) - const { waitFor, result } = renderHook(() => useUpcomingEvents()) + const { result } = renderHook(() => useUpcomingEvents()) await waitFor(() => expect(result.current).not.toHaveLength(0)) }) diff --git a/components/moderation/moderationComponents.test.tsx b/components/moderation/moderationComponents.test.tsx index 7e60cbfd1..2a4a42101 100644 --- a/components/moderation/moderationComponents.test.tsx +++ b/components/moderation/moderationComponents.test.tsx @@ -78,17 +78,17 @@ describe("remove testimony", () => { screen.getByLabelText(/remove/i).parentElement?.parentElement ).toBeInstanceOf(HTMLDivElement) - userEvent.click(screen.getByLabelText(/remove/i)) + await userEvent.click(screen.getByLabelText(/remove/i)) expect(screen.getByLabelText(/remove/i)).toHaveProperty("checked", true) expect(screen.getByLabelText(/allow/i)).toHaveProperty("checked", false) - userEvent.click(screen.getByLabelText(/allow/i)) + await userEvent.click(screen.getByLabelText(/allow/i)) expect(screen.getByLabelText(/remove/i)).toHaveProperty("checked", false) expect(screen.getByLabelText(/Reason/i)).toBeInstanceOf(HTMLTextAreaElement) const textBox = screen.getByLabelText(/Reason/i) - userEvent.type(textBox, "this is a textBox") + await userEvent.type(textBox, "this is a textBox") cleanup() }) diff --git a/infra/Dockerfile.node b/infra/Dockerfile.node index 5c949a5b3..3e11e37c6 100644 --- a/infra/Dockerfile.node +++ b/infra/Dockerfile.node @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:18-alpine USER root RUN apk update && apk add curl diff --git a/infra/firebase.compose.json b/infra/firebase.compose.json index c1bc6100e..2d4b8123a 100644 --- a/infra/firebase.compose.json +++ b/infra/firebase.compose.json @@ -6,7 +6,8 @@ }, "functions": { "predeploy": ["yarn build:functions"], - "source": "functions" + "source": "functions", + "runtime": "nodejs16" }, "firestore": { "rules": "firestore.rules", diff --git a/package.json b/package.json index 491aa1aa8..9336dae60 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "backfill-user-nf": "ts-node -P tsconfig.script.json scripts/firebase-admin/backfillNotificationFrequency.ts --swc" }, "engines": { - "node": "18" + "node": ">=16" }, "browserslist": { "production": [ @@ -75,6 +75,7 @@ "@react-aria/ssr": "^3.2.0", "@react-aria/utils": "^3.13.1", "@reduxjs/toolkit": "^1.8.3", + "@testing-library/dom": "^9.3.3", "@types/papaparse": "^5.3.5", "@types/react": "^18.2.43", "@types/react-dom": "^18.2.17", @@ -140,10 +141,9 @@ "@storybook/manager-webpack5": "^6.5.12", "@storybook/react": "^6.5.12", "@storybook/testing-library": "^0.0.13", - "@testing-library/jest-dom": "^5.16.2", - "@testing-library/react": "^12.1.3", - "@testing-library/react-hooks": "^7.0.2", - "@testing-library/user-event": "^12.1.10", + "@testing-library/jest-dom": "^6.1.5", + "@testing-library/react": "^14.1.2", + "@testing-library/user-event": "^14.5.1", "@tsconfig/node16": "^1.0.2", "@types/diff": "^5.0.2", "@types/dompurify": "^2.3.3", diff --git a/tests/integration/testimony.test.ts b/tests/integration/testimony.test.ts index 8ffb02c7e..d00477b73 100644 --- a/tests/integration/testimony.test.ts +++ b/tests/integration/testimony.test.ts @@ -16,7 +16,6 @@ import { signInUser1, signInUser2 } from "./common" -import { renderHook } from "@testing-library/react-hooks" type BaseTestimony = { billId: string diff --git a/tests/system/testimonyListing.test.ts b/tests/system/testimonyListing.test.ts index ecacd2f5c..4f33ce7f4 100644 --- a/tests/system/testimonyListing.test.ts +++ b/tests/system/testimonyListing.test.ts @@ -1,4 +1,4 @@ -import { renderHook, act } from "@testing-library/react-hooks" +import { renderHook, act } from "@testing-library/react" import { TestimonyFilterOptions, usePublishedTestimonyListing diff --git a/yarn.lock b/yarn.lock index db0e2937a..8fdc2e666 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@adobe/css-tools@^4.3.1": + version "4.3.2" + resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.2.tgz#a6abc715fb6884851fca9dad37fc34739a04fd11" + integrity sha512-DA5a1C0gD/pLOvhv33YMrbf2FK3oUzwNl9oOJqE4XVjuEtt6XIakRcsd7eLiOSPkp1kTRQGICTA8cKra/vFbjw== + "@alexjball/react-instantsearch-hooks-web@~6.29.1": version "6.29.1" resolved "https://registry.yarnpkg.com/@alexjball/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.29.1.tgz#3768239d6d94e6b2170b26403c06fbfd69d36b7b" @@ -4547,10 +4552,10 @@ dependencies: defer-to-connect "^1.0.1" -"@testing-library/dom@^8.0.0": - version "8.11.3" - resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.11.3.tgz#38fd63cbfe14557021e88982d931e33fb7c1a808" - integrity sha512-9LId28I+lx70wUiZjLvi1DB/WT2zGOxUh46glrSNMaWVx849kKAluezVzZrXJfTKKoQTmEOutLes/bHg4Bj3aA== +"@testing-library/dom@^8.3.0": + version "8.17.1" + resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.17.1.tgz#2d7af4ff6dad8d837630fecd08835aee08320ad7" + integrity sha512-KnH2MnJUzmFNPW6RIKfd+zf2Wue8mEKX0M3cpX6aKl5ZXrJM1/c/Pc8c2xDNYQCnJO48Sm5ITbMXgqTr3h4jxQ== dependencies: "@babel/code-frame" "^7.10.4" "@babel/runtime" "^7.12.5" @@ -4561,61 +4566,42 @@ lz-string "^1.4.4" pretty-format "^27.0.2" -"@testing-library/dom@^8.3.0": - version "8.17.1" - resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.17.1.tgz#2d7af4ff6dad8d837630fecd08835aee08320ad7" - integrity sha512-KnH2MnJUzmFNPW6RIKfd+zf2Wue8mEKX0M3cpX6aKl5ZXrJM1/c/Pc8c2xDNYQCnJO48Sm5ITbMXgqTr3h4jxQ== +"@testing-library/dom@^9.0.0", "@testing-library/dom@^9.3.3": + version "9.3.3" + resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-9.3.3.tgz#108c23a5b0ef51121c26ae92eb3179416b0434f5" + integrity sha512-fB0R+fa3AUqbLHWyxXa2kGVtf1Fe1ZZFr0Zp6AIbIAzXb2mKbEXl+PCQNUOaq5lbTab5tfctfXRNsWXxa2f7Aw== dependencies: "@babel/code-frame" "^7.10.4" "@babel/runtime" "^7.12.5" - "@types/aria-query" "^4.2.0" - aria-query "^5.0.0" + "@types/aria-query" "^5.0.1" + aria-query "5.1.3" chalk "^4.1.0" dom-accessibility-api "^0.5.9" - lz-string "^1.4.4" + lz-string "^1.5.0" pretty-format "^27.0.2" -"@testing-library/jest-dom@^5.16.2": - version "5.16.2" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.2.tgz#f329b36b44aa6149cd6ced9adf567f8b6aa1c959" - integrity sha512-6ewxs1MXWwsBFZXIk4nKKskWANelkdUehchEOokHsN8X7c2eKXGw+77aRV63UU8f/DTSVUPLaGxdrj4lN7D/ug== +"@testing-library/jest-dom@^6.1.5": + version "6.1.5" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-6.1.5.tgz#0a635d0ad4a1a880089d967299d94e9cfc81fbe1" + integrity sha512-3y04JLW+EceVPy2Em3VwNr95dOKqA8DhR0RJHhHKDZNYXcVXnEK7WIrpj4eYU8SVt/qYZ2aRWt/WgQ+grNES8g== dependencies: + "@adobe/css-tools" "^4.3.1" "@babel/runtime" "^7.9.2" - "@types/testing-library__jest-dom" "^5.9.1" aria-query "^5.0.0" chalk "^3.0.0" - css "^3.0.0" css.escape "^1.5.1" dom-accessibility-api "^0.5.6" lodash "^4.17.15" redent "^3.0.0" -"@testing-library/react-hooks@^7.0.2": - version "7.0.2" - resolved "https://registry.yarnpkg.com/@testing-library/react-hooks/-/react-hooks-7.0.2.tgz#3388d07f562d91e7f2431a4a21b5186062ecfee0" - integrity sha512-dYxpz8u9m4q1TuzfcUApqi8iFfR6R0FaMbr2hjZJy1uC8z+bO/K4v8Gs9eogGKYQop7QsrBTFkv/BCF7MzD2Cg== - dependencies: - "@babel/runtime" "^7.12.5" - "@types/react" ">=16.9.0" - "@types/react-dom" ">=16.9.0" - "@types/react-test-renderer" ">=16.9.0" - react-error-boundary "^3.1.0" - -"@testing-library/react@^12.1.3": - version "12.1.3" - resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-12.1.3.tgz#ef26c5f122661ea9b6f672b23dc6b328cadbbf26" - integrity sha512-oCULRXWRrBtC9m6G/WohPo1GLcLesH7T4fuKzRAKn1CWVu9BzXtqLXDDTA6KhFNNtRwLtfSMr20HFl+Qrdrvmg== - dependencies: - "@babel/runtime" "^7.12.5" - "@testing-library/dom" "^8.0.0" - "@types/react-dom" "*" - -"@testing-library/user-event@^12.1.10": - version "12.6.2" - resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-12.6.2.tgz#accce6be0353be38e07bce55b31232d89ae10bc2" - integrity sha512-4OsiTSo2vbQm+eOnm1un8b9i2Re4mn+D7d7ET6HXtzYKY7vPe3O01iYKRmSW9vS5mNrQcCLwvRhVq1gWs5YGKA== +"@testing-library/react@^14.1.2": + version "14.1.2" + resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-14.1.2.tgz#a2b9e9ee87721ec9ed2d7cfc51cc04e474537c32" + integrity sha512-z4p7DVBTPjKM5qDZ0t5ZjzkpSNb+fZy1u6bzO7kk8oeGagpPCAtgh4cx1syrfp7a+QWkM021jGqjJaxJJnXAZg== dependencies: "@babel/runtime" "^7.12.5" + "@testing-library/dom" "^9.0.0" + "@types/react-dom" "^18.0.0" "@testing-library/user-event@^13.2.1": version "13.5.0" @@ -4624,6 +4610,11 @@ dependencies: "@babel/runtime" "^7.12.5" +"@testing-library/user-event@^14.5.1": + version "14.5.1" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.5.1.tgz#27337d72046d5236b32fd977edee3f74c71d332f" + integrity sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg== + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" @@ -4659,6 +4650,11 @@ resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-4.2.1.tgz#78b5433344e2f92e8b306c06a5622c50c245bf6b" integrity sha512-S6oPal772qJZHoRZLFc/XoZW2gFvwXusYUmXPXkgxJLuEk2vOt7jc4Yo6z/vtI0EBkbPBVrJJ0B+prLIKiWqHg== +"@types/aria-query@^5.0.1": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.4.tgz#1a31c3d378850d2778dabb6374d036dcba4ba708" + integrity sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw== + "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": version "7.1.18" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.18.tgz#1a29abcc411a9c05e2094c98f9a1b7da6cdf49f8" @@ -4890,14 +4886,6 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@*": - version "26.0.20" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.20.tgz#cd2f2702ecf69e86b586e1f5223a60e454056307" - integrity sha512-9zi2Y+5USJRxd0FsahERhBwlcvFh6D2GLQnY2FH2BzK8J9s9omvNHIbvABwIluXa0fD8XVKMLTO0aOEuUfACAA== - dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" - "@types/jest@^27.4.0": version "27.4.0" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.4.0.tgz#037ab8b872067cae842a320841693080f9cb84ed" @@ -5090,14 +5078,7 @@ dependencies: "@types/react" "*" -"@types/react-dom@*", "@types/react-dom@>=16.9.0": - version "17.0.11" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.11.tgz#e1eadc3c5e86bdb5f7684e00274ae228e7bcc466" - integrity sha512-f96K3k+24RaLGVu/Y2Ng3e1EbZ8/cVJvypZWd7cy0ofCBaf2lcM46xNhycMZ2xGwbBjRql7hOlZ+e2WlJ5MH3Q== - dependencies: - "@types/react" "*" - -"@types/react-dom@^18.2.17": +"@types/react-dom@^18.0.0", "@types/react-dom@^18.2.17": version "18.2.17" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.17.tgz#375c55fab4ae671bd98448dcfa153268d01d6f64" integrity sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg== @@ -5111,13 +5092,6 @@ dependencies: "@types/react" "*" -"@types/react-test-renderer@>=16.9.0": - version "17.0.1" - resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-17.0.1.tgz#3120f7d1c157fba9df0118dae20cb0297ee0e06b" - integrity sha512-3Fi2O6Zzq/f3QR9dRnlnHso9bMl7weKCviFmfF6B4LS1Uat6Hkm15k0ZAQuDz+UBq6B3+g+NM6IT2nr5QgPzCw== - dependencies: - "@types/react" "*" - "@types/react-transition-group@^4.4.0", "@types/react-transition-group@^4.4.1": version "4.4.4" resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.4.tgz#acd4cceaa2be6b757db61ed7b432e103242d163e" @@ -5149,15 +5123,6 @@ "@types/scheduler" "*" csstype "^3.0.2" -"@types/react@>=16.9.0": - version "17.0.39" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.39.tgz#d0f4cde092502a6db00a1cded6e6bf2abb7633ce" - integrity sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug== - dependencies: - "@types/prop-types" "*" - "@types/scheduler" "*" - csstype "^3.0.2" - "@types/react@^18.2.43": version "18.2.43" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.43.tgz#c58e5abe241e6f71f60ce30e2a9aceb9d3a2a374" @@ -5204,13 +5169,6 @@ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.8.tgz#b94a4391c85666c7b73299fd3ad79d4faa435310" integrity sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ== -"@types/testing-library__jest-dom@^5.9.1": - version "5.9.5" - resolved "https://registry.yarnpkg.com/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.9.5.tgz#5bf25c91ad2d7b38f264b12275e5c92a66d849b0" - integrity sha512-ggn3ws+yRbOHog9GxnXiEZ/35Mow6YtPZpd7Z5mKDeZS/o7zx3yAle0ov/wjhVB5QT4N2Dt+GNoGCdqkBGCajQ== - dependencies: - "@types/jest" "*" - "@types/trusted-types@*", "@types/trusted-types@^2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756" @@ -6045,6 +6003,13 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +aria-query@5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.1.3.tgz#19db27cd101152773631396f7a95a3b58c22c35e" + integrity sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ== + dependencies: + deep-equal "^2.0.5" + aria-query@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c" @@ -8229,15 +8194,6 @@ css.escape@^1.5.1: resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" integrity sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s= -css@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/css/-/css-3.0.0.tgz#4447a4d58fdd03367c516ca9f64ae365cee4aa5d" - integrity sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ== - dependencies: - inherits "^2.0.4" - source-map "^0.6.1" - source-map-resolve "^0.6.0" - cssesc@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -8410,6 +8366,30 @@ dedent@^0.7.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= +deep-equal@^2.0.5: + version "2.2.3" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.3.tgz#af89dafb23a396c7da3e862abc0be27cf51d56e1" + integrity sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.5" + es-get-iterator "^1.1.3" + get-intrinsic "^1.2.2" + is-arguments "^1.1.1" + is-array-buffer "^3.0.2" + is-date-object "^1.0.5" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + isarray "^2.0.5" + object-is "^1.1.5" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.1" + side-channel "^1.0.4" + which-boxed-primitive "^1.0.2" + which-collection "^1.0.1" + which-typed-array "^1.1.13" + deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -8645,11 +8625,6 @@ didyoumean@^1.2.1: resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== -diff-sequences@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" - integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== - diff-sequences@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" @@ -9163,6 +9138,21 @@ es-get-iterator@^1.0.2: is-string "^1.0.5" isarray "^2.0.5" +es-get-iterator@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6" + integrity sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + has-symbols "^1.0.3" + is-arguments "^1.1.1" + is-map "^2.0.2" + is-set "^2.0.2" + is-string "^1.0.7" + isarray "^2.0.5" + stop-iteration-iterator "^1.0.0" + es-iterator-helpers@^1.0.12, es-iterator-helpers@^1.0.15: version "1.0.15" resolved "https://registry.yarnpkg.com/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz#bd81d275ac766431d19305923707c3efd9f1ae40" @@ -11857,6 +11847,15 @@ internal-slot@^1.0.3: has "^1.0.3" side-channel "^1.0.4" +internal-slot@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" + integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== + dependencies: + get-intrinsic "^1.2.2" + hasown "^2.0.0" + side-channel "^1.0.4" + internal-slot@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" @@ -11935,7 +11934,7 @@ is-alphanumerical@^1.0.0: is-alphabetical "^1.0.0" is-decimal "^1.0.0" -is-arguments@^1.1.0: +is-arguments@^1.1.0, is-arguments@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA== @@ -12668,16 +12667,6 @@ jest-config@^27.5.1: slash "^3.0.0" strip-json-comments "^3.1.1" -jest-diff@^26.0.0: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" - integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== - dependencies: - chalk "^4.0.0" - diff-sequences "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - jest-diff@^27.0.0, jest-diff@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" @@ -12731,11 +12720,6 @@ jest-environment-node@^27.5.1: jest-mock "^27.5.1" jest-util "^27.5.1" -jest-get-type@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" - integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== - jest-get-type@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" @@ -13905,6 +13889,11 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.4.4.tgz#c0d8eaf36059f705796e1e344811cf4c498d3a26" integrity sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY= +lz-string@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" + integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== + magic-string@^0.30.0: version "0.30.2" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.2.tgz#dcf04aad3d0d1314bc743d076c50feb29b3c7aca" @@ -15237,6 +15226,14 @@ object-inspect@^1.9.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== +object-is@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac" + integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" @@ -16154,16 +16151,6 @@ pretty-error@^4.0.0: lodash "^4.17.20" renderkid "^3.0.0" -pretty-format@^26.0.0, pretty-format@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" - integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== - dependencies: - "@jest/types" "^26.6.2" - ansi-regex "^5.0.0" - ansi-styles "^4.0.0" - react-is "^17.0.1" - pretty-format@^27.0.0, pretty-format@^27.0.2, pretty-format@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" @@ -16791,7 +16778,7 @@ react-element-to-jsx-string@^14.3.4: is-plain-object "5.0.0" react-is "17.0.2" -react-error-boundary@^3.1.0, react-error-boundary@^3.1.4: +react-error-boundary@^3.1.4: version "3.1.4" resolved "https://registry.yarnpkg.com/react-error-boundary/-/react-error-boundary-3.1.4.tgz#255db92b23197108757a888b01e5b729919abde0" integrity sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA== @@ -18296,14 +18283,6 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-resolve@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.6.0.tgz#3d9df87e236b53f16d01e58150fc7711138e5ed2" - integrity sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - source-map-support@^0.5.16, source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.20: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" @@ -18471,6 +18450,13 @@ statuses@2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= +stop-iteration-iterator@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz#6a60be0b4ee757d1ed5254858ec66b10c49285e4" + integrity sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ== + dependencies: + internal-slot "^1.0.4" + store2@^2.12.0: version "2.14.2" resolved "https://registry.yarnpkg.com/store2/-/store2-2.14.2.tgz#56138d200f9fe5f582ad63bc2704dbc0e4a45068" From e7d6dd7cc5aa622704b3a28a5af07b4a6a3dd9f2 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sun, 10 Dec 2023 14:34:39 -0500 Subject: [PATCH 05/21] runs prettier --- components/db/useAsync.test.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/db/useAsync.test.ts b/components/db/useAsync.test.ts index 6c29c1ff8..55d9bc464 100644 --- a/components/db/useAsync.test.ts +++ b/components/db/useAsync.test.ts @@ -29,12 +29,9 @@ test("useAsync updates when dependencies change", async () => { }) test("useAsyncCallback waits for execute to update when the callback changes", async () => { - const { result, rerender } = renderHook( - (cb: any) => useAsyncCallback(cb), - { - initialProps: callback1 - } - ) + const { result, rerender } = renderHook((cb: any) => useAsyncCallback(cb), { + initialProps: callback1 + }) act(() => void result.current.execute()) await waitFor(() => expect(result.current.result).toBe(1)) From 93e1b2ff97eb84bcd449d91b0f73d510c3935f2a Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Sun, 10 Dec 2023 15:11:30 -0500 Subject: [PATCH 06/21] runs type-react-codemod for react18 upgrade --- components/ContactInfo/ContactInfo.tsx | 2 +- components/CurrentCommitteeCard/CurrentCommitteeCard.tsx | 4 ++-- components/FollowingCard/FollowingCard.tsx | 2 +- components/LoadingPage.tsx | 4 ++-- components/Navlink.tsx | 8 ++++---- components/ProfileCard.tsx | 2 +- components/ProfilePage/SelectLegislators.tsx | 6 +++--- components/SocialIconLink/SocialIconLink.tsx | 2 +- components/Tabs/Tabs.tsx | 4 ++-- components/Tag/Tag.tsx | 2 +- components/auth/SignOut.tsx | 2 +- components/auth/service.tsx | 2 +- components/bill/BillNumber.tsx | 2 +- components/bill/Cosponsors.tsx | 2 +- components/bill/LobbyingTable.tsx | 2 +- components/bill/SponsorsAndCommittees.tsx | 6 +++--- components/layout.tsx | 4 ++-- components/links.tsx | 4 ++-- components/providers.tsx | 2 +- components/publish/ProgressBar.tsx | 4 ++-- components/search/NoResults.tsx | 2 +- components/search/bills/BillSearch.tsx | 2 +- components/service.tsx | 8 ++++---- .../testimony/TestimonyDetailPage/PolicyActions.tsx | 4 ++-- .../testimony/TestimonyDetailPage/RevisionHistory.tsx | 2 +- .../testimony/TestimonyDetailPage/TestimonyDetail.tsx | 6 ++---- .../testimony/TestimonyDetailPage/TestimonyDetailPage.tsx | 2 +- components/types.ts | 2 +- 28 files changed, 46 insertions(+), 48 deletions(-) diff --git a/components/ContactInfo/ContactInfo.tsx b/components/ContactInfo/ContactInfo.tsx index d3a80907f..afd5dfa8d 100644 --- a/components/ContactInfo/ContactInfo.tsx +++ b/components/ContactInfo/ContactInfo.tsx @@ -27,7 +27,7 @@ interface Props { icons?: ReactNode } -export const ContactInfo: FC = ({ +export const ContactInfo: FC> = ({ phoneNumber, email, website, diff --git a/components/CurrentCommitteeCard/CurrentCommitteeCard.tsx b/components/CurrentCommitteeCard/CurrentCommitteeCard.tsx index 470f9b1a7..bc5dde847 100644 --- a/components/CurrentCommitteeCard/CurrentCommitteeCard.tsx +++ b/components/CurrentCommitteeCard/CurrentCommitteeCard.tsx @@ -25,10 +25,10 @@ const Head = styled(BootstrapCard.Header)` font-size: 22px; ` -export const CurrentCommitteeCard: FC<{ +export const CurrentCommitteeCard: FC = ({ committee, chamber }) => ( +}>> = ({ committee, chamber }) => ( Committee} diff --git a/components/FollowingCard/FollowingCard.tsx b/components/FollowingCard/FollowingCard.tsx index 60d4395d4..68a9b7366 100644 --- a/components/FollowingCard/FollowingCard.tsx +++ b/components/FollowingCard/FollowingCard.tsx @@ -32,7 +32,7 @@ const Item = styled.div` padding: 9px 22px; ` -export const FollowingCard: FC = ({ organizations }) => { +export const FollowingCard: FC> = ({ organizations }) => { const { t } = useTranslation("common") return ( diff --git a/components/LoadingPage.tsx b/components/LoadingPage.tsx index e9e4093d1..4433d038b 100644 --- a/components/LoadingPage.tsx +++ b/components/LoadingPage.tsx @@ -15,14 +15,14 @@ export const LoadingPage = ({ Page }: { result: PageDataResult - Page: FC + Page: FC> }) => { if (result.data) return if (result.error) return return } -const Error: FC<{ error: DataError }> = ({ error }) => { +const Error: FC> = ({ error }) => { useEffect(() => console.error("Error loading page", error), [error]) let message = "There was a problem loading the page." if (error.message) message = `${message} ${error.message}` diff --git a/components/Navlink.tsx b/components/Navlink.tsx index 0b6e84ebe..61cf79d4e 100644 --- a/components/Navlink.tsx +++ b/components/Navlink.tsx @@ -3,12 +3,12 @@ import { Nav } from "./bootstrap" import * as links from "./links" import { Wrap } from "./links" -export const NavLink: React.FC<{ +export const NavLink: React.FC = ({ href, handleClick, className, children, other }) => { +}>> = ({ href, handleClick, className, children, other }) => { const router = useRouter() return ( @@ -24,10 +24,10 @@ export const NavLink: React.FC<{ ) } -export const ExternalNavLink: React.FC<{ +export const ExternalNavLink: React.FC = ({ href, children, className }) => { +}>> = ({ href, children, className }) => { return ( {children} diff --git a/components/ProfileCard.tsx b/components/ProfileCard.tsx index 7810549a0..59502e835 100644 --- a/components/ProfileCard.tsx +++ b/components/ProfileCard.tsx @@ -7,7 +7,7 @@ interface Props { joinDate: Date } -export const ProfileCard: FC = ({ name, profileImageSrc, joinDate }) => { +export const ProfileCard: FC> = ({ name, profileImageSrc, joinDate }) => { return ( diff --git a/components/ProfilePage/SelectLegislators.tsx b/components/ProfilePage/SelectLegislators.tsx index ad57df899..0c730591a 100644 --- a/components/ProfilePage/SelectLegislators.tsx +++ b/components/ProfilePage/SelectLegislators.tsx @@ -8,7 +8,7 @@ import { import { Loading, Search } from "../legislatorSearch" import { useTranslation } from "next-i18next" -export const SelectLegislators: React.FC = () => { +export const SelectLegislators: React.FC> = () => { const { index, loading: searchLoading } = useMemberSearch(), profile = useProfile(), loading = profile.loading || searchLoading @@ -20,10 +20,10 @@ export const SelectLegislators: React.FC = () => { ) } -const LegislatorForm: React.FC<{ +const LegislatorForm: React.FC = ({ index, profile }) => { +}>> = ({ index, profile }) => { const { t } = useTranslation("editProfile") return ( diff --git a/components/SocialIconLink/SocialIconLink.tsx b/components/SocialIconLink/SocialIconLink.tsx index 420615e37..0252c161b 100644 --- a/components/SocialIconLink/SocialIconLink.tsx +++ b/components/SocialIconLink/SocialIconLink.tsx @@ -17,7 +17,7 @@ interface Props { alt: string } -export const SocialIconLink: FC = ({ href, svgSrc, alt }) => ( +export const SocialIconLink: FC> = ({ href, svgSrc, alt }) => ( {alt} diff --git a/components/Tabs/Tabs.tsx b/components/Tabs/Tabs.tsx index bd0c7a989..656f8209c 100644 --- a/components/Tabs/Tabs.tsx +++ b/components/Tabs/Tabs.tsx @@ -5,7 +5,7 @@ type TabsProps = { tabs: { label: string index: number - Component: FC<{ index: number }> + Component: FC> }[] selectedTab: number onClick: (index: number) => void @@ -21,7 +21,7 @@ type TabsProps = { * @param onClick Function to set the active tab * @param orientation Tab orientation Vertical | Horizontal */ -const Tabs: FC = ({ +const Tabs: FC> = ({ className = "tabs-component", tabs = [], selectedTab = 0, diff --git a/components/Tag/Tag.tsx b/components/Tag/Tag.tsx index a013481af..ac5a1efbe 100644 --- a/components/Tag/Tag.tsx +++ b/components/Tag/Tag.tsx @@ -29,6 +29,6 @@ const Wrapper = styled.span<{ chamber: Chamber }>` chamber === "joint" ? "border: 1px solid var(--bs-gray-dark)" : null}; ` -export const Tag: FC = ({ chamber }) => ( +export const Tag: FC> = ({ chamber }) => ( {chamber} ) diff --git a/components/auth/SignOut.tsx b/components/auth/SignOut.tsx index a543a10c6..f04becf4e 100644 --- a/components/auth/SignOut.tsx +++ b/components/auth/SignOut.tsx @@ -6,7 +6,7 @@ import { useTranslation } from "next-i18next" /** Signs out the current user. Pages that are wrapped in `requireAuth` will * redirect the user to the login page. */ -const SignOut: React.FC = props => { +const SignOut: React.FC> = props => { const { t } = useTranslation("auth") return ( + + ) +} + +export default meta diff --git a/stories_hold/atoms/ValuePlaqu.stories.tsx b/stories_hold/atoms/ValuePlaqu.stories.tsx new file mode 100644 index 000000000..cca719600 --- /dev/null +++ b/stories_hold/atoms/ValuePlaqu.stories.tsx @@ -0,0 +1,38 @@ +import { ComponentStory } from "@storybook/react" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" +import { ValuePlaque } from "components/Policies/ValuePlaque" + +export default createMeta({ + title: "Atoms/Plaque", + component: ValuePlaque, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + src: "handShake.jpg", + alt: "hand shake", + title: "Humility" +} + +Primary.storyName = "ValuePlaque" diff --git a/stories_hold/buttons/DropdownButton.stories.tsx b/stories_hold/buttons/DropdownButton.stories.tsx new file mode 100644 index 000000000..43156dd35 --- /dev/null +++ b/stories_hold/buttons/DropdownButton.stories.tsx @@ -0,0 +1,27 @@ +import { createMeta } from "stories/utils" +import DropdownButton from "../../../components/DropdownButton/DropdownButton" +import { ComponentStory } from "@storybook/react" + +// TODO: move into components directory +//const DropdownButton = () =>
TODO
+ +export default createMeta({ + title: "Components/Buttons/DropdownButton", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A12483", + component: DropdownButton +}) + +/* export const Primary = () => */ + +const Template: ComponentStory = ({ + title, + children +}) => { + return {children} +} + +export const Primary = Template.bind({}) +Primary.args = { + children: ["Action 5", "Action 6", "Action 7"] +} diff --git a/stories_hold/buttons/LoadingButton.stories.tsx b/stories_hold/buttons/LoadingButton.stories.tsx new file mode 100644 index 000000000..e17f95697 --- /dev/null +++ b/stories_hold/buttons/LoadingButton.stories.tsx @@ -0,0 +1,76 @@ +/* eslint-disable import/no-anonymous-default-export */ +import { ComponentStory } from "@storybook/react" +import { Image } from "components/bootstrap" +import { useState } from "react" +import { createMeta } from "stories/utils" +import { LoadingButton } from "../../../components/buttons" + +export default createMeta({ + title: "Components/Buttons/LoadingButton", + component: LoadingButton +}) + +const Template: ComponentStory = ({ + children, + disabled = false, + loading = false, + ...rest +}) => { + const [isLoading, setLoading] = useState(loading) + const clickAction = () => { + setLoading(true) + return setTimeout(() => setLoading(false), 2000) + } + return ( + + {children} + + ) +} + +export const Primary = Template.bind({}) +Primary.args = { + children: "Click Me!" +} + +export const Disabled = Template.bind({}) +Disabled.args = { + disabled: true, + children: "Disabled" +} + +export const Loading = Template.bind({}) +Loading.args = { + loading: true, + children: "Loading" +} + +export const Light = Template.bind({}) +Light.args = { + variant: "light", + children: "Light" +} + +export const WithImage = Template.bind({}) +WithImage.args = { + variant: "light", + spinnerProps: { className: "me-4" }, + children: ( + <> + Google + With Image + + ) +} + +// export const LightWithImage = () => ( +// +// +// Loading Button +// +// ) diff --git a/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx b/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx new file mode 100644 index 000000000..455055afe --- /dev/null +++ b/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx @@ -0,0 +1,135 @@ +import { Title } from "@storybook/addon-docs" +import { ComponentStory } from "@storybook/react" +import { Stack } from "react-bootstrap" +import Image from "react-bootstrap/Image" +import { createMeta } from "stories/utils" +import { + PrimaryButtonWithIcon, + PrimaryButtonWithIconProps +} from "./PrimaryButtonWithIcon" + +const Icon = () => + +const pageArgs: PrimaryButtonWithIconProps = { + iconPosition: "left", + label: "Label", + onClick: () => {}, + Icon: , + disabled: false +} + +export default createMeta({ + title: "Molecules/Buttons/PrimaryButtonWithIcon", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A14373", + component: PrimaryButtonWithIcon, + parameters: { + background: "light", + docs: { + page: () => ( + + Primary Button With Icon + + + + + ) + } + }, + args: { + iconPosition: "left", + label: "Label", + onClick: () => {}, + Icon: , + disabled: false + } +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + variant: "primary" +} + +export const Secondary = Template.bind({}) + +Secondary.args = { + variant: "outline-secondary" +} + +export const Tertiary = Template.bind({}) + +Tertiary.args = { + variant: "none" +} + +export const ButtonStack = (args: PrimaryButtonWithIconProps) => { + return ( + + {}} + label="Default" + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + {}} + label="Primary-Disabled" + disabled + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + {}} + label="Outline" + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + + {}} + label="Outline-Primary-Disabled" + disabled + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + {}} + label="Secondary" + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + {}} + label="Outline-Secondary-Disabled" + disabled + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + {}} + label="Tertiary" + className="col-1" + Icon={} + iconPosition={args.iconPosition} + /> + + ) +} diff --git a/stories_hold/buttons/PrimaryButtonWithIcon.tsx b/stories_hold/buttons/PrimaryButtonWithIcon.tsx new file mode 100644 index 000000000..4e88f7c55 --- /dev/null +++ b/stories_hold/buttons/PrimaryButtonWithIcon.tsx @@ -0,0 +1,49 @@ +import React from "react" +import { Button, ButtonProps } from "react-bootstrap" +import styled from "styled-components" + +export type PrimaryButtonWithIconProps = { + label: string + onClick: () => void + Icon?: JSX.Element + iconPosition?: "left" | "right" +} & ButtonProps + +export const PrimaryButtonWithIcon: React.FC = styled( + ({ + label, + onClick, + className, + Icon, + iconPosition, + ...rest + }: PrimaryButtonWithIconProps) => { + return ( + + ) + } +)` + min-width: fit-content; + &:disabled { + background-color: var(--bs-gray-500); + border-color: var(--bs-gray-500); + color: black; + opacity: 1; + } +` diff --git a/stories_hold/buttons/TableButton.stories.tsx b/stories_hold/buttons/TableButton.stories.tsx new file mode 100644 index 000000000..fe8626ad4 --- /dev/null +++ b/stories_hold/buttons/TableButton.stories.tsx @@ -0,0 +1,13 @@ +/* eslint-disable import/no-anonymous-default-export */ +import { TableButton } from "../../../components/buttons" + +export default { + title: "Components/Buttons/TableButton", + component: TableButton +} + +export const Primary = () => ( + + <>Table Button + +) diff --git a/stories_hold/buttons/Tooltip.stories.tsx b/stories_hold/buttons/Tooltip.stories.tsx new file mode 100644 index 000000000..343b371c7 --- /dev/null +++ b/stories_hold/buttons/Tooltip.stories.tsx @@ -0,0 +1,55 @@ +import { ComponentStory } from "@storybook/react" +import { TooltipButton } from "components/buttons" +import { Container, Stack } from "react-bootstrap" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Molecules/Buttons/Tooltip Button", + component: TooltipButton, + parameters: { + docs: { + page: () => ( + + + + + + ) + } + }, + decorators: [ + Story => { + return ( + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + tooltip: "this is a tool tip", + text: "hover", + variant: "primary" +} +export const Secondary = Template.bind({}) + +Secondary.args = { + tooltip: "this is a tool tip", + text: "hover", + variant: "secondary" +} +export const Success = Template.bind({}) + +Success.args = { + tooltip: "this is a tool tip", + text: "hover", + variant: "success" +} diff --git a/stories/emailTemplates/digest.stories.tsx b/stories_hold/emailTemplates/digest.stories.tsx similarity index 100% rename from stories/emailTemplates/digest.stories.tsx rename to stories_hold/emailTemplates/digest.stories.tsx diff --git a/stories/emailTemplates/email-template-renderer.tsx b/stories_hold/emailTemplates/email-template-renderer.tsx similarity index 100% rename from stories/emailTemplates/email-template-renderer.tsx rename to stories_hold/emailTemplates/email-template-renderer.tsx diff --git a/stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx b/stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx new file mode 100644 index 000000000..64e65f725 --- /dev/null +++ b/stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx @@ -0,0 +1,110 @@ +import { ComponentStory } from "@storybook/react" +import { Cosponsors as PreCosponsors } from "components/bill/Cosponsors" +import { BillProps } from "components/bill/types" +import { Bill, BillContent, BillHistory } from "components/db" +import { Timestamp } from "firebase/firestore" +import { ReactNode } from "react" +import { createMeta } from "stories/utils" + +// TODO: move into components directory + +const Cosponsors = (props: BillProps & { children: ReactNode }) => ( + +) +export default createMeta({ + title: "Organisms/Bill Detail/Cosponsors", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=172%3A8380", + component: Cosponsors +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) +Primary.storyName = "Cosponsors" +Primary.decorators = [(Story, children) => ] + +const newBillHistory: BillHistory = [ + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + } +] + +const newBillContent: BillContent = { + Title: "An Act relative to the safety of autistic and alzheimer individuals", + BillNumber: "H. 1728", + DocketNumber: "HD. 2027", + GeneralCourtNumber: 192, + PrimarySponsor: { + Id: "1", + Name: "Paul McMurtry", + Type: 1 + }, + Cosponsors: [ + { + Id: "2", + Name: "Paul McMurtry", + Type: 1 + }, + { + Id: "3", + Name: "Paul McMurtry", + Type: 1 + }, + { + Id: "4", + Name: "Paul McMurtry", + Type: 1 + } + ], + LegislationTypeName: "House", + Pinslip: "", + DocumentText: "this is the document text" +} + +const bill: Bill = { + id: "123", + court: 192, + content: newBillContent, + cosponsorCount: 0, + testimonyCount: 0, + endorseCount: 0, + opposeCount: 0, + neutralCount: 0, + fetchedAt: Timestamp.fromDate(new Date()), + history: newBillHistory, + currentCommittee: { + name: "Committee on Public Safety and Homeland Security", + id: "J30", + houseChair: { + id: "1", + name: "Paul McMurtry", + email: "a@b.com" + } + }, + city: "Boston" +} + +Primary.args = { + bill: bill, + children: "View Cosponsors" +} diff --git a/stories_hold/organisms/billDetail/BillStatus.stories.tsx b/stories_hold/organisms/billDetail/BillStatus.stories.tsx new file mode 100644 index 000000000..f1d476022 --- /dev/null +++ b/stories_hold/organisms/billDetail/BillStatus.stories.tsx @@ -0,0 +1,56 @@ +import { ComponentStory } from "@storybook/react" +import { BillTrackerView } from "components/bill/BillTracker" +import { Timestamp } from "firebase/firestore" +import { Stage } from "functions/src/analysis/types" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Bill Detail/BillStatus", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=249%3A18636", + component: BillTrackerView +}) + +const Template: ComponentStory = props => ( + +) + +export const Primary = Template.bind({}) +export const Secondary = Template.bind({}) + +Primary.storyName = "Bill Introduced" +Secondary.storyName = "In Second Committee" + +Primary.args = { + tracker: { + id: "123", + court: 193, + label: { + status: Stage.billIntroduced, + attribution: "House", + createdAt: Timestamp.now() + }, + prediction: { + status: Stage.secondCommittee, + version: 2, + createdAt: Timestamp.now() + } + } +} + +Secondary.args = { + tracker: { + id: "123", + court: 193, + label: { + status: Stage.secondCommittee, + attribution: "House", + createdAt: Timestamp.now() + }, + prediction: { + status: Stage.secondCommittee, + version: 2, + createdAt: Timestamp.now() + } + } +} diff --git a/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx new file mode 100644 index 000000000..d2dff17c6 --- /dev/null +++ b/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx @@ -0,0 +1,53 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { BillTestimonies } from "../../components/bill/BillTestimonies" +import { Timestamp } from "firebase/firestore" + +// TODO: move into components directory +const BillTestimonyListCard = BillTestimonies + +export default createMeta({ + title: "Bill Detail/BillTestimonyListCard", + figmaUrl: + "https://www.figma.com/file/oMNmgiqDGTMco2v54gOW3b/MAPLE-Soft-Launch-(Mar-2023)?node-id=4009%3A15950&t=3gd7s59zbYBA1CZP-4", + component: BillTestimonyListCard +}) + +var first = { Id: "test", Name: "tes", Type: 0 } + +const Template: ComponentStory = props => { + return +} + +export const Primary = Template.bind({}) +Primary.args = { + bill: { + id: "H805", + court: 192, + content: { + Title: + "An Act fostering voting opportunities, trust, equity, and security", + BillNumber: "H805", + DocketNumber: "string", + GeneralCourtNumber: 999, + PrimarySponsor: first, + Cosponsors: [first], + LegislationTypeName: "string", + Pinslip: "string", + DocumentText: "string" + }, + cosponsorCount: 0, + testimonyCount: 0, + endorseCount: 0, + opposeCount: 0, + neutralCount: 0, + fetchedAt: Timestamp.fromMillis(0), + history: [ + { + Date: "1", + Branch: "1", + Action: "1" + } + ] + } +} diff --git a/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx b/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx new file mode 100644 index 000000000..17cc46d68 --- /dev/null +++ b/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx @@ -0,0 +1,17 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { CurrentCommitteeCard } from "../../components/CurrentCommitteeCard/CurrentCommitteeCard" + +export default createMeta({ + title: "Bill Detail/CurrentCommitteeCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=159%3A4939", + component: CurrentCommitteeCard +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) +Primary.args = { chamber: "House", committee: "Committee of Ways and Means" } diff --git a/stories_hold/organisms/billDetail/MockBillData.tsx b/stories_hold/organisms/billDetail/MockBillData.tsx new file mode 100644 index 000000000..3e1242072 --- /dev/null +++ b/stories_hold/organisms/billDetail/MockBillData.tsx @@ -0,0 +1,79 @@ +import { Timestamp } from "firebase/firestore" +import { Bill, BillContent, BillHistory } from "components/db" + +export const newBillHistory: BillHistory = [ + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + }, + { + Date: new Date().toISOString(), + Branch: "House", + Action: "this is the action" + } +] +export const newBillContent: BillContent = { + Title: "An Act relative to the safety of autistic and alzheimer individuals", + BillNumber: "H. 1728", + DocketNumber: "HD. 2027", + GeneralCourtNumber: 192, + PrimarySponsor: { + Id: "1", + Name: "Paul McMurtry", + Type: 1 + }, + Cosponsors: [ + { + Id: "2", + Name: "Paul McMurtry", + Type: 1 + }, + { + Id: "3", + Name: "Paul McMurtry", + Type: 1 + }, + { + Id: "4", + Name: "Paul McMurtry", + Type: 1 + } + ], + LegislationTypeName: "House", + Pinslip: "", + DocumentText: "this is the document text" +} + +export const bill: Bill = { + id: "123", + court: 192, + content: newBillContent, + cosponsorCount: 0, + testimonyCount: 0, + endorseCount: 0, + opposeCount: 0, + neutralCount: 0, + fetchedAt: Timestamp.fromDate(new Date()), + history: newBillHistory, + currentCommittee: { + name: "Committee on Public Safety and Homeland Security", + id: "J30", + houseChair: { + id: "1", + name: "Paul McMurtry", + email: "a@b.com" + } + }, + city: "Boston" +} diff --git a/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx b/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx new file mode 100644 index 000000000..c8dc7f5ea --- /dev/null +++ b/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx @@ -0,0 +1,28 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { TestimonyCounts } from "components/bill/TestimonyCounts" +import { BillProps } from "components/bill/types" + +export default createMeta({ + title: "Organisms/Bill Detail/TestimonyCounts", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: TestimonyCounts +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + bill: { + testimonyCount: 23, + neutralCount: 12, + endorseCount: 14, + opposeCount: 2 + } +} as Partial + +Primary.storyName = "TestimonyCounts" diff --git a/stories_hold/organisms/cards/Card.stories.tsx b/stories_hold/organisms/cards/Card.stories.tsx new file mode 100644 index 000000000..35ce222a5 --- /dev/null +++ b/stories_hold/organisms/cards/Card.stories.tsx @@ -0,0 +1,201 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { string } from "yargs" +import { Card } from "../../../components/Card" + +export default createMeta({ + title: "Components/Cards/Card", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8338", + component: Card +}) + +const CustomBody = () => { + var misfits = ["Danzig", "Only", "Doyle", "Googy"] + return ( +
+ +

+ {misfits.map(misfit => { + return {misfit} + })} +

+
+ ) +} + +const Template: ComponentStory = ({ + header, + subheader, + bodyText, + timestamp, + imgSrc, + cardItems, + inHeaderElement, + body, + ...rest +}) => { + return ( + + ) +} + +export const Primary = Template.bind({}) +Primary.args = { + header: "Header" +} + +export const HeaderAndSubheader = Template.bind({}) +HeaderAndSubheader.args = { + header: "Header", + subheader: "Subheader" +} + +export const HeaderAndSubheaderAndTimestamp = Template.bind({}) +HeaderAndSubheaderAndTimestamp.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM" +} +export const HeaderAndSubheaderAndTimestampAndInHeaderElement = Template.bind( + {} +) +HeaderAndSubheaderAndTimestampAndInHeaderElement.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + inHeaderElement: <>button here +} + +export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) +HeaderAndSubheaderAndTimestampAndImg.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" +} + +export const HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement = + Template.bind({}) +HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", + inHeaderElement: +} + +export const HeaderAndSubheaderAndTimestampAndImgAndBody = Template.bind({}) +HeaderAndSubheaderAndTimestampAndImgAndBody.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", + bodyText: "This is body text and it's nonsense placeholder and filler" +} + +export const HeaderAndSubheaderAndTimestampAndImgAndCustomBody = Template.bind( + {} +) +HeaderAndSubheaderAndTimestampAndImgAndCustomBody.args = { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + body: +} + +export const HeaderAndSubheaderAndBodyAndTwoListItems = Template.bind({}) +HeaderAndSubheaderAndBodyAndTwoListItems.args = { + header: "Header", + subheader: "Subheader", + bodyText: "This is body text and it's nonsense placeholder and filler", + cardItems: [ + { + billName: "H.3340", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3342", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + } + ] +} + +export const HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore = + Template.bind({}) +HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args = { + header: "Header", + subheader: "Subheader", + bodyText: "This is body text and it's nonsense placeholder and filler", + cardItems: [ + { + billName: "H.3340", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3342", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3340", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3342", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3340", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3342", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + } + ] +} + +export const HeaderWithItemsAndItemElements = Template.bind({}) +HeaderWithItemsAndItemElements.args = { + ...HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args, + cardItems: + HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args.cardItems?.map( + item => { + return { ...item, element: } + } + ) +} + +export const HeaderWithItemsAndItemElementsAndBillNameElement = Template.bind( + {} +) +HeaderWithItemsAndItemElementsAndBillNameElement.args = { + ...HeaderWithItemsAndItemElements.args, + cardItems: HeaderWithItemsAndItemElements.args.cardItems?.map(item => { + return { ...item, billNameElement: } + }) +} diff --git a/stories_hold/organisms/cards/CardListItem.stories.tsx b/stories_hold/organisms/cards/CardListItem.stories.tsx new file mode 100644 index 000000000..9e5789fd0 --- /dev/null +++ b/stories_hold/organisms/cards/CardListItem.stories.tsx @@ -0,0 +1,39 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { CardListItems, ListItem } from "../../../components/Card" + +export default createMeta({ + title: "Components/Cards/CardListItem", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2727", + component: CardListItems +}) + +const Template: ComponentStory = ({ items, ...rest }) => { + return +} + +export const Primary = Template.bind({}) +Primary.args = { + items: [ + + ] +} + +export const OnlyBillName = Template.bind({}) +OnlyBillName.args = { + items: [] +} + +export const MultipleItems = Template.bind({}) +MultipleItems.args = { + items: [ + , + , + + ] +} diff --git a/stories_hold/organisms/cards/CardTitle.stories.tsx b/stories_hold/organisms/cards/CardTitle.stories.tsx new file mode 100644 index 000000000..c60210b07 --- /dev/null +++ b/stories_hold/organisms/cards/CardTitle.stories.tsx @@ -0,0 +1,57 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { CardTitle } from "../../../components/Card" + +export default createMeta({ + title: "Components/Cards/CardTitle", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=110%3A2655", + component: CardTitle +}) + +const Template: ComponentStory = ({ + header, + subheader, + timestamp, + imgSrc, + ...rest +}) => { + return ( + + ) +} + +export const Primary = Template.bind({}) + +export const JustHeader = Template.bind({}) +JustHeader.args = { + header: "Header" +} + +export const HeaderAndSubheader = Template.bind({}) +HeaderAndSubheader.args = { + header: "Header", + subheader: "Subheader here don't miss it" +} + +export const HeaderAndSubheaderAndTimestamp = Template.bind({}) +HeaderAndSubheaderAndTimestamp.args = { + header: "Header", + subheader: "Subheader here don't miss it", + timestamp: "3:29PM" +} + +export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) +HeaderAndSubheaderAndTimestampAndImg.args = { + header: "Header", + subheader: "Subheader here don't miss it", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" +} diff --git a/stories_hold/organisms/cards/SeeMore.stories.tsx b/stories_hold/organisms/cards/SeeMore.stories.tsx new file mode 100644 index 000000000..feb54b949 --- /dev/null +++ b/stories_hold/organisms/cards/SeeMore.stories.tsx @@ -0,0 +1,11 @@ +import { createMeta } from "stories/utils" +import { SeeMore } from "../../../components/Card" + +export default createMeta({ + title: "Components/Cards/SeeMore", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2856", + component: SeeMore +}) + +export const Primary = () => diff --git a/stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx b/stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx new file mode 100644 index 000000000..0d7f9f006 --- /dev/null +++ b/stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx @@ -0,0 +1,43 @@ +import { ComponentStory } from "@storybook/react" +import ProfileSettingsModal from "components/EditProfilePage/ProfileSettingsModal" +import { GearButton } from "components/buttons" +import { ProfileHook } from "components/db" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { useState } from "react" +import { Col } from "react-bootstrap" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Edit Profile/ProfileSettingsModal", + component: ProfileSettingsModal, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) +Primary.args = { + actions: {} as ProfileHook, + isProfilePublic: true, + role: "user", + notifications: "Daily", + show: true +} + +Primary.storyName = "ProfileSettingsModal" diff --git a/stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx b/stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx new file mode 100644 index 000000000..11b7a848a --- /dev/null +++ b/stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx @@ -0,0 +1,40 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { Stories } from "@storybook/addon-docs" +import * as SC from "components/EditProfilePage/StyledEditProfileComponents" +import { ReactNode, FC } from "react" + +const EditProfileComponents: FC<{ children: ReactNode }> = ({ children }) => { + return ( + <> + Header + + TabNav + {children} + + Save Button + + + ) +} + +export default createMeta({ + title: "Organisms/Edit Profile/StyledTabNav", + component: EditProfileComponents, + parameters: { + docs: { + page: () => + } + } +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + children: "TabContent" +} +Primary.storyName = "StyledTabNav" diff --git a/stories_hold/organisms/editprofile/YourLegislators.stories.tsx b/stories_hold/organisms/editprofile/YourLegislators.stories.tsx new file mode 100644 index 000000000..c9eefef73 --- /dev/null +++ b/stories_hold/organisms/editprofile/YourLegislators.stories.tsx @@ -0,0 +1,107 @@ +import { ComponentStory } from "@storybook/react" +import { YourLegislators } from "components/EditProfilePage/YourLegislators" +import { LegislatorForm } from "components/ProfilePage/SelectLegislators" +import { MemberSearchIndex, Profile, ProfileHook } from "components/db" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Edit Profile/LegislatorForm", + component: LegislatorForm, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) +Primary.storyName = "LegislatorForm" +Primary.args = { + index: { + representatives: [ + // MemberSearchIndexItem + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + } + ], + senators: [ + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + } + ] + }, + profile: {} as ProfileHook +} diff --git a/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx b/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx new file mode 100644 index 000000000..bb814dc01 --- /dev/null +++ b/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx @@ -0,0 +1,28 @@ +import { ComponentStory } from "@storybook/react" +import BasicsOfTestimonyCard from "components/LearnTestimonyComponents/BasicsOfTestimony/BasicsOfTestimonyCard" +import React from "react" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Education/BasicsOfTestimonyCard", + component: BasicsOfTestimonyCard, + parameters: { + backgrounds: { name: "medium", value: "#f4f4f4" } + } +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + title: "Anyone can submit testimony to the MA legislature", + paragraph: + "Legislators tend to value testimony most when it comes from their own constituents. Testimony from MA residents is typically directed to both the committee that is substantively responsible for the bill as well as the legislators (House member and Senator) representing your district.", + src: "who.svg", + alt: "Who" +} + +Primary.storyName = "BasicsOfTestimonyCard" diff --git a/stories_hold/organisms/newsfeed/AlertCard.stories.tsx b/stories_hold/organisms/newsfeed/AlertCard.stories.tsx new file mode 100644 index 000000000..65b40aadd --- /dev/null +++ b/stories_hold/organisms/newsfeed/AlertCard.stories.tsx @@ -0,0 +1,65 @@ +import { ComponentStory } from "@storybook/react" +import React, { useState } from "react" +import { createMeta } from "stories/utils" +import { AlertCard } from "components/AlertCard/AlertCard" +import { Timestamp } from "firebase/firestore" + +export default createMeta({ + title: "Dashboard/Newsfeed/AlertCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A2873", + component: AlertCard +}) + +const Template: ComponentStory = props => { + return +} + +export const OrgWithBodyImage = Template.bind({}) +OrgWithBodyImage.args = { + header: "Cool Organization", + subheader: "Our Priority Bills", + timestamp: Timestamp.fromDate(new Date("2021-10-10T22:02:00")), + headerImgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", + bodyImgSrc: + "https://regulatorystudies.columbian.gwu.edu/sites/g/files/zaxdzs4751/files/image/United_States_Capitol_-_west_front_small.jpg", + bodyText: + "Come to our FAQ Session held at plaza on 248 Willow Street in Watertown, MA! There will be light refreshments and snacks." +} + +export const OrgWithNoBodyImage = Template.bind({}) +OrgWithNoBodyImage.args = { + header: "Moms for Liberty", + headerImgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", + timestamp: Timestamp.fromDate(new Date("2021-10-10T22:02:00")), + bodyText: "Moms for Liberty released a testimony on S.1958" +} + +export const BillWithBodyImage = Template.bind({}) +BillWithBodyImage.args = { + header: "Bill H.1321", + subheader: "An Act to do something cool", + timestamp: Timestamp.fromDate(new Date("2021-10-10T06:00:00")), + bodyImgSrc: + "https://regulatorystudies.columbian.gwu.edu/sites/g/files/zaxdzs4751/files/image/United_States_Capitol_-_west_front_small.jpg", + bodyText: "Bill moved on in deliberations with some group" +} + +export const BillWithSubheader = Template.bind({}) +BillWithSubheader.args = { + header: "Bill H.3340", + subheader: + "An Act creating a green bank to promote clean energy in Massachusetts", + timestamp: Timestamp.fromDate(new Date("2021-10-10T15:20:00")), + bodyText: + "The reporting date was extended to Thursday June 30, 2022, pending concurrence" +} + +export const BillWithNoSubheader = Template.bind({}) +BillWithNoSubheader.args = { + header: "Bille H.2241", + timestamp: Timestamp.fromDate(new Date("2021-10-10T22:05:00")), + bodyText: "Senate concurred" +} diff --git a/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx b/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx new file mode 100644 index 000000000..f7437947d --- /dev/null +++ b/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx @@ -0,0 +1,70 @@ +import { ComponentStory } from "@storybook/react" +import React, { useState } from "react" +import { createMeta } from "stories/utils" +import { HotBillCard } from "components/HotBillCard/HotBillCard" + +// TODO: move into components directory +//const HotBillCard = () =>
TODO
+ +export default createMeta({ + title: "Dashboard/Newsfeed/HotBillCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A3865", + component: HotBillCard +}) + +const Template: ComponentStory = props => { + return +} + +export const Primary = Template.bind({}) +Primary.args = { + bills: [ + { + id: "123", + billNumber: "hc.508", + title: + "An Act that goes by no other name but... I forget. But it was good", + endorseCount: 41, + opposeCount: 182, + neutralCount: 98 + }, + { + id: "456", + billNumber: "hc.411", + title: + "An Act that goes by no other name but... I forget. But it was good", + endorseCount: 41, + opposeCount: 182, + neutralCount: 98 + }, + { + id: "789", + billNumber: "hc.999", + title: + "An Act that goes by no other name but... I forget. But it was good", + endorseCount: 41, + opposeCount: 182, + neutralCount: 98 + }, + { + id: "012", + billNumber: "hc.911", + title: + "An Act that goes by no other name but... I forget. But it was good", + endorseCount: 41, + opposeCount: 182, + neutralCount: 98 + }, + { + id: "345", + billNumber: "hc.888", + title: + "An Act that goes by no other name but... I forget. But it was good", + endorseCount: 41, + opposeCount: 182, + neutralCount: 98 + } + ], + session: "123" +} diff --git a/stories_hold/organisms/pageElements/LoadingPage.stories.tsx b/stories_hold/organisms/pageElements/LoadingPage.stories.tsx new file mode 100644 index 000000000..9917f140c --- /dev/null +++ b/stories_hold/organisms/pageElements/LoadingPage.stories.tsx @@ -0,0 +1,15 @@ +import { ComponentStory } from "@storybook/react" +import { Loading } from "components/LoadingPage" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Page Elements/LoadingPage", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: Loading +}) + +const Template: ComponentStory = () => + +export const Primary = Template.bind({}) +Primary.storyName = "LoadingPage" diff --git a/stories_hold/organisms/pageElements/PageFooter.stories.tsx b/stories_hold/organisms/pageElements/PageFooter.stories.tsx new file mode 100644 index 000000000..51252671b --- /dev/null +++ b/stories_hold/organisms/pageElements/PageFooter.stories.tsx @@ -0,0 +1,41 @@ +import { ComponentStory } from "@storybook/react" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" +import PageFooter from "../../../components/Footer/Footer" + +// import i18n from "i18next" + +export default createMeta({ + title: "Components/Page/PageFooter", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: PageFooter +}) + +const Template: ComponentStory = args => { + return +} + +export const Primary = Template.bind({}) + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] + +Primary.args = { + authenticated: true, + user: null, + signOut: () => {} +} diff --git a/stories_hold/organisms/pageElements/PageHeader.stories.tsx b/stories_hold/organisms/pageElements/PageHeader.stories.tsx new file mode 100644 index 000000000..1a632d859 --- /dev/null +++ b/stories_hold/organisms/pageElements/PageHeader.stories.tsx @@ -0,0 +1,17 @@ +import { createMeta } from "stories/utils" +import HeroHeader from "components/HeroHeader/HeroHeader" +import { Meta, StoryObj } from "@storybook/react" +import { appWithTranslation } from "next-i18next" + +// export default createMeta({ +// title: "Organisms/Page Elements/PageHeader", +// figmaUrl: +// "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A6642", +// component: HeroHeader +// }) + +type Story = StoryObj + +export const Primary: Story = { + args: { authenticated: true }, name: "PageHeader" +} diff --git a/stories_hold/organisms/profile/ProfileAboutSection.stories.tsx b/stories_hold/organisms/profile/ProfileAboutSection.stories.tsx new file mode 100644 index 000000000..c84e3bc8b --- /dev/null +++ b/stories_hold/organisms/profile/ProfileAboutSection.stories.tsx @@ -0,0 +1,45 @@ +import { ComponentStory } from "@storybook/react" +import { ProfileAboutSection } from "components/ProfilePage/ProfileAboutSection" +import { Profile } from "components/db" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Profile/ProfileAboutSection", + component: ProfileAboutSection, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ], + parameters: { + backgrounds: { name: "medium", value: "#f4f4f4" } + } +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +type ProfileAboutSectionProps = React.ComponentProps + +Primary.args = { + profile: { + about: "This is a test about section" + } as Profile, + isOrg: false +} as ProfileAboutSectionProps + +Primary.storyName = "ProfileAboutSection" diff --git a/stories_hold/organisms/profile/ProfileButtons.stories.tsx b/stories_hold/organisms/profile/ProfileButtons.stories.tsx new file mode 100644 index 000000000..e69700d0d --- /dev/null +++ b/stories_hold/organisms/profile/ProfileButtons.stories.tsx @@ -0,0 +1,63 @@ +import { createMeta } from "stories/utils" +import { ComponentStory } from "@storybook/react" +import { + StyledButton1, + StyledButton2, + StyledButton3, + EditProfileButton, + MakePublicButton +} from "components/ProfilePage/ProfileButtons" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { Providers } from "components/providers" +import { Button, Col, Row, Stack } from "react-bootstrap" + +// @TODO: [next] clean up display of these buttons +// @TODO: [later] refactor this component to use the shared project buttons [refactor phase] + +export default createMeta({ + title: "Organisms/Profile/ProfileButtons", + component: MakePublicButton, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + isProfilePublic: true, + onProfilePublicityChanged: () => { + console.log("clicked") + } +} +Primary.storyName = "ProfileButtons" + +export const Buttons = () => ( + + + StyledButton1 + StyledButton2 + StyledButton3 + + + +) diff --git a/stories_hold/organisms/profile/ProfileHeader.stories.tsx b/stories_hold/organisms/profile/ProfileHeader.stories.tsx new file mode 100644 index 000000000..0cb293a0c --- /dev/null +++ b/stories_hold/organisms/profile/ProfileHeader.stories.tsx @@ -0,0 +1,57 @@ +import { ComponentStory } from "@storybook/react" +import { ProfileHeader } from "components/ProfilePage/ProfileHeader" +import { StyledContainer } from "components/ProfilePage/StyledProfileComponents" +import { Profile } from "components/db" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Profile/ProfileHeader", + component: ProfileHeader, + decorators: [ + (Story, ...rest) => ( + + + + ), + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +type ProfileHeaderProps = React.ComponentProps +Primary.args = { + isUser: true, + isOrg: false, + isProfilePublic: false, + uid: "yem5wVGQnpc7tXWgt16ofbiU9F23", + profileId: "yem5wVGQnpc7tXWgt16ofbiU9F23", + profile: { + topicName: "Topic Name", + role: "user", + fullName: "Full Name", + displayName: "Display Name", + photoURL: "https://via.placeholder.com/150" + } as Profile, + isMobile: false, + onProfilePublicityChanged: (isPublic: boolean) => console.log(isPublic) +} as ProfileHeaderProps + +Primary.storyName = "ProfileHeader" diff --git a/stories_hold/organisms/profile/ProfileLegislators.stories.tsx b/stories_hold/organisms/profile/ProfileLegislators.stories.tsx new file mode 100644 index 000000000..b50b9ff5d --- /dev/null +++ b/stories_hold/organisms/profile/ProfileLegislators.stories.tsx @@ -0,0 +1,50 @@ +import { ComponentStory } from "@storybook/react" +import { ProfileLegislators } from "components/ProfilePage/ProfileLegislators" +import { StyledContainer } from "components/ProfilePage/StyledProfileComponents" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Profile/ProfileLegislators", + component: ProfileLegislators, + decorators: [ + (Story, ...rest) => ( + + + + ), + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.storyName = "ProfileLegislators" +Primary.args = { + rep: { + district: "1", + id: "CRF1", + name: "Rep. 1" + }, + senator: { + district: "1", + id: "A_G0", + name: "Sen. 1" + } +} diff --git a/stories_hold/organisms/profile/ProfileLink.stories.tsx b/stories_hold/organisms/profile/ProfileLink.stories.tsx new file mode 100644 index 000000000..1cf3bdef6 --- /dev/null +++ b/stories_hold/organisms/profile/ProfileLink.stories.tsx @@ -0,0 +1,56 @@ +import { ComponentStory } from "@storybook/react" +import { ProfileLinkView } from "components/ProfileLink/ProfileLink" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Col, Row } from "react-bootstrap" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Profile/ProfileLink", + component: ProfileLinkView, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) +Primary.storyName = "ProfileLink" +Primary.args = { + fullName: "John Doe", + role: "user", + sticky: false, + isExpanded: false, + toggleNav: () => {}, + closeNav: () => {}, + userLink: "/profile?id=123" +} +export const Secondary = Template.bind({}) +Secondary.storyName = "ProfileLink Expanded" +Secondary.args = { + fullName: "John Doe", + role: "user", + sticky: false, + isExpanded: true, + toggleNav: () => {}, + closeNav: () => {}, + userLink: "/profile?id=123" +} diff --git a/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx b/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx new file mode 100644 index 000000000..ab106c830 --- /dev/null +++ b/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx @@ -0,0 +1,78 @@ +import { ComponentStory } from "@storybook/react" +import { TestimonyItem } from "components/TestimonyCard/TestimonyItem" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Timestamp } from "firebase/firestore" +import React from "react" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +// TODO: move into components directory + +type TestimonyItemProps = React.ComponentProps + +const TestimonyItemFC: React.FC = ( + props: TestimonyItemProps +) => + +export default createMeta({ + title: "Organisms/Profile/UserTestimonyListCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=311%3A10561", + component: TestimonyItemFC, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => { + return +} + +const Primary = Template.bind({}) + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] + +Primary.args = { + testimony: { + id: "1", + billId: "123", + court: 1, + position: "endorse" as const, + content: "Content", + authorUid: "user123", + authorDisplayName: "John Doe", + authorRole: "user", + billTitle: "Bill Title", + version: 1.0, + publishedAt: Timestamp.fromDate(new Date("2022-01-01T00:00:00.000Z")), + draftAttachmentId: "attachment123", + fullName: "" + }, + isUser: true, + canEdit: true, + canDelete: false, + onProfilePage: true +} diff --git a/stories_hold/organisms/profile/VerifyAccountSection.stories.tsx b/stories_hold/organisms/profile/VerifyAccountSection.stories.tsx new file mode 100644 index 000000000..1bdeac49e --- /dev/null +++ b/stories_hold/organisms/profile/VerifyAccountSection.stories.tsx @@ -0,0 +1,49 @@ +import { ComponentStory } from "@storybook/react" +import { VerifyAccountSection } from "components/ProfilePage/VerifyAccountSection" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { User } from "firebase/auth" +import { Col, Row } from "react-bootstrap" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Organisms/Profile/VerifyAccountSection", + component: VerifyAccountSection, + decorators: [ + (Story, ...rest) => ( + + + + + + ), + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ], + parameters: { + backgrounds: { name: "medium", value: "#f4f4f4" } + } +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + className: "mb-4", + user: {} as User +} + +Primary.storyName = "VerifyAccountSection" diff --git a/stories_hold/organisms/readme.stories.md b/stories_hold/organisms/readme.stories.md new file mode 100644 index 000000000..4ec512d47 --- /dev/null +++ b/stories_hold/organisms/readme.stories.md @@ -0,0 +1,17 @@ +# organisms folder + +> Organisms are relatively complex UI components composed of groups of molecules and/or atoms and/or other organisms. These organisms form distinct sections of an interface. + +
+brad frost
+atomic design
+https://atomicdesign.bradfrost.com/chapter-2/#organisms +
+ +### what goes here? + +- Major page elements like headers +- Large components that we may call a page, like "Profile Page" +- Most compound components, or components made up of other components and molecules + +Put related components in subfolders diff --git a/stories_hold/pages/BillDetails.stories.tsx b/stories_hold/pages/BillDetails.stories.tsx new file mode 100644 index 000000000..04f6e499e --- /dev/null +++ b/stories_hold/pages/BillDetails.stories.tsx @@ -0,0 +1,38 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { BillDetails } from "components/bill/BillDetails" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { bill } from "../organisms/billDetail/MockBillData" + +export default createMeta({ + title: "Pages/BillDetails", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: BillDetails +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + bill: bill +} + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/EditProfilePage.stories.tsx b/stories_hold/pages/EditProfilePage.stories.tsx new file mode 100644 index 000000000..2c34b2616 --- /dev/null +++ b/stories_hold/pages/EditProfilePage.stories.tsx @@ -0,0 +1,64 @@ +import { ComponentStory } from "@storybook/react" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" +import { EditProfileForm } from "components/EditProfilePage/EditProfilePage" +import { Profile } from "functions/src/profile/types" +import { ContactInfo, ProfileHook } from "components/db" + +export default createMeta({ + title: "Pages/EditProfile", + component: EditProfileForm, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) +/* The 'editprofileform' component is the visual top for the edit profile page. The EditProfile component that wraps it provides the user data from hooks, but we can pass it as an object here. As we build out providers and mocking in storybook we can revisit this. */ + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + profile: { + topicName: "Your Topic Name", + role: "user", + fullName: "John Doe", + email: "johndoe@example.com", + representative: { + id: "123", + name: "Jane Smith", + district: "District 1" + }, + public: true, + notificationFrequency: "Daily", + about: "About me", + social: { + twitter: "johndoe", + linkedIn: "", + instagram: "", + fb: "" + }, + profileImage: "https://example.com/profile.jpg", + billsFollowing: ["bill1", "bill2"], + location: "New York", + orgCategories: ["Education", "Other"] + }, + actions: {} as ProfileHook, + uid: "123" +} + +Primary.storyName = "EditProfile" diff --git a/stories_hold/pages/Profile.stories.tsx b/stories_hold/pages/Profile.stories.tsx new file mode 100644 index 000000000..cd7cd4448 --- /dev/null +++ b/stories_hold/pages/Profile.stories.tsx @@ -0,0 +1,37 @@ +import { ComponentStory } from "@storybook/react" +import { ProfilePage } from "components/ProfilePage" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Pages/ProfilePage", + component: ProfilePage, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + id: "yem5wVGQnpc7tXWgt16ofbiU9F23", + verifyisorg: false +} + +Primary.storyName = "ProfilePage" diff --git a/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx b/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx new file mode 100644 index 000000000..5a616fcbd --- /dev/null +++ b/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx @@ -0,0 +1,39 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import ForgotPasswordModal from "components/auth/ForgotPasswordModal" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +export default createMeta({ + title: "Pages/Auth/ForgotPasswordModal", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: ForgotPasswordModal +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + onHide: () => {}, + show: true +} +Primary.storyName = "ForgotPasswordModal" + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/auth/OrgSignUpModal.stories.tsx b/stories_hold/pages/auth/OrgSignUpModal.stories.tsx new file mode 100644 index 000000000..6d41489ff --- /dev/null +++ b/stories_hold/pages/auth/OrgSignUpModal.stories.tsx @@ -0,0 +1,40 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import OrgSignUpModal from "components/auth/OrgSignUpModal" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +export default createMeta({ + title: "Pages/Auth/Org Sign Up Modal", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: OrgSignUpModal +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + onSuccessfulSubmit: () => {}, + onHide: () => {}, + show: true +} +Primary.storyName = "Org Sign Up Modal" + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/auth/ProfileTypeModal.stories.tsx b/stories_hold/pages/auth/ProfileTypeModal.stories.tsx new file mode 100644 index 000000000..dc6126866 --- /dev/null +++ b/stories_hold/pages/auth/ProfileTypeModal.stories.tsx @@ -0,0 +1,40 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import ProfileTypeModal from "components/auth/ProfileTypeModal" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +export default createMeta({ + title: "Pages/Auth/Profile Type Modal", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: ProfileTypeModal +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + onIndividualUserClick: () => {}, + onOrgUserClick: () => {}, + onHide: () => {}, + show: true +} +Primary.storyName = "Profile Type Modal" +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/auth/SignInModal.stories.tsx b/stories_hold/pages/auth/SignInModal.stories.tsx new file mode 100644 index 000000000..aee54beba --- /dev/null +++ b/stories_hold/pages/auth/SignInModal.stories.tsx @@ -0,0 +1,39 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import SignInModal from "components/auth/SignInModal" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +export default createMeta({ + title: "Pages/Auth/Sign In Modal", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: SignInModal +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + onHide: () => {}, + show: true, + onForgotPasswordClick: () => {} +} +Primary.storyName = "Sign In Modal" +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx b/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx new file mode 100644 index 000000000..8319d242e --- /dev/null +++ b/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx @@ -0,0 +1,40 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import TermsOfServiceModal from "components/auth/TermsOfServiceModal" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +export default createMeta({ + title: "Pages/Auth/Terms Of Service Modal", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: TermsOfServiceModal +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +Primary.args = { + onHide: () => {}, + show: true, + onAgree: () => {} +} +Primary.storyName = "Terms Of Service Modal" + +Primary.decorators = [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } +] diff --git a/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx b/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx new file mode 100644 index 000000000..7e43f3283 --- /dev/null +++ b/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx @@ -0,0 +1,17 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import CommunicatingWithLegislators from "components/CommunicatingWithLegislators/CommunicatingWithLegislators" +export default createMeta({ + title: "Pages/Education/CommunicatingWithLegislators", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: CommunicatingWithLegislators +}) + +const Template: ComponentStory = () => ( + +) + +export const Primary = Template.bind({}) + +Primary.storyName = "CommunicatingWithLegislators" diff --git a/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx b/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx new file mode 100644 index 000000000..99207b1a5 --- /dev/null +++ b/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx @@ -0,0 +1,34 @@ +import { ComponentStory } from "@storybook/react" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" +import GoalsAndMission from "components/GoalsAndMission/GoalsAndMission" + +export default createMeta({ + title: "Pages/Education/GoalsAndMission", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", + component: GoalsAndMission, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = () => ( + +) + +export const Primary = Template.bind({}) + +Primary.storyName = "GoalsAndMission" diff --git a/stories_hold/pages/education/PolicyPage.stories.tsx b/stories_hold/pages/education/PolicyPage.stories.tsx new file mode 100644 index 000000000..f93c7097e --- /dev/null +++ b/stories_hold/pages/education/PolicyPage.stories.tsx @@ -0,0 +1,30 @@ +import { ComponentStory } from "@storybook/react" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" +import { createMeta } from "stories/utils" +import PolicyPage from "components/Policies/PolicyPage" + +export default createMeta({ + title: "Pages/Education/PolicyPage", + component: PolicyPage, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +}) + +const Template: ComponentStory = () => + +export const Primary = Template.bind({}) + +Primary.storyName = "PolicyPage" diff --git a/stories_hold/pages/readme.stories.md b/stories_hold/pages/readme.stories.md new file mode 100644 index 000000000..d1c18277d --- /dev/null +++ b/stories_hold/pages/readme.stories.md @@ -0,0 +1,27 @@ +# Pages + +This folder is where you should put the top component in every area. + +> Pages are specific instances ... that show what a UI looks like with real representative content in place [...] demonstrating the final interface as your users will see it [...] Does everything look great and function as it should? + +
+brad frost
+atomic design
+https://atomicdesign.bradfrost.com/chapter-2/#pages +
+ +### what goes here + +- fully assembled pages +- major modal +- user action flow series + +### why include full pages? + +- to make it easy for everyone to display, view, and share full pages. + +- to support communication and interaction between development and design. + +- to enable design sign-off contribution requirements + +- to allow everyone to view all the pages of the site without having to create the conditions on the actual site, for example, create a new user in order to view the auth flow. diff --git a/stories_hold/unused/BillStatusCard.stories.tsx b/stories_hold/unused/BillStatusCard.stories.tsx new file mode 100644 index 000000000..884ea1008 --- /dev/null +++ b/stories_hold/unused/BillStatusCard.stories.tsx @@ -0,0 +1,52 @@ +import { ComponentStory } from "@storybook/react" +import { BillStatusCard } from "components/BillStatusCard/BillStatusCard" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Dashboard/Mission Center/BillStatusCard", + figmaUrl: + "https://www.figma.com/file/Uyh2NXGTCX60mkse2NVBH7/MAPLE?node-id=2184%3A23094&t=yQ7oQ6AqkJc2pZNR-4", + component: BillStatusCard +}) + +const Template: ComponentStory = props => { + return +} + +export const Primary = Template.bind({}) +Primary.args = { + bill: { + history: [ + { + date: "01/01", + branch: "HOUSE", + action: "House checked with the l and L for Nunito" + }, + { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/03", branch: "JOINT", action: "someone entered the house" }, + { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/05", branch: "SENATE", action: "someone entered the house" }, + { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/03", branch: "JOINT", action: "someone entered the house" }, + { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/05", branch: "SENATE", action: "someone entered the house" }, + { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/03", branch: "JOINT", action: "someone entered the house" }, + { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, + { date: "01/05", branch: "SENATE", action: "someone entered the house" } + ] + } +} + +export const SingularHistory = Template.bind({}) +SingularHistory.args = { + bill: { + history: [ + { + date: "01/01", + branch: "HOUSE", + action: "House checked with the l and L for Nunito" + } + ] + } +} diff --git a/stories_hold/unused/ContactInfo.stories.tsx b/stories_hold/unused/ContactInfo.stories.tsx new file mode 100644 index 000000000..dc45f1729 --- /dev/null +++ b/stories_hold/unused/ContactInfo.stories.tsx @@ -0,0 +1,44 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { ContactInfo } from "../../components/ContactInfo/ContactInfo" +import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" + +export default createMeta({ + title: "Profile/ContactInfo", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8117", + component: ContactInfo +}) + +const Template: ComponentStory = args => ( +
+ +
+) + +export const Primary = Template.bind({}) + +Primary.args = { + phoneNumber: "555-555-5555", + email: "info@concernedparents.com", + website: "concernedparentsofmass.com", + icons: ( + <> + + + + + ) +} diff --git a/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx b/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx new file mode 100644 index 000000000..84adcfa26 --- /dev/null +++ b/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx @@ -0,0 +1,59 @@ +import { createMeta } from "stories/utils" +import { PriorityBillsCard } from "components/PriortyBillsCard/PriorityBillsCard" +import { ComponentStory } from "@storybook/react" +// TODO: move into components directory +const DashboardPriorityBillsCard = () =>
TODO
+ +export default createMeta({ + title: "Unused/DashboardPriorityBillsCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=231%3A14013", + component: PriorityBillsCard +}) + +type PriorityBillsCardProps = React.ComponentProps + +const Template = (args: PriorityBillsCardProps) => ( + +) + +export const Primary: ComponentStory = Template.bind( + {} +) + +Primary.args = { + bills: [ + { + id: "123", + billNumber: "hc.508", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "456", + billNumber: "hc.411", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "789", + billNumber: "hc.999", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "012", + billNumber: "hc.911", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "345", + billNumber: "hc.888", + title: + "An Act that goes by no other name but... I forget. But it was good" + } + ], + onClick: (string: string) => console.log("onClick", string), + selectedBillId: "123" +} diff --git a/stories_hold/unused/FollowingCard.stories.tsx b/stories_hold/unused/FollowingCard.stories.tsx new file mode 100644 index 000000000..1b617611d --- /dev/null +++ b/stories_hold/unused/FollowingCard.stories.tsx @@ -0,0 +1,66 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { FollowingCard } from "../../../components/FollowingCard/FollowingCard" + +export default createMeta({ + title: "Dashboard/Side Panels/FollowingCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=167%3A6922", + component: FollowingCard +}) + +const Template: ComponentStory = args => ( + +) + +export const Primary = Template.bind({}) + +const organizations = [ + { + name: "Moms for Liberty", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Moms for Boston", + href: "https://www.google.com", + iconSrc: "berkmankleincentericon.png" + }, + { + name: "Moms for Sober Driving", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Fathers for Liberty", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Boston College", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Green Sustainability", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Boston Fire Department Unit", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Parents Defending Education", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + }, + { + name: "Turning Point USA", + href: "https://www.google.com", + iconSrc: "bostoncollegeicon.png" + } +] + +Primary.args = { organizations } diff --git a/stories_hold/unused/OrgAvatar.stories.tsx b/stories_hold/unused/OrgAvatar.stories.tsx new file mode 100644 index 000000000..eab3ee80c --- /dev/null +++ b/stories_hold/unused/OrgAvatar.stories.tsx @@ -0,0 +1,48 @@ +import { createMeta } from "stories/utils" +import { OrgAvatar } from "stories/components/OrgAvatar" +import { ComponentStory } from "@storybook/react" + +export default createMeta({ + title: "Components/Avatar", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16634", + component: OrgAvatar +}) + +const Template: ComponentStory = args => ( + +) + +export const AvatarWithTitle = Template.bind({}) +AvatarWithTitle.args = { + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" +} + +export const AvatarWithoutTitle = Template.bind({}) +AvatarWithoutTitle.args = { + orgImageSrc: "/BFD.png", + position: "endorse" +} + +export const EndorsedAvatar = Template.bind({}) +EndorsedAvatar.args = { + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" +} + +export const RejectedAvatar = Template.bind({}) +RejectedAvatar.args = { + name: "Parents Defending Education", + orgImageSrc: "/PDE.png", + position: "neutral" +} + +export const NeutralAvatar = Template.bind({}) +NeutralAvatar.args = { + name: "Moms for Liberty", + orgImageSrc: "/MFL.png", + position: "neutral" +} diff --git a/stories_hold/unused/OrgAvatar.tsx b/stories_hold/unused/OrgAvatar.tsx new file mode 100644 index 000000000..f88363fbd --- /dev/null +++ b/stories_hold/unused/OrgAvatar.tsx @@ -0,0 +1,92 @@ +import { FC } from "react" +import styled from "styled-components" +import { Position } from "components/db" + +const ImageContainer = styled.div` + width: 87px; + height: 87px; + border: 2.5px solid; + border-radius: 50%; + position: relative; + + .orgLogo { + width: 100%; + height: 100%; + border-radius: 50%; + object-fit: contain; + border: 2.5px solid white; + } + + .stanceIcon { + width: 1.5rem; + height: 1.5rem; + position: absolute; + bottom: -0.75rem; + left: calc(50% - 0.75rem); + } +` + +const OrgAvatarContainer = styled.div` + width: 124px; + height: 133px; + display: flex; + flex-direction: column; + align-items: center; + + p { + font-family: Nunito; + font-size: 12px; + text-align: center; + letter-spacing: 0.03em; + line-height: 1rem; + margin-top: 0.5rem; + } +` + +interface Props { + name: string + orgImageSrc: string + position: Position +} + +type ItemStance = { + position: string + svg: string + shade: string +} + +export const positionObj = [ + { + position: "endorse", + svg: "/thumbs-endorse.svg", + shade: "var(--bs-green)" + }, + { + position: "oppose", + svg: "/thumbs-oppose.svg", + shade: "var(--bs-orange)" + }, + { + position: "neutral", + svg: "/thumbs-neutral.svg", + shade: "var(--bs-dark-blue)" + } +] + +export const OrgAvatar: FC = ({ orgImageSrc, name, position }) => { + const obj: ItemStance = positionObj.find( + stand => stand.position === position + )! + + return ( + <> + + + {name} + {obj.position} + +

{name}

+
+ + ) +} diff --git a/stories_hold/unused/OrgPriorityCard.stories.tsx b/stories_hold/unused/OrgPriorityCard.stories.tsx new file mode 100644 index 000000000..403fb1a1a --- /dev/null +++ b/stories_hold/unused/OrgPriorityCard.stories.tsx @@ -0,0 +1,100 @@ +import { ComponentStory } from "@storybook/react" +import { createMeta } from "stories/utils" +import { OrgItem, OrgPriorityCard } from "./OrgPriorityCard" + +export default createMeta({ + title: "Bill Detail/OrgPriorityCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16629", + component: OrgPriorityCard +}) + +const Template: ComponentStory = args => ( + +) + +const orgs2: OrgItem[] = [ + { + id: "qewhtfb001", + name: "Moms for Liberty", + orgImageSrc: "/MFL.png", + position: "neutral" + }, + { + id: "qewhtfb002", + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" + }, + { + id: "qewhtfb003", + name: "Parents Defending Education", + orgImageSrc: "/PDE.png", + position: "oppose" + }, + { + id: "qewhtfb004", + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" + } +] + +const orgs3: OrgItem[] = [ + { + id: "qewhtfb001", + name: "Moms for Liberty", + orgImageSrc: "/MFL.png", + position: "neutral" + }, + { + id: "qewhtfb002", + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" + }, + { + id: "qewhtfb003", + name: "Parents Defending Education", + orgImageSrc: "/PDE.png", + position: "oppose" + }, + { + id: "qewhtfb004", + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" + }, + { + id: "qewhtfb005", + name: "Moms for Liberty", + orgImageSrc: "/MFL.png", + position: "neutral" + }, + { + id: "qewhtfb006", + name: "Boston Fire Department Union", + orgImageSrc: "/BFD.png", + position: "endorse" + }, + { + id: "qewhtfb007", + name: "Parents Defending Education", + orgImageSrc: "/PDE.png", + position: "oppose" + } +] + +export const Primary = Template.bind({}) +Primary.args = { + header: "Organisation Prioritizing this Bill", + subheader: "Prioritizing Bill H.3340", + orgs: orgs2 +} + +export const Secondary = Template.bind({}) +Secondary.args = { + header: "Organisation Prioritizing this Bill", + subheader: "Prioritizing Bill H.3340", + orgs: orgs3 +} diff --git a/stories_hold/unused/OrgPriorityCard.tsx b/stories_hold/unused/OrgPriorityCard.tsx new file mode 100644 index 000000000..5006e5148 --- /dev/null +++ b/stories_hold/unused/OrgPriorityCard.tsx @@ -0,0 +1,66 @@ +import { Card, SeeMore } from "components/Card" +import { Position } from "components/db" +import { Key } from "react" +import { OrgAvatar } from "stories/components/OrgAvatar" +import styled from "styled-components" +import { FC } from "react" +import { chunk } from "lodash" + +export interface OrgItem { + id: Key | null | undefined + name: string + orgImageSrc: string + position: Position +} +interface OrgProps { + header: string + subheader: string + orgs?: Array +} +const Wrapper = styled.div` + width: fit-content; + display: grid; + + .cardBody { + display: flex; + justify-content: flex-start; + overflow-x: auto; + } + + .solid { + border-top: 2px solid var(--bs-gray-700); + padding: 0rem; + } +` + +const OrgRow: FC<{ orgs: OrgItem[] }> = ({ orgs }) => { + return ( +
+ {orgs?.map(org => { + return ( + + ) + })} +
+ ) +} + +export const OrgPriorityCard: FC = props => { + return ( + + ( + + ))} + /> + + ) +} diff --git a/stories_hold/unused/PriorityBillsCard.stories.tsx b/stories_hold/unused/PriorityBillsCard.stories.tsx new file mode 100644 index 000000000..96ebb5147 --- /dev/null +++ b/stories_hold/unused/PriorityBillsCard.stories.tsx @@ -0,0 +1,127 @@ +import { ComponentStory } from "@storybook/react" +import React, { useState } from "react" +import { createMeta } from "stories/utils" +import { PriorityBillsCard } from "../../components/PriortyBillsCard/PriorityBillsCard" + +export default createMeta({ + title: "Profile/PriorityBillsCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=109%3A2927", + component: PriorityBillsCard +}) + +const Template: ComponentStory = props => { + const [selectedBillId, setSelectedBillId] = useState("") + + const onBillSelected = (billNumber: string) => { + console.log("onBillSelected", billNumber) + setSelectedBillId(billNumber) + } + + props.onClick = (string: string) => onBillSelected(string) + props.selectedBillId = selectedBillId + + return +} + +var stances = ["endorse", "neutral", "oppose"] +export const Primary = Template.bind({}) +Primary.args = { + bills: [ + { + id: "123", + billNumber: "hc.508", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "456", + billNumber: "hc.411", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "789", + billNumber: "hc.999", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "012", + billNumber: "hc.911", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "345", + billNumber: "hc.888", + title: + "An Act that goes by no other name but... I forget. But it was good" + } + ], + session: "123" +} + +export const BillsWithStances = Template.bind({}) +BillsWithStances.args = { + ...Primary.args, + bills: Primary.args.bills?.map(bill => { + return { ...bill, stance: stances[Math.floor(Math.random() * 3)] } + }) +} + +export const ThreeBillsWithoutStances = Template.bind({}) +ThreeBillsWithoutStances.args = { + bills: [ + { + id: "123", + billNumber: "hc.508", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "456", + billNumber: "hc.411", + title: + "An Act that goes by no other name but... I forget. But it was good" + }, + { + id: "789", + billNumber: "hc.999", + title: + "An Act that goes by no other name but... I forget. But it was good" + } + ], + session: "124" +} + +export const ThreeBillsWithStances = Template.bind({}) +ThreeBillsWithStances.args = { + ...ThreeBillsWithoutStances.args, + bills: ThreeBillsWithoutStances.args.bills?.map(bill => { + return { ...bill, stance: stances[Math.floor(Math.random() * 3)] } + }) +} +export const PrimaryAndEditBtn = Template.bind({}) +PrimaryAndEditBtn.args = { + ...Primary.args, + editBtn: true +} + +export const WithStancesAndEditBtn = Template.bind({}) +WithStancesAndEditBtn.args = { + ...BillsWithStances.args, + editBtn: true +} + +export const ThreeBillsAndEditBtn = Template.bind({}) +ThreeBillsAndEditBtn.args = { + ...ThreeBillsWithoutStances.args, + editBtn: true +} + +export const ThreeBillsWithStancesAndEditBtn = Template.bind({}) +ThreeBillsWithStancesAndEditBtn.args = { + ...ThreeBillsWithStances.args, + editBtn: true +} diff --git a/stories_hold/unused/ProfileCard.stories.tsx b/stories_hold/unused/ProfileCard.stories.tsx new file mode 100644 index 000000000..a9efaf9fc --- /dev/null +++ b/stories_hold/unused/ProfileCard.stories.tsx @@ -0,0 +1,17 @@ +import { ProfileCard } from "components/ProfileCard" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Dashboard/Side Panels/ProfileCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=296%3A15838", + component: ProfileCard +}) + +export const Primary = () => ( + +) diff --git a/stories_hold/unused/ResourcesCard.stories.tsx b/stories_hold/unused/ResourcesCard.stories.tsx new file mode 100644 index 000000000..b07958007 --- /dev/null +++ b/stories_hold/unused/ResourcesCard.stories.tsx @@ -0,0 +1,11 @@ +import { ResourcesCard } from "components/dashboard" +import { createMeta } from "stories/utils" + +export default createMeta({ + title: "Dashboard/Side Panels/ResourcesCard", + figmaUrl: + "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=123%3A3003", + component: ResourcesCard +}) + +export const Primary = () => From 54618e8820c70b7a9383f28d7a6b9928baf98640 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 16:08:30 -0500 Subject: [PATCH 14/21] updating Cs2 => Cs3 --- .storybook/main.js | 6 +- stories/atoms/BaseButton.stories.tsx | 42 ++++++ .../atoms/Icons.stories.tsx | 8 +- stories/atoms/SocialIconLink.stories.tsx | 18 +++ .../atoms/Typography.stories.tsx | 4 +- .../atoms/ValuePlaqu.stories.tsx | 27 ++-- stories/components/page/Banner.stories.tsx | 7 - .../page/buttons/DropdownButton.stories.tsx | 20 +++ .../page/buttons/LoadingButton.stories.tsx | 123 ++++++++++++++++++ .../buttons/PrimaryButtonWithIcon.stories.tsx | 61 +++++---- .../page}/buttons/PrimaryButtonWithIcon.tsx | 0 .../page}/buttons/TableButton.stories.tsx | 0 .../page/buttons/Tooltip.stories.tsx | 62 +++++++++ .../molecules/form-elements/Input.stories.tsx | 33 +++++ .../billDetail/BillSponsorCard.stories.tsx | 22 ++-- .../billDetail/BillStatus.stories.tsx | 55 ++++++++ .../BillTestimonyListCard.stories.tsx | 102 +++++++++++++++ .../CurrentCommitteeCard.stories.tsx | 15 +++ .../organisms/billDetail/MockBillData.tsx | 0 .../billDetail/TestimonyCounts.stories.tsx | 26 ++++ stories_hold/atoms/SocialIconLink.stories.tsx | 17 --- .../buttons/DropdownButton.stories.tsx | 27 ---- .../buttons/LoadingButton.stories.tsx | 76 ----------- stories_hold/buttons/Tooltip.stories.tsx | 55 -------- .../billDetail/BillStatus.stories.tsx | 56 -------- .../CurrentCommitteeCard.stories.tsx | 17 --- .../billDetail/TestimonyCounts.stories.tsx | 28 ---- stories_hold/pages/BillDetails.stories.tsx | 2 +- 28 files changed, 562 insertions(+), 347 deletions(-) create mode 100644 stories/atoms/BaseButton.stories.tsx rename {stories_hold => stories}/atoms/Icons.stories.tsx (86%) create mode 100644 stories/atoms/SocialIconLink.stories.tsx rename {stories_hold => stories}/atoms/Typography.stories.tsx (89%) rename {stories_hold => stories}/atoms/ValuePlaqu.stories.tsx (61%) create mode 100644 stories/components/page/buttons/DropdownButton.stories.tsx create mode 100644 stories/components/page/buttons/LoadingButton.stories.tsx rename {stories_hold => stories/components/page}/buttons/PrimaryButtonWithIcon.stories.tsx (71%) rename {stories_hold => stories/components/page}/buttons/PrimaryButtonWithIcon.tsx (100%) rename {stories_hold => stories/components/page}/buttons/TableButton.stories.tsx (100%) create mode 100644 stories/components/page/buttons/Tooltip.stories.tsx create mode 100644 stories/molecules/form-elements/Input.stories.tsx rename {stories_hold => stories}/organisms/billDetail/BillSponsorCard.stories.tsx (83%) create mode 100644 stories/organisms/billDetail/BillStatus.stories.tsx create mode 100644 stories/organisms/billDetail/BillTestimonyListCard.stories.tsx create mode 100644 stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx rename {stories_hold => stories}/organisms/billDetail/MockBillData.tsx (100%) create mode 100644 stories/organisms/billDetail/TestimonyCounts.stories.tsx delete mode 100644 stories_hold/atoms/SocialIconLink.stories.tsx delete mode 100644 stories_hold/buttons/DropdownButton.stories.tsx delete mode 100644 stories_hold/buttons/LoadingButton.stories.tsx delete mode 100644 stories_hold/buttons/Tooltip.stories.tsx delete mode 100644 stories_hold/organisms/billDetail/BillStatus.stories.tsx delete mode 100644 stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx delete mode 100644 stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx diff --git a/.storybook/main.js b/.storybook/main.js index e5df84521..650f398a2 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -27,5 +27,9 @@ module.exports = { return config }, - staticDirs: ["../public", "../stories/assets"] + staticDirs: ["../public", "../stories/assets"], + + docs: { + autodocs: false + } } diff --git a/stories/atoms/BaseButton.stories.tsx b/stories/atoms/BaseButton.stories.tsx new file mode 100644 index 000000000..396435b42 --- /dev/null +++ b/stories/atoms/BaseButton.stories.tsx @@ -0,0 +1,42 @@ +import { Meta, StoryFn, StoryObj } from '@storybook/react' +import { userEvent, within } from "@storybook/testing-library" +import { ReactNode } from 'react' +import { Button } from 'react-bootstrap' +import styled from 'styled-components' + + +const BaseButton = styled(Button)`` + + +const meta: Meta = { + title: 'Atoms/BaseButton', + component: BaseButton, +} +export default meta + + +type Story = StoryObj + +export const Primary: Story = { + args: { + children: 'Button', + variant: 'secondary' + }, + name: 'Button', +} + +export const HoveredButton: Story = { + ...Primary, + play: async ({ canvasElement }) => { + const canvas = within(canvasElement) + await userEvent.hover(canvas.getByRole('button')) + } +} + +export const ClickedButton: Story = { + ...Primary, + play: async ({ canvasElement }) => { + const canvas = within(canvasElement) + await userEvent.click(canvas.getByRole('button')) + } +} diff --git a/stories_hold/atoms/Icons.stories.tsx b/stories/atoms/Icons.stories.tsx similarity index 86% rename from stories_hold/atoms/Icons.stories.tsx rename to stories/atoms/Icons.stories.tsx index 80b44b903..5f05d7f5c 100644 --- a/stories_hold/atoms/Icons.stories.tsx +++ b/stories/atoms/Icons.stories.tsx @@ -1,3 +1,4 @@ +import { Meta } from "@storybook/react" import { OrgIconLarge, OrgIconSmall, @@ -5,16 +6,15 @@ import { UserIconSmall } from "components/ProfilePage/StyledProfileComponents" import React from "react" -import { createMeta } from "stories/utils" const IconStories = ({ children }: { children: React.ReactNode }) => { return
{children}
} -export default createMeta({ +const meta: Meta = { title: "Molecules/Icons", component: IconStories -}) +} export const Primary = () => { return ( @@ -27,3 +27,5 @@ export const Primary = () => { ) } Primary.storyName = "Icons" + +export default meta \ No newline at end of file diff --git a/stories/atoms/SocialIconLink.stories.tsx b/stories/atoms/SocialIconLink.stories.tsx new file mode 100644 index 000000000..4a4fc28d7 --- /dev/null +++ b/stories/atoms/SocialIconLink.stories.tsx @@ -0,0 +1,18 @@ +import { Meta } from "@storybook/react" +import { SocialIconLink } from "components/SocialIconLink/SocialIconLink" + +const meta: Meta = { + title: "Atoms/SocialIconLink", + component: SocialIconLink +} + + +export const Primary = () => ( + +) + +export default meta \ No newline at end of file diff --git a/stories_hold/atoms/Typography.stories.tsx b/stories/atoms/Typography.stories.tsx similarity index 89% rename from stories_hold/atoms/Typography.stories.tsx rename to stories/atoms/Typography.stories.tsx index 94602414e..250a0cacc 100644 --- a/stories_hold/atoms/Typography.stories.tsx +++ b/stories/atoms/Typography.stories.tsx @@ -1,4 +1,4 @@ -import { Meta, Story } from "@storybook/react" +import { Meta, StoryFn } from "@storybook/react" const meta: Meta = { title: "Components/Typography", @@ -8,7 +8,7 @@ const meta: Meta = { } } -export const Typopgraphy: Story = () => { +export const Typopgraphy: StoryFn = () => { return (

h1. Maple is my favorite tree.

diff --git a/stories_hold/atoms/ValuePlaqu.stories.tsx b/stories/atoms/ValuePlaqu.stories.tsx similarity index 61% rename from stories_hold/atoms/ValuePlaqu.stories.tsx rename to stories/atoms/ValuePlaqu.stories.tsx index cca719600..151878418 100644 --- a/stories_hold/atoms/ValuePlaqu.stories.tsx +++ b/stories/atoms/ValuePlaqu.stories.tsx @@ -1,11 +1,10 @@ -import { ComponentStory } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" +import { ValuePlaque } from "components/Policies/ValuePlaque" import { Providers } from "components/providers" import { wrapper } from "components/store" import { Provider as Redux } from "react-redux" -import { createMeta } from "stories/utils" -import { ValuePlaque } from "components/Policies/ValuePlaque" -export default createMeta({ +const meta: Meta = { title: "Atoms/Plaque", component: ValuePlaque, decorators: [ @@ -21,18 +20,18 @@ export default createMeta({ ) } ] -}) - -const Template: ComponentStory = args => ( - -) +} -export const Primary = Template.bind({}) +type Story = StoryObj -Primary.args = { - src: "handShake.jpg", - alt: "hand shake", - title: "Humility" +export const Primary: Story = { + args: { + src: "handShake.jpg", + alt: "hand shake", + title: "Humility" + } } Primary.storyName = "ValuePlaque" + +export default meta \ No newline at end of file diff --git a/stories/components/page/Banner.stories.tsx b/stories/components/page/Banner.stories.tsx index ae1f1c59d..3206fbcee 100644 --- a/stories/components/page/Banner.stories.tsx +++ b/stories/components/page/Banner.stories.tsx @@ -1,6 +1,5 @@ import type { Meta, StoryObj } from "@storybook/react" import { MessageBanner } from "components/shared/MessageBanner" -import { createMeta } from "stories/utils" <<<<<<< HEAD:stories/components/page/Banner.stories.tsx export default createMeta({ @@ -16,12 +15,6 @@ const meta: Meta = { component: MessageBanner, } export default meta -// export default createMeta({ -// title: "Molecules/MessageBanner", -// figmaUrl: -// "https://www.figma.com/file/DsC9Nzanyb5bXsQfZ3veO9/2023-Base-File?type=design&node-id=3873-31947&mode=dev", -// component: MessageBanner -// }) type Story = StoryObj diff --git a/stories/components/page/buttons/DropdownButton.stories.tsx b/stories/components/page/buttons/DropdownButton.stories.tsx new file mode 100644 index 000000000..8ff3be256 --- /dev/null +++ b/stories/components/page/buttons/DropdownButton.stories.tsx @@ -0,0 +1,20 @@ +import { createMeta } from "stories/utils" +import DropdownButton from "components/DropdownButton/DropdownButton" +import { ComponentStory, Meta, StoryObj } from "@storybook/react" + +const meta: Meta = { + title: "Molecules/Buttons/DropdownButton", + component: DropdownButton +} + +/* export const Primary = () => */ + +export default meta + +type Story = StoryObj + +export const Primary: Story = { + args: { + children: ["Action 5", "Action 6", "Action 7"] + } +} diff --git a/stories/components/page/buttons/LoadingButton.stories.tsx b/stories/components/page/buttons/LoadingButton.stories.tsx new file mode 100644 index 000000000..0c41a0cc6 --- /dev/null +++ b/stories/components/page/buttons/LoadingButton.stories.tsx @@ -0,0 +1,123 @@ +/* eslint-disable import/no-anonymous-default-export */ +import { Title } from "@storybook/addon-docs" +import { Meta, StoryObj } from "@storybook/react" +import { Image, Stack } from "components/bootstrap" +import { LoadingButton } from "components/buttons" + +const meta: Meta = { + title: "Molecules/Buttons/LoadingButton", + component: LoadingButton, + parameters: { + docs: { + page: () => ( + + Loading Buttons + + {/* + + + + */} + + ) + } + } +} + +export default meta + +type Story = StoryObj + +// export const RenderFunc: StoryObj = { +// args: { +// disabled: false, +// loading: false, +// }, +// render: ({children, disabled=false, loading=false, ...rest}) => { +// const [isLoading, setLoading] = useState(loading) +// const clickAction = () => { +// setLoading(true) +// return setTimeout(() => setLoading(false), 2000) +// } +// return ( +// +// {children} +// +// ) +// } +// } + +// const Template: ComponentStory = ({ +// children, +// disabled = false, +// loading = false, +// ...rest +// }) => { +// const [isLoading, setLoading] = useState(loading) +// const clickAction = () => { +// setLoading(true) +// return setTimeout(() => setLoading(false), 2000) +// } +// return ( +// +// {children} +// +// ) +// } + +export const Primary: Story = { + args: { + children: "Click Me!" + } +} + +export const Disabled: Story = { + args: { + disabled: true, + children: "Disabled" + } +} + +export const Loading: Story = { + args: { + loading: true, + children: "Loading" + } +} + +export const Light: Story = { + args: { + variant: "light", + children: "Light" + } +} + +export const WithImage: Story = { + args: { + variant: "light", + spinnerProps: { className: "me-4" }, + children: ( + <> + Google + With Image + + ) + } +} + +// export const LightWithImage = () => ( +// +// +// Loading Button +// +// ) diff --git a/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx b/stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx similarity index 71% rename from stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx rename to stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx index 455055afe..24433b41c 100644 --- a/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx +++ b/stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx @@ -1,8 +1,7 @@ import { Title } from "@storybook/addon-docs" -import { ComponentStory } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import { Stack } from "react-bootstrap" import Image from "react-bootstrap/Image" -import { createMeta } from "stories/utils" import { PrimaryButtonWithIcon, PrimaryButtonWithIconProps @@ -13,15 +12,15 @@ const Icon = () => const pageArgs: PrimaryButtonWithIconProps = { iconPosition: "left", label: "Label", - onClick: () => {}, + onClick: () => { }, Icon: , disabled: false } -export default createMeta({ + +const meta: Meta = { + title: "Molecules/Buttons/PrimaryButtonWithIcon", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A14373", component: PrimaryButtonWithIcon, parameters: { background: "light", @@ -29,9 +28,9 @@ export default createMeta({ page: () => ( Primary Button With Icon - + {/* - + */} ) } @@ -39,32 +38,32 @@ export default createMeta({ args: { iconPosition: "left", label: "Label", - onClick: () => {}, + onClick: () => { }, Icon: , disabled: false } -}) +} +export default meta -const Template: ComponentStory = args => ( - -) +type Story = StoryObj -export const Primary = Template.bind({}) -Primary.args = { - variant: "primary" +export const Primary: Story = { + args: { + variant: "primary" + } } -export const Secondary = Template.bind({}) - -Secondary.args = { - variant: "outline-secondary" +export const Secondary: Story = { + args: { + variant: "outline-secondary" + } } -export const Tertiary = Template.bind({}) - -Tertiary.args = { - variant: "none" +export const Tertiary: Story = { + args: { + variant: "none" + } } export const ButtonStack = (args: PrimaryButtonWithIconProps) => { @@ -72,7 +71,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { {}} + onClick={() => { }} label="Default" className="col-1" Icon={} @@ -80,7 +79,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { /> {}} + onClick={() => { }} label="Primary-Disabled" disabled className="col-1" @@ -89,7 +88,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { /> {}} + onClick={() => { }} label="Outline" className="col-1" Icon={} @@ -98,7 +97,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { {}} + onClick={() => { }} label="Outline-Primary-Disabled" disabled className="col-1" @@ -107,7 +106,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { /> {}} + onClick={() => { }} label="Secondary" className="col-1" Icon={} @@ -115,7 +114,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { /> {}} + onClick={() => { }} label="Outline-Secondary-Disabled" disabled className="col-1" @@ -124,7 +123,7 @@ export const ButtonStack = (args: PrimaryButtonWithIconProps) => { /> {}} + onClick={() => { }} label="Tertiary" className="col-1" Icon={} diff --git a/stories_hold/buttons/PrimaryButtonWithIcon.tsx b/stories/components/page/buttons/PrimaryButtonWithIcon.tsx similarity index 100% rename from stories_hold/buttons/PrimaryButtonWithIcon.tsx rename to stories/components/page/buttons/PrimaryButtonWithIcon.tsx diff --git a/stories_hold/buttons/TableButton.stories.tsx b/stories/components/page/buttons/TableButton.stories.tsx similarity index 100% rename from stories_hold/buttons/TableButton.stories.tsx rename to stories/components/page/buttons/TableButton.stories.tsx diff --git a/stories/components/page/buttons/Tooltip.stories.tsx b/stories/components/page/buttons/Tooltip.stories.tsx new file mode 100644 index 000000000..e1a521715 --- /dev/null +++ b/stories/components/page/buttons/Tooltip.stories.tsx @@ -0,0 +1,62 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { TooltipButton } from "components/buttons" +import { Container, Stack } from "react-bootstrap" +import { createMeta } from "stories/utils" + + + +const meta: Meta = { + title: "Molecules/Buttons/Tooltip Button", + component: TooltipButton, + parameters: { + docs: { + page: () => ( + + {/* + + */} + + ) + } + }, + decorators: [ + Story => { + return ( + + + + ) + } + ] +} +export default meta + + + +type Story = StoryObj + + +export const Primary: Story = { + args: { + tooltip: "this is a tool tip", + text: "hover", + variant: "primary" + } +} + + +export const Secondary: Story = { + args: { + tooltip: "this is a tool tip", + text: "hover", + variant: "secondary" + } +} + +export const Success: Story = { + args: { + tooltip: "this is a tool tip", + text: "hover", + variant: "success" + } +} diff --git a/stories/molecules/form-elements/Input.stories.tsx b/stories/molecules/form-elements/Input.stories.tsx new file mode 100644 index 000000000..f9bad67bd --- /dev/null +++ b/stories/molecules/form-elements/Input.stories.tsx @@ -0,0 +1,33 @@ +import Input from "components/forms/Input" +import type { Meta, StoryObj } from "@storybook/react" +import { createMeta } from "stories/utils" + + +const meta: Meta = { + component: Input, + title: "Molecules/Input", +} + +type Story = StoryObj + + + + + +export const Primary: Story = { + args: { + label: "Input" + }, + name: "Input" +} + +export const InputWithError: Story = { + args: { + ...Primary.args, + error: "Error message" + }, + name: "Input with error" +} + + +export default meta \ No newline at end of file diff --git a/stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx b/stories/organisms/billDetail/BillSponsorCard.stories.tsx similarity index 83% rename from stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx rename to stories/organisms/billDetail/BillSponsorCard.stories.tsx index 64e65f725..96813c0b6 100644 --- a/stories_hold/organisms/billDetail/BillSponsorCard.stories.tsx +++ b/stories/organisms/billDetail/BillSponsorCard.stories.tsx @@ -1,4 +1,4 @@ -import { ComponentStory } from "@storybook/react" +import { ComponentStory, Meta, StoryObj } from "@storybook/react" import { Cosponsors as PreCosponsors } from "components/bill/Cosponsors" import { BillProps } from "components/bill/types" import { Bill, BillContent, BillHistory } from "components/db" @@ -11,21 +11,19 @@ import { createMeta } from "stories/utils" const Cosponsors = (props: BillProps & { children: ReactNode }) => ( ) -export default createMeta({ + +const meta: Meta = { title: "Organisms/Bill Detail/Cosponsors", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=172%3A8380", component: Cosponsors -}) - -const Template: ComponentStory = args => ( - -) +} +export default meta -export const Primary = Template.bind({}) -Primary.storyName = "Cosponsors" -Primary.decorators = [(Story, children) => ] +type Story = StoryObj +export const Primary: Story = { + storyName: "Cosponsors", + decorators: [(Story, children) => ] +} const newBillHistory: BillHistory = [ { Date: new Date().toISOString(), diff --git a/stories/organisms/billDetail/BillStatus.stories.tsx b/stories/organisms/billDetail/BillStatus.stories.tsx new file mode 100644 index 000000000..96ada0f7b --- /dev/null +++ b/stories/organisms/billDetail/BillStatus.stories.tsx @@ -0,0 +1,55 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { BillTrackerView } from "components/bill/BillTracker" +import { Timestamp } from "firebase/firestore" +import { Stage } from "functions/src/analysis/types" +import { createMeta } from "stories/utils" + +const meta: Meta = { + title: "Organisms/Bill Detail/BillStatus", + component: BillTrackerView +} + +export default meta + +type Story = StoryObj + +export const Primary: Story = { + storyName: "Cosponsors", + decorators: [(Story, children) => ], + args: { + tracker: { + id: "123", + court: 193, + label: { + status: Stage.billIntroduced, + attribution: "House", + createdAt: Timestamp.now() + }, + prediction: { + status: Stage.secondCommittee, + version: 2, + createdAt: Timestamp.now() + } + } + }, +} + +export const Secondary: Story = { + args: { + tracker: { + id: "123", + court: 193, + label: { + status: Stage.secondCommittee, + attribution: "House", + createdAt: Timestamp.now() + }, + prediction: { + status: Stage.secondCommittee, + version: 2, + createdAt: Timestamp.now() + } + } + }, + storyName: "In Second Committee" +} diff --git a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx new file mode 100644 index 000000000..baf88f6d0 --- /dev/null +++ b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx @@ -0,0 +1,102 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { createMeta } from "stories/utils" +import { BillTestimonies } from "components/bill/BillTestimonies" +import { Timestamp } from "firebase/firestore" +import { Provider as Redux } from "react-redux" +import { Providers } from "components/providers" +import { wrapper } from "components/store" + +// TODO: move into components directory +const BillTestimonyListCard = BillTestimonies + +const meta: Meta = { + title: "Organisms/Bill Detail/BillTestimonyListCard", + component: BillTestimonyListCard +} + +export default meta + + +var first = { Id: "test", Name: "tes", Type: 0 } + +type Story = StoryObj + +export const Primary: Story = { + args: { + bill: { + id: "H805", + court: 192, + content: { + Title: + "An Act fostering voting opportunities, trust, equity, and security", + BillNumber: "H805", + DocketNumber: "string", + GeneralCourtNumber: 999, + PrimarySponsor: first, + Cosponsors: [first], + LegislationTypeName: "string", + Pinslip: "string", + DocumentText: "string" + }, + cosponsorCount: 0, + testimonyCount: 0, + endorseCount: 0, + opposeCount: 0, + neutralCount: 0, + fetchedAt: Timestamp.fromMillis(0), + history: [ + { + Date: "1", + Branch: "1", + Action: "1" + } + ] + } + }, + storyName: "BillTestimonyListCard", + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +} + +const PrimaryArgs = { + bill: { + id: "H805", + court: 192, + content: { + Title: + "An Act fostering voting opportunities, trust, equity, and security", + BillNumber: "H805", + DocketNumber: "string", + GeneralCourtNumber: 999, + PrimarySponsor: first, + Cosponsors: [first], + LegislationTypeName: "string", + Pinslip: "string", + DocumentText: "string" + }, + cosponsorCount: 0, + testimonyCount: 0, + endorseCount: 0, + opposeCount: 0, + neutralCount: 0, + fetchedAt: Timestamp.fromMillis(0), + history: [ + { + Date: "1", + Branch: "1", + Action: "1" + } + ] + } +} diff --git a/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx new file mode 100644 index 000000000..ed2fcf120 --- /dev/null +++ b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx @@ -0,0 +1,15 @@ +import { Meta, StoryObj } from "@storybook/react" +import { CurrentCommitteeCard } from "components/CurrentCommitteeCard/CurrentCommitteeCard" + +const meta: Meta = { + title: "Organisms/Bill Detail/CurrentCommitteeCard", + component: CurrentCommitteeCard +} + +export default meta + +type Story = StoryObj +export const Primary: Story = { + args: { chamber: "House", committee: "Committee of Ways and Means" }, + storyName: "CurrentCommitteeCard" +} \ No newline at end of file diff --git a/stories_hold/organisms/billDetail/MockBillData.tsx b/stories/organisms/billDetail/MockBillData.tsx similarity index 100% rename from stories_hold/organisms/billDetail/MockBillData.tsx rename to stories/organisms/billDetail/MockBillData.tsx diff --git a/stories/organisms/billDetail/TestimonyCounts.stories.tsx b/stories/organisms/billDetail/TestimonyCounts.stories.tsx new file mode 100644 index 000000000..0c6d2796f --- /dev/null +++ b/stories/organisms/billDetail/TestimonyCounts.stories.tsx @@ -0,0 +1,26 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { createMeta } from "stories/utils" +import { TestimonyCounts } from "components/bill/TestimonyCounts" +import { BillProps } from "components/bill/types" + +const meta: Meta = { + title: "Organisms/Bill Detail/TestimonyCounts", + component: TestimonyCounts +} + +export default meta + +type Story = StoryObj + + +export const Primary = { + args: { + bill: { + testimonyCount: 23, + neutralCount: 12, + endorseCount: 14, + opposeCount: 2 + } + } as Partial, + storyName: "TestimonyCounts" +} diff --git a/stories_hold/atoms/SocialIconLink.stories.tsx b/stories_hold/atoms/SocialIconLink.stories.tsx deleted file mode 100644 index 3ba47c681..000000000 --- a/stories_hold/atoms/SocialIconLink.stories.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { createMeta } from "../utils" -import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" - -export default createMeta({ - title: "Components/SocialIconLink", - figmaUrl: - "https://www.figma.com/file/Uyh2NXGTCX60mkse2NVBH7/MAPLE?node-id=1866%3A22187&t=3xgP9SclEre3LNeo-4", - component: SocialIconLink -}) - -export const Primary = () => ( - -) diff --git a/stories_hold/buttons/DropdownButton.stories.tsx b/stories_hold/buttons/DropdownButton.stories.tsx deleted file mode 100644 index 43156dd35..000000000 --- a/stories_hold/buttons/DropdownButton.stories.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { createMeta } from "stories/utils" -import DropdownButton from "../../../components/DropdownButton/DropdownButton" -import { ComponentStory } from "@storybook/react" - -// TODO: move into components directory -//const DropdownButton = () =>
TODO
- -export default createMeta({ - title: "Components/Buttons/DropdownButton", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A12483", - component: DropdownButton -}) - -/* export const Primary = () => */ - -const Template: ComponentStory = ({ - title, - children -}) => { - return {children} -} - -export const Primary = Template.bind({}) -Primary.args = { - children: ["Action 5", "Action 6", "Action 7"] -} diff --git a/stories_hold/buttons/LoadingButton.stories.tsx b/stories_hold/buttons/LoadingButton.stories.tsx deleted file mode 100644 index e17f95697..000000000 --- a/stories_hold/buttons/LoadingButton.stories.tsx +++ /dev/null @@ -1,76 +0,0 @@ -/* eslint-disable import/no-anonymous-default-export */ -import { ComponentStory } from "@storybook/react" -import { Image } from "components/bootstrap" -import { useState } from "react" -import { createMeta } from "stories/utils" -import { LoadingButton } from "../../../components/buttons" - -export default createMeta({ - title: "Components/Buttons/LoadingButton", - component: LoadingButton -}) - -const Template: ComponentStory = ({ - children, - disabled = false, - loading = false, - ...rest -}) => { - const [isLoading, setLoading] = useState(loading) - const clickAction = () => { - setLoading(true) - return setTimeout(() => setLoading(false), 2000) - } - return ( - - {children} - - ) -} - -export const Primary = Template.bind({}) -Primary.args = { - children: "Click Me!" -} - -export const Disabled = Template.bind({}) -Disabled.args = { - disabled: true, - children: "Disabled" -} - -export const Loading = Template.bind({}) -Loading.args = { - loading: true, - children: "Loading" -} - -export const Light = Template.bind({}) -Light.args = { - variant: "light", - children: "Light" -} - -export const WithImage = Template.bind({}) -WithImage.args = { - variant: "light", - spinnerProps: { className: "me-4" }, - children: ( - <> - Google - With Image - - ) -} - -// export const LightWithImage = () => ( -// -// -// Loading Button -// -// ) diff --git a/stories_hold/buttons/Tooltip.stories.tsx b/stories_hold/buttons/Tooltip.stories.tsx deleted file mode 100644 index 343b371c7..000000000 --- a/stories_hold/buttons/Tooltip.stories.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { TooltipButton } from "components/buttons" -import { Container, Stack } from "react-bootstrap" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Molecules/Buttons/Tooltip Button", - component: TooltipButton, - parameters: { - docs: { - page: () => ( - - - - - - ) - } - }, - decorators: [ - Story => { - return ( - - - - ) - } - ] -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) - -Primary.args = { - tooltip: "this is a tool tip", - text: "hover", - variant: "primary" -} -export const Secondary = Template.bind({}) - -Secondary.args = { - tooltip: "this is a tool tip", - text: "hover", - variant: "secondary" -} -export const Success = Template.bind({}) - -Success.args = { - tooltip: "this is a tool tip", - text: "hover", - variant: "success" -} diff --git a/stories_hold/organisms/billDetail/BillStatus.stories.tsx b/stories_hold/organisms/billDetail/BillStatus.stories.tsx deleted file mode 100644 index f1d476022..000000000 --- a/stories_hold/organisms/billDetail/BillStatus.stories.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { BillTrackerView } from "components/bill/BillTracker" -import { Timestamp } from "firebase/firestore" -import { Stage } from "functions/src/analysis/types" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Organisms/Bill Detail/BillStatus", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=249%3A18636", - component: BillTrackerView -}) - -const Template: ComponentStory = props => ( - -) - -export const Primary = Template.bind({}) -export const Secondary = Template.bind({}) - -Primary.storyName = "Bill Introduced" -Secondary.storyName = "In Second Committee" - -Primary.args = { - tracker: { - id: "123", - court: 193, - label: { - status: Stage.billIntroduced, - attribution: "House", - createdAt: Timestamp.now() - }, - prediction: { - status: Stage.secondCommittee, - version: 2, - createdAt: Timestamp.now() - } - } -} - -Secondary.args = { - tracker: { - id: "123", - court: 193, - label: { - status: Stage.secondCommittee, - attribution: "House", - createdAt: Timestamp.now() - }, - prediction: { - status: Stage.secondCommittee, - version: 2, - createdAt: Timestamp.now() - } - } -} diff --git a/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx b/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx deleted file mode 100644 index 17cc46d68..000000000 --- a/stories_hold/organisms/billDetail/CurrentCommitteeCard.stories.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { CurrentCommitteeCard } from "../../components/CurrentCommitteeCard/CurrentCommitteeCard" - -export default createMeta({ - title: "Bill Detail/CurrentCommitteeCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=159%3A4939", - component: CurrentCommitteeCard -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) -Primary.args = { chamber: "House", committee: "Committee of Ways and Means" } diff --git a/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx b/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx deleted file mode 100644 index c8dc7f5ea..000000000 --- a/stories_hold/organisms/billDetail/TestimonyCounts.stories.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { TestimonyCounts } from "components/bill/TestimonyCounts" -import { BillProps } from "components/bill/types" - -export default createMeta({ - title: "Organisms/Bill Detail/TestimonyCounts", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", - component: TestimonyCounts -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) - -Primary.args = { - bill: { - testimonyCount: 23, - neutralCount: 12, - endorseCount: 14, - opposeCount: 2 - } -} as Partial - -Primary.storyName = "TestimonyCounts" diff --git a/stories_hold/pages/BillDetails.stories.tsx b/stories_hold/pages/BillDetails.stories.tsx index 04f6e499e..02c83d3d9 100644 --- a/stories_hold/pages/BillDetails.stories.tsx +++ b/stories_hold/pages/BillDetails.stories.tsx @@ -4,7 +4,7 @@ import { BillDetails } from "components/bill/BillDetails" import { Providers } from "components/providers" import { wrapper } from "components/store" import { Provider as Redux } from "react-redux" -import { bill } from "../organisms/billDetail/MockBillData" +import { bill } from "../../stories/organisms/billDetail/MockBillData" export default createMeta({ title: "Pages/BillDetails", From bfe927c760795c09f789ce2f9ad14dcb3eae2f28 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 16:09:34 -0500 Subject: [PATCH 15/21] continue Cs2 => Cs3 --- .../organisms/cards/Card.stories.tsx | 24 +++++---- .../organisms/cards/CardListItem.stories.tsx | 51 +++++++++++++++++++ .../organisms/cards/CardListItems.stories.tsx | 44 ++++++++++++++++ .../organisms/cards/CardTitle.stories.tsx | 0 .../organisms/cards/SeeMore.stories.tsx | 0 .../organisms/cards/CardListItem.stories.tsx | 39 -------------- 6 files changed, 109 insertions(+), 49 deletions(-) rename {stories_hold => stories}/organisms/cards/Card.stories.tsx (94%) create mode 100644 stories/organisms/cards/CardListItem.stories.tsx create mode 100644 stories/organisms/cards/CardListItems.stories.tsx rename {stories_hold => stories}/organisms/cards/CardTitle.stories.tsx (100%) rename {stories_hold => stories}/organisms/cards/SeeMore.stories.tsx (100%) delete mode 100644 stories_hold/organisms/cards/CardListItem.stories.tsx diff --git a/stories_hold/organisms/cards/Card.stories.tsx b/stories/organisms/cards/Card.stories.tsx similarity index 94% rename from stories_hold/organisms/cards/Card.stories.tsx rename to stories/organisms/cards/Card.stories.tsx index 35ce222a5..9608647fe 100644 --- a/stories_hold/organisms/cards/Card.stories.tsx +++ b/stories/organisms/cards/Card.stories.tsx @@ -1,14 +1,16 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { string } from "yargs" -import { Card } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/Card", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8338", +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { Card } from "components/Card" + +const meta: Meta = { + + title: "Organisms/Cards/Card", component: Card -}) +} + +export default meta + +type Story = StoryObj + const CustomBody = () => { var misfits = ["Danzig", "Only", "Doyle", "Googy"] @@ -53,6 +55,8 @@ const Template: ComponentStory = ({ ) } + + export const Primary = Template.bind({}) Primary.args = { header: "Header" diff --git a/stories/organisms/cards/CardListItem.stories.tsx b/stories/organisms/cards/CardListItem.stories.tsx new file mode 100644 index 000000000..0aa74d080 --- /dev/null +++ b/stories/organisms/cards/CardListItem.stories.tsx @@ -0,0 +1,51 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { createMeta } from "stories/utils" +import { ListItem } from "components/Card" + +const meta: Meta = { + + title: "Organisms/Cards/CardListItem", + component: ListItem +} + +export default meta + +type Story = StoryObj + + + + +export const Primary: Story = { + args: { + billName: "H.3330", + billDescription: "Important bill, must vote!", + element: undefined + } +} + +export const OnlyBillName: Story = { + args: { + billName: "H.3330" + } +} + +export const MultipleItems = Template.bind({}) +MultipleItems.args = { + items: [ + , + , + + ] +} diff --git a/stories/organisms/cards/CardListItems.stories.tsx b/stories/organisms/cards/CardListItems.stories.tsx new file mode 100644 index 000000000..0447ca15b --- /dev/null +++ b/stories/organisms/cards/CardListItems.stories.tsx @@ -0,0 +1,44 @@ +import { Meta, StoryObj } from "@storybook/react" +import { CardListItems, ListItem } from "components/Card" +import { Primary as PrimaryListItem } from './CardListItem.stories' + + +const meta: Meta = { + title: "Organisms/Cards/CardListItem", + component: CardListItems +} + +export default meta + +type Story = StoryObj + + + + +export const Primary: Story = { + args: { + items: [ + , + + ] + } +} + +export const OnlyBillName = Template.bind({}) +OnlyBillName.args = { + items: [] +} + +export const MultipleItems = Template.bind({}) +MultipleItems.args = { + items: [ + , + , + + ] +} diff --git a/stories_hold/organisms/cards/CardTitle.stories.tsx b/stories/organisms/cards/CardTitle.stories.tsx similarity index 100% rename from stories_hold/organisms/cards/CardTitle.stories.tsx rename to stories/organisms/cards/CardTitle.stories.tsx diff --git a/stories_hold/organisms/cards/SeeMore.stories.tsx b/stories/organisms/cards/SeeMore.stories.tsx similarity index 100% rename from stories_hold/organisms/cards/SeeMore.stories.tsx rename to stories/organisms/cards/SeeMore.stories.tsx diff --git a/stories_hold/organisms/cards/CardListItem.stories.tsx b/stories_hold/organisms/cards/CardListItem.stories.tsx deleted file mode 100644 index 9e5789fd0..000000000 --- a/stories_hold/organisms/cards/CardListItem.stories.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { CardListItems, ListItem } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/CardListItem", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2727", - component: CardListItems -}) - -const Template: ComponentStory = ({ items, ...rest }) => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - items: [ - - ] -} - -export const OnlyBillName = Template.bind({}) -OnlyBillName.args = { - items: [] -} - -export const MultipleItems = Template.bind({}) -MultipleItems.args = { - items: [ - , - , - - ] -} From 957451d0b67bb606aa930bdd215ad10b91a8d1bd Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 16:33:30 -0500 Subject: [PATCH 16/21] continue csf2 => csf3 --- components/AlertCard/AlertCard.tsx | 2 +- stories/atoms/Icons.stories.tsx | 24 ++-- stories/atoms/ValuePlaqu.stories.tsx | 10 +- .../billDetail/BillSponsorCard.stories.tsx | 11 -- stories/billDetail/BillStatus.stories.tsx | 30 ---- .../BillTestimonyListCard.stories.tsx | 53 ------- .../CurrentCommitteeCard.stories.tsx | 17 --- .../billDetail/OrgPriorityCard.stories.tsx | 100 ------------- stories/billDetail/OrgPriorityCard.tsx | 66 --------- stories/components/OrgAvatar.stories.tsx | 48 ------- stories/components/OrgAvatar.tsx | 92 ------------ stories/components/page/Banner.stories.tsx | 31 ---- .../components/page/PageFooter.stories.tsx | 41 ------ .../components/page/PageHeader.stories.tsx | 22 --- .../page/buttons/DropdownButton.stories.tsx | 20 --- .../page/buttons/LoadingButton.stories.tsx | 123 ---------------- .../buttons/PrimaryButtonWithIcon.stories.tsx | 134 ------------------ .../page/buttons/PrimaryButtonWithIcon.tsx | 49 ------- .../page/buttons/TableButton.stories.tsx | 13 -- .../page/buttons/Tooltip.stories.tsx | 62 -------- stories/profile/OrgTitle.stories.tsx | 13 -- stories/testStory.stories.tsx | 105 -------------- .../BillTestimonyListCard.stories.tsx | 53 ------- 23 files changed, 23 insertions(+), 1096 deletions(-) delete mode 100644 stories/billDetail/BillSponsorCard.stories.tsx delete mode 100644 stories/billDetail/BillStatus.stories.tsx delete mode 100644 stories/billDetail/BillTestimonyListCard.stories.tsx delete mode 100644 stories/billDetail/CurrentCommitteeCard.stories.tsx delete mode 100644 stories/billDetail/OrgPriorityCard.stories.tsx delete mode 100644 stories/billDetail/OrgPriorityCard.tsx delete mode 100644 stories/components/OrgAvatar.stories.tsx delete mode 100644 stories/components/OrgAvatar.tsx delete mode 100644 stories/components/page/Banner.stories.tsx delete mode 100644 stories/components/page/PageFooter.stories.tsx delete mode 100644 stories/components/page/PageHeader.stories.tsx delete mode 100644 stories/components/page/buttons/DropdownButton.stories.tsx delete mode 100644 stories/components/page/buttons/LoadingButton.stories.tsx delete mode 100644 stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx delete mode 100644 stories/components/page/buttons/PrimaryButtonWithIcon.tsx delete mode 100644 stories/components/page/buttons/TableButton.stories.tsx delete mode 100644 stories/components/page/buttons/Tooltip.stories.tsx delete mode 100644 stories/profile/OrgTitle.stories.tsx delete mode 100644 stories/testStory.stories.tsx delete mode 100644 stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx diff --git a/components/AlertCard/AlertCard.tsx b/components/AlertCard/AlertCard.tsx index d1a6ab211..75193f4fe 100644 --- a/components/AlertCard/AlertCard.tsx +++ b/components/AlertCard/AlertCard.tsx @@ -3,7 +3,7 @@ import { Card as MapleCard } from "../Card/Card" import { AlertCardBody } from "./AlertCardBody" import { Timestamp } from "firebase/firestore" import styles from "./AlertCard.module.css" -import OrgPriorityCardStories from "stories/billDetail/OrgPriorityCard.stories" +import OrgPriorityCardStories from "stories_hold/organisms/billDetail/OrgPriorityCard.stories" export const AlertCard = (props: { header: string diff --git a/stories/atoms/Icons.stories.tsx b/stories/atoms/Icons.stories.tsx index 5f05d7f5c..bf6f9745b 100644 --- a/stories/atoms/Icons.stories.tsx +++ b/stories/atoms/Icons.stories.tsx @@ -16,16 +16,22 @@ const meta: Meta = { component: IconStories } -export const Primary = () => { - return ( - - - - - +export const Primary = { + + args: { + children: ( + + {/* + + + */} +
TODO
- ) + ) + + }, name: "Icons" } -Primary.storyName = "Icons" + + export default meta \ No newline at end of file diff --git a/stories/atoms/ValuePlaqu.stories.tsx b/stories/atoms/ValuePlaqu.stories.tsx index 151878418..79f11efb4 100644 --- a/stories/atoms/ValuePlaqu.stories.tsx +++ b/stories/atoms/ValuePlaqu.stories.tsx @@ -1,9 +1,13 @@ import { Meta, StoryObj } from "@storybook/react" -import { ValuePlaque } from "components/Policies/ValuePlaque" +// import { ValuePlaque } from "components/Policies/ValuePlaque" import { Providers } from "components/providers" import { wrapper } from "components/store" import { Provider as Redux } from "react-redux" +const ValuePlaque = () => { + return
TODO
+} + const meta: Meta = { title: "Atoms/Plaque", component: ValuePlaque, @@ -29,9 +33,9 @@ export const Primary: Story = { src: "handShake.jpg", alt: "hand shake", title: "Humility" - } + }, + name: "ValuePlaque" } -Primary.storyName = "ValuePlaque" export default meta \ No newline at end of file diff --git a/stories/billDetail/BillSponsorCard.stories.tsx b/stories/billDetail/BillSponsorCard.stories.tsx deleted file mode 100644 index 7c96cf02b..000000000 --- a/stories/billDetail/BillSponsorCard.stories.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const BillSponsorCard = () =>
TODO
- -export default createMeta({ - title: "Bill Detail/BillSponsorCard", - component: BillSponsorCard -}) - -export const Primary = () => diff --git a/stories/billDetail/BillStatus.stories.tsx b/stories/billDetail/BillStatus.stories.tsx deleted file mode 100644 index 5d0f702ee..000000000 --- a/stories/billDetail/BillStatus.stories.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { ComponentStory, Meta } from "@storybook/react" -import BillTrackerConnectedView from "components/bill/BillTracker" -import { Status } from "components/bill/Status" -import { BillProps } from "components/bill/types" -import { Timestamp } from "firebase/firestore" -import { Stage } from "functions/src/analysis/types" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Bill Detail/BillStatus", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=249%3A18636", - component: BillTrackerConnectedView -}) - -const Template: ComponentStory = props => { - return ( -
-
- -
-
- ) -} - -export const Primary = Template.bind({}) - -Primary.args = { - bill: { id: "H4002" } -} as Partial diff --git a/stories/billDetail/BillTestimonyListCard.stories.tsx b/stories/billDetail/BillTestimonyListCard.stories.tsx deleted file mode 100644 index d2dff17c6..000000000 --- a/stories/billDetail/BillTestimonyListCard.stories.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { BillTestimonies } from "../../components/bill/BillTestimonies" -import { Timestamp } from "firebase/firestore" - -// TODO: move into components directory -const BillTestimonyListCard = BillTestimonies - -export default createMeta({ - title: "Bill Detail/BillTestimonyListCard", - figmaUrl: - "https://www.figma.com/file/oMNmgiqDGTMco2v54gOW3b/MAPLE-Soft-Launch-(Mar-2023)?node-id=4009%3A15950&t=3gd7s59zbYBA1CZP-4", - component: BillTestimonyListCard -}) - -var first = { Id: "test", Name: "tes", Type: 0 } - -const Template: ComponentStory = props => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - bill: { - id: "H805", - court: 192, - content: { - Title: - "An Act fostering voting opportunities, trust, equity, and security", - BillNumber: "H805", - DocketNumber: "string", - GeneralCourtNumber: 999, - PrimarySponsor: first, - Cosponsors: [first], - LegislationTypeName: "string", - Pinslip: "string", - DocumentText: "string" - }, - cosponsorCount: 0, - testimonyCount: 0, - endorseCount: 0, - opposeCount: 0, - neutralCount: 0, - fetchedAt: Timestamp.fromMillis(0), - history: [ - { - Date: "1", - Branch: "1", - Action: "1" - } - ] - } -} diff --git a/stories/billDetail/CurrentCommitteeCard.stories.tsx b/stories/billDetail/CurrentCommitteeCard.stories.tsx deleted file mode 100644 index 17cc46d68..000000000 --- a/stories/billDetail/CurrentCommitteeCard.stories.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { CurrentCommitteeCard } from "../../components/CurrentCommitteeCard/CurrentCommitteeCard" - -export default createMeta({ - title: "Bill Detail/CurrentCommitteeCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=159%3A4939", - component: CurrentCommitteeCard -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) -Primary.args = { chamber: "House", committee: "Committee of Ways and Means" } diff --git a/stories/billDetail/OrgPriorityCard.stories.tsx b/stories/billDetail/OrgPriorityCard.stories.tsx deleted file mode 100644 index 403fb1a1a..000000000 --- a/stories/billDetail/OrgPriorityCard.stories.tsx +++ /dev/null @@ -1,100 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { OrgItem, OrgPriorityCard } from "./OrgPriorityCard" - -export default createMeta({ - title: "Bill Detail/OrgPriorityCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16629", - component: OrgPriorityCard -}) - -const Template: ComponentStory = args => ( - -) - -const orgs2: OrgItem[] = [ - { - id: "qewhtfb001", - name: "Moms for Liberty", - orgImageSrc: "/MFL.png", - position: "neutral" - }, - { - id: "qewhtfb002", - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" - }, - { - id: "qewhtfb003", - name: "Parents Defending Education", - orgImageSrc: "/PDE.png", - position: "oppose" - }, - { - id: "qewhtfb004", - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" - } -] - -const orgs3: OrgItem[] = [ - { - id: "qewhtfb001", - name: "Moms for Liberty", - orgImageSrc: "/MFL.png", - position: "neutral" - }, - { - id: "qewhtfb002", - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" - }, - { - id: "qewhtfb003", - name: "Parents Defending Education", - orgImageSrc: "/PDE.png", - position: "oppose" - }, - { - id: "qewhtfb004", - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" - }, - { - id: "qewhtfb005", - name: "Moms for Liberty", - orgImageSrc: "/MFL.png", - position: "neutral" - }, - { - id: "qewhtfb006", - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" - }, - { - id: "qewhtfb007", - name: "Parents Defending Education", - orgImageSrc: "/PDE.png", - position: "oppose" - } -] - -export const Primary = Template.bind({}) -Primary.args = { - header: "Organisation Prioritizing this Bill", - subheader: "Prioritizing Bill H.3340", - orgs: orgs2 -} - -export const Secondary = Template.bind({}) -Secondary.args = { - header: "Organisation Prioritizing this Bill", - subheader: "Prioritizing Bill H.3340", - orgs: orgs3 -} diff --git a/stories/billDetail/OrgPriorityCard.tsx b/stories/billDetail/OrgPriorityCard.tsx deleted file mode 100644 index 5006e5148..000000000 --- a/stories/billDetail/OrgPriorityCard.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { Card, SeeMore } from "components/Card" -import { Position } from "components/db" -import { Key } from "react" -import { OrgAvatar } from "stories/components/OrgAvatar" -import styled from "styled-components" -import { FC } from "react" -import { chunk } from "lodash" - -export interface OrgItem { - id: Key | null | undefined - name: string - orgImageSrc: string - position: Position -} -interface OrgProps { - header: string - subheader: string - orgs?: Array -} -const Wrapper = styled.div` - width: fit-content; - display: grid; - - .cardBody { - display: flex; - justify-content: flex-start; - overflow-x: auto; - } - - .solid { - border-top: 2px solid var(--bs-gray-700); - padding: 0rem; - } -` - -const OrgRow: FC<{ orgs: OrgItem[] }> = ({ orgs }) => { - return ( -
- {orgs?.map(org => { - return ( - - ) - })} -
- ) -} - -export const OrgPriorityCard: FC = props => { - return ( - - ( - - ))} - /> - - ) -} diff --git a/stories/components/OrgAvatar.stories.tsx b/stories/components/OrgAvatar.stories.tsx deleted file mode 100644 index eab3ee80c..000000000 --- a/stories/components/OrgAvatar.stories.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { createMeta } from "stories/utils" -import { OrgAvatar } from "stories/components/OrgAvatar" -import { ComponentStory } from "@storybook/react" - -export default createMeta({ - title: "Components/Avatar", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16634", - component: OrgAvatar -}) - -const Template: ComponentStory = args => ( - -) - -export const AvatarWithTitle = Template.bind({}) -AvatarWithTitle.args = { - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" -} - -export const AvatarWithoutTitle = Template.bind({}) -AvatarWithoutTitle.args = { - orgImageSrc: "/BFD.png", - position: "endorse" -} - -export const EndorsedAvatar = Template.bind({}) -EndorsedAvatar.args = { - name: "Boston Fire Department Union", - orgImageSrc: "/BFD.png", - position: "endorse" -} - -export const RejectedAvatar = Template.bind({}) -RejectedAvatar.args = { - name: "Parents Defending Education", - orgImageSrc: "/PDE.png", - position: "neutral" -} - -export const NeutralAvatar = Template.bind({}) -NeutralAvatar.args = { - name: "Moms for Liberty", - orgImageSrc: "/MFL.png", - position: "neutral" -} diff --git a/stories/components/OrgAvatar.tsx b/stories/components/OrgAvatar.tsx deleted file mode 100644 index f88363fbd..000000000 --- a/stories/components/OrgAvatar.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import { FC } from "react" -import styled from "styled-components" -import { Position } from "components/db" - -const ImageContainer = styled.div` - width: 87px; - height: 87px; - border: 2.5px solid; - border-radius: 50%; - position: relative; - - .orgLogo { - width: 100%; - height: 100%; - border-radius: 50%; - object-fit: contain; - border: 2.5px solid white; - } - - .stanceIcon { - width: 1.5rem; - height: 1.5rem; - position: absolute; - bottom: -0.75rem; - left: calc(50% - 0.75rem); - } -` - -const OrgAvatarContainer = styled.div` - width: 124px; - height: 133px; - display: flex; - flex-direction: column; - align-items: center; - - p { - font-family: Nunito; - font-size: 12px; - text-align: center; - letter-spacing: 0.03em; - line-height: 1rem; - margin-top: 0.5rem; - } -` - -interface Props { - name: string - orgImageSrc: string - position: Position -} - -type ItemStance = { - position: string - svg: string - shade: string -} - -export const positionObj = [ - { - position: "endorse", - svg: "/thumbs-endorse.svg", - shade: "var(--bs-green)" - }, - { - position: "oppose", - svg: "/thumbs-oppose.svg", - shade: "var(--bs-orange)" - }, - { - position: "neutral", - svg: "/thumbs-neutral.svg", - shade: "var(--bs-dark-blue)" - } -] - -export const OrgAvatar: FC = ({ orgImageSrc, name, position }) => { - const obj: ItemStance = positionObj.find( - stand => stand.position === position - )! - - return ( - <> - - - {name} - {obj.position} - -

{name}

-
- - ) -} diff --git a/stories/components/page/Banner.stories.tsx b/stories/components/page/Banner.stories.tsx deleted file mode 100644 index 3206fbcee..000000000 --- a/stories/components/page/Banner.stories.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import type { Meta, StoryObj } from "@storybook/react" -import { MessageBanner } from "components/shared/MessageBanner" - -<<<<<<< HEAD:stories/components/page/Banner.stories.tsx -export default createMeta({ - title: "Components/Page/MessageBanner", - figmaUrl: - "https://www.figma.com/file/DsC9Nzanyb5bXsQfZ3veO9/2023-Base-File?type=design&node-id=3873-31947&mode=dev", - component: MessageBanner -}) -======= ->>>>>>> a0c13140... begins upgrading stories:stories/molecules/Banner.stories.tsx - -const meta: Meta = { - component: MessageBanner, -} -export default meta - -type Story = StoryObj - - -export const Primary: Story = { - args: { - heading: "Organization Request In Progress", - content: - "Your request to be updated to an organization is currently in progress, you will be notified my email on if your request has been approved or denied.", - className: "", - icon: "/Clock.svg" - }, - name: "MessageBanner" -} \ No newline at end of file diff --git a/stories/components/page/PageFooter.stories.tsx b/stories/components/page/PageFooter.stories.tsx deleted file mode 100644 index 51252671b..000000000 --- a/stories/components/page/PageFooter.stories.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { Providers } from "components/providers" -import { wrapper } from "components/store" -import { Provider as Redux } from "react-redux" -import { createMeta } from "stories/utils" -import PageFooter from "../../../components/Footer/Footer" - -// import i18n from "i18next" - -export default createMeta({ - title: "Components/Page/PageFooter", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", - component: PageFooter -}) - -const Template: ComponentStory = args => { - return -} - -export const Primary = Template.bind({}) - -Primary.decorators = [ - (Story, ...rest) => { - const { store, props } = wrapper.useWrappedStore(...rest) - - return ( - - - - - - ) - } -] - -Primary.args = { - authenticated: true, - user: null, - signOut: () => {} -} diff --git a/stories/components/page/PageHeader.stories.tsx b/stories/components/page/PageHeader.stories.tsx deleted file mode 100644 index 5690a7335..000000000 --- a/stories/components/page/PageHeader.stories.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { createMeta } from "stories/utils" -import HeroHeader from "components/HeroHeader/HeroHeader" -import { ComponentStory } from "@storybook/react" -import { appWithTranslation } from "next-i18next" - -// TODO: move into components directory -// const PageHeader = () =>
TODO
- -export default createMeta({ - title: "Components/Page/PageHeader", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A6642", - component: HeroHeader -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) - -Primary.args = { authenticated: true } diff --git a/stories/components/page/buttons/DropdownButton.stories.tsx b/stories/components/page/buttons/DropdownButton.stories.tsx deleted file mode 100644 index 8ff3be256..000000000 --- a/stories/components/page/buttons/DropdownButton.stories.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { createMeta } from "stories/utils" -import DropdownButton from "components/DropdownButton/DropdownButton" -import { ComponentStory, Meta, StoryObj } from "@storybook/react" - -const meta: Meta = { - title: "Molecules/Buttons/DropdownButton", - component: DropdownButton -} - -/* export const Primary = () => */ - -export default meta - -type Story = StoryObj - -export const Primary: Story = { - args: { - children: ["Action 5", "Action 6", "Action 7"] - } -} diff --git a/stories/components/page/buttons/LoadingButton.stories.tsx b/stories/components/page/buttons/LoadingButton.stories.tsx deleted file mode 100644 index 0c41a0cc6..000000000 --- a/stories/components/page/buttons/LoadingButton.stories.tsx +++ /dev/null @@ -1,123 +0,0 @@ -/* eslint-disable import/no-anonymous-default-export */ -import { Title } from "@storybook/addon-docs" -import { Meta, StoryObj } from "@storybook/react" -import { Image, Stack } from "components/bootstrap" -import { LoadingButton } from "components/buttons" - -const meta: Meta = { - title: "Molecules/Buttons/LoadingButton", - component: LoadingButton, - parameters: { - docs: { - page: () => ( - - Loading Buttons - - {/* - - - - */} - - ) - } - } -} - -export default meta - -type Story = StoryObj - -// export const RenderFunc: StoryObj = { -// args: { -// disabled: false, -// loading: false, -// }, -// render: ({children, disabled=false, loading=false, ...rest}) => { -// const [isLoading, setLoading] = useState(loading) -// const clickAction = () => { -// setLoading(true) -// return setTimeout(() => setLoading(false), 2000) -// } -// return ( -// -// {children} -// -// ) -// } -// } - -// const Template: ComponentStory = ({ -// children, -// disabled = false, -// loading = false, -// ...rest -// }) => { -// const [isLoading, setLoading] = useState(loading) -// const clickAction = () => { -// setLoading(true) -// return setTimeout(() => setLoading(false), 2000) -// } -// return ( -// -// {children} -// -// ) -// } - -export const Primary: Story = { - args: { - children: "Click Me!" - } -} - -export const Disabled: Story = { - args: { - disabled: true, - children: "Disabled" - } -} - -export const Loading: Story = { - args: { - loading: true, - children: "Loading" - } -} - -export const Light: Story = { - args: { - variant: "light", - children: "Light" - } -} - -export const WithImage: Story = { - args: { - variant: "light", - spinnerProps: { className: "me-4" }, - children: ( - <> - Google - With Image - - ) - } -} - -// export const LightWithImage = () => ( -// -// -// Loading Button -// -// ) diff --git a/stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx b/stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx deleted file mode 100644 index 24433b41c..000000000 --- a/stories/components/page/buttons/PrimaryButtonWithIcon.stories.tsx +++ /dev/null @@ -1,134 +0,0 @@ -import { Title } from "@storybook/addon-docs" -import { Meta, StoryObj } from "@storybook/react" -import { Stack } from "react-bootstrap" -import Image from "react-bootstrap/Image" -import { - PrimaryButtonWithIcon, - PrimaryButtonWithIconProps -} from "./PrimaryButtonWithIcon" - -const Icon = () => - -const pageArgs: PrimaryButtonWithIconProps = { - iconPosition: "left", - label: "Label", - onClick: () => { }, - Icon: , - disabled: false -} - - -const meta: Meta = { - - title: "Molecules/Buttons/PrimaryButtonWithIcon", - component: PrimaryButtonWithIcon, - parameters: { - background: "light", - docs: { - page: () => ( - - Primary Button With Icon - {/* - - */} - - ) - } - }, - args: { - iconPosition: "left", - label: "Label", - onClick: () => { }, - Icon: , - disabled: false - } -} -export default meta - -type Story = StoryObj - - -export const Primary: Story = { - args: { - variant: "primary" - } -} - -export const Secondary: Story = { - args: { - variant: "outline-secondary" - } -} - -export const Tertiary: Story = { - args: { - variant: "none" - } -} - -export const ButtonStack = (args: PrimaryButtonWithIconProps) => { - return ( - - { }} - label="Default" - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - { }} - label="Primary-Disabled" - disabled - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - { }} - label="Outline" - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - - { }} - label="Outline-Primary-Disabled" - disabled - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - { }} - label="Secondary" - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - { }} - label="Outline-Secondary-Disabled" - disabled - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - { }} - label="Tertiary" - className="col-1" - Icon={} - iconPosition={args.iconPosition} - /> - - ) -} diff --git a/stories/components/page/buttons/PrimaryButtonWithIcon.tsx b/stories/components/page/buttons/PrimaryButtonWithIcon.tsx deleted file mode 100644 index 4e88f7c55..000000000 --- a/stories/components/page/buttons/PrimaryButtonWithIcon.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import React from "react" -import { Button, ButtonProps } from "react-bootstrap" -import styled from "styled-components" - -export type PrimaryButtonWithIconProps = { - label: string - onClick: () => void - Icon?: JSX.Element - iconPosition?: "left" | "right" -} & ButtonProps - -export const PrimaryButtonWithIcon: React.FC = styled( - ({ - label, - onClick, - className, - Icon, - iconPosition, - ...rest - }: PrimaryButtonWithIconProps) => { - return ( - - ) - } -)` - min-width: fit-content; - &:disabled { - background-color: var(--bs-gray-500); - border-color: var(--bs-gray-500); - color: black; - opacity: 1; - } -` diff --git a/stories/components/page/buttons/TableButton.stories.tsx b/stories/components/page/buttons/TableButton.stories.tsx deleted file mode 100644 index fe8626ad4..000000000 --- a/stories/components/page/buttons/TableButton.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable import/no-anonymous-default-export */ -import { TableButton } from "../../../components/buttons" - -export default { - title: "Components/Buttons/TableButton", - component: TableButton -} - -export const Primary = () => ( - - <>Table Button - -) diff --git a/stories/components/page/buttons/Tooltip.stories.tsx b/stories/components/page/buttons/Tooltip.stories.tsx deleted file mode 100644 index e1a521715..000000000 --- a/stories/components/page/buttons/Tooltip.stories.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { TooltipButton } from "components/buttons" -import { Container, Stack } from "react-bootstrap" -import { createMeta } from "stories/utils" - - - -const meta: Meta = { - title: "Molecules/Buttons/Tooltip Button", - component: TooltipButton, - parameters: { - docs: { - page: () => ( - - {/* - - */} - - ) - } - }, - decorators: [ - Story => { - return ( - - - - ) - } - ] -} -export default meta - - - -type Story = StoryObj - - -export const Primary: Story = { - args: { - tooltip: "this is a tool tip", - text: "hover", - variant: "primary" - } -} - - -export const Secondary: Story = { - args: { - tooltip: "this is a tool tip", - text: "hover", - variant: "secondary" - } -} - -export const Success: Story = { - args: { - tooltip: "this is a tool tip", - text: "hover", - variant: "success" - } -} diff --git a/stories/profile/OrgTitle.stories.tsx b/stories/profile/OrgTitle.stories.tsx deleted file mode 100644 index 0e8ebb31f..000000000 --- a/stories/profile/OrgTitle.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const OrgTitle = () =>
TODO
- -export default createMeta({ - title: "Profile/OrgTitle", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8111", - component: OrgTitle -}) - -export const Primary = () => diff --git a/stories/testStory.stories.tsx b/stories/testStory.stories.tsx deleted file mode 100644 index 31e58d8e5..000000000 --- a/stories/testStory.stories.tsx +++ /dev/null @@ -1,105 +0,0 @@ -import { ComponentStory, Meta, Story } from "@storybook/react" -import { - Button, - ButtonGroup, - Col, - ColProps, - Container, - Row, - Stack -} from "react-bootstrap" -import { createMeta } from "./utils" -import { useState } from "react" - -const themeColors = [ - "primary", - "secondary", - "success", - "danger", - "warning", - "info", - "light", - "dark", - "link" -] - -type themeColorsType = (typeof themeColors)[number] - -type TestProps = Partial<{ - buttonList: themeColorsType[] - title: string - activeColor: (typeof themeColors)[number] - inactiveColor: (typeof themeColors)[number] -}> - -const TestStory = ({ - buttonList, - activeColor, - inactiveColor, - title -}: TestProps) => { - const [active, setActive] = useState() - - const [titleColor, setTitleColor] = useState< - themeColorsType[number] | undefined - >(buttonList?.[0]) - - const onClick = (event: React.MouseEvent) => { - setActive(event.currentTarget.innerText) - setTitleColor(event.currentTarget.innerText) - } - - return ( - - - - {title} - - - {themeColors?.map((button, index) => ( - - ))} - - - - ) -} - -const meta: Meta = { - title: "Test Story", - component: TestStory, - parameters: { - docs: {} - } -} - -const Template: ComponentStory = args => ( - -) - -export const TestStoryBase = Template.bind({}) - -TestStoryBase.args = { - buttonList: themeColors, - title: "Test Story", - activeColor: "warning", - inactiveColor: "light" -} - -export default meta diff --git a/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx deleted file mode 100644 index d2dff17c6..000000000 --- a/stories_hold/organisms/billDetail/BillTestimonyListCard.stories.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { BillTestimonies } from "../../components/bill/BillTestimonies" -import { Timestamp } from "firebase/firestore" - -// TODO: move into components directory -const BillTestimonyListCard = BillTestimonies - -export default createMeta({ - title: "Bill Detail/BillTestimonyListCard", - figmaUrl: - "https://www.figma.com/file/oMNmgiqDGTMco2v54gOW3b/MAPLE-Soft-Launch-(Mar-2023)?node-id=4009%3A15950&t=3gd7s59zbYBA1CZP-4", - component: BillTestimonyListCard -}) - -var first = { Id: "test", Name: "tes", Type: 0 } - -const Template: ComponentStory = props => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - bill: { - id: "H805", - court: 192, - content: { - Title: - "An Act fostering voting opportunities, trust, equity, and security", - BillNumber: "H805", - DocketNumber: "string", - GeneralCourtNumber: 999, - PrimarySponsor: first, - Cosponsors: [first], - LegislationTypeName: "string", - Pinslip: "string", - DocumentText: "string" - }, - cosponsorCount: 0, - testimonyCount: 0, - endorseCount: 0, - opposeCount: 0, - neutralCount: 0, - fetchedAt: Timestamp.fromMillis(0), - history: [ - { - Date: "1", - Branch: "1", - Action: "1" - } - ] - } -} From 6b99adecf35975e492fef519c06d6426aacef35e Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 17:33:46 -0500 Subject: [PATCH 17/21] continue csf2 => csf3 --- components/bill/BillTracker.tsx | 2 +- stories/components/SocialIconLink.stories.tsx | 26 ++- stories/components/Tag.stories.tsx | 22 +- stories/components/cards/Card.stories.tsx | 201 ------------------ .../components/cards/CardListItem.stories.tsx | 39 ---- .../components/cards/CardTitle.stories.tsx | 57 ----- stories/components/cards/SeeMore.stories.tsx | 11 - .../BillCosponsorCard.stories.tsx | 13 -- .../BillOverviewCard.stories.tsx | 13 -- .../missionCenter/BillStatusCard.stories.tsx | 52 ----- .../missionCenter/DashboardTabs.stories.tsx | 13 -- .../missionCenter/OrgStanceCard.stories.tsx | 13 -- .../dashboard/newsfeed/AlertCard.stories.tsx | 65 ------ .../newsfeed/HotBillCard.stories.tsx | 70 ------ .../DashboardPriorityBillsCard.stories.tsx | 13 -- .../sidePanels/FollowingCard.stories.tsx | 66 ------ .../sidePanels/ProfileCard.stories.tsx | 17 -- .../sidePanels/ResourcesCard.stories.tsx | 11 - .../molecules/form-elements/Input.stories.tsx | 3 +- .../billDetail/BillSponsorCard.stories.tsx | 5 +- .../billDetail/BillStatus.stories.tsx | 9 +- .../BillTestimonyListCard.stories.tsx | 9 +- .../CurrentCommitteeCard.stories.tsx | 2 +- .../billDetail/TestimonyCounts.stories.tsx | 5 +- .../organisms/cards/CardListItem.stories.tsx | 32 +-- .../organisms/cards/CardListItems.stories.tsx | 34 +-- stories/organisms/cards/CardTitle.stories.tsx | 52 +---- stories/organisms/cards/SeeMore.stories.tsx | 11 +- stories/profile/BioCard.stories.tsx | 13 -- stories/profile/ContactInfo.stories.tsx | 44 ---- stories/profile/PriorityBillsCard.stories.tsx | 127 ----------- .../profile/UserTestimonyListCard.stories.tsx | 13 -- stories/typography/Typography.stories.tsx | 30 --- .../buttons/ButtonGroup.stories.tsx | 0 .../buttons/DropdownButton.stories.tsx | 2 +- .../buttons/LoadingButton.stories.tsx | 2 +- .../buttons/PrimaryButtonWithIcon.stories.tsx | 0 .../buttons/PrioritizeButton.stories.tsx | 0 .../buttons/TableButton.stories.tsx | 2 +- 39 files changed, 72 insertions(+), 1027 deletions(-) delete mode 100644 stories/components/cards/Card.stories.tsx delete mode 100644 stories/components/cards/CardListItem.stories.tsx delete mode 100644 stories/components/cards/CardTitle.stories.tsx delete mode 100644 stories/components/cards/SeeMore.stories.tsx delete mode 100644 stories/dashboard/missionCenter/BillCosponsorCard.stories.tsx delete mode 100644 stories/dashboard/missionCenter/BillOverviewCard.stories.tsx delete mode 100644 stories/dashboard/missionCenter/BillStatusCard.stories.tsx delete mode 100644 stories/dashboard/missionCenter/DashboardTabs.stories.tsx delete mode 100644 stories/dashboard/missionCenter/OrgStanceCard.stories.tsx delete mode 100644 stories/dashboard/newsfeed/AlertCard.stories.tsx delete mode 100644 stories/dashboard/newsfeed/HotBillCard.stories.tsx delete mode 100644 stories/dashboard/sidePanels/DashboardPriorityBillsCard.stories.tsx delete mode 100644 stories/dashboard/sidePanels/FollowingCard.stories.tsx delete mode 100644 stories/dashboard/sidePanels/ProfileCard.stories.tsx delete mode 100644 stories/dashboard/sidePanels/ResourcesCard.stories.tsx delete mode 100644 stories/profile/BioCard.stories.tsx delete mode 100644 stories/profile/ContactInfo.stories.tsx delete mode 100644 stories/profile/PriorityBillsCard.stories.tsx delete mode 100644 stories/profile/UserTestimonyListCard.stories.tsx delete mode 100644 stories/typography/Typography.stories.tsx rename {stories/components => stories_hold}/buttons/ButtonGroup.stories.tsx (100%) rename {stories/components => stories_hold}/buttons/DropdownButton.stories.tsx (90%) rename {stories/components => stories_hold}/buttons/LoadingButton.stories.tsx (96%) rename {stories/components => stories_hold}/buttons/PrimaryButtonWithIcon.stories.tsx (100%) rename {stories/components => stories_hold}/buttons/PrioritizeButton.stories.tsx (100%) rename {stories/components => stories_hold}/buttons/TableButton.stories.tsx (80%) diff --git a/components/bill/BillTracker.tsx b/components/bill/BillTracker.tsx index acae7431a..b774d6de2 100644 --- a/components/bill/BillTracker.tsx +++ b/components/bill/BillTracker.tsx @@ -14,7 +14,7 @@ export default function BillTrackerConnectedView({ ) : null } -const BillTrackerView = ({ +export const BillTrackerView = ({ tracker, className }: { diff --git a/stories/components/SocialIconLink.stories.tsx b/stories/components/SocialIconLink.stories.tsx index 3ba47c681..734657c9e 100644 --- a/stories/components/SocialIconLink.stories.tsx +++ b/stories/components/SocialIconLink.stories.tsx @@ -1,17 +1,21 @@ -import { createMeta } from "../utils" +import { Meta, StoryObj } from "@storybook/react" import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" -export default createMeta({ + +const meta: Meta = { title: "Components/SocialIconLink", - figmaUrl: - "https://www.figma.com/file/Uyh2NXGTCX60mkse2NVBH7/MAPLE?node-id=1866%3A22187&t=3xgP9SclEre3LNeo-4", component: SocialIconLink -}) +} + +export default meta -export const Primary = () => ( - + +export const Primary : Story = { + render: args => -) +} + diff --git a/stories/components/Tag.stories.tsx b/stories/components/Tag.stories.tsx index d6d178c0c..64534e719 100644 --- a/stories/components/Tag.stories.tsx +++ b/stories/components/Tag.stories.tsx @@ -1,21 +1,17 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" +import { ComponentStory, Meta, StoryObj } from "@storybook/react" import { Tag } from "../../components/Tag/Tag" -export default createMeta({ +const meta:Meta = { title: "Components/Tag", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=231%3A13514", component: Tag -}) +} -const Template: ComponentStory = args => +export default meta -export const Senate = Template.bind({}) -Senate.args = { chamber: "senate" } +type Story = StoryObj -export const House = Template.bind({}) -House.args = { chamber: "house" } +export const Senate: Story = {args : { chamber: "senate" }} -export const Joint = Template.bind({}) -Joint.args = { chamber: "joint" } +export const House: Story = { args : { chamber: "house" } } + +export const Joint: Story = { args : { chamber: "joint" } } diff --git a/stories/components/cards/Card.stories.tsx b/stories/components/cards/Card.stories.tsx deleted file mode 100644 index 35ce222a5..000000000 --- a/stories/components/cards/Card.stories.tsx +++ /dev/null @@ -1,201 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { string } from "yargs" -import { Card } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/Card", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8338", - component: Card -}) - -const CustomBody = () => { - var misfits = ["Danzig", "Only", "Doyle", "Googy"] - return ( -
- -

- {misfits.map(misfit => { - return {misfit} - })} -

-
- ) -} - -const Template: ComponentStory = ({ - header, - subheader, - bodyText, - timestamp, - imgSrc, - cardItems, - inHeaderElement, - body, - ...rest -}) => { - return ( - - ) -} - -export const Primary = Template.bind({}) -Primary.args = { - header: "Header" -} - -export const HeaderAndSubheader = Template.bind({}) -HeaderAndSubheader.args = { - header: "Header", - subheader: "Subheader" -} - -export const HeaderAndSubheaderAndTimestamp = Template.bind({}) -HeaderAndSubheaderAndTimestamp.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM" -} -export const HeaderAndSubheaderAndTimestampAndInHeaderElement = Template.bind( - {} -) -HeaderAndSubheaderAndTimestampAndInHeaderElement.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - inHeaderElement: <>button here -} - -export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImg.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" -} - -export const HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement = - Template.bind({}) -HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - inHeaderElement: -} - -export const HeaderAndSubheaderAndTimestampAndImgAndBody = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImgAndBody.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - bodyText: "This is body text and it's nonsense placeholder and filler" -} - -export const HeaderAndSubheaderAndTimestampAndImgAndCustomBody = Template.bind( - {} -) -HeaderAndSubheaderAndTimestampAndImgAndCustomBody.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - body: -} - -export const HeaderAndSubheaderAndBodyAndTwoListItems = Template.bind({}) -HeaderAndSubheaderAndBodyAndTwoListItems.args = { - header: "Header", - subheader: "Subheader", - bodyText: "This is body text and it's nonsense placeholder and filler", - cardItems: [ - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - } - ] -} - -export const HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore = - Template.bind({}) -HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args = { - header: "Header", - subheader: "Subheader", - bodyText: "This is body text and it's nonsense placeholder and filler", - cardItems: [ - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - } - ] -} - -export const HeaderWithItemsAndItemElements = Template.bind({}) -HeaderWithItemsAndItemElements.args = { - ...HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args, - cardItems: - HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args.cardItems?.map( - item => { - return { ...item, element: } - } - ) -} - -export const HeaderWithItemsAndItemElementsAndBillNameElement = Template.bind( - {} -) -HeaderWithItemsAndItemElementsAndBillNameElement.args = { - ...HeaderWithItemsAndItemElements.args, - cardItems: HeaderWithItemsAndItemElements.args.cardItems?.map(item => { - return { ...item, billNameElement: } - }) -} diff --git a/stories/components/cards/CardListItem.stories.tsx b/stories/components/cards/CardListItem.stories.tsx deleted file mode 100644 index 9e5789fd0..000000000 --- a/stories/components/cards/CardListItem.stories.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { CardListItems, ListItem } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/CardListItem", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2727", - component: CardListItems -}) - -const Template: ComponentStory = ({ items, ...rest }) => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - items: [ - - ] -} - -export const OnlyBillName = Template.bind({}) -OnlyBillName.args = { - items: [] -} - -export const MultipleItems = Template.bind({}) -MultipleItems.args = { - items: [ - , - , - - ] -} diff --git a/stories/components/cards/CardTitle.stories.tsx b/stories/components/cards/CardTitle.stories.tsx deleted file mode 100644 index c60210b07..000000000 --- a/stories/components/cards/CardTitle.stories.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { CardTitle } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/CardTitle", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=110%3A2655", - component: CardTitle -}) - -const Template: ComponentStory = ({ - header, - subheader, - timestamp, - imgSrc, - ...rest -}) => { - return ( - - ) -} - -export const Primary = Template.bind({}) - -export const JustHeader = Template.bind({}) -JustHeader.args = { - header: "Header" -} - -export const HeaderAndSubheader = Template.bind({}) -HeaderAndSubheader.args = { - header: "Header", - subheader: "Subheader here don't miss it" -} - -export const HeaderAndSubheaderAndTimestamp = Template.bind({}) -HeaderAndSubheaderAndTimestamp.args = { - header: "Header", - subheader: "Subheader here don't miss it", - timestamp: "3:29PM" -} - -export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImg.args = { - header: "Header", - subheader: "Subheader here don't miss it", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" -} diff --git a/stories/components/cards/SeeMore.stories.tsx b/stories/components/cards/SeeMore.stories.tsx deleted file mode 100644 index feb54b949..000000000 --- a/stories/components/cards/SeeMore.stories.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { createMeta } from "stories/utils" -import { SeeMore } from "../../../components/Card" - -export default createMeta({ - title: "Components/Cards/SeeMore", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2856", - component: SeeMore -}) - -export const Primary = () => diff --git a/stories/dashboard/missionCenter/BillCosponsorCard.stories.tsx b/stories/dashboard/missionCenter/BillCosponsorCard.stories.tsx deleted file mode 100644 index 48b08cd5f..000000000 --- a/stories/dashboard/missionCenter/BillCosponsorCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const BillCosponsorCard = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Mission Center/BillCosponsorCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A12313", - component: BillCosponsorCard -}) - -export const Primary = () => diff --git a/stories/dashboard/missionCenter/BillOverviewCard.stories.tsx b/stories/dashboard/missionCenter/BillOverviewCard.stories.tsx deleted file mode 100644 index d45efb3de..000000000 --- a/stories/dashboard/missionCenter/BillOverviewCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const BillOverviewCard = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Mission Center/BillOverviewCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=307%3A12453", - component: BillOverviewCard -}) - -export const Primary = () => diff --git a/stories/dashboard/missionCenter/BillStatusCard.stories.tsx b/stories/dashboard/missionCenter/BillStatusCard.stories.tsx deleted file mode 100644 index 884ea1008..000000000 --- a/stories/dashboard/missionCenter/BillStatusCard.stories.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { BillStatusCard } from "components/BillStatusCard/BillStatusCard" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Dashboard/Mission Center/BillStatusCard", - figmaUrl: - "https://www.figma.com/file/Uyh2NXGTCX60mkse2NVBH7/MAPLE?node-id=2184%3A23094&t=yQ7oQ6AqkJc2pZNR-4", - component: BillStatusCard -}) - -const Template: ComponentStory = props => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - bill: { - history: [ - { - date: "01/01", - branch: "HOUSE", - action: "House checked with the l and L for Nunito" - }, - { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/03", branch: "JOINT", action: "someone entered the house" }, - { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/05", branch: "SENATE", action: "someone entered the house" }, - { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/03", branch: "JOINT", action: "someone entered the house" }, - { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/05", branch: "SENATE", action: "someone entered the house" }, - { date: "01/02", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/03", branch: "JOINT", action: "someone entered the house" }, - { date: "01/04", branch: "HOUSE", action: "someone entered the house" }, - { date: "01/05", branch: "SENATE", action: "someone entered the house" } - ] - } -} - -export const SingularHistory = Template.bind({}) -SingularHistory.args = { - bill: { - history: [ - { - date: "01/01", - branch: "HOUSE", - action: "House checked with the l and L for Nunito" - } - ] - } -} diff --git a/stories/dashboard/missionCenter/DashboardTabs.stories.tsx b/stories/dashboard/missionCenter/DashboardTabs.stories.tsx deleted file mode 100644 index 9e8f7bc35..000000000 --- a/stories/dashboard/missionCenter/DashboardTabs.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const DashboardTabs = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Mission Center/DashboardTabs", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A13880", - component: DashboardTabs -}) - -export const Primary = () => diff --git a/stories/dashboard/missionCenter/OrgStanceCard.stories.tsx b/stories/dashboard/missionCenter/OrgStanceCard.stories.tsx deleted file mode 100644 index e1696d469..000000000 --- a/stories/dashboard/missionCenter/OrgStanceCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const OrgStanceCard = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Mission Center/OrgStanceCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A12162", - component: OrgStanceCard -}) - -export const Primary = () => diff --git a/stories/dashboard/newsfeed/AlertCard.stories.tsx b/stories/dashboard/newsfeed/AlertCard.stories.tsx deleted file mode 100644 index 65b40aadd..000000000 --- a/stories/dashboard/newsfeed/AlertCard.stories.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import React, { useState } from "react" -import { createMeta } from "stories/utils" -import { AlertCard } from "components/AlertCard/AlertCard" -import { Timestamp } from "firebase/firestore" - -export default createMeta({ - title: "Dashboard/Newsfeed/AlertCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A2873", - component: AlertCard -}) - -const Template: ComponentStory = props => { - return -} - -export const OrgWithBodyImage = Template.bind({}) -OrgWithBodyImage.args = { - header: "Cool Organization", - subheader: "Our Priority Bills", - timestamp: Timestamp.fromDate(new Date("2021-10-10T22:02:00")), - headerImgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - bodyImgSrc: - "https://regulatorystudies.columbian.gwu.edu/sites/g/files/zaxdzs4751/files/image/United_States_Capitol_-_west_front_small.jpg", - bodyText: - "Come to our FAQ Session held at plaza on 248 Willow Street in Watertown, MA! There will be light refreshments and snacks." -} - -export const OrgWithNoBodyImage = Template.bind({}) -OrgWithNoBodyImage.args = { - header: "Moms for Liberty", - headerImgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - timestamp: Timestamp.fromDate(new Date("2021-10-10T22:02:00")), - bodyText: "Moms for Liberty released a testimony on S.1958" -} - -export const BillWithBodyImage = Template.bind({}) -BillWithBodyImage.args = { - header: "Bill H.1321", - subheader: "An Act to do something cool", - timestamp: Timestamp.fromDate(new Date("2021-10-10T06:00:00")), - bodyImgSrc: - "https://regulatorystudies.columbian.gwu.edu/sites/g/files/zaxdzs4751/files/image/United_States_Capitol_-_west_front_small.jpg", - bodyText: "Bill moved on in deliberations with some group" -} - -export const BillWithSubheader = Template.bind({}) -BillWithSubheader.args = { - header: "Bill H.3340", - subheader: - "An Act creating a green bank to promote clean energy in Massachusetts", - timestamp: Timestamp.fromDate(new Date("2021-10-10T15:20:00")), - bodyText: - "The reporting date was extended to Thursday June 30, 2022, pending concurrence" -} - -export const BillWithNoSubheader = Template.bind({}) -BillWithNoSubheader.args = { - header: "Bille H.2241", - timestamp: Timestamp.fromDate(new Date("2021-10-10T22:05:00")), - bodyText: "Senate concurred" -} diff --git a/stories/dashboard/newsfeed/HotBillCard.stories.tsx b/stories/dashboard/newsfeed/HotBillCard.stories.tsx deleted file mode 100644 index f7437947d..000000000 --- a/stories/dashboard/newsfeed/HotBillCard.stories.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import React, { useState } from "react" -import { createMeta } from "stories/utils" -import { HotBillCard } from "components/HotBillCard/HotBillCard" - -// TODO: move into components directory -//const HotBillCard = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Newsfeed/HotBillCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A3865", - component: HotBillCard -}) - -const Template: ComponentStory = props => { - return -} - -export const Primary = Template.bind({}) -Primary.args = { - bills: [ - { - id: "123", - billNumber: "hc.508", - title: - "An Act that goes by no other name but... I forget. But it was good", - endorseCount: 41, - opposeCount: 182, - neutralCount: 98 - }, - { - id: "456", - billNumber: "hc.411", - title: - "An Act that goes by no other name but... I forget. But it was good", - endorseCount: 41, - opposeCount: 182, - neutralCount: 98 - }, - { - id: "789", - billNumber: "hc.999", - title: - "An Act that goes by no other name but... I forget. But it was good", - endorseCount: 41, - opposeCount: 182, - neutralCount: 98 - }, - { - id: "012", - billNumber: "hc.911", - title: - "An Act that goes by no other name but... I forget. But it was good", - endorseCount: 41, - opposeCount: 182, - neutralCount: 98 - }, - { - id: "345", - billNumber: "hc.888", - title: - "An Act that goes by no other name but... I forget. But it was good", - endorseCount: 41, - opposeCount: 182, - neutralCount: 98 - } - ], - session: "123" -} diff --git a/stories/dashboard/sidePanels/DashboardPriorityBillsCard.stories.tsx b/stories/dashboard/sidePanels/DashboardPriorityBillsCard.stories.tsx deleted file mode 100644 index 8a2cdfcbd..000000000 --- a/stories/dashboard/sidePanels/DashboardPriorityBillsCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const DashboardPriorityBillsCard = () =>
TODO
- -export default createMeta({ - title: "Dashboard/Side Panels/DashboardPriorityBillsCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=231%3A14013", - component: DashboardPriorityBillsCard -}) - -export const Primary = () => diff --git a/stories/dashboard/sidePanels/FollowingCard.stories.tsx b/stories/dashboard/sidePanels/FollowingCard.stories.tsx deleted file mode 100644 index 1b617611d..000000000 --- a/stories/dashboard/sidePanels/FollowingCard.stories.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { FollowingCard } from "../../../components/FollowingCard/FollowingCard" - -export default createMeta({ - title: "Dashboard/Side Panels/FollowingCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=167%3A6922", - component: FollowingCard -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) - -const organizations = [ - { - name: "Moms for Liberty", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Moms for Boston", - href: "https://www.google.com", - iconSrc: "berkmankleincentericon.png" - }, - { - name: "Moms for Sober Driving", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Fathers for Liberty", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Boston College", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Green Sustainability", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Boston Fire Department Unit", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Parents Defending Education", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - }, - { - name: "Turning Point USA", - href: "https://www.google.com", - iconSrc: "bostoncollegeicon.png" - } -] - -Primary.args = { organizations } diff --git a/stories/dashboard/sidePanels/ProfileCard.stories.tsx b/stories/dashboard/sidePanels/ProfileCard.stories.tsx deleted file mode 100644 index a9efaf9fc..000000000 --- a/stories/dashboard/sidePanels/ProfileCard.stories.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ProfileCard } from "components/ProfileCard" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Dashboard/Side Panels/ProfileCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=296%3A15838", - component: ProfileCard -}) - -export const Primary = () => ( - -) diff --git a/stories/dashboard/sidePanels/ResourcesCard.stories.tsx b/stories/dashboard/sidePanels/ResourcesCard.stories.tsx deleted file mode 100644 index b07958007..000000000 --- a/stories/dashboard/sidePanels/ResourcesCard.stories.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { ResourcesCard } from "components/dashboard" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Dashboard/Side Panels/ResourcesCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=123%3A3003", - component: ResourcesCard -}) - -export const Primary = () => diff --git a/stories/molecules/form-elements/Input.stories.tsx b/stories/molecules/form-elements/Input.stories.tsx index f9bad67bd..aa0b075ba 100644 --- a/stories/molecules/form-elements/Input.stories.tsx +++ b/stories/molecules/form-elements/Input.stories.tsx @@ -1,6 +1,5 @@ -import Input from "components/forms/Input" import type { Meta, StoryObj } from "@storybook/react" -import { createMeta } from "stories/utils" +import Input from "components/forms/Input" const meta: Meta = { diff --git a/stories/organisms/billDetail/BillSponsorCard.stories.tsx b/stories/organisms/billDetail/BillSponsorCard.stories.tsx index 96813c0b6..fcb13cc05 100644 --- a/stories/organisms/billDetail/BillSponsorCard.stories.tsx +++ b/stories/organisms/billDetail/BillSponsorCard.stories.tsx @@ -1,10 +1,9 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import { Cosponsors as PreCosponsors } from "components/bill/Cosponsors" import { BillProps } from "components/bill/types" import { Bill, BillContent, BillHistory } from "components/db" import { Timestamp } from "firebase/firestore" import { ReactNode } from "react" -import { createMeta } from "stories/utils" // TODO: move into components directory @@ -21,7 +20,7 @@ export default meta type Story = StoryObj export const Primary: Story = { - storyName: "Cosponsors", + name: "Cosponsors", decorators: [(Story, children) => ] } const newBillHistory: BillHistory = [ diff --git a/stories/organisms/billDetail/BillStatus.stories.tsx b/stories/organisms/billDetail/BillStatus.stories.tsx index 96ada0f7b..2861ea277 100644 --- a/stories/organisms/billDetail/BillStatus.stories.tsx +++ b/stories/organisms/billDetail/BillStatus.stories.tsx @@ -1,8 +1,7 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { BillTrackerView } from "components/bill/BillTracker" +import { Meta, StoryObj } from "@storybook/react" +import {BillTrackerView} from "components/bill/BillTracker" import { Timestamp } from "firebase/firestore" import { Stage } from "functions/src/analysis/types" -import { createMeta } from "stories/utils" const meta: Meta = { title: "Organisms/Bill Detail/BillStatus", @@ -14,7 +13,7 @@ export default meta type Story = StoryObj export const Primary: Story = { - storyName: "Cosponsors", + name: "Cosponsors", decorators: [(Story, children) => ], args: { tracker: { @@ -51,5 +50,5 @@ export const Secondary: Story = { } } }, - storyName: "In Second Committee" + name: "In Second Committee" } diff --git a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx index baf88f6d0..95d24629f 100644 --- a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx +++ b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx @@ -1,10 +1,9 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { createMeta } from "stories/utils" +import { Meta, StoryObj } from "@storybook/react" import { BillTestimonies } from "components/bill/BillTestimonies" -import { Timestamp } from "firebase/firestore" -import { Provider as Redux } from "react-redux" import { Providers } from "components/providers" import { wrapper } from "components/store" +import { Timestamp } from "firebase/firestore" +import { Provider as Redux } from "react-redux" // TODO: move into components directory const BillTestimonyListCard = BillTestimonies @@ -53,7 +52,7 @@ export const Primary: Story = { ] } }, - storyName: "BillTestimonyListCard", + name: "BillTestimonyListCard", decorators: [ (Story, ...rest) => { const { store, props } = wrapper.useWrappedStore(...rest) diff --git a/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx index ed2fcf120..64a5d3f4c 100644 --- a/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx +++ b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx @@ -11,5 +11,5 @@ export default meta type Story = StoryObj export const Primary: Story = { args: { chamber: "House", committee: "Committee of Ways and Means" }, - storyName: "CurrentCommitteeCard" + name: "CurrentCommitteeCard" } \ No newline at end of file diff --git a/stories/organisms/billDetail/TestimonyCounts.stories.tsx b/stories/organisms/billDetail/TestimonyCounts.stories.tsx index 0c6d2796f..2b9a4fb2d 100644 --- a/stories/organisms/billDetail/TestimonyCounts.stories.tsx +++ b/stories/organisms/billDetail/TestimonyCounts.stories.tsx @@ -1,5 +1,4 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { createMeta } from "stories/utils" +import { Meta, StoryObj } from "@storybook/react" import { TestimonyCounts } from "components/bill/TestimonyCounts" import { BillProps } from "components/bill/types" @@ -22,5 +21,5 @@ export const Primary = { opposeCount: 2 } } as Partial, - storyName: "TestimonyCounts" + name: "TestimonyCounts" } diff --git a/stories/organisms/cards/CardListItem.stories.tsx b/stories/organisms/cards/CardListItem.stories.tsx index 0aa74d080..21cf35bb6 100644 --- a/stories/organisms/cards/CardListItem.stories.tsx +++ b/stories/organisms/cards/CardListItem.stories.tsx @@ -1,6 +1,5 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { createMeta } from "stories/utils" -import { ListItem } from "components/Card" +import { Meta, StoryObj } from "@storybook/react" +import { ListItem, ListItemProps } from "components/Card" const meta: Meta = { @@ -13,8 +12,6 @@ export default meta type Story = StoryObj - - export const Primary: Story = { args: { billName: "H.3330", @@ -25,27 +22,8 @@ export const Primary: Story = { export const OnlyBillName: Story = { args: { - billName: "H.3330" + billName: "H.3330", + billDescription: "Important bill, must vote!", + element: undefined } } - -export const MultipleItems = Template.bind({}) -MultipleItems.args = { - items: [ - , - , - - ] -} diff --git a/stories/organisms/cards/CardListItems.stories.tsx b/stories/organisms/cards/CardListItems.stories.tsx index 0447ca15b..2be11720e 100644 --- a/stories/organisms/cards/CardListItems.stories.tsx +++ b/stories/organisms/cards/CardListItems.stories.tsx @@ -1,6 +1,6 @@ import { Meta, StoryObj } from "@storybook/react" import { CardListItems, ListItem } from "components/Card" -import { Primary as PrimaryListItem } from './CardListItem.stories' +import { OnlyBillName } from './CardListItem.stories' const meta: Meta = { @@ -16,29 +16,17 @@ type Story = StoryObj export const Primary: Story = { - args: { + render: args => ] } /> +} + +export const MultipleItems: Story = { + args : { items: [ - , - + , + , + ] - } -} -export const OnlyBillName = Template.bind({}) -OnlyBillName.args = { - items: [] -} -export const MultipleItems = Template.bind({}) -MultipleItems.args = { - items: [ - , - , - - ] -} + + }} \ No newline at end of file diff --git a/stories/organisms/cards/CardTitle.stories.tsx b/stories/organisms/cards/CardTitle.stories.tsx index c60210b07..5f94768a0 100644 --- a/stories/organisms/cards/CardTitle.stories.tsx +++ b/stories/organisms/cards/CardTitle.stories.tsx @@ -1,57 +1,23 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" +import { Meta, StoryObj } from "@storybook/react" import { CardTitle } from "../../../components/Card" -export default createMeta({ +const meta: Meta = ({ title: "Components/Cards/CardTitle", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=110%3A2655", component: CardTitle }) -const Template: ComponentStory = ({ - header, - subheader, - timestamp, - imgSrc, - ...rest -}) => { - return ( - - ) -} +export default meta -export const Primary = Template.bind({}) +type Story = StoryObj -export const JustHeader = Template.bind({}) -JustHeader.args = { - header: "Header" -} -export const HeaderAndSubheader = Template.bind({}) -HeaderAndSubheader.args = { - header: "Header", - subheader: "Subheader here don't miss it" -} - -export const HeaderAndSubheaderAndTimestamp = Template.bind({}) -HeaderAndSubheaderAndTimestamp.args = { - header: "Header", - subheader: "Subheader here don't miss it", - timestamp: "3:29PM" -} - -export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImg.args = { +export const Primary: Story = { + args: { header: "Header", subheader: "Subheader here don't miss it", timestamp: "3:29PM", imgSrc: "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" -} +}} + + diff --git a/stories/organisms/cards/SeeMore.stories.tsx b/stories/organisms/cards/SeeMore.stories.tsx index feb54b949..21e8865aa 100644 --- a/stories/organisms/cards/SeeMore.stories.tsx +++ b/stories/organisms/cards/SeeMore.stories.tsx @@ -1,11 +1,10 @@ -import { createMeta } from "stories/utils" +import { Meta } from "@storybook/react" import { SeeMore } from "../../../components/Card" -export default createMeta({ - title: "Components/Cards/SeeMore", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=119%3A2856", +const meta: Meta = { +title: "Components/Cards/SeeMore", component: SeeMore -}) +} +export default meta export const Primary = () => diff --git a/stories/profile/BioCard.stories.tsx b/stories/profile/BioCard.stories.tsx deleted file mode 100644 index 7bbef2f0a..000000000 --- a/stories/profile/BioCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const BioCard = () =>
TODO
- -export default createMeta({ - title: "Profile/BioCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8099", - component: BioCard -}) - -export const Primary = () => diff --git a/stories/profile/ContactInfo.stories.tsx b/stories/profile/ContactInfo.stories.tsx deleted file mode 100644 index dc45f1729..000000000 --- a/stories/profile/ContactInfo.stories.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { ContactInfo } from "../../components/ContactInfo/ContactInfo" -import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" - -export default createMeta({ - title: "Profile/ContactInfo", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8117", - component: ContactInfo -}) - -const Template: ComponentStory = args => ( -
- -
-) - -export const Primary = Template.bind({}) - -Primary.args = { - phoneNumber: "555-555-5555", - email: "info@concernedparents.com", - website: "concernedparentsofmass.com", - icons: ( - <> - - - - - ) -} diff --git a/stories/profile/PriorityBillsCard.stories.tsx b/stories/profile/PriorityBillsCard.stories.tsx deleted file mode 100644 index 96ebb5147..000000000 --- a/stories/profile/PriorityBillsCard.stories.tsx +++ /dev/null @@ -1,127 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import React, { useState } from "react" -import { createMeta } from "stories/utils" -import { PriorityBillsCard } from "../../components/PriortyBillsCard/PriorityBillsCard" - -export default createMeta({ - title: "Profile/PriorityBillsCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=109%3A2927", - component: PriorityBillsCard -}) - -const Template: ComponentStory = props => { - const [selectedBillId, setSelectedBillId] = useState("") - - const onBillSelected = (billNumber: string) => { - console.log("onBillSelected", billNumber) - setSelectedBillId(billNumber) - } - - props.onClick = (string: string) => onBillSelected(string) - props.selectedBillId = selectedBillId - - return -} - -var stances = ["endorse", "neutral", "oppose"] -export const Primary = Template.bind({}) -Primary.args = { - bills: [ - { - id: "123", - billNumber: "hc.508", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "456", - billNumber: "hc.411", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "789", - billNumber: "hc.999", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "012", - billNumber: "hc.911", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "345", - billNumber: "hc.888", - title: - "An Act that goes by no other name but... I forget. But it was good" - } - ], - session: "123" -} - -export const BillsWithStances = Template.bind({}) -BillsWithStances.args = { - ...Primary.args, - bills: Primary.args.bills?.map(bill => { - return { ...bill, stance: stances[Math.floor(Math.random() * 3)] } - }) -} - -export const ThreeBillsWithoutStances = Template.bind({}) -ThreeBillsWithoutStances.args = { - bills: [ - { - id: "123", - billNumber: "hc.508", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "456", - billNumber: "hc.411", - title: - "An Act that goes by no other name but... I forget. But it was good" - }, - { - id: "789", - billNumber: "hc.999", - title: - "An Act that goes by no other name but... I forget. But it was good" - } - ], - session: "124" -} - -export const ThreeBillsWithStances = Template.bind({}) -ThreeBillsWithStances.args = { - ...ThreeBillsWithoutStances.args, - bills: ThreeBillsWithoutStances.args.bills?.map(bill => { - return { ...bill, stance: stances[Math.floor(Math.random() * 3)] } - }) -} -export const PrimaryAndEditBtn = Template.bind({}) -PrimaryAndEditBtn.args = { - ...Primary.args, - editBtn: true -} - -export const WithStancesAndEditBtn = Template.bind({}) -WithStancesAndEditBtn.args = { - ...BillsWithStances.args, - editBtn: true -} - -export const ThreeBillsAndEditBtn = Template.bind({}) -ThreeBillsAndEditBtn.args = { - ...ThreeBillsWithoutStances.args, - editBtn: true -} - -export const ThreeBillsWithStancesAndEditBtn = Template.bind({}) -ThreeBillsWithStancesAndEditBtn.args = { - ...ThreeBillsWithStances.args, - editBtn: true -} diff --git a/stories/profile/UserTestimonyListCard.stories.tsx b/stories/profile/UserTestimonyListCard.stories.tsx deleted file mode 100644 index c61d4ee2a..000000000 --- a/stories/profile/UserTestimonyListCard.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { createMeta } from "stories/utils" - -// TODO: move into components directory -const UserTestimonyListCard = () =>
TODO
- -export default createMeta({ - title: "Profile/UserTestimonyListCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=311%3A10561", - component: UserTestimonyListCard -}) - -export const Primary = () => diff --git a/stories/typography/Typography.stories.tsx b/stories/typography/Typography.stories.tsx deleted file mode 100644 index 94602414e..000000000 --- a/stories/typography/Typography.stories.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { Meta, Story } from "@storybook/react" - -const meta: Meta = { - title: "Components/Typography", - component: () => null, - parameters: { - docs: {} - } -} - -export const Typopgraphy: Story = () => { - return ( -
-

h1. Maple is my favorite tree.

-

h2. Maple is my favorite tree.

-

h3. Maple is my favorite tree.

-

h4. Maple is my favorite tree.

-
h5. Maple is my favorite tree.
-
h6. Maple is my favorite tree.
-

Body 1. Maple is my favorite tree.

-

- Body 2. Maple is my favorite tree. -

-
Caption. Maple is my favorite tree.
- -
- ) -} - -export default meta diff --git a/stories/components/buttons/ButtonGroup.stories.tsx b/stories_hold/buttons/ButtonGroup.stories.tsx similarity index 100% rename from stories/components/buttons/ButtonGroup.stories.tsx rename to stories_hold/buttons/ButtonGroup.stories.tsx diff --git a/stories/components/buttons/DropdownButton.stories.tsx b/stories_hold/buttons/DropdownButton.stories.tsx similarity index 90% rename from stories/components/buttons/DropdownButton.stories.tsx rename to stories_hold/buttons/DropdownButton.stories.tsx index 43156dd35..4817dfdd6 100644 --- a/stories/components/buttons/DropdownButton.stories.tsx +++ b/stories_hold/buttons/DropdownButton.stories.tsx @@ -1,5 +1,5 @@ import { createMeta } from "stories/utils" -import DropdownButton from "../../../components/DropdownButton/DropdownButton" +import DropdownButton from "../../components/DropdownButton/DropdownButton" import { ComponentStory } from "@storybook/react" // TODO: move into components directory diff --git a/stories/components/buttons/LoadingButton.stories.tsx b/stories_hold/buttons/LoadingButton.stories.tsx similarity index 96% rename from stories/components/buttons/LoadingButton.stories.tsx rename to stories_hold/buttons/LoadingButton.stories.tsx index e17f95697..1dcd105e4 100644 --- a/stories/components/buttons/LoadingButton.stories.tsx +++ b/stories_hold/buttons/LoadingButton.stories.tsx @@ -3,7 +3,7 @@ import { ComponentStory } from "@storybook/react" import { Image } from "components/bootstrap" import { useState } from "react" import { createMeta } from "stories/utils" -import { LoadingButton } from "../../../components/buttons" +import { LoadingButton } from "../../components/buttons" export default createMeta({ title: "Components/Buttons/LoadingButton", diff --git a/stories/components/buttons/PrimaryButtonWithIcon.stories.tsx b/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx similarity index 100% rename from stories/components/buttons/PrimaryButtonWithIcon.stories.tsx rename to stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx diff --git a/stories/components/buttons/PrioritizeButton.stories.tsx b/stories_hold/buttons/PrioritizeButton.stories.tsx similarity index 100% rename from stories/components/buttons/PrioritizeButton.stories.tsx rename to stories_hold/buttons/PrioritizeButton.stories.tsx diff --git a/stories/components/buttons/TableButton.stories.tsx b/stories_hold/buttons/TableButton.stories.tsx similarity index 80% rename from stories/components/buttons/TableButton.stories.tsx rename to stories_hold/buttons/TableButton.stories.tsx index fe8626ad4..9a8682e1c 100644 --- a/stories/components/buttons/TableButton.stories.tsx +++ b/stories_hold/buttons/TableButton.stories.tsx @@ -1,5 +1,5 @@ /* eslint-disable import/no-anonymous-default-export */ -import { TableButton } from "../../../components/buttons" +import { TableButton } from "../../components/buttons" export default { title: "Components/Buttons/TableButton", From fe3030f53f676c9ffa906a668e5281bad24df498 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 18:23:54 -0500 Subject: [PATCH 18/21] continue csf2 => 3 --- components/ProfilePage/SelectLegislators.tsx | 2 +- stories/atoms/SocialIconLink.stories.tsx | 13 +- stories/atoms/Typography.stories.tsx | 39 +-- stories/atoms/ValuePlaqu.stories.tsx | 2 +- stories/components/SocialIconLink.stories.tsx | 21 -- .../{atoms => molecules}/Icons.stories.tsx | 0 .../{components => molecules}/Tag.stories.tsx | 6 +- .../BillTestimonyListCard.stories.tsx | 33 -- stories/organisms/cards/Card.stories.tsx | 208 +++---------- .../organisms/cards/CardListItem.stories.tsx | 2 +- .../organisms/cards/CardListItems.stories.tsx | 2 +- stories/organisms/cards/CardTitle.stories.tsx | 2 +- stories/organisms/cards/SeeMore.stories.tsx | 2 +- .../ProfileSettingsModal.stories.tsx | 39 ++- .../StyledEditProfileComponents.stories.tsx | 24 +- .../editprofile/YourLegislators.stories.tsx | 106 +++++++ .../BasicsOfTestimonyCard.stories.tsx | 29 ++ .../emailTemplates/digest.stories.tsx | 294 +++++++++--------- .../editprofile/YourLegislators.stories.tsx | 107 ------- .../BasicsOfTestimonyCard.stories.tsx | 28 -- 20 files changed, 392 insertions(+), 567 deletions(-) delete mode 100644 stories/components/SocialIconLink.stories.tsx rename stories/{atoms => molecules}/Icons.stories.tsx (100%) rename stories/{components => molecules}/Tag.stories.tsx (66%) rename {stories_hold => stories}/organisms/editprofile/ProfileSettingsModal.stories.tsx (52%) rename {stories_hold => stories}/organisms/editprofile/StyledEditProfileComponents.stories.tsx (63%) create mode 100644 stories/organisms/editprofile/YourLegislators.stories.tsx create mode 100644 stories/organisms/education/BasicsOfTestimonyCard.stories.tsx delete mode 100644 stories_hold/organisms/editprofile/YourLegislators.stories.tsx delete mode 100644 stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx diff --git a/components/ProfilePage/SelectLegislators.tsx b/components/ProfilePage/SelectLegislators.tsx index 74a5a9ee9..42a03d2aa 100644 --- a/components/ProfilePage/SelectLegislators.tsx +++ b/components/ProfilePage/SelectLegislators.tsx @@ -22,7 +22,7 @@ export const SelectLegislators: React.FC< ) } -const LegislatorForm: React.FC< +export const LegislatorForm: React.FC< React.PropsWithChildren<{ index: MemberSearchIndex profile: ProfileHook diff --git a/stories/atoms/SocialIconLink.stories.tsx b/stories/atoms/SocialIconLink.stories.tsx index 4a4fc28d7..c49244a61 100644 --- a/stories/atoms/SocialIconLink.stories.tsx +++ b/stories/atoms/SocialIconLink.stories.tsx @@ -1,4 +1,4 @@ -import { Meta } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import { SocialIconLink } from "components/SocialIconLink/SocialIconLink" const meta: Meta = { @@ -6,13 +6,16 @@ const meta: Meta = { component: SocialIconLink } +type Story = StoryObj -export const Primary = () => ( - -) + />, + name: 'SocialIconLink' +} + export default meta \ No newline at end of file diff --git a/stories/atoms/Typography.stories.tsx b/stories/atoms/Typography.stories.tsx index 250a0cacc..867c2258c 100644 --- a/stories/atoms/Typography.stories.tsx +++ b/stories/atoms/Typography.stories.tsx @@ -1,30 +1,31 @@ -import { Meta, StoryFn } from "@storybook/react" +import { Meta, StoryFn, StoryObj } from "@storybook/react" const meta: Meta = { - title: "Components/Typography", + title: "Atoms/Typography", component: () => null, parameters: { docs: {} } } -export const Typopgraphy: StoryFn = () => { - return ( -
-

h1. Maple is my favorite tree.

-

h2. Maple is my favorite tree.

-

h3. Maple is my favorite tree.

-

h4. Maple is my favorite tree.

-
h5. Maple is my favorite tree.
-
h6. Maple is my favorite tree.
-

Body 1. Maple is my favorite tree.

-

- Body 2. Maple is my favorite tree. -

-
Caption. Maple is my favorite tree.
- -
- ) +export const Typopgraphy: StoryObj = { + + render: () =>
+

h1. Maple is my favorite tree.

+

h2. Maple is my favorite tree.

+

h3. Maple is my favorite tree.

+

h4. Maple is my favorite tree.

+
h5. Maple is my favorite tree.
+
h6. Maple is my favorite tree.
+

Body 1. Maple is my favorite tree.

+

+ Body 2. Maple is my favorite tree. +

+
Caption. Maple is my favorite tree.
+ +
, + name: 'Typography' } + export default meta diff --git a/stories/atoms/ValuePlaqu.stories.tsx b/stories/atoms/ValuePlaqu.stories.tsx index 79f11efb4..c40c85df2 100644 --- a/stories/atoms/ValuePlaqu.stories.tsx +++ b/stories/atoms/ValuePlaqu.stories.tsx @@ -34,7 +34,7 @@ export const Primary: Story = { alt: "hand shake", title: "Humility" }, - name: "ValuePlaque" + name: "Plaque" } diff --git a/stories/components/SocialIconLink.stories.tsx b/stories/components/SocialIconLink.stories.tsx deleted file mode 100644 index 734657c9e..000000000 --- a/stories/components/SocialIconLink.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Meta, StoryObj } from "@storybook/react" -import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" - - -const meta: Meta = { - title: "Components/SocialIconLink", - component: SocialIconLink -} - -export default meta - -type Story = StoryObj - -export const Primary : Story = { - render: args => -} - diff --git a/stories/atoms/Icons.stories.tsx b/stories/molecules/Icons.stories.tsx similarity index 100% rename from stories/atoms/Icons.stories.tsx rename to stories/molecules/Icons.stories.tsx diff --git a/stories/components/Tag.stories.tsx b/stories/molecules/Tag.stories.tsx similarity index 66% rename from stories/components/Tag.stories.tsx rename to stories/molecules/Tag.stories.tsx index 64534e719..571f3cca7 100644 --- a/stories/components/Tag.stories.tsx +++ b/stories/molecules/Tag.stories.tsx @@ -1,8 +1,8 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" -import { Tag } from "../../components/Tag/Tag" +import { Meta, StoryObj } from "@storybook/react" +import { Tag } from "components/Tag/Tag" const meta:Meta = { - title: "Components/Tag", + title: "Molecules/Tag", component: Tag } diff --git a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx index 95d24629f..14f70f2de 100644 --- a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx +++ b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx @@ -5,7 +5,6 @@ import { wrapper } from "components/store" import { Timestamp } from "firebase/firestore" import { Provider as Redux } from "react-redux" -// TODO: move into components directory const BillTestimonyListCard = BillTestimonies const meta: Meta = { @@ -67,35 +66,3 @@ export const Primary: Story = { } ] } - -const PrimaryArgs = { - bill: { - id: "H805", - court: 192, - content: { - Title: - "An Act fostering voting opportunities, trust, equity, and security", - BillNumber: "H805", - DocketNumber: "string", - GeneralCourtNumber: 999, - PrimarySponsor: first, - Cosponsors: [first], - LegislationTypeName: "string", - Pinslip: "string", - DocumentText: "string" - }, - cosponsorCount: 0, - testimonyCount: 0, - endorseCount: 0, - opposeCount: 0, - neutralCount: 0, - fetchedAt: Timestamp.fromMillis(0), - history: [ - { - Date: "1", - Branch: "1", - Action: "1" - } - ] - } -} diff --git a/stories/organisms/cards/Card.stories.tsx b/stories/organisms/cards/Card.stories.tsx index 9608647fe..1c72f6092 100644 --- a/stories/organisms/cards/Card.stories.tsx +++ b/stories/organisms/cards/Card.stories.tsx @@ -1,11 +1,11 @@ -import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import { Card } from "components/Card" const meta: Meta = { title: "Organisms/Cards/Card", component: Card -} +} export default meta @@ -29,177 +29,55 @@ const CustomBody = () => { ) } -const Template: ComponentStory = ({ - header, - subheader, - bodyText, - timestamp, - imgSrc, - cardItems, - inHeaderElement, - body, - ...rest -}) => { - return ( - - ) -} - -export const Primary = Template.bind({}) -Primary.args = { - header: "Header" -} -export const HeaderAndSubheader = Template.bind({}) -HeaderAndSubheader.args = { - header: "Header", - subheader: "Subheader" +export const HeaderAndSubheaderAndTimestamp: Story = { + args: { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM" + } } -export const HeaderAndSubheaderAndTimestamp = Template.bind({}) -HeaderAndSubheaderAndTimestamp.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM" -} -export const HeaderAndSubheaderAndTimestampAndInHeaderElement = Template.bind( - {} -) -HeaderAndSubheaderAndTimestampAndInHeaderElement.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - inHeaderElement: <>button here -} -export const HeaderAndSubheaderAndTimestampAndImg = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImg.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" -} -export const HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement = - Template.bind({}) -HeaderAndSubheaderAndTimestampAndImgAndInHeaderElement.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - inHeaderElement: +export const HeaderAndSubheaderAndTimestampAndImgAndBody: Story = { + args: { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", + bodyText: "This is body text and it's nonsense placeholder and filler" + } } - -export const HeaderAndSubheaderAndTimestampAndImgAndBody = Template.bind({}) -HeaderAndSubheaderAndTimestampAndImgAndBody.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png", - bodyText: "This is body text and it's nonsense placeholder and filler" +export const HeaderAndSubheaderAndTimestampAndImgAndCustomBody: Story = { + args: { + header: "Header", + subheader: "Subheader", + timestamp: "3:29PM", + body: + } } -export const HeaderAndSubheaderAndTimestampAndImgAndCustomBody = Template.bind( - {} -) -HeaderAndSubheaderAndTimestampAndImgAndCustomBody.args = { - header: "Header", - subheader: "Subheader", - timestamp: "3:29PM", - body: -} - -export const HeaderAndSubheaderAndBodyAndTwoListItems = Template.bind({}) -HeaderAndSubheaderAndBodyAndTwoListItems.args = { - header: "Header", - subheader: "Subheader", - bodyText: "This is body text and it's nonsense placeholder and filler", - cardItems: [ - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - } - ] -} - -export const HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore = - Template.bind({}) -HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args = { - header: "Header", - subheader: "Subheader", - bodyText: "This is body text and it's nonsense placeholder and filler", - cardItems: [ - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3340", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - }, - { - billName: "H.3342", - billDescription: - "An Act creating a green bank to promote clean energy in Massachusetts" - } - ] -} - -export const HeaderWithItemsAndItemElements = Template.bind({}) -HeaderWithItemsAndItemElements.args = { - ...HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args, - cardItems: - HeaderAndSubheaderAndBodyAndSixListItemsWithSeeMore.args.cardItems?.map( - item => { - return { ...item, element: } +export const HeaderAndSubheaderAndBodyAndTwoListItems: Story = { + args: { + + header: "Header", + subheader: "Subheader", + bodyText: "This is body text and it's nonsense placeholder and filler", + cardItems: [ + { + billName: "H.3340", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" + }, + { + billName: "H.3342", + billDescription: + "An Act creating a green bank to promote clean energy in Massachusetts" } - ) -} - -export const HeaderWithItemsAndItemElementsAndBillNameElement = Template.bind( - {} -) -HeaderWithItemsAndItemElementsAndBillNameElement.args = { - ...HeaderWithItemsAndItemElements.args, - cardItems: HeaderWithItemsAndItemElements.args.cardItems?.map(item => { - return { ...item, billNameElement: } - }) -} + ] + } +} \ No newline at end of file diff --git a/stories/organisms/cards/CardListItem.stories.tsx b/stories/organisms/cards/CardListItem.stories.tsx index 21cf35bb6..43a0cbebd 100644 --- a/stories/organisms/cards/CardListItem.stories.tsx +++ b/stories/organisms/cards/CardListItem.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryObj } from "@storybook/react" -import { ListItem, ListItemProps } from "components/Card" +import { ListItem } from "components/Card" const meta: Meta = { diff --git a/stories/organisms/cards/CardListItems.stories.tsx b/stories/organisms/cards/CardListItems.stories.tsx index 2be11720e..248574c3a 100644 --- a/stories/organisms/cards/CardListItems.stories.tsx +++ b/stories/organisms/cards/CardListItems.stories.tsx @@ -4,7 +4,7 @@ import { OnlyBillName } from './CardListItem.stories' const meta: Meta = { - title: "Organisms/Cards/CardListItem", + title: "Organisms/Cards/CardListItems", component: CardListItems } diff --git a/stories/organisms/cards/CardTitle.stories.tsx b/stories/organisms/cards/CardTitle.stories.tsx index 5f94768a0..fc4cdcf94 100644 --- a/stories/organisms/cards/CardTitle.stories.tsx +++ b/stories/organisms/cards/CardTitle.stories.tsx @@ -2,7 +2,7 @@ import { Meta, StoryObj } from "@storybook/react" import { CardTitle } from "../../../components/Card" const meta: Meta = ({ - title: "Components/Cards/CardTitle", + title: "Organisms/Cards/CardTitle", component: CardTitle }) diff --git a/stories/organisms/cards/SeeMore.stories.tsx b/stories/organisms/cards/SeeMore.stories.tsx index 21e8865aa..de86fcc2c 100644 --- a/stories/organisms/cards/SeeMore.stories.tsx +++ b/stories/organisms/cards/SeeMore.stories.tsx @@ -2,7 +2,7 @@ import { Meta } from "@storybook/react" import { SeeMore } from "../../../components/Card" const meta: Meta = { -title: "Components/Cards/SeeMore", +title: "Organisms/Cards/SeeMore", component: SeeMore } export default meta diff --git a/stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx b/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx similarity index 52% rename from stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx rename to stories/organisms/editprofile/ProfileSettingsModal.stories.tsx index 0d7f9f006..997a3d04d 100644 --- a/stories_hold/organisms/editprofile/ProfileSettingsModal.stories.tsx +++ b/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx @@ -1,15 +1,12 @@ -import { ComponentStory } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import ProfileSettingsModal from "components/EditProfilePage/ProfileSettingsModal" -import { GearButton } from "components/buttons" import { ProfileHook } from "components/db" import { Providers } from "components/providers" import { wrapper } from "components/store" -import { useState } from "react" -import { Col } from "react-bootstrap" import { Provider as Redux } from "react-redux" -import { createMeta } from "stories/utils" -export default createMeta({ + +const meta: Meta = { title: "Organisms/Edit Profile/ProfileSettingsModal", component: ProfileSettingsModal, decorators: [ @@ -25,19 +22,21 @@ export default createMeta({ ) } ] -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) -Primary.args = { - actions: {} as ProfileHook, - isProfilePublic: true, - role: "user", - notifications: "Daily", - show: true } -Primary.storyName = "ProfileSettingsModal" +export default meta + +type Story = StoryObj + + +export const Primary: Story = { + args: { + actions: {} as ProfileHook, + isProfilePublic: true, + role: "user", + notifications: "Daily", + show: true + }, + name: "ProfileSettingsModal" +} + diff --git a/stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx b/stories/organisms/editprofile/StyledEditProfileComponents.stories.tsx similarity index 63% rename from stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx rename to stories/organisms/editprofile/StyledEditProfileComponents.stories.tsx index 11b7a848a..32d152191 100644 --- a/stories_hold/organisms/editprofile/StyledEditProfileComponents.stories.tsx +++ b/stories/organisms/editprofile/StyledEditProfileComponents.stories.tsx @@ -1,8 +1,7 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" import { Stories } from "@storybook/addon-docs" +import { Meta, StoryObj } from "@storybook/react" import * as SC from "components/EditProfilePage/StyledEditProfileComponents" -import { ReactNode, FC } from "react" +import { FC, ReactNode } from "react" const EditProfileComponents: FC<{ children: ReactNode }> = ({ children }) => { return ( @@ -17,8 +16,7 @@ const EditProfileComponents: FC<{ children: ReactNode }> = ({ children }) => { ) } - -export default createMeta({ +const meta: Meta = { title: "Organisms/Edit Profile/StyledTabNav", component: EditProfileComponents, parameters: { @@ -26,15 +24,15 @@ export default createMeta({ page: () => } } -}) +} -const Template: ComponentStory = args => ( - -) +export default meta -export const Primary = Template.bind({}) +type Story = StoryObj -Primary.args = { - children: "TabContent" +export const Primary: Story = { + args: { + children: "TabContent" + }, + name: "StyledTabNav" } -Primary.storyName = "StyledTabNav" diff --git a/stories/organisms/editprofile/YourLegislators.stories.tsx b/stories/organisms/editprofile/YourLegislators.stories.tsx new file mode 100644 index 000000000..8b0697fa6 --- /dev/null +++ b/stories/organisms/editprofile/YourLegislators.stories.tsx @@ -0,0 +1,106 @@ +import { Meta, StoryObj } from "@storybook/react" +import { LegislatorForm } from "components/ProfilePage/SelectLegislators" +import { ProfileHook } from "components/db" +import { Providers } from "components/providers" +import { wrapper } from "components/store" +import { Provider as Redux } from "react-redux" + +const meta: Meta = { + title: "Organisms/Edit Profile/LegislatorForm", + component: LegislatorForm, + decorators: [ + (Story, ...rest) => { + const { store, props } = wrapper.useWrappedStore(...rest) + + return ( + + + + + + ) + } + ] +} + +export default meta + +type Story = StoryObj + +export const Primary: Story = { + name: "LegislatorForm", + args: { + index: { + representatives: [ + // MemberSearchIndexItem + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + }, + { + MemberCode: "CRF1", + Name: "Rep Name", + District: "District", + EmailAddress: "rep@ma.gov", + Party: "D", + Branch: "House" + } + ], + senators: [ + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + }, + { + MemberCode: "CRF1", + Name: "Senator Name", + District: "District", + EmailAddress: "sen@ma.gov", + Party: "D", + Branch: "Senate" + } + ] + }, + profile: {} as ProfileHook + } +} diff --git a/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx b/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx new file mode 100644 index 000000000..479375d2f --- /dev/null +++ b/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx @@ -0,0 +1,29 @@ +import { ComponentStory, Meta, StoryObj } from "@storybook/react" +import BasicsOfTestimonyCard from "components/LearnTestimonyComponents/BasicsOfTestimony/BasicsOfTestimonyCard" +import React from "react" +import { createMeta } from "stories/utils" + +const meta: Meta = { + title: "Organisms/Education/BasicsOfTestimonyCard", + component: BasicsOfTestimonyCard, + parameters: { + backgrounds: { name: "medium", value: "#f4f4f4" } + } +} +export default meta + +type Story = StoryObj + +export const Primary: Story = { + + + args: { + title: "Anyone can submit testimony to the MA legislature", + paragraph: + "Legislators tend to value testimony most when it comes from their own constituents. Testimony from MA residents is typically directed to both the committee that is substantively responsible for the bill as well as the legislators (House member and Senator) representing your district.", + src: "who.svg", + alt: "Who" + }, + + name: "BasicsOfTestimonyCard" +} \ No newline at end of file diff --git a/stories_hold/emailTemplates/digest.stories.tsx b/stories_hold/emailTemplates/digest.stories.tsx index 93a1405e6..9c09099e6 100644 --- a/stories_hold/emailTemplates/digest.stories.tsx +++ b/stories_hold/emailTemplates/digest.stories.tsx @@ -1,14 +1,11 @@ -import { ComponentStory } from "@storybook/react" +import { Meta, StoryObj } from "@storybook/react" import digestEmail from "functions/src/email/digestEmail.handlebars" import example1 from "functions/src/email/example1.handlebars" import example2 from "functions/src/email/example2.handlebars" -import { createMeta } from "stories/utils" import { EmailTemplateRenderer } from "./email-template-renderer" -export default createMeta({ +const meta: Meta = { title: "Email Templates/Digest", - figmaUrl: - "https://www.figma.com/file/oMNmgiqDGTMco2v54gOW3b/MAPLE-Soft-Launch-(Mar-2023)?version-id=3065669916&node-id=3475%3A12449&t=Ol8nO044tWeUGHvP-4", component: EmailTemplateRenderer, decorators: [ Story => ( @@ -19,161 +16,164 @@ export default createMeta({
) ] -}) +} + +export default meta -const Template: ComponentStory = args => ( - -) +type Story = StoryObj -export const Example1 = Template.bind({}) -Example1.args = { - templateSrcUrl: example1, - context: { - name: "Derek", - street: "123 Main St", - city: "Pittsburgh", - state: "PA" +export const Example1: Story = { + args: { + templateSrcUrl: example1, + context: { + name: "Derek", + street: "123 Main St", + city: "Pittsburgh", + state: "PA" + } } } -export const Example2 = Template.bind({}) -Example2.args = { - templateSrcUrl: example2, - context: { - name: "Yogi Berra", - quotes: [ - { - quote: - "If you don't know where you are going, you might wind up someplace else." - }, - { - quote: - "You better cut the pizza in four pieces because I'm not hungry enough to eat six." - }, - { quote: "I never said most of the things I said." }, - { quote: "Nobody goes there anymore because it's too crowded." } - ], - yogiBio: - 'Lawrence Peter "Yogi" Berra (May 12, 1925 - September 22, 2015) was an American professional baseball catcher, manager, and coach who played 19 seasons in Major League Baseball (MLB) (1946 - 63, 1965), all but the last for the New York Yankees. An 18-time All-Star and 10-time World Series champion as a player, Berra had a career batting average of .285, while compiling 358 home runs and 1,430 runs batted in.', - url: "http://yogiberramuseum.org/", - text: "Yogi Berra Museum" +export const Example2: Story = { + args: { + templateSrcUrl: example2, + context: { + name: "Yogi Berra", + quotes: [ + { + quote: + "If you don't know where you are going, you might wind up someplace else." + }, + { + quote: + "You better cut the pizza in four pieces because I'm not hungry enough to eat six." + }, + { quote: "I never said most of the things I said." }, + { quote: "Nobody goes there anymore because it's too crowded." } + ], + yogiBio: + 'Lawrence Peter "Yogi" Berra (May 12, 1925 - September 22, 2015) was an American professional baseball catcher, manager, and coach who played 19 seasons in Major League Baseball (MLB) (1946 - 63, 1965), all but the last for the New York Yankees. An 18-time All-Star and 10-time World Series champion as a player, Berra had a career batting average of .285, while compiling 358 home runs and 1,430 runs batted in.', + url: "http://yogiberramuseum.org/", + text: "Yogi Berra Museum" + } } } -export const DigestEmail = Template.bind({}) -DigestEmail.args = { - templateSrcUrl: digestEmail, - context: { - notificationFrequency: "Monthly", - startDate: "2/1/2023", - endDate: "2/7/2023", - bill: { - 1: { - title: "H.1289", - subtitle: - "An Act to protect the civil rights and safety of all Massachusetts residents", - testimonies: "12", - cosponsors: "2", - hearingDate: "Jan 31" - }, - 2: { - title: "H.98", - subtitle: "An Act to further govt. transparency", - testimonies: "2", - cosponsors: "0", - hearingDate: "-" - } - }, - org: { - 1: { - orgTitle: "Boston’s Teacher Union", - orgLookup: "Tfh1tp2faYbSWsYYsvUS4F23mtD2", - counter: "3", - item: { - 1: { - title: "S.77", - icon: "endorse" - }, - 2: { - title: "S.77", - icon: "neutral" - }, - 3: { - title: "S.77", - icon: "neutral" - } +export const DigestEmail: Story = { + args: { + templateSrcUrl: digestEmail, + context: { + notificationFrequency: "Monthly", + startDate: "2/1/2023", + endDate: "2/7/2023", + bill: { + 1: { + title: "H.1289", + subtitle: + "An Act to protect the civil rights and safety of all Massachusetts residents", + testimonies: "12", + cosponsors: "2", + hearingDate: "Jan 31" + }, + 2: { + title: "H.98", + subtitle: "An Act to further govt. transparency", + testimonies: "2", + cosponsors: "0", + hearingDate: "-" } }, - 2: { - orgTitle: "Moms for Liberty", - orgLookup: "c31R5rjWG9eTUopP7yeA5tZQtJX2", - counter: "6", - item: { - 1: { - title: "S.128", - icon: "endorse" - }, - 2: { - title: "S.1000", - icon: "neutral" - }, - 3: { - title: "S.543", - icon: "oppose" - }, - 4: { - title: "S.767", - icon: "endorse" - }, - 5: { - title: "S.992", - icon: "neutral" - }, - 6: { - title: "S.1", - icon: "oppose" + org: { + 1: { + orgTitle: "Boston’s Teacher Union", + orgLookup: "Tfh1tp2faYbSWsYYsvUS4F23mtD2", + counter: "3", + item: { + 1: { + title: "S.77", + icon: "endorse" + }, + 2: { + title: "S.77", + icon: "neutral" + }, + 3: { + title: "S.77", + icon: "neutral" + } } - } - }, - 3: { - orgTitle: "La Le Lu Le Lo", - orgLookup: "8P5Ar8NyAcNEVJMTexezXvRbept2", - counter: "8", - item: { - 1: { - title: "S.128", - icon: "endorse" - }, - 2: { - title: "S.1000", - icon: "neutral" - }, - 3: { - title: "S.543", - icon: "oppose" - }, - 4: { - title: "S.767", - icon: "endorse" - }, - 5: { - title: "S.992", - icon: "neutral" - }, - 6: { - title: "S.1", - icon: "oppose" - }, - 7: { - title: "S.22", - icon: "oppose" - }, - 8: { - title: "S.393", - icon: "neutral" + }, + 2: { + orgTitle: "Moms for Liberty", + orgLookup: "c31R5rjWG9eTUopP7yeA5tZQtJX2", + counter: "6", + item: { + 1: { + title: "S.128", + icon: "endorse" + }, + 2: { + title: "S.1000", + icon: "neutral" + }, + 3: { + title: "S.543", + icon: "oppose" + }, + 4: { + title: "S.767", + icon: "endorse" + }, + 5: { + title: "S.992", + icon: "neutral" + }, + 6: { + title: "S.1", + icon: "oppose" + } + } + }, + 3: { + orgTitle: "La Le Lu Le Lo", + orgLookup: "8P5Ar8NyAcNEVJMTexezXvRbept2", + counter: "8", + item: { + 1: { + title: "S.128", + icon: "endorse" + }, + 2: { + title: "S.1000", + icon: "neutral" + }, + 3: { + title: "S.543", + icon: "oppose" + }, + 4: { + title: "S.767", + icon: "endorse" + }, + 5: { + title: "S.992", + icon: "neutral" + }, + 6: { + title: "S.1", + icon: "oppose" + }, + 7: { + title: "S.22", + icon: "oppose" + }, + 8: { + title: "S.393", + icon: "neutral" + } } } } } } -} +} \ No newline at end of file diff --git a/stories_hold/organisms/editprofile/YourLegislators.stories.tsx b/stories_hold/organisms/editprofile/YourLegislators.stories.tsx deleted file mode 100644 index c9eefef73..000000000 --- a/stories_hold/organisms/editprofile/YourLegislators.stories.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { YourLegislators } from "components/EditProfilePage/YourLegislators" -import { LegislatorForm } from "components/ProfilePage/SelectLegislators" -import { MemberSearchIndex, Profile, ProfileHook } from "components/db" -import { Providers } from "components/providers" -import { wrapper } from "components/store" -import { Provider as Redux } from "react-redux" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Organisms/Edit Profile/LegislatorForm", - component: LegislatorForm, - decorators: [ - (Story, ...rest) => { - const { store, props } = wrapper.useWrappedStore(...rest) - - return ( - - - - - - ) - } - ] -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) -Primary.storyName = "LegislatorForm" -Primary.args = { - index: { - representatives: [ - // MemberSearchIndexItem - { - MemberCode: "CRF1", - Name: "Rep Name", - District: "District", - EmailAddress: "rep@ma.gov", - Party: "D", - Branch: "House" - }, - { - MemberCode: "CRF1", - Name: "Rep Name", - District: "District", - EmailAddress: "rep@ma.gov", - Party: "D", - Branch: "House" - }, - { - MemberCode: "CRF1", - Name: "Rep Name", - District: "District", - EmailAddress: "rep@ma.gov", - Party: "D", - Branch: "House" - }, - { - MemberCode: "CRF1", - Name: "Rep Name", - District: "District", - EmailAddress: "rep@ma.gov", - Party: "D", - Branch: "House" - } - ], - senators: [ - { - MemberCode: "CRF1", - Name: "Senator Name", - District: "District", - EmailAddress: "sen@ma.gov", - Party: "D", - Branch: "Senate" - }, - { - MemberCode: "CRF1", - Name: "Senator Name", - District: "District", - EmailAddress: "sen@ma.gov", - Party: "D", - Branch: "Senate" - }, - { - MemberCode: "CRF1", - Name: "Senator Name", - District: "District", - EmailAddress: "sen@ma.gov", - Party: "D", - Branch: "Senate" - }, - { - MemberCode: "CRF1", - Name: "Senator Name", - District: "District", - EmailAddress: "sen@ma.gov", - Party: "D", - Branch: "Senate" - } - ] - }, - profile: {} as ProfileHook -} diff --git a/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx b/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx deleted file mode 100644 index bb814dc01..000000000 --- a/stories_hold/organisms/education/BasicsOfTestimonyCard.stories.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import BasicsOfTestimonyCard from "components/LearnTestimonyComponents/BasicsOfTestimony/BasicsOfTestimonyCard" -import React from "react" -import { createMeta } from "stories/utils" - -export default createMeta({ - title: "Organisms/Education/BasicsOfTestimonyCard", - component: BasicsOfTestimonyCard, - parameters: { - backgrounds: { name: "medium", value: "#f4f4f4" } - } -}) - -const Template: ComponentStory = args => ( - -) - -export const Primary = Template.bind({}) - -Primary.args = { - title: "Anyone can submit testimony to the MA legislature", - paragraph: - "Legislators tend to value testimony most when it comes from their own constituents. Testimony from MA residents is typically directed to both the committee that is substantively responsible for the bill as well as the legislators (House member and Senator) representing your district.", - src: "who.svg", - alt: "Who" -} - -Primary.storyName = "BasicsOfTestimonyCard" From f85d7d6fc04b75fc0c6351da42bdc0e8aa0958f1 Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 18:37:54 -0500 Subject: [PATCH 19/21] upgrades chromatic (found was still on 6) --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index de1a7f7e9..128f89f8f 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "all-contributors-cli": "^6.20.5", "axios": "^0.27.2", "babel-loader": "^8.2.5", - "chromatic": "^6.10.2", + "chromatic": "^10.1.0", "clsx": "^1.2.1", "concurrently": "^7.0.0", "eslint": "^8.7.0", diff --git a/yarn.lock b/yarn.lock index 140a867b6..92160abb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6266,10 +6266,10 @@ chownr@^2.0.0: resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== -chromatic@^6.10.2: - version "6.24.1" - resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-6.24.1.tgz#848209706b423a78fe4876505a5dca3deb8e8b4c" - integrity sha512-XbpdWWHvFpEHtcq1Km71UcuQ07effB+8q8L47E1Y7HJmJ4ZCoKCuPd8liNrbnvwEAxqfBZvTcONYU/3BPz2i5w== +chromatic@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-10.1.0.tgz#d82f3045c297fb9a2d752aa1322d5fdb2cd3fd78" + integrity sha512-S+ztO8f1k/LckuzJKCqaTs6AfUQ0eLNT9kEoyCUwX7gkJnveQo5JStCfY55v30zogjRkHJpwqzEfSXl6AwO2tQ== chrome-trace-event@^1.0.2: version "1.0.3" From cf18056dc976e31d769fce3aba7a0e7afd602b2b Mon Sep 17 00:00:00 2001 From: sashamaryl Date: Mon, 11 Dec 2023 19:10:20 -0500 Subject: [PATCH 20/21] runs prettier and check types --- components/AlertCard/AlertCard.tsx | 4 +- components/ProfilePage/ProfileButtons.tsx | 6 +-- stories/atoms/BaseButton.stories.tsx | 25 +++++------ stories/atoms/SocialIconLink.stories.tsx | 17 +++---- stories/atoms/Typography.stories.tsx | 34 +++++++------- stories/atoms/ValuePlaqu.stories.tsx | 3 +- stories/molecules/Icons.stories.tsx | 17 +++---- stories/molecules/Tag.stories.tsx | 8 ++-- .../molecules/form-elements/Input.stories.tsx | 10 +---- .../billDetail/BillStatus.stories.tsx | 4 +- .../BillTestimonyListCard.stories.tsx | 1 - .../CurrentCommitteeCard.stories.tsx | 2 +- .../billDetail/TestimonyCounts.stories.tsx | 1 - stories/organisms/cards/Card.stories.tsx | 10 +---- .../organisms/cards/CardListItem.stories.tsx | 2 - .../organisms/cards/CardListItems.stories.tsx | 33 ++++++++------ stories/organisms/cards/CardTitle.stories.tsx | 20 ++++----- stories/organisms/cards/SeeMore.stories.tsx | 4 +- .../ProfileSettingsModal.stories.tsx | 3 -- .../BasicsOfTestimonyCard.stories.tsx | 4 +- .../organisms/readme.stories.md | 0 stories/utils.ts | 7 +-- stories_hold/Tag.stories.tsx | 21 --------- stories_hold/buttons/ButtonGroup.stories.tsx | 2 - .../buttons/DropdownButton.stories.tsx | 2 - .../buttons/PrimaryButtonWithIcon.stories.tsx | 2 - .../buttons/PrioritizeButton.stories.tsx | 2 - .../emailTemplates/digest.stories.tsx | 2 +- .../organisms/newsfeed/AlertCard.stories.tsx | 2 - .../newsfeed/HotBillCard.stories.tsx | 2 - .../pageElements/LoadingPage.stories.tsx | 2 - .../pageElements/PageFooter.stories.tsx | 2 - .../pageElements/PageHeader.stories.tsx | 3 +- .../organisms/profile/ProfileLink.stories.tsx | 44 +++++++++---------- .../profile/UserTestimonyListCard.stories.tsx | 2 - stories_hold/pages/BillDetails.stories.tsx | 2 - .../auth/ForgetPasswordModal.stories.tsx | 2 - .../pages/auth/OrgSignUpModal.stories.tsx | 2 - .../pages/auth/ProfileTypeModal.stories.tsx | 2 - .../pages/auth/SignInModal.stories.tsx | 2 - .../auth/TermsOfServiceModal.stories.tsx | 2 - .../CommunicatingWithLegislators.stories.tsx | 2 - .../GoalsAndMissionCardContent.stories.tsx | 2 - .../unused/BillStatusCard.stories.tsx | 2 - stories_hold/unused/ContactInfo.stories.tsx | 2 - .../DashboardPriorityBillsCard.stories.tsx | 2 - stories_hold/unused/FollowingCard.stories.tsx | 4 +- stories_hold/unused/OrgAvatar.stories.tsx | 4 +- .../unused/OrgPriorityCard.stories.tsx | 2 - stories_hold/unused/OrgPriorityCard.tsx | 2 +- .../unused/PriorityBillsCard.stories.tsx | 2 - stories_hold/unused/ProfileCard.stories.tsx | 2 - stories_hold/unused/ResourcesCard.stories.tsx | 2 - 53 files changed, 119 insertions(+), 224 deletions(-) rename {stories_hold => stories}/organisms/readme.stories.md (100%) delete mode 100644 stories_hold/Tag.stories.tsx diff --git a/components/AlertCard/AlertCard.tsx b/components/AlertCard/AlertCard.tsx index 75193f4fe..1c1505468 100644 --- a/components/AlertCard/AlertCard.tsx +++ b/components/AlertCard/AlertCard.tsx @@ -1,9 +1,7 @@ import { CardTitle } from "components/Card" +import { Timestamp } from "firebase/firestore" import { Card as MapleCard } from "../Card/Card" import { AlertCardBody } from "./AlertCardBody" -import { Timestamp } from "firebase/firestore" -import styles from "./AlertCard.module.css" -import OrgPriorityCardStories from "stories_hold/organisms/billDetail/OrgPriorityCard.stories" export const AlertCard = (props: { header: string diff --git a/components/ProfilePage/ProfileButtons.tsx b/components/ProfilePage/ProfileButtons.tsx index 03334dc12..96b954059 100644 --- a/components/ProfilePage/ProfileButtons.tsx +++ b/components/ProfilePage/ProfileButtons.tsx @@ -4,12 +4,12 @@ import { ProfileHook, useProfile } from "../db" import { Internal } from "components/links" import styled from "styled-components" -const StyledButton1 = styled(Button)` +export const StyledButton1 = styled(Button)` height: 34px; width: 116px; ` -const StyledButton2 = styled(Button)` +export const StyledButton2 = styled(Button)` &:focus { color: #1a3185; background-color: white; @@ -29,7 +29,7 @@ const StyledButton2 = styled(Button)` } ` -const StyledButton3 = styled(Button)` +export const StyledButton3 = styled(Button)` &:focus { color: white; background-color: #1a3185; diff --git a/stories/atoms/BaseButton.stories.tsx b/stories/atoms/BaseButton.stories.tsx index 396435b42..f7c9a67e3 100644 --- a/stories/atoms/BaseButton.stories.tsx +++ b/stories/atoms/BaseButton.stories.tsx @@ -1,35 +1,32 @@ -import { Meta, StoryFn, StoryObj } from '@storybook/react' +import { Meta, StoryFn, StoryObj } from "@storybook/react" import { userEvent, within } from "@storybook/testing-library" -import { ReactNode } from 'react' -import { Button } from 'react-bootstrap' -import styled from 'styled-components' - +import { ReactNode } from "react" +import { Button } from "react-bootstrap" +import styled from "styled-components" const BaseButton = styled(Button)`` - const meta: Meta = { - title: 'Atoms/BaseButton', - component: BaseButton, + title: "Atoms/BaseButton", + component: BaseButton } export default meta - type Story = StoryObj export const Primary: Story = { args: { - children: 'Button', - variant: 'secondary' + children: "Button", + variant: "secondary" }, - name: 'Button', + name: "Button" } export const HoveredButton: Story = { ...Primary, play: async ({ canvasElement }) => { const canvas = within(canvasElement) - await userEvent.hover(canvas.getByRole('button')) + await userEvent.hover(canvas.getByRole("button")) } } @@ -37,6 +34,6 @@ export const ClickedButton: Story = { ...Primary, play: async ({ canvasElement }) => { const canvas = within(canvasElement) - await userEvent.click(canvas.getByRole('button')) + await userEvent.click(canvas.getByRole("button")) } } diff --git a/stories/atoms/SocialIconLink.stories.tsx b/stories/atoms/SocialIconLink.stories.tsx index c49244a61..cdcebf8e3 100644 --- a/stories/atoms/SocialIconLink.stories.tsx +++ b/stories/atoms/SocialIconLink.stories.tsx @@ -9,13 +9,14 @@ const meta: Meta = { type Story = StoryObj export const Primary: Story = { - render: () => , - name: 'SocialIconLink' + render: () => ( + + ), + name: "SocialIconLink" } - -export default meta \ No newline at end of file +export default meta diff --git a/stories/atoms/Typography.stories.tsx b/stories/atoms/Typography.stories.tsx index 867c2258c..f40f3f904 100644 --- a/stories/atoms/Typography.stories.tsx +++ b/stories/atoms/Typography.stories.tsx @@ -9,23 +9,23 @@ const meta: Meta = { } export const Typopgraphy: StoryObj = { - - render: () =>
-

h1. Maple is my favorite tree.

-

h2. Maple is my favorite tree.

-

h3. Maple is my favorite tree.

-

h4. Maple is my favorite tree.

-
h5. Maple is my favorite tree.
-
h6. Maple is my favorite tree.
-

Body 1. Maple is my favorite tree.

-

- Body 2. Maple is my favorite tree. -

-
Caption. Maple is my favorite tree.
- -
, - name: 'Typography' + render: () => ( +
+

h1. Maple is my favorite tree.

+

h2. Maple is my favorite tree.

+

h3. Maple is my favorite tree.

+

h4. Maple is my favorite tree.

+
h5. Maple is my favorite tree.
+
h6. Maple is my favorite tree.
+

Body 1. Maple is my favorite tree.

+

+ Body 2. Maple is my favorite tree. +

+
Caption. Maple is my favorite tree.
+ +
+ ), + name: "Typography" } - export default meta diff --git a/stories/atoms/ValuePlaqu.stories.tsx b/stories/atoms/ValuePlaqu.stories.tsx index c40c85df2..3702a8d58 100644 --- a/stories/atoms/ValuePlaqu.stories.tsx +++ b/stories/atoms/ValuePlaqu.stories.tsx @@ -37,5 +37,4 @@ export const Primary: Story = { name: "Plaque" } - -export default meta \ No newline at end of file +export default meta diff --git a/stories/molecules/Icons.stories.tsx b/stories/molecules/Icons.stories.tsx index bf6f9745b..ff055bf6e 100644 --- a/stories/molecules/Icons.stories.tsx +++ b/stories/molecules/Icons.stories.tsx @@ -17,21 +17,18 @@ const meta: Meta = { } export const Primary = { - args: { children: ( - {/* + {/* */} -
TODO
-
- ) - - }, name: "Icons" +
TODO
+ + ) + }, + name: "Icons" } - - -export default meta \ No newline at end of file +export default meta diff --git a/stories/molecules/Tag.stories.tsx b/stories/molecules/Tag.stories.tsx index 571f3cca7..4177a5ca1 100644 --- a/stories/molecules/Tag.stories.tsx +++ b/stories/molecules/Tag.stories.tsx @@ -1,7 +1,7 @@ import { Meta, StoryObj } from "@storybook/react" import { Tag } from "components/Tag/Tag" -const meta:Meta = { +const meta: Meta = { title: "Molecules/Tag", component: Tag } @@ -10,8 +10,8 @@ export default meta type Story = StoryObj -export const Senate: Story = {args : { chamber: "senate" }} +export const Senate: Story = { args: { chamber: "senate" } } -export const House: Story = { args : { chamber: "house" } } +export const House: Story = { args: { chamber: "house" } } -export const Joint: Story = { args : { chamber: "joint" } } +export const Joint: Story = { args: { chamber: "joint" } } diff --git a/stories/molecules/form-elements/Input.stories.tsx b/stories/molecules/form-elements/Input.stories.tsx index aa0b075ba..9b3d951f9 100644 --- a/stories/molecules/form-elements/Input.stories.tsx +++ b/stories/molecules/form-elements/Input.stories.tsx @@ -1,18 +1,13 @@ import type { Meta, StoryObj } from "@storybook/react" import Input from "components/forms/Input" - const meta: Meta = { component: Input, - title: "Molecules/Input", + title: "Molecules/Input" } type Story = StoryObj - - - - export const Primary: Story = { args: { label: "Input" @@ -28,5 +23,4 @@ export const InputWithError: Story = { name: "Input with error" } - -export default meta \ No newline at end of file +export default meta diff --git a/stories/organisms/billDetail/BillStatus.stories.tsx b/stories/organisms/billDetail/BillStatus.stories.tsx index 2861ea277..0a139e945 100644 --- a/stories/organisms/billDetail/BillStatus.stories.tsx +++ b/stories/organisms/billDetail/BillStatus.stories.tsx @@ -1,5 +1,5 @@ import { Meta, StoryObj } from "@storybook/react" -import {BillTrackerView} from "components/bill/BillTracker" +import { BillTrackerView } from "components/bill/BillTracker" import { Timestamp } from "firebase/firestore" import { Stage } from "functions/src/analysis/types" @@ -30,7 +30,7 @@ export const Primary: Story = { createdAt: Timestamp.now() } } - }, + } } export const Secondary: Story = { diff --git a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx index 14f70f2de..1f2dc8010 100644 --- a/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx +++ b/stories/organisms/billDetail/BillTestimonyListCard.stories.tsx @@ -14,7 +14,6 @@ const meta: Meta = { export default meta - var first = { Id: "test", Name: "tes", Type: 0 } type Story = StoryObj diff --git a/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx index 64a5d3f4c..479913200 100644 --- a/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx +++ b/stories/organisms/billDetail/CurrentCommitteeCard.stories.tsx @@ -12,4 +12,4 @@ type Story = StoryObj export const Primary: Story = { args: { chamber: "House", committee: "Committee of Ways and Means" }, name: "CurrentCommitteeCard" -} \ No newline at end of file +} diff --git a/stories/organisms/billDetail/TestimonyCounts.stories.tsx b/stories/organisms/billDetail/TestimonyCounts.stories.tsx index 2b9a4fb2d..2ecd4993c 100644 --- a/stories/organisms/billDetail/TestimonyCounts.stories.tsx +++ b/stories/organisms/billDetail/TestimonyCounts.stories.tsx @@ -11,7 +11,6 @@ export default meta type Story = StoryObj - export const Primary = { args: { bill: { diff --git a/stories/organisms/cards/Card.stories.tsx b/stories/organisms/cards/Card.stories.tsx index 1c72f6092..42e3d1886 100644 --- a/stories/organisms/cards/Card.stories.tsx +++ b/stories/organisms/cards/Card.stories.tsx @@ -2,7 +2,6 @@ import { Meta, StoryObj } from "@storybook/react" import { Card } from "components/Card" const meta: Meta = { - title: "Organisms/Cards/Card", component: Card } @@ -11,7 +10,6 @@ export default meta type Story = StoryObj - const CustomBody = () => { var misfits = ["Danzig", "Only", "Doyle", "Googy"] return ( @@ -29,9 +27,6 @@ const CustomBody = () => { ) } - - - export const HeaderAndSubheaderAndTimestamp: Story = { args: { header: "Header", @@ -40,8 +35,6 @@ export const HeaderAndSubheaderAndTimestamp: Story = { } } - - export const HeaderAndSubheaderAndTimestampAndImgAndBody: Story = { args: { header: "Header", @@ -63,7 +56,6 @@ export const HeaderAndSubheaderAndTimestampAndImgAndCustomBody: Story = { export const HeaderAndSubheaderAndBodyAndTwoListItems: Story = { args: { - header: "Header", subheader: "Subheader", bodyText: "This is body text and it's nonsense placeholder and filler", @@ -80,4 +72,4 @@ export const HeaderAndSubheaderAndBodyAndTwoListItems: Story = { } ] } -} \ No newline at end of file +} diff --git a/stories/organisms/cards/CardListItem.stories.tsx b/stories/organisms/cards/CardListItem.stories.tsx index 43a0cbebd..ed1c39e1b 100644 --- a/stories/organisms/cards/CardListItem.stories.tsx +++ b/stories/organisms/cards/CardListItem.stories.tsx @@ -2,7 +2,6 @@ import { Meta, StoryObj } from "@storybook/react" import { ListItem } from "components/Card" const meta: Meta = { - title: "Organisms/Cards/CardListItem", component: ListItem } @@ -11,7 +10,6 @@ export default meta type Story = StoryObj - export const Primary: Story = { args: { billName: "H.3330", diff --git a/stories/organisms/cards/CardListItems.stories.tsx b/stories/organisms/cards/CardListItems.stories.tsx index 248574c3a..9a5a56234 100644 --- a/stories/organisms/cards/CardListItems.stories.tsx +++ b/stories/organisms/cards/CardListItems.stories.tsx @@ -1,7 +1,6 @@ import { Meta, StoryObj } from "@storybook/react" import { CardListItems, ListItem } from "components/Card" -import { OnlyBillName } from './CardListItem.stories' - +import { OnlyBillName } from "./CardListItem.stories" const meta: Meta = { title: "Organisms/Cards/CardListItems", @@ -12,21 +11,27 @@ export default meta type Story = StoryObj - - - export const Primary: Story = { - render: args => ] } /> + render: args => ( + ]} /> + ) } export const MultipleItems: Story = { - args : { + args: { items: [ - , - , - + , + , + ] - - - - }} \ No newline at end of file + } +} diff --git a/stories/organisms/cards/CardTitle.stories.tsx b/stories/organisms/cards/CardTitle.stories.tsx index fc4cdcf94..46c0e7989 100644 --- a/stories/organisms/cards/CardTitle.stories.tsx +++ b/stories/organisms/cards/CardTitle.stories.tsx @@ -1,23 +1,21 @@ import { Meta, StoryObj } from "@storybook/react" import { CardTitle } from "../../../components/Card" -const meta: Meta = ({ +const meta: Meta = { title: "Organisms/Cards/CardTitle", component: CardTitle -}) +} export default meta type Story = StoryObj - export const Primary: Story = { args: { - header: "Header", - subheader: "Subheader here don't miss it", - timestamp: "3:29PM", - imgSrc: - "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" -}} - - + header: "Header", + subheader: "Subheader here don't miss it", + timestamp: "3:29PM", + imgSrc: + "https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/How_to_use_icon.svg/2214px-How_to_use_icon.svg.png" + } +} diff --git a/stories/organisms/cards/SeeMore.stories.tsx b/stories/organisms/cards/SeeMore.stories.tsx index de86fcc2c..e77e57ae3 100644 --- a/stories/organisms/cards/SeeMore.stories.tsx +++ b/stories/organisms/cards/SeeMore.stories.tsx @@ -1,8 +1,8 @@ import { Meta } from "@storybook/react" import { SeeMore } from "../../../components/Card" -const meta: Meta = { -title: "Organisms/Cards/SeeMore", +const meta: Meta = { + title: "Organisms/Cards/SeeMore", component: SeeMore } export default meta diff --git a/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx b/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx index 997a3d04d..c983a0933 100644 --- a/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx +++ b/stories/organisms/editprofile/ProfileSettingsModal.stories.tsx @@ -5,7 +5,6 @@ import { Providers } from "components/providers" import { wrapper } from "components/store" import { Provider as Redux } from "react-redux" - const meta: Meta = { title: "Organisms/Edit Profile/ProfileSettingsModal", component: ProfileSettingsModal, @@ -28,7 +27,6 @@ export default meta type Story = StoryObj - export const Primary: Story = { args: { actions: {} as ProfileHook, @@ -39,4 +37,3 @@ export const Primary: Story = { }, name: "ProfileSettingsModal" } - diff --git a/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx b/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx index 479375d2f..3c6a69224 100644 --- a/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx +++ b/stories/organisms/education/BasicsOfTestimonyCard.stories.tsx @@ -15,8 +15,6 @@ export default meta type Story = StoryObj export const Primary: Story = { - - args: { title: "Anyone can submit testimony to the MA legislature", paragraph: @@ -26,4 +24,4 @@ export const Primary: Story = { }, name: "BasicsOfTestimonyCard" -} \ No newline at end of file +} diff --git a/stories_hold/organisms/readme.stories.md b/stories/organisms/readme.stories.md similarity index 100% rename from stories_hold/organisms/readme.stories.md rename to stories/organisms/readme.stories.md diff --git a/stories/utils.ts b/stories/utils.ts index 08013d965..d54bca811 100644 --- a/stories/utils.ts +++ b/stories/utils.ts @@ -1,16 +1,12 @@ import type { Meta, StoryObj } from "@storybook/react" import { ComponentType } from "react" - type MetaProps = Meta & { - title: string, + title: string component: ComponentType } - - export const createMeta = ({ component, title, ...props }: MetaProps) => { - const meta: Meta = { component: component, title: title } type Story = StoryObj @@ -21,4 +17,3 @@ export const createMeta = ({ component, title, ...props }: MetaProps) => { return { meta, createStory } } - diff --git a/stories_hold/Tag.stories.tsx b/stories_hold/Tag.stories.tsx deleted file mode 100644 index d6d178c0c..000000000 --- a/stories_hold/Tag.stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { ComponentStory } from "@storybook/react" -import { createMeta } from "stories/utils" -import { Tag } from "../../components/Tag/Tag" - -export default createMeta({ - title: "Components/Tag", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=231%3A13514", - component: Tag -}) - -const Template: ComponentStory = args => - -export const Senate = Template.bind({}) -Senate.args = { chamber: "senate" } - -export const House = Template.bind({}) -House.args = { chamber: "house" } - -export const Joint = Template.bind({}) -Joint.args = { chamber: "joint" } diff --git a/stories_hold/buttons/ButtonGroup.stories.tsx b/stories_hold/buttons/ButtonGroup.stories.tsx index f8e100bd4..350d9f92b 100644 --- a/stories_hold/buttons/ButtonGroup.stories.tsx +++ b/stories_hold/buttons/ButtonGroup.stories.tsx @@ -5,8 +5,6 @@ const ButtonGroup = () =>
TODO
export default createMeta({ title: "Components/Buttons/ButtonGroup", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=243%3A12340", component: ButtonGroup }) diff --git a/stories_hold/buttons/DropdownButton.stories.tsx b/stories_hold/buttons/DropdownButton.stories.tsx index 4817dfdd6..50c6d3bd5 100644 --- a/stories_hold/buttons/DropdownButton.stories.tsx +++ b/stories_hold/buttons/DropdownButton.stories.tsx @@ -7,8 +7,6 @@ import { ComponentStory } from "@storybook/react" export default createMeta({ title: "Components/Buttons/DropdownButton", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A12483", component: DropdownButton }) diff --git a/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx b/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx index dd351592b..e8632c04f 100644 --- a/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx +++ b/stories_hold/buttons/PrimaryButtonWithIcon.stories.tsx @@ -5,8 +5,6 @@ const PrimaryButtonWithIcon = () =>
TODO
export default createMeta({ title: "Components/Buttons/PrimaryButtonWithIcon", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=245%3A14373", component: PrimaryButtonWithIcon }) diff --git a/stories_hold/buttons/PrioritizeButton.stories.tsx b/stories_hold/buttons/PrioritizeButton.stories.tsx index ad491b0f8..bc35a2735 100644 --- a/stories_hold/buttons/PrioritizeButton.stories.tsx +++ b/stories_hold/buttons/PrioritizeButton.stories.tsx @@ -5,8 +5,6 @@ const PrioritizeButton = () =>
TODO
export default createMeta({ title: "Components/Buttons/PrioritizeButton", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A6927", component: PrioritizeButton }) diff --git a/stories_hold/emailTemplates/digest.stories.tsx b/stories_hold/emailTemplates/digest.stories.tsx index 9c09099e6..dca40e9f0 100644 --- a/stories_hold/emailTemplates/digest.stories.tsx +++ b/stories_hold/emailTemplates/digest.stories.tsx @@ -176,4 +176,4 @@ export const DigestEmail: Story = { } } } -} \ No newline at end of file +} diff --git a/stories_hold/organisms/newsfeed/AlertCard.stories.tsx b/stories_hold/organisms/newsfeed/AlertCard.stories.tsx index 65b40aadd..0651ee888 100644 --- a/stories_hold/organisms/newsfeed/AlertCard.stories.tsx +++ b/stories_hold/organisms/newsfeed/AlertCard.stories.tsx @@ -6,8 +6,6 @@ import { Timestamp } from "firebase/firestore" export default createMeta({ title: "Dashboard/Newsfeed/AlertCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A2873", component: AlertCard }) diff --git a/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx b/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx index f7437947d..818384bc5 100644 --- a/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx +++ b/stories_hold/organisms/newsfeed/HotBillCard.stories.tsx @@ -8,8 +8,6 @@ import { HotBillCard } from "components/HotBillCard/HotBillCard" export default createMeta({ title: "Dashboard/Newsfeed/HotBillCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=158%3A3865", component: HotBillCard }) diff --git a/stories_hold/organisms/pageElements/LoadingPage.stories.tsx b/stories_hold/organisms/pageElements/LoadingPage.stories.tsx index 9917f140c..c20e942c0 100644 --- a/stories_hold/organisms/pageElements/LoadingPage.stories.tsx +++ b/stories_hold/organisms/pageElements/LoadingPage.stories.tsx @@ -4,8 +4,6 @@ import { createMeta } from "stories/utils" export default createMeta({ title: "Organisms/Page Elements/LoadingPage", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: Loading }) diff --git a/stories_hold/organisms/pageElements/PageFooter.stories.tsx b/stories_hold/organisms/pageElements/PageFooter.stories.tsx index 51252671b..b915b2fc6 100644 --- a/stories_hold/organisms/pageElements/PageFooter.stories.tsx +++ b/stories_hold/organisms/pageElements/PageFooter.stories.tsx @@ -9,8 +9,6 @@ import PageFooter from "../../../components/Footer/Footer" export default createMeta({ title: "Components/Page/PageFooter", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: PageFooter }) diff --git a/stories_hold/organisms/pageElements/PageHeader.stories.tsx b/stories_hold/organisms/pageElements/PageHeader.stories.tsx index 1a632d859..a8da5a4b2 100644 --- a/stories_hold/organisms/pageElements/PageHeader.stories.tsx +++ b/stories_hold/organisms/pageElements/PageHeader.stories.tsx @@ -13,5 +13,6 @@ import { appWithTranslation } from "next-i18next" type Story = StoryObj export const Primary: Story = { - args: { authenticated: true }, name: "PageHeader" + args: { authenticated: true }, + name: "PageHeader" } diff --git a/stories_hold/organisms/profile/ProfileLink.stories.tsx b/stories_hold/organisms/profile/ProfileLink.stories.tsx index 1cf3bdef6..278e0a849 100644 --- a/stories_hold/organisms/profile/ProfileLink.stories.tsx +++ b/stories_hold/organisms/profile/ProfileLink.stories.tsx @@ -1,5 +1,5 @@ import { ComponentStory } from "@storybook/react" -import { ProfileLinkView } from "components/ProfileLink/ProfileLink" +import ProfileLinkView from "components/ProfileLink/ProfileLink" import { Providers } from "components/providers" import { wrapper } from "components/store" import { Col, Row } from "react-bootstrap" @@ -33,24 +33,24 @@ const Template: ComponentStory = args => ( ) export const Primary = Template.bind({}) -Primary.storyName = "ProfileLink" -Primary.args = { - fullName: "John Doe", - role: "user", - sticky: false, - isExpanded: false, - toggleNav: () => {}, - closeNav: () => {}, - userLink: "/profile?id=123" -} -export const Secondary = Template.bind({}) -Secondary.storyName = "ProfileLink Expanded" -Secondary.args = { - fullName: "John Doe", - role: "user", - sticky: false, - isExpanded: true, - toggleNav: () => {}, - closeNav: () => {}, - userLink: "/profile?id=123" -} +// Primary.storyName = "ProfileLink" +// Primary.args = { +// fullName: "John Doe", +// role: "user", +// sticky: false, +// isExpanded: false, +// toggleNav: () => { }, +// closeNav: () => { }, +// userLink: "/profile?id=123" +// } +// export const Secondary = Template.bind({}) +// Secondary.storyName = "ProfileLink Expanded" +// Secondary.args = { +// fullName: "John Doe", +// role: "user", +// sticky: false, +// isExpanded: true, +// toggleNav: () => { }, +// closeNav: () => { }, +// userLink: "/profile?id=123" +// } diff --git a/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx b/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx index ab106c830..a96c55abb 100644 --- a/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx +++ b/stories_hold/organisms/profile/UserTestimonyListCard.stories.tsx @@ -17,8 +17,6 @@ const TestimonyItemFC: React.FC = ( export default createMeta({ title: "Organisms/Profile/UserTestimonyListCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=311%3A10561", component: TestimonyItemFC, decorators: [ (Story, ...rest) => { diff --git a/stories_hold/pages/BillDetails.stories.tsx b/stories_hold/pages/BillDetails.stories.tsx index 02c83d3d9..d6fa8d4a9 100644 --- a/stories_hold/pages/BillDetails.stories.tsx +++ b/stories_hold/pages/BillDetails.stories.tsx @@ -8,8 +8,6 @@ import { bill } from "../../stories/organisms/billDetail/MockBillData" export default createMeta({ title: "Pages/BillDetails", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: BillDetails }) diff --git a/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx b/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx index 5a616fcbd..e2db651a9 100644 --- a/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx +++ b/stories_hold/pages/auth/ForgetPasswordModal.stories.tsx @@ -7,8 +7,6 @@ import { Provider as Redux } from "react-redux" export default createMeta({ title: "Pages/Auth/ForgotPasswordModal", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: ForgotPasswordModal }) diff --git a/stories_hold/pages/auth/OrgSignUpModal.stories.tsx b/stories_hold/pages/auth/OrgSignUpModal.stories.tsx index 6d41489ff..9f04141b3 100644 --- a/stories_hold/pages/auth/OrgSignUpModal.stories.tsx +++ b/stories_hold/pages/auth/OrgSignUpModal.stories.tsx @@ -7,8 +7,6 @@ import { Provider as Redux } from "react-redux" export default createMeta({ title: "Pages/Auth/Org Sign Up Modal", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: OrgSignUpModal }) diff --git a/stories_hold/pages/auth/ProfileTypeModal.stories.tsx b/stories_hold/pages/auth/ProfileTypeModal.stories.tsx index dc6126866..3e3c08df5 100644 --- a/stories_hold/pages/auth/ProfileTypeModal.stories.tsx +++ b/stories_hold/pages/auth/ProfileTypeModal.stories.tsx @@ -7,8 +7,6 @@ import { Provider as Redux } from "react-redux" export default createMeta({ title: "Pages/Auth/Profile Type Modal", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: ProfileTypeModal }) diff --git a/stories_hold/pages/auth/SignInModal.stories.tsx b/stories_hold/pages/auth/SignInModal.stories.tsx index aee54beba..09155bacc 100644 --- a/stories_hold/pages/auth/SignInModal.stories.tsx +++ b/stories_hold/pages/auth/SignInModal.stories.tsx @@ -7,8 +7,6 @@ import { Provider as Redux } from "react-redux" export default createMeta({ title: "Pages/Auth/Sign In Modal", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: SignInModal }) diff --git a/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx b/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx index 8319d242e..99676bd80 100644 --- a/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx +++ b/stories_hold/pages/auth/TermsOfServiceModal.stories.tsx @@ -7,8 +7,6 @@ import { Provider as Redux } from "react-redux" export default createMeta({ title: "Pages/Auth/Terms Of Service Modal", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: TermsOfServiceModal }) diff --git a/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx b/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx index 7e43f3283..b6db64613 100644 --- a/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx +++ b/stories_hold/pages/education/CommunicatingWithLegislators.stories.tsx @@ -3,8 +3,6 @@ import { createMeta } from "stories/utils" import CommunicatingWithLegislators from "components/CommunicatingWithLegislators/CommunicatingWithLegislators" export default createMeta({ title: "Pages/Education/CommunicatingWithLegislators", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: CommunicatingWithLegislators }) diff --git a/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx b/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx index 99207b1a5..7294527a8 100644 --- a/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx +++ b/stories_hold/pages/education/GoalsAndMissionCardContent.stories.tsx @@ -7,8 +7,6 @@ import GoalsAndMission from "components/GoalsAndMission/GoalsAndMission" export default createMeta({ title: "Pages/Education/GoalsAndMission", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=49%3A3010", component: GoalsAndMission, decorators: [ (Story, ...rest) => { diff --git a/stories_hold/unused/BillStatusCard.stories.tsx b/stories_hold/unused/BillStatusCard.stories.tsx index 884ea1008..f8dafb401 100644 --- a/stories_hold/unused/BillStatusCard.stories.tsx +++ b/stories_hold/unused/BillStatusCard.stories.tsx @@ -4,8 +4,6 @@ import { createMeta } from "stories/utils" export default createMeta({ title: "Dashboard/Mission Center/BillStatusCard", - figmaUrl: - "https://www.figma.com/file/Uyh2NXGTCX60mkse2NVBH7/MAPLE?node-id=2184%3A23094&t=yQ7oQ6AqkJc2pZNR-4", component: BillStatusCard }) diff --git a/stories_hold/unused/ContactInfo.stories.tsx b/stories_hold/unused/ContactInfo.stories.tsx index dc45f1729..ed577bf52 100644 --- a/stories_hold/unused/ContactInfo.stories.tsx +++ b/stories_hold/unused/ContactInfo.stories.tsx @@ -5,8 +5,6 @@ import { SocialIconLink } from "../../components/SocialIconLink/SocialIconLink" export default createMeta({ title: "Profile/ContactInfo", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=229%3A8117", component: ContactInfo }) diff --git a/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx b/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx index 84adcfa26..88d4e2a71 100644 --- a/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx +++ b/stories_hold/unused/DashboardPriorityBillsCard.stories.tsx @@ -6,8 +6,6 @@ const DashboardPriorityBillsCard = () =>
TODO
export default createMeta({ title: "Unused/DashboardPriorityBillsCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=231%3A14013", component: PriorityBillsCard }) diff --git a/stories_hold/unused/FollowingCard.stories.tsx b/stories_hold/unused/FollowingCard.stories.tsx index 1b617611d..d8df10d0f 100644 --- a/stories_hold/unused/FollowingCard.stories.tsx +++ b/stories_hold/unused/FollowingCard.stories.tsx @@ -1,11 +1,9 @@ import { ComponentStory } from "@storybook/react" import { createMeta } from "stories/utils" -import { FollowingCard } from "../../../components/FollowingCard/FollowingCard" +import { FollowingCard } from "components/FollowingCard/FollowingCard" export default createMeta({ title: "Dashboard/Side Panels/FollowingCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=167%3A6922", component: FollowingCard }) diff --git a/stories_hold/unused/OrgAvatar.stories.tsx b/stories_hold/unused/OrgAvatar.stories.tsx index eab3ee80c..263cf9d33 100644 --- a/stories_hold/unused/OrgAvatar.stories.tsx +++ b/stories_hold/unused/OrgAvatar.stories.tsx @@ -1,11 +1,9 @@ import { createMeta } from "stories/utils" -import { OrgAvatar } from "stories/components/OrgAvatar" +import { OrgAvatar } from "./OrgAvatar" import { ComponentStory } from "@storybook/react" export default createMeta({ title: "Components/Avatar", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16634", component: OrgAvatar }) diff --git a/stories_hold/unused/OrgPriorityCard.stories.tsx b/stories_hold/unused/OrgPriorityCard.stories.tsx index 403fb1a1a..e928835d8 100644 --- a/stories_hold/unused/OrgPriorityCard.stories.tsx +++ b/stories_hold/unused/OrgPriorityCard.stories.tsx @@ -4,8 +4,6 @@ import { OrgItem, OrgPriorityCard } from "./OrgPriorityCard" export default createMeta({ title: "Bill Detail/OrgPriorityCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=242%3A16629", component: OrgPriorityCard }) diff --git a/stories_hold/unused/OrgPriorityCard.tsx b/stories_hold/unused/OrgPriorityCard.tsx index 5006e5148..a48bd8333 100644 --- a/stories_hold/unused/OrgPriorityCard.tsx +++ b/stories_hold/unused/OrgPriorityCard.tsx @@ -1,7 +1,7 @@ import { Card, SeeMore } from "components/Card" import { Position } from "components/db" import { Key } from "react" -import { OrgAvatar } from "stories/components/OrgAvatar" +import { OrgAvatar } from "./OrgAvatar" import styled from "styled-components" import { FC } from "react" import { chunk } from "lodash" diff --git a/stories_hold/unused/PriorityBillsCard.stories.tsx b/stories_hold/unused/PriorityBillsCard.stories.tsx index 96ebb5147..c2843cc06 100644 --- a/stories_hold/unused/PriorityBillsCard.stories.tsx +++ b/stories_hold/unused/PriorityBillsCard.stories.tsx @@ -5,8 +5,6 @@ import { PriorityBillsCard } from "../../components/PriortyBillsCard/PriorityBil export default createMeta({ title: "Profile/PriorityBillsCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=109%3A2927", component: PriorityBillsCard }) diff --git a/stories_hold/unused/ProfileCard.stories.tsx b/stories_hold/unused/ProfileCard.stories.tsx index a9efaf9fc..377979d1f 100644 --- a/stories_hold/unused/ProfileCard.stories.tsx +++ b/stories_hold/unused/ProfileCard.stories.tsx @@ -3,8 +3,6 @@ import { createMeta } from "stories/utils" export default createMeta({ title: "Dashboard/Side Panels/ProfileCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=296%3A15838", component: ProfileCard }) diff --git a/stories_hold/unused/ResourcesCard.stories.tsx b/stories_hold/unused/ResourcesCard.stories.tsx index b07958007..826f60063 100644 --- a/stories_hold/unused/ResourcesCard.stories.tsx +++ b/stories_hold/unused/ResourcesCard.stories.tsx @@ -3,8 +3,6 @@ import { createMeta } from "stories/utils" export default createMeta({ title: "Dashboard/Side Panels/ResourcesCard", - figmaUrl: - "https://www.figma.com/file/3ifz37EOwDfmnEG8320KlD/CS1---MAPLE?node-id=123%3A3003", component: ResourcesCard }) From 26211779a627111b3ebcf5a1f060c9f69aa96fb9 Mon Sep 17 00:00:00 2001 From: Alex Ball Date: Tue, 26 Dec 2023 14:07:25 -0500 Subject: [PATCH 21/21] Update to latest firebase tools for deployment, remove unused workflow --- .github/workflows/deploy-backend-dev.yml | 2 +- .github/workflows/deploy-frontend-dev.yml | 28 ----------------------- .github/workflows/deploy-prod.yml | 2 +- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/deploy-frontend-dev.yml diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index f08e39559..f51597951 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Build Environment uses: ./.github/actions/setup-repo - name: Build and Deploy to Firebase - uses: w9jds/firebase-action@master + uses: w9jds/firebase-action@v13.0.2 with: args: deploy --force --only firestore,functions,storage env: diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml deleted file mode 100644 index 66a91b888..000000000 --- a/.github/workflows/deploy-frontend-dev.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Deploy the frontend to the Development environment. -on: - push: - branches: - - main - -jobs: - build_and_deploy: - # Disable while transitioning to Vercel - if: false - # Don't deploy forks, even if actions are enabled - # if: github.repository_owner == 'codeforboston' - runs-on: ubuntu-latest - environment: dev - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - name: Setup Build Environment - uses: ./.github/actions/setup-repo - - name: Build Frontend - run: yarn run export - - name: Deploy to Firebase - uses: w9jds/firebase-action@master - with: - args: deploy --only hosting - env: - GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} - PROJECT_ID: digital-testimony-dev diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 3ecd91e87..5ebd7fac5 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Build Environment uses: ./.github/actions/setup-repo - name: Build and Deploy to Firebase - uses: w9jds/firebase-action@master + uses: w9jds/firebase-action@v13.0.2 with: args: deploy --force --only firestore,functions,storage env: