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.
- package/dist/cjs/canvas-image/CanvasImage.d.ts +6 -0
- package/dist/cjs/canvas-image/CanvasImage.js +6 -0
- package/dist/cjs/sequence-crop.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +9 -3
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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
|
};
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1340,7 +1340,7 @@ var getSingleChildComponent = (children) => {
|
|
|
1340
1340
|
};
|
|
1341
1341
|
|
|
1342
1342
|
// src/version.ts
|
|
1343
|
-
var VERSION = "4.0.
|
|
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
|
|
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,
|
package/dist/esm/version.mjs
CHANGED
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.
|
|
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.
|
|
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
|
},
|