@remotion/promo-pages 4.0.485 → 4.0.486
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/Homepage.js +328 -254
- package/dist/components/homepage/CommunityStatsItems.js +2 -2
- package/dist/components/homepage/GetStartedStrip.js +1 -1
- package/dist/components/homepage/GitHubButton.js +1 -1
- package/dist/components/homepage/Pricing.d.ts +3 -1
- package/dist/components/homepage/Pricing.js +6 -2
- package/dist/components/prompts/PromptsGallery.js +1 -1
- package/dist/components/prompts/PromptsSubmit.js +3 -169
- package/dist/design.js +166 -131
- package/dist/experts.js +73 -38
- package/dist/homepage/Pricing.js +175 -134
- package/dist/prompts/PromptsGallery.js +170 -135
- package/dist/prompts/PromptsShow.js +168 -133
- package/dist/prompts/PromptsSubmit.js +166 -131
- package/dist/team.js +166 -131
- package/dist/template-modal-content.js +175 -140
- package/dist/templates.js +166 -131
- package/package.json +13 -13
|
@@ -18712,7 +18712,7 @@ var getDefaultConfig = () => {
|
|
|
18712
18712
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
18713
18713
|
|
|
18714
18714
|
// ../design/dist/esm/index.mjs
|
|
18715
|
-
import React32, { useEffect as
|
|
18715
|
+
import React32, { useEffect as useEffect21, useMemo as useMemo42, useState as useState21 } from "react";
|
|
18716
18716
|
|
|
18717
18717
|
// ../paths/dist/esm/index.mjs
|
|
18718
18718
|
var cutLInstruction = ({
|
|
@@ -20818,6 +20818,94 @@ var getBoundingBox = (d) => {
|
|
|
20818
20818
|
const unarced = removeATSHVQInstructions(normalizeInstructions(parsed));
|
|
20819
20819
|
return getBoundingBoxFromInstructions(unarced);
|
|
20820
20820
|
};
|
|
20821
|
+
var translateSegments = (segments, x, y) => {
|
|
20822
|
+
return segments.map((segment) => {
|
|
20823
|
+
if (segment.type === "a" || segment.type === "c" || segment.type === "v" || segment.type === "s" || segment.type === "h" || segment.type === "l" || segment.type === "m" || segment.type === "q" || segment.type === "t") {
|
|
20824
|
+
return segment;
|
|
20825
|
+
}
|
|
20826
|
+
if (segment.type === "V") {
|
|
20827
|
+
return {
|
|
20828
|
+
type: "V",
|
|
20829
|
+
y: segment.y + y
|
|
20830
|
+
};
|
|
20831
|
+
}
|
|
20832
|
+
if (segment.type === "H") {
|
|
20833
|
+
return {
|
|
20834
|
+
type: "H",
|
|
20835
|
+
x: segment.x + x
|
|
20836
|
+
};
|
|
20837
|
+
}
|
|
20838
|
+
if (segment.type === "A") {
|
|
20839
|
+
return {
|
|
20840
|
+
type: "A",
|
|
20841
|
+
rx: segment.rx,
|
|
20842
|
+
ry: segment.ry,
|
|
20843
|
+
largeArcFlag: segment.largeArcFlag,
|
|
20844
|
+
sweepFlag: segment.sweepFlag,
|
|
20845
|
+
xAxisRotation: segment.xAxisRotation,
|
|
20846
|
+
x: segment.x + x,
|
|
20847
|
+
y: segment.y + y
|
|
20848
|
+
};
|
|
20849
|
+
}
|
|
20850
|
+
if (segment.type === "Z") {
|
|
20851
|
+
return segment;
|
|
20852
|
+
}
|
|
20853
|
+
if (segment.type === "C") {
|
|
20854
|
+
return {
|
|
20855
|
+
type: "C",
|
|
20856
|
+
cp1x: segment.cp1x + x,
|
|
20857
|
+
cp1y: segment.cp1y + y,
|
|
20858
|
+
cp2x: segment.cp2x + x,
|
|
20859
|
+
cp2y: segment.cp2y + y,
|
|
20860
|
+
x: segment.x + x,
|
|
20861
|
+
y: segment.y + y
|
|
20862
|
+
};
|
|
20863
|
+
}
|
|
20864
|
+
if (segment.type === "Q") {
|
|
20865
|
+
return {
|
|
20866
|
+
type: "Q",
|
|
20867
|
+
cpx: segment.cpx + x,
|
|
20868
|
+
cpy: segment.cpy + y,
|
|
20869
|
+
x: segment.x + x,
|
|
20870
|
+
y: segment.y + y
|
|
20871
|
+
};
|
|
20872
|
+
}
|
|
20873
|
+
if (segment.type === "S") {
|
|
20874
|
+
return {
|
|
20875
|
+
type: "S",
|
|
20876
|
+
cpx: segment.cpx + x,
|
|
20877
|
+
cpy: segment.cpy + y,
|
|
20878
|
+
x: segment.x + x,
|
|
20879
|
+
y: segment.y + y
|
|
20880
|
+
};
|
|
20881
|
+
}
|
|
20882
|
+
if (segment.type === "T") {
|
|
20883
|
+
return {
|
|
20884
|
+
type: "T",
|
|
20885
|
+
x: segment.x + x,
|
|
20886
|
+
y: segment.y + y
|
|
20887
|
+
};
|
|
20888
|
+
}
|
|
20889
|
+
if (segment.type === "L") {
|
|
20890
|
+
return {
|
|
20891
|
+
type: "L",
|
|
20892
|
+
x: segment.x + x,
|
|
20893
|
+
y: segment.y + y
|
|
20894
|
+
};
|
|
20895
|
+
}
|
|
20896
|
+
if (segment.type === "M") {
|
|
20897
|
+
return {
|
|
20898
|
+
type: "M",
|
|
20899
|
+
x: segment.x + x,
|
|
20900
|
+
y: segment.y + y
|
|
20901
|
+
};
|
|
20902
|
+
}
|
|
20903
|
+
throw new Error(`Unknown segment type: ${segment.type}`);
|
|
20904
|
+
});
|
|
20905
|
+
};
|
|
20906
|
+
var translatePath = (path, x, y) => {
|
|
20907
|
+
return serializeInstructions(translateSegments(parsePath(path), x, y));
|
|
20908
|
+
};
|
|
20821
20909
|
var mod = (x, m) => {
|
|
20822
20910
|
return (x % m + m) % m;
|
|
20823
20911
|
};
|
|
@@ -21379,94 +21467,6 @@ var getLength = (path) => {
|
|
|
21379
21467
|
const constructucted = construct(path);
|
|
21380
21468
|
return constructucted.totalLength;
|
|
21381
21469
|
};
|
|
21382
|
-
var translateSegments = (segments, x, y) => {
|
|
21383
|
-
return segments.map((segment) => {
|
|
21384
|
-
if (segment.type === "a" || segment.type === "c" || segment.type === "v" || segment.type === "s" || segment.type === "h" || segment.type === "l" || segment.type === "m" || segment.type === "q" || segment.type === "t") {
|
|
21385
|
-
return segment;
|
|
21386
|
-
}
|
|
21387
|
-
if (segment.type === "V") {
|
|
21388
|
-
return {
|
|
21389
|
-
type: "V",
|
|
21390
|
-
y: segment.y + y
|
|
21391
|
-
};
|
|
21392
|
-
}
|
|
21393
|
-
if (segment.type === "H") {
|
|
21394
|
-
return {
|
|
21395
|
-
type: "H",
|
|
21396
|
-
x: segment.x + x
|
|
21397
|
-
};
|
|
21398
|
-
}
|
|
21399
|
-
if (segment.type === "A") {
|
|
21400
|
-
return {
|
|
21401
|
-
type: "A",
|
|
21402
|
-
rx: segment.rx,
|
|
21403
|
-
ry: segment.ry,
|
|
21404
|
-
largeArcFlag: segment.largeArcFlag,
|
|
21405
|
-
sweepFlag: segment.sweepFlag,
|
|
21406
|
-
xAxisRotation: segment.xAxisRotation,
|
|
21407
|
-
x: segment.x + x,
|
|
21408
|
-
y: segment.y + y
|
|
21409
|
-
};
|
|
21410
|
-
}
|
|
21411
|
-
if (segment.type === "Z") {
|
|
21412
|
-
return segment;
|
|
21413
|
-
}
|
|
21414
|
-
if (segment.type === "C") {
|
|
21415
|
-
return {
|
|
21416
|
-
type: "C",
|
|
21417
|
-
cp1x: segment.cp1x + x,
|
|
21418
|
-
cp1y: segment.cp1y + y,
|
|
21419
|
-
cp2x: segment.cp2x + x,
|
|
21420
|
-
cp2y: segment.cp2y + y,
|
|
21421
|
-
x: segment.x + x,
|
|
21422
|
-
y: segment.y + y
|
|
21423
|
-
};
|
|
21424
|
-
}
|
|
21425
|
-
if (segment.type === "Q") {
|
|
21426
|
-
return {
|
|
21427
|
-
type: "Q",
|
|
21428
|
-
cpx: segment.cpx + x,
|
|
21429
|
-
cpy: segment.cpy + y,
|
|
21430
|
-
x: segment.x + x,
|
|
21431
|
-
y: segment.y + y
|
|
21432
|
-
};
|
|
21433
|
-
}
|
|
21434
|
-
if (segment.type === "S") {
|
|
21435
|
-
return {
|
|
21436
|
-
type: "S",
|
|
21437
|
-
cpx: segment.cpx + x,
|
|
21438
|
-
cpy: segment.cpy + y,
|
|
21439
|
-
x: segment.x + x,
|
|
21440
|
-
y: segment.y + y
|
|
21441
|
-
};
|
|
21442
|
-
}
|
|
21443
|
-
if (segment.type === "T") {
|
|
21444
|
-
return {
|
|
21445
|
-
type: "T",
|
|
21446
|
-
x: segment.x + x,
|
|
21447
|
-
y: segment.y + y
|
|
21448
|
-
};
|
|
21449
|
-
}
|
|
21450
|
-
if (segment.type === "L") {
|
|
21451
|
-
return {
|
|
21452
|
-
type: "L",
|
|
21453
|
-
x: segment.x + x,
|
|
21454
|
-
y: segment.y + y
|
|
21455
|
-
};
|
|
21456
|
-
}
|
|
21457
|
-
if (segment.type === "M") {
|
|
21458
|
-
return {
|
|
21459
|
-
type: "M",
|
|
21460
|
-
x: segment.x + x,
|
|
21461
|
-
y: segment.y + y
|
|
21462
|
-
};
|
|
21463
|
-
}
|
|
21464
|
-
throw new Error(`Unknown segment type: ${segment.type}`);
|
|
21465
|
-
});
|
|
21466
|
-
};
|
|
21467
|
-
var translatePath = (path, x, y) => {
|
|
21468
|
-
return serializeInstructions(translateSegments(parsePath(path), x, y));
|
|
21469
|
-
};
|
|
21470
21470
|
var resetPath = (d) => {
|
|
21471
21471
|
const box = getBoundingBox(d);
|
|
21472
21472
|
return translatePath(d, -box.x1, -box.y1);
|
|
@@ -21655,8 +21655,8 @@ import {
|
|
|
21655
21655
|
forwardRef as forwardRef10,
|
|
21656
21656
|
useCallback as useCallback17,
|
|
21657
21657
|
useContext as useContext32,
|
|
21658
|
-
useEffect as useEffect17,
|
|
21659
21658
|
useImperativeHandle as useImperativeHandle7,
|
|
21659
|
+
useLayoutEffect as useLayoutEffect10,
|
|
21660
21660
|
useMemo as useMemo31,
|
|
21661
21661
|
useRef as useRef23,
|
|
21662
21662
|
useState as useState16
|
|
@@ -21664,7 +21664,7 @@ import {
|
|
|
21664
21664
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
21665
21665
|
import { forwardRef as forwardRef11, useCallback as useCallback18, useState as useState17 } from "react";
|
|
21666
21666
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
21667
|
-
import { useCallback as useCallback19, useContext as useContext33, useLayoutEffect as
|
|
21667
|
+
import { useCallback as useCallback19, useContext as useContext33, useLayoutEffect as useLayoutEffect11, useRef as useRef24 } from "react";
|
|
21668
21668
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
21669
21669
|
import React29, { forwardRef as forwardRef12, useCallback as useCallback20, useRef as useRef25 } from "react";
|
|
21670
21670
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
@@ -21690,8 +21690,8 @@ import { useCallback as useCallback24 } from "react";
|
|
|
21690
21690
|
import {
|
|
21691
21691
|
useCallback as useCallback22,
|
|
21692
21692
|
useContext as useContext36,
|
|
21693
|
-
useEffect as
|
|
21694
|
-
useLayoutEffect as
|
|
21693
|
+
useEffect as useEffect17,
|
|
21694
|
+
useLayoutEffect as useLayoutEffect12,
|
|
21695
21695
|
useMemo as useMemo35,
|
|
21696
21696
|
useState as useState19
|
|
21697
21697
|
} from "react";
|
|
@@ -21700,13 +21700,13 @@ import React37, {
|
|
|
21700
21700
|
forwardRef as forwardRef13,
|
|
21701
21701
|
useCallback as useCallback23,
|
|
21702
21702
|
useContext as useContext37,
|
|
21703
|
-
useEffect as
|
|
21703
|
+
useEffect as useEffect19,
|
|
21704
21704
|
useImperativeHandle as useImperativeHandle9,
|
|
21705
21705
|
useMemo as useMemo36,
|
|
21706
21706
|
useRef as useRef27,
|
|
21707
21707
|
useState as useState20
|
|
21708
21708
|
} from "react";
|
|
21709
|
-
import { useEffect as
|
|
21709
|
+
import { useEffect as useEffect18 } from "react";
|
|
21710
21710
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
21711
21711
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
21712
21712
|
import React39, { useMemo as useMemo37 } from "react";
|
|
@@ -21723,9 +21723,9 @@ import { forwardRef as forwardRef16, useCallback as useCallback25, useContext as
|
|
|
21723
21723
|
import {
|
|
21724
21724
|
forwardRef as forwardRef15,
|
|
21725
21725
|
useContext as useContext38,
|
|
21726
|
-
useEffect as
|
|
21726
|
+
useEffect as useEffect20,
|
|
21727
21727
|
useImperativeHandle as useImperativeHandle10,
|
|
21728
|
-
useLayoutEffect as
|
|
21728
|
+
useLayoutEffect as useLayoutEffect13,
|
|
21729
21729
|
useMemo as useMemo39,
|
|
21730
21730
|
useRef as useRef28
|
|
21731
21731
|
} from "react";
|
|
@@ -22899,7 +22899,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
22899
22899
|
var addSequenceStackTraces = (component) => {
|
|
22900
22900
|
componentsToAddStacksTo.push(component);
|
|
22901
22901
|
};
|
|
22902
|
-
var VERSION = "4.0.
|
|
22902
|
+
var VERSION = "4.0.486";
|
|
22903
22903
|
var checkMultipleRemotionVersions = () => {
|
|
22904
22904
|
if (typeof globalThis === "undefined") {
|
|
22905
22905
|
return;
|
|
@@ -23305,6 +23305,12 @@ var textSchema = {
|
|
|
23305
23305
|
default: undefined,
|
|
23306
23306
|
description: "Color"
|
|
23307
23307
|
},
|
|
23308
|
+
"style.fontFamily": {
|
|
23309
|
+
type: "font-family",
|
|
23310
|
+
default: undefined,
|
|
23311
|
+
description: "Font family",
|
|
23312
|
+
keyframable: false
|
|
23313
|
+
},
|
|
23308
23314
|
"style.fontSize": {
|
|
23309
23315
|
type: "number",
|
|
23310
23316
|
default: undefined,
|
|
@@ -30635,6 +30641,18 @@ var loadImage = ({
|
|
|
30635
30641
|
function exponentialBackoff(errorCount) {
|
|
30636
30642
|
return 1000 * 2 ** (errorCount - 1);
|
|
30637
30643
|
}
|
|
30644
|
+
var waitForNextFrame = ({
|
|
30645
|
+
onFrame
|
|
30646
|
+
}) => {
|
|
30647
|
+
if (typeof requestAnimationFrame === "undefined") {
|
|
30648
|
+
onFrame();
|
|
30649
|
+
return () => {
|
|
30650
|
+
return;
|
|
30651
|
+
};
|
|
30652
|
+
}
|
|
30653
|
+
const frame = requestAnimationFrame(onFrame);
|
|
30654
|
+
return () => cancelAnimationFrame(frame);
|
|
30655
|
+
};
|
|
30638
30656
|
var CanvasImageContent = forwardRef10(({
|
|
30639
30657
|
src,
|
|
30640
30658
|
width,
|
|
@@ -30664,6 +30682,17 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30664
30682
|
overrideId: controls?.overrideId ?? null
|
|
30665
30683
|
});
|
|
30666
30684
|
const sequenceContext = useContext32(SequenceContext);
|
|
30685
|
+
const pendingLoadDelayRef = useRef23(null);
|
|
30686
|
+
const continuePendingLoadDelay = useCallback17(() => {
|
|
30687
|
+
const pending = pendingLoadDelayRef.current;
|
|
30688
|
+
if (!pending || pending.continued) {
|
|
30689
|
+
return;
|
|
30690
|
+
}
|
|
30691
|
+
pending.continued = true;
|
|
30692
|
+
pending.unblock();
|
|
30693
|
+
continueRender2(pending.handle);
|
|
30694
|
+
pendingLoadDelayRef.current = null;
|
|
30695
|
+
}, [continueRender2]);
|
|
30667
30696
|
const sourceCanvas = useMemo31(() => {
|
|
30668
30697
|
if (typeof document === "undefined") {
|
|
30669
30698
|
return null;
|
|
@@ -30681,7 +30710,7 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30681
30710
|
ref.current = canvas;
|
|
30682
30711
|
}
|
|
30683
30712
|
}, [ref, refForOutline]);
|
|
30684
|
-
|
|
30713
|
+
useLayoutEffect10(() => {
|
|
30685
30714
|
const isPremounting = Boolean(sequenceContext?.premounting);
|
|
30686
30715
|
const isPostmounting = Boolean(sequenceContext?.postmounting);
|
|
30687
30716
|
const handle = delayRender2(`Rendering <CanvasImage> with src="${truncateSrcForLabel(actualSrc)}"`, {
|
|
@@ -30693,17 +30722,13 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30693
30722
|
};
|
|
30694
30723
|
const controller = new AbortController;
|
|
30695
30724
|
let cancelled = false;
|
|
30696
|
-
let continued = false;
|
|
30697
30725
|
let errorCount = 0;
|
|
30698
30726
|
let timeoutId = null;
|
|
30699
30727
|
setLoadedImage(null);
|
|
30700
|
-
|
|
30701
|
-
|
|
30702
|
-
|
|
30703
|
-
|
|
30704
|
-
continued = true;
|
|
30705
|
-
unblock();
|
|
30706
|
-
continueRender2(handle);
|
|
30728
|
+
pendingLoadDelayRef.current = {
|
|
30729
|
+
handle,
|
|
30730
|
+
unblock,
|
|
30731
|
+
continued: false
|
|
30707
30732
|
};
|
|
30708
30733
|
const attemptLoad = () => {
|
|
30709
30734
|
loadImage({ src: actualSrc, signal: controller.signal }).then((image) => {
|
|
@@ -30711,13 +30736,9 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30711
30736
|
return;
|
|
30712
30737
|
}
|
|
30713
30738
|
setLoadedImage(image);
|
|
30714
|
-
}).then(() => {
|
|
30715
|
-
if (!cancelled) {
|
|
30716
|
-
continueRenderOnce();
|
|
30717
|
-
}
|
|
30718
30739
|
}).catch((err) => {
|
|
30719
30740
|
if (err.name === "AbortError") {
|
|
30720
|
-
|
|
30741
|
+
continuePendingLoadDelay();
|
|
30721
30742
|
return;
|
|
30722
30743
|
}
|
|
30723
30744
|
errorCount++;
|
|
@@ -30731,7 +30752,7 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30731
30752
|
}, backoff);
|
|
30732
30753
|
} else if (onError) {
|
|
30733
30754
|
onError(err);
|
|
30734
|
-
|
|
30755
|
+
continuePendingLoadDelay();
|
|
30735
30756
|
} else {
|
|
30736
30757
|
cancelRender2(err);
|
|
30737
30758
|
}
|
|
@@ -30744,12 +30765,12 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30744
30765
|
clearTimeout(timeoutId);
|
|
30745
30766
|
}
|
|
30746
30767
|
controller.abort();
|
|
30747
|
-
|
|
30768
|
+
continuePendingLoadDelay();
|
|
30748
30769
|
};
|
|
30749
30770
|
}, [
|
|
30750
30771
|
actualSrc,
|
|
30751
30772
|
cancelRender2,
|
|
30752
|
-
|
|
30773
|
+
continuePendingLoadDelay,
|
|
30753
30774
|
delayPlayback,
|
|
30754
30775
|
delayRender2,
|
|
30755
30776
|
delayRenderRetries,
|
|
@@ -30760,13 +30781,16 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30760
30781
|
sequenceContext?.postmounting,
|
|
30761
30782
|
sequenceContext?.premounting
|
|
30762
30783
|
]);
|
|
30763
|
-
|
|
30784
|
+
useLayoutEffect10(() => {
|
|
30764
30785
|
if (!loadedImage || !outputCanvas || !sourceCanvas) {
|
|
30765
30786
|
return;
|
|
30766
30787
|
}
|
|
30767
30788
|
const handle = delayRender2(`Applying effects to <CanvasImage> with src="${truncateSrcForLabel(actualSrc)}"`);
|
|
30768
30789
|
let cancelled = false;
|
|
30769
30790
|
let continued = false;
|
|
30791
|
+
let cancelWaitForNextFrame = () => {
|
|
30792
|
+
return;
|
|
30793
|
+
};
|
|
30770
30794
|
const continueRenderOnce = () => {
|
|
30771
30795
|
if (continued) {
|
|
30772
30796
|
return;
|
|
@@ -30801,7 +30825,15 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30801
30825
|
height: canvasHeight
|
|
30802
30826
|
}).then((completed) => {
|
|
30803
30827
|
if (completed && !cancelled) {
|
|
30804
|
-
|
|
30828
|
+
cancelWaitForNextFrame = waitForNextFrame({
|
|
30829
|
+
onFrame: () => {
|
|
30830
|
+
if (cancelled) {
|
|
30831
|
+
return;
|
|
30832
|
+
}
|
|
30833
|
+
continueRenderOnce();
|
|
30834
|
+
continuePendingLoadDelay();
|
|
30835
|
+
}
|
|
30836
|
+
});
|
|
30805
30837
|
}
|
|
30806
30838
|
}).catch((err) => {
|
|
30807
30839
|
if (cancelled) {
|
|
@@ -30810,12 +30842,14 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30810
30842
|
if (onError) {
|
|
30811
30843
|
onError(err);
|
|
30812
30844
|
continueRenderOnce();
|
|
30845
|
+
continuePendingLoadDelay();
|
|
30813
30846
|
} else {
|
|
30814
30847
|
cancelRender2(err);
|
|
30815
30848
|
}
|
|
30816
30849
|
});
|
|
30817
30850
|
return () => {
|
|
30818
30851
|
cancelled = true;
|
|
30852
|
+
cancelWaitForNextFrame();
|
|
30819
30853
|
continueRenderOnce();
|
|
30820
30854
|
};
|
|
30821
30855
|
}, [
|
|
@@ -30823,6 +30857,7 @@ var CanvasImageContent = forwardRef10(({
|
|
|
30823
30857
|
cancelRender2,
|
|
30824
30858
|
chainState,
|
|
30825
30859
|
continueRender2,
|
|
30860
|
+
continuePendingLoadDelay,
|
|
30826
30861
|
delayRender2,
|
|
30827
30862
|
fit,
|
|
30828
30863
|
height,
|
|
@@ -31032,7 +31067,7 @@ var ImgContent = ({
|
|
|
31032
31067
|
if (typeof window !== "undefined") {
|
|
31033
31068
|
const isPremounting = Boolean(sequenceContext?.premounting);
|
|
31034
31069
|
const isPostmounting = Boolean(sequenceContext?.postmounting);
|
|
31035
|
-
|
|
31070
|
+
useLayoutEffect11(() => {
|
|
31036
31071
|
if (window.process?.env?.NODE_ENV === "test") {
|
|
31037
31072
|
if (imageRef.current) {
|
|
31038
31073
|
imageRef.current.src = actualSrc;
|
|
@@ -31928,7 +31963,7 @@ var OffthreadVideoForRendering = ({
|
|
|
31928
31963
|
mediaVolume: 1
|
|
31929
31964
|
});
|
|
31930
31965
|
warnAboutTooHighVolume(volume);
|
|
31931
|
-
|
|
31966
|
+
useEffect17(() => {
|
|
31932
31967
|
if (!src) {
|
|
31933
31968
|
throw new Error("No src passed");
|
|
31934
31969
|
}
|
|
@@ -31985,7 +32020,7 @@ var OffthreadVideoForRendering = ({
|
|
|
31985
32020
|
}, [toneMapped, currentTime, src, transparent]);
|
|
31986
32021
|
const [imageSrc, setImageSrc] = useState19(null);
|
|
31987
32022
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
31988
|
-
|
|
32023
|
+
useLayoutEffect12(() => {
|
|
31989
32024
|
if (!window.remotion_videoEnabled) {
|
|
31990
32025
|
return;
|
|
31991
32026
|
}
|
|
@@ -32089,7 +32124,7 @@ var useEmitVideoFrame = ({
|
|
|
32089
32124
|
ref,
|
|
32090
32125
|
onVideoFrame
|
|
32091
32126
|
}) => {
|
|
32092
|
-
|
|
32127
|
+
useEffect18(() => {
|
|
32093
32128
|
const { current } = ref;
|
|
32094
32129
|
if (!current) {
|
|
32095
32130
|
return;
|
|
@@ -32264,7 +32299,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
32264
32299
|
tag: "video",
|
|
32265
32300
|
mountTime
|
|
32266
32301
|
}));
|
|
32267
|
-
|
|
32302
|
+
useEffect19(() => {
|
|
32268
32303
|
const { current } = videoRef;
|
|
32269
32304
|
if (!current) {
|
|
32270
32305
|
return;
|
|
@@ -32307,7 +32342,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
32307
32342
|
const currentOnDurationCallback = useRef27(onDuration);
|
|
32308
32343
|
currentOnDurationCallback.current = onDuration;
|
|
32309
32344
|
useEmitVideoFrame({ ref: videoRef, onVideoFrame });
|
|
32310
|
-
|
|
32345
|
+
useEffect19(() => {
|
|
32311
32346
|
const { current } = videoRef;
|
|
32312
32347
|
if (!current) {
|
|
32313
32348
|
return;
|
|
@@ -32324,7 +32359,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
32324
32359
|
current.removeEventListener("loadedmetadata", onLoadedMetadata);
|
|
32325
32360
|
};
|
|
32326
32361
|
}, [src]);
|
|
32327
|
-
|
|
32362
|
+
useEffect19(() => {
|
|
32328
32363
|
const { current } = videoRef;
|
|
32329
32364
|
if (!current) {
|
|
32330
32365
|
return;
|
|
@@ -33105,7 +33140,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
33105
33140
|
mediaVolume: 1
|
|
33106
33141
|
});
|
|
33107
33142
|
warnAboutTooHighVolume(volume);
|
|
33108
|
-
|
|
33143
|
+
useEffect20(() => {
|
|
33109
33144
|
if (!props2.src) {
|
|
33110
33145
|
throw new Error("No src passed");
|
|
33111
33146
|
}
|
|
@@ -33149,7 +33184,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
33149
33184
|
return videoRef.current;
|
|
33150
33185
|
}, []);
|
|
33151
33186
|
useEmitVideoFrame({ ref: videoRef, onVideoFrame });
|
|
33152
|
-
|
|
33187
|
+
useEffect20(() => {
|
|
33153
33188
|
if (!window.remotion_videoEnabled) {
|
|
33154
33189
|
return;
|
|
33155
33190
|
}
|
|
@@ -33239,7 +33274,7 @@ var VideoForRenderingForwardFunction = ({
|
|
|
33239
33274
|
]);
|
|
33240
33275
|
const { src } = props2;
|
|
33241
33276
|
if (environment.isRendering) {
|
|
33242
|
-
|
|
33277
|
+
useLayoutEffect13(() => {
|
|
33243
33278
|
if (window.process?.env?.NODE_ENV === "test") {
|
|
33244
33279
|
return;
|
|
33245
33280
|
}
|
|
@@ -36343,7 +36378,7 @@ var extrudeAndTransformElement = (options) => {
|
|
|
36343
36378
|
// ../design/dist/esm/index.mjs
|
|
36344
36379
|
import { jsx as jsx212, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
36345
36380
|
import { jsx as jsx312, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
36346
|
-
import { useEffect as
|
|
36381
|
+
import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef31 } from "react";
|
|
36347
36382
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
36348
36383
|
import { jsx as jsx53, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
36349
36384
|
import React62 from "react";
|
|
@@ -36598,7 +36633,7 @@ var useHoverTransforms = (ref, disabled) => {
|
|
|
36598
36633
|
isActive: false
|
|
36599
36634
|
});
|
|
36600
36635
|
const eventTarget = useMemo42(() => new EventTarget, []);
|
|
36601
|
-
|
|
36636
|
+
useEffect21(() => {
|
|
36602
36637
|
if (disabled) {
|
|
36603
36638
|
eventTarget.dispatchEvent(new Event("disabled"));
|
|
36604
36639
|
} else {
|
|
@@ -36745,7 +36780,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
36745
36780
|
var lastCoordinates = null;
|
|
36746
36781
|
var useMousePosition = (ref) => {
|
|
36747
36782
|
const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
|
|
36748
|
-
|
|
36783
|
+
useEffect21(() => {
|
|
36749
36784
|
const element = ref.current;
|
|
36750
36785
|
if (!element) {
|
|
36751
36786
|
return;
|
|
@@ -36866,7 +36901,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
36866
36901
|
};
|
|
36867
36902
|
}, [size]);
|
|
36868
36903
|
const pathsRef = useRef31([]);
|
|
36869
|
-
|
|
36904
|
+
useEffect22(() => {
|
|
36870
36905
|
const animate = () => {
|
|
36871
36906
|
const now = performance.now();
|
|
36872
36907
|
for (let index = 0;index < lines; index++) {
|
|
@@ -43094,7 +43129,7 @@ var CopyPromptButton = ({ prompt }) => {
|
|
|
43094
43129
|
};
|
|
43095
43130
|
|
|
43096
43131
|
// src/components/prompts/LikeButton.tsx
|
|
43097
|
-
import { useCallback as useCallback40, useEffect as
|
|
43132
|
+
import { useCallback as useCallback40, useEffect as useEffect40, useState as useState40 } from "react";
|
|
43098
43133
|
|
|
43099
43134
|
// src/components/prompts/config.ts
|
|
43100
43135
|
var REMOTION_PRO_ORIGIN = "https://www.remotion.pro";
|
|
@@ -43205,7 +43240,7 @@ var LikeButton = ({ submissionId, initialLikeCount }) => {
|
|
|
43205
43240
|
const [liked, setLiked] = useState40(false);
|
|
43206
43241
|
const [likeCount, setLikeCount] = useState40(initialLikeCount);
|
|
43207
43242
|
const { scale, roundness, animate } = useHeartAnimation();
|
|
43208
|
-
|
|
43243
|
+
useEffect40(() => {
|
|
43209
43244
|
setLiked(getLikedIds().has(submissionId));
|
|
43210
43245
|
}, [submissionId]);
|
|
43211
43246
|
const onClick = useCallback40(async () => {
|