ugcinc-render 1.8.192 → 1.8.193
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/index.js +164 -36
- package/dist/index.mjs +155 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2902,6 +2902,7 @@ function ScreenshotAnimation({
|
|
|
2902
2902
|
|
|
2903
2903
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
2904
2904
|
var import_react9 = require("react");
|
|
2905
|
+
var import_remotion10 = require("remotion");
|
|
2905
2906
|
|
|
2906
2907
|
// src/compositions/DmComposition/BaseDmComposition.tsx
|
|
2907
2908
|
var import_react8 = require("react");
|
|
@@ -4047,6 +4048,7 @@ function generateHeaderElements(props) {
|
|
|
4047
4048
|
const username2FontSize = props.username2FontSize ?? HEADER_DEFAULTS.username2FontSize;
|
|
4048
4049
|
const username2LetterSpacing = props.username2LetterSpacing ?? HEADER_DEFAULTS.username2LetterSpacing;
|
|
4049
4050
|
const truncatedUsername = senderUsername.length > 9 ? senderUsername.substring(0, 9) + "..." : senderUsername;
|
|
4051
|
+
const themeColors = getThemeColors(props.theme);
|
|
4050
4052
|
const username1Height = username1FontSize;
|
|
4051
4053
|
const username1Top = username1Bottom - username1Height;
|
|
4052
4054
|
elements.push({
|
|
@@ -4061,7 +4063,7 @@ function generateHeaderElements(props) {
|
|
|
4061
4063
|
font: "apple",
|
|
4062
4064
|
fontSize: username1FontSize,
|
|
4063
4065
|
fontWeight: "bold",
|
|
4064
|
-
color:
|
|
4066
|
+
color: themeColors.textPrimary,
|
|
4065
4067
|
letterSpacing: username1LetterSpacing,
|
|
4066
4068
|
textAlign: "left",
|
|
4067
4069
|
verticalAlign: "middle"
|
|
@@ -4080,7 +4082,7 @@ function generateHeaderElements(props) {
|
|
|
4080
4082
|
font: "apple",
|
|
4081
4083
|
fontSize: username2FontSize,
|
|
4082
4084
|
fontWeight: "normal",
|
|
4083
|
-
color:
|
|
4085
|
+
color: themeColors.textSecondary,
|
|
4084
4086
|
letterSpacing: username2LetterSpacing,
|
|
4085
4087
|
textAlign: "left",
|
|
4086
4088
|
verticalAlign: "middle"
|
|
@@ -5068,12 +5070,45 @@ function InstagramDmComposition(props) {
|
|
|
5068
5070
|
homeIndicatorBottom = 2597,
|
|
5069
5071
|
homeIndicatorLeft = 387,
|
|
5070
5072
|
homeIndicatorRight = 818,
|
|
5071
|
-
homeIndicatorColor = "#ffffff"
|
|
5073
|
+
homeIndicatorColor = "#ffffff",
|
|
5074
|
+
// Header icon props
|
|
5075
|
+
backArrowTop = 240,
|
|
5076
|
+
backArrowBottom = 300,
|
|
5077
|
+
backArrowLeft = 78,
|
|
5078
|
+
backArrowRight = 111,
|
|
5079
|
+
smilePlusTop = 234,
|
|
5080
|
+
smilePlusBottom = 306,
|
|
5081
|
+
smilePlusLeft = 663,
|
|
5082
|
+
smilePlusRight = 735,
|
|
5083
|
+
phoneIconTop = 237,
|
|
5084
|
+
phoneIconBottom = 303,
|
|
5085
|
+
phoneIconLeft = 807,
|
|
5086
|
+
phoneIconRight = 873,
|
|
5087
|
+
videoIconTop = 240,
|
|
5088
|
+
videoIconBottom = 300,
|
|
5089
|
+
videoIconLeft = 948,
|
|
5090
|
+
videoIconRight = 1020,
|
|
5091
|
+
flagTop = 237,
|
|
5092
|
+
flagBottom = 303,
|
|
5093
|
+
flagLeft = 1098,
|
|
5094
|
+
flagRight = 1153,
|
|
5095
|
+
usernameArrowTop = 231,
|
|
5096
|
+
usernameArrowBottom = 260,
|
|
5097
|
+
usernameArrowLeft = 619,
|
|
5098
|
+
usernameArrowRight = 636
|
|
5072
5099
|
} = props;
|
|
5073
|
-
const { elements, imageUrls } = (0, import_react9.useMemo)(() => {
|
|
5074
|
-
return convertPropsToElements(props);
|
|
5075
|
-
}, [props]);
|
|
5076
5100
|
const colors = getThemeColors(theme);
|
|
5101
|
+
const isLightMode = theme === "light";
|
|
5102
|
+
const { elements, imageUrls } = (0, import_react9.useMemo)(() => {
|
|
5103
|
+
const propsWithThemeColors = {
|
|
5104
|
+
...props,
|
|
5105
|
+
recipientBubbleColor: isLightMode ? colors.recipientBubble : props.recipientBubbleColor ?? "#25282d"
|
|
5106
|
+
};
|
|
5107
|
+
return convertPropsToElements(propsWithThemeColors);
|
|
5108
|
+
}, [props, isLightMode, colors.recipientBubble]);
|
|
5109
|
+
const effectiveHomeIndicatorColor = isLightMode ? "#000000" : homeIndicatorColor;
|
|
5110
|
+
const effectiveStatusBarColor = isLightMode ? "#000000" : "#ffffff";
|
|
5111
|
+
const headerIconFilter = isLightMode ? "invert(1)" : "none";
|
|
5077
5112
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
5078
5113
|
BaseDmComposition,
|
|
5079
5114
|
{
|
|
@@ -5123,7 +5158,8 @@ function InstagramDmComposition(props) {
|
|
|
5123
5158
|
homeIndicatorBottom,
|
|
5124
5159
|
homeIndicatorLeft,
|
|
5125
5160
|
homeIndicatorRight,
|
|
5126
|
-
homeIndicatorColor,
|
|
5161
|
+
homeIndicatorColor: effectiveHomeIndicatorColor,
|
|
5162
|
+
statusBarColor: effectiveStatusBarColor,
|
|
5127
5163
|
children: [
|
|
5128
5164
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5129
5165
|
ImageEditorComposition,
|
|
@@ -5152,7 +5188,99 @@ function InstagramDmComposition(props) {
|
|
|
5152
5188
|
zIndex: 29
|
|
5153
5189
|
}
|
|
5154
5190
|
}
|
|
5155
|
-
)
|
|
5191
|
+
),
|
|
5192
|
+
isLightMode && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
5193
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5194
|
+
import_remotion10.Img,
|
|
5195
|
+
{
|
|
5196
|
+
src: (0, import_remotion10.staticFile)("ig-header-left-arrow.png"),
|
|
5197
|
+
style: {
|
|
5198
|
+
position: "absolute",
|
|
5199
|
+
top: backArrowTop,
|
|
5200
|
+
left: backArrowLeft,
|
|
5201
|
+
width: backArrowRight - backArrowLeft,
|
|
5202
|
+
height: backArrowBottom - backArrowTop,
|
|
5203
|
+
zIndex: 31,
|
|
5204
|
+
filter: headerIconFilter
|
|
5205
|
+
}
|
|
5206
|
+
}
|
|
5207
|
+
),
|
|
5208
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5209
|
+
import_remotion10.Img,
|
|
5210
|
+
{
|
|
5211
|
+
src: (0, import_remotion10.staticFile)("ig-smile-plus.png"),
|
|
5212
|
+
style: {
|
|
5213
|
+
position: "absolute",
|
|
5214
|
+
top: smilePlusTop,
|
|
5215
|
+
left: smilePlusLeft,
|
|
5216
|
+
width: smilePlusRight - smilePlusLeft,
|
|
5217
|
+
height: smilePlusBottom - smilePlusTop,
|
|
5218
|
+
zIndex: 31,
|
|
5219
|
+
filter: headerIconFilter
|
|
5220
|
+
}
|
|
5221
|
+
}
|
|
5222
|
+
),
|
|
5223
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5224
|
+
import_remotion10.Img,
|
|
5225
|
+
{
|
|
5226
|
+
src: (0, import_remotion10.staticFile)("ig-phone.png"),
|
|
5227
|
+
style: {
|
|
5228
|
+
position: "absolute",
|
|
5229
|
+
top: phoneIconTop,
|
|
5230
|
+
left: phoneIconLeft,
|
|
5231
|
+
width: phoneIconRight - phoneIconLeft,
|
|
5232
|
+
height: phoneIconBottom - phoneIconTop,
|
|
5233
|
+
zIndex: 31,
|
|
5234
|
+
filter: headerIconFilter
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5237
|
+
),
|
|
5238
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5239
|
+
import_remotion10.Img,
|
|
5240
|
+
{
|
|
5241
|
+
src: (0, import_remotion10.staticFile)("ig-video.png"),
|
|
5242
|
+
style: {
|
|
5243
|
+
position: "absolute",
|
|
5244
|
+
top: videoIconTop,
|
|
5245
|
+
left: videoIconLeft,
|
|
5246
|
+
width: videoIconRight - videoIconLeft,
|
|
5247
|
+
height: videoIconBottom - videoIconTop,
|
|
5248
|
+
zIndex: 31,
|
|
5249
|
+
filter: headerIconFilter
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
),
|
|
5253
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5254
|
+
import_remotion10.Img,
|
|
5255
|
+
{
|
|
5256
|
+
src: (0, import_remotion10.staticFile)("ig-flag.png"),
|
|
5257
|
+
style: {
|
|
5258
|
+
position: "absolute",
|
|
5259
|
+
top: flagTop,
|
|
5260
|
+
left: flagLeft,
|
|
5261
|
+
width: flagRight - flagLeft,
|
|
5262
|
+
height: flagBottom - flagTop,
|
|
5263
|
+
zIndex: 31,
|
|
5264
|
+
filter: headerIconFilter
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
),
|
|
5268
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5269
|
+
import_remotion10.Img,
|
|
5270
|
+
{
|
|
5271
|
+
src: (0, import_remotion10.staticFile)("ig-username-right-arrow.png"),
|
|
5272
|
+
style: {
|
|
5273
|
+
position: "absolute",
|
|
5274
|
+
top: usernameArrowTop,
|
|
5275
|
+
left: usernameArrowLeft,
|
|
5276
|
+
width: usernameArrowRight - usernameArrowLeft,
|
|
5277
|
+
height: usernameArrowBottom - usernameArrowTop,
|
|
5278
|
+
zIndex: 31,
|
|
5279
|
+
filter: headerIconFilter
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
)
|
|
5283
|
+
] })
|
|
5156
5284
|
]
|
|
5157
5285
|
}
|
|
5158
5286
|
);
|
|
@@ -5260,7 +5388,7 @@ function convertPublicToProps(input) {
|
|
|
5260
5388
|
|
|
5261
5389
|
// src/compositions/IMessageDmComposition/index.tsx
|
|
5262
5390
|
var import_react10 = require("react");
|
|
5263
|
-
var
|
|
5391
|
+
var import_remotion11 = require("remotion");
|
|
5264
5392
|
|
|
5265
5393
|
// src/compositions/IMessageDmComposition/convertPropsToElements.ts
|
|
5266
5394
|
var SENDER_IMAGE_INPUT_ID_PREFIX = "sender-image-";
|
|
@@ -6003,7 +6131,7 @@ var defaultIMessageDmProps = {
|
|
|
6003
6131
|
var IMessageDmComposition = (props) => {
|
|
6004
6132
|
const [fontsLoaded, setFontsLoaded] = (0, import_react10.useState)(false);
|
|
6005
6133
|
(0, import_react10.useEffect)(() => {
|
|
6006
|
-
const handle = (0,
|
|
6134
|
+
const handle = (0, import_remotion11.delayRender)("Loading fonts for IMessageDmComposition");
|
|
6007
6135
|
const loadFonts = async () => {
|
|
6008
6136
|
await preloadFonts();
|
|
6009
6137
|
if (typeof document !== "undefined" && document.fonts?.ready) {
|
|
@@ -6023,11 +6151,11 @@ var IMessageDmComposition = (props) => {
|
|
|
6023
6151
|
};
|
|
6024
6152
|
loadFonts().then(() => {
|
|
6025
6153
|
setFontsLoaded(true);
|
|
6026
|
-
(0,
|
|
6154
|
+
(0, import_remotion11.continueRender)(handle);
|
|
6027
6155
|
}).catch((err) => {
|
|
6028
6156
|
console.error("[IMessageDmComposition] Failed to load fonts:", err);
|
|
6029
6157
|
setFontsLoaded(true);
|
|
6030
|
-
(0,
|
|
6158
|
+
(0, import_remotion11.continueRender)(handle);
|
|
6031
6159
|
});
|
|
6032
6160
|
}, []);
|
|
6033
6161
|
const mergedProps = (0, import_react10.useMemo)(() => ({
|
|
@@ -6262,9 +6390,9 @@ var IMessageDmComposition = (props) => {
|
|
|
6262
6390
|
}
|
|
6263
6391
|
),
|
|
6264
6392
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6265
|
-
|
|
6393
|
+
import_remotion11.Img,
|
|
6266
6394
|
{
|
|
6267
|
-
src: (0,
|
|
6395
|
+
src: (0, import_remotion11.staticFile)("imsg-header-left-arrow.png"),
|
|
6268
6396
|
style: {
|
|
6269
6397
|
position: "absolute",
|
|
6270
6398
|
top: backArrowTop,
|
|
@@ -6309,9 +6437,9 @@ var IMessageDmComposition = (props) => {
|
|
|
6309
6437
|
}
|
|
6310
6438
|
),
|
|
6311
6439
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6312
|
-
|
|
6440
|
+
import_remotion11.Img,
|
|
6313
6441
|
{
|
|
6314
|
-
src: (0,
|
|
6442
|
+
src: (0, import_remotion11.staticFile)("imsg-header-camera.png"),
|
|
6315
6443
|
style: {
|
|
6316
6444
|
position: "absolute",
|
|
6317
6445
|
top: cameraIconTop,
|
|
@@ -6337,7 +6465,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6337
6465
|
}
|
|
6338
6466
|
),
|
|
6339
6467
|
profilePicUrl && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6340
|
-
|
|
6468
|
+
import_remotion11.Img,
|
|
6341
6469
|
{
|
|
6342
6470
|
src: profilePicUrl,
|
|
6343
6471
|
style: {
|
|
@@ -6382,9 +6510,9 @@ var IMessageDmComposition = (props) => {
|
|
|
6382
6510
|
}
|
|
6383
6511
|
),
|
|
6384
6512
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6385
|
-
|
|
6513
|
+
import_remotion11.Img,
|
|
6386
6514
|
{
|
|
6387
|
-
src: (0,
|
|
6515
|
+
src: (0, import_remotion11.staticFile)("imsg-name-right-arrow.png"),
|
|
6388
6516
|
style: {
|
|
6389
6517
|
marginLeft: usernameArrowOffsetX,
|
|
6390
6518
|
marginTop: usernameArrowOffsetY,
|
|
@@ -6397,9 +6525,9 @@ var IMessageDmComposition = (props) => {
|
|
|
6397
6525
|
}
|
|
6398
6526
|
),
|
|
6399
6527
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6400
|
-
|
|
6528
|
+
import_remotion11.Img,
|
|
6401
6529
|
{
|
|
6402
|
-
src: (0,
|
|
6530
|
+
src: (0, import_remotion11.staticFile)(lightMode ? "imsg-light-footer-plus.png" : "imsg-footer-plus.png"),
|
|
6403
6531
|
style: {
|
|
6404
6532
|
position: "absolute",
|
|
6405
6533
|
top: plusButtonTop,
|
|
@@ -6411,9 +6539,9 @@ var IMessageDmComposition = (props) => {
|
|
|
6411
6539
|
}
|
|
6412
6540
|
),
|
|
6413
6541
|
lightMode ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6414
|
-
|
|
6542
|
+
import_remotion11.Img,
|
|
6415
6543
|
{
|
|
6416
|
-
src: (0,
|
|
6544
|
+
src: (0, import_remotion11.staticFile)("imsg-light-main-footer.png"),
|
|
6417
6545
|
style: {
|
|
6418
6546
|
position: "absolute",
|
|
6419
6547
|
top: footerTop,
|
|
@@ -6658,7 +6786,7 @@ function MessageBubble({
|
|
|
6658
6786
|
}
|
|
6659
6787
|
|
|
6660
6788
|
// src/compositions/messaging/components/ProfilePic.tsx
|
|
6661
|
-
var
|
|
6789
|
+
var import_remotion12 = require("remotion");
|
|
6662
6790
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
6663
6791
|
function ProfilePic({
|
|
6664
6792
|
src,
|
|
@@ -6693,7 +6821,7 @@ function ProfilePic({
|
|
|
6693
6821
|
boxSizing: "border-box"
|
|
6694
6822
|
},
|
|
6695
6823
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
6696
|
-
|
|
6824
|
+
import_remotion12.Img,
|
|
6697
6825
|
{
|
|
6698
6826
|
src,
|
|
6699
6827
|
style: {
|
|
@@ -6758,7 +6886,7 @@ function Reaction({
|
|
|
6758
6886
|
}
|
|
6759
6887
|
|
|
6760
6888
|
// src/compositions/messaging/components/TypingIndicator.tsx
|
|
6761
|
-
var
|
|
6889
|
+
var import_remotion13 = require("remotion");
|
|
6762
6890
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
6763
6891
|
function gradientToCss2(color) {
|
|
6764
6892
|
if (color.type === "solid") {
|
|
@@ -6788,7 +6916,7 @@ function TypingIndicator({
|
|
|
6788
6916
|
paddingH,
|
|
6789
6917
|
paddingV
|
|
6790
6918
|
}) {
|
|
6791
|
-
const frame = (0,
|
|
6919
|
+
const frame = (0, import_remotion13.useCurrentFrame)();
|
|
6792
6920
|
const dot1Y = calculateDotBounce(frame, 0);
|
|
6793
6921
|
const dot2Y = calculateDotBounce(frame, 1);
|
|
6794
6922
|
const dot3Y = calculateDotBounce(frame, 2);
|
|
@@ -6843,7 +6971,7 @@ function TypingIndicator({
|
|
|
6843
6971
|
}
|
|
6844
6972
|
|
|
6845
6973
|
// src/compositions/messaging/components/MediaBubble.tsx
|
|
6846
|
-
var
|
|
6974
|
+
var import_remotion14 = require("remotion");
|
|
6847
6975
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
6848
6976
|
function MediaBubble({
|
|
6849
6977
|
src,
|
|
@@ -6866,7 +6994,7 @@ function MediaBubble({
|
|
|
6866
6994
|
boxSizing: "border-box"
|
|
6867
6995
|
},
|
|
6868
6996
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
6869
|
-
|
|
6997
|
+
import_remotion14.Img,
|
|
6870
6998
|
{
|
|
6871
6999
|
src,
|
|
6872
7000
|
style: {
|
|
@@ -7248,7 +7376,7 @@ function useResolvedPositions(elements, textValues) {
|
|
|
7248
7376
|
}
|
|
7249
7377
|
|
|
7250
7378
|
// src/Root.tsx
|
|
7251
|
-
var
|
|
7379
|
+
var import_remotion15 = require("remotion");
|
|
7252
7380
|
var import_zod2 = require("zod");
|
|
7253
7381
|
|
|
7254
7382
|
// src/compositions/IMessageDmComposition/types.ts
|
|
@@ -7926,7 +8054,7 @@ var calculateImageMetadata = async ({ props }) => {
|
|
|
7926
8054
|
var RenderRoot = () => {
|
|
7927
8055
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
7928
8056
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7929
|
-
|
|
8057
|
+
import_remotion15.Composition,
|
|
7930
8058
|
{
|
|
7931
8059
|
id: "ImageEditorComposition",
|
|
7932
8060
|
component: ImageComp,
|
|
@@ -7939,7 +8067,7 @@ var RenderRoot = () => {
|
|
|
7939
8067
|
}
|
|
7940
8068
|
),
|
|
7941
8069
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7942
|
-
|
|
8070
|
+
import_remotion15.Composition,
|
|
7943
8071
|
{
|
|
7944
8072
|
id: "VideoEditorComposition",
|
|
7945
8073
|
component: VideoComp,
|
|
@@ -7951,7 +8079,7 @@ var RenderRoot = () => {
|
|
|
7951
8079
|
}
|
|
7952
8080
|
),
|
|
7953
8081
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7954
|
-
|
|
8082
|
+
import_remotion15.Composition,
|
|
7955
8083
|
{
|
|
7956
8084
|
id: "AutoCaptionComposition",
|
|
7957
8085
|
component: AutoCaptionComp,
|
|
@@ -7963,7 +8091,7 @@ var RenderRoot = () => {
|
|
|
7963
8091
|
}
|
|
7964
8092
|
),
|
|
7965
8093
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7966
|
-
|
|
8094
|
+
import_remotion15.Composition,
|
|
7967
8095
|
{
|
|
7968
8096
|
id: "ScreenshotAnimationComposition",
|
|
7969
8097
|
component: ScreenshotAnimationComp,
|
|
@@ -7976,7 +8104,7 @@ var RenderRoot = () => {
|
|
|
7976
8104
|
}
|
|
7977
8105
|
),
|
|
7978
8106
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7979
|
-
|
|
8107
|
+
import_remotion15.Composition,
|
|
7980
8108
|
{
|
|
7981
8109
|
id: "InstagramDmComposition",
|
|
7982
8110
|
component: InstagramDmComp,
|
|
@@ -7989,7 +8117,7 @@ var RenderRoot = () => {
|
|
|
7989
8117
|
}
|
|
7990
8118
|
),
|
|
7991
8119
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
7992
|
-
|
|
8120
|
+
import_remotion15.Composition,
|
|
7993
8121
|
{
|
|
7994
8122
|
id: "IMessageDmComposition",
|
|
7995
8123
|
component: IMessageDmComp,
|
package/dist/index.mjs
CHANGED
|
@@ -1948,6 +1948,7 @@ function ScreenshotAnimation({
|
|
|
1948
1948
|
|
|
1949
1949
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
1950
1950
|
import { useMemo as useMemo7 } from "react";
|
|
1951
|
+
import { Img as Img5, staticFile as staticFile3 } from "remotion";
|
|
1951
1952
|
|
|
1952
1953
|
// src/compositions/DmComposition/BaseDmComposition.tsx
|
|
1953
1954
|
import { useCallback as useCallback2, useEffect as useEffect3, useState as useState3 } from "react";
|
|
@@ -3093,6 +3094,7 @@ function generateHeaderElements(props) {
|
|
|
3093
3094
|
const username2FontSize = props.username2FontSize ?? HEADER_DEFAULTS.username2FontSize;
|
|
3094
3095
|
const username2LetterSpacing = props.username2LetterSpacing ?? HEADER_DEFAULTS.username2LetterSpacing;
|
|
3095
3096
|
const truncatedUsername = senderUsername.length > 9 ? senderUsername.substring(0, 9) + "..." : senderUsername;
|
|
3097
|
+
const themeColors = getThemeColors(props.theme);
|
|
3096
3098
|
const username1Height = username1FontSize;
|
|
3097
3099
|
const username1Top = username1Bottom - username1Height;
|
|
3098
3100
|
elements.push({
|
|
@@ -3107,7 +3109,7 @@ function generateHeaderElements(props) {
|
|
|
3107
3109
|
font: "apple",
|
|
3108
3110
|
fontSize: username1FontSize,
|
|
3109
3111
|
fontWeight: "bold",
|
|
3110
|
-
color:
|
|
3112
|
+
color: themeColors.textPrimary,
|
|
3111
3113
|
letterSpacing: username1LetterSpacing,
|
|
3112
3114
|
textAlign: "left",
|
|
3113
3115
|
verticalAlign: "middle"
|
|
@@ -3126,7 +3128,7 @@ function generateHeaderElements(props) {
|
|
|
3126
3128
|
font: "apple",
|
|
3127
3129
|
fontSize: username2FontSize,
|
|
3128
3130
|
fontWeight: "normal",
|
|
3129
|
-
color:
|
|
3131
|
+
color: themeColors.textSecondary,
|
|
3130
3132
|
letterSpacing: username2LetterSpacing,
|
|
3131
3133
|
textAlign: "left",
|
|
3132
3134
|
verticalAlign: "middle"
|
|
@@ -3836,7 +3838,7 @@ function convertPropsToElements(props) {
|
|
|
3836
3838
|
}
|
|
3837
3839
|
|
|
3838
3840
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
3839
|
-
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3841
|
+
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3840
3842
|
var defaultInstagramDmProps = {
|
|
3841
3843
|
showDebugOverlay: true,
|
|
3842
3844
|
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3186-L1M2HgmhYFpnI5uKDrhcKYpRQSzwoz.png",
|
|
@@ -4114,12 +4116,45 @@ function InstagramDmComposition(props) {
|
|
|
4114
4116
|
homeIndicatorBottom = 2597,
|
|
4115
4117
|
homeIndicatorLeft = 387,
|
|
4116
4118
|
homeIndicatorRight = 818,
|
|
4117
|
-
homeIndicatorColor = "#ffffff"
|
|
4119
|
+
homeIndicatorColor = "#ffffff",
|
|
4120
|
+
// Header icon props
|
|
4121
|
+
backArrowTop = 240,
|
|
4122
|
+
backArrowBottom = 300,
|
|
4123
|
+
backArrowLeft = 78,
|
|
4124
|
+
backArrowRight = 111,
|
|
4125
|
+
smilePlusTop = 234,
|
|
4126
|
+
smilePlusBottom = 306,
|
|
4127
|
+
smilePlusLeft = 663,
|
|
4128
|
+
smilePlusRight = 735,
|
|
4129
|
+
phoneIconTop = 237,
|
|
4130
|
+
phoneIconBottom = 303,
|
|
4131
|
+
phoneIconLeft = 807,
|
|
4132
|
+
phoneIconRight = 873,
|
|
4133
|
+
videoIconTop = 240,
|
|
4134
|
+
videoIconBottom = 300,
|
|
4135
|
+
videoIconLeft = 948,
|
|
4136
|
+
videoIconRight = 1020,
|
|
4137
|
+
flagTop = 237,
|
|
4138
|
+
flagBottom = 303,
|
|
4139
|
+
flagLeft = 1098,
|
|
4140
|
+
flagRight = 1153,
|
|
4141
|
+
usernameArrowTop = 231,
|
|
4142
|
+
usernameArrowBottom = 260,
|
|
4143
|
+
usernameArrowLeft = 619,
|
|
4144
|
+
usernameArrowRight = 636
|
|
4118
4145
|
} = props;
|
|
4119
|
-
const { elements, imageUrls } = useMemo7(() => {
|
|
4120
|
-
return convertPropsToElements(props);
|
|
4121
|
-
}, [props]);
|
|
4122
4146
|
const colors = getThemeColors(theme);
|
|
4147
|
+
const isLightMode = theme === "light";
|
|
4148
|
+
const { elements, imageUrls } = useMemo7(() => {
|
|
4149
|
+
const propsWithThemeColors = {
|
|
4150
|
+
...props,
|
|
4151
|
+
recipientBubbleColor: isLightMode ? colors.recipientBubble : props.recipientBubbleColor ?? "#25282d"
|
|
4152
|
+
};
|
|
4153
|
+
return convertPropsToElements(propsWithThemeColors);
|
|
4154
|
+
}, [props, isLightMode, colors.recipientBubble]);
|
|
4155
|
+
const effectiveHomeIndicatorColor = isLightMode ? "#000000" : homeIndicatorColor;
|
|
4156
|
+
const effectiveStatusBarColor = isLightMode ? "#000000" : "#ffffff";
|
|
4157
|
+
const headerIconFilter = isLightMode ? "invert(1)" : "none";
|
|
4123
4158
|
return /* @__PURE__ */ jsxs9(
|
|
4124
4159
|
BaseDmComposition,
|
|
4125
4160
|
{
|
|
@@ -4169,7 +4204,8 @@ function InstagramDmComposition(props) {
|
|
|
4169
4204
|
homeIndicatorBottom,
|
|
4170
4205
|
homeIndicatorLeft,
|
|
4171
4206
|
homeIndicatorRight,
|
|
4172
|
-
homeIndicatorColor,
|
|
4207
|
+
homeIndicatorColor: effectiveHomeIndicatorColor,
|
|
4208
|
+
statusBarColor: effectiveStatusBarColor,
|
|
4173
4209
|
children: [
|
|
4174
4210
|
/* @__PURE__ */ jsx11(
|
|
4175
4211
|
ImageEditorComposition,
|
|
@@ -4198,7 +4234,99 @@ function InstagramDmComposition(props) {
|
|
|
4198
4234
|
zIndex: 29
|
|
4199
4235
|
}
|
|
4200
4236
|
}
|
|
4201
|
-
)
|
|
4237
|
+
),
|
|
4238
|
+
isLightMode && /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
4239
|
+
/* @__PURE__ */ jsx11(
|
|
4240
|
+
Img5,
|
|
4241
|
+
{
|
|
4242
|
+
src: staticFile3("ig-header-left-arrow.png"),
|
|
4243
|
+
style: {
|
|
4244
|
+
position: "absolute",
|
|
4245
|
+
top: backArrowTop,
|
|
4246
|
+
left: backArrowLeft,
|
|
4247
|
+
width: backArrowRight - backArrowLeft,
|
|
4248
|
+
height: backArrowBottom - backArrowTop,
|
|
4249
|
+
zIndex: 31,
|
|
4250
|
+
filter: headerIconFilter
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
),
|
|
4254
|
+
/* @__PURE__ */ jsx11(
|
|
4255
|
+
Img5,
|
|
4256
|
+
{
|
|
4257
|
+
src: staticFile3("ig-smile-plus.png"),
|
|
4258
|
+
style: {
|
|
4259
|
+
position: "absolute",
|
|
4260
|
+
top: smilePlusTop,
|
|
4261
|
+
left: smilePlusLeft,
|
|
4262
|
+
width: smilePlusRight - smilePlusLeft,
|
|
4263
|
+
height: smilePlusBottom - smilePlusTop,
|
|
4264
|
+
zIndex: 31,
|
|
4265
|
+
filter: headerIconFilter
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
),
|
|
4269
|
+
/* @__PURE__ */ jsx11(
|
|
4270
|
+
Img5,
|
|
4271
|
+
{
|
|
4272
|
+
src: staticFile3("ig-phone.png"),
|
|
4273
|
+
style: {
|
|
4274
|
+
position: "absolute",
|
|
4275
|
+
top: phoneIconTop,
|
|
4276
|
+
left: phoneIconLeft,
|
|
4277
|
+
width: phoneIconRight - phoneIconLeft,
|
|
4278
|
+
height: phoneIconBottom - phoneIconTop,
|
|
4279
|
+
zIndex: 31,
|
|
4280
|
+
filter: headerIconFilter
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
),
|
|
4284
|
+
/* @__PURE__ */ jsx11(
|
|
4285
|
+
Img5,
|
|
4286
|
+
{
|
|
4287
|
+
src: staticFile3("ig-video.png"),
|
|
4288
|
+
style: {
|
|
4289
|
+
position: "absolute",
|
|
4290
|
+
top: videoIconTop,
|
|
4291
|
+
left: videoIconLeft,
|
|
4292
|
+
width: videoIconRight - videoIconLeft,
|
|
4293
|
+
height: videoIconBottom - videoIconTop,
|
|
4294
|
+
zIndex: 31,
|
|
4295
|
+
filter: headerIconFilter
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
),
|
|
4299
|
+
/* @__PURE__ */ jsx11(
|
|
4300
|
+
Img5,
|
|
4301
|
+
{
|
|
4302
|
+
src: staticFile3("ig-flag.png"),
|
|
4303
|
+
style: {
|
|
4304
|
+
position: "absolute",
|
|
4305
|
+
top: flagTop,
|
|
4306
|
+
left: flagLeft,
|
|
4307
|
+
width: flagRight - flagLeft,
|
|
4308
|
+
height: flagBottom - flagTop,
|
|
4309
|
+
zIndex: 31,
|
|
4310
|
+
filter: headerIconFilter
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
),
|
|
4314
|
+
/* @__PURE__ */ jsx11(
|
|
4315
|
+
Img5,
|
|
4316
|
+
{
|
|
4317
|
+
src: staticFile3("ig-username-right-arrow.png"),
|
|
4318
|
+
style: {
|
|
4319
|
+
position: "absolute",
|
|
4320
|
+
top: usernameArrowTop,
|
|
4321
|
+
left: usernameArrowLeft,
|
|
4322
|
+
width: usernameArrowRight - usernameArrowLeft,
|
|
4323
|
+
height: usernameArrowBottom - usernameArrowTop,
|
|
4324
|
+
zIndex: 31,
|
|
4325
|
+
filter: headerIconFilter
|
|
4326
|
+
}
|
|
4327
|
+
}
|
|
4328
|
+
)
|
|
4329
|
+
] })
|
|
4202
4330
|
]
|
|
4203
4331
|
}
|
|
4204
4332
|
);
|
|
@@ -4306,7 +4434,7 @@ function convertPublicToProps(input) {
|
|
|
4306
4434
|
|
|
4307
4435
|
// src/compositions/IMessageDmComposition/index.tsx
|
|
4308
4436
|
import { useEffect as useEffect4, useMemo as useMemo8, useState as useState4 } from "react";
|
|
4309
|
-
import { Img as
|
|
4437
|
+
import { Img as Img6, staticFile as staticFile4, delayRender as delayRender3, continueRender as continueRender3 } from "remotion";
|
|
4310
4438
|
|
|
4311
4439
|
// src/compositions/IMessageDmComposition/convertPropsToElements.ts
|
|
4312
4440
|
var SENDER_IMAGE_INPUT_ID_PREFIX = "sender-image-";
|
|
@@ -5308,9 +5436,9 @@ var IMessageDmComposition = (props) => {
|
|
|
5308
5436
|
}
|
|
5309
5437
|
),
|
|
5310
5438
|
/* @__PURE__ */ jsx12(
|
|
5311
|
-
|
|
5439
|
+
Img6,
|
|
5312
5440
|
{
|
|
5313
|
-
src:
|
|
5441
|
+
src: staticFile4("imsg-header-left-arrow.png"),
|
|
5314
5442
|
style: {
|
|
5315
5443
|
position: "absolute",
|
|
5316
5444
|
top: backArrowTop,
|
|
@@ -5355,9 +5483,9 @@ var IMessageDmComposition = (props) => {
|
|
|
5355
5483
|
}
|
|
5356
5484
|
),
|
|
5357
5485
|
/* @__PURE__ */ jsx12(
|
|
5358
|
-
|
|
5486
|
+
Img6,
|
|
5359
5487
|
{
|
|
5360
|
-
src:
|
|
5488
|
+
src: staticFile4("imsg-header-camera.png"),
|
|
5361
5489
|
style: {
|
|
5362
5490
|
position: "absolute",
|
|
5363
5491
|
top: cameraIconTop,
|
|
@@ -5383,7 +5511,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5383
5511
|
}
|
|
5384
5512
|
),
|
|
5385
5513
|
profilePicUrl && /* @__PURE__ */ jsx12(
|
|
5386
|
-
|
|
5514
|
+
Img6,
|
|
5387
5515
|
{
|
|
5388
5516
|
src: profilePicUrl,
|
|
5389
5517
|
style: {
|
|
@@ -5428,9 +5556,9 @@ var IMessageDmComposition = (props) => {
|
|
|
5428
5556
|
}
|
|
5429
5557
|
),
|
|
5430
5558
|
/* @__PURE__ */ jsx12(
|
|
5431
|
-
|
|
5559
|
+
Img6,
|
|
5432
5560
|
{
|
|
5433
|
-
src:
|
|
5561
|
+
src: staticFile4("imsg-name-right-arrow.png"),
|
|
5434
5562
|
style: {
|
|
5435
5563
|
marginLeft: usernameArrowOffsetX,
|
|
5436
5564
|
marginTop: usernameArrowOffsetY,
|
|
@@ -5443,9 +5571,9 @@ var IMessageDmComposition = (props) => {
|
|
|
5443
5571
|
}
|
|
5444
5572
|
),
|
|
5445
5573
|
/* @__PURE__ */ jsx12(
|
|
5446
|
-
|
|
5574
|
+
Img6,
|
|
5447
5575
|
{
|
|
5448
|
-
src:
|
|
5576
|
+
src: staticFile4(lightMode ? "imsg-light-footer-plus.png" : "imsg-footer-plus.png"),
|
|
5449
5577
|
style: {
|
|
5450
5578
|
position: "absolute",
|
|
5451
5579
|
top: plusButtonTop,
|
|
@@ -5457,9 +5585,9 @@ var IMessageDmComposition = (props) => {
|
|
|
5457
5585
|
}
|
|
5458
5586
|
),
|
|
5459
5587
|
lightMode ? /* @__PURE__ */ jsx12(
|
|
5460
|
-
|
|
5588
|
+
Img6,
|
|
5461
5589
|
{
|
|
5462
|
-
src:
|
|
5590
|
+
src: staticFile4("imsg-light-main-footer.png"),
|
|
5463
5591
|
style: {
|
|
5464
5592
|
position: "absolute",
|
|
5465
5593
|
top: footerTop,
|
|
@@ -5704,7 +5832,7 @@ function MessageBubble({
|
|
|
5704
5832
|
}
|
|
5705
5833
|
|
|
5706
5834
|
// src/compositions/messaging/components/ProfilePic.tsx
|
|
5707
|
-
import { Img as
|
|
5835
|
+
import { Img as Img7 } from "remotion";
|
|
5708
5836
|
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
5709
5837
|
function ProfilePic({
|
|
5710
5838
|
src,
|
|
@@ -5739,7 +5867,7 @@ function ProfilePic({
|
|
|
5739
5867
|
boxSizing: "border-box"
|
|
5740
5868
|
},
|
|
5741
5869
|
children: /* @__PURE__ */ jsx14(
|
|
5742
|
-
|
|
5870
|
+
Img7,
|
|
5743
5871
|
{
|
|
5744
5872
|
src,
|
|
5745
5873
|
style: {
|
|
@@ -5889,7 +6017,7 @@ function TypingIndicator({
|
|
|
5889
6017
|
}
|
|
5890
6018
|
|
|
5891
6019
|
// src/compositions/messaging/components/MediaBubble.tsx
|
|
5892
|
-
import { Img as
|
|
6020
|
+
import { Img as Img8 } from "remotion";
|
|
5893
6021
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
5894
6022
|
function MediaBubble({
|
|
5895
6023
|
src,
|
|
@@ -5912,7 +6040,7 @@ function MediaBubble({
|
|
|
5912
6040
|
boxSizing: "border-box"
|
|
5913
6041
|
},
|
|
5914
6042
|
children: /* @__PURE__ */ jsx17(
|
|
5915
|
-
|
|
6043
|
+
Img8,
|
|
5916
6044
|
{
|
|
5917
6045
|
src,
|
|
5918
6046
|
style: {
|
|
@@ -6231,7 +6359,7 @@ var iMessageDmPropsSchema = z.object({
|
|
|
6231
6359
|
});
|
|
6232
6360
|
|
|
6233
6361
|
// src/Root.tsx
|
|
6234
|
-
import { Fragment as
|
|
6362
|
+
import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
6235
6363
|
var defaultImageProps = {
|
|
6236
6364
|
config: {
|
|
6237
6365
|
width: 1080,
|
|
@@ -6687,7 +6815,7 @@ var calculateImageMetadata = async ({ props }) => {
|
|
|
6687
6815
|
};
|
|
6688
6816
|
};
|
|
6689
6817
|
var RenderRoot = () => {
|
|
6690
|
-
return /* @__PURE__ */ jsxs13(
|
|
6818
|
+
return /* @__PURE__ */ jsxs13(Fragment3, { children: [
|
|
6691
6819
|
/* @__PURE__ */ jsx18(
|
|
6692
6820
|
Composition,
|
|
6693
6821
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.193",
|
|
4
4
|
"description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|