Skip to content

Commit efe618b

Browse files
authored
chore(deps): Update framer-motion to v12.23.12 (#97802)
1 parent 62c4bbe commit efe618b

File tree

16 files changed

+86
-70
lines changed

16 files changed

+86
-70
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"echarts-for-react": "3.0.2",
120120
"esbuild": "0.25.3",
121121
"focus-trap": "^7.3.1",
122-
"framer-motion": "12.7.3",
122+
"framer-motion": "12.23.12",
123123
"fuse.js": "^6.6.2",
124124
"gettext-parser": "7.0.1",
125125
"gl-matrix": "^3.4.3",

pnpm-lock.yaml

Lines changed: 41 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/app/components/events/autofix/autofixChanges.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Fragment, useEffect, useMemo, useRef, useState} from 'react';
22
import styled from '@emotion/styled';
3-
import {AnimatePresence, motion, type AnimationProps} from 'framer-motion';
3+
import {AnimatePresence, motion, type MotionNodeAnimationOptions} from 'framer-motion';
44

55
import {addErrorMessage} from 'sentry/actionCreators/indicator';
66
import {openModal} from 'sentry/actionCreators/modal';
@@ -104,7 +104,7 @@ function AutofixRepoChange({
104104
);
105105
}
106106

107-
const cardAnimationProps: AnimationProps = {
107+
const cardAnimationProps: MotionNodeAnimationOptions = {
108108
exit: {opacity: 0, height: 0, scale: 0.8, y: -20},
109109
initial: {opacity: 0, height: 0, scale: 0.8},
110110
animate: {opacity: 1, height: 'auto', scale: 1},

static/app/components/events/autofix/autofixRootCause.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Fragment, useRef} from 'react';
22
import styled from '@emotion/styled';
3-
import {AnimatePresence, motion, type AnimationProps} from 'framer-motion';
3+
import {AnimatePresence, motion, type MotionNodeAnimationOptions} from 'framer-motion';
44

55
import ClippedBox from 'sentry/components/clippedBox';
66
import {CopyToClipboardButton} from 'sentry/components/copyToClipboardButton';
@@ -34,7 +34,7 @@ type AutofixRootCauseProps = {
3434
terminationReason?: string;
3535
};
3636

37-
const cardAnimationProps: AnimationProps = {
37+
const cardAnimationProps: MotionNodeAnimationOptions = {
3838
exit: {opacity: 0, height: 0, scale: 0.8, y: -20},
3939
initial: {opacity: 0, height: 0, scale: 0.8},
4040
animate: {opacity: 1, height: 'auto', scale: 1},

static/app/components/events/autofix/autofixSolution.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useCallback, useEffect, useRef, useState} from 'react';
22
import styled from '@emotion/styled';
3-
import {AnimatePresence, motion, type AnimationProps} from 'framer-motion';
3+
import {AnimatePresence, motion, type MotionNodeAnimationOptions} from 'framer-motion';
44

55
import {addErrorMessage, addLoadingMessage} from 'sentry/actionCreators/indicator';
66
import ClippedBox from 'sentry/components/clippedBox';
@@ -125,7 +125,7 @@ type AutofixSolutionProps = {
125125
previousInsightCount?: number;
126126
};
127127

128-
const cardAnimationProps: AnimationProps = {
128+
const cardAnimationProps: MotionNodeAnimationOptions = {
129129
exit: {opacity: 0, height: 0, scale: 0.8, y: -20},
130130
initial: {opacity: 0, height: 0, scale: 0.8},
131131
animate: {opacity: 1, height: 'auto', scale: 1},

static/app/components/events/autofix/autofixSteps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Fragment, useEffect, useRef} from 'react';
22
import styled from '@emotion/styled';
3-
import {AnimatePresence, motion, type AnimationProps} from 'framer-motion';
3+
import {AnimatePresence, motion, type MotionNodeAnimationOptions} from 'framer-motion';
44

55
import {AutofixChanges} from 'sentry/components/events/autofix/autofixChanges';
66
import AutofixInsightCards from 'sentry/components/events/autofix/autofixInsightCards';
@@ -22,7 +22,7 @@ import {space} from 'sentry/styles/space';
2222
import testableTransition from 'sentry/utils/testableTransition';
2323
import useOrganization from 'sentry/utils/useOrganization';
2424

25-
const animationProps: AnimationProps = {
25+
const animationProps: MotionNodeAnimationOptions = {
2626
exit: {opacity: 0},
2727
initial: {opacity: 0},
2828
animate: {opacity: 1},

static/app/components/globalDrawer/components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {createContext, Fragment, useContext} from 'react';
22
import styled from '@emotion/styled';
33
import {mergeRefs} from '@react-aria/utils';
4-
import type {AnimationProps} from 'framer-motion';
4+
import type {Transition} from 'framer-motion';
55

66
import {Button} from 'sentry/components/core/button';
77
import type {DrawerOptions} from 'sentry/components/globalDrawer';
@@ -43,7 +43,7 @@ interface DrawerPanelProps {
4343
drawerWidth?: DrawerOptions['drawerWidth'];
4444
ref?: React.Ref<HTMLDivElement>;
4545
resizable?: DrawerOptions['resizable'];
46-
transitionProps?: AnimationProps['transition'];
46+
transitionProps?: Transition;
4747
}
4848

4949
function DrawerPanel({

static/app/components/globalDrawer/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import {
88
useState,
99
} from 'react';
1010
import type {Interpolation, Theme} from '@emotion/react';
11-
import type {AnimationProps} from 'framer-motion';
12-
import {AnimatePresence} from 'framer-motion';
11+
import {AnimatePresence, type Transition} from 'framer-motion';
1312
import type {Location} from 'history';
1413

1514
import ErrorBoundary from 'sentry/components/errorBoundary';
@@ -74,7 +73,7 @@ export interface DrawerOptions {
7473
//
7574
// Custom framer motion transition for the drawer
7675
//
77-
transitionProps?: AnimationProps['transition'];
76+
transitionProps?: Transition;
7877
}
7978

8079
interface DrawerRenderProps {

static/app/components/overlay.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ const overlayAnimation: MotionProps = {
5252
opacity: 1,
5353
scale: 1,
5454
transition: testableTransition({
55-
type: 'linear',
56-
ease: [0.5, 1, 0.89, 1],
55+
type: 'spring',
5756
duration: 0.2,
5857
}),
5958
},

static/app/components/slideOverPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {useEffect} from 'react';
22
import isPropValid from '@emotion/is-prop-valid';
33
import {css} from '@emotion/react';
44
import styled from '@emotion/styled';
5-
import {motion, type AnimationProps} from 'framer-motion';
5+
import {motion, type Transition} from 'framer-motion';
66

77
import {space} from 'sentry/styles/space';
88

@@ -32,7 +32,7 @@ type SlideOverPanelProps = {
3232
panelWidth?: string;
3333
ref?: React.Ref<HTMLDivElement>;
3434
slidePosition?: 'right' | 'bottom' | 'left';
35-
transitionProps?: AnimationProps['transition'];
35+
transitionProps?: Transition;
3636
};
3737

3838
export default SlideOverPanel;

0 commit comments

Comments
 (0)