@remotion/cli 4.0.0-alpha13 → 4.0.0-alpha16

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 (189) hide show
  1. package/dist/ansi/ansi-diff.d.ts +1 -1
  2. package/dist/benchmark.js +29 -14
  3. package/dist/cleanup-before-quit.js +3 -0
  4. package/dist/composition-prompts.d.ts +2 -2
  5. package/dist/compositions.js +8 -7
  6. package/dist/config/concurrency.d.ts +1 -1
  7. package/dist/config/index.d.ts +2 -2
  8. package/dist/config/jpeg-quality.d.ts +1 -1
  9. package/dist/config/jpeg-quality.js +1 -1
  10. package/dist/config/number-of-gif-loops.d.ts +1 -1
  11. package/dist/config/override-webpack.d.ts +1 -1
  12. package/dist/config/scale.d.ts +1 -1
  13. package/dist/config/user-agent.d.ts +1 -1
  14. package/dist/editor/components/CanvasOrLoading.js +3 -0
  15. package/dist/editor/components/Checkbox.d.ts +1 -0
  16. package/dist/editor/components/Checkbox.js +2 -2
  17. package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
  18. package/dist/editor/components/InlineAction.d.ts +1 -1
  19. package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
  20. package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
  21. package/dist/editor/components/NewComposition/ComboBox.d.ts +4 -4
  22. package/dist/editor/components/NewComposition/CopyHint.js +1 -1
  23. package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -1
  24. package/dist/editor/components/NewComposition/RemInput.d.ts +3 -3
  25. package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +2 -1
  26. package/dist/editor/components/NewComposition/RemInputTypeColor.js +1 -1
  27. package/dist/editor/components/NewComposition/RemTextarea.d.ts +1 -1
  28. package/dist/editor/components/Notifications/NotificationCenter.d.ts +2 -2
  29. package/dist/editor/components/QuickSwitcher/NoResults.d.ts +1 -1
  30. package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +2 -2
  31. package/dist/editor/components/RenderModal/DataEditor.d.ts +2 -3
  32. package/dist/editor/components/RenderModal/DataEditor.js +14 -5
  33. package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +1 -1
  34. package/dist/editor/components/RenderModal/MutedSetting.js +1 -1
  35. package/dist/editor/components/RenderModal/RenderModal.d.ts +1 -1
  36. package/dist/editor/components/RenderModal/RenderModal.js +2 -2
  37. package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +1 -1
  38. package/dist/editor/components/RenderModal/RenderModalAdvanced.js +1 -1
  39. package/dist/editor/components/RenderModal/RenderModalAudio.js +1 -1
  40. package/dist/editor/components/RenderModal/RenderModalGif.js +1 -1
  41. package/dist/editor/components/RenderModal/RenderModalInput.d.ts +1 -1
  42. package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +1 -1
  43. package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +1 -1
  44. package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
  45. package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
  46. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -1
  47. package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +2 -3
  48. package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +1 -3
  49. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +1 -7
  50. package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +14 -22
  51. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
  52. package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
  53. package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
  54. package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
  55. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +1 -1
  56. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +51 -42
  57. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +1 -1
  58. package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +5 -5
  59. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +3 -1
  60. package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +14 -13
  61. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +1 -1
  62. package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +12 -14
  63. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +1 -1
  64. package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +9 -15
  65. package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +1 -1
  66. package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +2 -2
  67. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +1 -1
  68. package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +5 -30
  69. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -1
  70. package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +8 -11
  71. package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
  72. package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
  73. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +1 -1
  74. package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -3
  75. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +1 -1
  76. package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +2 -2
  77. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +1 -1
  78. package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +10 -13
  79. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +1 -1
  80. package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +39 -45
  81. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +1 -1
  82. package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +2 -2
  83. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +2 -1
  84. package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +13 -48
  85. package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +1 -1
  86. package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +7 -10
  87. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +1 -1
  88. package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +8 -11
  89. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +2 -2
  90. package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +21 -21
  91. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +1 -1
  92. package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +6 -6
  93. package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +3 -0
  94. package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +1 -1
  95. package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +3 -3
  96. package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +1 -1
  97. package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +10 -5
  98. package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +56 -15
  99. package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -1
  100. package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +1 -1
  101. package/dist/editor/components/RenderModal/layout.d.ts +0 -1
  102. package/dist/editor/components/RenderModal/layout.js +1 -7
  103. package/dist/editor/components/RenderQueue/actions.d.ts +2 -1
  104. package/dist/editor/components/RenderQueue/actions.js +7 -2
  105. package/dist/editor/components/RenderQueue/context.d.ts +1 -1
  106. package/dist/editor/components/RightPanel.d.ts +1 -1
  107. package/dist/editor/components/RightPanel.js +1 -1
  108. package/dist/editor/components/SegmentedControl.d.ts +1 -1
  109. package/dist/editor/components/SegmentedControl.js +2 -0
  110. package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
  111. package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
  112. package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +1 -1
  113. package/dist/editor/components/Timeline/TimelineZoomControls.js +1 -1
  114. package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
  115. package/dist/editor/components/UpdateCheck.d.ts +1 -1
  116. package/dist/editor/components/UpdateCheck.js +2 -4
  117. package/dist/editor/components/get-zod-if-possible.d.ts +2 -2
  118. package/dist/editor/helpers/client-id.d.ts +1 -1
  119. package/dist/editor/helpers/colors.d.ts +1 -1
  120. package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +3 -3
  121. package/dist/editor/helpers/persist-open-folders.d.ts +1 -1
  122. package/dist/editor/helpers/render-modal-sections.d.ts +1 -1
  123. package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
  124. package/dist/editor/icons/plus.d.ts +3 -1
  125. package/dist/editor/icons/plus.js +2 -2
  126. package/dist/editor/state/checkerboard.d.ts +1 -1
  127. package/dist/editor/state/editor-zoom-gestures.d.ts +1 -1
  128. package/dist/editor/state/folders.d.ts +1 -1
  129. package/dist/editor/state/highest-z-index.d.ts +1 -1
  130. package/dist/editor/state/in-out.d.ts +2 -2
  131. package/dist/editor/state/keybindings.d.ts +4 -4
  132. package/dist/editor/state/modals.d.ts +4 -4
  133. package/dist/editor/state/preview-size.d.ts +1 -1
  134. package/dist/editor/state/sidebar.d.ts +3 -3
  135. package/dist/editor/state/timeline-ref.d.ts +1 -1
  136. package/dist/event-source-events.d.ts +1 -1
  137. package/dist/file-watcher.d.ts +1 -1
  138. package/dist/get-cli-options.d.ts +1 -1
  139. package/dist/get-composition-id.d.ts +10 -11
  140. package/dist/get-composition-id.js +9 -6
  141. package/dist/get-composition-with-dimension-override.d.ts +4 -4
  142. package/dist/get-composition-with-dimension-override.js +2 -2
  143. package/dist/index.d.ts +5 -4
  144. package/dist/log.d.ts +1 -0
  145. package/dist/parse-command-line.d.ts +1 -1
  146. package/dist/preview-server/api-routes.js +2 -0
  147. package/dist/preview-server/api-types.d.ts +5 -4
  148. package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
  149. package/dist/preview-server/dev-middleware/middleware.d.ts +1 -1
  150. package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
  151. package/dist/preview-server/dev-middleware/types.d.ts +1 -1
  152. package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
  153. package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +3 -3
  154. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
  155. package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
  156. package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
  157. package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
  158. package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +2 -2
  159. package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
  160. package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
  161. package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
  162. package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
  163. package/dist/preview-server/get-package-manager.d.ts +2 -2
  164. package/dist/preview-server/hot-middleware/client.d.ts +1 -1
  165. package/dist/preview-server/hot-middleware/types.d.ts +4 -4
  166. package/dist/preview-server/live-events.d.ts +1 -1
  167. package/dist/preview-server/live-events.js +10 -1
  168. package/dist/preview-server/project-info.d.ts +1 -1
  169. package/dist/preview-server/render-queue/job.d.ts +30 -21
  170. package/dist/preview-server/render-queue/process-still.js +1 -2
  171. package/dist/preview-server/routes/update-available.d.ts +3 -0
  172. package/dist/preview-server/routes/update-available.js +9 -0
  173. package/dist/preview-server/routes.js +1 -11
  174. package/dist/preview-server/update-available.d.ts +2 -10
  175. package/dist/progress-bar.d.ts +4 -4
  176. package/dist/progress-bar.js +3 -2
  177. package/dist/progress-types.d.ts +4 -4
  178. package/dist/render-flows/render.js +35 -28
  179. package/dist/render-flows/still.d.ts +1 -1
  180. package/dist/render-flows/still.js +23 -10
  181. package/dist/required-chromium-options.d.ts +2 -2
  182. package/dist/server-ready-comment.d.ts +1 -1
  183. package/dist/server-ready-comment.js +2 -2
  184. package/dist/setup-cache.js +10 -0
  185. package/dist/show-compositions-picker.d.ts +1 -1
  186. package/dist/step.d.ts +1 -1
  187. package/dist/studio.js +3 -3
  188. package/dist/truthy.d.ts +1 -1
  189. package/package.json +10 -12
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- declare type Options = {
2
+ type Options = {
3
3
  width?: number;
4
4
  height?: number;
5
5
  };
package/dist/benchmark.js CHANGED
@@ -32,9 +32,9 @@ const runBenchmark = async (runs, options, onProgress) => {
32
32
  const timeTaken = [];
33
33
  for (let run = 0; run < runs; ++run) {
34
34
  const startTime = performance.now();
35
- await (0, renderer_1.renderMedia)({
36
- ...options,
35
+ await renderer_1.RenderInternals.internalRenderMedia({
37
36
  onProgress: ({ progress }) => onProgress === null || onProgress === void 0 ? void 0 : onProgress(run, progress),
37
+ ...options,
38
38
  });
39
39
  const endTime = performance.now();
40
40
  timeTaken.push(endTime - startTime);
@@ -94,18 +94,20 @@ const benchmarkCommand = async (remotionRoot, args) => {
94
94
  process.exit(1);
95
95
  }
96
96
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
97
- const { inputProps, envVariables, browserExecutable, chromiumOptions, port, puppeteerTimeout, browser, scale, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
97
+ const { inputProps, envVariables, browserExecutable, chromiumOptions, port, puppeteerTimeout, browser, scale, publicDir, proResProfile, frameRange: defaultFrameRange, overwrite, jpegQuality, crf: configFileCrf, pixelFormat, scale: configFileScale, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, height, width, concurrency: unparsedConcurrency, logLevel, } = await (0, get_cli_options_1.getCliOptions)({
98
98
  isLambda: false,
99
99
  type: 'series',
100
100
  remotionRoot,
101
101
  });
102
102
  log_1.Log.verbose('Entry point:', fullEntryPoint, 'reason:', reason);
103
- const browserInstance = (0, renderer_1.openBrowser)(browser, {
103
+ const browserInstance = renderer_1.RenderInternals.internalOpenBrowser({
104
+ browser,
104
105
  browserExecutable,
105
106
  shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
106
107
  chromiumOptions,
107
108
  forceDeviceScaleFactor: scale,
108
109
  indent: false,
110
+ viewport: null,
109
111
  });
110
112
  const { urlOrBundle: bundleLocation, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
111
113
  fullPath: fullEntryPoint,
@@ -123,13 +125,21 @@ const benchmarkCommand = async (remotionRoot, args) => {
123
125
  });
124
126
  (0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
125
127
  const puppeteerInstance = await browserInstance;
126
- const comps = await (0, renderer_1.getCompositions)(bundleLocation, {
128
+ const verbose = renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose');
129
+ const comps = await renderer_1.RenderInternals.internalGetCompositions({
130
+ serveUrlOrWebpackUrl: bundleLocation,
127
131
  inputProps,
128
132
  envVariables,
129
133
  chromiumOptions,
130
134
  timeoutInMilliseconds: puppeteerTimeout,
131
135
  port,
132
136
  puppeteerInstance,
137
+ browserExecutable,
138
+ indent: false,
139
+ onBrowserLog: null,
140
+ // Intentionally disabling server to not cache results
141
+ server: undefined,
142
+ verbose,
133
143
  });
134
144
  const ids = (remainingArgs[0]
135
145
  ? remainingArgs[0]
@@ -157,11 +167,6 @@ const benchmarkCommand = async (remotionRoot, args) => {
157
167
  uiCodec: null,
158
168
  });
159
169
  for (const composition of compositions) {
160
- const { proResProfile, frameRange: defaultFrameRange, overwrite, jpegQuality, crf: configFileCrf, pixelFormat, scale: configFileScale, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, height, width, concurrency: unparsedConcurrency, logLevel, } = await (0, get_cli_options_1.getCliOptions)({
161
- isLambda: false,
162
- type: 'series',
163
- remotionRoot,
164
- });
165
170
  const concurrency = getValidConcurrency(unparsedConcurrency);
166
171
  benchmark[composition.id] = {};
167
172
  for (const con of concurrency) {
@@ -174,13 +179,13 @@ const benchmarkCommand = async (remotionRoot, args) => {
174
179
  log_1.Log.info();
175
180
  log_1.Log.info(`${chalk_1.chalk.bold(`Benchmark #${count++}:`)} ${chalk_1.chalk.gray(`composition=${composition.id} concurrency=${con} codec=${codec} (${codecReason})`)}`);
176
181
  const timeTaken = await runBenchmark(runs, {
177
- outputLocation: undefined,
182
+ outputLocation: null,
178
183
  composition: {
179
184
  ...composition,
180
185
  width: width !== null && width !== void 0 ? width : composition.width,
181
186
  height: height !== null && height !== void 0 ? height : composition.height,
182
187
  },
183
- crf: configFileCrf,
188
+ crf: configFileCrf !== null && configFileCrf !== void 0 ? configFileCrf : null,
184
189
  envVariables,
185
190
  frameRange: defaultFrameRange,
186
191
  imageFormat: (0, image_formats_1.getVideoImageFormat)({
@@ -192,14 +197,14 @@ const benchmarkCommand = async (remotionRoot, args) => {
192
197
  pixelFormat,
193
198
  proResProfile,
194
199
  jpegQuality,
195
- dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
200
+ dumpBrowserLogs: verbose,
196
201
  chromiumOptions,
197
202
  timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
198
203
  scale: configFileScale,
199
204
  port,
200
205
  numberOfGifLoops,
201
206
  everyNthFrame,
202
- verbose: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
207
+ verbose,
203
208
  muted,
204
209
  enforceAudioTrack,
205
210
  browserExecutable,
@@ -210,6 +215,16 @@ const benchmarkCommand = async (remotionRoot, args) => {
210
215
  videoBitrate,
211
216
  puppeteerInstance,
212
217
  concurrency: con,
218
+ audioCodec: null,
219
+ cancelSignal: undefined,
220
+ disallowParallelEncoding: false,
221
+ indent: false,
222
+ onBrowserLog: null,
223
+ onCtrlCExit: () => undefined,
224
+ onDownload: () => undefined,
225
+ onStart: () => undefined,
226
+ preferLossless: false,
227
+ server: undefined,
213
228
  }, (run, progress) => {
214
229
  benchmarkProgress.update(makeBenchmarkProgressBar({
215
230
  totalRuns: runs,
@@ -4,9 +4,12 @@ exports.handleCtrlC = exports.registerCleanupJob = exports.cleanupBeforeQuit = v
4
4
  const log_1 = require("./log");
5
5
  const cleanupJobs = [];
6
6
  const cleanupBeforeQuit = () => {
7
+ log_1.Log.verbose('Cleaning up...');
8
+ const time = Date.now();
7
9
  for (const job of cleanupJobs) {
8
10
  job();
9
11
  }
12
+ log_1.Log.verbose(`Cleanup done in ${Date.now() - time}ms`);
10
13
  };
11
14
  exports.cleanupBeforeQuit = cleanupBeforeQuit;
12
15
  const registerCleanupJob = (job) => {
@@ -1,7 +1,7 @@
1
1
  import type { PromptObject } from 'prompts';
2
- declare type Question<V extends string = string> = PromptObject<V> & {
2
+ type Question<V extends string = string> = PromptObject<V> & {
3
3
  optionsPerPage?: number;
4
4
  };
5
- declare type NamelessQuestion = Omit<Question<'value'>, 'name'>;
5
+ type NamelessQuestion = Omit<Question<'value'>, 'name'>;
6
6
  export declare function selectAsync(question: NamelessQuestion): Promise<string | string[]>;
7
7
  export {};
@@ -6,7 +6,6 @@ const cleanup_before_quit_1 = require("./cleanup-before-quit");
6
6
  const config_1 = require("./config");
7
7
  const entry_point_1 = require("./entry-point");
8
8
  const get_cli_options_1 = require("./get-cli-options");
9
- const get_config_file_name_1 = require("./get-config-file-name");
10
9
  const log_1 = require("./log");
11
10
  const print_compositions_1 = require("./print-compositions");
12
11
  const setup_cache_1 = require("./setup-cache");
@@ -18,10 +17,8 @@ const listCompositionsCommand = async (remotionRoot, args) => {
18
17
  log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
19
18
  process.exit(1);
20
19
  }
20
+ const verbose = renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose');
21
21
  log_1.Log.verbose('Entry point:', file, 'reason:', reason);
22
- const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
23
- (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.cleanDownloadMap(downloadMap));
24
- await (0, get_config_file_name_1.loadConfig)(remotionRoot);
25
22
  const { browserExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
26
23
  isLambda: false,
27
24
  type: 'get-compositions',
@@ -42,16 +39,20 @@ const listCompositionsCommand = async (remotionRoot, args) => {
42
39
  quietProgress: false,
43
40
  });
44
41
  (0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
45
- const compositions = await (0, renderer_1.getCompositions)(bundled, {
42
+ const compositions = await renderer_1.RenderInternals.internalGetCompositions({
43
+ serveUrlOrWebpackUrl: bundled,
46
44
  browserExecutable,
47
45
  chromiumOptions,
48
46
  envVariables,
49
47
  inputProps,
50
48
  timeoutInMilliseconds: puppeteerTimeout,
51
49
  port,
52
- downloadMap,
50
+ indent: false,
51
+ onBrowserLog: null,
52
+ puppeteerInstance: undefined,
53
+ verbose,
54
+ server: undefined,
53
55
  });
54
56
  (0, print_compositions_1.printCompositions)(compositions);
55
- log_1.Log.verbose('Cleaned up', downloadMap.assetDir);
56
57
  };
57
58
  exports.listCompositionsCommand = listCompositionsCommand;
@@ -1,3 +1,3 @@
1
- export declare type Concurrency = number | string | null;
1
+ export type Concurrency = number | string | null;
2
2
  export declare const setConcurrency: (newConcurrency: Concurrency) => void;
3
3
  export declare const getConcurrency: () => string | number | null;
@@ -239,7 +239,7 @@ declare global {
239
239
  readonly setVideoBitrate: (bitrate: string | null) => void;
240
240
  }
241
241
  }
242
- declare type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
242
+ type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
243
243
  /**
244
244
  * Set the audio codec to use for the output video.
245
245
  * See the Encoding guide in the docs for defaults and available options.
@@ -267,7 +267,7 @@ export declare const ConfigInternals: {
267
267
  getEveryNthFrame: () => number;
268
268
  getConcurrency: () => string | number | null;
269
269
  getCurrentPuppeteerTimeout: () => number;
270
- getJpegQuality: () => number | undefined;
270
+ getJpegQuality: () => number;
271
271
  getAudioCodec: () => "mp3" | "aac" | "pcm-16" | "opus" | null;
272
272
  getStillFrame: () => number;
273
273
  getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
@@ -1,2 +1,2 @@
1
1
  export declare const setJpegQuality: (q: number | undefined) => void;
2
- export declare const getJpegQuality: () => number | undefined;
2
+ export declare const getJpegQuality: () => number;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getJpegQuality = exports.setJpegQuality = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
- const defaultValue = undefined;
5
+ const defaultValue = renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY;
6
6
  let quality = defaultValue;
7
7
  const setJpegQuality = (q) => {
8
8
  renderer_1.RenderInternals.validateJpegQuality(q);
@@ -1,3 +1,3 @@
1
- export declare type Loop = number | null;
1
+ export type Loop = number | null;
2
2
  export declare const setNumberOfGifLoops: (newLoop: Loop | null) => void;
3
3
  export declare const getNumberOfGifLoops: () => Loop;
@@ -1,5 +1,5 @@
1
1
  import type { WebpackConfiguration } from '@remotion/bundler';
2
- export declare type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
2
+ export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
3
3
  export declare const defaultOverrideFunction: WebpackOverrideFn;
4
4
  export declare const getWebpackOverrideFn: () => WebpackOverrideFn;
5
5
  export declare const overrideWebpackConfig: (fn: WebpackOverrideFn) => void;
@@ -1,4 +1,4 @@
1
- declare type Scale = number;
1
+ type Scale = number;
2
2
  export declare const setScale: (newScale: Scale) => void;
3
3
  export declare const getScale: () => number;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- declare type UserAgent = string | null;
1
+ type UserAgent = string | null;
2
2
  export declare const setChromiumUserAgent: (newAgent: UserAgent) => void;
3
3
  export declare const getChromiumUserAgent: () => UserAgent;
4
4
  export {};
@@ -59,6 +59,9 @@ const loaderContainer = {
59
59
  marginLeft: 'auto',
60
60
  marginRight: 'auto',
61
61
  width: '100%',
62
+ position: 'absolute',
63
+ height: '100%',
64
+ overflowY: 'auto',
62
65
  };
63
66
  const ErrorLoading = ({ error }) => {
64
67
  return ((0, jsx_runtime_1.jsx)("div", { style: loaderContainer, children: (0, jsx_runtime_1.jsx)(ErrorLoader_1.ErrorLoader, { canHaveDismissButton: false, keyboardShortcuts: false, error: error, onRetry: () => { var _a; return (_a = remotion_1.Internals.resolveCompositionsRef.current) === null || _a === void 0 ? void 0 : _a.reloadCurrentlySelectedComposition(); }, calculateMetadata: true }, error.stack) }));
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  export declare const Checkbox: React.FC<{
3
3
  checked: boolean;
4
4
  onChange: React.ChangeEventHandler<HTMLInputElement>;
5
+ name: string;
5
6
  disabled?: boolean;
6
7
  }>;
@@ -23,7 +23,7 @@ const box = {
23
23
  pointerEvents: 'none',
24
24
  color: 'white',
25
25
  };
26
- const Checkbox = ({ checked, onChange, disabled }) => {
26
+ const Checkbox = ({ checked, onChange, disabled, name }) => {
27
27
  const input = (0, react_1.useMemo)(() => {
28
28
  return {
29
29
  appearance: 'none',
@@ -37,6 +37,6 @@ const Checkbox = ({ checked, onChange, disabled }) => {
37
37
  margin: 0,
38
38
  };
39
39
  }, [disabled]);
40
- return ((0, jsx_runtime_1.jsxs)("div", { style: background, children: [(0, jsx_runtime_1.jsx)("input", { style: input, type: 'checkbox', checked: checked, onChange: onChange, disabled: disabled }), (0, jsx_runtime_1.jsx)("div", { style: box, children: checked ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null })] }));
40
+ return ((0, jsx_runtime_1.jsxs)("div", { style: background, children: [(0, jsx_runtime_1.jsx)("input", { style: input, type: 'checkbox', checked: checked, onChange: onChange, disabled: disabled, name: name }), (0, jsx_runtime_1.jsx)("div", { style: box, children: checked ? (0, jsx_runtime_1.jsx)(Checkmark_1.Checkmark, {}) : null })] }));
41
41
  };
42
42
  exports.Checkbox = Checkbox;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { AnyComposition } from 'remotion';
3
- export declare type CompositionSelectorItemType = {
3
+ export type CompositionSelectorItemType = {
4
4
  key: string;
5
5
  type: 'composition';
6
6
  composition: AnyComposition;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type RenderInlineAction = (color: string) => React.ReactNode;
2
+ export type RenderInlineAction = (color: string) => React.ReactNode;
3
3
  export declare const InlineAction: React.FC<{
4
4
  onClick: React.MouseEventHandler<HTMLAnchorElement>;
5
5
  disabled?: boolean;
@@ -1,8 +1,8 @@
1
1
  import type { SetStateAction } from 'react';
2
2
  import React from 'react';
3
3
  import type { ComboboxValue } from '../NewComposition/ComboBox';
4
- export declare type MenuId = 'remotion' | 'file' | 'view' | 'tools' | 'help';
5
- export declare type Menu = {
4
+ export type MenuId = 'remotion' | 'file' | 'view' | 'tools' | 'help';
5
+ export type Menu = {
6
6
  id: MenuId;
7
7
  label: React.ReactNode;
8
8
  items: ComboboxValue[];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { SubMenu } from '../NewComposition/ComboBox';
3
- export declare type SubMenuActivated = false | 'with-mouse' | 'without-mouse';
3
+ export type SubMenuActivated = false | 'with-mouse' | 'without-mouse';
4
4
  export declare const MenuSubItem: React.FC<{
5
5
  label: React.ReactNode;
6
6
  id: string;
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- declare type DividerItem = {
2
+ type DividerItem = {
3
3
  type: 'divider';
4
4
  id: string;
5
5
  };
6
- export declare type SubMenu = {
6
+ export type SubMenu = {
7
7
  preselectIndex: number | false;
8
8
  leaveLeftSpace: boolean;
9
9
  items: ComboboxValue[];
10
10
  };
11
- export declare type SelectionItem = {
11
+ export type SelectionItem = {
12
12
  type: 'item';
13
13
  id: string;
14
14
  label: React.ReactNode;
@@ -19,7 +19,7 @@ export declare type SelectionItem = {
19
19
  subMenu: SubMenu | null;
20
20
  quickSwitcherLabel: string | null;
21
21
  };
22
- export declare type ComboboxValue = DividerItem | SelectionItem;
22
+ export type ComboboxValue = DividerItem | SelectionItem;
23
23
  export declare const Combobox: React.FC<{
24
24
  values: ComboboxValue[];
25
25
  selectedId: string | number;
@@ -21,7 +21,7 @@ const CopyHint = () => {
21
21
  setProjectInfo(null);
22
22
  });
23
23
  }, []);
24
- if (!projectInfo || !projectInfo.videoFile) {
24
+ if (!(projectInfo === null || projectInfo === void 0 ? void 0 : projectInfo.videoFile)) {
25
25
  return null;
26
26
  }
27
27
  return ((0, jsx_runtime_1.jsxs)("div", { style: style, children: ["Copy this into ", (0, jsx_runtime_1.jsx)("br", {}), " your", ' ', (0, jsx_runtime_1.jsx)("span", { style: style, title: projectInfo.videoFile, children: projectInfo.relativeVideoFile }), ' ', "file."] }));
@@ -1,7 +1,7 @@
1
1
  import type { InputHTMLAttributes } from 'react';
2
2
  import React from 'react';
3
3
  import type { RemInputStatus } from './RemInput';
4
- declare type Props = InputHTMLAttributes<HTMLInputElement> & {
4
+ type Props = InputHTMLAttributes<HTMLInputElement> & {
5
5
  onValueChange: (newVal: number) => void;
6
6
  onTextChange: (newVal: string) => void;
7
7
  status: RemInputStatus;
@@ -1,7 +1,7 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import React from 'react';
3
- export declare type RemInputStatus = 'error' | 'warning' | 'ok';
4
- declare type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
3
+ export type RemInputStatus = 'error' | 'warning' | 'ok';
4
+ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
5
5
  status: RemInputStatus;
6
6
  rightAlign: boolean;
7
7
  };
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
12
12
  status: 'error' | 'warning' | 'ok';
13
13
  isFocused: boolean;
14
14
  isHovered: boolean;
15
- }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
15
+ }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(255, 255, 255, 0.05)" | "rgba(0, 0, 0, 0.6)" | "#ff3232" | "#f1c40f";
16
16
  export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status" | "rightAlign"> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { RemInputStatus } from './RemInput';
3
- declare type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
3
+ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
4
4
  status: RemInputStatus;
5
+ name: string;
5
6
  };
6
7
  export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status"> & React.RefAttributes<HTMLInputElement>>;
7
8
  export {};
@@ -48,6 +48,6 @@ const RemInputTypeColorForwardRef = ({ status, ...props }, ref) => {
48
48
  current.removeEventListener('mouseleave', onMouseLeave);
49
49
  };
50
50
  }, [inputRef]);
51
- return ((0, jsx_runtime_1.jsx)("input", { ref: inputRef, type: "color", tabIndex: tabIndex, ...props, style: style }));
51
+ return ((0, jsx_runtime_1.jsx)("input", { ref: inputRef, type: "color", tabIndex: tabIndex, ...props, name: props.name, style: style }));
52
52
  };
53
53
  exports.RemInputTypeColor = (0, react_1.forwardRef)(RemInputTypeColorForwardRef);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
2
+ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
3
3
  status: 'error' | 'warning' | 'ok';
4
4
  };
5
5
  export declare const inputBaseStyle: React.CSSProperties;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- declare type TNotification = {
2
+ type TNotification = {
3
3
  id: string;
4
4
  content: React.ReactNode;
5
5
  created: number;
6
6
  duration: number;
7
7
  };
8
- declare type TNotificationCenter = {
8
+ type TNotificationCenter = {
9
9
  addNotification: (notification: TNotification) => void;
10
10
  };
11
11
  export declare const notificationCenter: React.RefObject<TNotificationCenter>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type QuickSwitcherMode = 'commands' | 'compositions' | 'docs';
2
+ export type QuickSwitcherMode = 'commands' | 'compositions' | 'docs';
3
3
  export declare const QuickSwitcherNoResults: React.FC<{
4
4
  query: string;
5
5
  mode: QuickSwitcherMode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type QuickSwitcherResultDetail = {
2
+ type QuickSwitcherResultDetail = {
3
3
  type: 'composition';
4
4
  compositionType: 'composition' | 'still';
5
5
  } | {
@@ -9,7 +9,7 @@ declare type QuickSwitcherResultDetail = {
9
9
  titleLine: string;
10
10
  subtitleLine: string;
11
11
  };
12
- export declare type TQuickSwitcherResult = {
12
+ export type TQuickSwitcherResult = {
13
13
  title: string;
14
14
  id: string;
15
15
  onSelected: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { AnyComposition } from 'remotion';
3
- export declare type State = {
3
+ export type State = {
4
4
  str: string;
5
5
  value: Record<string, unknown>;
6
6
  validJSON: true;
@@ -10,12 +10,11 @@ export declare type State = {
10
10
  validJSON: false;
11
11
  error: string;
12
12
  };
13
- export declare type PropsEditType = 'input-props' | 'default-props';
13
+ export type PropsEditType = 'input-props' | 'default-props';
14
14
  export declare const DataEditor: React.FC<{
15
15
  unresolvedComposition: AnyComposition;
16
16
  inputProps: Record<string, unknown>;
17
17
  setInputProps: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
18
- compact: boolean;
19
18
  mayShowSaveButton: boolean;
20
19
  propsEditType: PropsEditType;
21
20
  }>;
@@ -88,7 +88,7 @@ const getPersistedShowWarningState = () => {
88
88
  const setPersistedShowWarningState = (val) => {
89
89
  localStorage.setItem(persistanceKey, String(Boolean(val)));
90
90
  };
91
- const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact, mayShowSaveButton, propsEditType, }) => {
91
+ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, mayShowSaveButton, propsEditType, }) => {
92
92
  const [mode, setMode] = (0, react_1.useState)('schema');
93
93
  const [valBeforeSafe, setValBeforeSafe] = (0, react_1.useState)(inputProps);
94
94
  const [saving, setSaving] = (0, react_1.useState)(false);
@@ -115,7 +115,7 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
115
115
  return 'no-zod';
116
116
  }
117
117
  if (!unresolvedComposition.schema) {
118
- return z.object({});
118
+ return 'no-schema';
119
119
  }
120
120
  if (!(typeof unresolvedComposition.schema.safeParse === 'function')) {
121
121
  throw new Error('A value which is not a Zod schema was passed to `schema`');
@@ -126,6 +126,9 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
126
126
  if (schema === 'no-zod') {
127
127
  return 'no-zod';
128
128
  }
129
+ if (schema === 'no-schema') {
130
+ return 'no-schema';
131
+ }
129
132
  return schema.safeParse(inputProps);
130
133
  }, [inputProps, schema]);
131
134
  const setShowWarning = (0, react_1.useCallback)((val) => {
@@ -208,7 +211,7 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
208
211
  ];
209
212
  }, [mode]);
210
213
  const onUpdate = (0, react_1.useCallback)(() => {
211
- if (schema === 'no-zod' || z === null) {
214
+ if (schema === 'no-zod' || schema === 'no-schema' || z === null) {
212
215
  (0, NotificationCenter_1.sendErrorNotification)('Cannot update default props: No Zod schema');
213
216
  return;
214
217
  }
@@ -223,7 +226,7 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
223
226
  setSaving(false);
224
227
  }, [fastRefreshes]);
225
228
  const onSave = (0, react_1.useCallback)((updater) => {
226
- if (schema === 'no-zod' || z === null) {
229
+ if (schema === 'no-zod' || schema === 'no-schema' || z === null) {
227
230
  (0, NotificationCenter_1.sendErrorNotification)('Cannot update default props: No Zod schema');
228
231
  return;
229
232
  }
@@ -265,12 +268,18 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
265
268
  if (schema === 'no-zod') {
266
269
  return (0, jsx_runtime_1.jsx)(SchemaErrorMessages_1.ZodNotInstalled, {});
267
270
  }
271
+ if (schema === 'no-schema') {
272
+ return (0, jsx_runtime_1.jsx)(SchemaErrorMessages_1.NoSchemaDefined, {});
273
+ }
268
274
  if (!z) {
269
275
  throw new Error('expected zod');
270
276
  }
271
277
  if (zodValidationResult === 'no-zod') {
272
278
  throw new Error('expected zod');
273
279
  }
280
+ if (zodValidationResult === 'no-schema') {
281
+ throw new Error('expected schema');
282
+ }
274
283
  const def = schema._def;
275
284
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
276
285
  const typeName = def.typeName;
@@ -282,6 +291,6 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, compact,
282
291
  }
283
292
  return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsxs)("div", { style: controlContainer, children: [(0, jsx_runtime_1.jsxs)("div", { style: tabWrapper, children: [(0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: modeItems, needsWrapping: false }), (0, jsx_runtime_1.jsx)(layout_1.Flex, {}), warnings.length > 0 ? ((0, jsx_runtime_1.jsx)(WarningIndicatorButton_1.WarningIndicatorButton, { setShowWarning: setShowWarning, showWarning: showWarning, warningCount: warnings.length })) : null] }), showWarning && warnings.length > 0
284
293
  ? warnings.map((warning) => ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsx)(ValidationMessage_1.ValidationMessage, { message: warning, align: "flex-start", type: "warning" })] }, warning)))
285
- : null] }), mode === 'schema' ? ((0, jsx_runtime_1.jsx)(SchemaEditor_1.SchemaEditor, { value: inputProps, setValue: setInputProps, schema: schema, zodValidationResult: zodValidationResult, compact: compact, defaultProps: unresolvedComposition.defaultProps, onSave: onSave, showSaveButton: showSaveButton, saving: saving, saveDisabledByParent: !zodValidationResult.success })) : ((0, jsx_runtime_1.jsx)(RenderModalJSONPropsEditor_1.RenderModalJSONPropsEditor, { value: inputProps !== null && inputProps !== void 0 ? inputProps : {}, setValue: setInputProps, onSave: onUpdate, valBeforeSafe: valBeforeSafe, showSaveButton: showSaveButton, serializedJSON: serializedJSON, defaultProps: unresolvedComposition.defaultProps, schema: schema }))] }));
294
+ : null] }), mode === 'schema' ? ((0, jsx_runtime_1.jsx)(SchemaEditor_1.SchemaEditor, { value: inputProps, setValue: setInputProps, schema: schema, zodValidationResult: zodValidationResult, defaultProps: unresolvedComposition.defaultProps, onSave: onSave, showSaveButton: showSaveButton, saving: saving, saveDisabledByParent: !zodValidationResult.success })) : ((0, jsx_runtime_1.jsx)(RenderModalJSONPropsEditor_1.RenderModalJSONPropsEditor, { value: inputProps !== null && inputProps !== void 0 ? inputProps : {}, setValue: setInputProps, onSave: onUpdate, valBeforeSafe: valBeforeSafe, showSaveButton: showSaveButton, serializedJSON: serializedJSON, defaultProps: unresolvedComposition.defaultProps, schema: schema }))] }));
286
295
  };
287
296
  exports.DataEditor = DataEditor;
@@ -12,6 +12,6 @@ const EnforceAudioTrackSetting = ({ enforceAudioTrack, muted, setEnforceAudioTra
12
12
  const onEnforceAudioTrackChanged = (0, react_1.useCallback)((e) => {
13
13
  setEnforceAudioTrack(e.target.checked);
14
14
  }, [setEnforceAudioTrack]);
15
- return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Enforce Audio Track", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: option }) })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: muted && !enforceAudioTrack, checked: enforceAudioTrack, onChange: onEnforceAudioTrackChanged }) })] }));
15
+ return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Enforce Audio Track", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: option }) })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { disabled: muted && !enforceAudioTrack, checked: enforceAudioTrack, onChange: onEnforceAudioTrackChanged, name: "enforce-audio-track" }) })] }));
16
16
  };
17
17
  exports.EnforceAudioTrackSetting = EnforceAudioTrackSetting;
@@ -12,6 +12,6 @@ const MutedSetting = ({ muted, setMuted, enforceAudioTrack, hint }) => {
12
12
  const onMutedChanged = (0, react_1.useCallback)((e) => {
13
13
  setMuted(e.target.checked);
14
14
  }, [setMuted]);
15
- return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Muted", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: hint }) })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.25 }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: muted, disabled: enforceAudioTrack && !muted, onChange: onMutedChanged }) })] }));
15
+ return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Muted", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: hint }) })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.25 }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: muted, disabled: enforceAudioTrack && !muted, onChange: onMutedChanged, name: "muted" }) })] }));
16
16
  };
17
17
  exports.MutedSetting = MutedSetting;
@@ -1,7 +1,7 @@
1
1
  import type { AudioCodec, Codec, OpenGlRenderer, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
2
2
  import React from 'react';
3
3
  import type { RenderType } from './RenderModalAdvanced';
4
- declare type RenderModalProps = {
4
+ type RenderModalProps = {
5
5
  compositionId: string;
6
6
  initialFrame: number;
7
7
  initialVideoImageFormat: VideoImageFormat;