ugcinc-render 1.8.182 → 1.8.183
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +42 -29
- package/dist/index.mjs +42 -29
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1142,6 +1142,7 @@ interface IMessageDmCompositionProps {
|
|
|
1142
1142
|
recipientTailTipY?: number;
|
|
1143
1143
|
recipientTailBottomX?: number;
|
|
1144
1144
|
recipientTailBottomY?: number;
|
|
1145
|
+
recipientTailBottomEndX?: number;
|
|
1145
1146
|
recipientTailTopBend?: number;
|
|
1146
1147
|
recipientTailBottomBend?: number;
|
|
1147
1148
|
senderTailSideY?: number;
|
|
@@ -1150,6 +1151,7 @@ interface IMessageDmCompositionProps {
|
|
|
1150
1151
|
senderTailTipY?: number;
|
|
1151
1152
|
senderTailBottomX?: number;
|
|
1152
1153
|
senderTailBottomY?: number;
|
|
1154
|
+
senderTailBottomEndX?: number;
|
|
1153
1155
|
senderTailTopBend?: number;
|
|
1154
1156
|
senderTailBottomBend?: number;
|
|
1155
1157
|
showReadReceipt?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1142,6 +1142,7 @@ interface IMessageDmCompositionProps {
|
|
|
1142
1142
|
recipientTailTipY?: number;
|
|
1143
1143
|
recipientTailBottomX?: number;
|
|
1144
1144
|
recipientTailBottomY?: number;
|
|
1145
|
+
recipientTailBottomEndX?: number;
|
|
1145
1146
|
recipientTailTopBend?: number;
|
|
1146
1147
|
recipientTailBottomBend?: number;
|
|
1147
1148
|
senderTailSideY?: number;
|
|
@@ -1150,6 +1151,7 @@ interface IMessageDmCompositionProps {
|
|
|
1150
1151
|
senderTailTipY?: number;
|
|
1151
1152
|
senderTailBottomX?: number;
|
|
1152
1153
|
senderTailBottomY?: number;
|
|
1154
|
+
senderTailBottomEndX?: number;
|
|
1153
1155
|
senderTailTopBend?: number;
|
|
1154
1156
|
senderTailBottomBend?: number;
|
|
1155
1157
|
showReadReceipt?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -5938,30 +5938,38 @@ var defaultIMessageDmProps = {
|
|
|
5938
5938
|
// Message tails (SVG-based, on last message in group)
|
|
5939
5939
|
showMessageTails: true,
|
|
5940
5940
|
// Recipient tail anchor points (offsets from message left & bottom)
|
|
5941
|
-
recipientTailSideY: -
|
|
5941
|
+
recipientTailSideY: -53,
|
|
5942
5942
|
// Y where tail meets bubble (top of straight line)
|
|
5943
|
-
recipientTailCurveStartY: -
|
|
5943
|
+
recipientTailCurveStartY: -33,
|
|
5944
5944
|
// Y where straight line ends and curve begins
|
|
5945
|
-
recipientTailTipX: -
|
|
5946
|
-
recipientTailTipY:
|
|
5947
|
-
recipientTailBottomX:
|
|
5948
|
-
|
|
5945
|
+
recipientTailTipX: -17,
|
|
5946
|
+
recipientTailTipY: -1,
|
|
5947
|
+
recipientTailBottomX: -19,
|
|
5948
|
+
// X where bottom curve ends
|
|
5949
|
+
recipientTailBottomY: -12,
|
|
5950
|
+
// Y where bottom curve ends
|
|
5951
|
+
recipientTailBottomEndX: 0,
|
|
5952
|
+
// X where flat bottom ends (at bubble edge)
|
|
5949
5953
|
// Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5950
|
-
recipientTailTopBend: -0.
|
|
5954
|
+
recipientTailTopBend: -0.3,
|
|
5951
5955
|
// Top curve bends inward
|
|
5952
5956
|
recipientTailBottomBend: 0.5,
|
|
5953
5957
|
// Bottom curve bends outward
|
|
5954
5958
|
// Sender tail anchor points (offsets from message right & bottom)
|
|
5955
|
-
senderTailSideY: -
|
|
5959
|
+
senderTailSideY: -53,
|
|
5956
5960
|
// Y where tail meets bubble (top of straight line)
|
|
5957
|
-
senderTailCurveStartY: -
|
|
5961
|
+
senderTailCurveStartY: -33,
|
|
5958
5962
|
// Y where straight line ends and curve begins
|
|
5959
|
-
senderTailTipX:
|
|
5960
|
-
senderTailTipY: 1,
|
|
5961
|
-
senderTailBottomX:
|
|
5962
|
-
|
|
5963
|
+
senderTailTipX: 17,
|
|
5964
|
+
senderTailTipY: -1,
|
|
5965
|
+
senderTailBottomX: 19,
|
|
5966
|
+
// X where bottom curve ends
|
|
5967
|
+
senderTailBottomY: -12,
|
|
5968
|
+
// Y where bottom curve ends
|
|
5969
|
+
senderTailBottomEndX: 0,
|
|
5970
|
+
// X where flat bottom ends (at bubble edge)
|
|
5963
5971
|
// Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5964
|
-
senderTailTopBend: -0.
|
|
5972
|
+
senderTailTopBend: -0.3,
|
|
5965
5973
|
// Top curve bends inward
|
|
5966
5974
|
senderTailBottomBend: 0.5,
|
|
5967
5975
|
// Bottom curve bends outward
|
|
@@ -6139,22 +6147,24 @@ var IMessageDmComposition = (props) => {
|
|
|
6139
6147
|
senderBubbleColor = "#1a42d5",
|
|
6140
6148
|
recipientBubbleColor = "#303032",
|
|
6141
6149
|
// Tail props - recipient (offsets from message left & bottom)
|
|
6142
|
-
recipientTailSideY = -
|
|
6143
|
-
recipientTailCurveStartY = -
|
|
6144
|
-
recipientTailTipX = -
|
|
6145
|
-
recipientTailTipY =
|
|
6146
|
-
recipientTailBottomX =
|
|
6147
|
-
recipientTailBottomY = -
|
|
6148
|
-
|
|
6150
|
+
recipientTailSideY = -53,
|
|
6151
|
+
recipientTailCurveStartY = -33,
|
|
6152
|
+
recipientTailTipX = -17,
|
|
6153
|
+
recipientTailTipY = -1,
|
|
6154
|
+
recipientTailBottomX = -19,
|
|
6155
|
+
recipientTailBottomY = -12,
|
|
6156
|
+
recipientTailBottomEndX = 0,
|
|
6157
|
+
recipientTailTopBend = -0.3,
|
|
6149
6158
|
recipientTailBottomBend = 0.5,
|
|
6150
6159
|
// Tail props - sender (offsets from message right & bottom)
|
|
6151
|
-
senderTailSideY = -
|
|
6152
|
-
senderTailCurveStartY = -
|
|
6153
|
-
senderTailTipX =
|
|
6154
|
-
senderTailTipY = 1,
|
|
6155
|
-
senderTailBottomX =
|
|
6156
|
-
senderTailBottomY = -
|
|
6157
|
-
|
|
6160
|
+
senderTailSideY = -53,
|
|
6161
|
+
senderTailCurveStartY = -33,
|
|
6162
|
+
senderTailTipX = 17,
|
|
6163
|
+
senderTailTipY = -1,
|
|
6164
|
+
senderTailBottomX = 19,
|
|
6165
|
+
senderTailBottomY = -12,
|
|
6166
|
+
senderTailBottomEndX = 0,
|
|
6167
|
+
senderTailTopBend = -0.3,
|
|
6158
6168
|
senderTailBottomBend = 0.5
|
|
6159
6169
|
} = mergedProps;
|
|
6160
6170
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
@@ -6415,6 +6425,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6415
6425
|
const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
|
|
6416
6426
|
const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
|
|
6417
6427
|
const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
|
|
6428
|
+
const bottomEndX = refX + (tail.isUser ? senderTailBottomEndX : recipientTailBottomEndX);
|
|
6418
6429
|
const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
|
|
6419
6430
|
const bottomBend = tail.isUser ? senderTailBottomBend : recipientTailBottomBend;
|
|
6420
6431
|
const sideX = refX;
|
|
@@ -6438,7 +6449,7 @@ var IMessageDmComposition = (props) => {
|
|
|
6438
6449
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
6439
6450
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
6440
6451
|
const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
|
|
6441
|
-
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
6452
|
+
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} L ${bottomEndX} ${bottomY} Z`;
|
|
6442
6453
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
6443
6454
|
"svg",
|
|
6444
6455
|
{
|
|
@@ -7398,6 +7409,7 @@ var iMessageDmPropsSchema = import_zod.z.object({
|
|
|
7398
7409
|
recipientTailTipY: import_zod.z.number().optional(),
|
|
7399
7410
|
recipientTailBottomX: import_zod.z.number().optional(),
|
|
7400
7411
|
recipientTailBottomY: import_zod.z.number().optional(),
|
|
7412
|
+
recipientTailBottomEndX: import_zod.z.number().optional(),
|
|
7401
7413
|
// Recipient tail curve bend
|
|
7402
7414
|
recipientTailTopBend: import_zod.z.number().optional(),
|
|
7403
7415
|
recipientTailBottomBend: import_zod.z.number().optional(),
|
|
@@ -7408,6 +7420,7 @@ var iMessageDmPropsSchema = import_zod.z.object({
|
|
|
7408
7420
|
senderTailTipY: import_zod.z.number().optional(),
|
|
7409
7421
|
senderTailBottomX: import_zod.z.number().optional(),
|
|
7410
7422
|
senderTailBottomY: import_zod.z.number().optional(),
|
|
7423
|
+
senderTailBottomEndX: import_zod.z.number().optional(),
|
|
7411
7424
|
// Sender tail curve bend
|
|
7412
7425
|
senderTailTopBend: import_zod.z.number().optional(),
|
|
7413
7426
|
senderTailBottomBend: import_zod.z.number().optional(),
|
package/dist/index.mjs
CHANGED
|
@@ -4984,30 +4984,38 @@ var defaultIMessageDmProps = {
|
|
|
4984
4984
|
// Message tails (SVG-based, on last message in group)
|
|
4985
4985
|
showMessageTails: true,
|
|
4986
4986
|
// Recipient tail anchor points (offsets from message left & bottom)
|
|
4987
|
-
recipientTailSideY: -
|
|
4987
|
+
recipientTailSideY: -53,
|
|
4988
4988
|
// Y where tail meets bubble (top of straight line)
|
|
4989
|
-
recipientTailCurveStartY: -
|
|
4989
|
+
recipientTailCurveStartY: -33,
|
|
4990
4990
|
// Y where straight line ends and curve begins
|
|
4991
|
-
recipientTailTipX: -
|
|
4992
|
-
recipientTailTipY:
|
|
4993
|
-
recipientTailBottomX:
|
|
4994
|
-
|
|
4991
|
+
recipientTailTipX: -17,
|
|
4992
|
+
recipientTailTipY: -1,
|
|
4993
|
+
recipientTailBottomX: -19,
|
|
4994
|
+
// X where bottom curve ends
|
|
4995
|
+
recipientTailBottomY: -12,
|
|
4996
|
+
// Y where bottom curve ends
|
|
4997
|
+
recipientTailBottomEndX: 0,
|
|
4998
|
+
// X where flat bottom ends (at bubble edge)
|
|
4995
4999
|
// Recipient tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
4996
|
-
recipientTailTopBend: -0.
|
|
5000
|
+
recipientTailTopBend: -0.3,
|
|
4997
5001
|
// Top curve bends inward
|
|
4998
5002
|
recipientTailBottomBend: 0.5,
|
|
4999
5003
|
// Bottom curve bends outward
|
|
5000
5004
|
// Sender tail anchor points (offsets from message right & bottom)
|
|
5001
|
-
senderTailSideY: -
|
|
5005
|
+
senderTailSideY: -53,
|
|
5002
5006
|
// Y where tail meets bubble (top of straight line)
|
|
5003
|
-
senderTailCurveStartY: -
|
|
5007
|
+
senderTailCurveStartY: -33,
|
|
5004
5008
|
// Y where straight line ends and curve begins
|
|
5005
|
-
senderTailTipX:
|
|
5006
|
-
senderTailTipY: 1,
|
|
5007
|
-
senderTailBottomX:
|
|
5008
|
-
|
|
5009
|
+
senderTailTipX: 17,
|
|
5010
|
+
senderTailTipY: -1,
|
|
5011
|
+
senderTailBottomX: 19,
|
|
5012
|
+
// X where bottom curve ends
|
|
5013
|
+
senderTailBottomY: -12,
|
|
5014
|
+
// Y where bottom curve ends
|
|
5015
|
+
senderTailBottomEndX: 0,
|
|
5016
|
+
// X where flat bottom ends (at bubble edge)
|
|
5009
5017
|
// Sender tail curve bend (-1 to 1, negative = inward, positive = outward)
|
|
5010
|
-
senderTailTopBend: -0.
|
|
5018
|
+
senderTailTopBend: -0.3,
|
|
5011
5019
|
// Top curve bends inward
|
|
5012
5020
|
senderTailBottomBend: 0.5,
|
|
5013
5021
|
// Bottom curve bends outward
|
|
@@ -5185,22 +5193,24 @@ var IMessageDmComposition = (props) => {
|
|
|
5185
5193
|
senderBubbleColor = "#1a42d5",
|
|
5186
5194
|
recipientBubbleColor = "#303032",
|
|
5187
5195
|
// Tail props - recipient (offsets from message left & bottom)
|
|
5188
|
-
recipientTailSideY = -
|
|
5189
|
-
recipientTailCurveStartY = -
|
|
5190
|
-
recipientTailTipX = -
|
|
5191
|
-
recipientTailTipY =
|
|
5192
|
-
recipientTailBottomX =
|
|
5193
|
-
recipientTailBottomY = -
|
|
5194
|
-
|
|
5196
|
+
recipientTailSideY = -53,
|
|
5197
|
+
recipientTailCurveStartY = -33,
|
|
5198
|
+
recipientTailTipX = -17,
|
|
5199
|
+
recipientTailTipY = -1,
|
|
5200
|
+
recipientTailBottomX = -19,
|
|
5201
|
+
recipientTailBottomY = -12,
|
|
5202
|
+
recipientTailBottomEndX = 0,
|
|
5203
|
+
recipientTailTopBend = -0.3,
|
|
5195
5204
|
recipientTailBottomBend = 0.5,
|
|
5196
5205
|
// Tail props - sender (offsets from message right & bottom)
|
|
5197
|
-
senderTailSideY = -
|
|
5198
|
-
senderTailCurveStartY = -
|
|
5199
|
-
senderTailTipX =
|
|
5200
|
-
senderTailTipY = 1,
|
|
5201
|
-
senderTailBottomX =
|
|
5202
|
-
senderTailBottomY = -
|
|
5203
|
-
|
|
5206
|
+
senderTailSideY = -53,
|
|
5207
|
+
senderTailCurveStartY = -33,
|
|
5208
|
+
senderTailTipX = 17,
|
|
5209
|
+
senderTailTipY = -1,
|
|
5210
|
+
senderTailBottomX = 19,
|
|
5211
|
+
senderTailBottomY = -12,
|
|
5212
|
+
senderTailBottomEndX = 0,
|
|
5213
|
+
senderTailTopBend = -0.3,
|
|
5204
5214
|
senderTailBottomBend = 0.5
|
|
5205
5215
|
} = mergedProps;
|
|
5206
5216
|
return /* @__PURE__ */ jsxs10(
|
|
@@ -5461,6 +5471,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5461
5471
|
const tipY = refY + (tail.isUser ? senderTailTipY : recipientTailTipY);
|
|
5462
5472
|
const bottomX = refX + (tail.isUser ? senderTailBottomX : recipientTailBottomX);
|
|
5463
5473
|
const bottomY = refY + (tail.isUser ? senderTailBottomY : recipientTailBottomY);
|
|
5474
|
+
const bottomEndX = refX + (tail.isUser ? senderTailBottomEndX : recipientTailBottomEndX);
|
|
5464
5475
|
const topBend = tail.isUser ? senderTailTopBend : recipientTailTopBend;
|
|
5465
5476
|
const bottomBend = tail.isUser ? senderTailBottomBend : recipientTailBottomBend;
|
|
5466
5477
|
const sideX = refX;
|
|
@@ -5484,7 +5495,7 @@ var IMessageDmComposition = (props) => {
|
|
|
5484
5495
|
const bottomCurveX = bottomMidX + bottomPerpX * bottomBend * bottomLen;
|
|
5485
5496
|
const bottomCurveY = bottomMidY + bottomPerpY * bottomBend * bottomLen;
|
|
5486
5497
|
const fillColor = tail.isUser ? senderBubbleColor : recipientBubbleColor;
|
|
5487
|
-
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} Z`;
|
|
5498
|
+
const pathD = `M ${sideX} ${sideY} L ${curveStartX} ${curveStartY} Q ${topCurveX} ${topCurveY} ${tipX} ${tipY} Q ${bottomCurveX} ${bottomCurveY} ${bottomX} ${bottomY} L ${bottomEndX} ${bottomY} Z`;
|
|
5488
5499
|
return /* @__PURE__ */ jsx12(
|
|
5489
5500
|
"svg",
|
|
5490
5501
|
{
|
|
@@ -6161,6 +6172,7 @@ var iMessageDmPropsSchema = z.object({
|
|
|
6161
6172
|
recipientTailTipY: z.number().optional(),
|
|
6162
6173
|
recipientTailBottomX: z.number().optional(),
|
|
6163
6174
|
recipientTailBottomY: z.number().optional(),
|
|
6175
|
+
recipientTailBottomEndX: z.number().optional(),
|
|
6164
6176
|
// Recipient tail curve bend
|
|
6165
6177
|
recipientTailTopBend: z.number().optional(),
|
|
6166
6178
|
recipientTailBottomBend: z.number().optional(),
|
|
@@ -6171,6 +6183,7 @@ var iMessageDmPropsSchema = z.object({
|
|
|
6171
6183
|
senderTailTipY: z.number().optional(),
|
|
6172
6184
|
senderTailBottomX: z.number().optional(),
|
|
6173
6185
|
senderTailBottomY: z.number().optional(),
|
|
6186
|
+
senderTailBottomEndX: z.number().optional(),
|
|
6174
6187
|
// Sender tail curve bend
|
|
6175
6188
|
senderTailTopBend: z.number().optional(),
|
|
6176
6189
|
senderTailBottomBend: 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.183",
|
|
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",
|