@remotion/studio 4.0.475 → 4.0.477

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.
Files changed (88) hide show
  1. package/dist/components/Canvas.js +40 -1
  2. package/dist/components/ColorPicker/ColorPickerPopup.d.ts +6 -0
  3. package/dist/components/ColorPicker/ColorPickerPopup.js +11 -6
  4. package/dist/components/ControlButton.d.ts +1 -0
  5. package/dist/components/ControlButton.js +7 -2
  6. package/dist/components/EditorGuides/Guide.js +122 -20
  7. package/dist/components/EditorRuler/Ruler.js +21 -15
  8. package/dist/components/EditorRuler/index.js +18 -10
  9. package/dist/components/GlobalKeybindings.js +12 -0
  10. package/dist/components/KeyboardShortcutsExplainer.js +24 -0
  11. package/dist/components/NewComposition/InputDragger.d.ts +6 -0
  12. package/dist/components/NewComposition/InputDragger.js +40 -14
  13. package/dist/components/NewComposition/RenameComposition.js +8 -1
  14. package/dist/components/NewComposition/RenameFolder.js +8 -1
  15. package/dist/components/NewComposition/RenameStaticFile.js +11 -1
  16. package/dist/components/Notifications/Notification.js +5 -4
  17. package/dist/components/Notifications/NotificationCenter.js +1 -1
  18. package/dist/components/ObserveDefaultPropsContext.js +6 -2
  19. package/dist/components/OutlineToggle.js +1 -1
  20. package/dist/components/PlayPause.js +22 -66
  21. package/dist/components/PreviewToolbar.js +15 -1
  22. package/dist/components/RenderModal/RenderModalJSONPropsEditor.js +2 -1
  23. package/dist/components/SelectedOutlineElement.d.ts +17 -0
  24. package/dist/components/SelectedOutlineElement.js +938 -0
  25. package/dist/components/SelectedOutlineOverlay.d.ts +4 -174
  26. package/dist/components/SelectedOutlineOverlay.js +310 -1392
  27. package/dist/components/SelectedOutlineUvControls.js +1 -1
  28. package/dist/components/ShowGuidesProvider.js +4 -4
  29. package/dist/components/Timeline/SubscribeToNodePaths.d.ts +2 -1
  30. package/dist/components/Timeline/SubscribeToNodePaths.js +2 -1
  31. package/dist/components/Timeline/Timeline.js +3 -1
  32. package/dist/components/Timeline/TimelineClipboardKeybindings.js +9 -10
  33. package/dist/components/Timeline/TimelineDeleteKeybindings.js +15 -4
  34. package/dist/components/Timeline/TimelineKeyframeEasingLine.js +7 -11
  35. package/dist/components/Timeline/TimelineList.js +1 -1
  36. package/dist/components/Timeline/TimelineRotationField.js +17 -17
  37. package/dist/components/Timeline/TimelineScaleField.js +1 -1
  38. package/dist/components/Timeline/TimelineSelection.d.ts +27 -13
  39. package/dist/components/Timeline/TimelineSelection.js +47 -28
  40. package/dist/components/Timeline/TimelineSequence.js +169 -8
  41. package/dist/components/Timeline/TimelineSequenceFrame.d.ts +1 -0
  42. package/dist/components/Timeline/TimelineSequenceFrame.js +17 -6
  43. package/dist/components/Timeline/TimelineSequenceItem.d.ts +1 -0
  44. package/dist/components/Timeline/TimelineSequenceItem.js +294 -142
  45. package/dist/components/Timeline/TimelineSequenceName.d.ts +4 -2
  46. package/dist/components/Timeline/TimelineSequenceName.js +67 -2
  47. package/dist/components/Timeline/TimelineTransformOriginField.js +1 -1
  48. package/dist/components/Timeline/TimelineTranslateField.js +1 -1
  49. package/dist/components/Timeline/TimelineUvCoordinateField.js +1 -1
  50. package/dist/components/Timeline/delete-selected-timeline-item.js +4 -0
  51. package/dist/components/Timeline/disable-sequence-interactivity.d.ts +8 -0
  52. package/dist/components/Timeline/disable-sequence-interactivity.js +24 -0
  53. package/dist/components/Timeline/duplicate-selected-timeline-item.d.ts +1 -2
  54. package/dist/components/Timeline/get-sequence-context-menu-items.d.ts +20 -0
  55. package/dist/components/Timeline/get-sequence-context-menu-items.js +160 -0
  56. package/dist/components/Timeline/reset-selected-timeline-props.js +2 -2
  57. package/dist/components/Timeline/sequence-props-subscription-store.d.ts +2 -1
  58. package/dist/components/Timeline/sequence-props-subscription-store.js +11 -3
  59. package/dist/components/Timeline/should-clear-selection-on-pointer-down.d.ts +2 -0
  60. package/dist/components/Timeline/should-clear-selection-on-pointer-down.js +16 -2
  61. package/dist/components/Timeline/timeline-rotation-utils.d.ts +1 -1
  62. package/dist/components/Timeline/timeline-rotation-utils.js +4 -2
  63. package/dist/components/Timeline/update-selected-easing.d.ts +4 -6
  64. package/dist/components/Timeline/use-sequence-props-subscription.d.ts +2 -1
  65. package/dist/components/Timeline/use-sequence-props-subscription.js +3 -1
  66. package/dist/components/Timeline/use-timeline-keyframe-drag.d.ts +37 -1
  67. package/dist/components/Timeline/use-timeline-keyframe-drag.js +290 -14
  68. package/dist/components/import-assets.d.ts +36 -8
  69. package/dist/components/import-assets.js +170 -10
  70. package/dist/components/selected-outline-drag.d.ts +117 -0
  71. package/dist/components/selected-outline-drag.js +427 -0
  72. package/dist/components/selected-outline-measurement.d.ts +67 -0
  73. package/dist/components/selected-outline-measurement.js +355 -0
  74. package/dist/components/selected-outline-types.d.ts +121 -0
  75. package/dist/components/selected-outline-types.js +15 -0
  76. package/dist/components/selected-outline-uv.d.ts +1 -0
  77. package/dist/components/selected-outline-uv.js +12 -0
  78. package/dist/esm/{chunk-qaqqvw4q.js → chunk-t8fjnw2d.js} +14059 -12029
  79. package/dist/esm/internals.mjs +14059 -12029
  80. package/dist/esm/previewEntry.mjs +14066 -12036
  81. package/dist/esm/renderEntry.mjs +1 -1
  82. package/dist/helpers/editor-guide-selection.d.ts +31 -0
  83. package/dist/helpers/editor-guide-selection.js +58 -0
  84. package/dist/helpers/editor-ruler.d.ts +3 -3
  85. package/dist/helpers/editor-ruler.js +16 -18
  86. package/dist/state/editor-guides.d.ts +2 -2
  87. package/dist/state/editor-guides.js +2 -2
  88. package/package.json +11 -11
@@ -107,6 +107,8 @@ const deleteSelectedTimelineItem = ({ selection, sequences, overrideIdsToNodePat
107
107
  return (_a = promise === null || promise === void 0 ? void 0 : promise.then(() => true)) !== null && _a !== void 0 ? _a : null;
108
108
  }
109
109
  switch (selection.type) {
110
+ case 'guide':
111
+ return null;
110
112
  case 'sequence':
111
113
  return deleteSequences([selection.nodePathInfo], confirm);
112
114
  case 'sequence-effect':
@@ -175,6 +177,8 @@ const deleteSelectedTimelineItems = ({ selections, sequences, overrideIdsToNodeP
175
177
  }
176
178
  assertTimelineSelectionsHaveSameType(selections);
177
179
  switch (firstSelection.type) {
180
+ case 'guide':
181
+ return null;
178
182
  case 'sequence':
179
183
  return deleteSequences(selections
180
184
  .filter(isSequenceRowSelection)
@@ -0,0 +1,8 @@
1
+ import type { SequencePropsSubscriptionKey } from 'remotion';
2
+ import { type SetPropStatuses } from './save-sequence-prop';
3
+ export declare const disableSequenceInteractivity: ({ clientId, fileName, nodePath, setPropStatuses, }: {
4
+ readonly clientId: string;
5
+ readonly fileName: string;
6
+ readonly nodePath: SequencePropsSubscriptionKey;
7
+ readonly setPropStatuses: SetPropStatuses;
8
+ }) => Promise<void>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.disableSequenceInteractivity = void 0;
4
+ const no_react_1 = require("remotion/no-react");
5
+ const save_sequence_prop_1 = require("./save-sequence-prop");
6
+ const disableSequenceInteractivity = ({ clientId, fileName, nodePath, setPropStatuses, }) => {
7
+ return (0, save_sequence_prop_1.saveSequenceProps)({
8
+ changes: [
9
+ {
10
+ fileName,
11
+ nodePath,
12
+ fieldKey: 'showInTimeline',
13
+ value: false,
14
+ defaultValue: 'true',
15
+ schema: no_react_1.NoReactInternals.sequenceSchema,
16
+ },
17
+ ],
18
+ setPropStatuses,
19
+ clientId,
20
+ undoLabel: 'Disable interactivity',
21
+ redoLabel: 'Disable interactivity again',
22
+ });
23
+ };
24
+ exports.disableSequenceInteractivity = disableSequenceInteractivity;
@@ -3,9 +3,8 @@ import type { ConfirmationDialogFunction } from '../ConfirmationDialog-types';
3
3
  import type { TimelineSelection } from './TimelineSelection';
4
4
  export declare const duplicateSequencesFromSource: (nodePathInfos: readonly SequenceNodePathInfo[], confirm: ConfirmationDialogFunction) => Promise<void>;
5
5
  export declare const isDuplicatableSequenceRowSelection: (selection: TimelineSelection) => selection is {
6
- readonly nodePathInfo: SequenceNodePathInfo;
7
- } & {
8
6
  readonly type: "sequence";
7
+ readonly nodePathInfo: SequenceNodePathInfo;
9
8
  } & {
10
9
  type: "sequence";
11
10
  };
@@ -0,0 +1,20 @@
1
+ import type { ResolvedStackLocation, TSequence } from 'remotion';
2
+ import type { ComboboxValue } from '../NewComposition/ComboBox';
3
+ import type { TimelineAssetLinkInfo } from './timeline-asset-link';
4
+ export declare const getSequenceContextMenuItems: ({ assetLinkInfo, canOpenInEditor, deleteDisabled, disableInteractivityDisabled, duplicateDisabled, fileLocation, includeSourceEditItems, onDeleteSequenceFromSource, onDisableSequenceInteractivity, onDuplicateSequenceFromSource, openInEditor, originalLocation, selectAsset, sequence, sourceActions, }: {
5
+ readonly assetLinkInfo: TimelineAssetLinkInfo | null;
6
+ readonly canOpenInEditor: boolean;
7
+ readonly deleteDisabled: boolean;
8
+ readonly disableInteractivityDisabled: boolean;
9
+ readonly duplicateDisabled: boolean;
10
+ readonly fileLocation: string | null;
11
+ readonly includeSourceEditItems: boolean;
12
+ readonly onDeleteSequenceFromSource: () => void;
13
+ readonly onDisableSequenceInteractivity: () => void;
14
+ readonly onDuplicateSequenceFromSource: () => void;
15
+ readonly openInEditor: () => void;
16
+ readonly originalLocation: ResolvedStackLocation | null;
17
+ readonly selectAsset: (src: string) => void;
18
+ readonly sequence: TSequence;
19
+ readonly sourceActions?: readonly ComboboxValue[] | undefined;
20
+ }) => ComboboxValue[];
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSequenceContextMenuItems = void 0;
4
+ const no_react_1 = require("remotion/no-react");
5
+ const NotificationCenter_1 = require("../Notifications/NotificationCenter");
6
+ const timeline_asset_link_1 = require("./timeline-asset-link");
7
+ const normalizeMenuDividers = (items) => {
8
+ var _a;
9
+ const normalized = [];
10
+ for (const item of items) {
11
+ if (item.type === 'divider') {
12
+ const previousItem = normalized[normalized.length - 1];
13
+ if (!previousItem || previousItem.type === 'divider') {
14
+ continue;
15
+ }
16
+ }
17
+ normalized.push(item);
18
+ }
19
+ if (((_a = normalized[normalized.length - 1]) === null || _a === void 0 ? void 0 : _a.type) === 'divider') {
20
+ normalized.pop();
21
+ }
22
+ return normalized;
23
+ };
24
+ const getSequenceContextMenuItems = ({ assetLinkInfo, canOpenInEditor, deleteDisabled, disableInteractivityDisabled, duplicateDisabled, fileLocation, includeSourceEditItems, onDeleteSequenceFromSource, onDisableSequenceInteractivity, onDuplicateSequenceFromSource, openInEditor, originalLocation, selectAsset, sequence, sourceActions = [], }) => {
25
+ const editorName = window.remotion_editorName;
26
+ const { documentationLink } = sequence;
27
+ const items = [
28
+ editorName
29
+ ? {
30
+ type: 'item',
31
+ id: 'show-in-editor',
32
+ keyHint: null,
33
+ label: `Show in ${editorName}`,
34
+ leftItem: null,
35
+ disabled: !canOpenInEditor || !originalLocation,
36
+ onClick: openInEditor,
37
+ quickSwitcherLabel: null,
38
+ subMenu: null,
39
+ value: 'show-in-editor',
40
+ }
41
+ : null,
42
+ {
43
+ type: 'item',
44
+ id: 'copy-file-location',
45
+ keyHint: null,
46
+ label: 'Copy file location',
47
+ leftItem: null,
48
+ disabled: !fileLocation,
49
+ onClick: () => {
50
+ if (!fileLocation) {
51
+ return;
52
+ }
53
+ navigator.clipboard
54
+ .writeText(fileLocation)
55
+ .then(() => {
56
+ (0, NotificationCenter_1.showNotification)('Copied file location to clipboard', 1000);
57
+ })
58
+ .catch((err) => {
59
+ (0, NotificationCenter_1.showNotification)(`Could not copy to clipboard: ${err.message}`, 1000);
60
+ });
61
+ },
62
+ quickSwitcherLabel: null,
63
+ subMenu: null,
64
+ value: 'copy-file-location',
65
+ },
66
+ documentationLink
67
+ ? {
68
+ type: 'item',
69
+ id: 'open-component-docs',
70
+ keyHint: null,
71
+ label: 'Open component docs',
72
+ leftItem: null,
73
+ disabled: false,
74
+ onClick: () => {
75
+ window.open(documentationLink, '_blank', 'noopener,noreferrer');
76
+ },
77
+ quickSwitcherLabel: null,
78
+ subMenu: null,
79
+ value: 'open-component-docs',
80
+ }
81
+ : null,
82
+ assetLinkInfo
83
+ ? {
84
+ type: 'item',
85
+ id: 'show-asset',
86
+ keyHint: null,
87
+ label: 'Show asset',
88
+ leftItem: null,
89
+ disabled: false,
90
+ onClick: () => {
91
+ (0, timeline_asset_link_1.openTimelineAssetLink)(assetLinkInfo, selectAsset);
92
+ },
93
+ quickSwitcherLabel: null,
94
+ subMenu: null,
95
+ value: 'show-asset',
96
+ }
97
+ : null,
98
+ documentationLink || assetLinkInfo
99
+ ? {
100
+ type: 'divider',
101
+ id: 'sequence-link-divider',
102
+ }
103
+ : null,
104
+ sourceActions.length > 0
105
+ ? {
106
+ type: 'divider',
107
+ id: 'sequence-source-actions-divider',
108
+ }
109
+ : null,
110
+ ...sourceActions,
111
+ {
112
+ type: 'item',
113
+ id: 'disable-interactivity',
114
+ keyHint: null,
115
+ label: 'Disable interactivity',
116
+ leftItem: null,
117
+ disabled: disableInteractivityDisabled,
118
+ onClick: onDisableSequenceInteractivity,
119
+ quickSwitcherLabel: null,
120
+ subMenu: null,
121
+ value: 'disable-interactivity',
122
+ },
123
+ includeSourceEditItems
124
+ ? {
125
+ type: 'item',
126
+ id: 'duplicate-sequence',
127
+ keyHint: null,
128
+ label: 'Duplicate',
129
+ leftItem: null,
130
+ disabled: duplicateDisabled,
131
+ onClick: onDuplicateSequenceFromSource,
132
+ quickSwitcherLabel: null,
133
+ subMenu: null,
134
+ value: 'duplicate-sequence',
135
+ }
136
+ : null,
137
+ includeSourceEditItems
138
+ ? {
139
+ type: 'divider',
140
+ id: 'sequence-duplicate-delete-divider',
141
+ }
142
+ : null,
143
+ includeSourceEditItems
144
+ ? {
145
+ type: 'item',
146
+ id: 'delete-sequence',
147
+ keyHint: null,
148
+ label: 'Delete',
149
+ leftItem: null,
150
+ disabled: deleteDisabled,
151
+ onClick: onDeleteSequenceFromSource,
152
+ quickSwitcherLabel: null,
153
+ subMenu: null,
154
+ value: 'delete-sequence',
155
+ }
156
+ : null,
157
+ ].filter(no_react_1.NoReactInternals.truthy);
158
+ return normalizeMenuDividers(items);
159
+ };
160
+ exports.getSequenceContextMenuItems = getSequenceContextMenuItems;
@@ -17,13 +17,13 @@ function assertPropResetSelections(selections) {
17
17
  const isVisibleFieldSchema = (fieldSchema) => fieldSchema !== undefined && fieldSchema.type !== 'hidden';
18
18
  const isNonDefaultCodeValue = ({ propStatus, defaultValue, }) => JSON.stringify(propStatus !== null && propStatus !== void 0 ? propStatus : defaultValue) !== JSON.stringify(defaultValue);
19
19
  const isResettablePropStatus = ({ propStatus, defaultValue, }) => {
20
- if (!propStatus || propStatus.status === 'computed') {
20
+ if (!propStatus) {
21
21
  return false;
22
22
  }
23
23
  if (defaultValue === undefined) {
24
24
  return false;
25
25
  }
26
- if (propStatus.status === 'keyframed') {
26
+ if (propStatus.status === 'keyframed' || propStatus.status === 'computed') {
27
27
  return true;
28
28
  }
29
29
  return isNonDefaultCodeValue({
@@ -2,11 +2,12 @@ import type { SequenceNodePath, SequenceSchema } from 'remotion';
2
2
  import { callApi } from '../call-api';
3
3
  type SubscribeResult = Awaited<ReturnType<typeof callApi<'/api/subscribe-to-sequence-props'>>>;
4
4
  type ApplyResult = (result: SubscribeResult) => void;
5
- export declare const acquireSequencePropsSubscription: ({ fileName, line, column, schema, effects, nodePath, clientId, applyOnce, applyEach, }: {
5
+ export declare const acquireSequencePropsSubscription: ({ fileName, line, column, schema, componentIdentity, effects, nodePath, clientId, applyOnce, applyEach, }: {
6
6
  fileName: string;
7
7
  line: number;
8
8
  column: number;
9
9
  schema: SequenceSchema;
10
+ componentIdentity: string | null;
10
11
  effects: SequenceSchema[];
11
12
  nodePath: SequenceNodePath | null;
12
13
  clientId: string;
@@ -4,12 +4,19 @@ exports.acquireSequencePropsSubscription = void 0;
4
4
  const studio_shared_1 = require("@remotion/studio-shared");
5
5
  const remotion_1 = require("remotion");
6
6
  const call_api_1 = require("../call-api");
7
- const makeKey = (fileName, line, column, sequenceKeys, effectKeys) => `${fileName}\0${line}\0${column}\0${sequenceKeys.join('\0')}\0${effectKeys.map((keys) => keys.join('\0')).join('\0\0')}`;
7
+ const makeKey = ({ fileName, line, column, componentIdentity, sequenceKeys, effectKeys, }) => `${fileName}\0${line}\0${column}\0${componentIdentity !== null && componentIdentity !== void 0 ? componentIdentity : ''}\0${sequenceKeys.join('\0')}\0${effectKeys.map((keys) => keys.join('\0')).join('\0\0')}`;
8
8
  const entries = new Map();
9
- const acquireSequencePropsSubscription = ({ fileName, line, column, schema, effects, nodePath, clientId, applyOnce, applyEach, }) => {
9
+ const acquireSequencePropsSubscription = ({ fileName, line, column, schema, componentIdentity, effects, nodePath, clientId, applyOnce, applyEach, }) => {
10
10
  const sequenceKeys = (0, studio_shared_1.getAllSchemaKeys)(schema);
11
11
  const effectKeys = effects.map((effect) => (0, studio_shared_1.getAllSchemaKeys)(effect));
12
- const key = makeKey(fileName, line, column, sequenceKeys, effectKeys);
12
+ const key = makeKey({
13
+ fileName,
14
+ line,
15
+ column,
16
+ componentIdentity,
17
+ sequenceKeys,
18
+ effectKeys,
19
+ });
13
20
  let entry = entries.get(key);
14
21
  if (!entry) {
15
22
  const promise = (0, call_api_1.callApi)('/api/subscribe-to-sequence-props', {
@@ -17,6 +24,7 @@ const acquireSequencePropsSubscription = ({ fileName, line, column, schema, effe
17
24
  line,
18
25
  column,
19
26
  nodePath,
27
+ componentIdentity,
20
28
  keys: (0, studio_shared_1.getAllSchemaKeys)(schema),
21
29
  effects: effectKeys,
22
30
  clientId,
@@ -1,3 +1,5 @@
1
+ export declare const PREVENT_CLEAR_SELECTION_ON_POINTER_DOWN_ATTR = "data-remotion-prevent-selection-clear";
1
2
  export declare const shouldClearSelectionOnPointerDown: (event: {
2
3
  readonly button: number;
4
+ readonly target?: EventTarget | null | undefined;
3
5
  }) => boolean;
@@ -1,7 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldClearSelectionOnPointerDown = void 0;
3
+ exports.shouldClearSelectionOnPointerDown = exports.PREVENT_CLEAR_SELECTION_ON_POINTER_DOWN_ATTR = void 0;
4
+ exports.PREVENT_CLEAR_SELECTION_ON_POINTER_DOWN_ATTR = 'data-remotion-prevent-selection-clear';
5
+ const isSelectionClearBlocked = (target) => {
6
+ if (target === null ||
7
+ target === undefined ||
8
+ typeof target !== 'object' ||
9
+ !('closest' in target) ||
10
+ typeof target.closest !== 'function') {
11
+ return false;
12
+ }
13
+ return (target.closest(`[${exports.PREVENT_CLEAR_SELECTION_ON_POINTER_DOWN_ATTR}]`) !== null);
14
+ };
4
15
  const shouldClearSelectionOnPointerDown = (event) => {
5
- return event.button === 0;
16
+ if (event.button !== 0) {
17
+ return false;
18
+ }
19
+ return !isSelectionClearBlocked(event.target);
6
20
  };
7
21
  exports.shouldClearSelectionOnPointerDown = shouldClearSelectionOnPointerDown;
@@ -1,2 +1,2 @@
1
1
  export declare const parseCssRotationToDegrees: (value: string) => number;
2
- export declare const serializeCssRotation: (value: number) => string;
2
+ export declare const serializeCssRotation: (value: number, decimalPlaces?: number) => string;
@@ -26,7 +26,9 @@ const parseCssRotationToDegrees = (value) => {
26
26
  }
27
27
  };
28
28
  exports.parseCssRotationToDegrees = parseCssRotationToDegrees;
29
- const serializeCssRotation = (value) => {
30
- return `${(0, timeline_field_utils_1.normalizeTimelineNumber)(value)}deg`;
29
+ const serializeCssRotation = (value, decimalPlaces = 6) => {
30
+ const factor = 10 ** decimalPlaces;
31
+ const rounded = Math.round((0, timeline_field_utils_1.normalizeTimelineNumber)(value) * factor) / factor;
32
+ return `${Object.is(rounded, -0) ? 0 : rounded}deg`;
31
33
  };
32
34
  exports.serializeCssRotation = serializeCssRotation;
@@ -3,19 +3,17 @@ import type { SetPropStatuses } from './save-sequence-prop';
3
3
  import type { TimelineEasingSelection, TimelineSelection } from './TimelineSelection';
4
4
  export type EasingSelection = TimelineEasingSelection;
5
5
  export type TimelineEasingValue = 'linear' | [number, number, number, number];
6
- export declare const getEasingSelections: (selections: readonly TimelineSelection[]) => ({
7
- readonly nodePathInfo: import("../../helpers/get-timeline-sequence-sort-key").SequenceNodePathInfo;
8
- } & {
6
+ export declare const getEasingSelections: (selections: readonly TimelineSelection[]) => {
9
7
  readonly type: "easing";
8
+ readonly nodePathInfo: import("../../helpers/get-timeline-sequence-sort-key").SequenceNodePathInfo;
10
9
  readonly fromFrame: number;
11
10
  readonly toFrame: number;
12
11
  readonly segmentIndex: number;
13
- })[];
12
+ }[];
14
13
  export declare const getTimelineEasingValueForSelection: ({ selection, sequences, overrideIdsToNodePaths, propStatuses, }: {
15
14
  selection: {
16
- readonly nodePathInfo: import("../../helpers/get-timeline-sequence-sort-key").SequenceNodePathInfo;
17
- } & {
18
15
  readonly type: "easing";
16
+ readonly nodePathInfo: import("../../helpers/get-timeline-sequence-sort-key").SequenceNodePathInfo;
19
17
  readonly fromFrame: number;
20
18
  readonly toFrame: number;
21
19
  readonly segmentIndex: number;
@@ -1,7 +1,8 @@
1
1
  import type { SequenceSchema } from 'remotion';
2
2
  import type { OriginalPosition } from '../../error-overlay/react-overlay/utils/get-source-map';
3
- export declare const useSequencePropsSubscription: ({ originalLocation, overrideId, schema, effects, }: {
3
+ export declare const useSequencePropsSubscription: ({ originalLocation, overrideId, componentIdentity, schema, effects, }: {
4
4
  overrideId: string;
5
+ componentIdentity: string | null;
5
6
  schema: SequenceSchema;
6
7
  effects: SequenceSchema[];
7
8
  originalLocation: OriginalPosition | null;
@@ -7,7 +7,7 @@ const remotion_1 = require("remotion");
7
7
  const client_id_1 = require("../../helpers/client-id");
8
8
  const ExpandedTracksProvider_1 = require("../ExpandedTracksProvider");
9
9
  const sequence_props_subscription_store_1 = require("./sequence-props-subscription-store");
10
- const useSequencePropsSubscription = ({ originalLocation, overrideId, schema, effects, }) => {
10
+ const useSequencePropsSubscription = ({ originalLocation, overrideId, componentIdentity, schema, effects, }) => {
11
11
  var _a, _b, _c;
12
12
  const { setPropStatuses } = (0, react_1.useContext)(remotion_1.Internals.VisualModeSettersContext);
13
13
  const { setOverrideIdToNodePath } = (0, react_1.useContext)(remotion_1.Internals.OverrideIdsToNodePathsSettersContext);
@@ -50,6 +50,7 @@ const useSequencePropsSubscription = ({ originalLocation, overrideId, schema, ef
50
50
  line: locationLine,
51
51
  column: locationColumn,
52
52
  schema,
53
+ componentIdentity,
53
54
  effects,
54
55
  nodePath: (_b = nodePathAtResubscribe === null || nodePathAtResubscribe === void 0 ? void 0 : nodePathAtResubscribe.nodePath) !== null && _b !== void 0 ? _b : null,
55
56
  clientId,
@@ -85,6 +86,7 @@ const useSequencePropsSubscription = ({ originalLocation, overrideId, schema, ef
85
86
  };
86
87
  }, [
87
88
  clientId,
89
+ componentIdentity,
88
90
  effects,
89
91
  effectsSignature,
90
92
  locationColumn,
@@ -1,6 +1,30 @@
1
1
  import type React from 'react';
2
2
  import type { SequenceNodePathInfo } from '../../helpers/get-timeline-sequence-sort-key';
3
- import { type TimelineSelectionInteraction } from './TimelineSelection';
3
+ import { type TimelineDraggedKeyframe } from './TimelineKeyframeDragState';
4
+ import { type TimelineSelection, type TimelineSelectionInteraction } from './TimelineSelection';
5
+ export declare const getKeyframesForTimelineEasingDrag: ({ currentSelections, interaction, selectionItem, selected, }: {
6
+ readonly currentSelections: readonly TimelineSelection[];
7
+ readonly interaction: TimelineSelectionInteraction;
8
+ readonly selectionItem: {
9
+ readonly type: "easing";
10
+ readonly nodePathInfo: SequenceNodePathInfo;
11
+ readonly fromFrame: number;
12
+ readonly toFrame: number;
13
+ readonly segmentIndex: number;
14
+ };
15
+ readonly selected: boolean;
16
+ }) => ({
17
+ readonly type: "keyframe";
18
+ readonly nodePathInfo: SequenceNodePathInfo;
19
+ readonly frame: number;
20
+ } & {
21
+ type: "keyframe";
22
+ })[];
23
+ export declare const getTimelineSelectionsAfterEasingKeyframeDrag: ({ delta, selections, targets, }: {
24
+ readonly delta: number;
25
+ readonly selections: readonly TimelineSelection[];
26
+ readonly targets: readonly TimelineDraggedKeyframe[];
27
+ }) => TimelineSelection[];
4
28
  export declare const useTimelineKeyframeDrag: ({ frame, nodePathInfo, onSelect, selectable, selected, }: {
5
29
  readonly frame: number;
6
30
  readonly nodePathInfo: SequenceNodePathInfo;
@@ -8,3 +32,15 @@ export declare const useTimelineKeyframeDrag: ({ frame, nodePathInfo, onSelect,
8
32
  readonly selectable: boolean;
9
33
  readonly selected: boolean;
10
34
  }) => (e: React.PointerEvent<HTMLButtonElement>) => void;
35
+ export declare const useTimelineEasingKeyframeDrag: ({ onSelect, selectable, selected, selectionItem, }: {
36
+ readonly onSelect: (interaction?: TimelineSelectionInteraction | undefined) => void;
37
+ readonly selectable: boolean;
38
+ readonly selected: boolean;
39
+ readonly selectionItem: {
40
+ readonly type: "easing";
41
+ readonly nodePathInfo: SequenceNodePathInfo;
42
+ readonly fromFrame: number;
43
+ readonly toFrame: number;
44
+ readonly segmentIndex: number;
45
+ };
46
+ }) => (e: React.PointerEvent<HTMLButtonElement>) => void;