Skip to content

Commit 1d37a43

Browse files
committed
Update framer-motion to the latest version.
1 parent a25a2e4 commit 1d37a43

File tree

3 files changed

+17
-51
lines changed

3 files changed

+17
-51
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@emotion/styled": "^11.11.0",
2121
"antd": "5.2.3",
2222
"date-fns": "^2.29.3",
23-
"framer-motion": "^2.9.5",
23+
"framer-motion": "^11.0.3",
2424
"markdown-to-jsx": "7.1.9",
2525
"query-string": "8.1.0",
2626
"react": "18.2.0",

src/components/common/DiffViewer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect, useRef, useReducer } from 'react'
22
import styled from '@emotion/styled'
33
import { Alert } from 'antd'
4-
import { motion, AnimatePresence, AnimateSharedLayout } from 'framer-motion'
4+
import { motion, AnimatePresence, LayoutGroup } from 'framer-motion'
55
import { withChangeSelect } from 'react-diff-view'
66
import 'react-diff-view/style/index.css'
77
import { getTransitionDuration, getChangelogURL } from '../../utils'
@@ -177,7 +177,7 @@ const DiffViewer = ({
177177

178178
return (
179179
<Container>
180-
<AnimateSharedLayout>
180+
<LayoutGroup>
181181
<motion.div
182182
initial={{ opacity: 0, translateY: 75 }}
183183
animate={{ opacity: 1, translateY: 0 }}
@@ -230,7 +230,7 @@ const DiffViewer = ({
230230
doneTitleRef={doneTitleRef}
231231
/>
232232
</motion.div>
233-
</AnimateSharedLayout>
233+
</LayoutGroup>
234234

235235
<CompletedFilesCounter
236236
completed={completedDiffs.length}

yarn.lock

Lines changed: 13 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3790,14 +3790,9 @@ caniuse-api@^3.0.0:
37903790
lodash.memoize "^4.1.2"
37913791
lodash.uniq "^4.5.0"
37923792

3793-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449:
3794-
version "1.0.30001458"
3795-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001458.tgz#871e35866b4654a7d25eccca86864f411825540c"
3796-
integrity sha512-lQ1VlUUq5q9ro9X+5gOEyH7i3vm+AYVT1WDCVB69XOZ17KZRhnZ9J0Sqz7wTHQaLBJccNCHq8/Ww5LlOIZbB0w==
3797-
3798-
caniuse-lite@^1.0.30001580:
3793+
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001580:
37993794
version "1.0.30001583"
3800-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001583.tgz#abb2970cc370801dc7e27bf290509dc132cfa390"
3795+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001583.tgz"
38013796
integrity sha512-acWTYaha8xfhA/Du/z4sNZjHUWjkiuoAi2LM+T/aL+kemKQgPT1xBb/YKjlQ0Qo8gvbHsGNplrEJ+9G3gL7i4Q==
38023797

38033798
case-sensitive-paths-webpack-plugin@^2.4.0:
@@ -5533,26 +5528,15 @@ fraction.js@^4.2.0:
55335528
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950"
55345529
integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
55355530

5536-
framer-motion@^2.9.5:
5537-
version "2.9.5"
5538-
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-2.9.5.tgz#bbb185325d531c57f494cf3f6cf7719fc2c225c7"
5539-
integrity sha512-epSX4Co1YbDv0mjfHouuY0q361TpHE7WQzCp/xMTilxy4kXd+Z23uJzPVorfzbm1a/9q1Yu8T5bndaw65NI4Tg==
5531+
framer-motion@^11.0.3:
5532+
version "11.0.3"
5533+
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-11.0.3.tgz#b2a87e7ae166a9e27da33da9cfb50a0db5f94fa7"
5534+
integrity sha512-6x2poQpIWBdbZwLd73w6cKZ1I9IEPIU94C6/Swp1Zt3LJ+sB5bPe1E2wC6EH5hSISXNkMJ4afH7AdwS7MrtkWw==
55405535
dependencies:
5541-
framesync "^4.1.0"
5542-
hey-listen "^1.0.8"
5543-
popmotion "9.0.0-rc.20"
5544-
style-value-types "^3.1.9"
5545-
tslib "^1.10.0"
5536+
tslib "^2.4.0"
55465537
optionalDependencies:
55475538
"@emotion/is-prop-valid" "^0.8.2"
55485539

5549-
framesync@^4.1.0:
5550-
version "4.1.0"
5551-
resolved "https://registry.yarnpkg.com/framesync/-/framesync-4.1.0.tgz#69a8db3ca432dc70d6a76ba882684a1497ef068a"
5552-
integrity sha512-MmgZ4wCoeVxNbx2xp5hN/zPDCbLSKiDt4BbbslK7j/pM2lg5S0vhTNv1v8BCVb99JPIo6hXBFdwzU7Q4qcAaoQ==
5553-
dependencies:
5554-
hey-listen "^1.0.5"
5555-
55565540
55575541
version "0.5.2"
55585542
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
@@ -5882,11 +5866,6 @@ he@^1.2.0:
58825866
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
58835867
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
58845868

5885-
hey-listen@^1.0.5, hey-listen@^1.0.8:
5886-
version "1.0.8"
5887-
resolved "https://registry.yarnpkg.com/hey-listen/-/hey-listen-1.0.8.tgz#8e59561ff724908de1aa924ed6ecc84a56a9aa68"
5888-
integrity sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==
5889-
58905869
hoist-non-react-statics@^2.3.1:
58915870
version "2.5.5"
58925871
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
@@ -8070,16 +8049,6 @@ pngjs@^4.0.1:
80708049
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-4.0.1.tgz#f803869bb2fc1bfe1bf99aa4ec21c108117cfdbe"
80718050
integrity sha512-rf5+2/ioHeQxR6IxuYNYGFytUyG3lma/WW1nsmjeHlWwtb2aByla6dkVc8pmJ9nplzkTA0q2xx7mMWrOTqT4Gg==
80728051

8073-
8074-
version "9.0.0-rc.20"
8075-
resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-9.0.0-rc.20.tgz#f3550042ae31957b5416793ae8723200951ad39d"
8076-
integrity sha512-f98sny03WuA+c8ckBjNNXotJD4G2utG/I3Q23NU69OEafrXtxxSukAaJBxzbtxwDvz3vtZK69pu9ojdkMoBNTg==
8077-
dependencies:
8078-
framesync "^4.1.0"
8079-
hey-listen "^1.0.8"
8080-
style-value-types "^3.1.9"
8081-
tslib "^1.10.0"
8082-
80838052
postcss-attribute-case-insensitive@^5.0.2:
80848053
version "5.0.2"
80858054
resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz#03d761b24afc04c09e757e92ff53716ae8ea2741"
@@ -10233,14 +10202,6 @@ style-loader@^3.3.1:
1023310202
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.1.tgz#057dfa6b3d4d7c7064462830f9113ed417d38575"
1023410203
integrity sha512-GPcQ+LDJbrcxHORTRes6Jy2sfvK2kS6hpSfI/fXhPt+spVzxF6LJ1dHLN9zIGmVaaP044YKaIatFaufENRiDoQ==
1023510204

10236-
style-value-types@^3.1.9:
10237-
version "3.2.0"
10238-
resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-3.2.0.tgz#eb89cab1340823fa7876f3e289d29d99c92111bb"
10239-
integrity sha512-ih0mGsrYYmVvdDi++/66O6BaQPRPRMQHoZevNNdMMcPlP/cH28Rnfsqf1UEba/Bwfuw9T8BmIMwbGdzsPwQKrQ==
10240-
dependencies:
10241-
hey-listen "^1.0.8"
10242-
tslib "^1.10.0"
10243-
1024410205
stylehacks@^5.1.1:
1024510206
version "5.1.1"
1024610207
resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9"
@@ -10575,7 +10536,7 @@ tsconfig-paths@^3.14.1:
1057510536
minimist "^1.2.6"
1057610537
strip-bom "^3.0.0"
1057710538

10578-
tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0:
10539+
tslib@^1.8.1, tslib@^1.9.0:
1057910540
version "1.11.1"
1058010541
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35"
1058110542
integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==
@@ -10585,6 +10546,11 @@ tslib@^2.0.3:
1058510546
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
1058610547
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
1058710548

10549+
tslib@^2.4.0:
10550+
version "2.6.2"
10551+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
10552+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
10553+
1058810554
tsutils@^3.21.0:
1058910555
version "3.21.0"
1059010556
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"

0 commit comments

Comments
 (0)