diff --git a/gatsby-config.js b/gatsby-config.js index 3c7c0a1..3beb129 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -16,12 +16,14 @@ module.exports = { description: `See a virtual railway dot matrix for any UK station.`, author: `@davwheat`, }, + flags: { + DEV_SSR: true, + }, plugins: [ ...PROD_PLUGINS, 'gatsby-plugin-webpack-bundle-analyser-v2', `gatsby-plugin-webpack-size`, - `gatsby-plugin-csp`, `gatsby-plugin-react-head`, { resolve: `gatsby-plugin-manifest`, diff --git a/package.json b/package.json index 9a4d492..9011cce 100644 --- a/package.json +++ b/package.json @@ -10,15 +10,13 @@ }, "prettier": "@flarum/prettier-config", "dependencies": { - "@fontsource/poppins": "^4.5.10", + "@fontsource/poppins": "^5.0.8", "@mpth/react-no-ssr": "^1.0.1", "clsx": "^2.0.0", "dayjs": "^1.11.10", "english-a-an": "^2.4.0", "english-a-an-list": "^2.4.0", "gatsby": "^5.12.11", - "gatsby-plugin-csp": "^1.1.4", - "gatsby-plugin-htaccess": "^1.4.0", "gatsby-plugin-less": "^7.12.0", "gatsby-plugin-manifest": "^5.12.3", "gatsby-plugin-react-head": "https://github.com/davwheat/gatsby-plugin-react-head", @@ -32,7 +30,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-head": "^3.4.2", - "react-select": "^4.3.1", + "react-select": "^5.8.0", "throttle-debounce": "^5.0.0", "uk-railway-stations": "^1.5.1" }, diff --git a/yarn.lock b/yarn.lock index 9663a3d..4aa8049 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1659,7 +1659,7 @@ __metadata: languageName: node linkType: hard -"@emotion/react@npm:^11.1.1": +"@emotion/react@npm:^11.8.1": version: 11.11.1 resolution: "@emotion/react@npm:11.11.1" dependencies: @@ -1772,10 +1772,36 @@ __metadata: languageName: node linkType: hard -"@fontsource/poppins@npm:^4.5.10": - version: 4.5.10 - resolution: "@fontsource/poppins@npm:4.5.10" - checksum: a704a059a3682c7b4f086fe27e6c5adb62e1bbabb57bda5d35fe84dfdb7161730f4b0f05293807fbf2f16c25eb1a8ac64e601e8ebb7ad19bf73db2f23fd4a0c2 +"@floating-ui/core@npm:^1.4.2": + version: 1.5.1 + resolution: "@floating-ui/core@npm:1.5.1" + dependencies: + "@floating-ui/utils": "npm:^0.1.3" + checksum: 291692b734e3d4937eebd2de37d6ade86c76dca494f229e6de776944cc2547add8e4f6b30b5ace8445bbce2164ed8c87bc3d04505fbd0a428b8c15c3a48308fa + languageName: node + linkType: hard + +"@floating-ui/dom@npm:^1.0.1": + version: 1.5.3 + resolution: "@floating-ui/dom@npm:1.5.3" + dependencies: + "@floating-ui/core": "npm:^1.4.2" + "@floating-ui/utils": "npm:^0.1.3" + checksum: e5f30b911f939e40003851077bba441f269ae689bdc43c674bee43aa98fc6b7a5f59be432d27b7be599b1e4ab7b15c752875ea777a89cff01d157e593b78b25b + languageName: node + linkType: hard + +"@floating-ui/utils@npm:^0.1.3": + version: 0.1.6 + resolution: "@floating-ui/utils@npm:0.1.6" + checksum: 0a089db0e0526b89e83cb0a773a903517db5c9067cd473febfd8fa91a3a2ccbc3a835234796c1bb528def21dbb67be50e28d9c473cb58a6d90679d7e549b9c0c + languageName: node + linkType: hard + +"@fontsource/poppins@npm:^5.0.8": + version: 5.0.8 + resolution: "@fontsource/poppins@npm:5.0.8" + checksum: 7eb0626ec3cb99f7d2a9576a615d4229ec4bcec302a30a3005ecd1dfd7ab77c95e0963642a9f71e2166d076cd8c69aaf8d00f27cc55764d09b510c30d0b95fed languageName: node linkType: hard @@ -3331,6 +3357,15 @@ __metadata: languageName: node linkType: hard +"@types/react-transition-group@npm:^4.4.0": + version: 4.4.9 + resolution: "@types/react-transition-group@npm:4.4.9" + dependencies: + "@types/react": "npm:*" + checksum: 279cd319202f7ec24ecad174dffd19fd161250bc438bf3c62951f467093e5664a0c895b185976bf45f55b68ec901e520924216eb8abafe934b66f55337319ff5 + languageName: node + linkType: hard + "@types/react@npm:*": version: 18.2.38 resolution: "@types/react@npm:18.2.38" @@ -7236,17 +7271,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^8.1.0": - version: 8.1.0 - resolution: "fs-extra@npm:8.1.0" - dependencies: - graceful-fs: "npm:^4.2.0" - jsonfile: "npm:^4.0.0" - universalify: "npm:^0.1.0" - checksum: 259f7b814d9e50d686899550c4f9ded85c46c643f7fe19be69504888e007fcbc08f306fae8ec495b8b998635e997c9e3e175ff2eeed230524ef1c1684cc96423 - languageName: node - linkType: hard - "fs-extra@npm:^9.0.0": version: 9.1.0 resolution: "fs-extra@npm:9.1.0" @@ -7488,26 +7512,6 @@ __metadata: languageName: node linkType: hard -"gatsby-plugin-csp@npm:^1.1.4": - version: 1.1.4 - resolution: "gatsby-plugin-csp@npm:1.1.4" - dependencies: - "@babel/runtime": "npm:^7.0.0" - lodash.flatten: "npm:^4.4.0" - checksum: 93bba74d4104e0d15d9b7b5b292a164c926dbac17fa9f861010d324b932f1f3f669cb57f2953f6150be777e5cda6091ac39311c3e496d1698019b34e4a1679ec - languageName: node - linkType: hard - -"gatsby-plugin-htaccess@npm:^1.4.0": - version: 1.4.0 - resolution: "gatsby-plugin-htaccess@npm:1.4.0" - dependencies: - fs-extra: "npm:^8.1.0" - lodash: "npm:^4.17.15" - checksum: c9485321a7160a9de07a51dd76fc9ddf8b5e85e2f34ba20a0e8cfcdcb5f4d63ac0d6f426c3572bfbb0e8de2ec3ba115358050f3b84da5bb086da77edb843f354 - languageName: node - linkType: hard - "gatsby-plugin-less@npm:^7.12.0": version: 7.12.0 resolution: "gatsby-plugin-less@npm:7.12.0" @@ -9293,18 +9297,6 @@ __metadata: languageName: node linkType: hard -"jsonfile@npm:^4.0.0": - version: 4.0.0 - resolution: "jsonfile@npm:4.0.0" - dependencies: - graceful-fs: "npm:^4.1.6" - dependenciesMeta: - graceful-fs: - optional: true - checksum: 7dc94b628d57a66b71fb1b79510d460d662eb975b5f876d723f81549c2e9cd316d58a2ddf742b2b93a4fa6b17b2accaf1a738a0e2ea114bdfb13a32e5377e480 - languageName: node - linkType: hard - "jsonfile@npm:^6.0.1": version: 6.1.0 resolution: "jsonfile@npm:6.1.0" @@ -9638,13 +9630,6 @@ __metadata: languageName: node linkType: hard -"lodash.flatten@npm:^4.4.0": - version: 4.4.0 - resolution: "lodash.flatten@npm:4.4.0" - checksum: 97e8f0d6b61fe4723c02ad0c6e67e51784c4a2c48f56ef283483e556ad01594cf9cec9c773e177bbbdbdb5d19e99b09d2487cb6b6e5dc405c2693e93b125bd3a - languageName: node - linkType: hard - "lodash.flattendeep@npm:^4.4.0": version: 4.4.0 resolution: "lodash.flattendeep@npm:4.4.0" @@ -9889,10 +9874,10 @@ __metadata: languageName: node linkType: hard -"memoize-one@npm:^5.0.0": - version: 5.2.1 - resolution: "memoize-one@npm:5.2.1" - checksum: fd22dbe9a978a2b4f30d6a491fc02fb90792432ad0dab840dc96c1734d2bd7c9cdeb6a26130ec60507eb43230559523615873168bcbe8fafab221c30b11d54c1 +"memoize-one@npm:^6.0.0": + version: 6.0.0 + resolution: "memoize-one@npm:6.0.0" + checksum: 45c88e064fd715166619af72e8cf8a7a17224d6edf61f7a8633d740ed8c8c0558a4373876c9b8ffc5518c2b65a960266adf403cc215cb1e90f7e262b58991f54 languageName: node linkType: hard @@ -11619,7 +11604,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15.5.8, prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -11874,17 +11859,6 @@ __metadata: languageName: node linkType: hard -"react-input-autosize@npm:^3.0.0": - version: 3.0.0 - resolution: "react-input-autosize@npm:3.0.0" - dependencies: - prop-types: "npm:^15.5.8" - peerDependencies: - react: ^16.3.0 || ^17.0.0 - checksum: 5a9aeb3052145746bef4d94299595cbcc2236ac8e1b158a900a49107b06230a071bdc49f27e74223f735d1cf5b7c6add69f3a2fdb9c9c48ce33ad4492301b83e - languageName: node - linkType: hard - "react-is@npm:^16.13.1, react-is@npm:^16.7.0": version: 16.13.1 resolution: "react-is@npm:16.13.1" @@ -11899,21 +11873,23 @@ __metadata: languageName: node linkType: hard -"react-select@npm:^4.3.1": - version: 4.3.1 - resolution: "react-select@npm:4.3.1" +"react-select@npm:^5.8.0": + version: 5.8.0 + resolution: "react-select@npm:5.8.0" dependencies: "@babel/runtime": "npm:^7.12.0" "@emotion/cache": "npm:^11.4.0" - "@emotion/react": "npm:^11.1.1" - memoize-one: "npm:^5.0.0" + "@emotion/react": "npm:^11.8.1" + "@floating-ui/dom": "npm:^1.0.1" + "@types/react-transition-group": "npm:^4.4.0" + memoize-one: "npm:^6.0.0" prop-types: "npm:^15.6.0" - react-input-autosize: "npm:^3.0.0" react-transition-group: "npm:^4.3.0" + use-isomorphic-layout-effect: "npm:^1.1.2" peerDependencies: - react: ^16.8.0 || ^17.0.0 - react-dom: ^16.8.0 || ^17.0.0 - checksum: f7744995ef8fa12613590f2bd4dbe98e69f4b4cb6e03f0ec9552f919303204870bbbe1ce55a338d5cacb114f73fe8694bdbee3a55e98bc3be7d04889d3461cf7 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: b4b98aaf117ee5cc4642871b7bd51fd0e2697988d0b880f30b21e933ca90258959147117d8aada36713b622e0e4cb06bd18ec02069f3f108896e0d31e69e3c16 languageName: node linkType: hard @@ -13810,7 +13786,7 @@ __metadata: resolution: "uk-dot-matrix@workspace:." dependencies: "@flarum/prettier-config": "npm:^1.0.0" - "@fontsource/poppins": "npm:^4.5.10" + "@fontsource/poppins": "npm:^5.0.8" "@mpth/react-no-ssr": "npm:^1.0.1" "@types/color": "npm:^3.0.6" "@types/react": "npm:^17.0.71" @@ -13822,8 +13798,6 @@ __metadata: english-a-an: "npm:^2.4.0" english-a-an-list: "npm:^2.4.0" gatsby: "npm:^5.12.11" - gatsby-plugin-csp: "npm:^1.1.4" - gatsby-plugin-htaccess: "npm:^1.4.0" gatsby-plugin-less: "npm:^7.12.0" gatsby-plugin-manifest: "npm:^5.12.3" gatsby-plugin-react-head: "https://github.com/davwheat/gatsby-plugin-react-head" @@ -13839,7 +13813,7 @@ __metadata: react: "npm:^18.2.0" react-dom: "npm:^18.2.0" react-head: "npm:^3.4.2" - react-select: "npm:^4.3.1" + react-select: "npm:^5.8.0" throttle-debounce: "npm:^5.0.0" typescript: "npm:^5.3.2" uk-railway-stations: "npm:^1.5.1" @@ -13937,13 +13911,6 @@ __metadata: languageName: node linkType: hard -"universalify@npm:^0.1.0": - version: 0.1.2 - resolution: "universalify@npm:0.1.2" - checksum: e70e0339f6b36f34c9816f6bf9662372bd241714dc77508d231d08386d94f2c4aa1ba1318614f92015f40d45aae1b9075cd30bd490efbe39387b60a76ca3f045 - languageName: node - linkType: hard - "universalify@npm:^2.0.0": version: 2.0.1 resolution: "universalify@npm:2.0.1" @@ -14032,6 +13999,18 @@ __metadata: languageName: node linkType: hard +"use-isomorphic-layout-effect@npm:^1.1.2": + version: 1.1.2 + resolution: "use-isomorphic-layout-effect@npm:1.1.2" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: d8deea8b85e55ac6daba237a889630bfdbf0ebf60e9e22b6a78a78c26fabe6025e04ada7abef1e444e6786227d921e648b2707db8b3564daf757264a148a6e23 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2"