@remotion/cli 4.0.0-alpha13 → 4.0.0-alpha14
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/ansi/ansi-regex.d.ts +2 -0
- package/dist/ansi/ansi-regex.js +18 -0
- 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/ffmpeg-executable.d.ts +5 -0
- package/dist/config/ffmpeg-executable.js +21 -0
- 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/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- 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/ClipboardIcon.d.ts +2 -0
- package/dist/editor/components/ClipboardIcon.js +12 -0
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +4 -0
- package/dist/editor/components/CollapsedCompositionSelector.js +39 -0
- 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 +2 -2
- 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/RenderModalData.d.ts +3 -2
- package/dist/editor/components/RenderModal/RenderModalData.js +23 -34
- 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/RichTimelineToggle.d.ts +2 -0
- package/dist/editor/components/RichTimelineToggle.js +29 -0
- 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/Thumbnail.d.ts +8 -0
- package/dist/editor/components/Thumbnail.js +76 -0
- 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/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 -2
- package/dist/editor/helpers/use-compact-ui.d.ts +1 -0
- package/dist/editor/helpers/use-compact-ui.js +18 -0
- package/dist/editor/helpers/use-menu-structure.d.ts +1 -1
- package/dist/editor/icons/film.d.ts +3 -0
- package/dist/editor/icons/film.js +8 -0
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- package/dist/editor/icons/timeline.d.ts +3 -0
- package/dist/editor/icons/timeline.js +9 -0
- 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/rich-timeline.d.ts +9 -0
- package/dist/editor/state/rich-timeline.js +17 -0
- 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/get-render-media-options.d.ts +8 -0
- package/dist/get-render-media-options.js +55 -0
- package/dist/index.d.ts +5 -4
- package/dist/install.d.ts +2 -0
- package/dist/install.js +36 -0
- package/dist/is-javascript.d.ts +2 -0
- package/dist/is-javascript.js +9 -0
- 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/is-color-supported.d.ts +1 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +37 -0
- 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/strip-ansi.d.ts +1 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +21 -0
- 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.d.ts +0 -1
- package/dist/preview-server/routes.js +1 -11
- package/dist/preview-server/update-available.d.ts +2 -10
- package/dist/preview.js +2 -0
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stripAnsi = exports.ansiRegex = void 0;
|
|
4
|
+
const ansiRegex = () => {
|
|
5
|
+
const pattern = [
|
|
6
|
+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
7
|
+
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))',
|
|
8
|
+
].join('|');
|
|
9
|
+
return new RegExp(pattern, 'g');
|
|
10
|
+
};
|
|
11
|
+
exports.ansiRegex = ansiRegex;
|
|
12
|
+
const stripAnsi = (str) => {
|
|
13
|
+
if (typeof str !== 'string') {
|
|
14
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof str}\``);
|
|
15
|
+
}
|
|
16
|
+
return str.replace((0, exports.ansiRegex)(), '');
|
|
17
|
+
};
|
|
18
|
+
exports.stripAnsi = stripAnsi;
|
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;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FfmpegExecutable } from '@remotion/renderer';
|
|
2
|
+
export declare const setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
3
|
+
export declare const getCustomFfmpegExecutable: () => FfmpegExecutable;
|
|
4
|
+
export declare const setFfprobeExecutable: (ffprobePath: FfmpegExecutable) => void;
|
|
5
|
+
export declare const getCustomFfprobeExecutable: () => FfmpegExecutable;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCustomFfprobeExecutable = exports.setFfprobeExecutable = exports.getCustomFfmpegExecutable = exports.setFfmpegExecutable = void 0;
|
|
4
|
+
let currentFfmpegExecutablePath = null;
|
|
5
|
+
let currentFfprobeExecutablePath = null;
|
|
6
|
+
const setFfmpegExecutable = (ffmpegPath) => {
|
|
7
|
+
currentFfmpegExecutablePath = ffmpegPath;
|
|
8
|
+
};
|
|
9
|
+
exports.setFfmpegExecutable = setFfmpegExecutable;
|
|
10
|
+
const getCustomFfmpegExecutable = () => {
|
|
11
|
+
return currentFfmpegExecutablePath;
|
|
12
|
+
};
|
|
13
|
+
exports.getCustomFfmpegExecutable = getCustomFfmpegExecutable;
|
|
14
|
+
const setFfprobeExecutable = (ffprobePath) => {
|
|
15
|
+
currentFfprobeExecutablePath = ffprobePath;
|
|
16
|
+
};
|
|
17
|
+
exports.setFfprobeExecutable = setFfprobeExecutable;
|
|
18
|
+
const getCustomFfprobeExecutable = () => {
|
|
19
|
+
return currentFfprobeExecutablePath;
|
|
20
|
+
};
|
|
21
|
+
exports.getCustomFfprobeExecutable = getCustomFfprobeExecutable;
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQuality = exports.setQuality = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const defaultValue = undefined;
|
|
6
|
+
let quality = defaultValue;
|
|
7
|
+
const setQuality = (q) => {
|
|
8
|
+
renderer_1.RenderInternals.validateQuality(q);
|
|
9
|
+
if (q === 0 || q === undefined) {
|
|
10
|
+
quality = defaultValue;
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
quality = q;
|
|
14
|
+
};
|
|
15
|
+
exports.setQuality = setQuality;
|
|
16
|
+
const getQuality = () => quality;
|
|
17
|
+
exports.getQuality = getQuality;
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClipboardIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ClipboardIcon = () => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "clipboard", className: "svg-inline--fa fa-clipboard fa-w-12", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 512", style: {
|
|
7
|
+
height: 16,
|
|
8
|
+
verticalAlign: 'middle',
|
|
9
|
+
marginTop: -3,
|
|
10
|
+
}, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm144 418c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h42v36c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-36h42c3.3 0 6 2.7 6 6z" }) }));
|
|
11
|
+
};
|
|
12
|
+
exports.ClipboardIcon = ClipboardIcon;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollapsedCompositionSelector = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../helpers/colors");
|
|
7
|
+
const caret_1 = require("../icons/caret");
|
|
8
|
+
const z_index_1 = require("../state/z-index");
|
|
9
|
+
const CollapsedCompositionSelector = ({ onExpand }) => {
|
|
10
|
+
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
11
|
+
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
12
|
+
const onPointerEnter = (0, react_1.useCallback)(() => {
|
|
13
|
+
setHovered(true);
|
|
14
|
+
}, []);
|
|
15
|
+
const onPointerLeave = (0, react_1.useCallback)(() => {
|
|
16
|
+
setHovered(false);
|
|
17
|
+
}, []);
|
|
18
|
+
const style = (0, react_1.useMemo)(() => {
|
|
19
|
+
return {
|
|
20
|
+
border: 'none',
|
|
21
|
+
borderRight: '2px solid black',
|
|
22
|
+
cursor: 'pointer',
|
|
23
|
+
color: 'white',
|
|
24
|
+
display: 'flex',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
paddingLeft: 7,
|
|
28
|
+
paddingRight: 4,
|
|
29
|
+
backgroundColor: (0, colors_1.getBackgroundFromHoverState)({
|
|
30
|
+
hovered,
|
|
31
|
+
selected: false,
|
|
32
|
+
}),
|
|
33
|
+
appearance: 'none',
|
|
34
|
+
WebkitAppearance: 'none',
|
|
35
|
+
};
|
|
36
|
+
}, [hovered]);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)("button", { style: style, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, type: "button", role: "button", tabIndex: tabIndex, onClick: onExpand, children: (0, jsx_runtime_1.jsx)(caret_1.CaretRight, {}) }));
|
|
38
|
+
};
|
|
39
|
+
exports.CollapsedCompositionSelector = CollapsedCompositionSelector;
|
|
@@ -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
|
};
|
|
@@ -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
|
}>;
|