From 173bb76190712c5fb721c711d81d3f2baf09c095 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 30 Mar 2022 23:34:37 -0400 Subject: [PATCH] fix use-dark-mode --- components/NotionPage.tsx | 2 +- package.json | 12 ++++---- yarn.lock | 64 +++++++++++++++++++-------------------- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index 049464e..90f259a 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -6,7 +6,7 @@ import cs from 'classnames' import { useRouter } from 'next/router' import { useSearchParam } from 'react-use' import BodyClassName from 'react-body-classname' -import useDarkMode from 'use-dark-mode' +import useDarkMode from '@fisch0920/use-dark-mode' import { PageBlock } from 'notion-types' import { Tweet, TwitterContextProvider } from 'react-static-tweets' diff --git a/package.json b/package.json index 6f06022..c9e84b7 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check" }, "dependencies": { + "@fisch0920/use-dark-mode": "^2.3.2", "@keyv/redis": "^2.2.3", "classnames": "^2.3.1", "date-fns": "^2.28.0", @@ -36,20 +37,19 @@ "lqip-modern": "^1.2.0", "next": "^12.1.1", "node-fetch": "^2.6.1", - "notion-client": "^6.0.23", - "notion-types": "^6.0.23", - "notion-utils": "^6.0.23", + "notion-client": "^6.0.26", + "notion-types": "^6.0.26", + "notion-utils": "^6.0.26", "p-map": "^5.3.0", "p-memoize": "^6.0.1", "react": "^17.0.2", "react-body-classname": "^1.3.1", "react-dom": "^17.0.2", "react-icons": "^4.3.1", - "react-notion-x": "^6.0.23", + "react-notion-x": "^6.0.26", "react-static-tweets": "^0.7.1", "react-use": "^17.3.2", - "static-tweets": "^0.7.1", - "use-dark-mode": "^2.3.1" + "static-tweets": "^0.7.1" }, "devDependencies": { "@next/bundle-analyzer": "^12.1.0", diff --git a/yarn.lock b/yarn.lock index b578575..4c44554 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24,6 +24,14 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@fisch0920/use-dark-mode@^2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@fisch0920/use-dark-mode/-/use-dark-mode-2.3.2.tgz#5c36dd188630242383ebe9fdc4ef56108fa95f50" + integrity sha512-4rf23k+CxszrAQF+BfYqKKOOC7MxuK5Mas/drwNLtWIa5F6JUAdiju3sfaYX9S/B7Oga8lb4atx28UO3G4Ppng== + dependencies: + "@use-it/event-listener" "^0.1.2" + use-persisted-state "^0.3.0" + "@humanwhocodes/config-array@^0.9.2": version "0.9.5" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7" @@ -385,9 +393,9 @@ eslint-visitor-keys "^3.0.0" "@use-it/event-listener@^0.1.2": - version "0.1.6" - resolved "https://registry.yarnpkg.com/@use-it/event-listener/-/event-listener-0.1.6.tgz#5776274fec72f3f25af9ead1898e7f45bc435812" - integrity sha512-e6V7vbU8xpuqy4GZkTLExHffOFgxmGHo3kNWnlhzM/zcX2v+idbD/HaJ9sKdQMgTh+L7MIhdRDXGX3SdAViZzA== + version "0.1.7" + resolved "https://registry.yarnpkg.com/@use-it/event-listener/-/event-listener-0.1.7.tgz#443a9b6df87f2f2961b74d42997ce723a7078623" + integrity sha512-hgfExDzUU9uTRTPDCpw2s9jWTxcxmpJya3fK5ADpf5VDpSy8WYwY/kh28XE0tUcbsljeP8wfan48QvAQTSSa3Q== "@vercel/fetch-cached-dns@^2.0.1": version "2.0.1" @@ -2596,30 +2604,30 @@ normalize-url@^7.0.3: resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-7.0.3.tgz#12e56889f7a54b2d5b09616f36c442a9063f61af" integrity sha512-RiCOdwdPnzvwcBFJE4iI1ss3dMVRIrEzFpn8ftje6iBfzBInqlnRrNhxcLwBEKjPPXQKzm1Ptlxtaiv9wdcj5w== -notion-client@^6.0.23: - version "6.0.23" - resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-6.0.23.tgz#bfec69aab6c3cc8c5d08db8649f6c88c4c51fb98" - integrity sha512-jqtEGKnSroIPlYwYmZlv4sVI0LoDzvoczkUqhYZfOCAPtv11XhjZS5WuyGYLCZyah5obUYl3GWYqwKlQ7DB8/w== +notion-client@^6.0.26: + version "6.0.26" + resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-6.0.26.tgz#b78ddc2f41382f521dde5fd92656e6eae810c7a1" + integrity sha512-MuqAsmGoh63dWd0ECIm8mQ/bDyt05X7/MZXDa2r7a0s65VTGUWsSe4EFK3aUo6rjedMN3esiv+jtfOckuBf3Nw== dependencies: got "^11.8.1" - notion-types "^6.0.23" - notion-utils "^6.0.23" + notion-types "^6.0.26" + notion-utils "^6.0.26" p-map "^5.3.0" -notion-types@^6.0.23: - version "6.0.23" - resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-6.0.23.tgz#181ccc8aab326bc2bfc06dcc3e527b833fdce91c" - integrity sha512-vn8K9x65QEraSdjzY1PbYJfx9FRRnofdUVIvRH4yL5c9D7X8Jq21E4yNAfFCK7o/KXNe5P1MIMscEibDZ+Cxjw== +notion-types@^6.0.26: + version "6.0.26" + resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-6.0.26.tgz#de5dea20558b61ef025cd77e527ae6a1fb753e0c" + integrity sha512-PvE5kZ8+9LV4M5lec5vYYxLwrk5yozv3CISkVXmGxZD80x+cyjT5y/yfAaXAMyXXOPQ0Y2MTqyQYl8c6Nlm34Q== -notion-utils@^6.0.23: - version "6.0.23" - resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-6.0.23.tgz#719ee97e2624755966b257107aff1f22ea5d859b" - integrity sha512-TYQ/LLp0Reuf6mFrrhrMey/p237R6SGjipDZOy/LfYzAcg44rSNWqUxgGGinC2BMUNBeZABm1sn9B3zTsUjyvg== +notion-utils@^6.0.26: + version "6.0.26" + resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-6.0.26.tgz#39e221fff53c1c4aedc70d02fb2313964827abb0" + integrity sha512-qGmCoyqqKc3x+q8ptzaXfNF94B0dFWhZI/58mQz/zfcvGi8F1ny9cBn1s6dPyZOJbUIoQNm8EPqJk0Frj7Wslw== dependencies: is-url-superb "^6.1.0" mem "^9.0.2" normalize-url "^7.0.3" - notion-types "^6.0.23" + notion-types "^6.0.26" p-queue "^7.2.0" npm-run-all@^4.1.5: @@ -3186,10 +3194,10 @@ react-modal@^3.14.3: react-lifecycles-compat "^3.0.0" warning "^4.0.3" -react-notion-x@^6.0.23: - version "6.0.23" - resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-6.0.23.tgz#3802b978077caae87dd8b70b0467e7a717bcdb9d" - integrity sha512-mLd0QeSVwDKjsX63RQJnhkizdFTVWK6ijLG4Eul51JE4hVLqXTov/3d8xc0QF3GpPMXJvhFZz14ynNPddgz++g== +react-notion-x@^6.0.26: + version "6.0.26" + resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-6.0.26.tgz#45d3c20699cf5b52af608c5bb1a5abc52547ca17" + integrity sha512-cyqiNm6InmOJmTnze78vMpPhb/393NFRzaIDOR2Z7mqub2F3rp6W5Dx8zTAujzQEZCnN4e1TGgJGoFabDxGL+A== dependencies: "@matejmazur/react-katex" "^3.1.3" clipboard-copy "^4.0.1" @@ -3199,8 +3207,8 @@ react-notion-x@^6.0.23: katex "^0.13.18" lodash.throttle "^4.1.1" medium-zoom "^1.0.6" - notion-types "^6.0.23" - notion-utils "^6.0.23" + notion-types "^6.0.26" + notion-utils "^6.0.26" prismjs "^1.27.0" rc-dropdown "^3.3.3" rc-menu "^9.5.1" @@ -4095,14 +4103,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -use-dark-mode@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/use-dark-mode/-/use-dark-mode-2.3.1.tgz#d506349c7b7e09e9977cb8a6ab4470896aa3779a" - integrity sha512-hmcdJR96tTustRQdaQwe6jMrZHnmPqXBxgy4jaQ4gsfhwajsCpjECuq9prgDe9XxMx/f9r96o2/md6O4Lwhwjg== - dependencies: - "@use-it/event-listener" "^0.1.2" - use-persisted-state "^0.3.0" - use-persisted-state@^0.3.0: version "0.3.3" resolved "https://registry.yarnpkg.com/use-persisted-state/-/use-persisted-state-0.3.3.tgz#5e0f2236967cec7c34de33abc07ae6818e7c7451"