@remotion/cli 3.2.37 → 3.2.38
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/config/height.d.ts +2 -0
- package/dist/config/height.js +16 -0
- package/dist/config/width.d.ts +2 -0
- package/dist/config/width.js +16 -0
- package/package.json +7 -7
- package/dist/check-version.d.ts +0 -1
- package/dist/check-version.js +0 -14
- package/dist/editor/components/QuickSwitcher.d.ts +0 -3
- package/dist/editor/components/QuickSwitcher.js +0 -32
- package/dist/editor/helpers/use-menu-toolbar.d.ts +0 -0
- package/dist/editor/helpers/use-menu-toolbar.js +0 -1
- package/dist/validate-ffmpeg-version.d.ts +0 -3
- package/dist/validate-ffmpeg-version.js +0 -17
- package/dist/warn-about-ffmpeg-version.d.ts +0 -5
- package/dist/warn-about-ffmpeg-version.js +0 -38
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHeight = exports.setHeight = void 0;
|
|
4
|
+
let specifiedHeight;
|
|
5
|
+
const setHeight = (newHeight) => {
|
|
6
|
+
if (typeof newHeight !== 'number') {
|
|
7
|
+
throw new Error('--height flag / setHeight() must be a number, but got ' +
|
|
8
|
+
JSON.stringify(newHeight));
|
|
9
|
+
}
|
|
10
|
+
specifiedHeight = newHeight;
|
|
11
|
+
};
|
|
12
|
+
exports.setHeight = setHeight;
|
|
13
|
+
const getHeight = () => {
|
|
14
|
+
return specifiedHeight;
|
|
15
|
+
};
|
|
16
|
+
exports.getHeight = getHeight;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWidth = exports.setWidth = void 0;
|
|
4
|
+
let passedWidth;
|
|
5
|
+
const setWidth = (newWidth) => {
|
|
6
|
+
if (typeof newWidth !== 'number') {
|
|
7
|
+
throw new Error('--width flag / setWidth() must be a number, but got ' +
|
|
8
|
+
JSON.stringify(newWidth));
|
|
9
|
+
}
|
|
10
|
+
passedWidth = newWidth;
|
|
11
|
+
};
|
|
12
|
+
exports.setWidth = setWidth;
|
|
13
|
+
const getWidth = () => {
|
|
14
|
+
return passedWidth;
|
|
15
|
+
};
|
|
16
|
+
exports.getWidth = getWidth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.38",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@remotion/bundler": "3.2.
|
|
26
|
-
"@remotion/media-utils": "3.2.
|
|
27
|
-
"@remotion/player": "3.2.
|
|
28
|
-
"@remotion/renderer": "3.2.
|
|
25
|
+
"@remotion/bundler": "3.2.38",
|
|
26
|
+
"@remotion/media-utils": "3.2.38",
|
|
27
|
+
"@remotion/player": "3.2.38",
|
|
28
|
+
"@remotion/renderer": "3.2.38",
|
|
29
29
|
"better-opn": "2.1.1",
|
|
30
30
|
"dotenv": "9.0.2",
|
|
31
31
|
"memfs": "3.4.3",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.1",
|
|
34
|
-
"remotion": "3.2.
|
|
34
|
+
"remotion": "3.2.38",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
36
|
"source-map": "0.6.1"
|
|
37
37
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "faec18c286d03b94887ef5ff16ea48f94c82954d"
|
|
76
76
|
}
|
package/dist/check-version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const checkNodeVersion: () => void;
|
package/dist/check-version.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkNodeVersion = void 0;
|
|
4
|
-
const log_1 = require("./log");
|
|
5
|
-
const semver = require('semver');
|
|
6
|
-
const current = process.version;
|
|
7
|
-
const supported = '>=12.10.0';
|
|
8
|
-
const checkNodeVersion = () => {
|
|
9
|
-
if (!semver.satisfies(current, supported)) {
|
|
10
|
-
log_1.Log.warn(`Required node version ${supported} not satisfied with current version ${current}.`);
|
|
11
|
-
log_1.Log.warn(`Update your node version to ${supported}`);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.checkNodeVersion = checkNodeVersion;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const remotion_1 = require("remotion");
|
|
6
|
-
const colors_1 = require("../helpers/colors");
|
|
7
|
-
const modals_1 = require("../state/modals");
|
|
8
|
-
const ModalContainer_1 = require("./ModalContainer");
|
|
9
|
-
const input = {
|
|
10
|
-
padding: 4,
|
|
11
|
-
border: '2px solid ' + colors_1.INPUT_BORDER_COLOR_UNHOVERED,
|
|
12
|
-
width: '100%',
|
|
13
|
-
};
|
|
14
|
-
const content = {
|
|
15
|
-
padding: 16,
|
|
16
|
-
minWidth: 500,
|
|
17
|
-
};
|
|
18
|
-
const results = {
|
|
19
|
-
overflowY: 'auto',
|
|
20
|
-
maxHeight: 300,
|
|
21
|
-
};
|
|
22
|
-
const QuickSwitcher = (props) => {
|
|
23
|
-
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
24
|
-
const { compositions } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
25
|
-
const onQuit = (0, react_1.useCallback)(() => {
|
|
26
|
-
setSelectedModal(null);
|
|
27
|
-
}, [setSelectedModal]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: [(0, jsx_runtime_1.jsx)("div", { style: content, children: (0, jsx_runtime_1.jsx)("input", { type: "text", style: input, autoFocus: true, placeholder: "Search compositions and commands" }) }), (0, jsx_runtime_1.jsx)("div", { style: results, children: compositions.map((c) => {
|
|
29
|
-
return (0, jsx_runtime_1.jsx)("div", { children: c.id }, c.id);
|
|
30
|
-
}) })] }));
|
|
31
|
-
};
|
|
32
|
-
exports.default = QuickSwitcher;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkAndValidateFfmpegVersion = void 0;
|
|
4
|
-
const renderer_1 = require("@remotion/renderer");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const warn_about_ffmpeg_version_1 = require("./warn-about-ffmpeg-version");
|
|
7
|
-
const checkAndValidateFfmpegVersion = async (options) => {
|
|
8
|
-
const ffmpegVersion = await renderer_1.RenderInternals.getFfmpegVersion({
|
|
9
|
-
ffmpegExecutable: options.ffmpegExecutable,
|
|
10
|
-
});
|
|
11
|
-
const buildConf = await renderer_1.RenderInternals.getFfmpegBuildInfo({
|
|
12
|
-
ffmpegExecutable: options.ffmpegExecutable,
|
|
13
|
-
});
|
|
14
|
-
log_1.Log.verbose('Your FFMPEG version:', ffmpegVersion ? ffmpegVersion.join('.') : 'Built from source');
|
|
15
|
-
(0, warn_about_ffmpeg_version_1.warnAboutFfmpegVersion)({ ffmpegVersion, buildConf });
|
|
16
|
-
};
|
|
17
|
-
exports.checkAndValidateFfmpegVersion = checkAndValidateFfmpegVersion;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.warnAboutFfmpegVersion = void 0;
|
|
4
|
-
const log_1 = require("./log");
|
|
5
|
-
const printMessage = (ffmpegVersion) => {
|
|
6
|
-
log_1.Log.warn('⚠️Old FFMPEG version detected: ' + ffmpegVersion.join('.'));
|
|
7
|
-
log_1.Log.warn(' For audio support, you need at least version 4.1.0.');
|
|
8
|
-
log_1.Log.warn(' Upgrade FFMPEG to get rid of this warning.');
|
|
9
|
-
};
|
|
10
|
-
const printBuildConfMessage = () => {
|
|
11
|
-
log_1.Log.error('⚠️ Unsupported FFMPEG version detected.');
|
|
12
|
-
log_1.Log.error(" Your version doesn't support the -buildconf flag");
|
|
13
|
-
log_1.Log.error(' Audio will not be supported and you may experience other issues.');
|
|
14
|
-
log_1.Log.error(' Upgrade FFMPEG to at least v4.1.0 to get rid of this warning.');
|
|
15
|
-
};
|
|
16
|
-
const warnAboutFfmpegVersion = ({ ffmpegVersion, buildConf, }) => {
|
|
17
|
-
if (buildConf === null) {
|
|
18
|
-
printBuildConfMessage();
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
if (ffmpegVersion === null) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
const [major, minor] = ffmpegVersion;
|
|
25
|
-
// 3.x and below definitely is too old
|
|
26
|
-
if (major < 4) {
|
|
27
|
-
printMessage(ffmpegVersion);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
// 5.x will be all good
|
|
31
|
-
if (major > 4) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (minor < 1) {
|
|
35
|
-
printMessage(ffmpegVersion);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.warnAboutFfmpegVersion = warnAboutFfmpegVersion;
|