diff --git a/components/NotionPageHeader.tsx b/components/NotionPageHeader.tsx index 4fcc6ff662..db1e4718ef 100644 --- a/components/NotionPageHeader.tsx +++ b/components/NotionPageHeader.tsx @@ -4,7 +4,6 @@ import * as types from 'notion-types' import { IoMoonSharp } from 'react-icons/io5' import { IoSunnyOutline } from 'react-icons/io5' import cs from 'classnames' -import * as React from 'react' import { Breadcrumbs, Header, Search, useNotionContext } from 'react-notion-x' import { isSearchEnabled, navigationLinks, navigationStyle } from '@/lib/config' diff --git a/next.config.js b/next.config.js index 5956fd275f..2721902329 100644 --- a/next.config.js +++ b/next.config.js @@ -57,7 +57,7 @@ export default withBundleAnalyzer({ protocol: 'https', hostname: 'nline.io', pathname: '**' - } + }, { protocol: 'https', hostname: 'notionusercontent.com', @@ -82,4 +82,4 @@ export default withBundleAnalyzer({ ) return config } -}) \ No newline at end of file +}) diff --git a/package.json b/package.json index 886379eac6..733aee0871 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "type": "module", "scripts": { - "dev": "next dev --turbopack", + "dev": "next dev", "build": "next build", "start": "next start", "deploy": "vercel deploy", @@ -45,6 +45,7 @@ "fathom-client": "^3.7.2", "got": "^14.4.4", "isomorphic-unfetch": "^4.0.2", + "ky": "^1.7.2", "lqip-modern": "^2.1.0", "next": "15.0.2", "notion-client": "^7.0.1", @@ -54,9 +55,9 @@ "p-memoize": "^7.1.1", "posthog-js": "^1.181.0", "prismjs": "^1.29.0", - "react": "19.0.0-rc-66855b96-20241106", + "react": "^18.2.0", "react-body-classname": "^1.3.1", - "react-dom": "19.0.0-rc-66855b96-20241106", + "react-dom": "^18.2.0", "react-icons": "^5.3.0", "react-notion-x": "^7.0.1", "react-tweet-embed": "^2.0.0", @@ -69,7 +70,7 @@ "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/got": "^9.6.12", "@types/node": "^22.9.0", - "@types/react": "npm:types-react@19.0.0-alpha.3", + "@types/react": "^18.2.0", "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", "cross-env": "^7.0.3", @@ -83,7 +84,9 @@ }, "pnpm": { "overrides": { - "@types/react": "npm:types-react@19.0.0-alpha.3" + "@types/react": "^18.2.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" } } } diff --git a/pages/_app.tsx b/pages/_app.tsx index 3f7c98db9e..229b0099ba 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,5 +1,6 @@ // global styles shared across the entire site import * as React from 'react' + import type { AppProps } from 'next/app' import localFont from 'next/font/local' import { Analytics } from '@vercel/analytics/react' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3e2d3abbc2..bf274ce3fe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,9 @@ settings: excludeLinksFromLockfile: false overrides: - '@types/react': npm:types-react@19.0.0-alpha.3 + '@types/react': ^18.2.0 + react: ^18.2.0 + react-dom: ^18.2.0 importers: @@ -13,7 +15,7 @@ importers: dependencies: '@fisch0920/use-dark-mode': specifier: ^2.4.0 - version: 2.4.0(react@19.0.0-rc-66855b96-20241106) + version: 2.4.0(react@18.3.1) '@keyvhq/core': specifier: ^2.1.1 version: 2.1.1 @@ -22,7 +24,7 @@ importers: version: 2.1.5 '@vercel/analytics': specifier: ^1.3.2 - version: 1.3.2(next@15.0.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + version: 1.3.2(next@15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@vercel/og': specifier: ^0.6.3 version: 0.6.3 @@ -50,12 +52,15 @@ importers: isomorphic-unfetch: specifier: ^4.0.2 version: 4.0.2 + ky: + specifier: ^1.7.2 + version: 1.7.2 lqip-modern: specifier: ^2.1.0 version: 2.1.0 next: specifier: 15.0.2 - version: 15.0.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + version: 15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) notion-client: specifier: ^7.0.1 version: 7.0.1 @@ -78,26 +83,26 @@ importers: specifier: ^1.29.0 version: 1.29.0 react: - specifier: 19.0.0-rc-66855b96-20241106 - version: 19.0.0-rc-66855b96-20241106 + specifier: ^18.2.0 + version: 18.3.1 react-body-classname: specifier: ^1.3.1 - version: 1.3.1(react@19.0.0-rc-66855b96-20241106) + version: 1.3.1(react@18.3.1) react-dom: - specifier: 19.0.0-rc-66855b96-20241106 - version: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + specifier: ^18.2.0 + version: 18.3.1(react@18.3.1) react-icons: specifier: ^5.3.0 - version: 5.3.0(react@19.0.0-rc-66855b96-20241106) + version: 5.3.0(react@18.3.1) react-notion-x: specifier: ^7.0.1 - version: 7.0.1(@babel/runtime@7.26.0)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)(types-react@19.0.0-alpha.3) + version: 7.0.1(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-tweet-embed: specifier: ^2.0.0 - version: 2.0.0(react@19.0.0-rc-66855b96-20241106) + version: 2.0.0(react@18.3.1) react-use: specifier: ^17.5.1 - version: 17.5.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) + version: 17.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) rss: specifier: ^1.2.2 version: 1.2.2 @@ -118,8 +123,8 @@ importers: specifier: ^22.9.0 version: 22.9.0 '@types/react': - specifier: npm:types-react@19.0.0-alpha.3 - version: types-react@19.0.0-alpha.3 + specifier: ^18.2.0 + version: 18.3.12 '@typescript-eslint/eslint-plugin': specifier: ^8.13.0 version: 8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0)(typescript@5.6.3))(eslint@9.14.0)(typescript@5.6.3) @@ -261,7 +266,7 @@ packages: '@fisch0920/use-dark-mode@2.4.0': resolution: {integrity: sha512-R5onciu81CCOxWVIJcRjp1PfSfBI5fIfxYR2jqydc0nuGWrn4ZB4ciDXiv36PNX5mFIbAgPfjUF0Z5lhSI62TA==} peerDependencies: - react: '>=16.8' + react: ^18.2.0 '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} @@ -426,7 +431,7 @@ packages: engines: {node: '>=12', yarn: '>=1.1'} peerDependencies: katex: '>=0.9' - react: '>=16' + react: ^18.2.0 '@next/bundle-analyzer@15.0.2': resolution: {integrity: sha512-bV566k+rDsaqXSUgHBof0iMIDx5DWtLx/98jvYtqb9x85e+WJzv+8cpDvbjtxQMf7nFC/LUkPmpruj1cOKfz4A==} @@ -566,6 +571,12 @@ packages: '@types/node@22.9.0': resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} + '@types/prop-types@15.7.13': + resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==} + + '@types/react@18.3.12': + resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==} + '@types/tough-cookie@4.0.5': resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==} @@ -629,13 +640,13 @@ packages: '@use-it/event-listener@0.1.7': resolution: {integrity: sha512-hgfExDzUU9uTRTPDCpw2s9jWTxcxmpJya3fK5ADpf5VDpSy8WYwY/kh28XE0tUcbsljeP8wfan48QvAQTSSa3Q==} peerDependencies: - react: '>=16.8.0' + react: ^18.2.0 '@vercel/analytics@1.3.2': resolution: {integrity: sha512-n/Ws7skBbW+fUBMeg+jrT30+GP00jTHvCcL4fuVrShuML0uveEV/4vVUdvqEVnDgXIGfLm0GXW5EID2mCcRXhg==} peerDependencies: next: '>= 13' - react: ^18.0 || ^19.0 || ^19.0.0-rc + react: ^18.2.0 peerDependenciesMeta: next: optional: true @@ -1712,7 +1723,7 @@ packages: merge-refs@1.3.0: resolution: {integrity: sha512-nqXPXbso+1dcKDpPCXvwZyJILz+vSLqGGOnDrYHQYE+B8n9JTCekVLC65AfCpR4ggVyA/45Y0iR9LDyS2iI+zA==} peerDependencies: - '@types/react': npm:types-react@19.0.0-alpha.3 + '@types/react': ^18.2.0 peerDependenciesMeta: '@types/react': optional: true @@ -1797,8 +1808,8 @@ packages: nano-css@5.6.2: resolution: {integrity: sha512-+6bHaC8dSDGALM1HJjOHVXpuastdu2xFoZlC77Jh4cg+33Zcgm+Gxd+1xsnpZK14eyHObSp82+ll5y3SX75liw==} peerDependencies: - react: '*' - react-dom: '*' + react: ^18.2.0 + react-dom: ^18.2.0 nanoid@3.3.7: resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} @@ -1816,8 +1827,8 @@ packages: '@opentelemetry/api': ^1.1.0 '@playwright/test': ^1.41.2 babel-plugin-react-compiler: '*' - react: ^18.2.0 || 19.0.0-rc-02c0e824-20241028 - react-dom: ^18.2.0 || 19.0.0-rc-02c0e824-20241028 + react: ^18.2.0 + react-dom: ^18.2.0 sass: ^1.3.0 peerDependenciesMeta: '@opentelemetry/api': @@ -2069,10 +2080,10 @@ packages: react-body-classname@1.3.1: resolution: {integrity: sha512-PxskbhmoV8kzIyspjiIc/smQkyyBOQHeUsrh1oj9CC5O1Kg/4gvHWPKsYGWEIq0X51TtCT941u/ulM1dTZ/bOw==} - react-dom@19.0.0-rc-66855b96-20241106: - resolution: {integrity: sha512-D25vdaytZ1wFIRiwNU98NPQ/upS2P8Co4/oNoa02PzHbh8deWdepjm5qwZM/46OdSiGv4WSWwxP55RO9obqJEQ==} + react-dom@18.3.1: + resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} peerDependencies: - react: 19.0.0-rc-66855b96-20241106 + react: ^18.2.0 react-fast-compare@3.2.2: resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} @@ -2080,25 +2091,25 @@ packages: react-hotkeys-hook@4.6.1: resolution: {integrity: sha512-XlZpbKUj9tkfgPgT9gA+1p7Ey6vFIZHttUjPqpTdyT5nqQ8mHL7elxvSbaC+dpSiHUSmr21Ya1mDxBZG3aje4Q==} peerDependencies: - react: '>=16.8.1' - react-dom: '>=16.8.1' + react: ^18.2.0 + react-dom: ^18.2.0 react-icons@5.3.0: resolution: {integrity: sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==} peerDependencies: - react: '*' + react: ^18.2.0 react-image@4.1.0: resolution: {integrity: sha512-qwPNlelQe9Zy14K2pGWSwoL+vHsAwmJKS6gkotekDgRpcnRuzXNap00GfibD3eEPYu3WCPlyIUUNzcyHOrLHjw==} peerDependencies: '@babel/runtime': '>=7' - react: '>=16.8' - react-dom: '>=16.8' + react: ^18.2.0 + react-dom: ^18.2.0 react-intersection-observer@6.4.2: resolution: {integrity: sha512-gL6YrkhniA0tIbyDbUterzBwKh61vHR520rsKULel5T37gG4YP07wnWI3WoqOcKK5bKAu0PZB2FHD7/OjawN+w==} peerDependencies: - react: ^15.0.0 || ^16.0.0 || ^17.0.0 + react: ^18.2.0 react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} @@ -2106,8 +2117,8 @@ packages: react-lazy-images@1.1.0: resolution: {integrity: sha512-h5DHFhkMJyh2qsDl3hXWu6d+On10FsgHtRJ+BH7xjgsFOvsqaii9CEwEESqPJrrAiHo1qrN1LgzrV8X3zctHKA==} peerDependencies: - react: ^15 || ^16 - react-dom: ^15 || ^16 + react: ^18.2.0 + react-dom: ^18.2.0 react-lifecycles-compat@3.0.4: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} @@ -2116,22 +2127,22 @@ packages: resolution: {integrity: sha512-VStHgI3BVcGo7OXczvnJN7yT2TWHJPDXZWyI/a0ssFNhGZWsPmB8cF0z33ewDXq4VfYMO1vXgiv/g8Nj9NDyWg==} engines: {node: '>=8'} peerDependencies: - react: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 - react-dom: ^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18 + react: ^18.2.0 + react-dom: ^18.2.0 react-notion-x@7.0.1: resolution: {integrity: sha512-/uvP1AGXXJgpbS7y9As2hk/v9pD0yC27fseLLkyhlbAHvWUb3TstHqI4CoJ8hn3jyuvyH6dKQ6wUX7jyb4S9Lg==} engines: {node: '>=18'} peerDependencies: - react: '>=18' - react-dom: '>=18' + react: ^18.2.0 + react-dom: ^18.2.0 react-pdf@9.1.1: resolution: {integrity: sha512-Cn3RTJZMqVOOCgLMRXDamLk4LPGfyB2Np3OwQAUjmHIh47EpuGW1OpAA1Z1GVDLoHx4d5duEDo/YbUkDbr4QFQ==} peerDependencies: - '@types/react': npm:types-react@19.0.0-alpha.3 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + '@types/react': ^18.2.0 + react: ^18.2.0 + react-dom: ^18.2.0 peerDependenciesMeta: '@types/react': optional: true @@ -2139,27 +2150,27 @@ packages: react-side-effect@2.1.2: resolution: {integrity: sha512-PVjOcvVOyIILrYoyGEpDN3vmYNLdy1CajSFNt4TDsVQC5KpTijDvWVoR+/7Rz2xT978D8/ZtFceXxzsPwZEDvw==} peerDependencies: - react: ^16.3.0 || ^17.0.0 || ^18.0.0 + react: ^18.2.0 react-tweet-embed@2.0.0: resolution: {integrity: sha512-g2kfPjSRTOKeJtaQF5EMuSTmp/q8I0qdDs/pZ2qLXZjCWExDT/JgjxSlyM65NyNzsz8072PDpvlO/sIXwwVpdQ==} peerDependencies: - react: '>=17' + react: ^18.2.0 react-universal-interface@0.6.2: resolution: {integrity: sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==} peerDependencies: - react: '*' + react: ^18.2.0 tslib: '*' react-use@17.5.1: resolution: {integrity: sha512-LG/uPEVRflLWMwi3j/sZqR00nF6JGqTTDblkXK2nzXsIvij06hXl1V/MZIlwj1OKIQUtlh1l9jK8gLsRyCQxMg==} peerDependencies: - react: '*' - react-dom: '*' + react: ^18.2.0 + react-dom: ^18.2.0 - react@19.0.0-rc-66855b96-20241106: - resolution: {integrity: sha512-klH7xkT71SxRCx4hb1hly5FJB21Hz0ACyxbXYAECEqssUjtJeFUAaI2U1DgJAzkGEnvEm3DkxuBchMC/9K4ipg==} + react@18.3.1: + resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} read-pkg@3.0.0: @@ -2247,8 +2258,8 @@ packages: resolution: {integrity: sha512-XU9EELUEZuioT4acLIpCXxHcFzrsC8muvg0MY28d+TlqwxbkTzBmWbw+3+hnCzXT7YZ0Qm8k3eXktDaEu+qmEw==} engines: {node: '>=16'} - scheduler@0.25.0-rc-66855b96-20241106: - resolution: {integrity: sha512-HQXp/Mnp/MMRSXMQF7urNFla+gmtXW/Gr1KliuR0iboTit4KvZRY8KYaq5ccCTAOJiUqQh2rE2F3wgUekmgdlA==} + scheduler@0.23.2: + resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} screenfull@5.2.0: resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} @@ -2429,7 +2440,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0' + react: ^18.2.0 peerDependenciesMeta: '@babel/core': optional: true @@ -2533,9 +2544,6 @@ packages: resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} engines: {node: '>= 0.4'} - types-react@19.0.0-alpha.3: - resolution: {integrity: sha512-u7IEgvEgACYFDGtaqBgh5tqtYxkfPgtE7sl3RjfsT4QTpRM9FADXoWomFYZVi55Upii3LUcaZYrKFyHqUTHpew==} - typescript@5.6.3: resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} @@ -2562,7 +2570,7 @@ packages: use-persisted-state@0.3.3: resolution: {integrity: sha512-pCNlvYC8+XjRxwnIut4teGC9f2p9aD88R8OGseQGZa2dvqG/h1vEGk1vRE1IZG0Vf161UDpn+NlW4+UGubQflQ==} peerDependencies: - react: ^16.8.0 || ^17.0.0 + react: ^18.2.0 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -2780,11 +2788,11 @@ snapshots: '@fisch0920/medium-zoom@1.0.7': {} - '@fisch0920/use-dark-mode@2.4.0(react@19.0.0-rc-66855b96-20241106)': + '@fisch0920/use-dark-mode@2.4.0(react@18.3.1)': dependencies: - '@use-it/event-listener': 0.1.7(react@19.0.0-rc-66855b96-20241106) - react: 19.0.0-rc-66855b96-20241106 - use-persisted-state: 0.3.3(react@19.0.0-rc-66855b96-20241106) + '@use-it/event-listener': 0.1.7(react@18.3.1) + react: 18.3.1 + use-persisted-state: 0.3.3(react@18.3.1) '@humanfs/core@0.19.1': {} @@ -2918,10 +2926,10 @@ snapshots: - encoding - supports-color - '@matejmazur/react-katex@3.1.3(katex@0.16.11)(react@19.0.0-rc-66855b96-20241106)': + '@matejmazur/react-katex@3.1.3(katex@0.16.11)(react@18.3.1)': dependencies: katex: 0.16.11 - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 '@next/bundle-analyzer@15.0.2': dependencies: @@ -3033,6 +3041,13 @@ snapshots: dependencies: undici-types: 6.19.8 + '@types/prop-types@15.7.13': {} + + '@types/react@18.3.12': + dependencies: + '@types/prop-types': 15.7.13 + csstype: 3.1.3 + '@types/tough-cookie@4.0.5': {} '@typescript-eslint/eslint-plugin@8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0)(typescript@5.6.3))(eslint@9.14.0)(typescript@5.6.3)': @@ -3116,16 +3131,16 @@ snapshots: '@typescript-eslint/types': 8.13.0 eslint-visitor-keys: 3.4.3 - '@use-it/event-listener@0.1.7(react@19.0.0-rc-66855b96-20241106)': + '@use-it/event-listener@0.1.7(react@18.3.1)': dependencies: - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 - '@vercel/analytics@1.3.2(next@15.0.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)': + '@vercel/analytics@1.3.2(next@15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: server-only: 0.0.1 optionalDependencies: - next: 15.0.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react: 19.0.0-rc-66855b96-20241106 + next: 15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 18.3.1 '@vercel/og@0.6.3': dependencies: @@ -4339,9 +4354,9 @@ snapshots: memorystream@0.3.1: {} - merge-refs@1.3.0(types-react@19.0.0-alpha.3): + merge-refs@1.3.0(@types/react@18.3.12): optionalDependencies: - '@types/react': types-react@19.0.0-alpha.3 + '@types/react': 18.3.12 merge2@1.4.1: {} @@ -4399,15 +4414,15 @@ snapshots: nan@2.22.0: {} - nano-css@5.6.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + nano-css@5.6.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@jridgewell/sourcemap-codec': 1.5.0 css-tree: 1.1.3 csstype: 3.1.3 fastest-stable-stringify: 2.0.2 inline-style-prefixer: 7.0.1 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) rtl-css-js: 1.16.1 stacktrace-js: 2.0.2 stylis: 4.3.4 @@ -4416,7 +4431,7 @@ snapshots: natural-compare@1.4.0: {} - next@15.0.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + next@15.0.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@next/env': 15.0.2 '@swc/counter': 0.1.3 @@ -4424,9 +4439,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001677 postcss: 8.4.31 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) - styled-jsx: 5.1.6(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + styled-jsx: 5.1.6(react@18.3.1) optionalDependencies: '@next/swc-darwin-arm64': 15.0.2 '@next/swc-darwin-x64': 15.0.2 @@ -4673,115 +4688,116 @@ snapshots: quick-lru@5.1.1: {} - react-body-classname@1.3.1(react@19.0.0-rc-66855b96-20241106): + react-body-classname@1.3.1(react@18.3.1): dependencies: prop-types: 15.8.1 - react-side-effect: 2.1.2(react@19.0.0-rc-66855b96-20241106) + react-side-effect: 2.1.2(react@18.3.1) transitivePeerDependencies: - react - react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106): + react-dom@18.3.1(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 - scheduler: 0.25.0-rc-66855b96-20241106 + loose-envify: 1.4.0 + react: 18.3.1 + scheduler: 0.23.2 react-fast-compare@3.2.2: {} - react-hotkeys-hook@4.6.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + react-hotkeys-hook@4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - react-icons@5.3.0(react@19.0.0-rc-66855b96-20241106): + react-icons@5.3.0(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 - react-image@4.1.0(@babel/runtime@7.26.0)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + react-image@4.1.0(@babel/runtime@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - react-intersection-observer@6.4.2(react@19.0.0-rc-66855b96-20241106): + react-intersection-observer@6.4.2(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 invariant: 2.2.4 - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 react-is@16.13.1: {} - react-lazy-images@1.1.0(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + react-lazy-images@1.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) - react-intersection-observer: 6.4.2(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-intersection-observer: 6.4.2(react@18.3.1) unionize: 2.2.0 react-lifecycles-compat@3.0.4: {} - react-modal@3.16.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + react-modal@3.16.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: exenv: 1.2.2 prop-types: 15.8.1 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) react-lifecycles-compat: 3.0.4 warning: 4.0.3 - react-notion-x@7.0.1(@babel/runtime@7.26.0)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)(types-react@19.0.0-alpha.3): + react-notion-x@7.0.1(@babel/runtime@7.26.0)(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@fisch0920/medium-zoom': 1.0.7 - '@matejmazur/react-katex': 3.1.3(katex@0.16.11)(react@19.0.0-rc-66855b96-20241106) + '@matejmazur/react-katex': 3.1.3(katex@0.16.11)(react@18.3.1) katex: 0.16.11 notion-types: 7.0.1 notion-utils: 7.0.1 prismjs: 1.29.0 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) react-fast-compare: 3.2.2 - react-hotkeys-hook: 4.6.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react-image: 4.1.0(@babel/runtime@7.26.0)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react-lazy-images: 1.1.0(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react-modal: 3.16.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react-pdf: 9.1.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)(types-react@19.0.0-alpha.3) + react-hotkeys-hook: 4.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-image: 4.1.0(@babel/runtime@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-lazy-images: 1.1.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-modal: 3.16.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-pdf: 9.1.1(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@babel/runtime' - '@types/react' - encoding - supports-color - react-pdf@9.1.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106)(types-react@19.0.0-alpha.3): + react-pdf@9.1.1(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: clsx: 2.1.1 dequal: 2.0.3 make-cancellable-promise: 1.3.2 make-event-props: 1.6.2 - merge-refs: 1.3.0(types-react@19.0.0-alpha.3) + merge-refs: 1.3.0(@types/react@18.3.12) pdfjs-dist: 4.4.168 - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) tiny-invariant: 1.3.3 warning: 4.0.3 optionalDependencies: - '@types/react': types-react@19.0.0-alpha.3 + '@types/react': 18.3.12 transitivePeerDependencies: - encoding - supports-color - react-side-effect@2.1.2(react@19.0.0-rc-66855b96-20241106): + react-side-effect@2.1.2(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 - react-tweet-embed@2.0.0(react@19.0.0-rc-66855b96-20241106): + react-tweet-embed@2.0.0(react@18.3.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 - react-universal-interface@0.6.2(react@19.0.0-rc-66855b96-20241106)(tslib@2.8.1): + react-universal-interface@0.6.2(react@18.3.1)(tslib@2.8.1): dependencies: - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 tslib: 2.8.1 - react-use@17.5.1(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106): + react-use@17.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@types/js-cookie': 2.2.7 '@xobotyi/scrollbar-width': 1.9.5 @@ -4789,10 +4805,10 @@ snapshots: fast-deep-equal: 3.1.3 fast-shallow-equal: 1.0.0 js-cookie: 2.2.1 - nano-css: 5.6.2(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106) - react: 19.0.0-rc-66855b96-20241106 - react-dom: 19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106) - react-universal-interface: 0.6.2(react@19.0.0-rc-66855b96-20241106)(tslib@2.8.1) + nano-css: 5.6.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + react-universal-interface: 0.6.2(react@18.3.1)(tslib@2.8.1) resize-observer-polyfill: 1.5.1 screenfull: 5.2.0 set-harmonic-interval: 1.0.1 @@ -4800,7 +4816,9 @@ snapshots: ts-easing: 0.2.0 tslib: 2.8.1 - react@19.0.0-rc-66855b96-20241106: {} + react@18.3.1: + dependencies: + loose-envify: 1.4.0 read-pkg@3.0.0: dependencies: @@ -4910,7 +4928,9 @@ snapshots: postcss-value-parser: 4.2.0 yoga-wasm-web: 0.3.3 - scheduler@0.25.0-rc-66855b96-20241106: {} + scheduler@0.23.2: + dependencies: + loose-envify: 1.4.0 screenfull@5.2.0: {} @@ -5124,10 +5144,10 @@ snapshots: strip-json-comments@3.1.1: {} - styled-jsx@5.1.6(react@19.0.0-rc-66855b96-20241106): + styled-jsx@5.1.6(react@18.3.1): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-66855b96-20241106 + react: 18.3.1 stylis@4.3.4: {} @@ -5227,10 +5247,6 @@ snapshots: is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 - types-react@19.0.0-alpha.3: - dependencies: - csstype: 3.1.3 - typescript@5.6.3: {} unbox-primitive@1.0.2: @@ -5255,10 +5271,10 @@ snapshots: dependencies: punycode: 2.3.1 - use-persisted-state@0.3.3(react@19.0.0-rc-66855b96-20241106): + use-persisted-state@0.3.3(react@18.3.1): dependencies: - '@use-it/event-listener': 0.1.7(react@19.0.0-rc-66855b96-20241106) - react: 19.0.0-rc-66855b96-20241106 + '@use-it/event-listener': 0.1.7(react@18.3.1) + react: 18.3.1 util-deprecate@1.0.2: {} diff --git a/styles/nline.css b/styles/nline.css index 5e1e605faa..029dc63e49 100644 --- a/styles/nline.css +++ b/styles/nline.css @@ -87,7 +87,7 @@ body { /* Fix wide TOC */ .notion-aside { - padding: 0 1em; + padding: 0 2em; } .notion-aside-table-of-contents { @@ -144,11 +144,6 @@ body { -webkit-box-orient: vertical; } -/* Fixes for Katex */ -.katex-html { - position: static !important; -} - /* Soften edges of imgs */ .notion-asset-wrapper img, .notion-asset-wrapper span {