web: migrate everything to react@18

This commit is contained in:
Abdullah Atta
2023-11-30 15:02:37 +05:00
parent b36e6faac5
commit f26ea526e8
32 changed files with 15451 additions and 53896 deletions

View File

@@ -20,7 +20,7 @@
"@notesnook/theme": "file:../../packages/theme",
"@types/cors": "^2.8.13",
"@vitejs/plugin-react": "^4.0.3",
"react": "17.0.2",
"react": "18.2.0",
"vite-node": "^0.33.0"
}
},
@@ -29,24 +29,26 @@
"version": "1.2.0",
"dev": true,
"license": "GPL-3.0-or-later",
"dependencies": {
"@emotion/react": "11.11.1",
"@theme-ui/color": "^0.16.0",
"@theme-ui/components": "0.14.7",
"@theme-ui/core": "0.14.7",
"tinycolor2": "^1.4.2",
"zustand": "^4.3.8"
},
"devDependencies": {
"@theme-ui/color": "^0.16.1",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@trpc/server": "^10.31.0",
"@types/react": "17.0.2",
"@types/react": "^18.2.39",
"@types/tinycolor2": "^1.4.3",
"isomorphic-fetch": "^3.0.0",
"react": "17.0.2",
"ts-json-schema-generator": "^1.2.0"
"react": "18.2.0",
"ts-json-schema-generator": "^1.2.0",
"zustand": "4.4.7"
},
"peerDependencies": {
"react": "17.0.2"
"@emotion/react": ">=11",
"@theme-ui/color": ">=0.16.0",
"@theme-ui/components": ">=0.16.0",
"@theme-ui/core": ">=0.16.0",
"react": ">=18",
"tinycolor2": ">=1",
"zustand": ">=4"
}
},
"node_modules/@ampproject/remapping": {
@@ -1439,13 +1441,12 @@
}
},
"node_modules/react": {
"version": "17.0.2",
"resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
"integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==",
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"dev": true,
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
"loose-envify": "^1.1.0"
},
"engines": {
"node": ">=0.10.0"
@@ -2141,18 +2142,16 @@
"@notesnook/theme": {
"version": "file:../../packages/theme",
"requires": {
"@emotion/react": "11.11.1",
"@theme-ui/color": "^0.16.0",
"@theme-ui/components": "0.14.7",
"@theme-ui/core": "0.14.7",
"@theme-ui/color": "^0.16.1",
"@theme-ui/components": "^0.16.1",
"@theme-ui/core": "^0.16.1",
"@trpc/server": "^10.31.0",
"@types/react": "17.0.2",
"@types/react": "^18.2.39",
"@types/tinycolor2": "^1.4.3",
"isomorphic-fetch": "^3.0.0",
"react": "17.0.2",
"tinycolor2": "^1.4.2",
"react": "18.2.0",
"ts-json-schema-generator": "^1.2.0",
"zustand": "^4.3.8"
"zustand": "4.4.7"
}
},
"@orama/orama": {
@@ -2585,13 +2584,12 @@
}
},
"react": {
"version": "17.0.2",
"resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
"integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==",
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"dev": true,
"requires": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
"loose-envify": "^1.1.0"
}
},
"react-refresh": {