remotion 4.0.205 → 4.0.206

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.
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.205";
6
+ export declare const VERSION = "4.0.206";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.205';
10
+ exports.VERSION = '4.0.206';
@@ -158,7 +158,7 @@ const VideoForDevelopmentRefForwardingFunction = (props, ref) => {
158
158
  opacity: isSequenceHidden ? 0 : (_a = style === null || style === void 0 ? void 0 : style.opacity) !== null && _a !== void 0 ? _a : 1,
159
159
  };
160
160
  }, [isSequenceHidden, style]);
161
- const crossOriginValue = crossOrigin !== null && crossOrigin !== void 0 ? crossOrigin : (onVideoFrame ? 'anonymous' : '');
161
+ const crossOriginValue = crossOrigin !== null && crossOrigin !== void 0 ? crossOrigin : (onVideoFrame ? 'anonymous' : undefined);
162
162
  return ((0, jsx_runtime_1.jsx)("video", { ref: videoRef, muted: muted || mediaMuted, playsInline: true, src: actualSrc, loop: _remotionInternalNativeLoopPassed, style: actualStyle, disableRemotePlayback: true, crossOrigin: crossOriginValue, ...nativeProps }));
163
163
  };
164
164
  exports.VideoForPreview = (0, react_1.forwardRef)(VideoForDevelopmentRefForwardingFunction);
@@ -155,7 +155,7 @@ function truthy(value) {
155
155
  }
156
156
 
157
157
  // src/version.ts
158
- var VERSION = "4.0.205";
158
+ var VERSION = "4.0.206";
159
159
 
160
160
  // src/multiple-versions-warning.ts
161
161
  var checkMultipleRemotionVersions = () => {
@@ -6209,7 +6209,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
6209
6209
  opacity: isSequenceHidden ? 0 : style?.opacity ?? 1
6210
6210
  };
6211
6211
  }, [isSequenceHidden, style]);
6212
- const crossOriginValue = crossOrigin ?? (onVideoFrame ? "anonymous" : "");
6212
+ const crossOriginValue = crossOrigin ?? (onVideoFrame ? "anonymous" : undefined);
6213
6213
  return jsx30("video", {
6214
6214
  ref: videoRef,
6215
6215
  muted: muted || mediaMuted,
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.205";
2
+ var VERSION = "4.0.206";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
4
4
  },
5
5
  "name": "remotion",
6
- "version": "4.0.205",
6
+ "version": "4.0.206",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export declare const HideSequence: React.FC<{
3
- readonly from: number;
4
- readonly durationInFrames: number;
5
- readonly children: React.ReactNode;
6
- }>;
7
- export declare const useCustomFrame: () => number;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useCustomFrame = exports.HideSequence = void 0;
27
- const jsx_runtime_1 = require("react/jsx-runtime");
28
- const react_1 = __importStar(require("react"));
29
- const use_current_frame_1 = require("./use-current-frame");
30
- const context = react_1.default.createContext(null);
31
- const HideSequence = ({ from, durationInFrames, children }) => {
32
- var _a, _b, _c;
33
- const parent = react_1.default.useContext(context);
34
- const frame = (0, use_current_frame_1.useCurrentFrame)();
35
- const actualFrame = (_a = parent === null || parent === void 0 ? void 0 : parent.frame) !== null && _a !== void 0 ? _a : frame;
36
- const cascadedFrame = actualFrame + ((_b = parent === null || parent === void 0 ? void 0 : parent.from) !== null && _b !== void 0 ? _b : 0);
37
- const visible = cascadedFrame >= from &&
38
- cascadedFrame < from + durationInFrames &&
39
- ((_c = parent === null || parent === void 0 ? void 0 : parent.visible) !== null && _c !== void 0 ? _c : true);
40
- const value = (0, react_1.useMemo)(() => {
41
- return {
42
- from,
43
- durationInFrames,
44
- visible,
45
- frame: cascadedFrame,
46
- };
47
- }, [cascadedFrame, durationInFrames, from, visible]);
48
- return (0, jsx_runtime_1.jsx)(context.Provider, { value: value, children: children });
49
- };
50
- exports.HideSequence = HideSequence;
51
- const useCustomFrame = () => {
52
- const ctx = react_1.default.useContext(context);
53
- const frame = (0, use_current_frame_1.useCurrentFrame)();
54
- if (!ctx) {
55
- return frame;
56
- }
57
- return ctx.frame;
58
- };
59
- exports.useCustomFrame = useCustomFrame;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_1 = require("react");
4
- if (typeof react_1.createContext !== 'function') {
5
- throw new Error('React 18 is required for Remotion');
6
- }