@remotion/studio 4.0.352 → 4.0.354

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.
@@ -22342,7 +22342,7 @@ var parseElst = ({
22342
22342
  size: size4,
22343
22343
  offset
22344
22344
  }) => {
22345
- const { expectNoMoreBytes } = iterator.startBox(size4 - 8);
22345
+ const { discardRest } = iterator.startBox(size4 - 8);
22346
22346
  const version = iterator.getUint8();
22347
22347
  const flags = iterator.getUint24();
22348
22348
  const entryCount = iterator.getUint32();
@@ -22359,7 +22359,7 @@ var parseElst = ({
22359
22359
  mediaRateFraction
22360
22360
  });
22361
22361
  }
22362
- expectNoMoreBytes();
22362
+ discardRest();
22363
22363
  const result = {
22364
22364
  type: "elst-box",
22365
22365
  version,
@@ -25357,7 +25357,7 @@ var parseStss = ({
25357
25357
  }
25358
25358
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
25359
25359
  if (bytesRemainingInBox > 0) {
25360
- throw new Error(`Unexpected bytes remaining in box stss`);
25360
+ iterator.discard(bytesRemainingInBox);
25361
25361
  }
25362
25362
  return {
25363
25363
  type: "stss-box",
@@ -22622,7 +22622,7 @@ var parseElst = ({
22622
22622
  size: size4,
22623
22623
  offset
22624
22624
  }) => {
22625
- const { expectNoMoreBytes } = iterator.startBox(size4 - 8);
22625
+ const { discardRest } = iterator.startBox(size4 - 8);
22626
22626
  const version = iterator.getUint8();
22627
22627
  const flags = iterator.getUint24();
22628
22628
  const entryCount = iterator.getUint32();
@@ -22639,7 +22639,7 @@ var parseElst = ({
22639
22639
  mediaRateFraction
22640
22640
  });
22641
22641
  }
22642
- expectNoMoreBytes();
22642
+ discardRest();
22643
22643
  const result = {
22644
22644
  type: "elst-box",
22645
22645
  version,
@@ -25637,7 +25637,7 @@ var parseStss = ({
25637
25637
  }
25638
25638
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
25639
25639
  if (bytesRemainingInBox > 0) {
25640
- throw new Error(`Unexpected bytes remaining in box stss`);
25640
+ iterator.discard(bytesRemainingInBox);
25641
25641
  }
25642
25642
  return {
25643
25643
  type: "stss-box",
@@ -185,7 +185,7 @@ var renderContent = (Root) => {
185
185
  renderToDOM(/* @__PURE__ */ jsx("div", {
186
186
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
187
187
  }));
188
- import("./chunk-h0d5z5fq.js").then(({ StudioInternals }) => {
188
+ import("./chunk-zjtmp09e.js").then(({ StudioInternals }) => {
189
189
  window.remotion_isStudio = true;
190
190
  window.remotion_isReadOnlyStudio = true;
191
191
  Internals.enableSequenceStackTraces();
@@ -228,14 +228,14 @@ if (typeof window !== "undefined") {
228
228
  const compositions = Internals.compositionsRef.current.getCompositions();
229
229
  const canSerializeDefaultProps = getCanSerializeDefaultProps(compositions);
230
230
  if (!canSerializeDefaultProps) {
231
- Internals.Log.warn(window.remotion_logLevel, "defaultProps are too big to serialize - trying to find the problematic composition...");
232
- Internals.Log.warn(window.remotion_logLevel, "Serialization:", compositions);
231
+ Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, "defaultProps are too big to serialize - trying to find the problematic composition...");
232
+ Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, "Serialization:", compositions);
233
233
  for (const comp of compositions) {
234
234
  if (!getCanSerializeDefaultProps(comp)) {
235
235
  throw new Error(`defaultProps too big - could not serialize - the defaultProps of composition with ID ${comp.id} - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops`);
236
236
  }
237
237
  }
238
- Internals.Log.warn(window.remotion_logLevel, "Could not single out a problematic composition - The composition list as a whole is too big to serialize.");
238
+ Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, "Could not single out a problematic composition - The composition list as a whole is too big to serialize.");
239
239
  throw new Error("defaultProps too big - Could not serialize - an object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops");
240
240
  }
241
241
  return compositions;
@@ -233,14 +233,14 @@ if (typeof window !== 'undefined') {
233
233
  const compositions = remotion_1.Internals.compositionsRef.current.getCompositions();
234
234
  const canSerializeDefaultProps = getCanSerializeDefaultProps(compositions);
235
235
  if (!canSerializeDefaultProps) {
236
- remotion_1.Internals.Log.warn(window.remotion_logLevel, 'defaultProps are too big to serialize - trying to find the problematic composition...');
237
- remotion_1.Internals.Log.warn(window.remotion_logLevel, 'Serialization:', compositions);
236
+ remotion_1.Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, 'defaultProps are too big to serialize - trying to find the problematic composition...');
237
+ remotion_1.Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, 'Serialization:', compositions);
238
238
  for (const comp of compositions) {
239
239
  if (!getCanSerializeDefaultProps(comp)) {
240
240
  throw new Error(`defaultProps too big - could not serialize - the defaultProps of composition with ID ${comp.id} - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops`);
241
241
  }
242
242
  }
243
- remotion_1.Internals.Log.warn(window.remotion_logLevel, 'Could not single out a problematic composition - The composition list as a whole is too big to serialize.');
243
+ remotion_1.Internals.Log.warn({ logLevel: window.remotion_logLevel, tag: null }, 'Could not single out a problematic composition - The composition list as a whole is too big to serialize.');
244
244
  throw new Error('defaultProps too big - Could not serialize - an object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops');
245
245
  }
246
246
  return compositions;
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.352",
6
+ "version": "4.0.354",
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": "4.0.352",
27
- "@remotion/media-utils": "4.0.352",
28
- "@remotion/player": "4.0.352",
29
- "@remotion/media-parser": "4.0.352",
30
- "@remotion/renderer": "4.0.352",
31
- "@remotion/web-renderer": "4.0.352",
32
- "@remotion/studio-shared": "4.0.352",
33
- "@remotion/webcodecs": "4.0.352",
34
- "@remotion/zod-types": "4.0.352"
26
+ "remotion": "4.0.354",
27
+ "@remotion/player": "4.0.354",
28
+ "@remotion/media-utils": "4.0.354",
29
+ "@remotion/media-parser": "4.0.354",
30
+ "@remotion/renderer": "4.0.354",
31
+ "@remotion/web-renderer": "4.0.354",
32
+ "@remotion/studio-shared": "4.0.354",
33
+ "@remotion/webcodecs": "4.0.354",
34
+ "@remotion/zod-types": "4.0.354"
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.352"
41
+ "@remotion/eslint-config-internal": "4.0.354"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"