diff --git a/packages/studio/src/components/StudioRightPanel.tsx b/packages/studio/src/components/StudioRightPanel.tsx index baf7d1fb3b..66c391be7b 100644 --- a/packages/studio/src/components/StudioRightPanel.tsx +++ b/packages/studio/src/components/StudioRightPanel.tsx @@ -399,8 +399,8 @@ export function StudioRightPanel({ onUpdateArcSegment={handleUpdateArcSegment} onUnroll={handleUnroll} onUpdateKeyframeEase={handleUpdateKeyframeEase} - onSetAllKeyframeEases={handleSetAllKeyframeEases} onUpdateSegmentEase={handleUpdateSegmentEase} + onSetAllKeyframeEases={handleSetAllKeyframeEases} recordingState={recordingState} recordingDuration={recordingDuration} onToggleRecording={onToggleRecording} diff --git a/packages/studio/src/components/editor/GsapAnimationSection.test.tsx b/packages/studio/src/components/editor/GsapAnimationSection.test.tsx index 8517860d1f..240ae98625 100644 --- a/packages/studio/src/components/editor/GsapAnimationSection.test.tsx +++ b/packages/studio/src/components/editor/GsapAnimationSection.test.tsx @@ -5,11 +5,15 @@ import { createRoot } from "react-dom/client"; import { afterEach, describe, expect, it, vi } from "vitest"; import type { GsapAnimation } from "@hyperframes/core/gsap-parser"; import { DesignPanelInputProvider } from "../../contexts/DesignPanelInputContext"; -import { usePlayerStore } from "../../player"; +import { usePlayerStore } from "../../player/store/playerStore"; import { GsapAnimationSection } from "./GsapAnimationSection"; (globalThis as unknown as { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true; +const animationCardMock = vi.hoisted(() => ({ + consumers: [] as Array<{ tweenPercentage: number | null; consume: () => void }>, +})); + vi.mock("./AnimationCard", () => ({ AnimationCard: ({ animation, @@ -19,20 +23,27 @@ vi.mock("./AnimationCard", () => ({ animation: GsapAnimation; focusedSegment: { tweenPercentage: number } | null; onFocusSegmentConsumed: () => void; - }) => ( -