ugcinc-render 1.8.129 → 1.8.131
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +73 -38
- package/dist/index.mjs +73 -38
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3471,14 +3471,18 @@ var HEADER_DEFAULTS = {
|
|
|
3471
3471
|
videoIconBottom: 300,
|
|
3472
3472
|
videoIconLeft: 948,
|
|
3473
3473
|
videoIconRight: 1020,
|
|
3474
|
-
flagTop:
|
|
3475
|
-
flagBottom:
|
|
3476
|
-
flagLeft:
|
|
3477
|
-
flagRight:
|
|
3474
|
+
flagTop: 237,
|
|
3475
|
+
flagBottom: 303,
|
|
3476
|
+
flagLeft: 1098,
|
|
3477
|
+
flagRight: 1153,
|
|
3478
3478
|
batteryTop: 78,
|
|
3479
|
-
batteryBottom:
|
|
3479
|
+
batteryBottom: 117,
|
|
3480
3480
|
batteryLeft: 1018,
|
|
3481
|
-
batteryRight:
|
|
3481
|
+
batteryRight: 1100,
|
|
3482
|
+
// Time display
|
|
3483
|
+
time: "9:41",
|
|
3484
|
+
timeRight: 258,
|
|
3485
|
+
timeBottom: 116
|
|
3482
3486
|
};
|
|
3483
3487
|
function generateHeaderElements(props) {
|
|
3484
3488
|
const elements = [];
|
|
@@ -3622,6 +3626,29 @@ function generateHeaderElements(props) {
|
|
|
3622
3626
|
inputId: ICON_INPUT_IDS.battery,
|
|
3623
3627
|
fit: "fill"
|
|
3624
3628
|
});
|
|
3629
|
+
const time = props.time ?? HEADER_DEFAULTS.time;
|
|
3630
|
+
const timeRight = props.timeRight ?? HEADER_DEFAULTS.timeRight;
|
|
3631
|
+
const timeBottom = props.timeBottom ?? HEADER_DEFAULTS.timeBottom;
|
|
3632
|
+
const timeFontSize = props.messageFontSize ?? MESSAGE_DEFAULTS.messageFontSize;
|
|
3633
|
+
const timeColor = props.bubbleTextColor ?? MESSAGE_DEFAULTS.bubbleTextColor;
|
|
3634
|
+
const timeHeight = timeFontSize;
|
|
3635
|
+
const timeTop = timeBottom - timeHeight;
|
|
3636
|
+
elements.push({
|
|
3637
|
+
id: "status-time",
|
|
3638
|
+
type: "text",
|
|
3639
|
+
x: 0,
|
|
3640
|
+
y: timeTop,
|
|
3641
|
+
width: timeRight,
|
|
3642
|
+
height: timeHeight,
|
|
3643
|
+
zIndex: 30,
|
|
3644
|
+
text: time,
|
|
3645
|
+
font: "apple",
|
|
3646
|
+
fontSize: timeFontSize,
|
|
3647
|
+
fontWeight: "semibold",
|
|
3648
|
+
color: timeColor,
|
|
3649
|
+
textAlign: "right",
|
|
3650
|
+
verticalAlign: "middle"
|
|
3651
|
+
});
|
|
3625
3652
|
return elements;
|
|
3626
3653
|
}
|
|
3627
3654
|
function generateFooterIconElements(props) {
|
|
@@ -4301,38 +4328,42 @@ var defaultInstagramDmProps = {
|
|
|
4301
4328
|
videoIconLeft: 948,
|
|
4302
4329
|
videoIconRight: 1020,
|
|
4303
4330
|
// Header - Flag icon
|
|
4304
|
-
flagTop:
|
|
4305
|
-
flagBottom:
|
|
4306
|
-
flagLeft:
|
|
4307
|
-
flagRight:
|
|
4331
|
+
flagTop: 237,
|
|
4332
|
+
flagBottom: 303,
|
|
4333
|
+
flagLeft: 1098,
|
|
4334
|
+
flagRight: 1153,
|
|
4308
4335
|
// Status bar - Cell signal
|
|
4309
4336
|
cellLevel: 4,
|
|
4310
4337
|
cell1Top: 102,
|
|
4311
|
-
cell1Bottom:
|
|
4338
|
+
cell1Bottom: 116,
|
|
4312
4339
|
cell1Left: 865,
|
|
4313
|
-
cell1Right:
|
|
4340
|
+
cell1Right: 875,
|
|
4314
4341
|
cell2Top: 95,
|
|
4315
|
-
cell2Bottom:
|
|
4342
|
+
cell2Bottom: 116,
|
|
4316
4343
|
cell2Left: 881,
|
|
4317
|
-
cell2Right:
|
|
4344
|
+
cell2Right: 891,
|
|
4318
4345
|
cell3Top: 87,
|
|
4319
|
-
cell3Bottom:
|
|
4346
|
+
cell3Bottom: 116,
|
|
4320
4347
|
cell3Left: 897,
|
|
4321
|
-
cell3Right:
|
|
4348
|
+
cell3Right: 907,
|
|
4322
4349
|
cell4Top: 79,
|
|
4323
|
-
cell4Bottom:
|
|
4350
|
+
cell4Bottom: 116,
|
|
4324
4351
|
cell4Left: 913,
|
|
4325
|
-
cell4Right:
|
|
4352
|
+
cell4Right: 923,
|
|
4326
4353
|
// Status bar - WiFi icon
|
|
4327
4354
|
wifiTop: 79,
|
|
4328
|
-
wifiBottom:
|
|
4355
|
+
wifiBottom: 116,
|
|
4329
4356
|
wifiLeft: 945,
|
|
4330
|
-
wifiRight:
|
|
4357
|
+
wifiRight: 996,
|
|
4331
4358
|
// Status bar - Battery
|
|
4332
4359
|
batteryTop: 78,
|
|
4333
|
-
batteryBottom:
|
|
4360
|
+
batteryBottom: 117,
|
|
4334
4361
|
batteryLeft: 1018,
|
|
4335
|
-
batteryRight:
|
|
4362
|
+
batteryRight: 1100,
|
|
4363
|
+
// Status bar - Time
|
|
4364
|
+
time: "9:41",
|
|
4365
|
+
timeRight: 258,
|
|
4366
|
+
timeBottom: 116
|
|
4336
4367
|
};
|
|
4337
4368
|
function InstagramDmComposition(props) {
|
|
4338
4369
|
const {
|
|
@@ -5669,38 +5700,42 @@ var instagramDmSchema = import_zod.z.object({
|
|
|
5669
5700
|
videoIconLeft: import_zod.z.number().optional().default(948).describe("Video icon left X"),
|
|
5670
5701
|
videoIconRight: import_zod.z.number().optional().default(1020).describe("Video icon right X"),
|
|
5671
5702
|
// Header - Flag icon
|
|
5672
|
-
flagTop: import_zod.z.number().optional().default(
|
|
5673
|
-
flagBottom: import_zod.z.number().optional().default(
|
|
5674
|
-
flagLeft: import_zod.z.number().optional().default(
|
|
5675
|
-
flagRight: import_zod.z.number().optional().default(
|
|
5703
|
+
flagTop: import_zod.z.number().optional().default(237).describe("Flag icon top Y"),
|
|
5704
|
+
flagBottom: import_zod.z.number().optional().default(303).describe("Flag icon bottom Y"),
|
|
5705
|
+
flagLeft: import_zod.z.number().optional().default(1098).describe("Flag icon left X"),
|
|
5706
|
+
flagRight: import_zod.z.number().optional().default(1153).describe("Flag icon right X"),
|
|
5676
5707
|
// Status bar - Cell signal (0-4)
|
|
5677
5708
|
cellLevel: import_zod.z.number().min(0).max(4).optional().default(4).describe("Cell signal level (0-4)"),
|
|
5678
5709
|
cell1Top: import_zod.z.number().optional().default(102).describe("Cell bar 1 top Y"),
|
|
5679
|
-
cell1Bottom: import_zod.z.number().optional().default(
|
|
5710
|
+
cell1Bottom: import_zod.z.number().optional().default(116).describe("Cell bar 1 bottom Y"),
|
|
5680
5711
|
cell1Left: import_zod.z.number().optional().default(865).describe("Cell bar 1 left X"),
|
|
5681
|
-
cell1Right: import_zod.z.number().optional().default(
|
|
5712
|
+
cell1Right: import_zod.z.number().optional().default(875).describe("Cell bar 1 right X"),
|
|
5682
5713
|
cell2Top: import_zod.z.number().optional().default(95).describe("Cell bar 2 top Y"),
|
|
5683
|
-
cell2Bottom: import_zod.z.number().optional().default(
|
|
5714
|
+
cell2Bottom: import_zod.z.number().optional().default(116).describe("Cell bar 2 bottom Y"),
|
|
5684
5715
|
cell2Left: import_zod.z.number().optional().default(881).describe("Cell bar 2 left X"),
|
|
5685
|
-
cell2Right: import_zod.z.number().optional().default(
|
|
5716
|
+
cell2Right: import_zod.z.number().optional().default(891).describe("Cell bar 2 right X"),
|
|
5686
5717
|
cell3Top: import_zod.z.number().optional().default(87).describe("Cell bar 3 top Y"),
|
|
5687
|
-
cell3Bottom: import_zod.z.number().optional().default(
|
|
5718
|
+
cell3Bottom: import_zod.z.number().optional().default(116).describe("Cell bar 3 bottom Y"),
|
|
5688
5719
|
cell3Left: import_zod.z.number().optional().default(897).describe("Cell bar 3 left X"),
|
|
5689
|
-
cell3Right: import_zod.z.number().optional().default(
|
|
5720
|
+
cell3Right: import_zod.z.number().optional().default(907).describe("Cell bar 3 right X"),
|
|
5690
5721
|
cell4Top: import_zod.z.number().optional().default(79).describe("Cell bar 4 top Y"),
|
|
5691
|
-
cell4Bottom: import_zod.z.number().optional().default(
|
|
5722
|
+
cell4Bottom: import_zod.z.number().optional().default(116).describe("Cell bar 4 bottom Y"),
|
|
5692
5723
|
cell4Left: import_zod.z.number().optional().default(913).describe("Cell bar 4 left X"),
|
|
5693
|
-
cell4Right: import_zod.z.number().optional().default(
|
|
5724
|
+
cell4Right: import_zod.z.number().optional().default(923).describe("Cell bar 4 right X"),
|
|
5694
5725
|
// Status bar - WiFi icon
|
|
5695
5726
|
wifiTop: import_zod.z.number().optional().default(79).describe("WiFi icon top Y"),
|
|
5696
|
-
wifiBottom: import_zod.z.number().optional().default(
|
|
5727
|
+
wifiBottom: import_zod.z.number().optional().default(116).describe("WiFi icon bottom Y"),
|
|
5697
5728
|
wifiLeft: import_zod.z.number().optional().default(945).describe("WiFi icon left X"),
|
|
5698
|
-
wifiRight: import_zod.z.number().optional().default(
|
|
5729
|
+
wifiRight: import_zod.z.number().optional().default(996).describe("WiFi icon right X"),
|
|
5699
5730
|
// Status bar - Battery icon
|
|
5700
5731
|
batteryTop: import_zod.z.number().optional().default(78).describe("Battery icon top Y"),
|
|
5701
|
-
batteryBottom: import_zod.z.number().optional().default(
|
|
5732
|
+
batteryBottom: import_zod.z.number().optional().default(117).describe("Battery icon bottom Y"),
|
|
5702
5733
|
batteryLeft: import_zod.z.number().optional().default(1018).describe("Battery icon left X"),
|
|
5703
|
-
batteryRight: import_zod.z.number().optional().default(
|
|
5734
|
+
batteryRight: import_zod.z.number().optional().default(1100).describe("Battery icon right X"),
|
|
5735
|
+
// Status bar - Time display
|
|
5736
|
+
time: import_zod.z.string().optional().default("9:41").describe("Time string to display"),
|
|
5737
|
+
timeRight: import_zod.z.number().optional().default(258).describe("Time text right X (right-aligned)"),
|
|
5738
|
+
timeBottom: import_zod.z.number().optional().default(116).describe("Time text bottom Y")
|
|
5704
5739
|
});
|
|
5705
5740
|
var ImageComp = ImageEditorComposition;
|
|
5706
5741
|
var VideoComp = VideoEditorComposition;
|
package/dist/index.mjs
CHANGED
|
@@ -2540,14 +2540,18 @@ var HEADER_DEFAULTS = {
|
|
|
2540
2540
|
videoIconBottom: 300,
|
|
2541
2541
|
videoIconLeft: 948,
|
|
2542
2542
|
videoIconRight: 1020,
|
|
2543
|
-
flagTop:
|
|
2544
|
-
flagBottom:
|
|
2545
|
-
flagLeft:
|
|
2546
|
-
flagRight:
|
|
2543
|
+
flagTop: 237,
|
|
2544
|
+
flagBottom: 303,
|
|
2545
|
+
flagLeft: 1098,
|
|
2546
|
+
flagRight: 1153,
|
|
2547
2547
|
batteryTop: 78,
|
|
2548
|
-
batteryBottom:
|
|
2548
|
+
batteryBottom: 117,
|
|
2549
2549
|
batteryLeft: 1018,
|
|
2550
|
-
batteryRight:
|
|
2550
|
+
batteryRight: 1100,
|
|
2551
|
+
// Time display
|
|
2552
|
+
time: "9:41",
|
|
2553
|
+
timeRight: 258,
|
|
2554
|
+
timeBottom: 116
|
|
2551
2555
|
};
|
|
2552
2556
|
function generateHeaderElements(props) {
|
|
2553
2557
|
const elements = [];
|
|
@@ -2691,6 +2695,29 @@ function generateHeaderElements(props) {
|
|
|
2691
2695
|
inputId: ICON_INPUT_IDS.battery,
|
|
2692
2696
|
fit: "fill"
|
|
2693
2697
|
});
|
|
2698
|
+
const time = props.time ?? HEADER_DEFAULTS.time;
|
|
2699
|
+
const timeRight = props.timeRight ?? HEADER_DEFAULTS.timeRight;
|
|
2700
|
+
const timeBottom = props.timeBottom ?? HEADER_DEFAULTS.timeBottom;
|
|
2701
|
+
const timeFontSize = props.messageFontSize ?? MESSAGE_DEFAULTS.messageFontSize;
|
|
2702
|
+
const timeColor = props.bubbleTextColor ?? MESSAGE_DEFAULTS.bubbleTextColor;
|
|
2703
|
+
const timeHeight = timeFontSize;
|
|
2704
|
+
const timeTop = timeBottom - timeHeight;
|
|
2705
|
+
elements.push({
|
|
2706
|
+
id: "status-time",
|
|
2707
|
+
type: "text",
|
|
2708
|
+
x: 0,
|
|
2709
|
+
y: timeTop,
|
|
2710
|
+
width: timeRight,
|
|
2711
|
+
height: timeHeight,
|
|
2712
|
+
zIndex: 30,
|
|
2713
|
+
text: time,
|
|
2714
|
+
font: "apple",
|
|
2715
|
+
fontSize: timeFontSize,
|
|
2716
|
+
fontWeight: "semibold",
|
|
2717
|
+
color: timeColor,
|
|
2718
|
+
textAlign: "right",
|
|
2719
|
+
verticalAlign: "middle"
|
|
2720
|
+
});
|
|
2694
2721
|
return elements;
|
|
2695
2722
|
}
|
|
2696
2723
|
function generateFooterIconElements(props) {
|
|
@@ -3370,38 +3397,42 @@ var defaultInstagramDmProps = {
|
|
|
3370
3397
|
videoIconLeft: 948,
|
|
3371
3398
|
videoIconRight: 1020,
|
|
3372
3399
|
// Header - Flag icon
|
|
3373
|
-
flagTop:
|
|
3374
|
-
flagBottom:
|
|
3375
|
-
flagLeft:
|
|
3376
|
-
flagRight:
|
|
3400
|
+
flagTop: 237,
|
|
3401
|
+
flagBottom: 303,
|
|
3402
|
+
flagLeft: 1098,
|
|
3403
|
+
flagRight: 1153,
|
|
3377
3404
|
// Status bar - Cell signal
|
|
3378
3405
|
cellLevel: 4,
|
|
3379
3406
|
cell1Top: 102,
|
|
3380
|
-
cell1Bottom:
|
|
3407
|
+
cell1Bottom: 116,
|
|
3381
3408
|
cell1Left: 865,
|
|
3382
|
-
cell1Right:
|
|
3409
|
+
cell1Right: 875,
|
|
3383
3410
|
cell2Top: 95,
|
|
3384
|
-
cell2Bottom:
|
|
3411
|
+
cell2Bottom: 116,
|
|
3385
3412
|
cell2Left: 881,
|
|
3386
|
-
cell2Right:
|
|
3413
|
+
cell2Right: 891,
|
|
3387
3414
|
cell3Top: 87,
|
|
3388
|
-
cell3Bottom:
|
|
3415
|
+
cell3Bottom: 116,
|
|
3389
3416
|
cell3Left: 897,
|
|
3390
|
-
cell3Right:
|
|
3417
|
+
cell3Right: 907,
|
|
3391
3418
|
cell4Top: 79,
|
|
3392
|
-
cell4Bottom:
|
|
3419
|
+
cell4Bottom: 116,
|
|
3393
3420
|
cell4Left: 913,
|
|
3394
|
-
cell4Right:
|
|
3421
|
+
cell4Right: 923,
|
|
3395
3422
|
// Status bar - WiFi icon
|
|
3396
3423
|
wifiTop: 79,
|
|
3397
|
-
wifiBottom:
|
|
3424
|
+
wifiBottom: 116,
|
|
3398
3425
|
wifiLeft: 945,
|
|
3399
|
-
wifiRight:
|
|
3426
|
+
wifiRight: 996,
|
|
3400
3427
|
// Status bar - Battery
|
|
3401
3428
|
batteryTop: 78,
|
|
3402
|
-
batteryBottom:
|
|
3429
|
+
batteryBottom: 117,
|
|
3403
3430
|
batteryLeft: 1018,
|
|
3404
|
-
batteryRight:
|
|
3431
|
+
batteryRight: 1100,
|
|
3432
|
+
// Status bar - Time
|
|
3433
|
+
time: "9:41",
|
|
3434
|
+
timeRight: 258,
|
|
3435
|
+
timeBottom: 116
|
|
3405
3436
|
};
|
|
3406
3437
|
function InstagramDmComposition(props) {
|
|
3407
3438
|
const {
|
|
@@ -4455,38 +4486,42 @@ var instagramDmSchema = z.object({
|
|
|
4455
4486
|
videoIconLeft: z.number().optional().default(948).describe("Video icon left X"),
|
|
4456
4487
|
videoIconRight: z.number().optional().default(1020).describe("Video icon right X"),
|
|
4457
4488
|
// Header - Flag icon
|
|
4458
|
-
flagTop: z.number().optional().default(
|
|
4459
|
-
flagBottom: z.number().optional().default(
|
|
4460
|
-
flagLeft: z.number().optional().default(
|
|
4461
|
-
flagRight: z.number().optional().default(
|
|
4489
|
+
flagTop: z.number().optional().default(237).describe("Flag icon top Y"),
|
|
4490
|
+
flagBottom: z.number().optional().default(303).describe("Flag icon bottom Y"),
|
|
4491
|
+
flagLeft: z.number().optional().default(1098).describe("Flag icon left X"),
|
|
4492
|
+
flagRight: z.number().optional().default(1153).describe("Flag icon right X"),
|
|
4462
4493
|
// Status bar - Cell signal (0-4)
|
|
4463
4494
|
cellLevel: z.number().min(0).max(4).optional().default(4).describe("Cell signal level (0-4)"),
|
|
4464
4495
|
cell1Top: z.number().optional().default(102).describe("Cell bar 1 top Y"),
|
|
4465
|
-
cell1Bottom: z.number().optional().default(
|
|
4496
|
+
cell1Bottom: z.number().optional().default(116).describe("Cell bar 1 bottom Y"),
|
|
4466
4497
|
cell1Left: z.number().optional().default(865).describe("Cell bar 1 left X"),
|
|
4467
|
-
cell1Right: z.number().optional().default(
|
|
4498
|
+
cell1Right: z.number().optional().default(875).describe("Cell bar 1 right X"),
|
|
4468
4499
|
cell2Top: z.number().optional().default(95).describe("Cell bar 2 top Y"),
|
|
4469
|
-
cell2Bottom: z.number().optional().default(
|
|
4500
|
+
cell2Bottom: z.number().optional().default(116).describe("Cell bar 2 bottom Y"),
|
|
4470
4501
|
cell2Left: z.number().optional().default(881).describe("Cell bar 2 left X"),
|
|
4471
|
-
cell2Right: z.number().optional().default(
|
|
4502
|
+
cell2Right: z.number().optional().default(891).describe("Cell bar 2 right X"),
|
|
4472
4503
|
cell3Top: z.number().optional().default(87).describe("Cell bar 3 top Y"),
|
|
4473
|
-
cell3Bottom: z.number().optional().default(
|
|
4504
|
+
cell3Bottom: z.number().optional().default(116).describe("Cell bar 3 bottom Y"),
|
|
4474
4505
|
cell3Left: z.number().optional().default(897).describe("Cell bar 3 left X"),
|
|
4475
|
-
cell3Right: z.number().optional().default(
|
|
4506
|
+
cell3Right: z.number().optional().default(907).describe("Cell bar 3 right X"),
|
|
4476
4507
|
cell4Top: z.number().optional().default(79).describe("Cell bar 4 top Y"),
|
|
4477
|
-
cell4Bottom: z.number().optional().default(
|
|
4508
|
+
cell4Bottom: z.number().optional().default(116).describe("Cell bar 4 bottom Y"),
|
|
4478
4509
|
cell4Left: z.number().optional().default(913).describe("Cell bar 4 left X"),
|
|
4479
|
-
cell4Right: z.number().optional().default(
|
|
4510
|
+
cell4Right: z.number().optional().default(923).describe("Cell bar 4 right X"),
|
|
4480
4511
|
// Status bar - WiFi icon
|
|
4481
4512
|
wifiTop: z.number().optional().default(79).describe("WiFi icon top Y"),
|
|
4482
|
-
wifiBottom: z.number().optional().default(
|
|
4513
|
+
wifiBottom: z.number().optional().default(116).describe("WiFi icon bottom Y"),
|
|
4483
4514
|
wifiLeft: z.number().optional().default(945).describe("WiFi icon left X"),
|
|
4484
|
-
wifiRight: z.number().optional().default(
|
|
4515
|
+
wifiRight: z.number().optional().default(996).describe("WiFi icon right X"),
|
|
4485
4516
|
// Status bar - Battery icon
|
|
4486
4517
|
batteryTop: z.number().optional().default(78).describe("Battery icon top Y"),
|
|
4487
|
-
batteryBottom: z.number().optional().default(
|
|
4518
|
+
batteryBottom: z.number().optional().default(117).describe("Battery icon bottom Y"),
|
|
4488
4519
|
batteryLeft: z.number().optional().default(1018).describe("Battery icon left X"),
|
|
4489
|
-
batteryRight: z.number().optional().default(
|
|
4520
|
+
batteryRight: z.number().optional().default(1100).describe("Battery icon right X"),
|
|
4521
|
+
// Status bar - Time display
|
|
4522
|
+
time: z.string().optional().default("9:41").describe("Time string to display"),
|
|
4523
|
+
timeRight: z.number().optional().default(258).describe("Time text right X (right-aligned)"),
|
|
4524
|
+
timeBottom: z.number().optional().default(116).describe("Time text bottom Y")
|
|
4490
4525
|
});
|
|
4491
4526
|
var ImageComp = ImageEditorComposition;
|
|
4492
4527
|
var VideoComp = VideoEditorComposition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.131",
|
|
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",
|