@remotion/vercel 4.0.534 → 4.0.535
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/esm/index.mjs +125 -61
- package/package.json +5 -5
package/dist/esm/index.mjs
CHANGED
|
@@ -189,6 +189,7 @@ var evaluateSourcePropStatuses = (props, config) => {
|
|
|
189
189
|
evaluatedProps.set(props, cached);
|
|
190
190
|
return result;
|
|
191
191
|
};
|
|
192
|
+
var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = 20;
|
|
192
193
|
var NEWTON_ITERATIONS = 4;
|
|
193
194
|
var NEWTON_MIN_SLOPE = 0.001;
|
|
194
195
|
var SUBDIVISION_PRECISION = 0.0000001;
|
|
@@ -370,7 +371,7 @@ function advance({
|
|
|
370
371
|
if (config.damping <= 0) {
|
|
371
372
|
throw new Error("Spring damping must be greater than 0, otherwise the spring() animation will never end, causing an infinite loop.");
|
|
372
373
|
}
|
|
373
|
-
const
|
|
374
|
+
const c = config.damping;
|
|
374
375
|
const m = config.mass;
|
|
375
376
|
const k = config.stiffness;
|
|
376
377
|
const cacheKey = [
|
|
@@ -378,7 +379,7 @@ function advance({
|
|
|
378
379
|
lastTimestamp,
|
|
379
380
|
current,
|
|
380
381
|
velocity,
|
|
381
|
-
|
|
382
|
+
c,
|
|
382
383
|
m,
|
|
383
384
|
k,
|
|
384
385
|
now
|
|
@@ -388,7 +389,7 @@ function advance({
|
|
|
388
389
|
}
|
|
389
390
|
const v0 = -velocity;
|
|
390
391
|
const x0 = toValue - current;
|
|
391
|
-
const zeta =
|
|
392
|
+
const zeta = c / (2 * Math.sqrt(k * m));
|
|
392
393
|
const omega0 = Math.sqrt(k / m);
|
|
393
394
|
const omega1 = omega0 * Math.sqrt(1 - zeta ** 2);
|
|
394
395
|
const t = deltaTime / 1000;
|
|
@@ -1518,6 +1519,14 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
1518
1519
|
checkInfiniteRange("outputRange", outputRange);
|
|
1519
1520
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
1520
1521
|
}
|
|
1522
|
+
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
1523
|
+
var DEFAULT_PREMOUNT_IN_SECONDS = ENABLE_V5_BREAKING_CHANGES ? 2 : 0;
|
|
1524
|
+
var DEFAULT_STUDIO_PREMOUNT_IN_SECONDS = 2;
|
|
1525
|
+
var validateDefaultPremountInSeconds = (value) => {
|
|
1526
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
|
|
1527
|
+
throw new TypeError(\`defaultPremountInSeconds must be a finite, non-negative number, but got \${String(value)}.\`);
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1521
1530
|
var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
1522
1531
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
1523
1532
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
@@ -1894,6 +1903,26 @@ var trimBeforeField = {
|
|
|
1894
1903
|
step: 1,
|
|
1895
1904
|
hiddenFromList: true
|
|
1896
1905
|
};
|
|
1906
|
+
var sequenceTimingSchema = {
|
|
1907
|
+
from: {
|
|
1908
|
+
...fromField,
|
|
1909
|
+
description: "From",
|
|
1910
|
+
hiddenFromList: false,
|
|
1911
|
+
keyframable: false
|
|
1912
|
+
},
|
|
1913
|
+
durationInFrames: {
|
|
1914
|
+
...durationInFramesField,
|
|
1915
|
+
description: "Duration",
|
|
1916
|
+
hiddenFromList: false,
|
|
1917
|
+
keyframable: false
|
|
1918
|
+
},
|
|
1919
|
+
trimBefore: {
|
|
1920
|
+
...trimBeforeField,
|
|
1921
|
+
description: "Trim before",
|
|
1922
|
+
hiddenFromList: false,
|
|
1923
|
+
keyframable: false
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1897
1926
|
var freezeField = {
|
|
1898
1927
|
type: "number",
|
|
1899
1928
|
default: null,
|
|
@@ -2017,8 +2046,8 @@ function hslToRgb(h, s, l) {
|
|
|
2017
2046
|
const p = 2 * l - q;
|
|
2018
2047
|
const r = hue2rgb(p, q, h + 1 / 3);
|
|
2019
2048
|
const g = hue2rgb(p, q, h);
|
|
2020
|
-
const
|
|
2021
|
-
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(
|
|
2049
|
+
const b = hue2rgb(p, q, h - 1 / 3);
|
|
2050
|
+
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
2022
2051
|
}
|
|
2023
2052
|
function parse255(str) {
|
|
2024
2053
|
const int = Number.parseInt(str, 10);
|
|
@@ -2082,25 +2111,25 @@ function parseModernAlpha(str) {
|
|
|
2082
2111
|
}
|
|
2083
2112
|
return Math.max(0, Math.min(1, Number.parseFloat(str)));
|
|
2084
2113
|
}
|
|
2085
|
-
function linearToSrgb(
|
|
2086
|
-
if (
|
|
2087
|
-
return 12.92 *
|
|
2088
|
-
return 1.055 *
|
|
2114
|
+
function linearToSrgb(c) {
|
|
2115
|
+
if (c <= 0.0031308)
|
|
2116
|
+
return 12.92 * c;
|
|
2117
|
+
return 1.055 * c ** (1 / 2.4) - 0.055;
|
|
2089
2118
|
}
|
|
2090
2119
|
function clamp01(v) {
|
|
2091
2120
|
return Math.max(0, Math.min(1, v));
|
|
2092
2121
|
}
|
|
2093
|
-
function rgbFloatToInt(r, g,
|
|
2122
|
+
function rgbFloatToInt(r, g, b, alpha) {
|
|
2094
2123
|
const ri = Math.round(clamp01(r) * 255);
|
|
2095
2124
|
const gi = Math.round(clamp01(g) * 255);
|
|
2096
|
-
const bi = Math.round(clamp01(
|
|
2125
|
+
const bi = Math.round(clamp01(b) * 255);
|
|
2097
2126
|
const ai = Math.round(clamp01(alpha) * 255);
|
|
2098
2127
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
2099
2128
|
}
|
|
2100
|
-
function oklabToSrgb(L,
|
|
2101
|
-
const l_ = L + 0.3963377774 *
|
|
2102
|
-
const m_ = L - 0.1055613458 *
|
|
2103
|
-
const s_ = L - 0.0894841775 *
|
|
2129
|
+
function oklabToSrgb(L, a, b) {
|
|
2130
|
+
const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
|
|
2131
|
+
const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
|
|
2132
|
+
const s_ = L - 0.0894841775 * a - 1.291485548 * b;
|
|
2104
2133
|
const l = l_ * l_ * l_;
|
|
2105
2134
|
const m = m_ * m_ * m_;
|
|
2106
2135
|
const s = s_ * s_ * s_;
|
|
@@ -2109,15 +2138,15 @@ function oklabToSrgb(L, a2, b2) {
|
|
|
2109
2138
|
const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
2110
2139
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
2111
2140
|
}
|
|
2112
|
-
function labToSrgb(L,
|
|
2141
|
+
function labToSrgb(L, a, b) {
|
|
2113
2142
|
const epsilon = 216 / 24389;
|
|
2114
2143
|
const kappa = 24389 / 27;
|
|
2115
2144
|
const Xn = 0.95047;
|
|
2116
2145
|
const Yn = 1;
|
|
2117
2146
|
const Zn = 1.08883;
|
|
2118
2147
|
const fy = (L + 16) / 116;
|
|
2119
|
-
const fx =
|
|
2120
|
-
const fz = fy -
|
|
2148
|
+
const fx = a / 500 + fy;
|
|
2149
|
+
const fz = fy - b / 200;
|
|
2121
2150
|
const fx3 = fx * fx * fx;
|
|
2122
2151
|
const fz3 = fz * fz * fz;
|
|
2123
2152
|
const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
|
|
@@ -2349,27 +2378,27 @@ function normalizeColor(color) {
|
|
|
2349
2378
|
const H = parseHueAngle(match[3]);
|
|
2350
2379
|
const alpha = parseModernAlpha(match[4]);
|
|
2351
2380
|
const hRad = H * Math.PI / 180;
|
|
2352
|
-
const [r, g,
|
|
2353
|
-
return rgbFloatToInt(r, g,
|
|
2381
|
+
const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
2382
|
+
return rgbFloatToInt(r, g, b, alpha);
|
|
2354
2383
|
}
|
|
2355
2384
|
}
|
|
2356
2385
|
if (matchers.oklab) {
|
|
2357
2386
|
if (match = matchers.oklab.exec(color)) {
|
|
2358
2387
|
const L = parseModernComponent(match[1], 1);
|
|
2359
|
-
const
|
|
2360
|
-
const
|
|
2388
|
+
const a = parseModernComponent(match[2], 0.4);
|
|
2389
|
+
const b = parseModernComponent(match[3], 0.4);
|
|
2361
2390
|
const alpha = parseModernAlpha(match[4]);
|
|
2362
|
-
const [r, g, bl] = oklabToSrgb(L,
|
|
2391
|
+
const [r, g, bl] = oklabToSrgb(L, a, b);
|
|
2363
2392
|
return rgbFloatToInt(r, g, bl, alpha);
|
|
2364
2393
|
}
|
|
2365
2394
|
}
|
|
2366
2395
|
if (matchers.lab) {
|
|
2367
2396
|
if (match = matchers.lab.exec(color)) {
|
|
2368
2397
|
const L = parseModernComponent(match[1], 100);
|
|
2369
|
-
const
|
|
2370
|
-
const
|
|
2398
|
+
const a = parseModernComponent(match[2], 125);
|
|
2399
|
+
const b = parseModernComponent(match[3], 125);
|
|
2371
2400
|
const alpha = parseModernAlpha(match[4]);
|
|
2372
|
-
const [r, g, bl] = labToSrgb(L,
|
|
2401
|
+
const [r, g, bl] = labToSrgb(L, a, b);
|
|
2373
2402
|
return rgbFloatToInt(r, g, bl, alpha);
|
|
2374
2403
|
}
|
|
2375
2404
|
}
|
|
@@ -2450,7 +2479,6 @@ var serializeScaleValue = ([x, y, z]) => {
|
|
|
2450
2479
|
function truthy(value) {
|
|
2451
2480
|
return Boolean(value);
|
|
2452
2481
|
}
|
|
2453
|
-
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
2454
2482
|
var validCodecs = [
|
|
2455
2483
|
"h264",
|
|
2456
2484
|
"h265",
|
|
@@ -2547,6 +2575,10 @@ var getOffthreadVideoSource = ({
|
|
|
2547
2575
|
return \`http://localhost:\${window.remotion_proxyPort}/proxy?src=\${encodeURIComponent(getAbsoluteSrc(src))}&time=\${encodeURIComponent(Math.max(0, currentTime))}&transparent=\${String(transparent)}&toneMapped=\${String(toneMapped)}\`;
|
|
2548
2576
|
};
|
|
2549
2577
|
var NoReactInternals = {
|
|
2578
|
+
DEFAULT_PREMOUNT_IN_SECONDS,
|
|
2579
|
+
DEFAULT_STUDIO_PREMOUNT_IN_SECONDS,
|
|
2580
|
+
DEFAULT_SEQUENCE_ACTIVITY_LIMIT,
|
|
2581
|
+
validateDefaultPremountInSeconds,
|
|
2550
2582
|
evaluateSourceNumericValue,
|
|
2551
2583
|
evaluateSourcePropStatuses,
|
|
2552
2584
|
processColor,
|
|
@@ -2770,6 +2802,7 @@ var evaluateSourcePropStatuses = (props, config) => {
|
|
|
2770
2802
|
evaluatedProps.set(props, cached);
|
|
2771
2803
|
return result;
|
|
2772
2804
|
};
|
|
2805
|
+
var DEFAULT_SEQUENCE_ACTIVITY_LIMIT = 20;
|
|
2773
2806
|
var NEWTON_ITERATIONS = 4;
|
|
2774
2807
|
var NEWTON_MIN_SLOPE = 0.001;
|
|
2775
2808
|
var SUBDIVISION_PRECISION = 0.0000001;
|
|
@@ -2951,7 +2984,7 @@ function advance({
|
|
|
2951
2984
|
if (config.damping <= 0) {
|
|
2952
2985
|
throw new Error("Spring damping must be greater than 0, otherwise the spring() animation will never end, causing an infinite loop.");
|
|
2953
2986
|
}
|
|
2954
|
-
const
|
|
2987
|
+
const c = config.damping;
|
|
2955
2988
|
const m = config.mass;
|
|
2956
2989
|
const k = config.stiffness;
|
|
2957
2990
|
const cacheKey = [
|
|
@@ -2959,7 +2992,7 @@ function advance({
|
|
|
2959
2992
|
lastTimestamp,
|
|
2960
2993
|
current,
|
|
2961
2994
|
velocity,
|
|
2962
|
-
|
|
2995
|
+
c,
|
|
2963
2996
|
m,
|
|
2964
2997
|
k,
|
|
2965
2998
|
now
|
|
@@ -2969,7 +3002,7 @@ function advance({
|
|
|
2969
3002
|
}
|
|
2970
3003
|
const v0 = -velocity;
|
|
2971
3004
|
const x0 = toValue - current;
|
|
2972
|
-
const zeta =
|
|
3005
|
+
const zeta = c / (2 * Math.sqrt(k * m));
|
|
2973
3006
|
const omega0 = Math.sqrt(k / m);
|
|
2974
3007
|
const omega1 = omega0 * Math.sqrt(1 - zeta ** 2);
|
|
2975
3008
|
const t = deltaTime / 1000;
|
|
@@ -4099,6 +4132,14 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
4099
4132
|
checkInfiniteRange("outputRange", outputRange);
|
|
4100
4133
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
4101
4134
|
}
|
|
4135
|
+
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
4136
|
+
var DEFAULT_PREMOUNT_IN_SECONDS = ENABLE_V5_BREAKING_CHANGES ? 2 : 0;
|
|
4137
|
+
var DEFAULT_STUDIO_PREMOUNT_IN_SECONDS = 2;
|
|
4138
|
+
var validateDefaultPremountInSeconds = (value) => {
|
|
4139
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
|
|
4140
|
+
throw new TypeError(\`defaultPremountInSeconds must be a finite, non-negative number, but got \${String(value)}.\`);
|
|
4141
|
+
}
|
|
4142
|
+
};
|
|
4102
4143
|
var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
4103
4144
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
4104
4145
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
@@ -4475,6 +4516,26 @@ var trimBeforeField = {
|
|
|
4475
4516
|
step: 1,
|
|
4476
4517
|
hiddenFromList: true
|
|
4477
4518
|
};
|
|
4519
|
+
var sequenceTimingSchema = {
|
|
4520
|
+
from: {
|
|
4521
|
+
...fromField,
|
|
4522
|
+
description: "From",
|
|
4523
|
+
hiddenFromList: false,
|
|
4524
|
+
keyframable: false
|
|
4525
|
+
},
|
|
4526
|
+
durationInFrames: {
|
|
4527
|
+
...durationInFramesField,
|
|
4528
|
+
description: "Duration",
|
|
4529
|
+
hiddenFromList: false,
|
|
4530
|
+
keyframable: false
|
|
4531
|
+
},
|
|
4532
|
+
trimBefore: {
|
|
4533
|
+
...trimBeforeField,
|
|
4534
|
+
description: "Trim before",
|
|
4535
|
+
hiddenFromList: false,
|
|
4536
|
+
keyframable: false
|
|
4537
|
+
}
|
|
4538
|
+
};
|
|
4478
4539
|
var freezeField = {
|
|
4479
4540
|
type: "number",
|
|
4480
4541
|
default: null,
|
|
@@ -4598,8 +4659,8 @@ function hslToRgb(h, s, l) {
|
|
|
4598
4659
|
const p = 2 * l - q;
|
|
4599
4660
|
const r = hue2rgb(p, q, h + 1 / 3);
|
|
4600
4661
|
const g = hue2rgb(p, q, h);
|
|
4601
|
-
const
|
|
4602
|
-
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(
|
|
4662
|
+
const b = hue2rgb(p, q, h - 1 / 3);
|
|
4663
|
+
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
4603
4664
|
}
|
|
4604
4665
|
function parse255(str) {
|
|
4605
4666
|
const int = Number.parseInt(str, 10);
|
|
@@ -4663,25 +4724,25 @@ function parseModernAlpha(str) {
|
|
|
4663
4724
|
}
|
|
4664
4725
|
return Math.max(0, Math.min(1, Number.parseFloat(str)));
|
|
4665
4726
|
}
|
|
4666
|
-
function linearToSrgb(
|
|
4667
|
-
if (
|
|
4668
|
-
return 12.92 *
|
|
4669
|
-
return 1.055 *
|
|
4727
|
+
function linearToSrgb(c) {
|
|
4728
|
+
if (c <= 0.0031308)
|
|
4729
|
+
return 12.92 * c;
|
|
4730
|
+
return 1.055 * c ** (1 / 2.4) - 0.055;
|
|
4670
4731
|
}
|
|
4671
4732
|
function clamp01(v) {
|
|
4672
4733
|
return Math.max(0, Math.min(1, v));
|
|
4673
4734
|
}
|
|
4674
|
-
function rgbFloatToInt(r, g,
|
|
4735
|
+
function rgbFloatToInt(r, g, b, alpha) {
|
|
4675
4736
|
const ri = Math.round(clamp01(r) * 255);
|
|
4676
4737
|
const gi = Math.round(clamp01(g) * 255);
|
|
4677
|
-
const bi = Math.round(clamp01(
|
|
4738
|
+
const bi = Math.round(clamp01(b) * 255);
|
|
4678
4739
|
const ai = Math.round(clamp01(alpha) * 255);
|
|
4679
4740
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
4680
4741
|
}
|
|
4681
|
-
function oklabToSrgb(L,
|
|
4682
|
-
const l_ = L + 0.3963377774 *
|
|
4683
|
-
const m_ = L - 0.1055613458 *
|
|
4684
|
-
const s_ = L - 0.0894841775 *
|
|
4742
|
+
function oklabToSrgb(L, a, b) {
|
|
4743
|
+
const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
|
|
4744
|
+
const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
|
|
4745
|
+
const s_ = L - 0.0894841775 * a - 1.291485548 * b;
|
|
4685
4746
|
const l = l_ * l_ * l_;
|
|
4686
4747
|
const m = m_ * m_ * m_;
|
|
4687
4748
|
const s = s_ * s_ * s_;
|
|
@@ -4690,15 +4751,15 @@ function oklabToSrgb(L, a2, b2) {
|
|
|
4690
4751
|
const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
4691
4752
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
4692
4753
|
}
|
|
4693
|
-
function labToSrgb(L,
|
|
4754
|
+
function labToSrgb(L, a, b) {
|
|
4694
4755
|
const epsilon = 216 / 24389;
|
|
4695
4756
|
const kappa = 24389 / 27;
|
|
4696
4757
|
const Xn = 0.95047;
|
|
4697
4758
|
const Yn = 1;
|
|
4698
4759
|
const Zn = 1.08883;
|
|
4699
4760
|
const fy = (L + 16) / 116;
|
|
4700
|
-
const fx =
|
|
4701
|
-
const fz = fy -
|
|
4761
|
+
const fx = a / 500 + fy;
|
|
4762
|
+
const fz = fy - b / 200;
|
|
4702
4763
|
const fx3 = fx * fx * fx;
|
|
4703
4764
|
const fz3 = fz * fz * fz;
|
|
4704
4765
|
const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
|
|
@@ -4930,27 +4991,27 @@ function normalizeColor(color) {
|
|
|
4930
4991
|
const H = parseHueAngle(match[3]);
|
|
4931
4992
|
const alpha = parseModernAlpha(match[4]);
|
|
4932
4993
|
const hRad = H * Math.PI / 180;
|
|
4933
|
-
const [r, g,
|
|
4934
|
-
return rgbFloatToInt(r, g,
|
|
4994
|
+
const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
|
|
4995
|
+
return rgbFloatToInt(r, g, b, alpha);
|
|
4935
4996
|
}
|
|
4936
4997
|
}
|
|
4937
4998
|
if (matchers.oklab) {
|
|
4938
4999
|
if (match = matchers.oklab.exec(color)) {
|
|
4939
5000
|
const L = parseModernComponent(match[1], 1);
|
|
4940
|
-
const
|
|
4941
|
-
const
|
|
5001
|
+
const a = parseModernComponent(match[2], 0.4);
|
|
5002
|
+
const b = parseModernComponent(match[3], 0.4);
|
|
4942
5003
|
const alpha = parseModernAlpha(match[4]);
|
|
4943
|
-
const [r, g, bl] = oklabToSrgb(L,
|
|
5004
|
+
const [r, g, bl] = oklabToSrgb(L, a, b);
|
|
4944
5005
|
return rgbFloatToInt(r, g, bl, alpha);
|
|
4945
5006
|
}
|
|
4946
5007
|
}
|
|
4947
5008
|
if (matchers.lab) {
|
|
4948
5009
|
if (match = matchers.lab.exec(color)) {
|
|
4949
5010
|
const L = parseModernComponent(match[1], 100);
|
|
4950
|
-
const
|
|
4951
|
-
const
|
|
5011
|
+
const a = parseModernComponent(match[2], 125);
|
|
5012
|
+
const b = parseModernComponent(match[3], 125);
|
|
4952
5013
|
const alpha = parseModernAlpha(match[4]);
|
|
4953
|
-
const [r, g, bl] = labToSrgb(L,
|
|
5014
|
+
const [r, g, bl] = labToSrgb(L, a, b);
|
|
4954
5015
|
return rgbFloatToInt(r, g, bl, alpha);
|
|
4955
5016
|
}
|
|
4956
5017
|
}
|
|
@@ -5031,7 +5092,6 @@ var serializeScaleValue = ([x, y, z]) => {
|
|
|
5031
5092
|
function truthy(value) {
|
|
5032
5093
|
return Boolean(value);
|
|
5033
5094
|
}
|
|
5034
|
-
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
5035
5095
|
var validCodecs = [
|
|
5036
5096
|
"h264",
|
|
5037
5097
|
"h265",
|
|
@@ -5128,6 +5188,10 @@ var getOffthreadVideoSource = ({
|
|
|
5128
5188
|
return \`http://localhost:\${window.remotion_proxyPort}/proxy?src=\${encodeURIComponent(getAbsoluteSrc(src))}&time=\${encodeURIComponent(Math.max(0, currentTime))}&transparent=\${String(transparent)}&toneMapped=\${String(toneMapped)}\`;
|
|
5129
5189
|
};
|
|
5130
5190
|
var NoReactInternals = {
|
|
5191
|
+
DEFAULT_PREMOUNT_IN_SECONDS,
|
|
5192
|
+
DEFAULT_STUDIO_PREMOUNT_IN_SECONDS,
|
|
5193
|
+
DEFAULT_SEQUENCE_ACTIVITY_LIMIT,
|
|
5194
|
+
validateDefaultPremountInSeconds,
|
|
5131
5195
|
evaluateSourceNumericValue,
|
|
5132
5196
|
evaluateSourcePropStatuses,
|
|
5133
5197
|
processColor,
|
|
@@ -5545,7 +5609,7 @@ var FALLBACK_URL = "https://remotion.media/libc6_2.35-0ubuntu3.1_amd64.deb";
|
|
|
5545
5609
|
async function patchCompositor({
|
|
5546
5610
|
sandbox
|
|
5547
5611
|
}) {
|
|
5548
|
-
const
|
|
5612
|
+
const script = `
|
|
5549
5613
|
set -euo pipefail
|
|
5550
5614
|
|
|
5551
5615
|
echo "[patch-compositor] Listing node_modules/@remotion/:"
|
|
@@ -5614,7 +5678,7 @@ echo "[patch-compositor] Compositor patched successfully"
|
|
|
5614
5678
|
`;
|
|
5615
5679
|
const cmd = await sandbox.runCommand({
|
|
5616
5680
|
cmd: "bash",
|
|
5617
|
-
args: ["-c",
|
|
5681
|
+
args: ["-c", script],
|
|
5618
5682
|
detached: true
|
|
5619
5683
|
});
|
|
5620
5684
|
for await (const _log of cmd.logs()) {}
|
|
@@ -6025,10 +6089,10 @@ async function uploadToVercelBlob({
|
|
|
6025
6089
|
return result;
|
|
6026
6090
|
}
|
|
6027
6091
|
export {
|
|
6028
|
-
|
|
6029
|
-
renderStillOnVercel,
|
|
6030
|
-
renderMediaOnVercel,
|
|
6031
|
-
getRenderProgress,
|
|
6092
|
+
addBundleToSandbox,
|
|
6032
6093
|
createSandbox,
|
|
6033
|
-
|
|
6094
|
+
getRenderProgress,
|
|
6095
|
+
renderMediaOnVercel,
|
|
6096
|
+
renderStillOnVercel,
|
|
6097
|
+
uploadToVercelBlob
|
|
6034
6098
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/vercel",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.535",
|
|
4
4
|
"description": "Render Remotion videos on Vercel Sandbox",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format": "oxfmt src",
|
|
15
15
|
"lint": "eslint src",
|
|
16
16
|
"watch": "tsgo -w",
|
|
17
|
-
"make": "bun --env-file=../.env.bundle bundle.ts && tsgo &&
|
|
17
|
+
"make": "bun --env-file=../.env.bundle bundle.ts && tsgo && bun check -p tsconfig.scripts.json"
|
|
18
18
|
},
|
|
19
19
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
20
20
|
"contributors": [],
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
27
|
-
"remotion": "4.0.
|
|
26
|
+
"@remotion/renderer": "4.0.535",
|
|
27
|
+
"remotion": "4.0.535"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@vercel/sandbox": ">=1.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
41
|
+
"@remotion/eslint-config-internal": "4.0.535",
|
|
42
42
|
"@vercel/blob": "2.3.0",
|
|
43
43
|
"@vercel/sandbox": "1.6.0",
|
|
44
44
|
"eslint": "9.19.0",
|