remotion 3.2.10 → 3.2.11
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/.turbo/turbo-build.log +5 -5
- package/dist/caption/index.d.ts +4 -0
- package/dist/caption/index.js +26 -0
- package/dist/config.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/config/bundle-out-dir.d.ts +0 -2
- package/dist/config/bundle-out-dir.js +0 -12
- package/dist/config/public-path.d.ts +0 -2
- package/dist/config/public-path.js +0 -12
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[33mremotion:build: [0mcache hit, replaying output [2m4d866b4a1e0f5d2c[0m
|
|
2
|
+
[33mremotion:build: [0m
|
|
3
|
+
[33mremotion:build: [0m> remotion@3.2.10 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[33mremotion:build: [0m> tsc -d
|
|
5
|
+
[33mremotion:build: [0m
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Caption = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const absolute_src_1 = require("../absolute-src");
|
|
6
|
+
const CompositionManager_1 = require("../CompositionManager");
|
|
7
|
+
const get_environment_1 = require("../get-environment");
|
|
8
|
+
const Caption = (props) => {
|
|
9
|
+
const { language, src, title } = props;
|
|
10
|
+
const { registerCaption, unregisterCaption } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
11
|
+
(0, react_1.useEffect)(() => {
|
|
12
|
+
if ((0, get_environment_1.getRemotionEnvironment)() !== 'rendering') {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const id = `caption-${src}`;
|
|
16
|
+
registerCaption({
|
|
17
|
+
id,
|
|
18
|
+
language,
|
|
19
|
+
src: (0, absolute_src_1.getAbsoluteSrc)(src),
|
|
20
|
+
title,
|
|
21
|
+
});
|
|
22
|
+
return () => unregisterCaption(id);
|
|
23
|
+
}, [language, registerCaption, src, title, unregisterCaption]);
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
exports.Caption = Caption;
|
package/dist/config.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export declare type ConfigType = {
|
|
|
20
20
|
* @default 15
|
|
21
21
|
*/
|
|
22
22
|
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Enable Keyboard shortcuts in the Remotion Preview.
|
|
25
|
+
* @param enabled Boolean whether to enable the keyboard shortcuts
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
|
|
23
29
|
};
|
|
24
30
|
readonly Bundling: {
|
|
25
31
|
/**
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.2.
|
|
1
|
+
export declare const VERSION = "3.2.11";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.11",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "43d44e718e41200aea544719e9963482f9a65120"
|
|
58
58
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setBundleOutDir = exports.getBundleOutDir = void 0;
|
|
4
|
-
let bundleOutDir = null;
|
|
5
|
-
const getBundleOutDir = () => {
|
|
6
|
-
return bundleOutDir;
|
|
7
|
-
};
|
|
8
|
-
exports.getBundleOutDir = getBundleOutDir;
|
|
9
|
-
const setBundleOutDir = (path) => {
|
|
10
|
-
bundleOutDir = path;
|
|
11
|
-
};
|
|
12
|
-
exports.setBundleOutDir = setBundleOutDir;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setPublicPath = exports.getPublicPath = void 0;
|
|
4
|
-
let publicPath = null;
|
|
5
|
-
const getPublicPath = () => {
|
|
6
|
-
return publicPath;
|
|
7
|
-
};
|
|
8
|
-
exports.getPublicPath = getPublicPath;
|
|
9
|
-
const setPublicPath = (path) => {
|
|
10
|
-
publicPath = path;
|
|
11
|
-
};
|
|
12
|
-
exports.setPublicPath = setPublicPath;
|