@remotion/studio 4.0.498 → 4.0.500

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 (167) hide show
  1. package/dist/components/AssetSelector.js +8 -6
  2. package/dist/components/AssetSelectorItem.d.ts +24 -0
  3. package/dist/components/AssetSelectorItem.js +144 -83
  4. package/dist/components/Canvas.js +162 -7
  5. package/dist/components/CompositionSelector.js +15 -42
  6. package/dist/components/CompositionSelectorItem.js +21 -13
  7. package/dist/components/ControlButton.js +1 -0
  8. package/dist/components/EditorContent.js +1 -1
  9. package/dist/components/EditorRuler/Ruler.js +5 -3
  10. package/dist/components/ExplorerPanel.js +2 -1
  11. package/dist/components/ExplorerPanelRef.d.ts +2 -0
  12. package/dist/components/ForceSpecificCursor.js +13 -1
  13. package/dist/components/GlobalKeybindings.js +7 -1
  14. package/dist/components/InlineAction.d.ts +2 -1
  15. package/dist/components/InlineAction.js +2 -2
  16. package/dist/components/InlineDropdown.d.ts +1 -1
  17. package/dist/components/InlineDropdown.js +3 -2
  18. package/dist/components/InspectorPanel/AlignmentControls.d.ts +2 -2
  19. package/dist/components/InspectorPanel/AlignmentControls.js +5 -2
  20. package/dist/components/InspectorPanel/CompositionInspector.js +8 -7
  21. package/dist/components/InspectorPanel/CompositionMetadata.js +170 -57
  22. package/dist/components/InspectorPanel/ConnectedCompositionsSection.d.ts +2 -2
  23. package/dist/components/InspectorPanel/SequenceInspectorHeader.d.ts +3 -3
  24. package/dist/components/InspectorPanel/SequenceSelectionInspector.js +7 -7
  25. package/dist/components/InspectorPanel/common.d.ts +17 -4
  26. package/dist/components/InspectorPanel/common.js +60 -6
  27. package/dist/components/InspectorPanel/use-composition-actions.js +1 -0
  28. package/dist/components/InspectorPanel/use-track-for-selection.d.ts +1 -1
  29. package/dist/components/InspectorSequenceSection.js +43 -19
  30. package/dist/components/KeyboardShortcutsExplainer.js +4 -2
  31. package/dist/components/Menu/MenuItem.js +2 -1
  32. package/dist/components/MenuCompositionName.js +30 -7
  33. package/dist/components/MenuToolbar.d.ts +0 -1
  34. package/dist/components/MenuToolbar.js +8 -7
  35. package/dist/components/MobilePanel.d.ts +2 -1
  36. package/dist/components/MobilePanel.js +29 -25
  37. package/dist/components/ModalContainer.d.ts +1 -0
  38. package/dist/components/ModalContainer.js +2 -2
  39. package/dist/components/Modals.js +1 -1
  40. package/dist/components/NewComposition/DismissableModal.d.ts +1 -0
  41. package/dist/components/NewComposition/DismissableModal.js +2 -2
  42. package/dist/components/NewComposition/InputDragger.d.ts +34 -0
  43. package/dist/components/NewComposition/InputDragger.js +262 -23
  44. package/dist/components/OutlineToggle.d.ts +1 -3
  45. package/dist/components/OutlineToggle.js +2 -2
  46. package/dist/components/PreviewToolbar.js +10 -4
  47. package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.d.ts +7 -0
  48. package/dist/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.js +44 -0
  49. package/dist/components/QuickSwitcher/NoResults.d.ts +1 -1
  50. package/dist/components/QuickSwitcher/NoResults.js +1 -0
  51. package/dist/components/QuickSwitcher/QuickSwitcher.d.ts +5 -0
  52. package/dist/components/QuickSwitcher/QuickSwitcher.js +6 -2
  53. package/dist/components/QuickSwitcher/QuickSwitcherContent.d.ts +5 -0
  54. package/dist/components/QuickSwitcher/QuickSwitcherContent.js +76 -12
  55. package/dist/components/QuickSwitcher/QuickSwitcherResult.d.ts +4 -0
  56. package/dist/components/QuickSwitcher/QuickSwitcherResult.js +11 -8
  57. package/dist/components/QuickSwitcher/asset-search.d.ts +9 -0
  58. package/dist/components/QuickSwitcher/asset-search.js +42 -0
  59. package/dist/components/SelectedOutlineCropControls.d.ts +8 -0
  60. package/dist/components/SelectedOutlineCropControls.js +299 -0
  61. package/dist/components/SelectedOutlineElement.js +83 -43
  62. package/dist/components/SelectedOutlineOverlay.d.ts +2 -2
  63. package/dist/components/SelectedOutlineOverlay.js +130 -8
  64. package/dist/components/SequencePropsSubscriptionProvider.d.ts +2 -0
  65. package/dist/components/SequencePropsSubscriptionProvider.js +31 -3
  66. package/dist/components/SidebarCollapserControls.d.ts +3 -1
  67. package/dist/components/SidebarCollapserControls.js +34 -29
  68. package/dist/components/SnappingToggle.d.ts +1 -3
  69. package/dist/components/SnappingToggle.js +2 -2
  70. package/dist/components/Splitter/SplitterContainer.d.ts +2 -0
  71. package/dist/components/Splitter/SplitterContainer.js +5 -1
  72. package/dist/components/Splitter/SplitterContext.d.ts +2 -0
  73. package/dist/components/Splitter/SplitterContext.js +2 -0
  74. package/dist/components/Splitter/SplitterElement.js +6 -1
  75. package/dist/components/Splitter/SplitterHandle.js +27 -2
  76. package/dist/components/Timeline/Timeline.js +1 -1
  77. package/dist/components/Timeline/TimelineAssetField.d.ts +9 -1
  78. package/dist/components/Timeline/TimelineAssetField.js +52 -100
  79. package/dist/components/Timeline/TimelineClipboardKeybindings.d.ts +7 -3
  80. package/dist/components/Timeline/TimelineClipboardKeybindings.js +65 -38
  81. package/dist/components/Timeline/TimelineColorField.js +20 -1
  82. package/dist/components/Timeline/TimelineEffectPropItem.js +8 -77
  83. package/dist/components/Timeline/TimelineExpandedKeyframeRow.js +1 -0
  84. package/dist/components/Timeline/TimelineHeightContainer.d.ts +2 -2
  85. package/dist/components/Timeline/TimelineInOutDragHandler.js +25 -1
  86. package/dist/components/Timeline/TimelineKeyframeTracksContext.d.ts +3 -3
  87. package/dist/components/Timeline/TimelineLayerEye.js +4 -1
  88. package/dist/components/Timeline/TimelineList.d.ts +2 -2
  89. package/dist/components/Timeline/TimelinePrimitiveFieldValue.js +7 -1
  90. package/dist/components/Timeline/TimelineSelection.d.ts +5 -5
  91. package/dist/components/Timeline/TimelineSelection.js +8 -6
  92. package/dist/components/Timeline/TimelineSequence.js +7 -6
  93. package/dist/components/Timeline/TimelineSequenceItem.js +57 -10
  94. package/dist/components/Timeline/TimelineSequenceName.js +1 -0
  95. package/dist/components/Timeline/TimelineSequencePropItem.js +27 -75
  96. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +5 -1
  97. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +29 -12
  98. package/dist/components/Timeline/TimelineTrack.d.ts +2 -2
  99. package/dist/components/Timeline/TimelineTracks.d.ts +2 -2
  100. package/dist/components/Timeline/find-track-for-node-path-info.d.ts +1 -1
  101. package/dist/components/Timeline/get-sequence-context-menu-items.js +14 -12
  102. package/dist/components/Timeline/reset-selected-timeline-props.js +18 -10
  103. package/dist/components/Timeline/save-effect-prop.d.ts +10 -0
  104. package/dist/components/Timeline/save-effect-prop.js +52 -1
  105. package/dist/components/Timeline/should-show-track-in-timeline.d.ts +2 -2
  106. package/dist/components/Timeline/timeline-asset-link.js +17 -1
  107. package/dist/components/Timeline/use-sequence-freeze-frame-menu-item.d.ts +4 -0
  108. package/dist/components/Timeline/use-sequence-freeze-frame-menu-item.js +9 -3
  109. package/dist/components/Timeline/use-timeline-height.d.ts +2 -2
  110. package/dist/components/Timeline/use-timeline-keyframe-drag.js +6 -4
  111. package/dist/components/TopPanel.js +3 -2
  112. package/dist/components/UndoRedoButtons.js +27 -5
  113. package/dist/components/composition-drop-preview.d.ts +33 -0
  114. package/dist/components/composition-drop-preview.js +68 -0
  115. package/dist/components/drop-handler-data.d.ts +1 -1
  116. package/dist/components/drop-handler-data.js +27 -60
  117. package/dist/components/effect-drag-and-drop.d.ts +1 -1
  118. package/dist/components/effect-drag-and-drop.js +7 -55
  119. package/dist/components/element-drag-and-drop.d.ts +1 -1
  120. package/dist/components/element-drag-and-drop.js +5 -17
  121. package/dist/components/handle-drop.js +0 -1
  122. package/dist/components/import-assets.d.ts +7 -8
  123. package/dist/components/import-assets.js +2 -9
  124. package/dist/components/menu-toolbar-height.d.ts +1 -0
  125. package/dist/components/menu-toolbar-height.js +4 -0
  126. package/dist/components/selected-outline-drag.d.ts +41 -4
  127. package/dist/components/selected-outline-drag.js +179 -2
  128. package/dist/components/selected-outline-geometry.d.ts +1 -0
  129. package/dist/components/selected-outline-measurement.d.ts +11 -0
  130. package/dist/components/selected-outline-measurement.js +64 -3
  131. package/dist/components/selected-outline-types.d.ts +44 -1
  132. package/dist/components/selected-outline-types.js +21 -1
  133. package/dist/error-overlay/remotion-overlay/Overlay.js +3 -3
  134. package/dist/error-overlay/remotion-overlay/ShortcutHint.js +2 -3
  135. package/dist/esm/{chunk-7a6q9hk2.js → chunk-dr1y1vm3.js} +11851 -9494
  136. package/dist/esm/internals.mjs +11851 -9494
  137. package/dist/esm/previewEntry.mjs +55150 -52795
  138. package/dist/esm/renderEntry.mjs +1 -1
  139. package/dist/helpers/calculate-timeline.d.ts +2 -2
  140. package/dist/helpers/calculate-timeline.js +8 -28
  141. package/dist/helpers/get-effective-translation.d.ts +13 -1
  142. package/dist/helpers/get-effective-translation.js +12 -6
  143. package/dist/helpers/get-timeline-sequence-sort-key.d.ts +3 -10
  144. package/dist/helpers/get-timeline-sequence-sort-key.js +5 -13
  145. package/dist/helpers/interactivity-enabled.d.ts +1 -0
  146. package/dist/helpers/interactivity-enabled.js +7 -2
  147. package/dist/helpers/is-mac.d.ts +1 -0
  148. package/dist/helpers/is-mac.js +4 -0
  149. package/dist/helpers/open-in-editor.d.ts +5 -1
  150. package/dist/helpers/open-in-editor.js +15 -1
  151. package/dist/helpers/ruler-canvas-size.d.ts +7 -0
  152. package/dist/helpers/ruler-canvas-size.js +14 -1
  153. package/dist/helpers/sort-by-nonce-history.js +97 -19
  154. package/dist/helpers/use-image-metadata.d.ts +1 -0
  155. package/dist/helpers/use-image-metadata.js +8 -5
  156. package/dist/helpers/use-keybinding.js +2 -3
  157. package/dist/helpers/use-media-metadata.d.ts +1 -0
  158. package/dist/helpers/use-media-metadata.js +8 -5
  159. package/dist/helpers/use-menu-structure.js +10 -1
  160. package/dist/icons/caret.d.ts +1 -0
  161. package/dist/icons/caret.js +2 -2
  162. package/dist/icons/pen.d.ts +5 -0
  163. package/dist/icons/pen.js +8 -0
  164. package/dist/state/modals.d.ts +5 -0
  165. package/package.json +13 -12
  166. package/dist/helpers/get-timeline-sequence-hash.d.ts +0 -6
  167. package/dist/helpers/get-timeline-sequence-hash.js +0 -33
@@ -212,7 +212,7 @@ var renderContent = (Root) => {
212
212
  renderToDOM(/* @__PURE__ */ jsx("div", {
213
213
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
214
214
  }));
215
- import("./chunk-7a6q9hk2.js").then(({ StudioInternals }) => {
215
+ import("./chunk-dr1y1vm3.js").then(({ StudioInternals }) => {
216
216
  window.remotion_isStudio = true;
217
217
  window.remotion_isReadOnlyStudio = true;
218
218
  window.remotion_inputProps = "{}";
@@ -1,7 +1,7 @@
1
1
  import type { OverrideIdToNodePaths, TSequence } from 'remotion';
2
- import type { TrackWithHash } from './get-timeline-sequence-sort-key';
2
+ import type { TimelineTrackData } from './get-timeline-sequence-sort-key';
3
3
  export declare const calculateTimeline: ({ sequences, overrideIdsToNodePaths, compositions, }: {
4
4
  sequences: TSequence[];
5
5
  overrideIdsToNodePaths: OverrideIdToNodePaths;
6
6
  compositions?: readonly import("remotion").AnyComposition[] | undefined;
7
- }) => TrackWithHash[];
7
+ }) => TimelineTrackData[];
@@ -5,7 +5,6 @@ const studio_shared_1 = require("@remotion/studio-shared");
5
5
  const get_connected_compositions_1 = require("./get-connected-compositions");
6
6
  const get_sequence_visible_range_1 = require("./get-sequence-visible-range");
7
7
  const get_timeline_nestedness_1 = require("./get-timeline-nestedness");
8
- const get_timeline_sequence_hash_1 = require("./get-timeline-sequence-hash");
9
8
  const get_timeline_sequence_sort_key_1 = require("./get-timeline-sequence-sort-key");
10
9
  const sort_by_nonce_history_1 = require("./sort-by-nonce-history");
11
10
  const getInheritedLoopDisplay = (sequence, sequences) => {
@@ -52,19 +51,8 @@ const calculateTimeline = ({ sequences, overrideIdsToNodePaths, compositions = [
52
51
  }
53
52
  return true;
54
53
  });
55
- const sameHashes = {};
56
- const hashesUsedInRoot = {};
57
- const cache = {};
58
54
  for (let i = 0; i < timelineSequences.length; i++) {
59
55
  const sequence = timelineSequences[i];
60
- if (!hashesUsedInRoot[sequence.rootId]) {
61
- hashesUsedInRoot[sequence.rootId] = [];
62
- }
63
- const actualHash = (0, get_timeline_sequence_hash_1.getTimelineSequenceHash)(sequence, sortedSequences, hashesUsedInRoot, cache);
64
- if (!sameHashes[actualHash]) {
65
- sameHashes[actualHash] = [];
66
- }
67
- sameHashes[actualHash].push(sequence.id);
68
56
  const cascadedStart = (0, get_sequence_visible_range_1.getCascadedStart)(sequence, sortedSequences);
69
57
  const cascadedStartWithTrim = (0, get_sequence_visible_range_1.getCascadedStartWithTrim)(sequence, sortedSequences);
70
58
  const effectiveFrom = sequence.trimBefore === null
@@ -87,7 +75,6 @@ const calculateTimeline = ({ sequences, overrideIdsToNodePaths, compositions = [
87
75
  : sequence.loopDisplay,
88
76
  },
89
77
  depth: (0, get_timeline_nestedness_1.getTimelineNestedLevel)(sequence, sortedSequences, 0),
90
- hash: actualHash,
91
78
  cascadedStart,
92
79
  cascadedDuration: sequence.duration,
93
80
  keyframeDisplayOffset: hasKeyframeRows
@@ -105,26 +92,19 @@ const calculateTimeline = ({ sequences, overrideIdsToNodePaths, compositions = [
105
92
  : null,
106
93
  });
107
94
  }
108
- const uniqueTracks = [];
109
- for (const track of tracks) {
110
- const existingTrack = uniqueTracks.find((t) => t.hash === track.hash);
111
- if (!existingTrack) {
112
- const { cascadedDuration, cascadedStart, ...cleanTrack } = track;
113
- uniqueTracks.push(cleanTrack);
114
- }
115
- else if (existingTrack.connectedCompositions === undefined &&
116
- track.connectedCompositions !== undefined) {
117
- existingTrack.connectedCompositions = track.connectedCompositions;
118
- }
119
- }
120
95
  const nonceRanks = new Map();
121
96
  for (let i = 0; i < tracks.length; i++) {
122
97
  nonceRanks.set(tracks[i].sequence.id, i);
123
98
  }
124
- const sortedTracks = uniqueTracks.sort((a, b) => {
125
- const sortKeyA = (0, get_timeline_sequence_sort_key_1.getTimelineSequenceSequenceSortKey)(a, tracks, sameHashes, nonceRanks);
126
- const sortKeyB = (0, get_timeline_sequence_sort_key_1.getTimelineSequenceSequenceSortKey)(b, tracks, sameHashes, nonceRanks);
99
+ const sortedTracks = tracks
100
+ .sort((a, b) => {
101
+ const sortKeyA = (0, get_timeline_sequence_sort_key_1.getTimelineSequenceSortKey)(a, tracks, nonceRanks);
102
+ const sortKeyB = (0, get_timeline_sequence_sort_key_1.getTimelineSequenceSortKey)(b, tracks, nonceRanks);
127
103
  return sortKeyA.localeCompare(sortKeyB);
104
+ })
105
+ .map((track) => {
106
+ const { cascadedDuration, cascadedStart, ...cleanTrack } = track;
107
+ return cleanTrack;
128
108
  });
129
109
  const nodePathIndexCounters = new Map();
130
110
  return sortedTracks
@@ -13,7 +13,19 @@ export declare const getEffectiveTranslation: ({ canvasSize, scale, compositionH
13
13
  x: number;
14
14
  y: number;
15
15
  };
16
- export declare const getCenterPointWhileScrolling: ({ size, clientX, clientY, compositionWidth, compositionHeight, scale, translation, }: {
16
+ export declare const getUnboundedCenterPointWhileScrolling: ({ size, clientX, clientY, compositionWidth, compositionHeight, scale, translation, }: {
17
+ size: Size;
18
+ clientX: number;
19
+ clientY: number;
20
+ compositionWidth: number;
21
+ compositionHeight: number;
22
+ scale: number;
23
+ translation: Translation;
24
+ }) => {
25
+ centerX: number;
26
+ centerY: number;
27
+ };
28
+ export declare const getCenterPointWhileScrolling: (options: {
17
29
  size: Size;
18
30
  clientX: number;
19
31
  clientY: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyZoomAroundFocalPoint = exports.getCenterPointWhileScrolling = exports.getEffectiveTranslation = void 0;
3
+ exports.applyZoomAroundFocalPoint = exports.getCenterPointWhileScrolling = exports.getUnboundedCenterPointWhileScrolling = exports.getEffectiveTranslation = void 0;
4
4
  const remotion_1 = require("remotion");
5
5
  const smooth_zoom_1 = require("./smooth-zoom");
6
6
  const studio_fit_padding_1 = require("./studio-fit-padding");
@@ -33,16 +33,22 @@ const getEffectiveTranslation = ({ canvasSize, scale, compositionHeight, composi
33
33
  };
34
34
  };
35
35
  exports.getEffectiveTranslation = getEffectiveTranslation;
36
- const getCenterPointWhileScrolling = ({ size, clientX, clientY, compositionWidth, compositionHeight, scale, translation, }) => {
36
+ const getUnboundedCenterPointWhileScrolling = ({ size, clientX, clientY, compositionWidth, compositionHeight, scale, translation, }) => {
37
37
  const mouseLeft = clientX - size.left;
38
38
  const mouseTop = clientY - size.top;
39
39
  const contentLeftPoint = size.width / 2 - (compositionWidth * scale) / 2 - translation.x;
40
40
  const contentTopPoint = size.height / 2 - (compositionHeight * scale) / 2 - translation.y;
41
- const offsetFromVideoLeft = Math.min(compositionWidth, Math.max(0, (mouseLeft - contentLeftPoint) / scale));
42
- const offsetFromVideoTop = Math.min(compositionHeight, Math.max(0, (mouseTop - contentTopPoint) / scale));
43
41
  return {
44
- centerX: offsetFromVideoLeft,
45
- centerY: offsetFromVideoTop,
42
+ centerX: (mouseLeft - contentLeftPoint) / scale,
43
+ centerY: (mouseTop - contentTopPoint) / scale,
44
+ };
45
+ };
46
+ exports.getUnboundedCenterPointWhileScrolling = getUnboundedCenterPointWhileScrolling;
47
+ const getCenterPointWhileScrolling = (options) => {
48
+ const { centerX, centerY } = (0, exports.getUnboundedCenterPointWhileScrolling)(options);
49
+ return {
50
+ centerX: Math.min(options.compositionWidth, Math.max(0, centerX)),
51
+ centerY: Math.min(options.compositionHeight, Math.max(0, centerY)),
46
52
  };
47
53
  };
48
54
  exports.getCenterPointWhileScrolling = getCenterPointWhileScrolling;
@@ -6,7 +6,7 @@ export type SequenceNodePathInfo = {
6
6
  numberOfSequencesWithThisNodePath: number;
7
7
  supportsEffects: boolean;
8
8
  };
9
- type Track = {
9
+ export type TimelineTrackData = {
10
10
  sequence: TSequence;
11
11
  connectedCompositions?: readonly _InternalTypes['AnyComposition'][];
12
12
  depth: number;
@@ -14,15 +14,8 @@ type Track = {
14
14
  keyframeDisplayOffset: number;
15
15
  sequenceFrameOffset: number;
16
16
  };
17
- export type TrackWithHash = Track & {
18
- hash: string;
19
- };
20
- export type TrackWithHashAndOriginalTimings = TrackWithHash & {
21
- hash: string;
17
+ export type TimelineTrackWithOriginalTimings = TimelineTrackData & {
22
18
  cascadedStart: number;
23
19
  cascadedDuration: number;
24
20
  };
25
- export declare const getTimelineSequenceSequenceSortKey: (track: TrackWithHash, tracks: TrackWithHash[], sameHashes?: {
26
- [hash: string]: string[];
27
- }, nonceRanks?: Map<string, number>) => string;
28
- export {};
21
+ export declare const getTimelineSequenceSortKey: (track: TimelineTrackData, tracks: TimelineTrackData[], nonceRanks: Map<string, number>) => string;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTimelineSequenceSequenceSortKey = void 0;
4
- const getTimelineSequenceSequenceSortKey = (track, tracks, sameHashes = {}, nonceRanks = new Map()) => {
3
+ exports.getTimelineSequenceSortKey = void 0;
4
+ const getTimelineSequenceSortKey = (track, tracks, nonceRanks) => {
5
5
  var _a;
6
- const firstSequenceWithSameHash = tracks.find((t) => sameHashes[track.hash].includes(t.sequence.id));
7
- const sequenceId = firstSequenceWithSameHash.sequence.id;
8
- const rank = (_a = nonceRanks.get(sequenceId)) !== null && _a !== void 0 ? _a : 0;
6
+ const rank = (_a = nonceRanks.get(track.sequence.id)) !== null && _a !== void 0 ? _a : 0;
9
7
  const id = String(rank).padStart(6, '0');
10
8
  if (!track.sequence.parent) {
11
9
  return id;
@@ -16,12 +14,6 @@ const getTimelineSequenceSequenceSortKey = (track, tracks, sameHashes = {}, nonc
16
14
  // may not exist in the `allTracks` array.
17
15
  return id;
18
16
  }
19
- const firstParentWithSameHash = tracks.find((a) => {
20
- return sameHashes[parent.hash].includes(a.sequence.id);
21
- });
22
- if (!firstParentWithSameHash) {
23
- throw new Error('could not find parent: ' + track.sequence.parent);
24
- }
25
- return `${(0, exports.getTimelineSequenceSequenceSortKey)(firstParentWithSameHash, tracks, sameHashes, nonceRanks)}-${id}`;
17
+ return `${(0, exports.getTimelineSequenceSortKey)(parent, tracks, nonceRanks)}-${id}`;
26
18
  };
27
- exports.getTimelineSequenceSequenceSortKey = getTimelineSequenceSequenceSortKey;
19
+ exports.getTimelineSequenceSortKey = getTimelineSequenceSortKey;
@@ -1 +1,2 @@
1
1
  export declare const isStudioInteractivityEnabled: () => boolean;
2
+ export declare const isStudioSelectionEnabled: () => boolean;
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isStudioInteractivityEnabled = void 0;
3
+ exports.isStudioSelectionEnabled = exports.isStudioInteractivityEnabled = void 0;
4
4
  const studio_runtime_config_1 = require("./studio-runtime-config");
5
- exports.isStudioInteractivityEnabled = studio_runtime_config_1.getStudioInteractivityEnabled;
5
+ const isStudioInteractivityEnabled = () => {
6
+ return ((0, studio_runtime_config_1.getStudioInteractivityEnabled)() &&
7
+ (typeof window === 'undefined' || !window.remotion_isReadOnlyStudio));
8
+ };
9
+ exports.isStudioInteractivityEnabled = isStudioInteractivityEnabled;
10
+ exports.isStudioSelectionEnabled = studio_runtime_config_1.getStudioInteractivityEnabled;
@@ -0,0 +1 @@
1
+ export declare const isMac: boolean;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMac = void 0;
4
+ exports.isMac = typeof window !== 'undefined' && window.navigator.platform.startsWith('Mac');
@@ -1,7 +1,11 @@
1
1
  import type { CompositionComponentInfoResponse, SymbolicatedStackFrame } from '@remotion/studio-shared';
2
- import type { OriginalPosition } from '../error-overlay/react-overlay/utils/get-source-map';
2
+ import type { CodePosition, OriginalPosition } from '../error-overlay/react-overlay/utils/get-source-map';
3
3
  export declare const openInEditor: (stack: SymbolicatedStackFrame) => Promise<import("@remotion/studio-shared").OpenInEditorResponse>;
4
4
  export declare const openOriginalPositionInEditor: (originalPosition: OriginalPosition) => Promise<void>;
5
+ export declare const openOriginalPositionInEditorAtProperty: ({ originalPosition, property, }: {
6
+ originalPosition: CodePosition;
7
+ property: string;
8
+ }) => Promise<void>;
5
9
  type ResolvedCompositionComponentInfo = {
6
10
  location: CompositionComponentInfoResponse['location'];
7
11
  canAddSequence: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.openCompositionComponentInEditor = exports.preloadCompositionComponentInfo = exports.loadCompositionComponentInfo = exports.useCachedCompositionComponentInfo = exports.getCachedCompositionComponentInfo = exports.subscribeToCompositionComponentInfo = exports.openOriginalPositionInEditor = exports.openInEditor = void 0;
3
+ exports.openCompositionComponentInEditor = exports.preloadCompositionComponentInfo = exports.loadCompositionComponentInfo = exports.useCachedCompositionComponentInfo = exports.getCachedCompositionComponentInfo = exports.subscribeToCompositionComponentInfo = exports.openOriginalPositionInEditorAtProperty = exports.openOriginalPositionInEditor = exports.openInEditor = void 0;
4
4
  const react_1 = require("react");
5
5
  const call_api_1 = require("../components/call-api");
6
6
  const openInEditor = (stack) => {
@@ -26,6 +26,20 @@ const openOriginalPositionInEditor = async (originalPosition) => {
26
26
  });
27
27
  };
28
28
  exports.openOriginalPositionInEditor = openOriginalPositionInEditor;
29
+ const openOriginalPositionInEditorAtProperty = async ({ originalPosition, property, }) => {
30
+ const position = await (0, call_api_1.callApi)('/api/find-in-file', {
31
+ fileName: originalPosition.source,
32
+ lineNumber: originalPosition.line,
33
+ columnNumber: originalPosition.column,
34
+ search: property,
35
+ });
36
+ await (0, exports.openOriginalPositionInEditor)({
37
+ source: originalPosition.source,
38
+ line: position.lineNumber,
39
+ column: position.columnNumber,
40
+ });
41
+ };
42
+ exports.openOriginalPositionInEditorAtProperty = openOriginalPositionInEditorAtProperty;
29
43
  const componentResolutionCache = new Map();
30
44
  const componentResolutionResults = new Map();
31
45
  const componentResolutionListeners = new Set();
@@ -3,3 +3,10 @@ export declare const applyRulerInsetsToCanvasSize: ({ rulersAreVisible, size, }:
3
3
  readonly rulersAreVisible: boolean;
4
4
  readonly size: Size;
5
5
  }) => Size;
6
+ export declare const getRulerCanvasSize: ({ orientation, size, }: {
7
+ readonly orientation: "horizontal" | "vertical";
8
+ readonly size: Size;
9
+ }) => {
10
+ height: number;
11
+ width: number;
12
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyRulerInsetsToCanvasSize = void 0;
3
+ exports.getRulerCanvasSize = exports.applyRulerInsetsToCanvasSize = void 0;
4
4
  const editor_rulers_1 = require("../state/editor-rulers");
5
5
  const applyRulerInsetsToCanvasSize = ({ rulersAreVisible, size, }) => {
6
6
  if (!rulersAreVisible) {
@@ -15,3 +15,16 @@ const applyRulerInsetsToCanvasSize = ({ rulersAreVisible, size, }) => {
15
15
  };
16
16
  };
17
17
  exports.applyRulerInsetsToCanvasSize = applyRulerInsetsToCanvasSize;
18
+ const getRulerCanvasSize = ({ orientation, size, }) => {
19
+ if (orientation === 'vertical') {
20
+ return {
21
+ height: size.height,
22
+ width: editor_rulers_1.RULER_WIDTH,
23
+ };
24
+ }
25
+ return {
26
+ height: editor_rulers_1.RULER_WIDTH,
27
+ width: size.width,
28
+ };
29
+ };
30
+ exports.getRulerCanvasSize = getRulerCanvasSize;
@@ -25,45 +25,123 @@ const compareNonceHistories = (a, b) => {
25
25
  return aLatestEpoch - bLatestEpoch;
26
26
  };
27
27
  exports.compareNonceHistories = compareNonceHistories;
28
+ // Compare two histories, each pre-collapsed to parallel arrays of epochs and
29
+ // nonces sorted by descending epoch, without rebuilding a Map per comparison.
30
+ // Equivalent to getSharedEpochOrder: both find the newest shared epoch and
31
+ // compare its nonces.
32
+ const sharedEpochOrderFromSorted = (aEpochs, aNonces, bEpochs, bNonces) => {
33
+ let i = 0;
34
+ let j = 0;
35
+ while (i < aEpochs.length && j < bEpochs.length) {
36
+ const ae = aEpochs[i];
37
+ const be = bEpochs[j];
38
+ if (ae === be) {
39
+ return aNonces[i] - bNonces[j];
40
+ }
41
+ if (ae > be) {
42
+ i++;
43
+ }
44
+ else {
45
+ j++;
46
+ }
47
+ }
48
+ return null;
49
+ };
28
50
  const sortItemsByNonceHistory = (items) => {
29
51
  const n = items.length;
30
52
  if (n <= 1) {
31
53
  return items.slice();
32
54
  }
33
- // Build a pairwise ordering matrix from shared epochs.
34
- // order[i][j] < 0 means i before j, > 0 means j before i, null means no direct relationship.
35
- const order = Array.from({ length: n }, () => Array(n).fill(null));
55
+ // Collapse each history once into epoch/nonce arrays sorted by descending
56
+ // epoch. `new Map(nonce)` keeps the last value per duplicated epoch, matching
57
+ // getSharedEpochOrder. This removes the per-pair Map/Set construction the
58
+ // pairwise loop below would otherwise repeat O(n^2) times.
59
+ const epochsOf = new Array(n);
60
+ const noncesOf = new Array(n);
61
+ for (let i = 0; i < n; i++) {
62
+ const map = new Map(items[i].nonce);
63
+ const epochs = [...map.keys()].sort((x, y) => y - x);
64
+ epochsOf[i] = epochs;
65
+ noncesOf[i] = epochs.map((e) => map.get(e));
66
+ }
67
+ // Pairwise "strictly before" relation, stored as bitsets: `before[i]` has
68
+ // bit j set when i must come before j, `known[i]` has bit j set when the
69
+ // pair (i, j) is directly determined by a shared epoch. Bitsets let the
70
+ // transitive closure below combine 32 relationships per word.
71
+ const words = (n + 31) >> 5;
72
+ const before = new Uint32Array(n * words);
73
+ const known = new Uint32Array(n * words);
74
+ // Direct comparison sign per ordered pair; only read where `known` is set.
75
+ const sign = new Int8Array(n * n);
36
76
  for (let i = 0; i < n; i++) {
37
77
  for (let j = i + 1; j < n; j++) {
38
- const cmp = getSharedEpochOrder(items[i].nonce, items[j].nonce);
39
- order[i][j] = cmp;
40
- order[j][i] = cmp !== null ? -cmp : null;
78
+ const cmp = sharedEpochOrderFromSorted(epochsOf[i], noncesOf[i], epochsOf[j], noncesOf[j]);
79
+ if (cmp === null) {
80
+ continue;
81
+ }
82
+ known[i * words + (j >> 5)] |= 1 << (j & 31);
83
+ known[j * words + (i >> 5)] |= 1 << (i & 31);
84
+ sign[i * n + j] = cmp < 0 ? -1 : cmp > 0 ? 1 : 0;
85
+ sign[j * n + i] = cmp < 0 ? 1 : cmp > 0 ? -1 : 0;
86
+ if (cmp < 0) {
87
+ before[i * words + (j >> 5)] |= 1 << (j & 31);
88
+ }
89
+ else if (cmp > 0) {
90
+ before[j * words + (i >> 5)] |= 1 << (i & 31);
91
+ }
41
92
  }
42
93
  }
43
- // Compute transitive closure: if i < j and j < k, then i < k.
94
+ // Transitive closure: if i < k and k < j, then i < j. This is the same
95
+ // Floyd-Warshall relation as before, but the inner sweep is bitwise
96
+ // (`before[k] & ~known[i]` finds all reachable j at once). A newly derived
97
+ // edge is marked known immediately so the first path decides an otherwise
98
+ // undetermined pair — preserving behavior on the inputs where the pairwise
99
+ // comparison is intentionally non-transitive.
44
100
  for (let k = 0; k < n; k++) {
101
+ const kBase = k * words;
102
+ const kWord = k >> 5;
103
+ const kBit = 1 << (k & 31);
45
104
  for (let i = 0; i < n; i++) {
46
- for (let j = 0; j < n; j++) {
47
- if (order[i][j] === null &&
48
- order[i][k] !== null &&
49
- order[k][j] !== null &&
50
- order[i][k] < 0 &&
51
- order[k][j] < 0) {
52
- order[i][j] = -1;
53
- order[j][i] = 1;
105
+ if (i === k) {
106
+ continue;
107
+ }
108
+ const iBase = i * words;
109
+ if ((before[iBase + kWord] & kBit) === 0) {
110
+ continue; // i is not before k, so k adds nothing for i
111
+ }
112
+ for (let w = 0; w < words; w++) {
113
+ const add = before[kBase + w] & ~known[iBase + w];
114
+ if (add === 0) {
115
+ continue;
116
+ }
117
+ before[iBase + w] |= add;
118
+ known[iBase + w] |= add;
119
+ // Set the mirror relationship (j after i) for each newly known pair.
120
+ let bits = add;
121
+ while (bits !== 0) {
122
+ const lowest = bits & -bits;
123
+ const j = (w << 5) + (31 - Math.clz32(lowest));
124
+ sign[i * n + j] = -1;
125
+ known[j * words + (i >> 5)] |= 1 << (i & 31);
126
+ sign[j * n + i] = 1;
127
+ bits ^= lowest;
54
128
  }
55
129
  }
56
130
  }
57
131
  }
58
- // Sort using transitive order, falling back to lower latest epoch first.
59
132
  const indexMap = new Map(items.map((item, i) => [item, i]));
60
133
  const result = items.slice();
61
134
  result.sort((a, b) => {
62
135
  const ai = indexMap.get(a);
63
136
  const bi = indexMap.get(b);
64
- const transitiveOrder = order[ai][bi];
65
- if (transitiveOrder !== null) {
66
- return transitiveOrder;
137
+ if ((known[ai * words + (bi >> 5)] >> (bi & 31)) & 1) {
138
+ return sign[ai * n + bi];
139
+ }
140
+ if ((before[ai * words + (bi >> 5)] >> (bi & 31)) & 1) {
141
+ return -1;
142
+ }
143
+ if ((before[bi * words + (ai >> 5)] >> (ai & 31)) & 1) {
144
+ return 1;
67
145
  }
68
146
  // No transitive relationship — lower latest epoch first
69
147
  return a.nonce[a.nonce.length - 1][0] - b.nonce[b.nonce.length - 1][0];
@@ -3,6 +3,7 @@ export type ImageMetadata = {
3
3
  readonly width: number;
4
4
  readonly height: number;
5
5
  };
6
+ export declare const getCachedImageMetadata: (src: string) => ImageMetadata | null;
6
7
  export declare const getImageMetadataFromData: (data: Uint8Array<ArrayBufferLike>) => ImageMetadata | null;
7
8
  export declare const getImageMetadata: (src: string) => Promise<ImageMetadata | null>;
8
9
  export declare const useImageMetadata: (src: string | null) => ImageMetadata | null;
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useImageMetadata = exports.getImageMetadata = exports.getImageMetadataFromData = void 0;
3
+ exports.useImageMetadata = exports.getImageMetadata = exports.getImageMetadataFromData = exports.getCachedImageMetadata = void 0;
4
4
  const studio_shared_1 = require("@remotion/studio-shared");
5
5
  const react_1 = require("react");
6
6
  const cache = new Map();
7
7
  const pendingRequests = new Map();
8
+ const getCachedImageMetadata = (src) => {
9
+ var _a;
10
+ return (_a = cache.get(src)) !== null && _a !== void 0 ? _a : null;
11
+ };
12
+ exports.getCachedImageMetadata = getCachedImageMetadata;
8
13
  const formatImageType = (fileType) => {
9
14
  if (fileType === 'webp') {
10
15
  return 'WebP';
@@ -58,11 +63,9 @@ const getImageMetadata = (src) => {
58
63
  };
59
64
  exports.getImageMetadata = getImageMetadata;
60
65
  const useImageMetadata = (src) => {
61
- var _a;
62
- const [imageMetadata, setImageMetadata] = (0, react_1.useState)(src ? ((_a = cache.get(src)) !== null && _a !== void 0 ? _a : null) : null);
66
+ const [imageMetadata, setImageMetadata] = (0, react_1.useState)(src ? (0, exports.getCachedImageMetadata)(src) : null);
63
67
  (0, react_1.useEffect)(() => {
64
- var _a;
65
- const cached = src ? ((_a = cache.get(src)) !== null && _a !== void 0 ? _a : null) : null;
68
+ const cached = src ? (0, exports.getCachedImageMetadata)(src) : null;
66
69
  setImageMetadata(cached);
67
70
  if (!src || cached) {
68
71
  return;
@@ -4,6 +4,7 @@ exports.useKeybinding = exports.areKeyboardShortcutsDisabled = void 0;
4
4
  const react_1 = require("react");
5
5
  const keybindings_1 = require("../state/keybindings");
6
6
  const z_index_1 = require("../state/z-index");
7
+ const is_mac_1 = require("./is-mac");
7
8
  const studio_runtime_config_1 = require("./studio-runtime-config");
8
9
  if (!(0, studio_runtime_config_1.getStudioKeyboardShortcutsEnabled)()) {
9
10
  // eslint-disable-next-line no-console
@@ -29,9 +30,7 @@ const useKeybinding = () => {
29
30
  };
30
31
  }
31
32
  const listener = (e) => {
32
- const commandKey = window.navigator.platform.startsWith('Mac')
33
- ? e.metaKey
34
- : e.ctrlKey;
33
+ const commandKey = is_mac_1.isMac ? e.metaKey : e.ctrlKey;
35
34
  // Apparently, e.key can be undefined in Edge:
36
35
  // https://github.com/remotion-dev/remotion/issues/5637
37
36
  if (!e.key) {
@@ -12,5 +12,6 @@ export type MediaMetadata = {
12
12
  hasVideoTrack: boolean | null;
13
13
  hasAudioTrack: boolean | null;
14
14
  };
15
+ export declare const getCachedMediaMetadata: (src: string) => MediaMetadata | null;
15
16
  export declare const getMediaMetadata: (src: string) => Promise<MediaMetadata | null>;
16
17
  export declare const useMediaMetadata: (src: string | null) => MediaMetadata | null;
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useMediaMetadata = exports.getMediaMetadata = void 0;
3
+ exports.useMediaMetadata = exports.getMediaMetadata = exports.getCachedMediaMetadata = void 0;
4
4
  const media_utils_1 = require("@remotion/media-utils");
5
5
  const mediabunny_1 = require("mediabunny");
6
6
  const react_1 = require("react");
7
7
  const get_duration_or_compute_1 = require("./get-duration-or-compute");
8
8
  const cache = new Map();
9
9
  const pendingRequests = new Map();
10
+ const getCachedMediaMetadata = (src) => {
11
+ var _a;
12
+ return (_a = cache.get(src)) !== null && _a !== void 0 ? _a : null;
13
+ };
14
+ exports.getCachedMediaMetadata = getCachedMediaMetadata;
10
15
  const safeCall = async (fn) => {
11
16
  try {
12
17
  return await fn();
@@ -116,11 +121,9 @@ const getMediaMetadata = (src) => {
116
121
  };
117
122
  exports.getMediaMetadata = getMediaMetadata;
118
123
  const useMediaMetadata = (src) => {
119
- var _a;
120
- const [mediaMetadata, setMediaMetadata] = (0, react_1.useState)(src ? ((_a = cache.get(src)) !== null && _a !== void 0 ? _a : null) : null);
124
+ const [mediaMetadata, setMediaMetadata] = (0, react_1.useState)(src ? (0, exports.getCachedMediaMetadata)(src) : null);
121
125
  (0, react_1.useEffect)(() => {
122
- var _a;
123
- const cached = src ? ((_a = cache.get(src)) !== null && _a !== void 0 ? _a : null) : null;
126
+ const cached = src ? (0, exports.getCachedMediaMetadata)(src) : null;
124
127
  setMediaMetadata(cached);
125
128
  if (!src || cached) {
126
129
  return;
@@ -39,6 +39,13 @@ const openExternal = (link) => {
39
39
  };
40
40
  const rotate = {
41
41
  transform: `rotate(90deg)`,
42
+ color: 'inherit',
43
+ };
44
+ const iconContainer = {
45
+ color: 'inherit',
46
+ };
47
+ const iconPath = {
48
+ color: 'inherit',
42
49
  };
43
50
  const ICON_SIZE = 16;
44
51
  const getFileMenu = ({ readOnlyStudio, closeMenu, previewServerState, setSelectedModal, }) => {
@@ -235,7 +242,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
235
242
  let struct = [
236
243
  {
237
244
  id: 'remotion',
238
- label: (jsx_runtime_1.jsx(layout_1.Row, { align: "center", justify: "center", children: jsx_runtime_1.jsx("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: jsx_runtime_1.jsx("path", { fill: colors_1.WHITE_HEX, stroke: colors_1.WHITE_HEX, strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }) })),
245
+ label: (jsx_runtime_1.jsx(layout_1.Row, { align: "center", justify: "center", style: iconContainer, children: jsx_runtime_1.jsx("svg", { width: ICON_SIZE, height: ICON_SIZE, viewBox: "-100 -100 400 400", style: rotate, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, stroke: colors_1.CURRENT_COLOR, style: iconPath, strokeWidth: "100", strokeLinejoin: "round", d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z" }) }) })),
239
246
  leaveLeftPadding: false,
240
247
  items: [
241
248
  {
@@ -574,6 +581,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
574
581
  type: 'quick-switcher',
575
582
  mode: 'compositions',
576
583
  invocationTimestamp: Date.now(),
584
+ assetSelection: null,
577
585
  });
578
586
  },
579
587
  type: 'item',
@@ -762,6 +770,7 @@ const useMenuStructure = (closeMenu, readOnlyStudio) => {
762
770
  type: 'quick-switcher',
763
771
  mode: 'docs',
764
772
  invocationTimestamp: Date.now(),
773
+ assetSelection: null,
765
774
  });
766
775
  },
767
776
  keyHint: '?',
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const CaretRight: () => import("react/jsx-runtime").JSX.Element;
3
3
  export declare const CaretDown: React.FC<{
4
+ readonly color?: string;
4
5
  readonly small?: boolean;
5
6
  }>;
6
7
  export declare const AngleDown: React.FC<{
@@ -18,8 +18,8 @@ const angleDown = {
18
18
  };
19
19
  const CaretRight = () => (jsx_runtime_1.jsx("svg", { viewBox: "0 0 192 512", style: caret, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
20
20
  exports.CaretRight = CaretRight;
21
- const CaretDown = ({ small = false, }) => {
22
- return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 320 512", style: small ? caretDownSmall : caretDown, children: jsx_runtime_1.jsx("path", { fill: colors_1.CURRENT_COLOR, d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
21
+ const CaretDown = ({ color = colors_1.CURRENT_COLOR, small = false }) => {
22
+ return (jsx_runtime_1.jsx("svg", { viewBox: "0 0 320 512", style: small ? caretDownSmall : caretDown, children: jsx_runtime_1.jsx("path", { fill: color, d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
23
23
  };
24
24
  exports.CaretDown = CaretDown;
25
25
  const AngleDown = ({ down }) => {
@@ -0,0 +1,5 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ export declare const PenIcon: React.FC<SVGProps<SVGSVGElement> & {
4
+ readonly color: string;
5
+ }>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PenIcon = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const PenIcon = ({ color, ...props }) => {
6
+ return (jsx_runtime_1.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: jsx_runtime_1.jsx("path", { fill: color, d: "M18.7 2.3a1 1 0 0 0-1.4 0L5.2 14.4a1 1 0 0 0-.26.46l-1.4 4.95a.5.5 0 0 0 .62.62l4.95-1.4a1 1 0 0 0 .46-.26L21.7 6.7a1 1 0 0 0 0-1.4l-3-3Zm-10.33 14.9-2.4.68.68-2.4L15.5 6.62l1.73 1.73-8.86 8.85Zm10.28-10.27L16.92 5.2 18 4.12l1.73 1.73-1.08 1.08Z" }) }));
7
+ };
8
+ exports.PenIcon = PenIcon;