ugcinc-render 1.8.128 → 1.8.129
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 +4 -13
- package/dist/index.d.ts +4 -13
- package/dist/index.js +21 -83
- package/dist/index.mjs +21 -83
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -821,19 +821,10 @@ interface InstagramDmCompositionProps {
|
|
|
821
821
|
cell4Bottom?: number;
|
|
822
822
|
cell4Left?: number;
|
|
823
823
|
cell4Right?: number;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
wifi1Right?: number;
|
|
829
|
-
wifi2Top?: number;
|
|
830
|
-
wifi2Bottom?: number;
|
|
831
|
-
wifi2Left?: number;
|
|
832
|
-
wifi2Right?: number;
|
|
833
|
-
wifi3Top?: number;
|
|
834
|
-
wifi3Bottom?: number;
|
|
835
|
-
wifi3Left?: number;
|
|
836
|
-
wifi3Right?: number;
|
|
824
|
+
wifiTop?: number;
|
|
825
|
+
wifiBottom?: number;
|
|
826
|
+
wifiLeft?: number;
|
|
827
|
+
wifiRight?: number;
|
|
837
828
|
batteryTop?: number;
|
|
838
829
|
batteryBottom?: number;
|
|
839
830
|
batteryLeft?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -821,19 +821,10 @@ interface InstagramDmCompositionProps {
|
|
|
821
821
|
cell4Bottom?: number;
|
|
822
822
|
cell4Left?: number;
|
|
823
823
|
cell4Right?: number;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
wifi1Right?: number;
|
|
829
|
-
wifi2Top?: number;
|
|
830
|
-
wifi2Bottom?: number;
|
|
831
|
-
wifi2Left?: number;
|
|
832
|
-
wifi2Right?: number;
|
|
833
|
-
wifi3Top?: number;
|
|
834
|
-
wifi3Bottom?: number;
|
|
835
|
-
wifi3Left?: number;
|
|
836
|
-
wifi3Right?: number;
|
|
824
|
+
wifiTop?: number;
|
|
825
|
+
wifiBottom?: number;
|
|
826
|
+
wifiLeft?: number;
|
|
827
|
+
wifiRight?: number;
|
|
837
828
|
batteryTop?: number;
|
|
838
829
|
batteryBottom?: number;
|
|
839
830
|
batteryLeft?: number;
|
package/dist/index.js
CHANGED
|
@@ -4323,20 +4323,11 @@ var defaultInstagramDmProps = {
|
|
|
4323
4323
|
cell4Bottom: 115,
|
|
4324
4324
|
cell4Left: 913,
|
|
4325
4325
|
cell4Right: 922,
|
|
4326
|
-
// Status bar - WiFi
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
wifi1Right: 977,
|
|
4332
|
-
wifi2Top: 91,
|
|
4333
|
-
wifi2Bottom: 103,
|
|
4334
|
-
wifi2Left: 954,
|
|
4335
|
-
wifi2Right: 986,
|
|
4336
|
-
wifi3Top: 79,
|
|
4337
|
-
wifi3Bottom: 94,
|
|
4338
|
-
wifi3Left: 945,
|
|
4339
|
-
wifi3Right: 995,
|
|
4326
|
+
// Status bar - WiFi icon
|
|
4327
|
+
wifiTop: 79,
|
|
4328
|
+
wifiBottom: 115,
|
|
4329
|
+
wifiLeft: 945,
|
|
4330
|
+
wifiRight: 995,
|
|
4340
4331
|
// Status bar - Battery
|
|
4341
4332
|
batteryTop: 78,
|
|
4342
4333
|
batteryBottom: 116,
|
|
@@ -4378,20 +4369,11 @@ function InstagramDmComposition(props) {
|
|
|
4378
4369
|
cell4Bottom = 115,
|
|
4379
4370
|
cell4Left = 913,
|
|
4380
4371
|
cell4Right = 922,
|
|
4381
|
-
// WiFi
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
wifi1Right = 977,
|
|
4387
|
-
wifi2Top = 91,
|
|
4388
|
-
wifi2Bottom = 103,
|
|
4389
|
-
wifi2Left = 954,
|
|
4390
|
-
wifi2Right = 986,
|
|
4391
|
-
wifi3Top = 79,
|
|
4392
|
-
wifi3Bottom = 94,
|
|
4393
|
-
wifi3Left = 945,
|
|
4394
|
-
wifi3Right = 995
|
|
4372
|
+
// WiFi icon props
|
|
4373
|
+
wifiTop = 79,
|
|
4374
|
+
wifiBottom = 115,
|
|
4375
|
+
wifiLeft = 945,
|
|
4376
|
+
wifiRight = 995
|
|
4395
4377
|
} = props;
|
|
4396
4378
|
const clampedReferenceOpacity = Math.max(0, Math.min(100, referenceOpacity));
|
|
4397
4379
|
const [zoom, setZoom] = (0, import_react8.useState)(100);
|
|
@@ -4552,51 +4534,16 @@ function InstagramDmComposition(props) {
|
|
|
4552
4534
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4553
4535
|
import_remotion9.Img,
|
|
4554
4536
|
{
|
|
4555
|
-
src: (0, import_remotion9.staticFile)("ig-wifi
|
|
4537
|
+
src: (0, import_remotion9.staticFile)("ig-wifi.png"),
|
|
4556
4538
|
style: {
|
|
4557
4539
|
position: "absolute",
|
|
4558
|
-
top:
|
|
4559
|
-
left:
|
|
4560
|
-
width:
|
|
4561
|
-
height:
|
|
4540
|
+
top: wifiTop,
|
|
4541
|
+
left: wifiLeft,
|
|
4542
|
+
width: wifiRight - wifiLeft,
|
|
4543
|
+
height: wifiBottom - wifiTop,
|
|
4562
4544
|
objectFit: "fill",
|
|
4563
4545
|
pointerEvents: "none",
|
|
4564
|
-
zIndex: 30
|
|
4565
|
-
filter: wifiLevel >= 1 ? "none" : "brightness(0.25)"
|
|
4566
|
-
}
|
|
4567
|
-
}
|
|
4568
|
-
),
|
|
4569
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4570
|
-
import_remotion9.Img,
|
|
4571
|
-
{
|
|
4572
|
-
src: (0, import_remotion9.staticFile)("ig-wifi-middle.png"),
|
|
4573
|
-
style: {
|
|
4574
|
-
position: "absolute",
|
|
4575
|
-
top: wifi2Top,
|
|
4576
|
-
left: wifi2Left,
|
|
4577
|
-
width: wifi2Right - wifi2Left,
|
|
4578
|
-
height: wifi2Bottom - wifi2Top,
|
|
4579
|
-
objectFit: "fill",
|
|
4580
|
-
pointerEvents: "none",
|
|
4581
|
-
zIndex: 30,
|
|
4582
|
-
filter: wifiLevel >= 2 ? "none" : "brightness(0.25)"
|
|
4583
|
-
}
|
|
4584
|
-
}
|
|
4585
|
-
),
|
|
4586
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
4587
|
-
import_remotion9.Img,
|
|
4588
|
-
{
|
|
4589
|
-
src: (0, import_remotion9.staticFile)("ig-wifi-top.png"),
|
|
4590
|
-
style: {
|
|
4591
|
-
position: "absolute",
|
|
4592
|
-
top: wifi3Top,
|
|
4593
|
-
left: wifi3Left,
|
|
4594
|
-
width: wifi3Right - wifi3Left,
|
|
4595
|
-
height: wifi3Bottom - wifi3Top,
|
|
4596
|
-
objectFit: "fill",
|
|
4597
|
-
pointerEvents: "none",
|
|
4598
|
-
zIndex: 30,
|
|
4599
|
-
filter: wifiLevel >= 3 ? "none" : "brightness(0.25)"
|
|
4546
|
+
zIndex: 30
|
|
4600
4547
|
}
|
|
4601
4548
|
}
|
|
4602
4549
|
),
|
|
@@ -5744,20 +5691,11 @@ var instagramDmSchema = import_zod.z.object({
|
|
|
5744
5691
|
cell4Bottom: import_zod.z.number().optional().default(115).describe("Cell bar 4 bottom Y"),
|
|
5745
5692
|
cell4Left: import_zod.z.number().optional().default(913).describe("Cell bar 4 left X"),
|
|
5746
5693
|
cell4Right: import_zod.z.number().optional().default(922).describe("Cell bar 4 right X"),
|
|
5747
|
-
// Status bar - WiFi
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
wifi1Right: import_zod.z.number().optional().default(977).describe("WiFi arc 1 (bottom) right X"),
|
|
5753
|
-
wifi2Top: import_zod.z.number().optional().default(91).describe("WiFi arc 2 (middle) top Y"),
|
|
5754
|
-
wifi2Bottom: import_zod.z.number().optional().default(103).describe("WiFi arc 2 (middle) bottom Y"),
|
|
5755
|
-
wifi2Left: import_zod.z.number().optional().default(954).describe("WiFi arc 2 (middle) left X"),
|
|
5756
|
-
wifi2Right: import_zod.z.number().optional().default(986).describe("WiFi arc 2 (middle) right X"),
|
|
5757
|
-
wifi3Top: import_zod.z.number().optional().default(79).describe("WiFi arc 3 (top) top Y"),
|
|
5758
|
-
wifi3Bottom: import_zod.z.number().optional().default(94).describe("WiFi arc 3 (top) bottom Y"),
|
|
5759
|
-
wifi3Left: import_zod.z.number().optional().default(945).describe("WiFi arc 3 (top) left X"),
|
|
5760
|
-
wifi3Right: import_zod.z.number().optional().default(995).describe("WiFi arc 3 (top) right X"),
|
|
5694
|
+
// Status bar - WiFi icon
|
|
5695
|
+
wifiTop: import_zod.z.number().optional().default(79).describe("WiFi icon top Y"),
|
|
5696
|
+
wifiBottom: import_zod.z.number().optional().default(115).describe("WiFi icon bottom Y"),
|
|
5697
|
+
wifiLeft: import_zod.z.number().optional().default(945).describe("WiFi icon left X"),
|
|
5698
|
+
wifiRight: import_zod.z.number().optional().default(995).describe("WiFi icon right X"),
|
|
5761
5699
|
// Status bar - Battery icon
|
|
5762
5700
|
batteryTop: import_zod.z.number().optional().default(78).describe("Battery icon top Y"),
|
|
5763
5701
|
batteryBottom: import_zod.z.number().optional().default(116).describe("Battery icon bottom Y"),
|
package/dist/index.mjs
CHANGED
|
@@ -3392,20 +3392,11 @@ var defaultInstagramDmProps = {
|
|
|
3392
3392
|
cell4Bottom: 115,
|
|
3393
3393
|
cell4Left: 913,
|
|
3394
3394
|
cell4Right: 922,
|
|
3395
|
-
// Status bar - WiFi
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
wifi1Right: 977,
|
|
3401
|
-
wifi2Top: 91,
|
|
3402
|
-
wifi2Bottom: 103,
|
|
3403
|
-
wifi2Left: 954,
|
|
3404
|
-
wifi2Right: 986,
|
|
3405
|
-
wifi3Top: 79,
|
|
3406
|
-
wifi3Bottom: 94,
|
|
3407
|
-
wifi3Left: 945,
|
|
3408
|
-
wifi3Right: 995,
|
|
3395
|
+
// Status bar - WiFi icon
|
|
3396
|
+
wifiTop: 79,
|
|
3397
|
+
wifiBottom: 115,
|
|
3398
|
+
wifiLeft: 945,
|
|
3399
|
+
wifiRight: 995,
|
|
3409
3400
|
// Status bar - Battery
|
|
3410
3401
|
batteryTop: 78,
|
|
3411
3402
|
batteryBottom: 116,
|
|
@@ -3447,20 +3438,11 @@ function InstagramDmComposition(props) {
|
|
|
3447
3438
|
cell4Bottom = 115,
|
|
3448
3439
|
cell4Left = 913,
|
|
3449
3440
|
cell4Right = 922,
|
|
3450
|
-
// WiFi
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
wifi1Right = 977,
|
|
3456
|
-
wifi2Top = 91,
|
|
3457
|
-
wifi2Bottom = 103,
|
|
3458
|
-
wifi2Left = 954,
|
|
3459
|
-
wifi2Right = 986,
|
|
3460
|
-
wifi3Top = 79,
|
|
3461
|
-
wifi3Bottom = 94,
|
|
3462
|
-
wifi3Left = 945,
|
|
3463
|
-
wifi3Right = 995
|
|
3441
|
+
// WiFi icon props
|
|
3442
|
+
wifiTop = 79,
|
|
3443
|
+
wifiBottom = 115,
|
|
3444
|
+
wifiLeft = 945,
|
|
3445
|
+
wifiRight = 995
|
|
3464
3446
|
} = props;
|
|
3465
3447
|
const clampedReferenceOpacity = Math.max(0, Math.min(100, referenceOpacity));
|
|
3466
3448
|
const [zoom, setZoom] = useState3(100);
|
|
@@ -3621,51 +3603,16 @@ function InstagramDmComposition(props) {
|
|
|
3621
3603
|
/* @__PURE__ */ jsx10(
|
|
3622
3604
|
Img4,
|
|
3623
3605
|
{
|
|
3624
|
-
src: staticFile2("ig-wifi
|
|
3606
|
+
src: staticFile2("ig-wifi.png"),
|
|
3625
3607
|
style: {
|
|
3626
3608
|
position: "absolute",
|
|
3627
|
-
top:
|
|
3628
|
-
left:
|
|
3629
|
-
width:
|
|
3630
|
-
height:
|
|
3609
|
+
top: wifiTop,
|
|
3610
|
+
left: wifiLeft,
|
|
3611
|
+
width: wifiRight - wifiLeft,
|
|
3612
|
+
height: wifiBottom - wifiTop,
|
|
3631
3613
|
objectFit: "fill",
|
|
3632
3614
|
pointerEvents: "none",
|
|
3633
|
-
zIndex: 30
|
|
3634
|
-
filter: wifiLevel >= 1 ? "none" : "brightness(0.25)"
|
|
3635
|
-
}
|
|
3636
|
-
}
|
|
3637
|
-
),
|
|
3638
|
-
/* @__PURE__ */ jsx10(
|
|
3639
|
-
Img4,
|
|
3640
|
-
{
|
|
3641
|
-
src: staticFile2("ig-wifi-middle.png"),
|
|
3642
|
-
style: {
|
|
3643
|
-
position: "absolute",
|
|
3644
|
-
top: wifi2Top,
|
|
3645
|
-
left: wifi2Left,
|
|
3646
|
-
width: wifi2Right - wifi2Left,
|
|
3647
|
-
height: wifi2Bottom - wifi2Top,
|
|
3648
|
-
objectFit: "fill",
|
|
3649
|
-
pointerEvents: "none",
|
|
3650
|
-
zIndex: 30,
|
|
3651
|
-
filter: wifiLevel >= 2 ? "none" : "brightness(0.25)"
|
|
3652
|
-
}
|
|
3653
|
-
}
|
|
3654
|
-
),
|
|
3655
|
-
/* @__PURE__ */ jsx10(
|
|
3656
|
-
Img4,
|
|
3657
|
-
{
|
|
3658
|
-
src: staticFile2("ig-wifi-top.png"),
|
|
3659
|
-
style: {
|
|
3660
|
-
position: "absolute",
|
|
3661
|
-
top: wifi3Top,
|
|
3662
|
-
left: wifi3Left,
|
|
3663
|
-
width: wifi3Right - wifi3Left,
|
|
3664
|
-
height: wifi3Bottom - wifi3Top,
|
|
3665
|
-
objectFit: "fill",
|
|
3666
|
-
pointerEvents: "none",
|
|
3667
|
-
zIndex: 30,
|
|
3668
|
-
filter: wifiLevel >= 3 ? "none" : "brightness(0.25)"
|
|
3615
|
+
zIndex: 30
|
|
3669
3616
|
}
|
|
3670
3617
|
}
|
|
3671
3618
|
),
|
|
@@ -4530,20 +4477,11 @@ var instagramDmSchema = z.object({
|
|
|
4530
4477
|
cell4Bottom: z.number().optional().default(115).describe("Cell bar 4 bottom Y"),
|
|
4531
4478
|
cell4Left: z.number().optional().default(913).describe("Cell bar 4 left X"),
|
|
4532
4479
|
cell4Right: z.number().optional().default(922).describe("Cell bar 4 right X"),
|
|
4533
|
-
// Status bar - WiFi
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
wifi1Right: z.number().optional().default(977).describe("WiFi arc 1 (bottom) right X"),
|
|
4539
|
-
wifi2Top: z.number().optional().default(91).describe("WiFi arc 2 (middle) top Y"),
|
|
4540
|
-
wifi2Bottom: z.number().optional().default(103).describe("WiFi arc 2 (middle) bottom Y"),
|
|
4541
|
-
wifi2Left: z.number().optional().default(954).describe("WiFi arc 2 (middle) left X"),
|
|
4542
|
-
wifi2Right: z.number().optional().default(986).describe("WiFi arc 2 (middle) right X"),
|
|
4543
|
-
wifi3Top: z.number().optional().default(79).describe("WiFi arc 3 (top) top Y"),
|
|
4544
|
-
wifi3Bottom: z.number().optional().default(94).describe("WiFi arc 3 (top) bottom Y"),
|
|
4545
|
-
wifi3Left: z.number().optional().default(945).describe("WiFi arc 3 (top) left X"),
|
|
4546
|
-
wifi3Right: z.number().optional().default(995).describe("WiFi arc 3 (top) right X"),
|
|
4480
|
+
// Status bar - WiFi icon
|
|
4481
|
+
wifiTop: z.number().optional().default(79).describe("WiFi icon top Y"),
|
|
4482
|
+
wifiBottom: z.number().optional().default(115).describe("WiFi icon bottom Y"),
|
|
4483
|
+
wifiLeft: z.number().optional().default(945).describe("WiFi icon left X"),
|
|
4484
|
+
wifiRight: z.number().optional().default(995).describe("WiFi icon right X"),
|
|
4547
4485
|
// Status bar - Battery icon
|
|
4548
4486
|
batteryTop: z.number().optional().default(78).describe("Battery icon top Y"),
|
|
4549
4487
|
batteryBottom: z.number().optional().default(116).describe("Battery icon bottom Y"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.129",
|
|
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",
|