remotion 4.0.509 → 4.0.511

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.
@@ -199,6 +199,12 @@ export declare const canvasImageSchema: {
199
199
  readonly hidden: import("../interactivity-schema.js").BooleanFieldSchema;
200
200
  readonly name: import("../interactivity-schema.js").HiddenFieldSchema;
201
201
  readonly showInTimeline: import("../interactivity-schema.js").HiddenFieldSchema;
202
+ readonly src: {
203
+ readonly type: "asset";
204
+ readonly default: undefined;
205
+ readonly description: "Source";
206
+ readonly keyframable: false;
207
+ };
202
208
  readonly fit: {
203
209
  readonly type: "enum";
204
210
  readonly default: "fill";
@@ -20,6 +20,12 @@ const use_delay_render_js_1 = require("../use-delay-render.js");
20
20
  const use_premounting_js_1 = require("../use-premounting.js");
21
21
  const with_interactivity_schema_js_1 = require("../with-interactivity-schema.js");
22
22
  exports.canvasImageSchema = {
23
+ src: {
24
+ type: 'asset',
25
+ default: undefined,
26
+ description: 'Source',
27
+ keyframable: false,
28
+ },
23
29
  ...interactivity_schema_js_1.baseSchema,
24
30
  ...interactivity_schema_js_1.cropSchema,
25
31
  ...interactivity_schema_js_1.premountSchema,
@@ -51,8 +51,8 @@ const validateSequenceCrop = (crop, componentName = '<Sequence />') => {
51
51
  if (typeof value !== 'number' || !Number.isFinite(value)) {
52
52
  throw new TypeError(`The "${name}" prop of ${componentName} must be a finite number, but got ${String(value)}.`);
53
53
  }
54
- if (value < 0 || value > 1) {
55
- throw new RangeError(`The "${name}" prop of ${componentName} must be between 0 and 1, but got ${value}.`);
54
+ if (value > 100) {
55
+ throw new RangeError(`The "${name}" prop of ${componentName} must be between 0 and 1, but got ${value}. The crop range is 0 to 1, not 0 to 100.`);
56
56
  }
57
57
  }
58
58
  };
@@ -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.509";
6
+ export declare const VERSION = "4.0.511";
@@ -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.509';
10
+ exports.VERSION = '4.0.511';
@@ -1340,7 +1340,7 @@ var getSingleChildComponent = (children) => {
1340
1340
  };
1341
1341
 
1342
1342
  // src/version.ts
1343
- var VERSION = "4.0.509";
1343
+ var VERSION = "4.0.511";
1344
1344
 
1345
1345
  // src/multiple-versions-warning.ts
1346
1346
  var checkMultipleRemotionVersions = () => {
@@ -2190,8 +2190,8 @@ var validateSequenceCrop = (crop, componentName = "<Sequence />") => {
2190
2190
  if (typeof value !== "number" || !Number.isFinite(value)) {
2191
2191
  throw new TypeError(`The "${name}" prop of ${componentName} must be a finite number, but got ${String(value)}.`);
2192
2192
  }
2193
- if (value < 0 || value > 1) {
2194
- throw new RangeError(`The "${name}" prop of ${componentName} must be between 0 and 1, but got ${value}.`);
2193
+ if (value > 100) {
2194
+ throw new RangeError(`The "${name}" prop of ${componentName} must be between 0 and 1, but got ${value}. The crop range is 0 to 1, not 0 to 100.`);
2195
2195
  }
2196
2196
  }
2197
2197
  };
@@ -10488,6 +10488,12 @@ function truncateSrcForLabel(src) {
10488
10488
  // src/canvas-image/CanvasImage.tsx
10489
10489
  import { jsx as jsx27 } from "react/jsx-runtime";
10490
10490
  var canvasImageSchema = {
10491
+ src: {
10492
+ type: "asset",
10493
+ default: undefined,
10494
+ description: "Source",
10495
+ keyframable: false
10496
+ },
10491
10497
  ...baseSchema,
10492
10498
  ...cropSchema,
10493
10499
  ...premountSchema,
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.509";
2
+ var VERSION = "4.0.511";
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.509",
6
+ "version": "4.0.511",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "react-dom": "19.2.3",
36
36
  "webpack": "5.105.0",
37
37
  "zod": "4.4.3",
38
- "@remotion/eslint-config-internal": "4.0.509",
38
+ "@remotion/eslint-config-internal": "4.0.511",
39
39
  "eslint": "9.19.0",
40
40
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
41
41
  },