remotion 4.0.100 → 4.0.103

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/LICENSE.md CHANGED
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
7
7
 
8
8
  ## Free license
9
9
 
10
- Copyright © 2023 [Remotion](https://www.remotion.dev)
10
+ Copyright © 2024 [Remotion](https://www.remotion.dev)
11
11
 
12
12
  ### Eligibility
13
13
 
@@ -17,6 +17,11 @@ const portalNode = () => {
17
17
  _portalNode.style.height = '100%';
18
18
  _portalNode.style.display = 'flex';
19
19
  _portalNode.style.flexDirection = 'column';
20
+ const containerNode = document.createElement('div');
21
+ containerNode.style.position = 'fixed';
22
+ containerNode.style.top = -999999 + 'px';
23
+ containerNode.appendChild(_portalNode);
24
+ document.body.appendChild(containerNode);
20
25
  }
21
26
  return _portalNode;
22
27
  };
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.100";
1
+ export declare const VERSION = "4.0.103";
@@ -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 = '4.0.100';
5
+ exports.VERSION = '4.0.103';
@@ -40,6 +40,14 @@ exports.seekToTime = seekToTime;
40
40
  const seekToTimeMultipleUntilRight = (element, desiredTime, fps) => {
41
41
  const threshold = 1 / fps / 2;
42
42
  let currentCancel = () => undefined;
43
+ if (Number.isFinite(element.duration) &&
44
+ element.currentTime >= element.duration &&
45
+ desiredTime >= element.duration) {
46
+ return {
47
+ prom: Promise.resolve(),
48
+ cancel: () => { },
49
+ };
50
+ }
43
51
  const prom = new Promise((resolve, reject) => {
44
52
  const firstSeek = (0, exports.seekToTime)(element, desiredTime + threshold);
45
53
  firstSeek.wait.then((seekedTo) => {
@@ -105,7 +105,7 @@ function truthy(value) {
105
105
  }
106
106
 
107
107
  // Automatically generated on publish
108
- const VERSION = '4.0.100';
108
+ const VERSION = '4.0.103';
109
109
 
110
110
  const checkMultipleRemotionVersions = () => {
111
111
  if (typeof globalThis === 'undefined') {
@@ -2786,6 +2786,11 @@ const portalNode = () => {
2786
2786
  _portalNode.style.height = '100%';
2787
2787
  _portalNode.style.display = 'flex';
2788
2788
  _portalNode.style.flexDirection = 'column';
2789
+ const containerNode = document.createElement('div');
2790
+ containerNode.style.position = 'fixed';
2791
+ containerNode.style.top = -999999 + 'px';
2792
+ containerNode.appendChild(_portalNode);
2793
+ document.body.appendChild(containerNode);
2789
2794
  }
2790
2795
  return _portalNode;
2791
2796
  };
@@ -4787,6 +4792,14 @@ const seekToTime = (element, desiredTime) => {
4787
4792
  const seekToTimeMultipleUntilRight = (element, desiredTime, fps) => {
4788
4793
  const threshold = 1 / fps / 2;
4789
4794
  let currentCancel = () => undefined;
4795
+ if (Number.isFinite(element.duration) &&
4796
+ element.currentTime >= element.duration &&
4797
+ desiredTime >= element.duration) {
4798
+ return {
4799
+ prom: Promise.resolve(),
4800
+ cancel: () => { },
4801
+ };
4802
+ }
4790
4803
  const prom = new Promise((resolve, reject) => {
4791
4804
  const firstSeek = seekToTime(element, desiredTime + threshold);
4792
4805
  firstSeek.wait.then((seekedTo) => {
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.100';
2
+ const VERSION = '4.0.103';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.100",
3
+ "version": "4.0.103",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",