ugcinc-render 1.8.183 → 1.8.184

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 CHANGED
@@ -1140,18 +1140,20 @@ interface IMessageDmCompositionProps {
1140
1140
  recipientTailCurveStartY?: number;
1141
1141
  recipientTailTipX?: number;
1142
1142
  recipientTailTipY?: number;
1143
+ recipientTailBottomFlatEndX?: number;
1144
+ recipientTailBottomFlatEndY?: number;
1143
1145
  recipientTailBottomX?: number;
1144
1146
  recipientTailBottomY?: number;
1145
- recipientTailBottomEndX?: number;
1146
1147
  recipientTailTopBend?: number;
1147
1148
  recipientTailBottomBend?: number;
1148
1149
  senderTailSideY?: number;
1149
1150
  senderTailCurveStartY?: number;
1150
1151
  senderTailTipX?: number;
1151
1152
  senderTailTipY?: number;
1153
+ senderTailBottomFlatEndX?: number;
1154
+ senderTailBottomFlatEndY?: number;
1152
1155
  senderTailBottomX?: number;
1153
1156
  senderTailBottomY?: number;
1154
- senderTailBottomEndX?: number;
1155
1157
  senderTailTopBend?: number;
1156
1158
  senderTailBottomBend?: number;
1157
1159
  showReadReceipt?: boolean;
package/dist/index.d.ts CHANGED
@@ -1140,18 +1140,20 @@ interface IMessageDmCompositionProps {
1140
1140
  recipientTailCurveStartY?: number;
1141
1141
  recipientTailTipX?: number;
1142
1142
  recipientTailTipY?: number;
1143
+ recipientTailBottomFlatEndX?: number;
1144
+ recipientTailBottomFlatEndY?: number;
1143
1145
  recipientTailBottomX?: number;
1144
1146
  recipientTailBottomY?: number;
1145
- recipientTailBottomEndX?: number;
1146
1147
  recipientTailTopBend?: number;
1147
1148
  recipientTailBottomBend?: number;
1148
1149
  senderTailSideY?: number;
1149
1150
  senderTailCurveStartY?: number;
1150
1151
  senderTailTipX?: number;
1151
1152
  senderTailTipY?: number;
1153
+ senderTailBottomFlatEndX?: number;
1154
+ senderTailBottomFlatEndY?: number;
1152
1155
  senderTailBottomX?: number;
1153
1156
  senderTailBottomY?: number;
1154
- senderTailBottomEndX?: number;
1155
1157
  senderTailTopBend?: number;
1156
1158
  senderTailBottomBend?: number;
1157
1159
  showReadReceipt?: boolean;
package/dist/index.js CHANGED
@@ -5941,15 +5941,17 @@ var defaultIMessageDmProps = {
5941
5941
  recipientTailSideY: -53,
5942
5942
  // Y where tail meets bubble (top of straight line)
5943
5943
  recipientTailCurveStartY: -33,
5944
- // Y where straight line ends and curve begins
5944
+ // Y where straight line ends and top curve begins
5945
5945
  recipientTailTipX: -17,
5946
5946
  recipientTailTipY: -1,
5947
- recipientTailBottomX: -19,
5948
- // X where bottom curve ends
5947
+ recipientTailBottomFlatEndX: -10,
5948
+ // X where flat after tip ends and bottom curve begins
5949
+ recipientTailBottomFlatEndY: -1,
5950
+ // Y where flat after tip ends and bottom curve begins
5951
+ recipientTailBottomX: 19,
5952
+ // X where bottom curve ends (connects to bubble)
5949
5953
  recipientTailBottomY: -12,
5950
- // Y where bottom curve ends
5951
- recipientTailBottomEndX: 0,
5952
- // X where flat bottom ends (at bubble edge)
5954
+ // Y where bottom curve ends (connects to bubble)
5953
5955
  // Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
5954
5956
  recipientTailTopBend: -0.3,
5955
5957
  // Top curve bends inward
@@ -5959,15 +5961,17 @@ var defaultIMessageDmProps = {
5959
5961
  senderTailSideY: -53,
5960
5962
  // Y where tail meets bubble (top of straight line)
5961
5963
  senderTailCurveStartY: -33,
5962
- // Y where straight line ends and curve begins
5964
+ // Y where straight line ends and top curve begins
5963
5965
  senderTailTipX: 17,
5964
5966
  senderTailTipY: -1,
5965
- senderTailBottomX: 19,
5966
- // X where bottom curve ends
5967
+ senderTailBottomFlatEndX: 10,
5968
+ // X where flat after tip ends and bottom curve begins
5969
+ senderTailBottomFlatEndY: -1,
5970
+ // Y where flat after tip ends and bottom curve begins
5971
+ senderTailBottomX: -19,
5972
+ // X where bottom curve ends (connects to bubble)
5967
5973
  senderTailBottomY: -12,
5968
- // Y where bottom curve ends
5969
- senderTailBottomEndX: 0,
5970
- // X where flat bottom ends (at bubble edge)
5974
+ // Y where bottom curve ends (connects to bubble)
5971
5975
  // Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
5972
5976
  senderTailTopBend: -0.3,
5973
5977
  // Top curve bends inward
@@ -6151,9 +6155,10 @@ var IMessageDmComposition = (props) => {
6151
6155
  recipientTailCurveStartY = -33,
6152
6156
  recipientTailTipX = -17,
6153
6157
  recipientTailTipY = -1,
6154
- recipientTailBottomX = -19,
6158
+ recipientTailBottomFlatEndX = -10,
6159
+ recipientTailBottomFlatEndY = -1,
6160
+ recipientTailBottomX = 19,
6155
6161
  recipientTailBottomY = -12,
6156
- recipientTailBottomEndX = 0,
6157
6162
  recipientTailTopBend = -0.3,
6158
6163
  recipientTailBottomBend = 0.5,
6159
6164
  // Tail props - sender (offsets from message right & bottom)
@@ -6161,9 +6166,10 @@ var IMessageDmComposition = (props) => {
6161
6166
  senderTailCurveStartY = -33,
6162
6167
  senderTailTipX = 17,
6163
6168
  senderTailTipY = -1,
6164
- senderTailBottomX = 19,
6169
+ senderTailBottomFlatEndX = 10,
6170
+ senderTailBottomFlatEndY = -1,
6171
+ senderTailBottomX = -19,
6165
6172
  senderTailBottomY = -12,
6166
- senderTailBottomEndX = 0,
6167
6173
  senderTailTopBend = -0.3,
6168
6174
  senderTailBottomBend = 0.5
6169
6175
  } = mergedProps;
@@ -6423,9 +6429,10 @@ var IMessageDmComposition = (props) => {
6423
6429
  const curveStartY = refY + (tail.isUser ? senderTailCurveStartY : recipientTailCurveStartY);
6424
6430
  const tipX = refX + (tail.isUser ? senderTailTipX : recipientTailTipX);
6425
6431
  const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
6432
+ const bottomFlatEndX = refX + (tail.isUser ? senderTailBottomFlatEndX : recipientTailBottomFlatEndX);
6433
+ const bottomFlatEndY = refY + (tail.isUser ? senderTailBottomFlatEndY : recipientTailBottomFlatEndY);
6426
6434
  const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
6427
6435
  const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
6428
- const bottomEndX = refX + (tail.isUser ? senderTailBottomEndX : recipientTailBottomEndX);
6429
6436
  const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
6430
6437
  const bottomBend = tail.isUser ? senderTailBottomBend : recipientTailBottomBend;
6431
6438
  const sideX = refX;
@@ -6439,17 +6446,17 @@ var IMessageDmComposition = (props) => {
6439
6446
  const topPerpY = tail.isUser ? -topDx / topLen : topDx / topLen;
6440
6447
  const topCurveX = topMidX + topPerpX * topBend * topLen;
6441
6448
  const topCurveY = topMidY + topPerpY * topBend * topLen;
6442
- const bottomMidX = (tipX + bottomX) / 2;
6443
- const bottomMidY = (tipY + bottomY) / 2;
6444
- const bottomDx = bottomX - tipX;
6445
- const bottomDy = bottomY - tipY;
6449
+ const bottomMidX = (bottomFlatEndX + bottomX) / 2;
6450
+ const bottomMidY = (bottomFlatEndY + bottomY) / 2;
6451
+ const bottomDx = bottomX - bottomFlatEndX;
6452
+ const bottomDy = bottomY - bottomFlatEndY;
6446
6453
  const bottomLen = Math.sqrt(bottomDx * bottomDx + bottomDy * bottomDy);
6447
6454
  const bottomPerpX = tail.isUser ? bottomDy / bottomLen : -bottomDy / bottomLen;
6448
6455
  const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
6449
6456
  const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
6450
6457
  const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
6451
6458
  const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
6452
- const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} L ${bottomEndX} ${bottomY} Z`;
6459
+ const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} L ${bottomFlatEndX} ${bottomFlatEndY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
6453
6460
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
6454
6461
  "svg",
6455
6462
  {
@@ -7407,9 +7414,10 @@ var iMessageDmPropsSchema = import_zod.z.object({
7407
7414
  recipientTailCurveStartY: import_zod.z.number().optional(),
7408
7415
  recipientTailTipX: import_zod.z.number().optional(),
7409
7416
  recipientTailTipY: import_zod.z.number().optional(),
7417
+ recipientTailBottomFlatEndX: import_zod.z.number().optional(),
7418
+ recipientTailBottomFlatEndY: import_zod.z.number().optional(),
7410
7419
  recipientTailBottomX: import_zod.z.number().optional(),
7411
7420
  recipientTailBottomY: import_zod.z.number().optional(),
7412
- recipientTailBottomEndX: import_zod.z.number().optional(),
7413
7421
  // Recipient tail curve bend
7414
7422
  recipientTailTopBend: import_zod.z.number().optional(),
7415
7423
  recipientTailBottomBend: import_zod.z.number().optional(),
@@ -7418,9 +7426,10 @@ var iMessageDmPropsSchema = import_zod.z.object({
7418
7426
  senderTailCurveStartY: import_zod.z.number().optional(),
7419
7427
  senderTailTipX: import_zod.z.number().optional(),
7420
7428
  senderTailTipY: import_zod.z.number().optional(),
7429
+ senderTailBottomFlatEndX: import_zod.z.number().optional(),
7430
+ senderTailBottomFlatEndY: import_zod.z.number().optional(),
7421
7431
  senderTailBottomX: import_zod.z.number().optional(),
7422
7432
  senderTailBottomY: import_zod.z.number().optional(),
7423
- senderTailBottomEndX: import_zod.z.number().optional(),
7424
7433
  // Sender tail curve bend
7425
7434
  senderTailTopBend: import_zod.z.number().optional(),
7426
7435
  senderTailBottomBend: import_zod.z.number().optional(),
package/dist/index.mjs CHANGED
@@ -4987,15 +4987,17 @@ var defaultIMessageDmProps = {
4987
4987
  recipientTailSideY: -53,
4988
4988
  // Y where tail meets bubble (top of straight line)
4989
4989
  recipientTailCurveStartY: -33,
4990
- // Y where straight line ends and curve begins
4990
+ // Y where straight line ends and top curve begins
4991
4991
  recipientTailTipX: -17,
4992
4992
  recipientTailTipY: -1,
4993
- recipientTailBottomX: -19,
4994
- // X where bottom curve ends
4993
+ recipientTailBottomFlatEndX: -10,
4994
+ // X where flat after tip ends and bottom curve begins
4995
+ recipientTailBottomFlatEndY: -1,
4996
+ // Y where flat after tip ends and bottom curve begins
4997
+ recipientTailBottomX: 19,
4998
+ // X where bottom curve ends (connects to bubble)
4995
4999
  recipientTailBottomY: -12,
4996
- // Y where bottom curve ends
4997
- recipientTailBottomEndX: 0,
4998
- // X where flat bottom ends (at bubble edge)
5000
+ // Y where bottom curve ends (connects to bubble)
4999
5001
  // Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
5000
5002
  recipientTailTopBend: -0.3,
5001
5003
  // Top curve bends inward
@@ -5005,15 +5007,17 @@ var defaultIMessageDmProps = {
5005
5007
  senderTailSideY: -53,
5006
5008
  // Y where tail meets bubble (top of straight line)
5007
5009
  senderTailCurveStartY: -33,
5008
- // Y where straight line ends and curve begins
5010
+ // Y where straight line ends and top curve begins
5009
5011
  senderTailTipX: 17,
5010
5012
  senderTailTipY: -1,
5011
- senderTailBottomX: 19,
5012
- // X where bottom curve ends
5013
+ senderTailBottomFlatEndX: 10,
5014
+ // X where flat after tip ends and bottom curve begins
5015
+ senderTailBottomFlatEndY: -1,
5016
+ // Y where flat after tip ends and bottom curve begins
5017
+ senderTailBottomX: -19,
5018
+ // X where bottom curve ends (connects to bubble)
5013
5019
  senderTailBottomY: -12,
5014
- // Y where bottom curve ends
5015
- senderTailBottomEndX: 0,
5016
- // X where flat bottom ends (at bubble edge)
5020
+ // Y where bottom curve ends (connects to bubble)
5017
5021
  // Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
5018
5022
  senderTailTopBend: -0.3,
5019
5023
  // Top curve bends inward
@@ -5197,9 +5201,10 @@ var IMessageDmComposition = (props) => {
5197
5201
  recipientTailCurveStartY = -33,
5198
5202
  recipientTailTipX = -17,
5199
5203
  recipientTailTipY = -1,
5200
- recipientTailBottomX = -19,
5204
+ recipientTailBottomFlatEndX = -10,
5205
+ recipientTailBottomFlatEndY = -1,
5206
+ recipientTailBottomX = 19,
5201
5207
  recipientTailBottomY = -12,
5202
- recipientTailBottomEndX = 0,
5203
5208
  recipientTailTopBend = -0.3,
5204
5209
  recipientTailBottomBend = 0.5,
5205
5210
  // Tail props - sender (offsets from message right & bottom)
@@ -5207,9 +5212,10 @@ var IMessageDmComposition = (props) => {
5207
5212
  senderTailCurveStartY = -33,
5208
5213
  senderTailTipX = 17,
5209
5214
  senderTailTipY = -1,
5210
- senderTailBottomX = 19,
5215
+ senderTailBottomFlatEndX = 10,
5216
+ senderTailBottomFlatEndY = -1,
5217
+ senderTailBottomX = -19,
5211
5218
  senderTailBottomY = -12,
5212
- senderTailBottomEndX = 0,
5213
5219
  senderTailTopBend = -0.3,
5214
5220
  senderTailBottomBend = 0.5
5215
5221
  } = mergedProps;
@@ -5469,9 +5475,10 @@ var IMessageDmComposition = (props) => {
5469
5475
  const curveStartY = refY + (tail.isUser ? senderTailCurveStartY : recipientTailCurveStartY);
5470
5476
  const tipX = refX + (tail.isUser ? senderTailTipX : recipientTailTipX);
5471
5477
  const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
5478
+ const bottomFlatEndX = refX + (tail.isUser ? senderTailBottomFlatEndX : recipientTailBottomFlatEndX);
5479
+ const bottomFlatEndY = refY + (tail.isUser ? senderTailBottomFlatEndY : recipientTailBottomFlatEndY);
5472
5480
  const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
5473
5481
  const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
5474
- const bottomEndX = refX + (tail.isUser ? senderTailBottomEndX : recipientTailBottomEndX);
5475
5482
  const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
5476
5483
  const bottomBend = tail.isUser ? senderTailBottomBend : recipientTailBottomBend;
5477
5484
  const sideX = refX;
@@ -5485,17 +5492,17 @@ var IMessageDmComposition = (props) => {
5485
5492
  const topPerpY = tail.isUser ? -topDx / topLen : topDx / topLen;
5486
5493
  const topCurveX = topMidX + topPerpX * topBend * topLen;
5487
5494
  const topCurveY = topMidY + topPerpY * topBend * topLen;
5488
- const bottomMidX = (tipX + bottomX) / 2;
5489
- const bottomMidY = (tipY + bottomY) / 2;
5490
- const bottomDx = bottomX - tipX;
5491
- const bottomDy = bottomY - tipY;
5495
+ const bottomMidX = (bottomFlatEndX + bottomX) / 2;
5496
+ const bottomMidY = (bottomFlatEndY + bottomY) / 2;
5497
+ const bottomDx = bottomX - bottomFlatEndX;
5498
+ const bottomDy = bottomY - bottomFlatEndY;
5492
5499
  const bottomLen = Math.sqrt(bottomDx * bottomDx + bottomDy * bottomDy);
5493
5500
  const bottomPerpX = tail.isUser ? bottomDy / bottomLen : -bottomDy / bottomLen;
5494
5501
  const bottomPerpY = tail.isUser ? -bottomDx / bottomLen : bottomDx / bottomLen;
5495
5502
  const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
5496
5503
  const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
5497
5504
  const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
5498
- const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} L ${bottomEndX} ${bottomY} Z`;
5505
+ const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} L ${bottomFlatEndX} ${bottomFlatEndY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
5499
5506
  return /* @__PURE__ */ jsx12(
5500
5507
  "svg",
5501
5508
  {
@@ -6170,9 +6177,10 @@ var iMessageDmPropsSchema = z.object({
6170
6177
  recipientTailCurveStartY: z.number().optional(),
6171
6178
  recipientTailTipX: z.number().optional(),
6172
6179
  recipientTailTipY: z.number().optional(),
6180
+ recipientTailBottomFlatEndX: z.number().optional(),
6181
+ recipientTailBottomFlatEndY: z.number().optional(),
6173
6182
  recipientTailBottomX: z.number().optional(),
6174
6183
  recipientTailBottomY: z.number().optional(),
6175
- recipientTailBottomEndX: z.number().optional(),
6176
6184
  // Recipient tail curve bend
6177
6185
  recipientTailTopBend: z.number().optional(),
6178
6186
  recipientTailBottomBend: z.number().optional(),
@@ -6181,9 +6189,10 @@ var iMessageDmPropsSchema = z.object({
6181
6189
  senderTailCurveStartY: z.number().optional(),
6182
6190
  senderTailTipX: z.number().optional(),
6183
6191
  senderTailTipY: z.number().optional(),
6192
+ senderTailBottomFlatEndX: z.number().optional(),
6193
+ senderTailBottomFlatEndY: z.number().optional(),
6184
6194
  senderTailBottomX: z.number().optional(),
6185
6195
  senderTailBottomY: z.number().optional(),
6186
- senderTailBottomEndX: z.number().optional(),
6187
6196
  // Sender tail curve bend
6188
6197
  senderTailTopBend: z.number().optional(),
6189
6198
  senderTailBottomBend: z.number().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.183",
3
+ "version": "1.8.184",
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",