@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.
- package/dist/ansi/ansi-diff.d.ts +1 -1
- package/dist/benchmark.js +29 -14
- package/dist/cleanup-before-quit.js +3 -0
- package/dist/composition-prompts.d.ts +2 -2
- package/dist/compositions.js +8 -7
- package/dist/config/concurrency.d.ts +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/jpeg-quality.d.ts +1 -1
- package/dist/config/jpeg-quality.js +1 -1
- package/dist/config/number-of-gif-loops.d.ts +1 -1
- package/dist/config/override-webpack.d.ts +1 -1
- package/dist/config/scale.d.ts +1 -1
- package/dist/config/user-agent.d.ts +1 -1
- package/dist/editor/components/CanvasOrLoading.js +3 -0
- package/dist/editor/components/Checkbox.d.ts +1 -0
- package/dist/editor/components/Checkbox.js +2 -2
- package/dist/editor/components/CompositionSelectorItem.d.ts +1 -1
- package/dist/editor/components/InlineAction.d.ts +1 -1
- package/dist/editor/components/Menu/MenuItem.d.ts +2 -2
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -1
- package/dist/editor/components/NewComposition/ComboBox.d.ts +4 -4
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +1 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts +3 -3
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +2 -1
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +1 -1
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +1 -1
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +2 -2
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +1 -1
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +2 -2
- package/dist/editor/components/RenderModal/DataEditor.d.ts +2 -3
- package/dist/editor/components/RenderModal/DataEditor.js +14 -5
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +1 -1
- package/dist/editor/components/RenderModal/MutedSetting.js +1 -1
- package/dist/editor/components/RenderModal/RenderModal.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModal.js +2 -2
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalAudio.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalGif.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +2 -3
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +1 -3
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +1 -7
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +14 -22
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +51 -42
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +5 -5
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +3 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +14 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +12 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +9 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +5 -30
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +8 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +3 -3
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +10 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +39 -45
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +2 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +13 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +7 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +8 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +21 -21
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +6 -6
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +3 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +3 -3
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +1 -1
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +10 -5
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +56 -15
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -1
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +1 -1
- package/dist/editor/components/RenderModal/layout.d.ts +0 -1
- package/dist/editor/components/RenderModal/layout.js +1 -7
- package/dist/editor/components/RenderQueue/actions.d.ts +2 -1
- package/dist/editor/components/RenderQueue/actions.js +7 -2
- package/dist/editor/components/RenderQueue/context.d.ts +1 -1
- package/dist/editor/components/RightPanel.d.ts +1 -1
- package/dist/editor/components/RightPanel.js +1 -1
- package/dist/editor/components/SegmentedControl.d.ts +1 -1
- package/dist/editor/components/SegmentedControl.js +2 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
- package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
- package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +1 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +1 -1
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +2 -4
- package/dist/editor/components/get-zod-if-possible.d.ts +2 -2
- package/dist/editor/helpers/client-id.d.ts +1 -1
- package/dist/editor/helpers/colors.d.ts +1 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +3 -3
- package/dist/editor/helpers/persist-open-folders.d.ts +1 -1
- package/dist/editor/helpers/render-modal-sections.d.ts +1 -1
- package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- package/dist/editor/state/checkerboard.d.ts +1 -1
- package/dist/editor/state/editor-zoom-gestures.d.ts +1 -1
- package/dist/editor/state/folders.d.ts +1 -1
- package/dist/editor/state/highest-z-index.d.ts +1 -1
- package/dist/editor/state/in-out.d.ts +2 -2
- package/dist/editor/state/keybindings.d.ts +4 -4
- package/dist/editor/state/modals.d.ts +4 -4
- package/dist/editor/state/preview-size.d.ts +1 -1
- package/dist/editor/state/sidebar.d.ts +3 -3
- package/dist/editor/state/timeline-ref.d.ts +1 -1
- package/dist/event-source-events.d.ts +1 -1
- package/dist/file-watcher.d.ts +1 -1
- package/dist/get-cli-options.d.ts +1 -1
- package/dist/get-composition-id.d.ts +10 -11
- package/dist/get-composition-id.js +9 -6
- package/dist/get-composition-with-dimension-override.d.ts +4 -4
- package/dist/get-composition-with-dimension-override.js +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/log.d.ts +1 -0
- package/dist/parse-command-line.d.ts +1 -1
- package/dist/preview-server/api-routes.js +2 -0
- package/dist/preview-server/api-types.d.ts +5 -4
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -1
- package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
- package/dist/preview-server/dev-middleware/types.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +2 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
- package/dist/preview-server/get-package-manager.d.ts +2 -2
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/types.d.ts +4 -4
- package/dist/preview-server/live-events.d.ts +1 -1
- package/dist/preview-server/live-events.js +10 -1
- package/dist/preview-server/project-info.d.ts +1 -1
- package/dist/preview-server/render-queue/job.d.ts +30 -21
- package/dist/preview-server/render-queue/process-still.js +1 -2
- package/dist/preview-server/routes/update-available.d.ts +3 -0
- package/dist/preview-server/routes/update-available.js +9 -0
- package/dist/preview-server/routes.js +1 -11
- package/dist/preview-server/update-available.d.ts +2 -10
- package/dist/progress-bar.d.ts +4 -4
- package/dist/progress-bar.js +3 -2
- package/dist/progress-types.d.ts +4 -4
- package/dist/render-flows/render.js +35 -28
- package/dist/render-flows/still.d.ts +1 -1
- package/dist/render-flows/still.js +23 -10
- package/dist/required-chromium-options.d.ts +2 -2
- package/dist/server-ready-comment.d.ts +1 -1
- package/dist/server-ready-comment.js +2 -2
- package/dist/setup-cache.js +10 -0
- package/dist/show-compositions-picker.d.ts +1 -1
- package/dist/step.d.ts +1 -1
- package/dist/studio.js +3 -3
- package/dist/truthy.d.ts +1 -1
- package/package.json +10 -12
package/dist/ansi/ansi-diff.d.ts
CHANGED
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
|
|
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 =
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
2
|
+
type Question<V extends string = string> = PromptObject<V> & {
|
|
3
3
|
optionsPerPage?: number;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type NamelessQuestion = Omit<Question<'value'>, 'name'>;
|
|
6
6
|
export declare function selectAsync(question: NamelessQuestion): Promise<string | string[]>;
|
|
7
7
|
export {};
|
package/dist/compositions.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ declare global {
|
|
|
239
239
|
readonly setVideoBitrate: (bitrate: string | null) => void;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import type { WebpackConfiguration } from '@remotion/bundler';
|
|
2
|
-
export
|
|
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;
|
package/dist/config/scale.d.ts
CHANGED
|
@@ -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) }));
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
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
|
|
5
|
-
export
|
|
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
|
|
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
|
-
|
|
2
|
+
type DividerItem = {
|
|
3
3
|
type: 'divider';
|
|
4
4
|
id: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type SubMenu = {
|
|
7
7
|
preselectIndex: number | false;
|
|
8
8
|
leaveLeftSpace: boolean;
|
|
9
9
|
items: ComboboxValue[];
|
|
10
10
|
};
|
|
11
|
-
export
|
|
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
|
|
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 ||
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
+
type TNotification = {
|
|
3
3
|
id: string;
|
|
4
4
|
content: React.ReactNode;
|
|
5
5
|
created: number;
|
|
6
6
|
duration: number;
|
|
7
7
|
};
|
|
8
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
-
|
|
4
|
+
type RenderModalProps = {
|
|
5
5
|
compositionId: string;
|
|
6
6
|
initialFrame: number;
|
|
7
7
|
initialVideoImageFormat: VideoImageFormat;
|