ugcinc-render 1.8.122 → 1.8.124

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 CHANGED
@@ -3440,35 +3440,35 @@ var ICON_INPUT_IDS = {
3440
3440
  var USER_PFP_INPUT_ID = "user-pfp";
3441
3441
  var HEADER_DEFAULTS = {
3442
3442
  backArrowTop: 240,
3443
- backArrowBottom: 299,
3443
+ backArrowBottom: 300,
3444
3444
  backArrowLeft: 78,
3445
- backArrowRight: 110,
3446
- userPfpTop: 222,
3447
- userPfpBottom: 317,
3448
- userPfpLeft: 180,
3449
- userPfpRight: 275,
3445
+ backArrowRight: 111,
3446
+ userPfpTop: 220,
3447
+ userPfpBottom: 320,
3448
+ userPfpLeft: 179,
3449
+ userPfpRight: 277,
3450
3450
  userStoryRingColor: "#5e656d",
3451
3451
  userStoryRingTop: 210,
3452
- userStoryRingBottom: 329,
3452
+ userStoryRingBottom: 330,
3453
3453
  userStoryRingLeft: 168,
3454
- userStoryRingRight: 287,
3455
- userStoryRingWidth: 7,
3454
+ userStoryRingRight: 288,
3455
+ userStoryRingWidth: 6,
3456
3456
  noNotisTop: 77,
3457
- noNotisBottom: 119,
3457
+ noNotisBottom: 120,
3458
3458
  noNotisLeft: 272,
3459
- noNotisRight: 311,
3459
+ noNotisRight: 312,
3460
3460
  smilePlusTop: 234,
3461
- smilePlusBottom: 305,
3461
+ smilePlusBottom: 306,
3462
3462
  smilePlusLeft: 663,
3463
- smilePlusRight: 734,
3464
- phoneIconTop: 236,
3465
- phoneIconBottom: 302,
3463
+ smilePlusRight: 735,
3464
+ phoneIconTop: 237,
3465
+ phoneIconBottom: 303,
3466
3466
  phoneIconLeft: 807,
3467
3467
  phoneIconRight: 873,
3468
3468
  videoIconTop: 240,
3469
- videoIconBottom: 299,
3469
+ videoIconBottom: 300,
3470
3470
  videoIconLeft: 948,
3471
- videoIconRight: 1019
3471
+ videoIconRight: 1020
3472
3472
  };
3473
3473
  function generateHeaderElements(props) {
3474
3474
  const elements = [];
@@ -3489,29 +3489,6 @@ function generateHeaderElements(props) {
3489
3489
  inputId: ICON_INPUT_IDS.backArrow,
3490
3490
  fit: "fill"
3491
3491
  });
3492
- const userHasStory = props.userHasStory ?? false;
3493
- if (userHasStory) {
3494
- const ringTop = props.userStoryRingTop ?? HEADER_DEFAULTS.userStoryRingTop;
3495
- const ringBottom = props.userStoryRingBottom ?? HEADER_DEFAULTS.userStoryRingBottom;
3496
- const ringLeft = props.userStoryRingLeft ?? HEADER_DEFAULTS.userStoryRingLeft;
3497
- const ringRight = props.userStoryRingRight ?? HEADER_DEFAULTS.userStoryRingRight;
3498
- const ringColor = props.userStoryRingColor ?? HEADER_DEFAULTS.userStoryRingColor;
3499
- const ringWidth = ringRight - ringLeft;
3500
- const ringHeight = ringBottom - ringTop;
3501
- elements.push({
3502
- id: "user-story-ring",
3503
- type: "text",
3504
- x: ringLeft,
3505
- y: ringTop,
3506
- width: ringWidth,
3507
- height: ringHeight,
3508
- zIndex: 29,
3509
- text: "",
3510
- backgroundColor: ringColor,
3511
- backgroundOpacity: 100,
3512
- backgroundBorderRadius: ringWidth / 2
3513
- });
3514
- }
3515
3492
  const userPfpTop = props.userPfpTop ?? HEADER_DEFAULTS.userPfpTop;
3516
3493
  const userPfpBottom = props.userPfpBottom ?? HEADER_DEFAULTS.userPfpBottom;
3517
3494
  const userPfpLeft = props.userPfpLeft ?? HEADER_DEFAULTS.userPfpLeft;
@@ -4132,7 +4109,7 @@ function convertPropsToElements(props) {
4132
4109
  var import_jsx_runtime10 = require("react/jsx-runtime");
4133
4110
  var defaultInstagramDmProps = {
4134
4111
  showDebugOverlay: true,
4135
- referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png",
4112
+ referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
4136
4113
  showReferenceImage: true,
4137
4114
  referenceOpacity: 50,
4138
4115
  width: 1206,
@@ -4240,43 +4217,43 @@ var defaultInstagramDmProps = {
4240
4217
  profilePicGap: 37,
4241
4218
  // Header - Back arrow
4242
4219
  backArrowTop: 240,
4243
- backArrowBottom: 299,
4220
+ backArrowBottom: 300,
4244
4221
  backArrowLeft: 78,
4245
- backArrowRight: 110,
4222
+ backArrowRight: 111,
4246
4223
  // Header - User profile picture
4247
- userPfpUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
4248
- userPfpTop: 222,
4249
- userPfpBottom: 317,
4250
- userPfpLeft: 180,
4251
- userPfpRight: 275,
4224
+ userPfpUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/884a81ce74fa88e229f6be5f76f29385-3P4rjQqfbLidxtZ7OmvgaDQNMSSIGi.jpg",
4225
+ userPfpTop: 220,
4226
+ userPfpBottom: 320,
4227
+ userPfpLeft: 179,
4228
+ userPfpRight: 277,
4252
4229
  // Header - User story ring
4253
4230
  userHasStory: false,
4254
4231
  userStoryRingColor: "#5e656d",
4255
4232
  userStoryRingTop: 210,
4256
- userStoryRingBottom: 329,
4233
+ userStoryRingBottom: 330,
4257
4234
  userStoryRingLeft: 168,
4258
- userStoryRingRight: 287,
4259
- userStoryRingWidth: 7,
4235
+ userStoryRingRight: 288,
4236
+ userStoryRingWidth: 6,
4260
4237
  // Header - No notifications icon
4261
4238
  noNotisTop: 77,
4262
- noNotisBottom: 119,
4239
+ noNotisBottom: 120,
4263
4240
  noNotisLeft: 272,
4264
- noNotisRight: 311,
4241
+ noNotisRight: 312,
4265
4242
  // Header - Smile plus icon
4266
4243
  smilePlusTop: 234,
4267
- smilePlusBottom: 305,
4244
+ smilePlusBottom: 306,
4268
4245
  smilePlusLeft: 663,
4269
- smilePlusRight: 734,
4246
+ smilePlusRight: 735,
4270
4247
  // Header - Phone icon
4271
- phoneIconTop: 236,
4272
- phoneIconBottom: 302,
4248
+ phoneIconTop: 237,
4249
+ phoneIconBottom: 303,
4273
4250
  phoneIconLeft: 807,
4274
4251
  phoneIconRight: 873,
4275
4252
  // Header - Video icon
4276
4253
  videoIconTop: 240,
4277
- videoIconBottom: 299,
4254
+ videoIconBottom: 300,
4278
4255
  videoIconLeft: 948,
4279
- videoIconRight: 1019
4256
+ videoIconRight: 1020
4280
4257
  };
4281
4258
  function InstagramDmComposition(props) {
4282
4259
  const {
@@ -4286,7 +4263,15 @@ function InstagramDmComposition(props) {
4286
4263
  referenceOpacity = 50,
4287
4264
  width = 1206,
4288
4265
  height = 2622,
4289
- theme
4266
+ theme,
4267
+ // Story ring props
4268
+ userHasStory = false,
4269
+ userStoryRingTop = 210,
4270
+ userStoryRingBottom = 330,
4271
+ userStoryRingLeft = 168,
4272
+ userStoryRingRight = 288,
4273
+ userStoryRingColor = "#5e656d",
4274
+ userStoryRingWidth = 6
4290
4275
  } = props;
4291
4276
  const clampedReferenceOpacity = Math.max(0, Math.min(100, referenceOpacity));
4292
4277
  const [zoom, setZoom] = (0, import_react8.useState)(100);
@@ -4363,6 +4348,23 @@ function InstagramDmComposition(props) {
4363
4348
  imageUrls
4364
4349
  }
4365
4350
  ),
4351
+ userHasStory && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4352
+ "div",
4353
+ {
4354
+ style: {
4355
+ position: "absolute",
4356
+ top: userStoryRingTop,
4357
+ left: userStoryRingLeft,
4358
+ width: userStoryRingRight - userStoryRingLeft,
4359
+ height: userStoryRingBottom - userStoryRingTop,
4360
+ borderRadius: "50%",
4361
+ border: `${userStoryRingWidth}px solid ${userStoryRingColor}`,
4362
+ boxSizing: "border-box",
4363
+ pointerEvents: "none",
4364
+ zIndex: 29
4365
+ }
4366
+ }
4367
+ ),
4366
4368
  referenceImageUrl && showReferenceImage && (!showDebugOverlay || referenceVisible) && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4367
4369
  "div",
4368
4370
  {
@@ -5340,7 +5342,7 @@ var instagramDmSchema = import_zod.z.object({
5340
5342
  // Debug overlay
5341
5343
  showDebugOverlay: import_zod.z.boolean().optional().default(true).describe("Show debug overlay with mouse coordinates"),
5342
5344
  // Reference overlay
5343
- 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"),
5345
+ referenceImageUrl: import_zod.z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png").describe("Reference screenshot URL"),
5344
5346
  showReferenceImage: import_zod.z.boolean().optional().default(true).describe("Show/hide reference image"),
5345
5347
  referenceOpacity: import_zod.z.number().min(0).max(100).optional().default(50).describe("Reference overlay opacity (0-100)"),
5346
5348
  // Canvas
@@ -5447,43 +5449,43 @@ var instagramDmSchema = import_zod.z.object({
5447
5449
  profilePicGap: import_zod.z.number().optional().default(37).describe("Gap between profile pic and bubble"),
5448
5450
  // Header - Back arrow
5449
5451
  backArrowTop: import_zod.z.number().optional().default(240).describe("Back arrow top Y"),
5450
- backArrowBottom: import_zod.z.number().optional().default(299).describe("Back arrow bottom Y"),
5452
+ backArrowBottom: import_zod.z.number().optional().default(300).describe("Back arrow bottom Y"),
5451
5453
  backArrowLeft: import_zod.z.number().optional().default(78).describe("Back arrow left X"),
5452
- backArrowRight: import_zod.z.number().optional().default(110).describe("Back arrow right X"),
5454
+ backArrowRight: import_zod.z.number().optional().default(111).describe("Back arrow right X"),
5453
5455
  // Header - User profile picture
5454
- userPfpUrl: import_zod.z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png").describe("User profile picture URL"),
5455
- userPfpTop: import_zod.z.number().optional().default(222).describe("User pfp top Y"),
5456
- userPfpBottom: import_zod.z.number().optional().default(317).describe("User pfp bottom Y"),
5457
- userPfpLeft: import_zod.z.number().optional().default(180).describe("User pfp left X"),
5458
- userPfpRight: import_zod.z.number().optional().default(275).describe("User pfp right X"),
5456
+ userPfpUrl: import_zod.z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/884a81ce74fa88e229f6be5f76f29385-3P4rjQqfbLidxtZ7OmvgaDQNMSSIGi.jpg").describe("User profile picture URL"),
5457
+ userPfpTop: import_zod.z.number().optional().default(220).describe("User pfp top Y"),
5458
+ userPfpBottom: import_zod.z.number().optional().default(320).describe("User pfp bottom Y"),
5459
+ userPfpLeft: import_zod.z.number().optional().default(179).describe("User pfp left X"),
5460
+ userPfpRight: import_zod.z.number().optional().default(277).describe("User pfp right X"),
5459
5461
  // Header - User story ring
5460
5462
  userHasStory: import_zod.z.boolean().optional().default(false).describe("Show story ring around user pfp"),
5461
5463
  userStoryRingColor: import_zod.z.string().optional().default("#5e656d").describe("Story ring color"),
5462
5464
  userStoryRingTop: import_zod.z.number().optional().default(210).describe("Story ring outer top Y"),
5463
- userStoryRingBottom: import_zod.z.number().optional().default(329).describe("Story ring outer bottom Y"),
5465
+ userStoryRingBottom: import_zod.z.number().optional().default(330).describe("Story ring outer bottom Y"),
5464
5466
  userStoryRingLeft: import_zod.z.number().optional().default(168).describe("Story ring outer left X"),
5465
- userStoryRingRight: import_zod.z.number().optional().default(287).describe("Story ring outer right X"),
5466
- userStoryRingWidth: import_zod.z.number().optional().default(7).describe("Story ring width"),
5467
+ userStoryRingRight: import_zod.z.number().optional().default(288).describe("Story ring outer right X"),
5468
+ userStoryRingWidth: import_zod.z.number().optional().default(6).describe("Story ring width"),
5467
5469
  // Header - No notifications icon
5468
5470
  noNotisTop: import_zod.z.number().optional().default(77).describe("No notifications top Y"),
5469
- noNotisBottom: import_zod.z.number().optional().default(119).describe("No notifications bottom Y"),
5471
+ noNotisBottom: import_zod.z.number().optional().default(120).describe("No notifications bottom Y"),
5470
5472
  noNotisLeft: import_zod.z.number().optional().default(272).describe("No notifications left X"),
5471
- noNotisRight: import_zod.z.number().optional().default(311).describe("No notifications right X"),
5473
+ noNotisRight: import_zod.z.number().optional().default(312).describe("No notifications right X"),
5472
5474
  // Header - Smile plus icon
5473
5475
  smilePlusTop: import_zod.z.number().optional().default(234).describe("Smile plus top Y"),
5474
- smilePlusBottom: import_zod.z.number().optional().default(305).describe("Smile plus bottom Y"),
5476
+ smilePlusBottom: import_zod.z.number().optional().default(306).describe("Smile plus bottom Y"),
5475
5477
  smilePlusLeft: import_zod.z.number().optional().default(663).describe("Smile plus left X"),
5476
- smilePlusRight: import_zod.z.number().optional().default(734).describe("Smile plus right X"),
5478
+ smilePlusRight: import_zod.z.number().optional().default(735).describe("Smile plus right X"),
5477
5479
  // Header - Phone icon
5478
- phoneIconTop: import_zod.z.number().optional().default(236).describe("Phone icon top Y"),
5479
- phoneIconBottom: import_zod.z.number().optional().default(302).describe("Phone icon bottom Y"),
5480
+ phoneIconTop: import_zod.z.number().optional().default(237).describe("Phone icon top Y"),
5481
+ phoneIconBottom: import_zod.z.number().optional().default(303).describe("Phone icon bottom Y"),
5480
5482
  phoneIconLeft: import_zod.z.number().optional().default(807).describe("Phone icon left X"),
5481
5483
  phoneIconRight: import_zod.z.number().optional().default(873).describe("Phone icon right X"),
5482
5484
  // Header - Video icon
5483
5485
  videoIconTop: import_zod.z.number().optional().default(240).describe("Video icon top Y"),
5484
- videoIconBottom: import_zod.z.number().optional().default(299).describe("Video icon bottom Y"),
5486
+ videoIconBottom: import_zod.z.number().optional().default(300).describe("Video icon bottom Y"),
5485
5487
  videoIconLeft: import_zod.z.number().optional().default(948).describe("Video icon left X"),
5486
- videoIconRight: import_zod.z.number().optional().default(1019).describe("Video icon right X")
5488
+ videoIconRight: import_zod.z.number().optional().default(1020).describe("Video icon right X")
5487
5489
  });
5488
5490
  var ImageComp = ImageEditorComposition;
5489
5491
  var VideoComp = VideoEditorComposition;
package/dist/index.mjs CHANGED
@@ -2509,35 +2509,35 @@ var ICON_INPUT_IDS = {
2509
2509
  var USER_PFP_INPUT_ID = "user-pfp";
2510
2510
  var HEADER_DEFAULTS = {
2511
2511
  backArrowTop: 240,
2512
- backArrowBottom: 299,
2512
+ backArrowBottom: 300,
2513
2513
  backArrowLeft: 78,
2514
- backArrowRight: 110,
2515
- userPfpTop: 222,
2516
- userPfpBottom: 317,
2517
- userPfpLeft: 180,
2518
- userPfpRight: 275,
2514
+ backArrowRight: 111,
2515
+ userPfpTop: 220,
2516
+ userPfpBottom: 320,
2517
+ userPfpLeft: 179,
2518
+ userPfpRight: 277,
2519
2519
  userStoryRingColor: "#5e656d",
2520
2520
  userStoryRingTop: 210,
2521
- userStoryRingBottom: 329,
2521
+ userStoryRingBottom: 330,
2522
2522
  userStoryRingLeft: 168,
2523
- userStoryRingRight: 287,
2524
- userStoryRingWidth: 7,
2523
+ userStoryRingRight: 288,
2524
+ userStoryRingWidth: 6,
2525
2525
  noNotisTop: 77,
2526
- noNotisBottom: 119,
2526
+ noNotisBottom: 120,
2527
2527
  noNotisLeft: 272,
2528
- noNotisRight: 311,
2528
+ noNotisRight: 312,
2529
2529
  smilePlusTop: 234,
2530
- smilePlusBottom: 305,
2530
+ smilePlusBottom: 306,
2531
2531
  smilePlusLeft: 663,
2532
- smilePlusRight: 734,
2533
- phoneIconTop: 236,
2534
- phoneIconBottom: 302,
2532
+ smilePlusRight: 735,
2533
+ phoneIconTop: 237,
2534
+ phoneIconBottom: 303,
2535
2535
  phoneIconLeft: 807,
2536
2536
  phoneIconRight: 873,
2537
2537
  videoIconTop: 240,
2538
- videoIconBottom: 299,
2538
+ videoIconBottom: 300,
2539
2539
  videoIconLeft: 948,
2540
- videoIconRight: 1019
2540
+ videoIconRight: 1020
2541
2541
  };
2542
2542
  function generateHeaderElements(props) {
2543
2543
  const elements = [];
@@ -2558,29 +2558,6 @@ function generateHeaderElements(props) {
2558
2558
  inputId: ICON_INPUT_IDS.backArrow,
2559
2559
  fit: "fill"
2560
2560
  });
2561
- const userHasStory = props.userHasStory ?? false;
2562
- if (userHasStory) {
2563
- const ringTop = props.userStoryRingTop ?? HEADER_DEFAULTS.userStoryRingTop;
2564
- const ringBottom = props.userStoryRingBottom ?? HEADER_DEFAULTS.userStoryRingBottom;
2565
- const ringLeft = props.userStoryRingLeft ?? HEADER_DEFAULTS.userStoryRingLeft;
2566
- const ringRight = props.userStoryRingRight ?? HEADER_DEFAULTS.userStoryRingRight;
2567
- const ringColor = props.userStoryRingColor ?? HEADER_DEFAULTS.userStoryRingColor;
2568
- const ringWidth = ringRight - ringLeft;
2569
- const ringHeight = ringBottom - ringTop;
2570
- elements.push({
2571
- id: "user-story-ring",
2572
- type: "text",
2573
- x: ringLeft,
2574
- y: ringTop,
2575
- width: ringWidth,
2576
- height: ringHeight,
2577
- zIndex: 29,
2578
- text: "",
2579
- backgroundColor: ringColor,
2580
- backgroundOpacity: 100,
2581
- backgroundBorderRadius: ringWidth / 2
2582
- });
2583
- }
2584
2561
  const userPfpTop = props.userPfpTop ?? HEADER_DEFAULTS.userPfpTop;
2585
2562
  const userPfpBottom = props.userPfpBottom ?? HEADER_DEFAULTS.userPfpBottom;
2586
2563
  const userPfpLeft = props.userPfpLeft ?? HEADER_DEFAULTS.userPfpLeft;
@@ -3201,7 +3178,7 @@ function convertPropsToElements(props) {
3201
3178
  import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
3202
3179
  var defaultInstagramDmProps = {
3203
3180
  showDebugOverlay: true,
3204
- referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3177-twSYuZPHRoxH9PA2xhpDUeKIg2ny7p.png",
3181
+ referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
3205
3182
  showReferenceImage: true,
3206
3183
  referenceOpacity: 50,
3207
3184
  width: 1206,
@@ -3309,43 +3286,43 @@ var defaultInstagramDmProps = {
3309
3286
  profilePicGap: 37,
3310
3287
  // Header - Back arrow
3311
3288
  backArrowTop: 240,
3312
- backArrowBottom: 299,
3289
+ backArrowBottom: 300,
3313
3290
  backArrowLeft: 78,
3314
- backArrowRight: 110,
3291
+ backArrowRight: 111,
3315
3292
  // Header - User profile picture
3316
- userPfpUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
3317
- userPfpTop: 222,
3318
- userPfpBottom: 317,
3319
- userPfpLeft: 180,
3320
- userPfpRight: 275,
3293
+ userPfpUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/884a81ce74fa88e229f6be5f76f29385-3P4rjQqfbLidxtZ7OmvgaDQNMSSIGi.jpg",
3294
+ userPfpTop: 220,
3295
+ userPfpBottom: 320,
3296
+ userPfpLeft: 179,
3297
+ userPfpRight: 277,
3321
3298
  // Header - User story ring
3322
3299
  userHasStory: false,
3323
3300
  userStoryRingColor: "#5e656d",
3324
3301
  userStoryRingTop: 210,
3325
- userStoryRingBottom: 329,
3302
+ userStoryRingBottom: 330,
3326
3303
  userStoryRingLeft: 168,
3327
- userStoryRingRight: 287,
3328
- userStoryRingWidth: 7,
3304
+ userStoryRingRight: 288,
3305
+ userStoryRingWidth: 6,
3329
3306
  // Header - No notifications icon
3330
3307
  noNotisTop: 77,
3331
- noNotisBottom: 119,
3308
+ noNotisBottom: 120,
3332
3309
  noNotisLeft: 272,
3333
- noNotisRight: 311,
3310
+ noNotisRight: 312,
3334
3311
  // Header - Smile plus icon
3335
3312
  smilePlusTop: 234,
3336
- smilePlusBottom: 305,
3313
+ smilePlusBottom: 306,
3337
3314
  smilePlusLeft: 663,
3338
- smilePlusRight: 734,
3315
+ smilePlusRight: 735,
3339
3316
  // Header - Phone icon
3340
- phoneIconTop: 236,
3341
- phoneIconBottom: 302,
3317
+ phoneIconTop: 237,
3318
+ phoneIconBottom: 303,
3342
3319
  phoneIconLeft: 807,
3343
3320
  phoneIconRight: 873,
3344
3321
  // Header - Video icon
3345
3322
  videoIconTop: 240,
3346
- videoIconBottom: 299,
3323
+ videoIconBottom: 300,
3347
3324
  videoIconLeft: 948,
3348
- videoIconRight: 1019
3325
+ videoIconRight: 1020
3349
3326
  };
3350
3327
  function InstagramDmComposition(props) {
3351
3328
  const {
@@ -3355,7 +3332,15 @@ function InstagramDmComposition(props) {
3355
3332
  referenceOpacity = 50,
3356
3333
  width = 1206,
3357
3334
  height = 2622,
3358
- theme
3335
+ theme,
3336
+ // Story ring props
3337
+ userHasStory = false,
3338
+ userStoryRingTop = 210,
3339
+ userStoryRingBottom = 330,
3340
+ userStoryRingLeft = 168,
3341
+ userStoryRingRight = 288,
3342
+ userStoryRingColor = "#5e656d",
3343
+ userStoryRingWidth = 6
3359
3344
  } = props;
3360
3345
  const clampedReferenceOpacity = Math.max(0, Math.min(100, referenceOpacity));
3361
3346
  const [zoom, setZoom] = useState3(100);
@@ -3432,6 +3417,23 @@ function InstagramDmComposition(props) {
3432
3417
  imageUrls
3433
3418
  }
3434
3419
  ),
3420
+ userHasStory && /* @__PURE__ */ jsx10(
3421
+ "div",
3422
+ {
3423
+ style: {
3424
+ position: "absolute",
3425
+ top: userStoryRingTop,
3426
+ left: userStoryRingLeft,
3427
+ width: userStoryRingRight - userStoryRingLeft,
3428
+ height: userStoryRingBottom - userStoryRingTop,
3429
+ borderRadius: "50%",
3430
+ border: `${userStoryRingWidth}px solid ${userStoryRingColor}`,
3431
+ boxSizing: "border-box",
3432
+ pointerEvents: "none",
3433
+ zIndex: 29
3434
+ }
3435
+ }
3436
+ ),
3435
3437
  referenceImageUrl && showReferenceImage && (!showDebugOverlay || referenceVisible) && /* @__PURE__ */ jsx10(
3436
3438
  "div",
3437
3439
  {
@@ -4126,7 +4128,7 @@ var instagramDmSchema = z.object({
4126
4128
  // Debug overlay
4127
4129
  showDebugOverlay: z.boolean().optional().default(true).describe("Show debug overlay with mouse coordinates"),
4128
4130
  // Reference overlay
4129
- 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"),
4131
+ referenceImageUrl: z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png").describe("Reference screenshot URL"),
4130
4132
  showReferenceImage: z.boolean().optional().default(true).describe("Show/hide reference image"),
4131
4133
  referenceOpacity: z.number().min(0).max(100).optional().default(50).describe("Reference overlay opacity (0-100)"),
4132
4134
  // Canvas
@@ -4233,43 +4235,43 @@ var instagramDmSchema = z.object({
4233
4235
  profilePicGap: z.number().optional().default(37).describe("Gap between profile pic and bubble"),
4234
4236
  // Header - Back arrow
4235
4237
  backArrowTop: z.number().optional().default(240).describe("Back arrow top Y"),
4236
- backArrowBottom: z.number().optional().default(299).describe("Back arrow bottom Y"),
4238
+ backArrowBottom: z.number().optional().default(300).describe("Back arrow bottom Y"),
4237
4239
  backArrowLeft: z.number().optional().default(78).describe("Back arrow left X"),
4238
- backArrowRight: z.number().optional().default(110).describe("Back arrow right X"),
4240
+ backArrowRight: z.number().optional().default(111).describe("Back arrow right X"),
4239
4241
  // Header - User profile picture
4240
- userPfpUrl: z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png").describe("User profile picture URL"),
4241
- userPfpTop: z.number().optional().default(222).describe("User pfp top Y"),
4242
- userPfpBottom: z.number().optional().default(317).describe("User pfp bottom Y"),
4243
- userPfpLeft: z.number().optional().default(180).describe("User pfp left X"),
4244
- userPfpRight: z.number().optional().default(275).describe("User pfp right X"),
4242
+ userPfpUrl: z.string().optional().default("https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/884a81ce74fa88e229f6be5f76f29385-3P4rjQqfbLidxtZ7OmvgaDQNMSSIGi.jpg").describe("User profile picture URL"),
4243
+ userPfpTop: z.number().optional().default(220).describe("User pfp top Y"),
4244
+ userPfpBottom: z.number().optional().default(320).describe("User pfp bottom Y"),
4245
+ userPfpLeft: z.number().optional().default(179).describe("User pfp left X"),
4246
+ userPfpRight: z.number().optional().default(277).describe("User pfp right X"),
4245
4247
  // Header - User story ring
4246
4248
  userHasStory: z.boolean().optional().default(false).describe("Show story ring around user pfp"),
4247
4249
  userStoryRingColor: z.string().optional().default("#5e656d").describe("Story ring color"),
4248
4250
  userStoryRingTop: z.number().optional().default(210).describe("Story ring outer top Y"),
4249
- userStoryRingBottom: z.number().optional().default(329).describe("Story ring outer bottom Y"),
4251
+ userStoryRingBottom: z.number().optional().default(330).describe("Story ring outer bottom Y"),
4250
4252
  userStoryRingLeft: z.number().optional().default(168).describe("Story ring outer left X"),
4251
- userStoryRingRight: z.number().optional().default(287).describe("Story ring outer right X"),
4252
- userStoryRingWidth: z.number().optional().default(7).describe("Story ring width"),
4253
+ userStoryRingRight: z.number().optional().default(288).describe("Story ring outer right X"),
4254
+ userStoryRingWidth: z.number().optional().default(6).describe("Story ring width"),
4253
4255
  // Header - No notifications icon
4254
4256
  noNotisTop: z.number().optional().default(77).describe("No notifications top Y"),
4255
- noNotisBottom: z.number().optional().default(119).describe("No notifications bottom Y"),
4257
+ noNotisBottom: z.number().optional().default(120).describe("No notifications bottom Y"),
4256
4258
  noNotisLeft: z.number().optional().default(272).describe("No notifications left X"),
4257
- noNotisRight: z.number().optional().default(311).describe("No notifications right X"),
4259
+ noNotisRight: z.number().optional().default(312).describe("No notifications right X"),
4258
4260
  // Header - Smile plus icon
4259
4261
  smilePlusTop: z.number().optional().default(234).describe("Smile plus top Y"),
4260
- smilePlusBottom: z.number().optional().default(305).describe("Smile plus bottom Y"),
4262
+ smilePlusBottom: z.number().optional().default(306).describe("Smile plus bottom Y"),
4261
4263
  smilePlusLeft: z.number().optional().default(663).describe("Smile plus left X"),
4262
- smilePlusRight: z.number().optional().default(734).describe("Smile plus right X"),
4264
+ smilePlusRight: z.number().optional().default(735).describe("Smile plus right X"),
4263
4265
  // Header - Phone icon
4264
- phoneIconTop: z.number().optional().default(236).describe("Phone icon top Y"),
4265
- phoneIconBottom: z.number().optional().default(302).describe("Phone icon bottom Y"),
4266
+ phoneIconTop: z.number().optional().default(237).describe("Phone icon top Y"),
4267
+ phoneIconBottom: z.number().optional().default(303).describe("Phone icon bottom Y"),
4266
4268
  phoneIconLeft: z.number().optional().default(807).describe("Phone icon left X"),
4267
4269
  phoneIconRight: z.number().optional().default(873).describe("Phone icon right X"),
4268
4270
  // Header - Video icon
4269
4271
  videoIconTop: z.number().optional().default(240).describe("Video icon top Y"),
4270
- videoIconBottom: z.number().optional().default(299).describe("Video icon bottom Y"),
4272
+ videoIconBottom: z.number().optional().default(300).describe("Video icon bottom Y"),
4271
4273
  videoIconLeft: z.number().optional().default(948).describe("Video icon left X"),
4272
- videoIconRight: z.number().optional().default(1019).describe("Video icon right X")
4274
+ videoIconRight: z.number().optional().default(1020).describe("Video icon right X")
4273
4275
  });
4274
4276
  var ImageComp = ImageEditorComposition;
4275
4277
  var VideoComp = VideoEditorComposition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.122",
3
+ "version": "1.8.124",
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",