@remotion/promo-pages 4.0.374 → 4.0.375
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 +53 -29
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +53 -29
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +215 -97
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +18 -13
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +18 -13
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +18 -13
- package/dist/design.js +215 -97
- package/dist/homepage/Pricing.js +18 -13
- package/dist/template-modal-content.js +18 -13
- package/dist/templates.js +18 -13
- package/package.json +12 -12
|
@@ -753,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
753
753
|
});
|
|
754
754
|
}, useIsPlayer = () => {
|
|
755
755
|
return useContext(IsPlayerContext);
|
|
756
|
-
}, VERSION = "4.0.
|
|
756
|
+
}, VERSION = "4.0.375", checkMultipleRemotionVersions = () => {
|
|
757
757
|
if (typeof globalThis === "undefined") {
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
@@ -1046,6 +1046,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1046
1046
|
if (override) {
|
|
1047
1047
|
return override;
|
|
1048
1048
|
}
|
|
1049
|
+
if (typeof window === "undefined" || typeof window.remotion_inputProps === "undefined") {
|
|
1050
|
+
throw new Error("Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.");
|
|
1051
|
+
}
|
|
1049
1052
|
const param = window.remotion_inputProps;
|
|
1050
1053
|
if (!param) {
|
|
1051
1054
|
return {};
|
|
@@ -1203,7 +1206,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1203
1206
|
}
|
|
1204
1207
|
}, ResolveCompositionContext, resolveCompositionsRef, needsResolution = (composition) => {
|
|
1205
1208
|
return Boolean(composition.calculateMetadata);
|
|
1206
|
-
}, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally",
|
|
1209
|
+
}, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfigInStudio = ({ children }) => {
|
|
1207
1210
|
const [currentRenderModalComposition, setCurrentRenderModalComposition] = useState4(null);
|
|
1208
1211
|
const { compositions, canvasContent, currentCompositionMetadata } = useContext4(CompositionManager);
|
|
1209
1212
|
const { fastRefreshes, manualRefreshes } = useContext4(NonceContext);
|
|
@@ -1499,7 +1502,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1499
1502
|
props: {
|
|
1500
1503
|
...composition.defaultProps ?? {},
|
|
1501
1504
|
...selectedEditorProps ?? {},
|
|
1502
|
-
...typeof window === "undefined" || env.isPlayer ? {} : getInputProps() ?? {}
|
|
1505
|
+
...typeof window === "undefined" || env.isPlayer || !window.remotion_inputProps ? {} : getInputProps() ?? {}
|
|
1503
1506
|
},
|
|
1504
1507
|
defaultCodec: null,
|
|
1505
1508
|
defaultOutName: null,
|
|
@@ -1509,6 +1512,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1509
1512
|
}
|
|
1510
1513
|
};
|
|
1511
1514
|
}
|
|
1515
|
+
if (!context) {
|
|
1516
|
+
return null;
|
|
1517
|
+
}
|
|
1512
1518
|
if (!context[composition.id]) {
|
|
1513
1519
|
return null;
|
|
1514
1520
|
}
|
|
@@ -5422,14 +5428,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5422
5428
|
children: /* @__PURE__ */ jsx28(PrefetchProvider, {
|
|
5423
5429
|
children: /* @__PURE__ */ jsx28(SequenceManagerProvider, {
|
|
5424
5430
|
children: /* @__PURE__ */ jsx28(RenderAssetManagerProvider, {
|
|
5425
|
-
children: /* @__PURE__ */ jsx28(
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
children: /* @__PURE__ */ jsx28(
|
|
5430
|
-
children
|
|
5431
|
-
children
|
|
5432
|
-
})
|
|
5431
|
+
children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
|
|
5432
|
+
numberOfAudioTags,
|
|
5433
|
+
audioLatencyHint,
|
|
5434
|
+
children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
|
|
5435
|
+
children: /* @__PURE__ */ jsx28(BufferingProvider, {
|
|
5436
|
+
children
|
|
5433
5437
|
})
|
|
5434
5438
|
})
|
|
5435
5439
|
})
|
|
@@ -7129,7 +7133,7 @@ var init_esm = __esm(() => {
|
|
|
7129
7133
|
resolveVideoConfig,
|
|
7130
7134
|
useResolvedVideoConfig,
|
|
7131
7135
|
resolveCompositionsRef,
|
|
7132
|
-
|
|
7136
|
+
ResolveCompositionConfigInStudio,
|
|
7133
7137
|
REMOTION_STUDIO_CONTAINER_ELEMENT,
|
|
7134
7138
|
RenderAssetManager,
|
|
7135
7139
|
persistCurrentFrame,
|
|
@@ -13004,6 +13008,7 @@ var Outer = ({
|
|
|
13004
13008
|
const depth = depthFromHover;
|
|
13005
13009
|
const frontFace = reduceMatrices([
|
|
13006
13010
|
translateZ(-depth / 2 + depthFromClick),
|
|
13011
|
+
translateZ(1.1),
|
|
13007
13012
|
transformation
|
|
13008
13013
|
]);
|
|
13009
13014
|
const centerOriented = reduceMatrices([
|
|
@@ -13145,7 +13150,7 @@ var Button = ({ children, className, disabled, depth, loading, ...buttonProps })
|
|
|
13145
13150
|
...buttonProps,
|
|
13146
13151
|
children: [
|
|
13147
13152
|
/* @__PURE__ */ jsx43("div", {
|
|
13148
|
-
className: cn(loading && "invisible"),
|
|
13153
|
+
className: cn(loading && "invisible", "inline-flex"),
|
|
13149
13154
|
children
|
|
13150
13155
|
}),
|
|
13151
13156
|
loading ? /* @__PURE__ */ jsx43("div", {
|
|
@@ -18066,216 +18071,324 @@ var Triangle2 = (props) => {
|
|
|
18066
18071
|
};
|
|
18067
18072
|
|
|
18068
18073
|
// src/components/design.tsx
|
|
18069
|
-
import { useCallback as
|
|
18070
|
-
|
|
18074
|
+
import { useCallback as useCallback27, useState as useState35 } from "react";
|
|
18075
|
+
|
|
18076
|
+
// src/components/ManageTeamMembers.tsx
|
|
18077
|
+
import React36, { useCallback as useCallback26, useState as useState34 } from "react";
|
|
18078
|
+
import { jsx as jsx39, jsxs as jsxs6, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
18079
|
+
function generateId() {
|
|
18080
|
+
return Math.random().toString(36).substr(2, 9);
|
|
18081
|
+
}
|
|
18082
|
+
var initialMembers = [
|
|
18083
|
+
{ id: generateId(), name: "alice" },
|
|
18084
|
+
{ id: generateId(), name: "bob" }
|
|
18085
|
+
];
|
|
18086
|
+
var Row = ({ value, onChange, onDelete, disableDelete }) => {
|
|
18087
|
+
return /* @__PURE__ */ jsxs6("div", {
|
|
18088
|
+
className: "flex flex-row gap-2",
|
|
18089
|
+
children: [
|
|
18090
|
+
/* @__PURE__ */ jsx39(Input, {
|
|
18091
|
+
placeholder: "Enter username",
|
|
18092
|
+
className: "w-full block flex-1",
|
|
18093
|
+
value,
|
|
18094
|
+
onChange: (e) => onChange(e.target.value)
|
|
18095
|
+
}),
|
|
18096
|
+
/* @__PURE__ */ jsx39(Button, {
|
|
18097
|
+
className: "rounded-full h-14 w-14 justify-center items-center",
|
|
18098
|
+
onClick: onDelete,
|
|
18099
|
+
type: "button",
|
|
18100
|
+
disabled: disableDelete,
|
|
18101
|
+
"aria-label": "Delete member",
|
|
18102
|
+
children: /* @__PURE__ */ jsx39("svg", {
|
|
18103
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18104
|
+
viewBox: "0 0 384 512",
|
|
18105
|
+
className: "h-4",
|
|
18106
|
+
children: /* @__PURE__ */ jsx39("path", {
|
|
18107
|
+
fill: "currentcolor",
|
|
18108
|
+
d: "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"
|
|
18109
|
+
})
|
|
18110
|
+
})
|
|
18111
|
+
})
|
|
18112
|
+
]
|
|
18113
|
+
});
|
|
18114
|
+
};
|
|
18115
|
+
var ManageTeamMembers = () => {
|
|
18116
|
+
const [members, setMembers] = useState34(initialMembers);
|
|
18117
|
+
const displayedMembers = [...members, { id: "NEW", name: "" }];
|
|
18118
|
+
const updateMember = useCallback26((idx, value) => {
|
|
18119
|
+
if (idx === members.length) {
|
|
18120
|
+
if (value.trim() !== "") {
|
|
18121
|
+
setMembers((prev) => [...prev, { id: generateId(), name: value }]);
|
|
18122
|
+
}
|
|
18123
|
+
} else {
|
|
18124
|
+
setMembers((prev) => prev.map((m, i) => i === idx ? { ...m, name: value } : m));
|
|
18125
|
+
}
|
|
18126
|
+
}, [members.length]);
|
|
18127
|
+
const deleteMember = useCallback26((idx) => {
|
|
18128
|
+
setMembers((prev) => prev.filter((_, i) => i !== idx));
|
|
18129
|
+
}, []);
|
|
18130
|
+
const [loading, setLoading] = useState34(false);
|
|
18131
|
+
const save = useCallback26(() => {
|
|
18132
|
+
setLoading(true);
|
|
18133
|
+
setTimeout(() => {
|
|
18134
|
+
setLoading(false);
|
|
18135
|
+
}, 1000);
|
|
18136
|
+
}, []);
|
|
18137
|
+
return /* @__PURE__ */ jsxs6(Fragment6, {
|
|
18138
|
+
children: [
|
|
18139
|
+
/* @__PURE__ */ jsx39("h2", {
|
|
18140
|
+
children: "Manage team members"
|
|
18141
|
+
}),
|
|
18142
|
+
/* @__PURE__ */ jsx39("p", {
|
|
18143
|
+
className: "font-brand",
|
|
18144
|
+
children: "Add a new team member to your team."
|
|
18145
|
+
}),
|
|
18146
|
+
displayedMembers.map((member, idx) => /* @__PURE__ */ jsxs6(React36.Fragment, {
|
|
18147
|
+
children: [
|
|
18148
|
+
/* @__PURE__ */ jsx39(Row, {
|
|
18149
|
+
value: member.name,
|
|
18150
|
+
onChange: (val) => updateMember(idx, val),
|
|
18151
|
+
onDelete: idx < members.length ? () => deleteMember(idx) : undefined,
|
|
18152
|
+
disableDelete: idx >= members.length
|
|
18153
|
+
}),
|
|
18154
|
+
/* @__PURE__ */ jsx39("div", {
|
|
18155
|
+
className: "h-2"
|
|
18156
|
+
})
|
|
18157
|
+
]
|
|
18158
|
+
}, idx)),
|
|
18159
|
+
/* @__PURE__ */ jsx39("div", {
|
|
18160
|
+
className: "h-4"
|
|
18161
|
+
}),
|
|
18162
|
+
/* @__PURE__ */ jsx39("div", {
|
|
18163
|
+
className: "flex flex-row justify-end",
|
|
18164
|
+
children: /* @__PURE__ */ jsx39(Button, {
|
|
18165
|
+
className: "bg-brand text-white",
|
|
18166
|
+
loading,
|
|
18167
|
+
onClick: save,
|
|
18168
|
+
children: "Save"
|
|
18169
|
+
})
|
|
18170
|
+
})
|
|
18171
|
+
]
|
|
18172
|
+
});
|
|
18173
|
+
};
|
|
18174
|
+
|
|
18175
|
+
// src/components/design.tsx
|
|
18176
|
+
import { jsx as jsx40, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
18071
18177
|
var Explainer = ({ children }) => {
|
|
18072
|
-
return /* @__PURE__ */
|
|
18073
|
-
children: /* @__PURE__ */
|
|
18178
|
+
return /* @__PURE__ */ jsx40("div", {
|
|
18179
|
+
children: /* @__PURE__ */ jsx40("div", {
|
|
18074
18180
|
className: "text-gray-500 font-brand text-sm mb-2",
|
|
18075
18181
|
children
|
|
18076
18182
|
})
|
|
18077
18183
|
});
|
|
18078
18184
|
};
|
|
18079
18185
|
var DesignPage = () => {
|
|
18080
|
-
const [count3, setCount] =
|
|
18081
|
-
const [active, setActive] =
|
|
18082
|
-
const [submitButtonActive, setSubmitButtonActive] =
|
|
18083
|
-
const [submitButtonPrimaryActive, setSubmitButtonPrimaryActive] =
|
|
18084
|
-
const onClick =
|
|
18186
|
+
const [count3, setCount] = useState35(10);
|
|
18187
|
+
const [active, setActive] = useState35(false);
|
|
18188
|
+
const [submitButtonActive, setSubmitButtonActive] = useState35(true);
|
|
18189
|
+
const [submitButtonPrimaryActive, setSubmitButtonPrimaryActive] = useState35(true);
|
|
18190
|
+
const onClick = useCallback27(() => {
|
|
18085
18191
|
setSubmitButtonActive(false);
|
|
18086
18192
|
setTimeout(() => {
|
|
18087
18193
|
setSubmitButtonActive(true);
|
|
18088
18194
|
}, 1000);
|
|
18089
18195
|
}, []);
|
|
18090
|
-
const onClickPrimary =
|
|
18196
|
+
const onClickPrimary = useCallback27(() => {
|
|
18091
18197
|
setSubmitButtonPrimaryActive(false);
|
|
18092
18198
|
setTimeout(() => {
|
|
18093
18199
|
setSubmitButtonPrimaryActive(true);
|
|
18094
18200
|
}, 1000);
|
|
18095
18201
|
}, []);
|
|
18096
|
-
|
|
18202
|
+
const [saving, setSaving] = useState35(false);
|
|
18203
|
+
const save = useCallback27(() => {
|
|
18204
|
+
setSaving(true);
|
|
18205
|
+
setTimeout(() => {
|
|
18206
|
+
setSaving(false);
|
|
18207
|
+
}, 1000);
|
|
18208
|
+
}, []);
|
|
18209
|
+
return /* @__PURE__ */ jsx40("div", {
|
|
18097
18210
|
className: "bg-[var(--background)] relative",
|
|
18098
|
-
children: /* @__PURE__ */
|
|
18211
|
+
children: /* @__PURE__ */ jsxs8("div", {
|
|
18099
18212
|
className: "max-w-[800px] mx-auto pt-10 pb-10 px-4",
|
|
18100
18213
|
children: [
|
|
18101
|
-
/* @__PURE__ */
|
|
18214
|
+
/* @__PURE__ */ jsx40("h1", {
|
|
18102
18215
|
children: "@remotion/design"
|
|
18103
18216
|
}),
|
|
18104
|
-
/* @__PURE__ */
|
|
18217
|
+
/* @__PURE__ */ jsx40("a", {
|
|
18105
18218
|
href: "https://github.com/remotion-dev/remotion/blob/main/packages/promo-pages/src/components/design.tsx",
|
|
18106
18219
|
className: "font-brand text-brand",
|
|
18107
18220
|
target: "_blank",
|
|
18108
18221
|
children: "View source"
|
|
18109
18222
|
}),
|
|
18110
|
-
/* @__PURE__ */
|
|
18111
|
-
/* @__PURE__ */
|
|
18112
|
-
/* @__PURE__ */
|
|
18223
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18224
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18225
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18113
18226
|
className: "text-brand",
|
|
18114
18227
|
children: "<Button />"
|
|
18115
18228
|
}),
|
|
18116
|
-
/* @__PURE__ */
|
|
18229
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18117
18230
|
children: "Button with label"
|
|
18118
18231
|
}),
|
|
18119
|
-
/* @__PURE__ */
|
|
18232
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18120
18233
|
children: "Click me"
|
|
18121
18234
|
}),
|
|
18122
|
-
/* @__PURE__ */
|
|
18123
|
-
/* @__PURE__ */
|
|
18235
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18236
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18124
18237
|
children: "Disabled"
|
|
18125
18238
|
}),
|
|
18126
|
-
/* @__PURE__ */
|
|
18239
|
+
/* @__PURE__ */ jsxs8(Button, {
|
|
18127
18240
|
disabled: true,
|
|
18128
18241
|
children: [
|
|
18129
18242
|
"Don't",
|
|
18130
18243
|
" click me"
|
|
18131
18244
|
]
|
|
18132
18245
|
}),
|
|
18133
|
-
/* @__PURE__ */
|
|
18134
|
-
/* @__PURE__ */
|
|
18246
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18247
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18135
18248
|
children: "Primary"
|
|
18136
18249
|
}),
|
|
18137
|
-
/* @__PURE__ */
|
|
18250
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18138
18251
|
className: "bg-brand text-white",
|
|
18139
18252
|
children: "Primary"
|
|
18140
18253
|
}),
|
|
18141
|
-
/* @__PURE__ */
|
|
18142
|
-
/* @__PURE__ */
|
|
18254
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18255
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18143
18256
|
children: "Click to disable"
|
|
18144
18257
|
}),
|
|
18145
|
-
/* @__PURE__ */
|
|
18258
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18146
18259
|
onClick,
|
|
18147
18260
|
loading: !submitButtonActive,
|
|
18148
18261
|
children: "Submit"
|
|
18149
18262
|
}),
|
|
18150
|
-
/* @__PURE__ */
|
|
18151
|
-
/* @__PURE__ */
|
|
18263
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18264
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18152
18265
|
children: "Click to disable (primary)"
|
|
18153
18266
|
}),
|
|
18154
|
-
/* @__PURE__ */
|
|
18267
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18155
18268
|
onClick: onClickPrimary,
|
|
18156
18269
|
className: "bg-brand text-white",
|
|
18157
18270
|
loading: !submitButtonPrimaryActive,
|
|
18158
18271
|
children: "Submit"
|
|
18159
18272
|
}),
|
|
18160
|
-
/* @__PURE__ */
|
|
18161
|
-
/* @__PURE__ */
|
|
18273
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18274
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18162
18275
|
children: "Loading state"
|
|
18163
18276
|
}),
|
|
18164
|
-
/* @__PURE__ */
|
|
18277
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18165
18278
|
onClick,
|
|
18166
18279
|
loading: true,
|
|
18167
18280
|
children: "Loading"
|
|
18168
18281
|
}),
|
|
18169
|
-
/* @__PURE__ */
|
|
18170
|
-
/* @__PURE__ */
|
|
18282
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18283
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18171
18284
|
children: "Loading state (primary)"
|
|
18172
18285
|
}),
|
|
18173
|
-
/* @__PURE__ */
|
|
18286
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18174
18287
|
onClick,
|
|
18175
18288
|
className: "bg-brand text-white",
|
|
18176
18289
|
loading: true,
|
|
18177
18290
|
children: "Loading"
|
|
18178
18291
|
}),
|
|
18179
|
-
/* @__PURE__ */
|
|
18180
|
-
/* @__PURE__ */
|
|
18292
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18293
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18181
18294
|
children: "Rounded"
|
|
18182
18295
|
}),
|
|
18183
|
-
/* @__PURE__ */
|
|
18296
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18184
18297
|
className: "rounded-full",
|
|
18185
18298
|
children: "Rounded"
|
|
18186
18299
|
}),
|
|
18187
|
-
/* @__PURE__ */
|
|
18188
|
-
/* @__PURE__ */
|
|
18300
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18301
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18189
18302
|
children: "Full width"
|
|
18190
18303
|
}),
|
|
18191
|
-
/* @__PURE__ */
|
|
18304
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18192
18305
|
className: "w-full",
|
|
18193
18306
|
children: "Choose a template"
|
|
18194
18307
|
}),
|
|
18195
|
-
/* @__PURE__ */
|
|
18196
|
-
/* @__PURE__ */
|
|
18308
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18309
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18197
18310
|
children: "Full width rounded"
|
|
18198
18311
|
}),
|
|
18199
|
-
/* @__PURE__ */
|
|
18312
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18200
18313
|
className: "w-full rounded-full",
|
|
18201
18314
|
children: "Fully rounded"
|
|
18202
18315
|
}),
|
|
18203
|
-
/* @__PURE__ */
|
|
18316
|
+
/* @__PURE__ */ jsx40("div", {
|
|
18204
18317
|
className: "h-8"
|
|
18205
18318
|
}),
|
|
18206
|
-
/* @__PURE__ */
|
|
18319
|
+
/* @__PURE__ */ jsx40(Explainer, {
|
|
18207
18320
|
children: "Circular"
|
|
18208
18321
|
}),
|
|
18209
|
-
/* @__PURE__ */
|
|
18322
|
+
/* @__PURE__ */ jsx40(Button, {
|
|
18210
18323
|
className: "rounded-full bg-brand w-12 h-12"
|
|
18211
18324
|
}),
|
|
18212
|
-
/* @__PURE__ */
|
|
18325
|
+
/* @__PURE__ */ jsx40("div", {
|
|
18213
18326
|
className: "h-8"
|
|
18214
18327
|
}),
|
|
18215
|
-
/* @__PURE__ */
|
|
18328
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18216
18329
|
className: "text-brand",
|
|
18217
18330
|
children: "<Counter />"
|
|
18218
18331
|
}),
|
|
18219
|
-
/* @__PURE__ */
|
|
18332
|
+
/* @__PURE__ */ jsx40(Counter, {
|
|
18220
18333
|
count: count3,
|
|
18221
18334
|
setCount,
|
|
18222
18335
|
minCount: 1,
|
|
18223
18336
|
step: 1
|
|
18224
18337
|
}),
|
|
18225
|
-
/* @__PURE__ */
|
|
18338
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18226
18339
|
" ",
|
|
18227
|
-
/* @__PURE__ */
|
|
18340
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18228
18341
|
className: "text-brand",
|
|
18229
18342
|
children: "<Switch />"
|
|
18230
18343
|
}),
|
|
18231
|
-
/* @__PURE__ */
|
|
18344
|
+
/* @__PURE__ */ jsx40(Switch, {
|
|
18232
18345
|
active,
|
|
18233
18346
|
onToggle: () => setActive((e) => !e)
|
|
18234
18347
|
}),
|
|
18235
|
-
/* @__PURE__ */
|
|
18348
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18236
18349
|
" ",
|
|
18237
|
-
/* @__PURE__ */
|
|
18350
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18238
18351
|
className: "text-brand",
|
|
18239
18352
|
children: "<Card />"
|
|
18240
18353
|
}),
|
|
18241
|
-
/* @__PURE__ */
|
|
18354
|
+
/* @__PURE__ */ jsxs8(Card, {
|
|
18242
18355
|
className: "px-4 py-4",
|
|
18243
18356
|
children: [
|
|
18244
|
-
/* @__PURE__ */
|
|
18357
|
+
/* @__PURE__ */ jsx40("h3", {
|
|
18245
18358
|
className: "text-text",
|
|
18246
18359
|
children: "Card"
|
|
18247
18360
|
}),
|
|
18248
|
-
/* @__PURE__ */
|
|
18361
|
+
/* @__PURE__ */ jsx40("div", {
|
|
18249
18362
|
className: "text-gray-500",
|
|
18250
18363
|
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
18251
18364
|
})
|
|
18252
18365
|
]
|
|
18253
18366
|
}),
|
|
18254
|
-
/* @__PURE__ */
|
|
18255
|
-
/* @__PURE__ */
|
|
18367
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18368
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18256
18369
|
className: "text-brand",
|
|
18257
18370
|
children: "<Select />"
|
|
18258
18371
|
}),
|
|
18259
|
-
/* @__PURE__ */
|
|
18372
|
+
/* @__PURE__ */ jsxs8(Select2, {
|
|
18260
18373
|
defaultValue: "option1",
|
|
18261
18374
|
children: [
|
|
18262
|
-
/* @__PURE__ */
|
|
18375
|
+
/* @__PURE__ */ jsx40(SelectTrigger2, {
|
|
18263
18376
|
style: { width: "200px" },
|
|
18264
|
-
children: /* @__PURE__ */
|
|
18377
|
+
children: /* @__PURE__ */ jsx40(SelectValue2, {
|
|
18265
18378
|
placeholder: "Select an option"
|
|
18266
18379
|
})
|
|
18267
18380
|
}),
|
|
18268
|
-
/* @__PURE__ */
|
|
18381
|
+
/* @__PURE__ */ jsxs8(SelectContent2, {
|
|
18269
18382
|
children: [
|
|
18270
|
-
/* @__PURE__ */
|
|
18383
|
+
/* @__PURE__ */ jsx40(SelectItem2, {
|
|
18271
18384
|
value: "option1",
|
|
18272
18385
|
children: "Option 1"
|
|
18273
18386
|
}),
|
|
18274
|
-
/* @__PURE__ */
|
|
18387
|
+
/* @__PURE__ */ jsx40(SelectItem2, {
|
|
18275
18388
|
value: "option2",
|
|
18276
18389
|
children: "Option 2"
|
|
18277
18390
|
}),
|
|
18278
|
-
/* @__PURE__ */
|
|
18391
|
+
/* @__PURE__ */ jsx40(SelectItem2, {
|
|
18279
18392
|
value: "option3",
|
|
18280
18393
|
children: "Option 3"
|
|
18281
18394
|
})
|
|
@@ -18283,42 +18396,47 @@ var DesignPage = () => {
|
|
|
18283
18396
|
})
|
|
18284
18397
|
]
|
|
18285
18398
|
}),
|
|
18286
|
-
/* @__PURE__ */
|
|
18287
|
-
/* @__PURE__ */
|
|
18399
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18400
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18288
18401
|
className: "text-brand",
|
|
18289
18402
|
children: "<Input />"
|
|
18290
18403
|
}),
|
|
18291
|
-
/* @__PURE__ */
|
|
18404
|
+
/* @__PURE__ */ jsx40(Input, {
|
|
18292
18405
|
placeholder: "Enter your email"
|
|
18293
18406
|
}),
|
|
18294
|
-
/* @__PURE__ */
|
|
18295
|
-
/* @__PURE__ */
|
|
18296
|
-
/* @__PURE__ */
|
|
18297
|
-
/* @__PURE__ */
|
|
18407
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18408
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18409
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18410
|
+
/* @__PURE__ */ jsx40("h1", {
|
|
18298
18411
|
children: "Example form set"
|
|
18299
18412
|
}),
|
|
18300
|
-
/* @__PURE__ */
|
|
18301
|
-
/* @__PURE__ */
|
|
18413
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18414
|
+
/* @__PURE__ */ jsx40("h2", {
|
|
18302
18415
|
children: "Change email"
|
|
18303
18416
|
}),
|
|
18304
|
-
/* @__PURE__ */
|
|
18417
|
+
/* @__PURE__ */ jsx40("p", {
|
|
18305
18418
|
className: "font-brand",
|
|
18306
18419
|
children: "A email will be sent to the new email address. You will need to click on the link in the email to confirm the change."
|
|
18307
18420
|
}),
|
|
18308
|
-
/* @__PURE__ */
|
|
18421
|
+
/* @__PURE__ */ jsx40(Input, {
|
|
18309
18422
|
placeholder: "Enter your email",
|
|
18310
18423
|
className: "w-full block"
|
|
18311
18424
|
}),
|
|
18312
|
-
/* @__PURE__ */
|
|
18425
|
+
/* @__PURE__ */ jsx40("div", {
|
|
18313
18426
|
className: "h-2"
|
|
18314
18427
|
}),
|
|
18315
|
-
/* @__PURE__ */
|
|
18428
|
+
/* @__PURE__ */ jsx40("div", {
|
|
18316
18429
|
className: "flex flex-row justify-end",
|
|
18317
|
-
children: /* @__PURE__ */
|
|
18430
|
+
children: /* @__PURE__ */ jsx40(Button, {
|
|
18318
18431
|
className: "bg-brand text-white",
|
|
18432
|
+
loading: saving,
|
|
18433
|
+
onClick: save,
|
|
18319
18434
|
children: "Change"
|
|
18320
18435
|
})
|
|
18321
|
-
})
|
|
18436
|
+
}),
|
|
18437
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18438
|
+
/* @__PURE__ */ jsx40("br", {}),
|
|
18439
|
+
/* @__PURE__ */ jsx40(ManageTeamMembers, {})
|
|
18322
18440
|
]
|
|
18323
18441
|
})
|
|
18324
18442
|
});
|
|
@@ -753,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
753
753
|
});
|
|
754
754
|
}, useIsPlayer = () => {
|
|
755
755
|
return useContext(IsPlayerContext);
|
|
756
|
-
}, VERSION = "4.0.
|
|
756
|
+
}, VERSION = "4.0.375", checkMultipleRemotionVersions = () => {
|
|
757
757
|
if (typeof globalThis === "undefined") {
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
@@ -1046,6 +1046,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1046
1046
|
if (override) {
|
|
1047
1047
|
return override;
|
|
1048
1048
|
}
|
|
1049
|
+
if (typeof window === "undefined" || typeof window.remotion_inputProps === "undefined") {
|
|
1050
|
+
throw new Error("Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.");
|
|
1051
|
+
}
|
|
1049
1052
|
const param = window.remotion_inputProps;
|
|
1050
1053
|
if (!param) {
|
|
1051
1054
|
return {};
|
|
@@ -1203,7 +1206,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1203
1206
|
}
|
|
1204
1207
|
}, ResolveCompositionContext, resolveCompositionsRef, needsResolution = (composition) => {
|
|
1205
1208
|
return Boolean(composition.calculateMetadata);
|
|
1206
|
-
}, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally",
|
|
1209
|
+
}, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfigInStudio = ({ children }) => {
|
|
1207
1210
|
const [currentRenderModalComposition, setCurrentRenderModalComposition] = useState4(null);
|
|
1208
1211
|
const { compositions, canvasContent, currentCompositionMetadata } = useContext4(CompositionManager);
|
|
1209
1212
|
const { fastRefreshes, manualRefreshes } = useContext4(NonceContext);
|
|
@@ -1499,7 +1502,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1499
1502
|
props: {
|
|
1500
1503
|
...composition.defaultProps ?? {},
|
|
1501
1504
|
...selectedEditorProps ?? {},
|
|
1502
|
-
...typeof window === "undefined" || env.isPlayer ? {} : getInputProps() ?? {}
|
|
1505
|
+
...typeof window === "undefined" || env.isPlayer || !window.remotion_inputProps ? {} : getInputProps() ?? {}
|
|
1503
1506
|
},
|
|
1504
1507
|
defaultCodec: null,
|
|
1505
1508
|
defaultOutName: null,
|
|
@@ -1509,6 +1512,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
1509
1512
|
}
|
|
1510
1513
|
};
|
|
1511
1514
|
}
|
|
1515
|
+
if (!context) {
|
|
1516
|
+
return null;
|
|
1517
|
+
}
|
|
1512
1518
|
if (!context[composition.id]) {
|
|
1513
1519
|
return null;
|
|
1514
1520
|
}
|
|
@@ -5422,14 +5428,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5422
5428
|
children: /* @__PURE__ */ jsx28(PrefetchProvider, {
|
|
5423
5429
|
children: /* @__PURE__ */ jsx28(SequenceManagerProvider, {
|
|
5424
5430
|
children: /* @__PURE__ */ jsx28(RenderAssetManagerProvider, {
|
|
5425
|
-
children: /* @__PURE__ */ jsx28(
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
children: /* @__PURE__ */ jsx28(
|
|
5430
|
-
children
|
|
5431
|
-
children
|
|
5432
|
-
})
|
|
5431
|
+
children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
|
|
5432
|
+
numberOfAudioTags,
|
|
5433
|
+
audioLatencyHint,
|
|
5434
|
+
children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
|
|
5435
|
+
children: /* @__PURE__ */ jsx28(BufferingProvider, {
|
|
5436
|
+
children
|
|
5433
5437
|
})
|
|
5434
5438
|
})
|
|
5435
5439
|
})
|
|
@@ -7129,7 +7133,7 @@ var init_esm = __esm(() => {
|
|
|
7129
7133
|
resolveVideoConfig,
|
|
7130
7134
|
useResolvedVideoConfig,
|
|
7131
7135
|
resolveCompositionsRef,
|
|
7132
|
-
|
|
7136
|
+
ResolveCompositionConfigInStudio,
|
|
7133
7137
|
REMOTION_STUDIO_CONTAINER_ELEMENT,
|
|
7134
7138
|
RenderAssetManager,
|
|
7135
7139
|
persistCurrentFrame,
|
|
@@ -13004,6 +13008,7 @@ var Outer = ({
|
|
|
13004
13008
|
const depth = depthFromHover;
|
|
13005
13009
|
const frontFace = reduceMatrices([
|
|
13006
13010
|
translateZ(-depth / 2 + depthFromClick),
|
|
13011
|
+
translateZ(1.1),
|
|
13007
13012
|
transformation
|
|
13008
13013
|
]);
|
|
13009
13014
|
const centerOriented = reduceMatrices([
|
|
@@ -13145,7 +13150,7 @@ var Button = ({ children, className, disabled, depth, loading, ...buttonProps })
|
|
|
13145
13150
|
...buttonProps,
|
|
13146
13151
|
children: [
|
|
13147
13152
|
/* @__PURE__ */ jsx43("div", {
|
|
13148
|
-
className: cn(loading && "invisible"),
|
|
13153
|
+
className: cn(loading && "invisible", "inline-flex"),
|
|
13149
13154
|
children
|
|
13150
13155
|
}),
|
|
13151
13156
|
loading ? /* @__PURE__ */ jsx43("div", {
|