ugcinc-render 1.8.185 → 1.8.187
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +47 -48
- package/dist/index.mjs +47 -48
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -997,6 +997,7 @@ interface IMessageDmCompositionProps {
|
|
|
997
997
|
referenceImageUrl?: string;
|
|
998
998
|
showReferenceImage?: boolean;
|
|
999
999
|
referenceOpacity?: number;
|
|
1000
|
+
lightMode?: boolean;
|
|
1000
1001
|
headerTop?: number;
|
|
1001
1002
|
headerBottom?: number;
|
|
1002
1003
|
headerBackgroundColor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -997,6 +997,7 @@ interface IMessageDmCompositionProps {
|
|
|
997
997
|
referenceImageUrl?: string;
|
|
998
998
|
showReferenceImage?: boolean;
|
|
999
999
|
referenceOpacity?: number;
|
|
1000
|
+
lightMode?: boolean;
|
|
1000
1001
|
headerTop?: number;
|
|
1001
1002
|
headerBottom?: number;
|
|
1002
1003
|
headerBackgroundColor?: string;
|
package/dist/index.js
CHANGED
|
@@ -5773,6 +5773,7 @@ var defaultIMessageDmProps = {
|
|
|
5773
5773
|
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/06c3ed1c-eefb-4a60-b0c4-5fb872811ba0/IMG_3189-hUoucNOmBoT8fihIL7ybuEXwoRrngz.png",
|
|
5774
5774
|
showReferenceImage: true,
|
|
5775
5775
|
referenceOpacity: 50,
|
|
5776
|
+
lightMode: false,
|
|
5776
5777
|
width: 1206,
|
|
5777
5778
|
height: 2622,
|
|
5778
5779
|
durationInFrames: 90,
|
|
@@ -5940,34 +5941,34 @@ var defaultIMessageDmProps = {
|
|
|
5940
5941
|
// Recipient tail anchor points (offsets from message left & bottom)
|
|
5941
5942
|
recipientTailSideY: -53,
|
|
5942
5943
|
// Y where tail meets bubble (top of straight line)
|
|
5943
|
-
recipientTailCurveStartY: -
|
|
5944
|
+
recipientTailCurveStartY: -28,
|
|
5944
5945
|
// Y where straight line ends and top curve begins
|
|
5945
|
-
recipientTailTipX: -
|
|
5946
|
+
recipientTailTipX: -16,
|
|
5946
5947
|
recipientTailTipY: -1,
|
|
5947
5948
|
recipientTailBottomX: 19,
|
|
5948
5949
|
// X where bottom curve ends (connects to bubble)
|
|
5949
5950
|
recipientTailBottomY: -12,
|
|
5950
5951
|
// Y where bottom curve ends (connects to bubble)
|
|
5951
5952
|
// Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5952
|
-
recipientTailTopBend: -0.
|
|
5953
|
+
recipientTailTopBend: -0.32,
|
|
5953
5954
|
// Top curve bends inward
|
|
5954
|
-
recipientTailBottomBend: 0.
|
|
5955
|
+
recipientTailBottomBend: 0.3,
|
|
5955
5956
|
// Bottom curve bends outward
|
|
5956
5957
|
// Sender tail anchor points (offsets from message right & bottom)
|
|
5957
5958
|
senderTailSideY: -53,
|
|
5958
5959
|
// Y where tail meets bubble (top of straight line)
|
|
5959
|
-
senderTailCurveStartY: -
|
|
5960
|
+
senderTailCurveStartY: -28,
|
|
5960
5961
|
// Y where straight line ends and top curve begins
|
|
5961
|
-
senderTailTipX:
|
|
5962
|
+
senderTailTipX: 16,
|
|
5962
5963
|
senderTailTipY: -1,
|
|
5963
5964
|
senderTailBottomX: -19,
|
|
5964
5965
|
// X where bottom curve ends (connects to bubble)
|
|
5965
5966
|
senderTailBottomY: -12,
|
|
5966
5967
|
// Y where bottom curve ends (connects to bubble)
|
|
5967
5968
|
// Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5968
|
-
senderTailTopBend: -0.
|
|
5969
|
+
senderTailTopBend: -0.32,
|
|
5969
5970
|
// Top curve bends inward
|
|
5970
|
-
senderTailBottomBend: 0.
|
|
5971
|
+
senderTailBottomBend: 0.3,
|
|
5971
5972
|
// Bottom curve bends outward
|
|
5972
5973
|
// Read receipt (under last sender message)
|
|
5973
5974
|
showReadReceipt: true,
|
|
@@ -6024,7 +6025,11 @@ var IMessageDmComposition = (props) => {
|
|
|
6024
6025
|
if (!fontsLoaded) {
|
|
6025
6026
|
return { elements: [], imageUrls: {}, tails: [], width: mergedProps.width ?? 1206, height: mergedProps.height ?? 2622 };
|
|
6026
6027
|
}
|
|
6027
|
-
|
|
6028
|
+
const propsWithEffectiveColors = {
|
|
6029
|
+
...mergedProps,
|
|
6030
|
+
recipientBubbleColor: mergedProps.lightMode ? "#dfdfe1" : mergedProps.recipientBubbleColor ?? "#303032"
|
|
6031
|
+
};
|
|
6032
|
+
return convertPropsToElements2(propsWithEffectiveColors);
|
|
6028
6033
|
}, [mergedProps, fontsLoaded]);
|
|
6029
6034
|
const {
|
|
6030
6035
|
width = 1206,
|
|
@@ -6032,6 +6037,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6032
6037
|
backgroundColor = "#000000",
|
|
6033
6038
|
headerBackgroundColor = "#171717",
|
|
6034
6039
|
headerBottom = 424,
|
|
6040
|
+
lightMode = false,
|
|
6035
6041
|
// Profile section
|
|
6036
6042
|
profilePicUrl,
|
|
6037
6043
|
profilePicTop = 195,
|
|
@@ -6132,41 +6138,38 @@ var IMessageDmComposition = (props) => {
|
|
|
6132
6138
|
footerBorderRadius = 55,
|
|
6133
6139
|
footerBorderColor = "#3a3a3c",
|
|
6134
6140
|
footerBorderWidth = 2,
|
|
6135
|
-
// Message text
|
|
6136
|
-
messageTextTop = 2412,
|
|
6137
|
-
messageTextBottom = 2468,
|
|
6138
|
-
messageTextLeft = 220,
|
|
6139
|
-
messageTextFontSize = 48,
|
|
6140
|
-
messageTextColor = "#8e8e93",
|
|
6141
|
-
messageText = "iMessage",
|
|
6142
6141
|
// Bubble colors
|
|
6143
6142
|
senderBubbleColor = "#1a42d5",
|
|
6144
6143
|
recipientBubbleColor = "#303032",
|
|
6145
6144
|
// Tail props - recipient (offsets from message left & bottom)
|
|
6146
6145
|
recipientTailSideY = -53,
|
|
6147
|
-
recipientTailCurveStartY = -
|
|
6148
|
-
recipientTailTipX = -
|
|
6146
|
+
recipientTailCurveStartY = -28,
|
|
6147
|
+
recipientTailTipX = -16,
|
|
6149
6148
|
recipientTailTipY = -1,
|
|
6150
6149
|
recipientTailBottomX = 19,
|
|
6151
6150
|
recipientTailBottomY = -12,
|
|
6152
|
-
recipientTailTopBend = -0.
|
|
6153
|
-
recipientTailBottomBend = 0.
|
|
6151
|
+
recipientTailTopBend = -0.32,
|
|
6152
|
+
recipientTailBottomBend = 0.3,
|
|
6154
6153
|
// Tail props - sender (offsets from message right & bottom)
|
|
6155
6154
|
senderTailSideY = -53,
|
|
6156
|
-
senderTailCurveStartY = -
|
|
6157
|
-
senderTailTipX =
|
|
6155
|
+
senderTailCurveStartY = -28,
|
|
6156
|
+
senderTailTipX = 16,
|
|
6158
6157
|
senderTailTipY = -1,
|
|
6159
6158
|
senderTailBottomX = -19,
|
|
6160
6159
|
senderTailBottomY = -12,
|
|
6161
|
-
senderTailTopBend = -0.
|
|
6162
|
-
senderTailBottomBend = 0.
|
|
6160
|
+
senderTailTopBend = -0.32,
|
|
6161
|
+
senderTailBottomBend = 0.3
|
|
6163
6162
|
} = mergedProps;
|
|
6163
|
+
const effectiveBackgroundColor = lightMode ? "#ffffff" : backgroundColor;
|
|
6164
|
+
const effectiveHeaderBgColor = lightMode ? "#f7f7f7" : headerBackgroundColor;
|
|
6165
|
+
const effectiveRecipientBubbleColor = lightMode ? "#dfdfe1" : recipientBubbleColor;
|
|
6166
|
+
const effectiveHomeIndicatorColor = lightMode ? "#000000" : homeIndicatorColor;
|
|
6164
6167
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
6165
6168
|
BaseDmComposition,
|
|
6166
6169
|
{
|
|
6167
6170
|
width,
|
|
6168
6171
|
height,
|
|
6169
|
-
backgroundColor,
|
|
6172
|
+
backgroundColor: effectiveBackgroundColor,
|
|
6170
6173
|
showDebugOverlay,
|
|
6171
6174
|
referenceImageUrl,
|
|
6172
6175
|
showReferenceImage,
|
|
@@ -6210,7 +6213,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6210
6213
|
homeIndicatorBottom,
|
|
6211
6214
|
homeIndicatorLeft,
|
|
6212
6215
|
homeIndicatorRight,
|
|
6213
|
-
homeIndicatorColor,
|
|
6216
|
+
homeIndicatorColor: effectiveHomeIndicatorColor,
|
|
6214
6217
|
children: [
|
|
6215
6218
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6216
6219
|
"div",
|
|
@@ -6221,7 +6224,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6221
6224
|
left: 0,
|
|
6222
6225
|
width,
|
|
6223
6226
|
height: headerBottom,
|
|
6224
|
-
backgroundColor:
|
|
6227
|
+
backgroundColor: effectiveHeaderBgColor,
|
|
6225
6228
|
zIndex: 25
|
|
6226
6229
|
}
|
|
6227
6230
|
}
|
|
@@ -6364,7 +6367,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6364
6367
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6365
6368
|
import_remotion10.Img,
|
|
6366
6369
|
{
|
|
6367
|
-
src: (0, import_remotion10.staticFile)("imsg-footer-plus.png"),
|
|
6370
|
+
src: (0, import_remotion10.staticFile)(lightMode ? "imsg-light-footer-plus.png" : "imsg-footer-plus.png"),
|
|
6368
6371
|
style: {
|
|
6369
6372
|
position: "absolute",
|
|
6370
6373
|
top: plusButtonTop,
|
|
@@ -6375,39 +6378,33 @@ var IMessageDmComposition = (props) => {
|
|
|
6375
6378
|
}
|
|
6376
6379
|
}
|
|
6377
6380
|
),
|
|
6378
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6379
|
-
|
|
6381
|
+
lightMode ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6382
|
+
import_remotion10.Img,
|
|
6380
6383
|
{
|
|
6384
|
+
src: (0, import_remotion10.staticFile)("imsg-light-main-footer.png"),
|
|
6381
6385
|
style: {
|
|
6382
6386
|
position: "absolute",
|
|
6383
6387
|
top: footerTop,
|
|
6384
6388
|
left: footerLeft,
|
|
6385
6389
|
width: footerRight - footerLeft,
|
|
6386
6390
|
height: footerBottom - footerTop,
|
|
6387
|
-
backgroundColor: footerBgColor,
|
|
6388
|
-
borderRadius: footerBorderRadius,
|
|
6389
|
-
border: `${footerBorderWidth}px solid ${footerBorderColor}`,
|
|
6390
6391
|
zIndex: 20
|
|
6391
6392
|
}
|
|
6392
6393
|
}
|
|
6393
|
-
),
|
|
6394
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6394
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6395
6395
|
"div",
|
|
6396
6396
|
{
|
|
6397
6397
|
style: {
|
|
6398
6398
|
position: "absolute",
|
|
6399
|
-
top:
|
|
6400
|
-
left:
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
zIndex: 21
|
|
6409
|
-
},
|
|
6410
|
-
children: messageText
|
|
6399
|
+
top: footerTop,
|
|
6400
|
+
left: footerLeft,
|
|
6401
|
+
width: footerRight - footerLeft,
|
|
6402
|
+
height: footerBottom - footerTop,
|
|
6403
|
+
backgroundColor: footerBgColor,
|
|
6404
|
+
borderRadius: footerBorderRadius,
|
|
6405
|
+
border: `${footerBorderWidth}px solid ${footerBorderColor}`,
|
|
6406
|
+
zIndex: 20
|
|
6407
|
+
}
|
|
6411
6408
|
}
|
|
6412
6409
|
),
|
|
6413
6410
|
conversionResult.tails.map((tail) => {
|
|
@@ -6441,7 +6438,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6441
6438
|
const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
|
|
6442
6439
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
6443
6440
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
6444
|
-
const fillColor = tail.isUser ? senderBubbleColor :
|
|
6441
|
+
const fillColor = tail.isUser ? senderBubbleColor : effectiveRecipientBubbleColor;
|
|
6445
6442
|
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
6446
6443
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6447
6444
|
"svg",
|
|
@@ -7234,6 +7231,8 @@ var iMessageDmPropsSchema = import_zod.z.object({
|
|
|
7234
7231
|
referenceImageUrl: import_zod.z.string().optional(),
|
|
7235
7232
|
showReferenceImage: import_zod.z.boolean().optional(),
|
|
7236
7233
|
referenceOpacity: import_zod.z.number().optional(),
|
|
7234
|
+
// Light mode
|
|
7235
|
+
lightMode: import_zod.z.boolean().optional(),
|
|
7237
7236
|
// iMessage header
|
|
7238
7237
|
headerTop: import_zod.z.number().optional(),
|
|
7239
7238
|
headerBottom: import_zod.z.number().optional(),
|
package/dist/index.mjs
CHANGED
|
@@ -4819,6 +4819,7 @@ var defaultIMessageDmProps = {
|
|
|
4819
4819
|
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/06c3ed1c-eefb-4a60-b0c4-5fb872811ba0/IMG_3189-hUoucNOmBoT8fihIL7ybuEXwoRrngz.png",
|
|
4820
4820
|
showReferenceImage: true,
|
|
4821
4821
|
referenceOpacity: 50,
|
|
4822
|
+
lightMode: false,
|
|
4822
4823
|
width: 1206,
|
|
4823
4824
|
height: 2622,
|
|
4824
4825
|
durationInFrames: 90,
|
|
@@ -4986,34 +4987,34 @@ var defaultIMessageDmProps = {
|
|
|
4986
4987
|
// Recipient tail anchor points (offsets from message left & bottom)
|
|
4987
4988
|
recipientTailSideY: -53,
|
|
4988
4989
|
// Y where tail meets bubble (top of straight line)
|
|
4989
|
-
recipientTailCurveStartY: -
|
|
4990
|
+
recipientTailCurveStartY: -28,
|
|
4990
4991
|
// Y where straight line ends and top curve begins
|
|
4991
|
-
recipientTailTipX: -
|
|
4992
|
+
recipientTailTipX: -16,
|
|
4992
4993
|
recipientTailTipY: -1,
|
|
4993
4994
|
recipientTailBottomX: 19,
|
|
4994
4995
|
// X where bottom curve ends (connects to bubble)
|
|
4995
4996
|
recipientTailBottomY: -12,
|
|
4996
4997
|
// Y where bottom curve ends (connects to bubble)
|
|
4997
4998
|
// Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
4998
|
-
recipientTailTopBend: -0.
|
|
4999
|
+
recipientTailTopBend: -0.32,
|
|
4999
5000
|
// Top curve bends inward
|
|
5000
|
-
recipientTailBottomBend: 0.
|
|
5001
|
+
recipientTailBottomBend: 0.3,
|
|
5001
5002
|
// Bottom curve bends outward
|
|
5002
5003
|
// Sender tail anchor points (offsets from message right & bottom)
|
|
5003
5004
|
senderTailSideY: -53,
|
|
5004
5005
|
// Y where tail meets bubble (top of straight line)
|
|
5005
|
-
senderTailCurveStartY: -
|
|
5006
|
+
senderTailCurveStartY: -28,
|
|
5006
5007
|
// Y where straight line ends and top curve begins
|
|
5007
|
-
senderTailTipX:
|
|
5008
|
+
senderTailTipX: 16,
|
|
5008
5009
|
senderTailTipY: -1,
|
|
5009
5010
|
senderTailBottomX: -19,
|
|
5010
5011
|
// X where bottom curve ends (connects to bubble)
|
|
5011
5012
|
senderTailBottomY: -12,
|
|
5012
5013
|
// Y where bottom curve ends (connects to bubble)
|
|
5013
5014
|
// Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5014
|
-
senderTailTopBend: -0.
|
|
5015
|
+
senderTailTopBend: -0.32,
|
|
5015
5016
|
// Top curve bends inward
|
|
5016
|
-
senderTailBottomBend: 0.
|
|
5017
|
+
senderTailBottomBend: 0.3,
|
|
5017
5018
|
// Bottom curve bends outward
|
|
5018
5019
|
// Read receipt (under last sender message)
|
|
5019
5020
|
showReadReceipt: true,
|
|
@@ -5070,7 +5071,11 @@ var IMessageDmComposition = (props) => {
|
|
|
5070
5071
|
if (!fontsLoaded) {
|
|
5071
5072
|
return { elements: [], imageUrls: {}, tails: [], width: mergedProps.width ?? 1206, height: mergedProps.height ?? 2622 };
|
|
5072
5073
|
}
|
|
5073
|
-
|
|
5074
|
+
const propsWithEffectiveColors = {
|
|
5075
|
+
...mergedProps,
|
|
5076
|
+
recipientBubbleColor: mergedProps.lightMode ? "#dfdfe1" : mergedProps.recipientBubbleColor ?? "#303032"
|
|
5077
|
+
};
|
|
5078
|
+
return convertPropsToElements2(propsWithEffectiveColors);
|
|
5074
5079
|
}, [mergedProps, fontsLoaded]);
|
|
5075
5080
|
const {
|
|
5076
5081
|
width = 1206,
|
|
@@ -5078,6 +5083,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5078
5083
|
backgroundColor = "#000000",
|
|
5079
5084
|
headerBackgroundColor = "#171717",
|
|
5080
5085
|
headerBottom = 424,
|
|
5086
|
+
lightMode = false,
|
|
5081
5087
|
// Profile section
|
|
5082
5088
|
profilePicUrl,
|
|
5083
5089
|
profilePicTop = 195,
|
|
@@ -5178,41 +5184,38 @@ var IMessageDmComposition = (props) => {
|
|
|
5178
5184
|
footerBorderRadius = 55,
|
|
5179
5185
|
footerBorderColor = "#3a3a3c",
|
|
5180
5186
|
footerBorderWidth = 2,
|
|
5181
|
-
// Message text
|
|
5182
|
-
messageTextTop = 2412,
|
|
5183
|
-
messageTextBottom = 2468,
|
|
5184
|
-
messageTextLeft = 220,
|
|
5185
|
-
messageTextFontSize = 48,
|
|
5186
|
-
messageTextColor = "#8e8e93",
|
|
5187
|
-
messageText = "iMessage",
|
|
5188
5187
|
// Bubble colors
|
|
5189
5188
|
senderBubbleColor = "#1a42d5",
|
|
5190
5189
|
recipientBubbleColor = "#303032",
|
|
5191
5190
|
// Tail props - recipient (offsets from message left & bottom)
|
|
5192
5191
|
recipientTailSideY = -53,
|
|
5193
|
-
recipientTailCurveStartY = -
|
|
5194
|
-
recipientTailTipX = -
|
|
5192
|
+
recipientTailCurveStartY = -28,
|
|
5193
|
+
recipientTailTipX = -16,
|
|
5195
5194
|
recipientTailTipY = -1,
|
|
5196
5195
|
recipientTailBottomX = 19,
|
|
5197
5196
|
recipientTailBottomY = -12,
|
|
5198
|
-
recipientTailTopBend = -0.
|
|
5199
|
-
recipientTailBottomBend = 0.
|
|
5197
|
+
recipientTailTopBend = -0.32,
|
|
5198
|
+
recipientTailBottomBend = 0.3,
|
|
5200
5199
|
// Tail props - sender (offsets from message right & bottom)
|
|
5201
5200
|
senderTailSideY = -53,
|
|
5202
|
-
senderTailCurveStartY = -
|
|
5203
|
-
senderTailTipX =
|
|
5201
|
+
senderTailCurveStartY = -28,
|
|
5202
|
+
senderTailTipX = 16,
|
|
5204
5203
|
senderTailTipY = -1,
|
|
5205
5204
|
senderTailBottomX = -19,
|
|
5206
5205
|
senderTailBottomY = -12,
|
|
5207
|
-
senderTailTopBend = -0.
|
|
5208
|
-
senderTailBottomBend = 0.
|
|
5206
|
+
senderTailTopBend = -0.32,
|
|
5207
|
+
senderTailBottomBend = 0.3
|
|
5209
5208
|
} = mergedProps;
|
|
5209
|
+
const effectiveBackgroundColor = lightMode ? "#ffffff" : backgroundColor;
|
|
5210
|
+
const effectiveHeaderBgColor = lightMode ? "#f7f7f7" : headerBackgroundColor;
|
|
5211
|
+
const effectiveRecipientBubbleColor = lightMode ? "#dfdfe1" : recipientBubbleColor;
|
|
5212
|
+
const effectiveHomeIndicatorColor = lightMode ? "#000000" : homeIndicatorColor;
|
|
5210
5213
|
return /* @__PURE__ */ jsxs10(
|
|
5211
5214
|
BaseDmComposition,
|
|
5212
5215
|
{
|
|
5213
5216
|
width,
|
|
5214
5217
|
height,
|
|
5215
|
-
backgroundColor,
|
|
5218
|
+
backgroundColor: effectiveBackgroundColor,
|
|
5216
5219
|
showDebugOverlay,
|
|
5217
5220
|
referenceImageUrl,
|
|
5218
5221
|
showReferenceImage,
|
|
@@ -5256,7 +5259,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5256
5259
|
homeIndicatorBottom,
|
|
5257
5260
|
homeIndicatorLeft,
|
|
5258
5261
|
homeIndicatorRight,
|
|
5259
|
-
homeIndicatorColor,
|
|
5262
|
+
homeIndicatorColor: effectiveHomeIndicatorColor,
|
|
5260
5263
|
children: [
|
|
5261
5264
|
/* @__PURE__ */ jsx12(
|
|
5262
5265
|
"div",
|
|
@@ -5267,7 +5270,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5267
5270
|
left: 0,
|
|
5268
5271
|
width,
|
|
5269
5272
|
height: headerBottom,
|
|
5270
|
-
backgroundColor:
|
|
5273
|
+
backgroundColor: effectiveHeaderBgColor,
|
|
5271
5274
|
zIndex: 25
|
|
5272
5275
|
}
|
|
5273
5276
|
}
|
|
@@ -5410,7 +5413,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5410
5413
|
/* @__PURE__ */ jsx12(
|
|
5411
5414
|
Img5,
|
|
5412
5415
|
{
|
|
5413
|
-
src: staticFile3("imsg-footer-plus.png"),
|
|
5416
|
+
src: staticFile3(lightMode ? "imsg-light-footer-plus.png" : "imsg-footer-plus.png"),
|
|
5414
5417
|
style: {
|
|
5415
5418
|
position: "absolute",
|
|
5416
5419
|
top: plusButtonTop,
|
|
@@ -5421,39 +5424,33 @@ var IMessageDmComposition = (props) => {
|
|
|
5421
5424
|
}
|
|
5422
5425
|
}
|
|
5423
5426
|
),
|
|
5424
|
-
/* @__PURE__ */ jsx12(
|
|
5425
|
-
|
|
5427
|
+
lightMode ? /* @__PURE__ */ jsx12(
|
|
5428
|
+
Img5,
|
|
5426
5429
|
{
|
|
5430
|
+
src: staticFile3("imsg-light-main-footer.png"),
|
|
5427
5431
|
style: {
|
|
5428
5432
|
position: "absolute",
|
|
5429
5433
|
top: footerTop,
|
|
5430
5434
|
left: footerLeft,
|
|
5431
5435
|
width: footerRight - footerLeft,
|
|
5432
5436
|
height: footerBottom - footerTop,
|
|
5433
|
-
backgroundColor: footerBgColor,
|
|
5434
|
-
borderRadius: footerBorderRadius,
|
|
5435
|
-
border: `${footerBorderWidth}px solid ${footerBorderColor}`,
|
|
5436
5437
|
zIndex: 20
|
|
5437
5438
|
}
|
|
5438
5439
|
}
|
|
5439
|
-
)
|
|
5440
|
-
/* @__PURE__ */ jsx12(
|
|
5440
|
+
) : /* @__PURE__ */ jsx12(
|
|
5441
5441
|
"div",
|
|
5442
5442
|
{
|
|
5443
5443
|
style: {
|
|
5444
5444
|
position: "absolute",
|
|
5445
|
-
top:
|
|
5446
|
-
left:
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
zIndex: 21
|
|
5455
|
-
},
|
|
5456
|
-
children: messageText
|
|
5445
|
+
top: footerTop,
|
|
5446
|
+
left: footerLeft,
|
|
5447
|
+
width: footerRight - footerLeft,
|
|
5448
|
+
height: footerBottom - footerTop,
|
|
5449
|
+
backgroundColor: footerBgColor,
|
|
5450
|
+
borderRadius: footerBorderRadius,
|
|
5451
|
+
border: `${footerBorderWidth}px solid ${footerBorderColor}`,
|
|
5452
|
+
zIndex: 20
|
|
5453
|
+
}
|
|
5457
5454
|
}
|
|
5458
5455
|
),
|
|
5459
5456
|
conversionResult.tails.map((tail) => {
|
|
@@ -5487,7 +5484,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5487
5484
|
const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
|
|
5488
5485
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
5489
5486
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
5490
|
-
const fillColor = tail.isUser ? senderBubbleColor :
|
|
5487
|
+
const fillColor = tail.isUser ? senderBubbleColor : effectiveRecipientBubbleColor;
|
|
5491
5488
|
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
5492
5489
|
return /* @__PURE__ */ jsx12(
|
|
5493
5490
|
"svg",
|
|
@@ -5997,6 +5994,8 @@ var iMessageDmPropsSchema = z.object({
|
|
|
5997
5994
|
referenceImageUrl: z.string().optional(),
|
|
5998
5995
|
showReferenceImage: z.boolean().optional(),
|
|
5999
5996
|
referenceOpacity: z.number().optional(),
|
|
5997
|
+
// Light mode
|
|
5998
|
+
lightMode: z.boolean().optional(),
|
|
6000
5999
|
// iMessage header
|
|
6001
6000
|
headerTop: z.number().optional(),
|
|
6002
6001
|
headerBottom: z.number().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.187",
|
|
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",
|