Skip to content

Commit 9a72bfa

Browse files
committed
deps(ui): Update framer motion to latest
Now that we are unblocked on react 18. update framer motion to the latest version.
1 parent 8e37705 commit 9a72bfa

File tree

6 files changed

+12
-113
lines changed

6 files changed

+12
-113
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"esbuild": "^0.20.0",
116116
"focus-trap": "^7.3.1",
117117
"fork-ts-checker-webpack-plugin": "^9.0.2",
118-
"framer-motion": "^6.5.1",
118+
"framer-motion": "^11.1.7",
119119
"fuse.js": "^6.6.2",
120120
"gettext-parser": "1.3.1",
121121
"gl-matrix": "^3.4.3",

static/app/components/chevron.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function Chevron({
6363
<motion.path
6464
animate={{d: getPath(direction)}}
6565
transition={{ease: 'easeOut', duration: 0.25}}
66+
initial={false}
6667
/>
6768
</VariableWeightIcon>
6869
);

static/app/views/issueList/actions/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function ActionsBarPriority({
112112
</ActionsCheckbox>
113113
)}
114114
{!displayReprocessingActions && (
115-
<AnimatePresence initial={false} exitBeforeEnter>
115+
<AnimatePresence initial={false} mode="wait">
116116
{shouldDisplayActions && (
117117
<HeaderButtonsWrapper key="actions" {...animationProps}>
118118
<ActionSet
@@ -139,7 +139,7 @@ function ActionsBarPriority({
139139
)}
140140
</AnimatePresence>
141141
)}
142-
<AnimatePresence initial={false} exitBeforeEnter>
142+
<AnimatePresence initial={false} mode="wait">
143143
{!anySelected ? (
144144
<AnimatedHeaderItemsContainer key="headers" {...animationProps}>
145145
<Headers

static/app/views/onboarding/onboarding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function Onboarding(props: Props) {
405405
<Confirm bypass={!shallProjectBeDeleted} {...goBackDeletionAlertModalProps}>
406406
<Back animate={stepIndex > 0 ? 'visible' : 'hidden'} />
407407
</Confirm>
408-
<AnimatePresence exitBeforeEnter onExitComplete={updateAnimationState}>
408+
<AnimatePresence mode="wait" onExitComplete={updateAnimationState}>
409409
<OnboardingStep key={stepObj.id} data-test-id={`onboarding-step-${stepObj.id}`}>
410410
{stepObj.Component && (
411411
<stepObj.Component

static/app/views/relocation/relocation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function RelocationOnboarding(props: Props) {
270270
const contentView = isLoading ? (
271271
<LoadingIndicator />
272272
) : (
273-
<AnimatePresence exitBeforeEnter onExitComplete={updateAnimationState}>
273+
<AnimatePresence mode="wait" onExitComplete={updateAnimationState}>
274274
<OnboardingStep key={stepObj.id} data-test-id={`onboarding-step-${stepObj.id}`}>
275275
{stepObj.Component && (
276276
<stepObj.Component

yarn.lock

Lines changed: 6 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,25 +1381,13 @@
13811381
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.9.1.tgz#4ffb0055f7ef676ebc3a5a91fb621393294e2f43"
13821382
integrity sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==
13831383

1384-
"@emotion/is-prop-valid@^0.8.2":
1385-
version "0.8.8"
1386-
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
1387-
integrity sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==
1388-
dependencies:
1389-
"@emotion/memoize" "0.7.4"
1390-
13911384
"@emotion/is-prop-valid@^1.2.1":
13921385
version "1.2.1"
13931386
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-1.2.1.tgz#23116cf1ed18bfeac910ec6436561ecb1a3885cc"
13941387
integrity sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==
13951388
dependencies:
13961389
"@emotion/memoize" "^0.8.1"
13971390

1398-
"@emotion/memoize@0.7.4":
1399-
version "0.7.4"
1400-
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.4.tgz#19bf0f5af19149111c40d98bb0cf82119f5d9eeb"
1401-
integrity sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==
1402-
14031391
"@emotion/memoize@^0.8.1":
14041392
version "0.8.1"
14051393
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.8.1.tgz#c1ddb040429c6d21d38cc945fe75c818cfb68e17"
@@ -1989,59 +1977,6 @@
19891977
"@monaco-editor/loader" "^1.3.2"
19901978
prop-types "^15.7.2"
19911979

1992-
"@motionone/animation@^10.12.0":
1993-
version "10.17.0"
1994-
resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.17.0.tgz#7633c6f684b5fee2b61c405881b8c24662c68fca"
1995-
integrity sha512-ANfIN9+iq1kGgsZxs+Nz96uiNcPLGTXwfNo2Xz/fcJXniPYpaz/Uyrfa+7I5BPLxCP82sh7quVDudf1GABqHbg==
1996-
dependencies:
1997-
"@motionone/easing" "^10.17.0"
1998-
"@motionone/types" "^10.17.0"
1999-
"@motionone/utils" "^10.17.0"
2000-
tslib "^2.3.1"
2001-
2002-
"@motionone/dom@10.12.0":
2003-
version "10.12.0"
2004-
resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.12.0.tgz#ae30827fd53219efca4e1150a5ff2165c28351ed"
2005-
integrity sha512-UdPTtLMAktHiqV0atOczNYyDd/d8Cf5fFsd1tua03PqTwwCe/6lwhLSQ8a7TbnQ5SN0gm44N1slBfj+ORIhrqw==
2006-
dependencies:
2007-
"@motionone/animation" "^10.12.0"
2008-
"@motionone/generators" "^10.12.0"
2009-
"@motionone/types" "^10.12.0"
2010-
"@motionone/utils" "^10.12.0"
2011-
hey-listen "^1.0.8"
2012-
tslib "^2.3.1"
2013-
2014-
"@motionone/easing@^10.17.0":
2015-
version "10.17.0"
2016-
resolved "https://registry.yarnpkg.com/@motionone/easing/-/easing-10.17.0.tgz#d66cecf7e3ee30104ad00389fb3f0b2282d81aa9"
2017-
integrity sha512-Bxe2wSuLu/qxqW4rBFS5m9tMLOw+QBh8v5A7Z5k4Ul4sTj5jAOfZG5R0bn5ywmk+Fs92Ij1feZ5pmC4TeXA8Tg==
2018-
dependencies:
2019-
"@motionone/utils" "^10.17.0"
2020-
tslib "^2.3.1"
2021-
2022-
"@motionone/generators@^10.12.0":
2023-
version "10.17.0"
2024-
resolved "https://registry.yarnpkg.com/@motionone/generators/-/generators-10.17.0.tgz#878d292539c41434c13310d5f863a87a94e6e689"
2025-
integrity sha512-T6Uo5bDHrZWhIfxG/2Aut7qyWQyJIWehk6OB4qNvr/jwA/SRmixwbd7SOrxZi1z5rH3LIeFFBKK1xHnSbGPZSQ==
2026-
dependencies:
2027-
"@motionone/types" "^10.17.0"
2028-
"@motionone/utils" "^10.17.0"
2029-
tslib "^2.3.1"
2030-
2031-
"@motionone/types@^10.12.0", "@motionone/types@^10.17.0":
2032-
version "10.17.0"
2033-
resolved "https://registry.yarnpkg.com/@motionone/types/-/types-10.17.0.tgz#179571ce98851bac78e19a1c3974767227f08ba3"
2034-
integrity sha512-EgeeqOZVdRUTEHq95Z3t8Rsirc7chN5xFAPMYFobx8TPubkEfRSm5xihmMUkbaR2ErKJTUw3347QDPTHIW12IA==
2035-
2036-
"@motionone/utils@^10.12.0", "@motionone/utils@^10.17.0":
2037-
version "10.17.0"
2038-
resolved "https://registry.yarnpkg.com/@motionone/utils/-/utils-10.17.0.tgz#cc0ba8acdc6848ff48d8c1f2d0d3e7602f4f942e"
2039-
integrity sha512-bGwrki4896apMWIj9yp5rAS2m0xyhxblg6gTB/leWDPt+pb410W8lYWsxyurX+DH+gO1zsQsfx2su/c1/LtTpg==
2040-
dependencies:
2041-
"@motionone/types" "^10.17.0"
2042-
hey-listen "^1.0.8"
2043-
tslib "^2.3.1"
2044-
20451980
"@nodelib/fs.scandir@2.1.5":
20461981
version "2.1.5"
20471982
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -6708,26 +6643,12 @@ forwarded@0.2.0:
67086643
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
67096644
integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
67106645

6711-
framer-motion@^6.5.1:
6712-
version "6.5.1"
6713-
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-6.5.1.tgz#802448a16a6eb764124bf36d8cbdfa6dd6b931a7"
6714-
integrity sha512-o1BGqqposwi7cgDrtg0dNONhkmPsUFDaLcKXigzuTFC5x58mE8iyTazxSudFzmT6MEyJKfjjU8ItoMe3W+3fiw==
6715-
dependencies:
6716-
"@motionone/dom" "10.12.0"
6717-
framesync "6.0.1"
6718-
hey-listen "^1.0.8"
6719-
popmotion "11.0.3"
6720-
style-value-types "5.0.0"
6721-
tslib "^2.1.0"
6722-
optionalDependencies:
6723-
"@emotion/is-prop-valid" "^0.8.2"
6724-
6725-
framesync@6.0.1:
6726-
version "6.0.1"
6727-
resolved "https://registry.yarnpkg.com/framesync/-/framesync-6.0.1.tgz#5e32fc01f1c42b39c654c35b16440e07a25d6f20"
6728-
integrity sha512-fUY88kXvGiIItgNC7wcTOl0SNRCVXMKSWW2Yzfmn7EKNc+MpCzcz9DhdHcdjbrtN3c6R4H5dTY2jiCpPdysEjA==
6646+
framer-motion@^11.1.7:
6647+
version "11.1.7"
6648+
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-11.1.7.tgz#ad970c1296e7b5fb26db222fd65d1329aef115a6"
6649+
integrity sha512-cW11Pu53eDAXUEhv5hEiWuIXWhfkbV32PlgVISn7jRdcAiVrJ1S03YQQ0/DzoswGYYwKi4qYmHHjCzAH52eSdQ==
67296650
dependencies:
6730-
tslib "^2.1.0"
6651+
tslib "^2.4.0"
67316652

67326653
fresh@0.5.2:
67336654
version "0.5.2"
@@ -7051,11 +6972,6 @@ he@^1.2.0:
70516972
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
70526973
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
70536974

7054-
hey-listen@^1.0.8:
7055-
version "1.0.8"
7056-
resolved "https://registry.yarnpkg.com/hey-listen/-/hey-listen-1.0.8.tgz#8e59561ff724908de1aa924ed6ecc84a56a9aa68"
7057-
integrity sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==
7058-
70596975
history@^3.0.0:
70606976
version "3.3.0"
70616977
resolved "https://registry.yarnpkg.com/history/-/history-3.3.0.tgz#fcedcce8f12975371545d735461033579a6dae9c"
@@ -9348,16 +9264,6 @@ po-catalog-loader@2.0.0:
93489264
dependencies:
93499265
loader-utils "1.1.0"
93509266

9351-
popmotion@11.0.3:
9352-
version "11.0.3"
9353-
resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-11.0.3.tgz#565c5f6590bbcddab7a33a074bb2ba97e24b0cc9"
9354-
integrity sha512-Y55FLdj3UxkR7Vl3s7Qr4e9m0onSnP8W7d/xQLsoJM40vs6UKHFdygs6SWryasTZYqugMjm3BepCF4CWXDiHgA==
9355-
dependencies:
9356-
framesync "6.0.1"
9357-
hey-listen "^1.0.8"
9358-
style-value-types "5.0.0"
9359-
tslib "^2.1.0"
9360-
93619267
possible-typed-array-names@^1.0.0:
93629268
version "1.0.0"
93639269
resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
@@ -10837,14 +10743,6 @@ style-loader@^3.3.4:
1083710743
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7"
1083810744
integrity sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w==
1083910745

10840-
style-value-types@5.0.0:
10841-
version "5.0.0"
10842-
resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-5.0.0.tgz#76c35f0e579843d523187989da866729411fc8ad"
10843-
integrity sha512-08yq36Ikn4kx4YU6RD7jWEv27v4V+PUsOGa4n/as8Et3CuODMJQ00ENeAVXAeydX4Z2j1XHZF1K2sX4mGl18fA==
10844-
dependencies:
10845-
hey-listen "^1.0.8"
10846-
tslib "^2.1.0"
10847-
1084810746
stylehacks@^6.1.1:
1084910747
version "6.1.1"
1085010748
resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-6.1.1.tgz#543f91c10d17d00a440430362d419f79c25545a6"
@@ -11144,7 +11042,7 @@ tslib@^1.10.0, tslib@^1.8.1:
1114411042
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
1114511043
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
1114611044

11147-
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.6.2:
11045+
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.3.0, tslib@^2.4.0, tslib@^2.6.2:
1114811046
version "2.6.2"
1114911047
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
1115011048
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==

0 commit comments

Comments
 (0)