@remotion/studio 4.0.356 → 4.0.357

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,7 +1,7 @@
1
1
  import {
2
2
  __require,
3
3
  __toESM
4
- } from "./chunk-6jf1natv.js";
4
+ } from "./chunk-bgfkgcmg.js";
5
5
 
6
6
  // src/renderEntry.tsx
7
7
  import { useContext, useEffect, useRef, useState } from "react";
@@ -185,7 +185,7 @@ var renderContent = (Root) => {
185
185
  renderToDOM(/* @__PURE__ */ jsx("div", {
186
186
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
187
187
  }));
188
- import("./chunk-genqsbxw.js").then(({ StudioInternals }) => {
188
+ import("./chunk-h26rhase.js").then(({ StudioInternals }) => {
189
189
  window.remotion_isStudio = true;
190
190
  window.remotion_isReadOnlyStudio = true;
191
191
  Internals.enableSequenceStackTraces();
@@ -11,6 +11,8 @@ const makeDefaultGlobalCSS = () => {
11
11
  return `
12
12
  html {
13
13
  --remotion-cli-internals-blue: #0b84f3;
14
+ overscroll-behavior-y: none;
15
+ overscroll-behavior-x: none;
14
16
  }
15
17
 
16
18
  body {
@@ -1,2 +1,2 @@
1
- import type { TSequence } from 'remotion';
1
+ import { type TSequence } from 'remotion';
2
2
  export declare const useMaxMediaDuration: (s: TSequence, fps: number) => number | null;
@@ -37,15 +37,16 @@ const useMaxMediaDuration = (s, fps) => {
37
37
  return;
38
38
  }
39
39
  // In case of CORS errors, fall back to getVideoMetadata
40
- (0, media_utils_1.getVideoMetadata)(src)
40
+ return (0, media_utils_1.getVideoMetadata)(src)
41
41
  .then((metadata) => {
42
42
  var _a;
43
43
  const durationOrInfinity = (_a = metadata.durationInSeconds) !== null && _a !== void 0 ? _a : Infinity;
44
44
  cache.set(src, Math.floor(durationOrInfinity * fps));
45
45
  setMaxMediaDuration(Math.floor(durationOrInfinity * fps));
46
46
  })
47
- .catch(() => { });
48
- throw e;
47
+ .catch(() => {
48
+ // Silently handle getVideoMetadata failures to prevent unhandled rejections
49
+ });
49
50
  });
50
51
  return () => {
51
52
  try {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.356",
6
+ "version": "4.0.357",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -23,22 +23,22 @@
23
23
  "source-map": "0.7.3",
24
24
  "open": "^8.4.2",
25
25
  "zod": "3.22.3",
26
- "@remotion/media-parser": "4.0.356",
27
- "remotion": "4.0.356",
28
- "@remotion/player": "4.0.356",
29
- "@remotion/web-renderer": "4.0.356",
30
- "@remotion/webcodecs": "4.0.356",
31
- "@remotion/studio-shared": "4.0.356",
32
- "@remotion/media-utils": "4.0.356",
33
- "@remotion/zod-types": "4.0.356",
34
- "@remotion/renderer": "4.0.356"
26
+ "@remotion/media-utils": "4.0.357",
27
+ "@remotion/media-parser": "4.0.357",
28
+ "@remotion/renderer": "4.0.357",
29
+ "@remotion/web-renderer": "4.0.357",
30
+ "@remotion/studio-shared": "4.0.357",
31
+ "@remotion/webcodecs": "4.0.357",
32
+ "@remotion/zod-types": "4.0.357",
33
+ "@remotion/player": "4.0.357",
34
+ "remotion": "4.0.357"
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "19.0.0",
38
38
  "react-dom": "19.0.0",
39
39
  "@types/semver": "^7.3.4",
40
40
  "eslint": "9.19.0",
41
- "@remotion/eslint-config-internal": "4.0.356"
41
+ "@remotion/eslint-config-internal": "4.0.357"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"