ugcinc-render 1.8.102 → 1.8.103
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 +21 -9
- package/dist/index.mjs +21 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3544,7 +3544,7 @@ var DEFAULTS2 = {
|
|
|
3544
3544
|
bubbleRadiusGrouped: 12,
|
|
3545
3545
|
messageGapInGroup: 6,
|
|
3546
3546
|
messageGapSameUser: 35,
|
|
3547
|
-
messageGapDifferentUser:
|
|
3547
|
+
messageGapDifferentUser: 37,
|
|
3548
3548
|
recipientBubbleLeft: 168,
|
|
3549
3549
|
senderBubbleRight: 1182,
|
|
3550
3550
|
bubbleMaxWidth: 866,
|
|
@@ -3578,10 +3578,22 @@ function getInterpolatedSenderColor(bubbleCenter, messageAreaTop, messageAreaBot
|
|
|
3578
3578
|
}
|
|
3579
3579
|
var FONT_FAMILY = '"SF Pro", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif';
|
|
3580
3580
|
function measureTextWidth(text, fontSize) {
|
|
3581
|
-
const
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3581
|
+
const measureSpan = document.createElement("span");
|
|
3582
|
+
measureSpan.style.cssText = `
|
|
3583
|
+
position: absolute;
|
|
3584
|
+
visibility: hidden;
|
|
3585
|
+
pointer-events: none;
|
|
3586
|
+
font-family: ${FONT_FAMILY};
|
|
3587
|
+
font-size: ${fontSize}px;
|
|
3588
|
+
font-weight: 400;
|
|
3589
|
+
letter-spacing: 0px;
|
|
3590
|
+
white-space: nowrap;
|
|
3591
|
+
`;
|
|
3592
|
+
document.body.appendChild(measureSpan);
|
|
3593
|
+
measureSpan.textContent = text;
|
|
3594
|
+
const width = measureSpan.getBoundingClientRect().width;
|
|
3595
|
+
document.body.removeChild(measureSpan);
|
|
3596
|
+
return width;
|
|
3585
3597
|
}
|
|
3586
3598
|
function IgMessages({
|
|
3587
3599
|
messages = [],
|
|
@@ -3808,7 +3820,7 @@ function IgMessages({
|
|
|
3808
3820
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3809
3821
|
var defaultInstagramDmProps = {
|
|
3810
3822
|
showDebugOverlay: true,
|
|
3811
|
-
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/
|
|
3823
|
+
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png",
|
|
3812
3824
|
showReferenceImage: true,
|
|
3813
3825
|
referenceOpacity: 50,
|
|
3814
3826
|
width: 1206,
|
|
@@ -3903,7 +3915,7 @@ var defaultInstagramDmProps = {
|
|
|
3903
3915
|
bubbleRadiusGrouped: 12,
|
|
3904
3916
|
messageGapInGroup: DEFAULTS2.messageGapInGroup,
|
|
3905
3917
|
messageGapSameUser: DEFAULTS2.messageGapSameUser,
|
|
3906
|
-
messageGapDifferentUser:
|
|
3918
|
+
messageGapDifferentUser: 37,
|
|
3907
3919
|
recipientBubbleLeft: DEFAULTS2.recipientBubbleLeft,
|
|
3908
3920
|
senderBubbleRight: DEFAULTS2.senderBubbleRight,
|
|
3909
3921
|
bubbleMaxWidth: DEFAULTS2.bubbleMaxWidth,
|
|
@@ -5189,7 +5201,7 @@ var instagramDmSchema = import_zod.z.object({
|
|
|
5189
5201
|
// Debug overlay
|
|
5190
5202
|
showDebugOverlay: import_zod.z.boolean().optional().default(true).describe("Show debug overlay with mouse coordinates"),
|
|
5191
5203
|
// Reference overlay
|
|
5192
|
-
referenceImageUrl: import_zod.z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/
|
|
5204
|
+
referenceImageUrl: import_zod.z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png").describe("Reference screenshot URL"),
|
|
5193
5205
|
showReferenceImage: import_zod.z.boolean().optional().default(true).describe("Show/hide reference image"),
|
|
5194
5206
|
referenceOpacity: import_zod.z.number().min(0).max(100).optional().default(50).describe("Reference overlay opacity (0-100)"),
|
|
5195
5207
|
// Canvas
|
|
@@ -5281,7 +5293,7 @@ var instagramDmSchema = import_zod.z.object({
|
|
|
5281
5293
|
// Message spacing
|
|
5282
5294
|
messageGapInGroup: import_zod.z.number().optional().default(6).describe("Gap between messages in group"),
|
|
5283
5295
|
messageGapSameUser: import_zod.z.number().optional().default(35).describe("Gap between messages from same user"),
|
|
5284
|
-
messageGapDifferentUser: import_zod.z.number().optional().default(
|
|
5296
|
+
messageGapDifferentUser: import_zod.z.number().optional().default(37).describe("Gap between messages from different users"),
|
|
5285
5297
|
// Bubble positioning
|
|
5286
5298
|
recipientBubbleLeft: import_zod.z.number().optional().default(168).describe("Recipient bubble left X"),
|
|
5287
5299
|
senderBubbleRight: import_zod.z.number().optional().default(1182).describe("Sender bubble right X"),
|
package/dist/index.mjs
CHANGED
|
@@ -2613,7 +2613,7 @@ var DEFAULTS2 = {
|
|
|
2613
2613
|
bubbleRadiusGrouped: 12,
|
|
2614
2614
|
messageGapInGroup: 6,
|
|
2615
2615
|
messageGapSameUser: 35,
|
|
2616
|
-
messageGapDifferentUser:
|
|
2616
|
+
messageGapDifferentUser: 37,
|
|
2617
2617
|
recipientBubbleLeft: 168,
|
|
2618
2618
|
senderBubbleRight: 1182,
|
|
2619
2619
|
bubbleMaxWidth: 866,
|
|
@@ -2647,10 +2647,22 @@ function getInterpolatedSenderColor(bubbleCenter, messageAreaTop, messageAreaBot
|
|
|
2647
2647
|
}
|
|
2648
2648
|
var FONT_FAMILY = '"SF Pro", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif';
|
|
2649
2649
|
function measureTextWidth(text, fontSize) {
|
|
2650
|
-
const
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2650
|
+
const measureSpan = document.createElement("span");
|
|
2651
|
+
measureSpan.style.cssText = `
|
|
2652
|
+
position: absolute;
|
|
2653
|
+
visibility: hidden;
|
|
2654
|
+
pointer-events: none;
|
|
2655
|
+
font-family: ${FONT_FAMILY};
|
|
2656
|
+
font-size: ${fontSize}px;
|
|
2657
|
+
font-weight: 400;
|
|
2658
|
+
letter-spacing: 0px;
|
|
2659
|
+
white-space: nowrap;
|
|
2660
|
+
`;
|
|
2661
|
+
document.body.appendChild(measureSpan);
|
|
2662
|
+
measureSpan.textContent = text;
|
|
2663
|
+
const width = measureSpan.getBoundingClientRect().width;
|
|
2664
|
+
document.body.removeChild(measureSpan);
|
|
2665
|
+
return width;
|
|
2654
2666
|
}
|
|
2655
2667
|
function IgMessages({
|
|
2656
2668
|
messages = [],
|
|
@@ -2877,7 +2889,7 @@ function IgMessages({
|
|
|
2877
2889
|
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2878
2890
|
var defaultInstagramDmProps = {
|
|
2879
2891
|
showDebugOverlay: true,
|
|
2880
|
-
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/
|
|
2892
|
+
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png",
|
|
2881
2893
|
showReferenceImage: true,
|
|
2882
2894
|
referenceOpacity: 50,
|
|
2883
2895
|
width: 1206,
|
|
@@ -2972,7 +2984,7 @@ var defaultInstagramDmProps = {
|
|
|
2972
2984
|
bubbleRadiusGrouped: 12,
|
|
2973
2985
|
messageGapInGroup: DEFAULTS2.messageGapInGroup,
|
|
2974
2986
|
messageGapSameUser: DEFAULTS2.messageGapSameUser,
|
|
2975
|
-
messageGapDifferentUser:
|
|
2987
|
+
messageGapDifferentUser: 37,
|
|
2976
2988
|
recipientBubbleLeft: DEFAULTS2.recipientBubbleLeft,
|
|
2977
2989
|
senderBubbleRight: DEFAULTS2.senderBubbleRight,
|
|
2978
2990
|
bubbleMaxWidth: DEFAULTS2.bubbleMaxWidth,
|
|
@@ -3975,7 +3987,7 @@ var instagramDmSchema = z.object({
|
|
|
3975
3987
|
// Debug overlay
|
|
3976
3988
|
showDebugOverlay: z.boolean().optional().default(true).describe("Show debug overlay with mouse coordinates"),
|
|
3977
3989
|
// Reference overlay
|
|
3978
|
-
referenceImageUrl: z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/
|
|
3990
|
+
referenceImageUrl: z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png").describe("Reference screenshot URL"),
|
|
3979
3991
|
showReferenceImage: z.boolean().optional().default(true).describe("Show/hide reference image"),
|
|
3980
3992
|
referenceOpacity: z.number().min(0).max(100).optional().default(50).describe("Reference overlay opacity (0-100)"),
|
|
3981
3993
|
// Canvas
|
|
@@ -4067,7 +4079,7 @@ var instagramDmSchema = z.object({
|
|
|
4067
4079
|
// Message spacing
|
|
4068
4080
|
messageGapInGroup: z.number().optional().default(6).describe("Gap between messages in group"),
|
|
4069
4081
|
messageGapSameUser: z.number().optional().default(35).describe("Gap between messages from same user"),
|
|
4070
|
-
messageGapDifferentUser: z.number().optional().default(
|
|
4082
|
+
messageGapDifferentUser: z.number().optional().default(37).describe("Gap between messages from different users"),
|
|
4071
4083
|
// Bubble positioning
|
|
4072
4084
|
recipientBubbleLeft: z.number().optional().default(168).describe("Recipient bubble left X"),
|
|
4073
4085
|
senderBubbleRight: z.number().optional().default(1182).describe("Sender bubble right X"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.103",
|
|
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",
|