@hyperframes/studio 0.7.54 → 0.7.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-uBY329wb.js → index-BWnOxAiH.js} +1 -1
- package/dist/assets/{index-CMHYjEZ5.js → index-C4csZims.js} +1 -1
- package/dist/assets/index-CmVCjZjp.js +423 -0
- package/dist/assets/index-D-GyYi2d.css +1 -0
- package/dist/{chunk-SOTCF4DF.js → chunk-5QSIMBEJ.js} +2 -1
- package/dist/chunk-5QSIMBEJ.js.map +1 -0
- package/dist/{domEditingLayers-2ECJK24D.js → domEditingLayers-6LQGKPOI.js} +2 -2
- package/dist/index.d.ts +146 -144
- package/dist/index.html +2 -2
- package/dist/index.js +40582 -37803
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/App.tsx +106 -96
- package/src/components/EditorShell.tsx +253 -0
- package/src/components/StudioGlobalDragOverlay.tsx +1 -3
- package/src/components/StudioLeftSidebar.tsx +13 -3
- package/src/components/StudioRightPanel.tsx +8 -3
- package/src/components/TimelineToolbar.test.tsx +2 -2
- package/src/components/TimelineToolbar.tsx +179 -121
- package/src/components/editor/CanvasContextMenu.test.tsx +115 -0
- package/src/components/editor/CanvasContextMenu.tsx +198 -0
- package/src/components/editor/DomEditCropHandles.test.tsx +74 -3
- package/src/components/editor/DomEditCropHandles.tsx +64 -29
- package/src/components/editor/DomEditOverlay.test.ts +245 -279
- package/src/components/editor/DomEditOverlay.tsx +158 -126
- package/src/components/editor/DomEditOverlayHover.test.tsx +90 -0
- package/src/components/editor/DomEditRotateHandle.tsx +38 -18
- package/src/components/editor/DomEditSelectionChrome.test.tsx +80 -0
- package/src/components/editor/DomEditSelectionChrome.tsx +257 -0
- package/src/components/editor/LayersPanel.test.ts +66 -2
- package/src/components/editor/LayersPanel.tsx +43 -1
- package/src/components/editor/OffCanvasIndicators.test.tsx +34 -0
- package/src/components/editor/OffCanvasIndicators.tsx +49 -10
- package/src/components/editor/SnapGuideOverlay.tsx +28 -23
- package/src/components/editor/SnapToolbar.test.tsx +0 -1
- package/src/components/editor/anchoredResizeCommitFeedsOffset.test.ts +214 -0
- package/src/components/editor/anchoredResizeReleaseShift.test.ts +208 -0
- package/src/components/editor/canvasContextMenuZOrder.test.ts +435 -0
- package/src/components/editor/canvasContextMenuZOrder.ts +352 -0
- package/src/components/editor/domEditNudge.test.ts +80 -0
- package/src/components/editor/domEditNudge.ts +44 -0
- package/src/components/editor/domEditOverlayGeometry.test.ts +167 -1
- package/src/components/editor/domEditOverlayGeometry.ts +280 -20
- package/src/components/editor/domEditOverlayGestures.ts +44 -41
- package/src/components/editor/domEditOverlayStartGesture.ts +62 -2
- package/src/components/editor/domEditResizeLocal.test.ts +131 -0
- package/src/components/editor/domEditResizeLocal.ts +125 -0
- package/src/components/editor/domEditingDom.ts +1 -1
- package/src/components/editor/manualEditsDomPatches.test.ts +47 -0
- package/src/components/editor/manualOffsetDrag.ts +55 -12
- package/src/components/editor/offCanvasIndicatorGeometry.ts +31 -10
- package/src/components/editor/offCanvasIndicatorRefresh.test.tsx +25 -1
- package/src/components/editor/resizeDraft.ts +108 -0
- package/src/components/editor/snapEngine.test.ts +12 -78
- package/src/components/editor/snapEngine.ts +13 -53
- package/src/components/editor/useDomEditNudge.test.tsx +228 -0
- package/src/components/editor/useDomEditNudge.ts +254 -0
- package/src/components/editor/useDomEditOverlayGestures.ts +115 -116
- package/src/components/editor/useDomEditOverlayRects.ts +9 -2
- package/src/components/nle/AssetPreviewOverlay.tsx +147 -0
- package/src/components/nle/NLEContext.test.ts +144 -0
- package/src/components/nle/NLEContext.tsx +328 -0
- package/src/components/nle/NLEPreview.tsx +1 -1
- package/src/components/nle/PreviewOverlays.tsx +240 -0
- package/src/components/nle/PreviewPane.tsx +163 -0
- package/src/components/nle/TimelinePane.test.ts +60 -0
- package/src/components/nle/TimelinePane.tsx +293 -0
- package/src/components/nle/TimelineResizeDivider.tsx +8 -2
- package/src/components/nle/useCompositionStack.test.tsx +44 -0
- package/src/components/nle/useCompositionStack.ts +17 -9
- package/src/components/nle/useTimelineEditCallbacks.ts +217 -0
- package/src/components/sidebar/AssetCard.tsx +326 -0
- package/src/components/sidebar/AssetContextMenu.tsx +15 -30
- package/src/components/sidebar/AssetsTab.test.ts +96 -0
- package/src/components/sidebar/AssetsTab.tsx +71 -206
- package/src/components/sidebar/AudioRow.tsx +39 -2
- package/src/components/sidebar/BlocksTab.tsx +8 -1
- package/src/components/sidebar/LeftSidebar.tsx +4 -1
- package/src/components/sidebar/assetHelpers.ts +29 -0
- package/src/contexts/DomEditContext.tsx +9 -0
- package/src/contexts/StudioContext.tsx +9 -8
- package/src/contexts/TimelineEditContext.tsx +3 -7
- package/src/hooks/deleteSelectedKeyframes.ts +35 -0
- package/src/hooks/domEditCommitTypes.ts +12 -1
- package/src/hooks/domSelectionTestHarness.ts +14 -0
- package/src/hooks/gestureTransaction.test.ts +311 -0
- package/src/hooks/gestureTransaction.ts +199 -0
- package/src/hooks/gsapDragCommit.test.ts +141 -41
- package/src/hooks/gsapDragCommit.ts +64 -74
- package/src/hooks/gsapDragStaticSetHelpers.ts +9 -21
- package/src/hooks/gsapResizeIntercept.test.ts +69 -0
- package/src/hooks/gsapResizeIntercept.ts +38 -10
- package/src/hooks/gsapRuntimeBridge.test.ts +49 -13
- package/src/hooks/gsapRuntimeBridge.ts +4 -4
- package/src/hooks/gsapScriptCommitTypes.ts +16 -5
- package/src/hooks/gsapShared.test.ts +19 -1
- package/src/hooks/gsapShared.ts +14 -0
- package/src/hooks/patchDocumentRootDuration.test.ts +71 -0
- package/src/hooks/timelineEditingGsap.ts +14 -0
- package/src/hooks/timelineEditingHelpers.test.ts +34 -1
- package/src/hooks/timelineEditingHelpers.ts +22 -48
- package/src/hooks/timelineMoveAdapter.test.ts +77 -0
- package/src/hooks/timelineMoveAdapter.ts +37 -0
- package/src/hooks/useAnimatedPropertyCommit.test.tsx +36 -8
- package/src/hooks/useAnimatedPropertyCommit.ts +31 -26
- package/src/hooks/useAppHotkeys.ts +16 -25
- package/src/hooks/useBlockHandlers.ts +55 -27
- package/src/hooks/useContextMenuDismiss.ts +31 -7
- package/src/hooks/useDomEditCommits.test.tsx +154 -1
- package/src/hooks/useDomEditCommits.ts +100 -3
- package/src/hooks/useDomEditPositionPatchCommit.ts +2 -0
- package/src/hooks/useDomEditSession.ts +2 -2
- package/src/hooks/useDomEditTextCommits.test.tsx +135 -0
- package/src/hooks/useDomEditTextCommits.ts +8 -3
- package/src/hooks/useDomEditWiring.ts +7 -9
- package/src/hooks/useDomGeometryCommits.ts +17 -2
- package/src/hooks/useDomSelection.test.ts +2 -36
- package/src/hooks/useDomSelection.ts +81 -51
- package/src/hooks/useDomSelectionSelectionGuards.test.ts +276 -0
- package/src/hooks/useElementLifecycleOps.test.tsx +258 -0
- package/src/hooks/useElementLifecycleOps.ts +40 -71
- package/src/hooks/useEnableKeyframes.test.ts +142 -1
- package/src/hooks/useEnableKeyframes.ts +73 -29
- package/src/hooks/useGestureCommit.test.tsx +130 -0
- package/src/hooks/useGestureCommit.ts +32 -8
- package/src/hooks/useGroupCommits.ts +7 -28
- package/src/hooks/useGsapAwareEditing.test.tsx +239 -0
- package/src/hooks/useGsapAwareEditing.ts +115 -20
- package/src/hooks/useGsapKeyframeOps.test.tsx +59 -0
- package/src/hooks/useGsapKeyframeOps.ts +38 -10
- package/src/hooks/useGsapScriptCommits.test.tsx +40 -1
- package/src/hooks/useGsapScriptCommits.ts +134 -50
- package/src/hooks/useGsapSelectionHandlers.ts +49 -16
- package/src/hooks/useMusicBeatAnalysis.ts +72 -36
- package/src/hooks/usePersistentEditHistory.test.ts +33 -0
- package/src/hooks/usePersistentEditHistory.ts +92 -58
- package/src/hooks/usePreviewPersistence.ts +25 -7
- package/src/hooks/useRazorSplit.history.test.tsx +303 -0
- package/src/hooks/useRazorSplit.test.ts +269 -0
- package/src/hooks/useRazorSplit.testHelpers.ts +64 -0
- package/src/hooks/useRazorSplit.ts +107 -36
- package/src/hooks/useRenderClipContent.ts +24 -6
- package/src/hooks/useStudioContextValue.ts +15 -5
- package/src/hooks/useStudioUrlState.ts +2 -4
- package/src/hooks/useTimelineEditing.test.tsx +20 -29
- package/src/hooks/useTimelineEditingTypes.ts +6 -0
- package/src/hooks/useTimelineGroupEditing.ts +18 -4
- package/src/index.ts +1 -1
- package/src/player/components/ImageThumbnail.test.tsx +173 -0
- package/src/player/components/ImageThumbnail.tsx +160 -0
- package/src/player/components/PlayheadIndicator.tsx +50 -5
- package/src/player/components/Timeline.test.ts +102 -19
- package/src/player/components/Timeline.tsx +194 -194
- package/src/player/components/TimelineCanvas.tsx +207 -521
- package/src/player/components/TimelineClip.tsx +4 -1
- package/src/player/components/TimelineClipDiamonds.tsx +9 -40
- package/src/player/components/TimelineEmptyState.tsx +3 -1
- package/src/player/components/TimelineLanes.tsx +487 -0
- package/src/player/components/TimelineOverlays.tsx +122 -0
- package/src/player/components/VideoThumbnail.test.tsx +152 -0
- package/src/player/components/VideoThumbnail.tsx +28 -7
- package/src/player/components/thumbnailUtils.test.ts +127 -0
- package/src/player/components/thumbnailUtils.ts +54 -0
- package/src/player/components/timelineCallbacks.ts +18 -18
- package/src/player/components/timelineClipChildren.tsx +39 -0
- package/src/player/components/timelineClipDragCommit.test.ts +943 -0
- package/src/player/components/timelineClipDragCommit.ts +401 -0
- package/src/player/components/timelineClipDragPreview.test.ts +144 -0
- package/src/player/components/timelineClipDragPreview.ts +323 -38
- package/src/player/components/timelineClipDragTypes.ts +65 -0
- package/src/player/components/timelineCollision.test.ts +477 -0
- package/src/player/components/timelineCollision.ts +263 -0
- package/src/player/components/timelineDragDrop.ts +69 -60
- package/src/player/components/timelineEditCapabilities.ts +52 -0
- package/src/player/components/timelineEditing.test.ts +1 -1
- package/src/player/components/timelineEditing.ts +76 -59
- package/src/player/components/timelineGroupEditing.test.ts +126 -0
- package/src/player/components/timelineGroupEditing.ts +133 -0
- package/src/player/components/timelineGroupResizeCommit.ts +54 -0
- package/src/player/components/timelineLayout.test.ts +95 -23
- package/src/player/components/timelineLayout.ts +120 -61
- package/src/player/components/timelineMarquee.test.ts +197 -0
- package/src/player/components/timelineMarquee.ts +112 -0
- package/src/player/components/timelineMultiDragPreview.test.ts +127 -0
- package/src/player/components/timelineMultiDragPreview.ts +106 -0
- package/src/player/components/timelineOptimisticRevision.ts +42 -0
- package/src/player/components/timelineSnapping.test.ts +134 -0
- package/src/player/components/timelineSnapping.ts +110 -0
- package/src/player/components/timelineStackingSync.test.ts +244 -0
- package/src/player/components/timelineStackingSync.ts +331 -0
- package/src/player/components/timelineTheme.ts +6 -1
- package/src/player/components/timelineZones.test.ts +425 -0
- package/src/player/components/timelineZones.ts +198 -0
- package/src/player/components/timelineZoom.test.ts +67 -0
- package/src/player/components/timelineZoom.ts +51 -0
- package/src/player/components/useResolvedTimelineEditCallbacks.ts +25 -3
- package/src/player/components/useTimelineClipDrag.resize.test.tsx +241 -0
- package/src/player/components/useTimelineClipDrag.ts +380 -386
- package/src/player/components/useTimelineEditPinning.ts +121 -0
- package/src/player/components/useTimelineGeometry.ts +129 -0
- package/src/player/components/useTimelinePlayhead.ts +4 -16
- package/src/player/components/useTimelineRangeSelection.ts +341 -50
- package/src/player/components/useTimelineStackingSync.test.tsx +67 -0
- package/src/player/components/useTimelineStackingSync.ts +83 -0
- package/src/player/hooks/useExpandedTimelineElements.ts +0 -3
- package/src/player/hooks/usePlaybackKeyboard.ts +5 -0
- package/src/player/hooks/useTimelinePlayer.ts +48 -53
- package/src/player/hooks/useTimelinePlayerLoop.ts +85 -0
- package/src/player/hooks/useTimelineSyncCallbacks.test.ts +219 -0
- package/src/player/hooks/useTimelineSyncCallbacks.ts +104 -4
- package/src/player/index.ts +3 -2
- package/src/player/lib/time.test.ts +19 -19
- package/src/player/lib/time.ts +6 -2
- package/src/player/lib/timelineDOM.test.ts +25 -98
- package/src/player/lib/timelineDOM.ts +12 -81
- package/src/player/lib/timelineElementHelpers.ts +54 -5
- package/src/player/lib/timelineIframeHelpers.ts +2 -0
- package/src/player/store/playerStore.ts +62 -3
- package/src/styles/studio.css +27 -0
- package/src/utils/assetClickBehavior.test.ts +104 -0
- package/src/utils/assetClickBehavior.ts +75 -0
- package/src/utils/assetPreviewStore.ts +33 -0
- package/src/utils/blockInstaller.ts +10 -2
- package/src/utils/canvasNudgeGate.test.ts +31 -0
- package/src/utils/canvasNudgeGate.ts +32 -0
- package/src/utils/editHistory.test.ts +35 -0
- package/src/utils/gsapSoftReload.test.ts +119 -1
- package/src/utils/gsapSoftReload.ts +153 -0
- package/src/utils/mediaTypes.ts +3 -2
- package/src/utils/resizeDebug.ts +55 -0
- package/src/utils/rootDuration.test.ts +90 -1
- package/src/utils/rootDuration.ts +76 -13
- package/src/utils/sdkCutover.ts +4 -0
- package/src/utils/studioFileHistory.ts +37 -7
- package/src/utils/studioHelpers.ts +62 -0
- package/src/utils/studioPreviewHelpers.test.ts +65 -8
- package/src/utils/studioPreviewHelpers.ts +10 -0
- package/src/utils/studioTelemetry.ts +4 -1
- package/src/utils/studioUiPreferences.test.ts +38 -0
- package/src/utils/studioUiPreferences.ts +27 -0
- package/src/utils/studioUrlState.test.ts +0 -1
- package/src/utils/timelineAssetDrop.ts +62 -0
- package/src/utils/timelineDiscovery.ts +0 -17
- package/src/utils/timelineInspector.test.ts +121 -0
- package/src/utils/timelineInspector.ts +32 -1
- package/dist/assets/index-Dq7FEg0K.css +0 -1
- package/dist/assets/index-pRhCpGPz.js +0 -423
- package/dist/chunk-SOTCF4DF.js.map +0 -1
- package/src/components/StudioPreviewArea.tsx +0 -500
- package/src/components/nle/NLELayout.test.ts +0 -12
- package/src/components/nle/NLELayout.tsx +0 -591
- package/src/player/components/TimelineLayerGutter.tsx +0 -61
- package/src/player/components/TimelineSelectionOverlays.tsx +0 -55
- package/src/player/components/timelineMarqueeSelection.test.ts +0 -87
- package/src/player/components/timelineSnapTargets.test.ts +0 -144
- package/src/player/components/timelineSnapTargets.ts +0 -164
- package/src/player/components/useTimelineClipDrag.test.tsx +0 -506
- package/src/player/components/useTimelineClipGroupDrag.ts +0 -417
- package/src/player/components/useTimelineMarqueeSelection.test.tsx +0 -231
- package/src/player/components/useTimelineMarqueeSelection.ts +0 -276
- package/src/utils/timelineDiscovery.test.ts +0 -90
- /package/dist/{domEditingLayers-2ECJK24D.js.map → domEditingLayers-6LQGKPOI.js.map} +0 -0
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
import { useState, useMemo, useCallback, type ReactNode } from "react";
|
|
2
|
-
import { NLELayout } from "./nle/NLELayout";
|
|
3
|
-
import { CaptionOverlay } from "../captions/components/CaptionOverlay";
|
|
4
|
-
import { CaptionTimeline } from "../captions/components/CaptionTimeline";
|
|
5
|
-
import { DomEditOverlay } from "./editor/DomEditOverlay";
|
|
6
|
-
import { MotionPathOverlay } from "./editor/MotionPathOverlay";
|
|
7
|
-
import { useCompositionDimensions } from "../hooks/useCompositionDimensions";
|
|
8
|
-
import { SnapToolbar } from "./editor/SnapToolbar";
|
|
9
|
-
import { StudioFeedbackBar } from "./StudioFeedbackBar";
|
|
10
|
-
import type { TimelineElement } from "../player";
|
|
11
|
-
import { usePlayerStore } from "../player/store/playerStore";
|
|
12
|
-
import type { BlockedTimelineEditIntent } from "../player/components/timelineEditing";
|
|
13
|
-
import {
|
|
14
|
-
STUDIO_INSPECTOR_PANELS_ENABLED,
|
|
15
|
-
STUDIO_KEYFRAMES_ENABLED,
|
|
16
|
-
STUDIO_PREVIEW_MANUAL_EDITING_ENABLED,
|
|
17
|
-
STUDIO_PREVIEW_SELECTION_ENABLED,
|
|
18
|
-
} from "./editor/manualEditingAvailability";
|
|
19
|
-
import { useStudioPlaybackContext, useStudioShellContext } from "../contexts/StudioContext";
|
|
20
|
-
import { useDomEditActionsContext, useDomEditSelectionContext } from "../contexts/DomEditContext";
|
|
21
|
-
import { resolveTweenStart, resolveTweenDuration } from "../utils/globalTimeCompiler";
|
|
22
|
-
import { resolveClipTimingBasis } from "../hooks/useGsapTweenCache";
|
|
23
|
-
import { resolveKeyframeRetime } from "./editor/keyframeRetime";
|
|
24
|
-
import { TimelineEditProvider } from "../contexts/TimelineEditContext";
|
|
25
|
-
import type { BlockPreviewInfo } from "./sidebar/BlocksTab";
|
|
26
|
-
import { readStudioUiPreferences } from "../utils/studioUiPreferences";
|
|
27
|
-
import type { GestureRecordingState } from "./editor/GestureRecordControl";
|
|
28
|
-
import { useTimelineSelectionPreviewSync } from "../hooks/useTimelineSelectionPreviewSync";
|
|
29
|
-
import type {
|
|
30
|
-
TimelineGroupMoveChange,
|
|
31
|
-
TimelineGroupResizeChange,
|
|
32
|
-
} from "../hooks/useTimelineGroupEditing";
|
|
33
|
-
import {
|
|
34
|
-
formatTimelineAttributeNumber,
|
|
35
|
-
patchIframeDomTiming,
|
|
36
|
-
} from "../hooks/timelineEditingHelpers";
|
|
37
|
-
|
|
38
|
-
export interface StudioPreviewAreaProps {
|
|
39
|
-
timelineToolbar: ReactNode;
|
|
40
|
-
renderClipContent: (
|
|
41
|
-
element: TimelineElement,
|
|
42
|
-
style: { clip: string; label: string },
|
|
43
|
-
) => ReactNode;
|
|
44
|
-
// Timeline editing
|
|
45
|
-
handleTimelineElementDelete: (element: TimelineElement) => Promise<void> | void;
|
|
46
|
-
handleTimelineAssetDrop: (
|
|
47
|
-
assetPath: string,
|
|
48
|
-
placement: Pick<TimelineElement, "start" | "track">,
|
|
49
|
-
) => Promise<void> | void;
|
|
50
|
-
handleTimelineBlockDrop?: (
|
|
51
|
-
blockName: string,
|
|
52
|
-
placement: Pick<TimelineElement, "start" | "track">,
|
|
53
|
-
) => Promise<void> | void;
|
|
54
|
-
handlePreviewBlockDrop?: (
|
|
55
|
-
blockName: string,
|
|
56
|
-
position: { left: number; top: number },
|
|
57
|
-
) => Promise<void> | void;
|
|
58
|
-
handleTimelineFileDrop: (
|
|
59
|
-
files: File[],
|
|
60
|
-
placement?: Pick<TimelineElement, "start" | "track">,
|
|
61
|
-
) => Promise<void> | void;
|
|
62
|
-
handleTimelineElementMove: (
|
|
63
|
-
element: TimelineElement,
|
|
64
|
-
updates: Pick<TimelineElement, "start" | "track">,
|
|
65
|
-
) => Promise<void> | void;
|
|
66
|
-
handleTimelineElementResize: (
|
|
67
|
-
element: TimelineElement,
|
|
68
|
-
updates: Pick<TimelineElement, "start" | "duration" | "playbackStart">,
|
|
69
|
-
) => Promise<void> | void;
|
|
70
|
-
handleTimelineGroupMove: (changes: TimelineGroupMoveChange[]) => Promise<void> | void;
|
|
71
|
-
handleTimelineGroupResize: (changes: TimelineGroupResizeChange[]) => Promise<void> | void;
|
|
72
|
-
handleToggleTrackHidden: (track: number, hidden: boolean) => Promise<void> | void;
|
|
73
|
-
handleToggleElementHidden: (elementKey: string, hidden: boolean) => Promise<void> | void;
|
|
74
|
-
handleBlockedTimelineEdit: (element: TimelineElement, intent: BlockedTimelineEditIntent) => void;
|
|
75
|
-
handleTimelineElementSplit: (element: TimelineElement, splitTime: number) => Promise<void> | void;
|
|
76
|
-
handleRazorSplit: (element: TimelineElement, splitTime: number) => Promise<void> | void;
|
|
77
|
-
handleRazorSplitAll: (splitTime: number) => Promise<void> | void;
|
|
78
|
-
setCompIdToSrc: (map: Map<string, string>) => void;
|
|
79
|
-
setCompositionLoading: (loading: boolean) => void;
|
|
80
|
-
shouldShowSelectedDomBounds: boolean;
|
|
81
|
-
blockPreview?: BlockPreviewInfo | null;
|
|
82
|
-
isGestureRecording?: boolean;
|
|
83
|
-
recordingState?: GestureRecordingState;
|
|
84
|
-
onToggleRecording?: () => void;
|
|
85
|
-
gestureOverlay?: ReactNode;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// fallow-ignore-next-line complexity
|
|
89
|
-
export function StudioPreviewArea({
|
|
90
|
-
timelineToolbar,
|
|
91
|
-
renderClipContent,
|
|
92
|
-
handleTimelineElementDelete,
|
|
93
|
-
handleTimelineAssetDrop,
|
|
94
|
-
handleTimelineBlockDrop,
|
|
95
|
-
handlePreviewBlockDrop,
|
|
96
|
-
handleTimelineFileDrop,
|
|
97
|
-
handleTimelineElementMove,
|
|
98
|
-
handleTimelineElementResize,
|
|
99
|
-
handleTimelineGroupMove,
|
|
100
|
-
handleTimelineGroupResize,
|
|
101
|
-
handleToggleTrackHidden,
|
|
102
|
-
handleToggleElementHidden,
|
|
103
|
-
handleBlockedTimelineEdit,
|
|
104
|
-
handleTimelineElementSplit,
|
|
105
|
-
handleRazorSplit,
|
|
106
|
-
handleRazorSplitAll,
|
|
107
|
-
setCompIdToSrc,
|
|
108
|
-
setCompositionLoading,
|
|
109
|
-
shouldShowSelectedDomBounds,
|
|
110
|
-
isGestureRecording,
|
|
111
|
-
recordingState,
|
|
112
|
-
onToggleRecording,
|
|
113
|
-
blockPreview,
|
|
114
|
-
gestureOverlay,
|
|
115
|
-
}: StudioPreviewAreaProps) {
|
|
116
|
-
const {
|
|
117
|
-
projectId,
|
|
118
|
-
activeCompPath,
|
|
119
|
-
setActiveCompPath,
|
|
120
|
-
previewIframeRef,
|
|
121
|
-
handlePreviewIframeRef,
|
|
122
|
-
timelineVisible,
|
|
123
|
-
toggleTimelineVisibility,
|
|
124
|
-
} = useStudioShellContext();
|
|
125
|
-
const {
|
|
126
|
-
refreshKey,
|
|
127
|
-
captionEditMode,
|
|
128
|
-
compositionLoading,
|
|
129
|
-
isPlaying,
|
|
130
|
-
refreshPreviewDocumentVersion,
|
|
131
|
-
} = useStudioPlaybackContext();
|
|
132
|
-
const compositionDimensions = useCompositionDimensions();
|
|
133
|
-
|
|
134
|
-
const {
|
|
135
|
-
domEditHoverSelection,
|
|
136
|
-
domEditSelection,
|
|
137
|
-
domEditGroupSelections,
|
|
138
|
-
selectedGsapAnimations,
|
|
139
|
-
} = useDomEditSelectionContext();
|
|
140
|
-
const {
|
|
141
|
-
handleTimelineElementSelect,
|
|
142
|
-
handlePreviewCanvasMouseDown,
|
|
143
|
-
handlePreviewCanvasPointerMove,
|
|
144
|
-
handlePreviewCanvasPointerLeave,
|
|
145
|
-
applyDomSelection,
|
|
146
|
-
handleBlockedDomMove,
|
|
147
|
-
handleDomManualDragStart,
|
|
148
|
-
handleDomPathOffsetCommit,
|
|
149
|
-
handleDomGroupPathOffsetCommit,
|
|
150
|
-
handleDomBoxSizeCommit,
|
|
151
|
-
handleDomRotationCommit,
|
|
152
|
-
handleDomStyleCommit,
|
|
153
|
-
handleGsapRemoveKeyframe,
|
|
154
|
-
handleGsapMoveKeyframeToPlayhead,
|
|
155
|
-
handleGsapMoveKeyframe,
|
|
156
|
-
handleGsapResizeKeyframedTween,
|
|
157
|
-
handleGsapUpdateMeta,
|
|
158
|
-
handleGsapAddKeyframe,
|
|
159
|
-
handleGsapConvertToKeyframes,
|
|
160
|
-
handleGsapRemoveAllKeyframes,
|
|
161
|
-
buildDomSelectionForTimelineElement,
|
|
162
|
-
applyMarqueeSelection,
|
|
163
|
-
} = useDomEditActionsContext();
|
|
164
|
-
const selectedElementId = usePlayerStore((s) => s.selectedElementId);
|
|
165
|
-
const selectedElementIds = usePlayerStore((s) => s.selectedElementIds);
|
|
166
|
-
const timelineElements = usePlayerStore((s) => s.elements);
|
|
167
|
-
|
|
168
|
-
// fallow-ignore-next-line complexity
|
|
169
|
-
const [snapPrefs, setSnapPrefs] = useState(() => {
|
|
170
|
-
const p = readStudioUiPreferences();
|
|
171
|
-
return {
|
|
172
|
-
snapEnabled: p.snapEnabled ?? true,
|
|
173
|
-
gridVisible: p.gridVisible ?? false,
|
|
174
|
-
gridSpacing: p.gridSpacing ?? 50,
|
|
175
|
-
snapToGrid: p.snapToGrid ?? false,
|
|
176
|
-
};
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
useTimelineSelectionPreviewSync({
|
|
180
|
-
selectedElementId,
|
|
181
|
-
selectedElementIds,
|
|
182
|
-
timelineElements,
|
|
183
|
-
domEditSelection,
|
|
184
|
-
domEditGroupSelections,
|
|
185
|
-
activeCompPath,
|
|
186
|
-
buildDomSelectionForTimelineElement,
|
|
187
|
-
applyDomSelection,
|
|
188
|
-
applyMarqueeSelection,
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
// Resolve a timeline-diamond callback's clip-% to the keyframe's anim id + its
|
|
192
|
-
// tween-relative percentage (shared by the delete/move keyframe callbacks): the
|
|
193
|
-
// diamond reports a clip-% but the script ops key on the tween-%. Prefers the
|
|
194
|
-
// anim in the keyframe's property group, falling back to the first keyframed one.
|
|
195
|
-
const resolveKeyframeTarget = useCallback(
|
|
196
|
-
// fallow-ignore-next-line complexity
|
|
197
|
-
(pct: number): { animId: string; tweenPct: number } | null => {
|
|
198
|
-
const cached = usePlayerStore.getState().keyframeCache.get(domEditSelection?.id ?? "");
|
|
199
|
-
const kf = cached?.keyframes.find((k) => Math.abs(k.percentage - pct) < 0.2);
|
|
200
|
-
const group = kf?.propertyGroup;
|
|
201
|
-
const anim =
|
|
202
|
-
(group ? selectedGsapAnimations.find((a) => a.propertyGroup === group) : undefined) ??
|
|
203
|
-
selectedGsapAnimations.find((a) => a.keyframes);
|
|
204
|
-
return anim ? { animId: anim.id, tweenPct: kf?.tweenPercentage ?? pct } : null;
|
|
205
|
-
},
|
|
206
|
-
[domEditSelection?.id, selectedGsapAnimations],
|
|
207
|
-
);
|
|
208
|
-
|
|
209
|
-
const handleTimelineGroupMovePreview = useCallback(
|
|
210
|
-
(changes: TimelineGroupMoveChange[]) => {
|
|
211
|
-
for (const change of changes) {
|
|
212
|
-
patchIframeDomTiming(previewIframeRef.current, change.element, [
|
|
213
|
-
["data-start", formatTimelineAttributeNumber(change.start)],
|
|
214
|
-
]);
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
[previewIframeRef],
|
|
218
|
-
);
|
|
219
|
-
|
|
220
|
-
const handleTimelineGroupResizePreview = useCallback(
|
|
221
|
-
(changes: TimelineGroupResizeChange[]) => {
|
|
222
|
-
for (const change of changes) {
|
|
223
|
-
const attrs: Array<[string, string]> = [
|
|
224
|
-
["data-start", formatTimelineAttributeNumber(change.start)],
|
|
225
|
-
["data-duration", formatTimelineAttributeNumber(change.duration)],
|
|
226
|
-
];
|
|
227
|
-
if (change.playbackStart != null) {
|
|
228
|
-
attrs.push([
|
|
229
|
-
change.element.playbackStartAttr === "playback-start"
|
|
230
|
-
? "data-playback-start"
|
|
231
|
-
: "data-media-start",
|
|
232
|
-
formatTimelineAttributeNumber(change.playbackStart),
|
|
233
|
-
]);
|
|
234
|
-
}
|
|
235
|
-
patchIframeDomTiming(previewIframeRef.current, change.element, attrs);
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
[previewIframeRef],
|
|
239
|
-
);
|
|
240
|
-
|
|
241
|
-
// fallow-ignore-next-line complexity
|
|
242
|
-
const timelineEditCallbacks = useMemo(
|
|
243
|
-
() => ({
|
|
244
|
-
onMoveElement: handleTimelineElementMove,
|
|
245
|
-
onResizeElement: handleTimelineElementResize,
|
|
246
|
-
onMoveElements: handleTimelineGroupMove,
|
|
247
|
-
onResizeElements: handleTimelineGroupResize,
|
|
248
|
-
onPreviewMoveElements: handleTimelineGroupMovePreview,
|
|
249
|
-
onPreviewResizeElements: handleTimelineGroupResizePreview,
|
|
250
|
-
onToggleTrackHidden: handleToggleTrackHidden,
|
|
251
|
-
onToggleElementHidden: handleToggleElementHidden,
|
|
252
|
-
onBlockedEditAttempt: handleBlockedTimelineEdit,
|
|
253
|
-
onSplitElement: handleTimelineElementSplit,
|
|
254
|
-
onRazorSplit: handleRazorSplit,
|
|
255
|
-
onRazorSplitAll: handleRazorSplitAll,
|
|
256
|
-
onDeleteAllKeyframes: () => {
|
|
257
|
-
// Hold the element where it is (collapse keyframes to a static set) rather
|
|
258
|
-
// than deleting the whole animation, deleting strands a stale GSAP base
|
|
259
|
-
// that the next drag adds to, flinging the element off-screen.
|
|
260
|
-
const anim = selectedGsapAnimations.find((a) => a.keyframes);
|
|
261
|
-
if (!anim) return;
|
|
262
|
-
handleGsapRemoveAllKeyframes(anim.id);
|
|
263
|
-
},
|
|
264
|
-
onDeleteKeyframe: (_elId: string, pct: number) => {
|
|
265
|
-
const target = resolveKeyframeTarget(pct);
|
|
266
|
-
if (target) handleGsapRemoveKeyframe(target.animId, target.tweenPct);
|
|
267
|
-
},
|
|
268
|
-
// Retime the keyframe to the playhead, preserving its value + ease.
|
|
269
|
-
onMoveKeyframeToPlayhead: (_elId: string, pct: number) => {
|
|
270
|
-
const target = resolveKeyframeTarget(pct);
|
|
271
|
-
if (target) handleGsapMoveKeyframeToPlayhead(target.animId, target.tweenPct);
|
|
272
|
-
},
|
|
273
|
-
// Drag-to-retime. The diamond reports clip-%s; resolveKeyframeTarget gives
|
|
274
|
-
// the dragged keyframe's anim + tween-%. We convert the clip-% drop to an
|
|
275
|
-
// absolute time (via the clip's timing basis) and let resolveKeyframeRetime
|
|
276
|
-
// decide: a drop inside the tween window is a plain move (re-key tween-%); a
|
|
277
|
-
// drop past the boundary (last keyframe past the end, first before the start)
|
|
278
|
-
// resizes the tween, position/duration grow so the dragged keyframe lands at
|
|
279
|
-
// the drop while every other keyframe keeps its absolute time (value+ease too).
|
|
280
|
-
// fallow-ignore-next-line complexity
|
|
281
|
-
onMoveKeyframe: (_elId: string, fromClipPct: number, toClipPct: number) => {
|
|
282
|
-
const target = resolveKeyframeTarget(fromClipPct);
|
|
283
|
-
const sel = domEditSelection;
|
|
284
|
-
if (!target || !sel) return;
|
|
285
|
-
const anim = selectedGsapAnimations.find((a) => a.id === target.animId);
|
|
286
|
-
const tweenStart = anim ? resolveTweenStart(anim) : null;
|
|
287
|
-
if (!anim || tweenStart === null) return;
|
|
288
|
-
const tweenDuration = anim.duration ?? resolveTweenDuration(anim);
|
|
289
|
-
const sourceFile = sel.sourceFile || activeCompPath || "index.html";
|
|
290
|
-
const { elements, domClipChildren } = usePlayerStore.getState();
|
|
291
|
-
const { elStart, elDuration } = resolveClipTimingBasis(
|
|
292
|
-
sel.id ?? "",
|
|
293
|
-
sourceFile,
|
|
294
|
-
elements,
|
|
295
|
-
domClipChildren,
|
|
296
|
-
);
|
|
297
|
-
const dropAbsTime = elStart + (toClipPct / 100) * elDuration;
|
|
298
|
-
const decision = resolveKeyframeRetime({
|
|
299
|
-
keyframes: anim.keyframes?.keyframes ?? [],
|
|
300
|
-
draggedTweenPct: target.tweenPct,
|
|
301
|
-
tweenStart,
|
|
302
|
-
tweenDuration,
|
|
303
|
-
dropAbsTime,
|
|
304
|
-
});
|
|
305
|
-
if (decision.kind === "move" && decision.toTweenPct != null) {
|
|
306
|
-
handleGsapMoveKeyframe(target.animId, target.tweenPct, decision.toTweenPct);
|
|
307
|
-
} else if (
|
|
308
|
-
decision.kind === "resize" &&
|
|
309
|
-
decision.pctRemap &&
|
|
310
|
-
decision.position != null &&
|
|
311
|
-
decision.duration != null
|
|
312
|
-
) {
|
|
313
|
-
handleGsapResizeKeyframedTween(
|
|
314
|
-
target.animId,
|
|
315
|
-
decision.position,
|
|
316
|
-
decision.duration,
|
|
317
|
-
decision.pctRemap,
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
onChangeKeyframeEase: (_elId: string, _pct: number, ease: string) => {
|
|
322
|
-
for (const anim of selectedGsapAnimations) {
|
|
323
|
-
if (anim.keyframes) handleGsapUpdateMeta(anim.id, { ease });
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
// fallow-ignore-next-line complexity
|
|
327
|
-
onToggleKeyframeAtPlayhead: (el: TimelineElement) => {
|
|
328
|
-
const currentTime = usePlayerStore.getState().currentTime;
|
|
329
|
-
const pct =
|
|
330
|
-
el.duration > 0
|
|
331
|
-
? Math.max(0, Math.min(100, Math.round(((currentTime - el.start) / el.duration) * 100)))
|
|
332
|
-
: 0;
|
|
333
|
-
const anim = selectedGsapAnimations.find((a) => a.keyframes);
|
|
334
|
-
if (anim?.keyframes) {
|
|
335
|
-
const existing = anim.keyframes.keyframes.find((k) => Math.abs(k.percentage - pct) <= 1);
|
|
336
|
-
if (existing) {
|
|
337
|
-
handleGsapRemoveKeyframe(anim.id, existing.percentage);
|
|
338
|
-
} else {
|
|
339
|
-
handleGsapAddKeyframe(anim.id, pct, "x", 0);
|
|
340
|
-
}
|
|
341
|
-
} else {
|
|
342
|
-
const flatAnim = selectedGsapAnimations.find((a) => !a.keyframes);
|
|
343
|
-
if (flatAnim) handleGsapConvertToKeyframes(flatAnim.id);
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
}),
|
|
347
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
348
|
-
[
|
|
349
|
-
handleTimelineElementMove,
|
|
350
|
-
handleTimelineElementResize,
|
|
351
|
-
handleTimelineGroupMove,
|
|
352
|
-
handleTimelineGroupMovePreview,
|
|
353
|
-
handleTimelineGroupResize,
|
|
354
|
-
handleTimelineGroupResizePreview,
|
|
355
|
-
handleToggleTrackHidden,
|
|
356
|
-
handleToggleElementHidden,
|
|
357
|
-
handleBlockedTimelineEdit,
|
|
358
|
-
handleTimelineElementSplit,
|
|
359
|
-
handleRazorSplit,
|
|
360
|
-
handleRazorSplitAll,
|
|
361
|
-
handleGsapRemoveAllKeyframes,
|
|
362
|
-
resolveKeyframeTarget,
|
|
363
|
-
selectedGsapAnimations,
|
|
364
|
-
handleGsapRemoveKeyframe,
|
|
365
|
-
handleGsapMoveKeyframeToPlayhead,
|
|
366
|
-
handleGsapMoveKeyframe,
|
|
367
|
-
handleGsapResizeKeyframedTween,
|
|
368
|
-
handleGsapUpdateMeta,
|
|
369
|
-
handleGsapAddKeyframe,
|
|
370
|
-
handleGsapConvertToKeyframes,
|
|
371
|
-
buildDomSelectionForTimelineElement,
|
|
372
|
-
projectId,
|
|
373
|
-
activeCompPath,
|
|
374
|
-
domEditSelection,
|
|
375
|
-
],
|
|
376
|
-
);
|
|
377
|
-
|
|
378
|
-
return (
|
|
379
|
-
<div className="flex-1 flex flex-col relative min-w-0">
|
|
380
|
-
<div className="flex-1 min-h-0 relative">
|
|
381
|
-
<TimelineEditProvider value={timelineEditCallbacks}>
|
|
382
|
-
<NLELayout
|
|
383
|
-
projectId={projectId}
|
|
384
|
-
refreshKey={refreshKey}
|
|
385
|
-
activeCompositionPath={activeCompPath}
|
|
386
|
-
timelineToolbar={timelineToolbar}
|
|
387
|
-
renderClipContent={renderClipContent}
|
|
388
|
-
onDeleteElement={handleTimelineElementDelete}
|
|
389
|
-
onAssetDrop={handleTimelineAssetDrop}
|
|
390
|
-
onBlockDrop={handleTimelineBlockDrop}
|
|
391
|
-
onPreviewBlockDrop={handlePreviewBlockDrop}
|
|
392
|
-
onFileDrop={handleTimelineFileDrop}
|
|
393
|
-
onSelectTimelineElement={handleTimelineElementSelect}
|
|
394
|
-
onCompIdToSrcChange={setCompIdToSrc}
|
|
395
|
-
onCompositionLoadingChange={setCompositionLoading}
|
|
396
|
-
onCompositionChange={(compPath) => {
|
|
397
|
-
// Sync activeCompPath when user drills down via timeline double-click
|
|
398
|
-
// or navigates back via breadcrumb, keeps sidebar + thumbnails in sync.
|
|
399
|
-
// Guard against no-op updates to prevent circular refresh cascades
|
|
400
|
-
// between activeCompPath → compositionStack → onCompositionChange.
|
|
401
|
-
if (compPath !== activeCompPath) {
|
|
402
|
-
setActiveCompPath(compPath);
|
|
403
|
-
refreshPreviewDocumentVersion();
|
|
404
|
-
}
|
|
405
|
-
}}
|
|
406
|
-
onIframeRef={handlePreviewIframeRef}
|
|
407
|
-
previewOverlay={
|
|
408
|
-
blockPreview ? (
|
|
409
|
-
<div className="absolute inset-0 z-30 bg-black pointer-events-none">
|
|
410
|
-
{blockPreview.videoUrl ? (
|
|
411
|
-
<video
|
|
412
|
-
src={blockPreview.videoUrl}
|
|
413
|
-
autoPlay
|
|
414
|
-
muted
|
|
415
|
-
loop
|
|
416
|
-
playsInline
|
|
417
|
-
className="w-full h-full object-contain"
|
|
418
|
-
/>
|
|
419
|
-
) : blockPreview.posterUrl ? (
|
|
420
|
-
<img
|
|
421
|
-
src={blockPreview.posterUrl}
|
|
422
|
-
alt={blockPreview.title}
|
|
423
|
-
className="w-full h-full object-contain"
|
|
424
|
-
/>
|
|
425
|
-
) : null}
|
|
426
|
-
</div>
|
|
427
|
-
) : captionEditMode ? (
|
|
428
|
-
<CaptionOverlay iframeRef={previewIframeRef} />
|
|
429
|
-
) : STUDIO_INSPECTOR_PANELS_ENABLED ? (
|
|
430
|
-
<>
|
|
431
|
-
<DomEditOverlay
|
|
432
|
-
iframeRef={previewIframeRef}
|
|
433
|
-
activeCompositionPath={activeCompPath}
|
|
434
|
-
hoverSelection={
|
|
435
|
-
STUDIO_PREVIEW_SELECTION_ENABLED &&
|
|
436
|
-
!captionEditMode &&
|
|
437
|
-
!compositionLoading &&
|
|
438
|
-
!isPlaying
|
|
439
|
-
? domEditHoverSelection
|
|
440
|
-
: null
|
|
441
|
-
}
|
|
442
|
-
selection={shouldShowSelectedDomBounds ? domEditSelection : null}
|
|
443
|
-
groupSelections={shouldShowSelectedDomBounds ? domEditGroupSelections : []}
|
|
444
|
-
allowCanvasMovement={
|
|
445
|
-
STUDIO_PREVIEW_MANUAL_EDITING_ENABLED && !isGestureRecording
|
|
446
|
-
}
|
|
447
|
-
onCanvasMouseDown={handlePreviewCanvasMouseDown}
|
|
448
|
-
onCanvasPointerMove={handlePreviewCanvasPointerMove}
|
|
449
|
-
onCanvasPointerLeave={handlePreviewCanvasPointerLeave}
|
|
450
|
-
onSelectionChange={applyDomSelection}
|
|
451
|
-
onBlockedMove={handleBlockedDomMove}
|
|
452
|
-
onManualDragStart={handleDomManualDragStart}
|
|
453
|
-
onPathOffsetCommit={handleDomPathOffsetCommit}
|
|
454
|
-
onGroupPathOffsetCommit={handleDomGroupPathOffsetCommit}
|
|
455
|
-
onBoxSizeCommit={handleDomBoxSizeCommit}
|
|
456
|
-
onRotationCommit={handleDomRotationCommit}
|
|
457
|
-
onStyleCommit={handleDomStyleCommit}
|
|
458
|
-
gridVisible={snapPrefs.gridVisible}
|
|
459
|
-
gridSpacing={snapPrefs.gridSpacing}
|
|
460
|
-
recordingState={recordingState}
|
|
461
|
-
onToggleRecording={onToggleRecording}
|
|
462
|
-
onMarqueeSelect={applyMarqueeSelection}
|
|
463
|
-
/>
|
|
464
|
-
<SnapToolbar onSnapChange={setSnapPrefs} />
|
|
465
|
-
{STUDIO_KEYFRAMES_ENABLED && (
|
|
466
|
-
<MotionPathOverlay
|
|
467
|
-
iframeRef={previewIframeRef}
|
|
468
|
-
selection={shouldShowSelectedDomBounds ? domEditSelection : null}
|
|
469
|
-
compositionSize={compositionDimensions}
|
|
470
|
-
isPlaying={isPlaying}
|
|
471
|
-
/>
|
|
472
|
-
)}
|
|
473
|
-
{gestureOverlay}
|
|
474
|
-
</>
|
|
475
|
-
) : null
|
|
476
|
-
}
|
|
477
|
-
timelineFooter={
|
|
478
|
-
captionEditMode ? (
|
|
479
|
-
<div
|
|
480
|
-
className="border-t border-neutral-800/30 flex-shrink-0"
|
|
481
|
-
style={{ height: 60 }}
|
|
482
|
-
>
|
|
483
|
-
<div className="flex items-center gap-1.5 px-2 py-0.5">
|
|
484
|
-
<span className="text-[9px] font-medium text-neutral-500 uppercase tracking-wider">
|
|
485
|
-
Captions
|
|
486
|
-
</span>
|
|
487
|
-
</div>
|
|
488
|
-
<CaptionTimeline pixelsPerSecond={100} />
|
|
489
|
-
</div>
|
|
490
|
-
) : undefined
|
|
491
|
-
}
|
|
492
|
-
timelineVisible={timelineVisible}
|
|
493
|
-
onToggleTimeline={toggleTimelineVisibility}
|
|
494
|
-
/>
|
|
495
|
-
</TimelineEditProvider>
|
|
496
|
-
</div>
|
|
497
|
-
<StudioFeedbackBar />
|
|
498
|
-
</div>
|
|
499
|
-
);
|
|
500
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { shouldDisableTimelineWhileCompositionLoading } from "./NLELayout";
|
|
3
|
-
|
|
4
|
-
describe("timeline loading disable state", () => {
|
|
5
|
-
it("disables the timeline while the composition loading overlay is visible", () => {
|
|
6
|
-
expect(shouldDisableTimelineWhileCompositionLoading(true)).toBe(true);
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
it("reenables the timeline after composition loading finishes", () => {
|
|
10
|
-
expect(shouldDisableTimelineWhileCompositionLoading(false)).toBe(false);
|
|
11
|
-
});
|
|
12
|
-
});
|