🎥 Make videos programmatically with React
Merge remote-tracking branch 'origin/main' into codex/studio-action-state-reads
Jonny Burger478a3799c28f
diff --cc packages/studio/src/components/Timeline/TimelineClipboardKeybindings.tsxindex 6cb419adb7,490c8786c0..f4088cbcc2--- a/packages/studio/src/components/Timeline/TimelineClipboardKeybindings.tsx+++ b/packages/studio/src/components/Timeline/TimelineClipboardKeybindings.tsx@@@ -14,7 -14,8 +14,8 @@@ importtype SequencePropClipboardData,} from '@remotion/studio-shared';import type React from 'react';-import {useContext, useEffect} from 'react';+import {memo, useContext, useEffect} from 'react';+ import type {VideoConfigValues} from 'remotion';import {Internals,type OverrideIdToNodePaths,@@@ -675,11 -687,29 +688,31 @@@ const TimelineClipboardKeybindingsUnmemevent: 'keydown',action: 'copyEffectsAndValues',callback: (e) => {- const {selectedItems} = currentSelection.current;const propStatuses = propStatusesRef.current;const sequences = sequencesRef.current;+ const overrideIdToNodePathMappings =+ overrideIdToNodePathMappingsRef.current;+ const selectedItems = currentSelection.current.selectedItems.map(+ (selection) => {+ if (selection.type === 'guide') return selection;++ const track = findTrackForNodePathInfo({+ sequences,+ overrideIdsToNodePaths: overrideIdToNodePathMappings,+ nodePathInfo: selection.nodePathInfo,+ });+ return track?.nodePathInfo+ ? {+ ...selection,+ nodePathInfo: {+ ...selection.nodePathInfo,+ sequenceSubscriptionKey:+ track.nodePathInfo.sequenceSubscriptionKey,+ },+ }+ : selection;+ },+ );if (selectedItems.length === 0) {return;}