@remotion/studio 4.0.225 → 4.0.227

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 (128) hide show
  1. package/.turbo/turbo-formatting.log +7 -0
  2. package/.turbo/turbo-lint.log +15 -0
  3. package/.turbo/turbo-make.log +2 -2
  4. package/.turbo/turbo-test.log +86 -0
  5. package/dist/components/AudioWaveform.d.ts +8 -8
  6. package/dist/components/AudioWaveformBar.d.ts +1 -1
  7. package/dist/components/Checkbox.d.ts +4 -4
  8. package/dist/components/ControlButton.d.ts +1 -1
  9. package/dist/components/CopyButton.d.ts +3 -3
  10. package/dist/components/CurrentCompositionSideEffects.d.ts +1 -1
  11. package/dist/components/EditorContexts.d.ts +2 -2
  12. package/dist/components/EditorRuler/Ruler.d.ts +7 -7
  13. package/dist/components/EditorRuler/index.d.ts +4 -4
  14. package/dist/components/FpsCounter.d.ts +1 -1
  15. package/dist/components/JSONViewer.d.ts +1 -1
  16. package/dist/components/MediaVolumeProvider.d.ts +1 -1
  17. package/dist/components/Menu/MenuSubItem.d.ts +13 -13
  18. package/dist/components/Menu/SubMenu.d.ts +5 -5
  19. package/dist/components/ModalsProvider.d.ts +1 -1
  20. package/dist/components/NewComposition/CancelButton.d.ts +1 -1
  21. package/dist/components/NewComposition/DiffPreview.d.ts +1 -1
  22. package/dist/components/NewComposition/DuplicateComposition.js +0 -1
  23. package/dist/components/NewComposition/MenuContent.d.ts +8 -8
  24. package/dist/components/NewComposition/NewCompDuration.d.ts +2 -2
  25. package/dist/components/NewComposition/RemInput.d.ts +3 -3
  26. package/dist/components/NewComposition/RemInputTypeColor.d.ts +2 -2
  27. package/dist/components/NewComposition/RemTextarea.d.ts +1 -1
  28. package/dist/components/NewComposition/ValidationMessage.d.ts +3 -3
  29. package/dist/components/Notifications/ColorDot.d.ts +1 -1
  30. package/dist/components/Notifications/Notification.d.ts +5 -5
  31. package/dist/components/PlaybackKeyboardShortcutsManager.d.ts +1 -1
  32. package/dist/components/PlaybackRateSelector.d.ts +2 -2
  33. package/dist/components/QuickSwitcher/NoResults.d.ts +2 -2
  34. package/dist/components/QuickSwitcher/QuickSwitcher.d.ts +3 -3
  35. package/dist/components/QuickSwitcher/QuickSwitcherContent.d.ts +3 -3
  36. package/dist/components/QuickSwitcher/QuickSwitcherResult.d.ts +2 -2
  37. package/dist/components/RenderModal/EnforceAudioTrackSetting.d.ts +3 -3
  38. package/dist/components/RenderModal/EnvInput.d.ts +8 -8
  39. package/dist/components/RenderModal/FrameRangeSetting.d.ts +5 -5
  40. package/dist/components/RenderModal/GuiRenderStatus.d.ts +1 -1
  41. package/dist/components/RenderModal/InfoTooltip.d.ts +3 -3
  42. package/dist/components/RenderModal/MultiRangeSlider.d.ts +7 -7
  43. package/dist/components/RenderModal/MutedSetting.d.ts +3 -3
  44. package/dist/components/RenderModal/NumberOfLoopsSetting.d.ts +2 -2
  45. package/dist/components/RenderModal/NumberSetting.d.ts +8 -8
  46. package/dist/components/RenderModal/OptionExplainer.d.ts +1 -1
  47. package/dist/components/RenderModal/RenderModalAdvanced.d.ts +34 -34
  48. package/dist/components/RenderModal/RenderModalAudio.d.ts +17 -17
  49. package/dist/components/RenderModal/RenderModalBasic.d.ts +16 -16
  50. package/dist/components/RenderModal/RenderModalEnvironmentVariables.d.ts +2 -2
  51. package/dist/components/RenderModal/RenderModalGif.d.ts +6 -6
  52. package/dist/components/RenderModal/RenderModalOutputName.d.ts +6 -6
  53. package/dist/components/RenderModal/RenderModalPicture.d.ts +25 -25
  54. package/dist/components/RenderModal/RenderStatusModal.d.ts +1 -1
  55. package/dist/components/RenderModal/RenderStatusModal.js +1 -1
  56. package/dist/components/RenderModal/SchemaEditor/Fieldset.d.ts +3 -3
  57. package/dist/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +11 -11
  58. package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +1 -1
  59. package/dist/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +2 -2
  60. package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +4 -4
  61. package/dist/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +2 -2
  62. package/dist/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +11 -11
  63. package/dist/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +2 -2
  64. package/dist/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +5 -5
  65. package/dist/components/RenderModal/SeparateAudioOption.d.ts +7 -7
  66. package/dist/components/RenderModal/WarningIndicatorButton.d.ts +3 -3
  67. package/dist/components/RenderPreview.d.ts +2 -2
  68. package/dist/components/RenderQueue/CircularProgress.d.ts +1 -1
  69. package/dist/components/RenderQueue/RenderQueueError.d.ts +1 -1
  70. package/dist/components/RenderQueue/RenderQueueItemCancelButton.d.ts +1 -1
  71. package/dist/components/RenderQueue/RenderQueueItemStatus.d.ts +1 -1
  72. package/dist/components/RenderQueue/RenderQueueOpenInFolder.d.ts +1 -1
  73. package/dist/components/RenderQueue/RenderQueueOutputName.d.ts +1 -1
  74. package/dist/components/RenderQueue/RenderQueueProgressMessage.d.ts +1 -1
  75. package/dist/components/RenderQueue/RenderQueueRemoveItem.d.ts +1 -1
  76. package/dist/components/RenderQueue/context.d.ts +1 -1
  77. package/dist/components/SegmentedControl.d.ts +2 -2
  78. package/dist/components/SetTimelineInOutProvider.d.ts +1 -1
  79. package/dist/components/ShowGuidesProvider.d.ts +1 -1
  80. package/dist/components/ShowRulersProvider.d.ts +1 -1
  81. package/dist/components/Splitter/SplitterElement.d.ts +3 -3
  82. package/dist/components/Splitter/SplitterHandle.d.ts +2 -2
  83. package/dist/components/Tabs/vertical.d.ts +4 -4
  84. package/dist/components/Timeline/LoopedTimelineIndicators.d.ts +1 -1
  85. package/dist/components/Timeline/TimelineCollapseToggle.d.ts +2 -2
  86. package/dist/components/Timeline/TimelineInOutPointerHandle.d.ts +3 -3
  87. package/dist/components/Timeline/TimelineList.d.ts +1 -1
  88. package/dist/components/Timeline/TimelineListItem.d.ts +3 -3
  89. package/dist/components/Timeline/TimelineScrollable.d.ts +1 -1
  90. package/dist/components/Timeline/TimelineSequence.d.ts +1 -1
  91. package/dist/components/Timeline/TimelineSequenceFrame.d.ts +2 -2
  92. package/dist/components/Timeline/TimelineVideoInfo.d.ts +1 -1
  93. package/dist/components/ZoomGesturesProvider.d.ts +1 -1
  94. package/dist/components/get-zod-if-possible.d.ts +1 -1
  95. package/dist/components/get-zod-if-possible.js +2 -2
  96. package/dist/components/layout.d.ts +15 -15
  97. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +2 -2
  98. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +1 -1
  99. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +2 -2
  100. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +5 -5
  101. package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts +5 -5
  102. package/dist/error-overlay/remotion-overlay/ErrorMessage.d.ts +1 -1
  103. package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts +4 -4
  104. package/dist/error-overlay/remotion-overlay/HelpLink.d.ts +2 -2
  105. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +2 -2
  106. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +2 -2
  107. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +4 -4
  108. package/dist/error-overlay/remotion-overlay/carets.d.ts +1 -1
  109. package/dist/esm/internals.mjs +5 -3
  110. package/dist/helpers/colors.d.ts +1 -1
  111. package/dist/helpers/presets-labels.d.ts +1 -1
  112. package/dist/hot-middleware-client/process-update.js +1 -1
  113. package/dist/icons/caret.d.ts +1 -1
  114. package/dist/icons/folder.d.ts +3 -3
  115. package/dist/icons/plus.d.ts +1 -1
  116. package/dist/icons/render.d.ts +3 -3
  117. package/dist/icons/still.d.ts +1 -1
  118. package/dist/icons/video.d.ts +1 -1
  119. package/dist/state/folders.d.ts +1 -1
  120. package/dist/state/highest-z-index.d.ts +1 -1
  121. package/dist/state/keybindings.d.ts +1 -1
  122. package/dist/state/preview-size.d.ts +1 -1
  123. package/dist/state/timeline-zoom.d.ts +1 -1
  124. package/dist/state/z-index.d.ts +3 -3
  125. package/eslint.config.mjs +40 -0
  126. package/package.json +11 -9
  127. package/tsconfig.tsbuildinfo +1 -1
  128. package/.eslintrc +0 -35
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const ShowRulersProvider: React.FC<{
3
- children: React.ReactNode;
3
+ readonly children: React.ReactNode;
4
4
  }>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const SplitterElement: React.FC<{
3
- type: 'flexer' | 'anti-flexer';
4
- children: React.ReactNode;
5
- sticky: React.ReactNode | null;
3
+ readonly type: 'flexer' | 'anti-flexer';
4
+ readonly children: React.ReactNode;
5
+ readonly sticky: React.ReactNode | null;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const SPLITTER_HANDLE_SIZE = 3;
3
3
  export declare const SplitterHandle: React.FC<{
4
- allowToCollapse: 'right' | 'left' | 'none';
5
- onCollapse: () => void;
4
+ readonly allowToCollapse: 'right' | 'left' | 'none';
5
+ readonly onCollapse: () => void;
6
6
  }>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const VerticalTab: React.FC<{
3
- children: React.ReactNode;
4
- onClick: React.MouseEventHandler<HTMLButtonElement>;
5
- style?: React.CSSProperties;
6
- selected: boolean;
3
+ readonly children: React.ReactNode;
4
+ readonly onClick: React.MouseEventHandler<HTMLButtonElement>;
5
+ readonly style?: React.CSSProperties;
6
+ readonly selected: boolean;
7
7
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const LoopedTimelineIndicator: React.FC<{
3
- loops: number;
3
+ readonly loops: number;
4
4
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const TimelineCollapseToggle: React.FC<{
3
- collapsed: boolean;
4
- color: string;
3
+ readonly collapsed: boolean;
4
+ readonly color: string;
5
5
  }>;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  export declare const inPointerHandle: React.RefObject<HTMLDivElement>;
3
3
  export declare const outPointerHandle: React.RefObject<HTMLDivElement>;
4
4
  type Props = {
5
- dragging: boolean;
6
- type: 'in' | 'out';
7
- atFrame: number;
5
+ readonly dragging: boolean;
6
+ readonly type: 'in' | 'out';
7
+ readonly atFrame: number;
8
8
  };
9
9
  export declare const TimelineInOutPointerHandle: React.FC<Props>;
10
10
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
3
3
  export declare const TimelineList: React.FC<{
4
- timeline: TrackWithHash[];
4
+ readonly timeline: TrackWithHash[];
5
5
  }>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { TSequence } from 'remotion';
3
3
  export declare const TimelineListItem: React.FC<{
4
- sequence: TSequence;
5
- nestedDepth: number;
6
- isCompact: boolean;
4
+ readonly sequence: TSequence;
5
+ readonly nestedDepth: number;
6
+ readonly isCompact: boolean;
7
7
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const TimelineScrollable: React.FC<{
3
- children: React.ReactNode;
3
+ readonly children: React.ReactNode;
4
4
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { TSequence } from 'remotion';
3
3
  export declare const TimelineSequence: React.FC<{
4
- s: TSequence;
4
+ readonly s: TSequence;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const TimelineSequenceFrame: React.FC<{
3
- roundedFrame: number;
4
- premounted: boolean;
3
+ readonly roundedFrame: number;
4
+ readonly premounted: boolean;
5
5
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const TimelineVideoInfo: React.FC<{
3
- src: string;
3
+ readonly src: string;
4
4
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const ZoomGesturesProvider: React.FC<{
3
- children: React.ReactNode;
3
+ readonly children: React.ReactNode;
4
4
  }>;
@@ -6,5 +6,5 @@ export declare const getZTypesIfPossible: () => Promise<ZodTypesType | null>;
6
6
  export declare const useZodIfPossible: () => typeof import("zod/lib/external") | null;
7
7
  export declare const useZodTypesIfPossible: () => typeof import("@remotion/zod-types") | null;
8
8
  export declare const ZodProvider: React.FC<{
9
- children: React.ReactNode;
9
+ readonly children: React.ReactNode;
10
10
  }>;
@@ -31,7 +31,7 @@ const getZodIfPossible = async () => {
31
31
  const { z } = await Promise.resolve().then(() => __importStar(require('zod')));
32
32
  return z;
33
33
  }
34
- catch (err) {
34
+ catch (_a) {
35
35
  return null;
36
36
  }
37
37
  };
@@ -41,7 +41,7 @@ const getZTypesIfPossible = async () => {
41
41
  const mod = await Promise.resolve().then(() => __importStar(require('@remotion/zod-types')));
42
42
  return mod;
43
43
  }
44
- catch (err) {
44
+ catch (_a) {
45
45
  return null;
46
46
  }
47
47
  };
@@ -2,25 +2,25 @@ import type { HTMLAttributes } from 'react';
2
2
  import React from 'react';
3
3
  export declare const SPACING_UNIT = 8;
4
4
  export declare const Spacing: React.FC<{
5
- x?: number;
6
- y?: number;
7
- block?: boolean;
5
+ readonly x?: number;
6
+ readonly y?: number;
7
+ readonly block?: boolean;
8
8
  }>;
9
9
  export declare const Flex: React.FC<{
10
- children?: React.ReactNode;
10
+ readonly children?: React.ReactNode;
11
11
  }>;
12
12
  export declare const Row: React.FC<{
13
- justify?: 'center' | 'flex-start' | 'flex-end';
14
- align?: 'center';
15
- style?: React.CSSProperties;
16
- flex?: number;
17
- className?: string;
18
- children: React.ReactNode;
13
+ readonly justify?: 'center' | 'flex-start' | 'flex-end';
14
+ readonly align?: 'center';
15
+ readonly style?: React.CSSProperties;
16
+ readonly flex?: number;
17
+ readonly className?: string;
18
+ readonly children: React.ReactNode;
19
19
  } & HTMLAttributes<HTMLDivElement>>;
20
20
  export declare const Column: React.FC<{
21
- justify?: 'center';
22
- align?: 'center';
23
- style?: React.CSSProperties;
24
- className?: string;
25
- children: React.ReactNode;
21
+ readonly justify?: 'center';
22
+ readonly align?: 'center';
23
+ readonly style?: React.CSSProperties;
24
+ readonly className?: string;
25
+ readonly children: React.ReactNode;
26
26
  }>;
@@ -24,7 +24,7 @@ function registerStackTraceLimit(limit = MAX_STACK_LENGTH) {
24
24
  Error.stackTraceLimit = limit;
25
25
  stackTraceRegistered = true;
26
26
  }
27
- catch (e) {
27
+ catch (_a) {
28
28
  // Not all browsers support this so we don't care if it errors
29
29
  }
30
30
  }
@@ -36,7 +36,7 @@ function unregisterStackTraceLimit() {
36
36
  Error.stackTraceLimit = restoreStackTraceValue;
37
37
  stackTraceRegistered = false;
38
38
  }
39
- catch (e) {
39
+ catch (_a) {
40
40
  // Not all browsers support this so we don't care if it errors
41
41
  }
42
42
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const AskOnDiscord: React.FC<{
3
- canHaveKeyboardShortcuts: boolean;
3
+ readonly canHaveKeyboardShortcuts: boolean;
4
4
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { ScriptLine } from '@remotion/studio-shared';
2
2
  import React from 'react';
3
3
  export declare const CodeFrame: React.FC<{
4
- source: ScriptLine[];
5
- lineNumberWidth: number;
4
+ readonly source: ScriptLine[];
5
+ readonly lineNumberWidth: number;
6
6
  }>;
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import type { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
3
3
  export type OnRetry = null | (() => void);
4
4
  export declare const ErrorDisplay: React.FC<{
5
- display: ErrorRecord;
6
- keyboardShortcuts: boolean;
7
- onRetry: OnRetry;
8
- canHaveDismissButton: boolean;
9
- calculateMetadata: boolean;
5
+ readonly display: ErrorRecord;
6
+ readonly keyboardShortcuts: boolean;
7
+ readonly onRetry: OnRetry;
8
+ readonly canHaveDismissButton: boolean;
9
+ readonly calculateMetadata: boolean;
10
10
  }>;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { OnRetry } from './ErrorDisplay';
3
3
  export declare const ErrorLoader: React.FC<{
4
- error: Error;
5
- keyboardShortcuts: boolean;
6
- onRetry: OnRetry;
7
- canHaveDismissButton: boolean;
8
- calculateMetadata: boolean;
4
+ readonly error: Error;
5
+ readonly keyboardShortcuts: boolean;
6
+ readonly onRetry: OnRetry;
7
+ readonly canHaveDismissButton: boolean;
8
+ readonly calculateMetadata: boolean;
9
9
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const ErrorMessage: React.FC<{
3
- message: string;
3
+ readonly message: string;
4
4
  }>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const ErrorTitle: React.FC<{
3
- name: string;
4
- message: string;
5
- symbolicating: boolean;
6
- canHaveDismissButton: boolean;
3
+ readonly name: string;
4
+ readonly message: string;
5
+ readonly symbolicating: boolean;
6
+ readonly canHaveDismissButton: boolean;
7
7
  }>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { THelpLink } from './get-help-link';
3
3
  export declare const HelpLink: React.FC<{
4
- canHaveKeyboardShortcuts: boolean;
5
- link: THelpLink;
4
+ readonly canHaveKeyboardShortcuts: boolean;
5
+ readonly link: THelpLink;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { SymbolicatedStackFrame } from '@remotion/studio-shared';
2
2
  import React from 'react';
3
3
  export declare const OpenInEditor: React.FC<{
4
- stack: SymbolicatedStackFrame;
5
- canHaveKeyboardShortcuts: boolean;
4
+ readonly stack: SymbolicatedStackFrame;
5
+ readonly canHaveKeyboardShortcuts: boolean;
6
6
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const SearchGithubIssues: React.FC<{
3
- message: string;
4
- canHaveKeyboardShortcuts: boolean;
3
+ readonly message: string;
4
+ readonly canHaveKeyboardShortcuts: boolean;
5
5
  }>;
@@ -1,8 +1,8 @@
1
1
  import type { SymbolicatedStackFrame } from '@remotion/studio-shared';
2
2
  import React from 'react';
3
3
  export declare const StackElement: React.FC<{
4
- s: SymbolicatedStackFrame;
5
- lineNumberWidth: number;
6
- isFirst: boolean;
7
- defaultFunctionName: string;
4
+ readonly s: SymbolicatedStackFrame;
5
+ readonly lineNumberWidth: number;
6
+ readonly isFirst: boolean;
7
+ readonly defaultFunctionName: string;
8
8
  }>;
@@ -1,5 +1,5 @@
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
- invert: boolean;
4
+ readonly invert: boolean;
5
5
  }>;
@@ -10431,7 +10431,7 @@ var getZodIfPossible = async () => {
10431
10431
  try {
10432
10432
  const { z } = await import("zod");
10433
10433
  return z;
10434
- } catch (err) {
10434
+ } catch {
10435
10435
  return null;
10436
10436
  }
10437
10437
  };
@@ -10439,7 +10439,7 @@ var getZTypesIfPossible = async () => {
10439
10439
  try {
10440
10440
  const mod = await import("@remotion/zod-types");
10441
10441
  return mod;
10442
- } catch (err) {
10442
+ } catch {
10443
10443
  return null;
10444
10444
  }
10445
10445
  };
@@ -26137,7 +26137,9 @@ var buttonRow = {
26137
26137
  flexDirection: "row",
26138
26138
  justifyContent: "flex-end"
26139
26139
  };
26140
- var RenderStatusModal = ({ jobId }) => {
26140
+ var RenderStatusModal = ({
26141
+ jobId
26142
+ }) => {
26141
26143
  const { setSelectedModal } = useContext76(ModalsContext);
26142
26144
  const { jobs } = useContext76(RenderQueueContext);
26143
26145
  const job = jobs.find((j) => j.id === jobId);
@@ -24,4 +24,4 @@ export declare const TIMELINE_TRACK_SEPARATOR = "rgba(0, 0, 0, 0.3)";
24
24
  export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
25
25
  selected: boolean;
26
26
  hovered: boolean;
27
- }) => "transparent" | "rgba(255, 255, 255, 0.06)" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)";
27
+ }) => "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)" | "transparent";
@@ -1,2 +1,2 @@
1
1
  import type { X264Preset } from '@remotion/renderer';
2
- export declare const labelx264Preset: (profile: X264Preset) => "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
2
+ export declare const labelx264Preset: (profile: X264Preset) => "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
@@ -12,7 +12,7 @@ const url_state_1 = require("../helpers/url-state");
12
12
  if (!__webpack_module__.hot) {
13
13
  throw new Error('[Fast refresh] Hot Module Replacement is disabled.');
14
14
  }
15
- const hmrDocsUrl = 'https://webpack.js.org/concepts/hot-module-replacement/'; // eslint-disable-line max-len
15
+ const hmrDocsUrl = 'https://webpack.js.org/concepts/hot-module-replacement/';
16
16
  let lastHash;
17
17
  const failureStatuses = { abort: 1, fail: 1 };
18
18
  const applyOptions = {
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  export declare const CaretRight: () => import("react/jsx-runtime").JSX.Element;
3
3
  export declare const CaretDown: () => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const AngleDown: React.FC<{
5
- down: boolean;
5
+ readonly down: boolean;
6
6
  }>;
@@ -1,11 +1,11 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
3
  export declare const CollapsedFolderIcon: React.FC<SVGProps<SVGSVGElement> & {
4
- color: string;
4
+ readonly color: string;
5
5
  }>;
6
6
  export declare const ExpandedFolderIcon: React.FC<SVGProps<SVGSVGElement> & {
7
- color: string;
7
+ readonly color: string;
8
8
  }>;
9
9
  export declare const ExpandedFolderIconSolid: React.FC<SVGProps<SVGSVGElement> & {
10
- color: string;
10
+ readonly color: string;
11
11
  }>;
@@ -1,5 +1,5 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
3
  export declare const Plus: React.FC<SVGProps<SVGSVGElement> & {
4
- color: string;
4
+ readonly color: string;
5
5
  }>;
@@ -1,9 +1,9 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
3
  export declare const RenderIcon: React.FC<{
4
- svgProps: SVGProps<SVGSVGElement>;
4
+ readonly svgProps: SVGProps<SVGSVGElement>;
5
5
  }>;
6
6
  export declare const ThinRenderIcon: React.FC<{
7
- svgProps: SVGProps<SVGSVGElement>;
8
- fill: string;
7
+ readonly svgProps: SVGProps<SVGSVGElement>;
8
+ readonly fill: string;
9
9
  }>;
@@ -1,5 +1,5 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
3
  export declare const StillIcon: React.FC<SVGProps<SVGSVGElement> & {
4
- color: string;
4
+ readonly color: string;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  import type { SVGProps } from 'react';
2
2
  import React from 'react';
3
3
  export declare const FilmIcon: React.FC<SVGProps<SVGSVGElement> & {
4
- color: string;
4
+ readonly color: string;
5
5
  }>;
@@ -8,6 +8,6 @@ type TFolderContext = {
8
8
  };
9
9
  export declare const FolderContext: React.Context<TFolderContext>;
10
10
  export declare const FolderContextProvider: React.FC<{
11
- children: React.ReactNode;
11
+ readonly children: React.ReactNode;
12
12
  }>;
13
13
  export {};
@@ -6,6 +6,6 @@ type HighestZIndexContainer = {
6
6
  };
7
7
  export declare const HighestZIndexContext: React.Context<HighestZIndexContainer>;
8
8
  export declare const HighestZIndexProvider: React.FC<{
9
- children: React.ReactNode;
9
+ readonly children: React.ReactNode;
10
10
  }>;
11
11
  export {};
@@ -15,6 +15,6 @@ type KeybindingContextType = {
15
15
  };
16
16
  export declare const KeybindingContext: React.Context<KeybindingContextType>;
17
17
  export declare const KeybindingContextProvider: React.FC<{
18
- children: React.ReactNode;
18
+ readonly children: React.ReactNode;
19
19
  }>;
20
20
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const PreviewSizeProvider: React.FC<{
3
- children: React.ReactNode;
3
+ readonly children: React.ReactNode;
4
4
  }>;
@@ -6,5 +6,5 @@ export declare const TimelineZoomCtx: React.Context<{
6
6
  setZoom: (compositionId: string, prev: (prevZoom: number) => number) => void;
7
7
  }>;
8
8
  export declare const TimelineZoomContext: React.FC<{
9
- children: React.ReactNode;
9
+ readonly children: React.ReactNode;
10
10
  }>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  export declare const HigherZIndex: React.FC<{
3
- onEscape: () => void;
4
- onOutsideClick: (target: Node) => void;
5
- children: React.ReactNode;
3
+ readonly onEscape: () => void;
4
+ readonly onOutsideClick: (target: Node) => void;
5
+ readonly children: React.ReactNode;
6
6
  }>;
7
7
  export declare const useZIndex: () => {
8
8
  currentZIndex: number;
@@ -0,0 +1,40 @@
1
+ import {remotionFlatConfig} from '@remotion/eslint-config-internal';
2
+
3
+ const config = remotionFlatConfig({react: true});
4
+
5
+ export default {
6
+ ...config,
7
+ rules: {
8
+ ...config.rules,
9
+ 'no-console': 'error',
10
+ 'no-restricted-imports': [
11
+ 'error',
12
+ {
13
+ patterns: [
14
+ '@remotion/*/src',
15
+ '@remotion/*/src/*',
16
+ '@remotion/*/dist/*',
17
+ 'remotion/src/*',
18
+ ],
19
+ },
20
+ ],
21
+ '@typescript-eslint/no-use-before-define': 'off',
22
+ '@typescript-eslint/no-restricted-imports': [
23
+ 'error',
24
+ {
25
+ paths: [
26
+ {
27
+ name: 'zod',
28
+ message: 'Can only import zod as a type',
29
+ allowTypeImports: true,
30
+ },
31
+ {
32
+ name: '@remotion/zod-types',
33
+ message: 'Can only import @remotion/zod-types as a type',
34
+ allowTypeImports: true,
35
+ },
36
+ ],
37
+ },
38
+ ],
39
+ },
40
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.225",
6
+ "version": "4.0.227",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -18,18 +18,20 @@
18
18
  "memfs": "3.4.3",
19
19
  "source-map": "0.7.3",
20
20
  "open": "^8.4.2",
21
- "@remotion/player": "4.0.225",
22
- "@remotion/media-utils": "4.0.225",
23
- "@remotion/renderer": "4.0.225",
24
- "@remotion/studio-shared": "4.0.225",
25
- "remotion": "4.0.225"
21
+ "remotion": "4.0.227",
22
+ "@remotion/player": "4.0.227",
23
+ "@remotion/media-utils": "4.0.227",
24
+ "@remotion/renderer": "4.0.227",
25
+ "@remotion/studio-shared": "4.0.227"
26
26
  },
27
27
  "devDependencies": {
28
28
  "react": "18.3.1",
29
29
  "react-dom": "18.3.1",
30
30
  "@types/semver": "^7.3.4",
31
31
  "zod": "3.22.3",
32
- "@remotion/zod-types": "4.0.225"
32
+ "eslint": "9.14.0",
33
+ "@remotion/zod-types": "4.0.227",
34
+ "@remotion/eslint-config-internal": "4.0.227"
33
35
  },
34
36
  "publishConfig": {
35
37
  "access": "public"
@@ -52,8 +54,8 @@
52
54
  },
53
55
  "homepage": "https://www.remotion.dev/docs/studio/api",
54
56
  "scripts": {
55
- "lint": "eslint src --ext ts,tsx",
56
- "make": "bun --env-file=../.env.bundle bundle.ts",
57
+ "lint": "eslint src",
58
+ "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts",
57
59
  "test": "bun test src",
58
60
  "formatting": "prettier src --check"
59
61
  }