v2 lazy rundown (#317)

* chore: update related deps

* refactor: memoise entrypoints

* refactor: store selectors

* refactor: improve component performance

* chore: remove unused dependencies

* refactor: improve component dnd
This commit is contained in:
Carlos Valente
2023-03-30 21:22:36 +02:00
committed by GitHub
parent 03d5389540
commit 9338a615d4
27 changed files with 701 additions and 698 deletions
+17 -105
View File
@@ -31,8 +31,8 @@ importers:
apps/client:
specifiers:
'@chakra-ui/react': ^2.5.1
'@dnd-kit/core': ^6.0.6
'@dnd-kit/sortable': ^7.0.1
'@dnd-kit/core': ^6.0.8
'@dnd-kit/sortable': ^7.0.2
'@dnd-kit/utilities': ^3.2.1
'@emotion/react': ^11.10.5
'@emotion/styled': ^11.10.5
@@ -50,7 +50,6 @@ importers:
'@types/luxon': ^3.2.0
'@types/prop-types': ^15.7.5
'@types/react': ^18.0.26
'@types/react-beautiful-dnd': ^13.1.3
'@types/react-dom': ^18.0.10
'@types/testing-library__jest-dom': ^5.14.5
'@typescript-eslint/eslint-plugin': ^5.48.1
@@ -77,7 +76,6 @@ importers:
prettier: ^2.8.3
prop-types: ^15.8.1
react: ^18.2.0
react-beautiful-dnd: ^13.1.1
react-dom: ^18.2.0
react-fast-compare: ^3.2.0
react-hook-form: ^7.43.5
@@ -97,8 +95,8 @@ importers:
zustand: ^4.3.6
dependencies:
'@chakra-ui/react': 2.5.1_loo4skotrnm7icurwgkplqpnwq
'@dnd-kit/core': 6.0.7_biqbaboplfbrettd7655fr4n2y
'@dnd-kit/sortable': 7.0.2_pmudlfv2z3i7vvlookxjkeidxe
'@dnd-kit/core': 6.0.8_biqbaboplfbrettd7655fr4n2y
'@dnd-kit/sortable': 7.0.2_52scne4zmdeyjh2otzkgz2xfvu
'@dnd-kit/utilities': 3.2.1_react@18.2.0
'@emotion/react': 11.10.5_kzbn2opkn2327fwg5yzwzya5o4
'@emotion/styled': 11.10.5_qvatmowesywn4ye42qoh247szu
@@ -115,7 +113,6 @@ importers:
framer-motion: 8.4.3_biqbaboplfbrettd7655fr4n2y
luxon: 3.3.0
react: 18.2.0
react-beautiful-dnd: 13.1.1_biqbaboplfbrettd7655fr4n2y
react-dom: 18.2.0_react@18.2.0
react-fast-compare: 3.2.0
react-hook-form: 7.43.5_react@18.2.0
@@ -135,7 +132,6 @@ importers:
'@types/luxon': 3.2.0
'@types/prop-types': 15.7.5
'@types/react': 18.0.26
'@types/react-beautiful-dnd': 13.1.3
'@types/react-dom': 18.0.10
'@types/testing-library__jest-dom': 5.14.5
'@typescript-eslint/eslint-plugin': 5.48.1_3jon24igvnqaqexgwtxk6nkpse
@@ -1632,11 +1628,11 @@ packages:
react: '>=16.8.0'
dependencies:
react: 18.2.0
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@dnd-kit/core/6.0.7_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-qcLBTVTjmLuLqC0RHQ+dFKN5neWmAI56H9xZ+he9WEJEkAvR76YAcz7DSWDJfjErepfG2H3Fkb9lYiX7cPR62g==}
/@dnd-kit/core/6.0.8_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-lYaoP8yHTQSLlZe6Rr9qogouGUz9oRUj4AHhDQGQzq/hqaJRpFo65X+JKsdHf8oUFBzx5A+SJPUvxAwTF2OabA==}
peerDependencies:
react: '>=16.8.0'
react-dom: '>=16.8.0'
@@ -1645,19 +1641,19 @@ packages:
'@dnd-kit/utilities': 3.2.1_react@18.2.0
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@dnd-kit/sortable/7.0.2_pmudlfv2z3i7vvlookxjkeidxe:
/@dnd-kit/sortable/7.0.2_52scne4zmdeyjh2otzkgz2xfvu:
resolution: {integrity: sha512-wDkBHHf9iCi1veM834Gbk1429bd4lHX4RpAwT0y2cHLf246GAvU2sVw/oxWNpPKQNQRQaeGXhAVgrOl1IT+iyA==}
peerDependencies:
'@dnd-kit/core': ^6.0.7
react: '>=16.8.0'
dependencies:
'@dnd-kit/core': 6.0.7_biqbaboplfbrettd7655fr4n2y
'@dnd-kit/core': 6.0.8_biqbaboplfbrettd7655fr4n2y
'@dnd-kit/utilities': 3.2.1_react@18.2.0
react: 18.2.0
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@dnd-kit/utilities/3.2.1_react@18.2.0:
@@ -2379,7 +2375,7 @@ packages:
'@motionone/easing': 10.15.1
'@motionone/types': 10.15.1
'@motionone/utils': 10.15.1
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@motionone/dom/10.15.5:
@@ -2390,14 +2386,14 @@ packages:
'@motionone/types': 10.15.1
'@motionone/utils': 10.15.1
hey-listen: 1.0.8
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@motionone/easing/10.15.1:
resolution: {integrity: sha512-6hIHBSV+ZVehf9dcKZLT7p5PEKHGhDwky2k8RKkmOvUoYP3S+dXsKupyZpqx5apjd9f+php4vXk4LuS+ADsrWw==}
dependencies:
'@motionone/utils': 10.15.1
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@motionone/generators/10.15.1:
@@ -2405,7 +2401,7 @@ packages:
dependencies:
'@motionone/types': 10.15.1
'@motionone/utils': 10.15.1
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@motionone/types/10.15.1:
@@ -2417,7 +2413,7 @@ packages:
dependencies:
'@motionone/types': 10.15.1
hey-listen: 1.0.8
tslib: 2.4.1
tslib: 2.5.0
dev: false
/@nodelib/fs.scandir/2.1.5:
@@ -2959,13 +2955,6 @@ packages:
dev: true
optional: true
/@types/hoist-non-react-statics/3.3.1:
resolution: {integrity: sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==}
dependencies:
'@types/react': 18.0.26
hoist-non-react-statics: 3.3.2
dev: false
/@types/istanbul-lib-coverage/2.0.4:
resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==}
dev: true
@@ -3069,27 +3058,12 @@ packages:
resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==}
dev: true
/@types/react-beautiful-dnd/13.1.3:
resolution: {integrity: sha512-BNdmvONKtsrZq3AGrujECQrIn8cDT+fZsxBLXuX3YWY/nHfZinUFx4W88eS0rkcXzuLbXpKOsu/1WCMPMLEpPg==}
dependencies:
'@types/react': 18.0.26
dev: true
/@types/react-dom/18.0.10:
resolution: {integrity: sha512-E42GW/JA4Qv15wQdqJq8DL4JhNpB3prJgjgapN3qJT9K2zO5IIAQh4VXvCEDupoqAwnz0cY4RlXeC/ajX5SFHg==}
dependencies:
'@types/react': 18.0.26
dev: true
/@types/react-redux/7.1.25:
resolution: {integrity: sha512-bAGh4e+w5D8dajd6InASVIyCo4pZLJ66oLb80F9OBLO1gKESbZcRCJpTT6uLXX+HAB57zw1WTdwJdAsewuTweg==}
dependencies:
'@types/hoist-non-react-statics': 3.3.1
'@types/react': 18.0.26
hoist-non-react-statics: 3.3.2
redux: 4.2.0
dev: false
/@types/react/18.0.26:
resolution: {integrity: sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==}
dependencies:
@@ -6508,10 +6482,6 @@ packages:
engines: {node: '>= 0.6'}
dev: false
/memoize-one/5.2.1:
resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==}
dev: false
/meow/9.0.0:
resolution: {integrity: sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==}
engines: {node: '>=10'}
@@ -7308,10 +7278,6 @@ packages:
engines: {node: '>=8'}
dev: true
/raf-schd/4.0.3:
resolution: {integrity: sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==}
dev: false
/random-bytes/1.0.0:
resolution: {integrity: sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==}
engines: {node: '>= 0.8'}
@@ -7332,25 +7298,6 @@ packages:
unpipe: 1.0.0
dev: false
/react-beautiful-dnd/13.1.1_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-0Lvs4tq2VcrEjEgDXHjT98r+63drkKEgqyxdA7qD3mvKwga6a5SscbdLPO2IExotU1jW8L0Ksdl0Cj2AF67nPQ==}
peerDependencies:
react: ^16.8.5 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.5 || ^17.0.0 || ^18.0.0
dependencies:
'@babel/runtime': 7.20.7
css-box-model: 1.2.1
memoize-one: 5.2.1
raf-schd: 4.0.3
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
react-redux: 7.2.9_biqbaboplfbrettd7655fr4n2y
redux: 4.2.0
use-memo-one: 1.1.3_react@18.2.0
transitivePeerDependencies:
- react-native
dev: false
/react-clientside-effect/1.2.6_react@18.2.0:
resolution: {integrity: sha512-XGGGRQAKY+q25Lz9a/4EPqom7WRjz3z9R2k4jhVKA/puQFH/5Nt27vFZYql4m4NVNdUvX8PS3O7r/Zzm7cjUlg==}
peerDependencies:
@@ -7406,6 +7353,7 @@ packages:
/react-is/17.0.2:
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
dev: true
/react-is/18.2.0:
resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
@@ -7425,28 +7373,6 @@ packages:
react: 18.2.0
dev: false
/react-redux/7.2.9_biqbaboplfbrettd7655fr4n2y:
resolution: {integrity: sha512-Gx4L3uM182jEEayZfRbI/G11ZpYdNAnBs70lFVMNdHJI76XYtR+7m0MN+eAs7UHBPhWXcnFPaS+9owSCJQHNpQ==}
peerDependencies:
react: ^16.8.3 || ^17 || ^18
react-dom: '*'
react-native: '*'
peerDependenciesMeta:
react-dom:
optional: true
react-native:
optional: true
dependencies:
'@babel/runtime': 7.20.7
'@types/react-redux': 7.1.25
hoist-non-react-statics: 3.3.2
loose-envify: 1.4.0
prop-types: 15.8.1
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
react-is: 17.0.2
dev: false
/react-refresh/0.14.0:
resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==}
engines: {node: '>=0.10.0'}
@@ -7614,12 +7540,6 @@ packages:
strip-indent: 3.0.0
dev: true
/redux/4.2.0:
resolution: {integrity: sha512-oSBmcKKIuIR4ME29/AeNUnl5L+hvBq7OaJWzaptTQJAntaPvxIJqfnjbaEiCzzaIz+XmVILfqAM3Ob0aXLPfjA==}
dependencies:
'@babel/runtime': 7.20.7
dev: false
/regenerator-runtime/0.13.11:
resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}
@@ -8768,14 +8688,6 @@ packages:
tslib: 2.5.0
dev: false
/use-memo-one/1.1.3_react@18.2.0:
resolution: {integrity: sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
dependencies:
react: 18.2.0
dev: false
/use-sidecar/1.1.2_kzbn2opkn2327fwg5yzwzya5o4:
resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}
engines: {node: '>=10'}