11import { Tooltip } from "./ui" ;
22import { PropertyPanel } from "./editor/PropertyPanel" ;
3- import { MotionPanel } from "./editor/MotionPanel" ;
43import { LayersPanel } from "./editor/LayersPanel" ;
54import { CaptionPropertyPanel } from "../captions/components/CaptionPropertyPanel" ;
65import { BlockParamsPanel } from "./editor/BlockParamsPanel" ;
76import { RenderQueue } from "./renders/RenderQueue" ;
87import type { RenderJob } from "./renders/useRenderQueue" ;
9- import type { StudioGsapMotion } from "./editor/studioMotion" ;
108import type { BlockParam } from "@hyperframes/core/registry" ;
11- import {
12- STUDIO_INSPECTOR_PANELS_ENABLED ,
13- STUDIO_MOTION_PANEL_ENABLED ,
14- } from "./editor/manualEditingAvailability" ;
15-
16- /** Motion data without targeting metadata. */
17- type StudioMotionData = Omit < StudioGsapMotion , "kind" | "target" | "updatedAt" > ;
9+ import { STUDIO_INSPECTOR_PANELS_ENABLED } from "./editor/manualEditingAvailability" ;
1810
1911import { useStudioContext } from "../contexts/StudioContext" ;
2012import { usePanelLayoutContext } from "../contexts/PanelLayoutContext" ;
@@ -23,9 +15,7 @@ import { useDomEditContext } from "../contexts/DomEditContext";
2315import { usePlayerStore } from "../player" ;
2416
2517export interface StudioRightPanelProps {
26- selectedStudioMotion : StudioMotionData | null ;
2718 designPanelActive : boolean ;
28- motionPanelActive : boolean ;
2919 activeBlockParams ?: {
3020 blockName : string ;
3121 blockTitle : string ;
@@ -40,9 +30,7 @@ export interface StudioRightPanelProps {
4030
4131// fallow-ignore-next-line complexity
4232export function StudioRightPanel ( {
43- selectedStudioMotion,
4433 designPanelActive,
45- motionPanelActive,
4634 activeBlockParams,
4735 onCloseBlockParams,
4836 recordingState,
@@ -84,8 +72,6 @@ export function StudioRightPanel({
8472 handleDomAddTextField,
8573 handleDomRemoveTextField,
8674 handleAskAgent,
87- handleDomMotionCommit,
88- handleDomMotionClear,
8975 selectedGsapAnimations,
9076 gsapMultipleTimelines,
9177 gsapUnsupportedTimelinePattern,
@@ -159,21 +145,6 @@ export function StudioRightPanel({
159145 Layers
160146 </ button >
161147 </ Tooltip >
162- { STUDIO_MOTION_PANEL_ENABLED && (
163- < Tooltip label = "Animation and motion" side = "bottom" >
164- < button
165- type = "button"
166- onClick = { ( ) => setRightPanelTab ( "motion" ) }
167- className = { `h-8 rounded-xl px-3 text-[11px] font-medium transition-colors ${
168- rightPanelTab === "motion"
169- ? "bg-neutral-800 text-white"
170- : "text-neutral-500 hover:bg-neutral-800/70 hover:text-neutral-200"
171- } `}
172- >
173- Motion
174- </ button >
175- </ Tooltip >
176- ) }
177148 </ >
178149 ) }
179150 < Tooltip label = "Render queue and exports" side = "bottom" >
@@ -248,14 +219,6 @@ export function StudioRightPanel({
248219 recordingDuration = { recordingDuration }
249220 onToggleRecording = { onToggleRecording }
250221 />
251- ) : motionPanelActive ? (
252- < MotionPanel
253- element = { domEditGroupSelections . length > 1 ? null : domEditSelection }
254- motion = { selectedStudioMotion }
255- onClearSelection = { clearDomSelection }
256- onSetMotion = { handleDomMotionCommit }
257- onClearMotion = { handleDomMotionClear }
258- />
259222 ) : (
260223 < RenderQueue
261224 jobs = { renderJobs }
0 commit comments