remotion 3.2.10 → 3.2.12-crf.6

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.
@@ -1,5 +1,5 @@
1
- remotion:build: cache hit, replaying output 3f210b6bc8b179a0
1
+ remotion:build: cache hit, replaying output 1809fa55f25af41e
2
2
  remotion:build: 
3
- remotion:build: > remotion@3.2.9 build /Users/jonathanburger/remotion/packages/core
3
+ remotion:build: > remotion@3.2.11 build /Users/jonathanburger/remotion/packages/core
4
4
  remotion:build: > tsc -d
5
5
  remotion:build: 
@@ -0,0 +1,4 @@
1
+ import type { TCaption } from '../CompositionManager';
2
+ declare type CaptionProps = Omit<TCaption, 'id' | 'isRemote'>;
3
+ export declare const Caption: (props: CaptionProps) => null;
4
+ export {};
@@ -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
  /**
@@ -15,7 +15,7 @@ const validateFps = (fps, location, isGif) => {
15
15
  throw new TypeError(`"fps" must be positive, but got ${fps} ${location}`);
16
16
  }
17
17
  if (isGif && fps > 50) {
18
- throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --skip-n-frames option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
18
+ throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
19
19
  }
20
20
  };
21
21
  exports.validateFps = validateFps;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.2.10";
1
+ export declare const VERSION = "3.2.12-crf.6+134d2182f";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.2.10';
5
+ exports.VERSION = '3.2.12-crf.6+134d2182f';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.2.10",
3
+ "version": "3.2.12-crf.6+134d2182f",
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": "66ad527dc06a14b7d6d5aab8ff8e736e67db8154"
57
+ "gitHead": "134d2182f5a94143835795bfcb2fb42476358c42"
58
58
  }
@@ -1,2 +0,0 @@
1
- export declare const getBundleOutDir: () => string | null;
2
- export declare const setBundleOutDir: (path: string) => void;
@@ -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,2 +0,0 @@
1
- export declare const getPublicPath: () => string | null;
2
- export declare const setPublicPath: (path: string) => void;
@@ -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;