ugcinc-render 1.8.52 → 1.8.53
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 +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +33 -0
- package/dist/index.mjs +34 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -927,9 +927,13 @@ interface IgCropConfig {
|
|
|
927
927
|
}
|
|
928
928
|
/** Instagram DM Composition props */
|
|
929
929
|
interface InstagramDmCompositionProps {
|
|
930
|
-
/**
|
|
930
|
+
/** URL of a reference screenshot to overlay on top */
|
|
931
|
+
referenceImageUrl?: string;
|
|
932
|
+
/** Opacity of the reference overlay (0-100, default: 50) */
|
|
933
|
+
referenceOpacity?: number;
|
|
934
|
+
/** Canvas width in pixels (default: 1206) */
|
|
931
935
|
width?: number;
|
|
932
|
-
/** Canvas height in pixels (default:
|
|
936
|
+
/** Canvas height in pixels (default: 2622) */
|
|
933
937
|
height?: number;
|
|
934
938
|
/** Duration in frames */
|
|
935
939
|
durationInFrames?: number;
|
|
@@ -983,7 +987,7 @@ declare const DEFAULT_MESSAGE_STYLE: IgMessageStyle;
|
|
|
983
987
|
* Default composition props for registration
|
|
984
988
|
*/
|
|
985
989
|
declare const defaultInstagramDmProps: InstagramDmCompositionProps;
|
|
986
|
-
declare function InstagramDmComposition({ width, height, theme, statusBar, user, recipient, messages, showTypingIndicator, readReceipt, imageUrls, messageStyle, headerConfig, footerConfig, scrollOffset, }: InstagramDmCompositionProps): react_jsx_runtime.JSX.Element;
|
|
990
|
+
declare function InstagramDmComposition({ referenceImageUrl, referenceOpacity, width, height, theme, statusBar, user, recipient, messages, showTypingIndicator, readReceipt, imageUrls, messageStyle, headerConfig, footerConfig, scrollOffset, }: InstagramDmCompositionProps): react_jsx_runtime.JSX.Element;
|
|
987
991
|
|
|
988
992
|
/**
|
|
989
993
|
* Message grouping utility
|
package/dist/index.d.ts
CHANGED
|
@@ -927,9 +927,13 @@ interface IgCropConfig {
|
|
|
927
927
|
}
|
|
928
928
|
/** Instagram DM Composition props */
|
|
929
929
|
interface InstagramDmCompositionProps {
|
|
930
|
-
/**
|
|
930
|
+
/** URL of a reference screenshot to overlay on top */
|
|
931
|
+
referenceImageUrl?: string;
|
|
932
|
+
/** Opacity of the reference overlay (0-100, default: 50) */
|
|
933
|
+
referenceOpacity?: number;
|
|
934
|
+
/** Canvas width in pixels (default: 1206) */
|
|
931
935
|
width?: number;
|
|
932
|
-
/** Canvas height in pixels (default:
|
|
936
|
+
/** Canvas height in pixels (default: 2622) */
|
|
933
937
|
height?: number;
|
|
934
938
|
/** Duration in frames */
|
|
935
939
|
durationInFrames?: number;
|
|
@@ -983,7 +987,7 @@ declare const DEFAULT_MESSAGE_STYLE: IgMessageStyle;
|
|
|
983
987
|
* Default composition props for registration
|
|
984
988
|
*/
|
|
985
989
|
declare const defaultInstagramDmProps: InstagramDmCompositionProps;
|
|
986
|
-
declare function InstagramDmComposition({ width, height, theme, statusBar, user, recipient, messages, showTypingIndicator, readReceipt, imageUrls, messageStyle, headerConfig, footerConfig, scrollOffset, }: InstagramDmCompositionProps): react_jsx_runtime.JSX.Element;
|
|
990
|
+
declare function InstagramDmComposition({ referenceImageUrl, referenceOpacity, width, height, theme, statusBar, user, recipient, messages, showTypingIndicator, readReceipt, imageUrls, messageStyle, headerConfig, footerConfig, scrollOffset, }: InstagramDmCompositionProps): react_jsx_runtime.JSX.Element;
|
|
987
991
|
|
|
988
992
|
/**
|
|
989
993
|
* Message grouping utility
|
package/dist/index.js
CHANGED
|
@@ -4341,6 +4341,8 @@ function IgMessageList({
|
|
|
4341
4341
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
4342
4342
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
4343
4343
|
var defaultInstagramDmProps = {
|
|
4344
|
+
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
|
|
4345
|
+
referenceOpacity: 50,
|
|
4344
4346
|
width: 1206,
|
|
4345
4347
|
height: 2622,
|
|
4346
4348
|
durationInFrames: 90,
|
|
@@ -4371,6 +4373,8 @@ var defaultInstagramDmProps = {
|
|
|
4371
4373
|
}
|
|
4372
4374
|
};
|
|
4373
4375
|
function InstagramDmComposition({
|
|
4376
|
+
referenceImageUrl,
|
|
4377
|
+
referenceOpacity = 50,
|
|
4374
4378
|
width = 1206,
|
|
4375
4379
|
height = 2622,
|
|
4376
4380
|
theme,
|
|
@@ -4480,6 +4484,32 @@ function InstagramDmComposition({
|
|
|
4480
4484
|
theme,
|
|
4481
4485
|
compositionHeight: height
|
|
4482
4486
|
}
|
|
4487
|
+
),
|
|
4488
|
+
referenceImageUrl && referenceOpacity > 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4489
|
+
"div",
|
|
4490
|
+
{
|
|
4491
|
+
style: {
|
|
4492
|
+
position: "absolute",
|
|
4493
|
+
top: 0,
|
|
4494
|
+
left: 0,
|
|
4495
|
+
right: 0,
|
|
4496
|
+
bottom: 0,
|
|
4497
|
+
zIndex: 100,
|
|
4498
|
+
pointerEvents: "none",
|
|
4499
|
+
opacity: referenceOpacity / 100
|
|
4500
|
+
},
|
|
4501
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4502
|
+
import_remotion14.Img,
|
|
4503
|
+
{
|
|
4504
|
+
src: referenceImageUrl,
|
|
4505
|
+
style: {
|
|
4506
|
+
width: "100%",
|
|
4507
|
+
height: "100%",
|
|
4508
|
+
objectFit: "cover"
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
)
|
|
4512
|
+
}
|
|
4483
4513
|
)
|
|
4484
4514
|
]
|
|
4485
4515
|
}
|
|
@@ -5033,6 +5063,9 @@ var readReceiptSchema = import_zod.z.object({
|
|
|
5033
5063
|
timestamp: import_zod.z.string().optional().describe("Timestamp text")
|
|
5034
5064
|
});
|
|
5035
5065
|
var instagramDmSchema = import_zod.z.object({
|
|
5066
|
+
// Reference overlay
|
|
5067
|
+
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"),
|
|
5068
|
+
referenceOpacity: import_zod.z.number().optional().default(50).describe("Reference overlay opacity (0-100)"),
|
|
5036
5069
|
// Canvas
|
|
5037
5070
|
width: import_zod.z.number().optional().default(1206).describe("Canvas width (px)"),
|
|
5038
5071
|
height: import_zod.z.number().optional().default(2622).describe("Canvas height (px)"),
|
package/dist/index.mjs
CHANGED
|
@@ -1834,7 +1834,7 @@ function ScreenshotAnimation({
|
|
|
1834
1834
|
|
|
1835
1835
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
1836
1836
|
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
1837
|
-
import { AbsoluteFill as AbsoluteFill5, continueRender as continueRender2, delayRender as delayRender2 } from "remotion";
|
|
1837
|
+
import { AbsoluteFill as AbsoluteFill5, Img as Img9, continueRender as continueRender2, delayRender as delayRender2 } from "remotion";
|
|
1838
1838
|
|
|
1839
1839
|
// src/compositions/InstagramDmComposition/theme.ts
|
|
1840
1840
|
var IG_THEME_COLORS = {
|
|
@@ -3445,6 +3445,8 @@ function IgMessageList({
|
|
|
3445
3445
|
// src/compositions/InstagramDmComposition/index.tsx
|
|
3446
3446
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3447
3447
|
var defaultInstagramDmProps = {
|
|
3448
|
+
referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3153-TiJrpzJKKvsTsjmP9zIX5LpoT8s2hF.png",
|
|
3449
|
+
referenceOpacity: 50,
|
|
3448
3450
|
width: 1206,
|
|
3449
3451
|
height: 2622,
|
|
3450
3452
|
durationInFrames: 90,
|
|
@@ -3475,6 +3477,8 @@ var defaultInstagramDmProps = {
|
|
|
3475
3477
|
}
|
|
3476
3478
|
};
|
|
3477
3479
|
function InstagramDmComposition({
|
|
3480
|
+
referenceImageUrl,
|
|
3481
|
+
referenceOpacity = 50,
|
|
3478
3482
|
width = 1206,
|
|
3479
3483
|
height = 2622,
|
|
3480
3484
|
theme,
|
|
@@ -3584,6 +3588,32 @@ function InstagramDmComposition({
|
|
|
3584
3588
|
theme,
|
|
3585
3589
|
compositionHeight: height
|
|
3586
3590
|
}
|
|
3591
|
+
),
|
|
3592
|
+
referenceImageUrl && referenceOpacity > 0 && /* @__PURE__ */ jsx22(
|
|
3593
|
+
"div",
|
|
3594
|
+
{
|
|
3595
|
+
style: {
|
|
3596
|
+
position: "absolute",
|
|
3597
|
+
top: 0,
|
|
3598
|
+
left: 0,
|
|
3599
|
+
right: 0,
|
|
3600
|
+
bottom: 0,
|
|
3601
|
+
zIndex: 100,
|
|
3602
|
+
pointerEvents: "none",
|
|
3603
|
+
opacity: referenceOpacity / 100
|
|
3604
|
+
},
|
|
3605
|
+
children: /* @__PURE__ */ jsx22(
|
|
3606
|
+
Img9,
|
|
3607
|
+
{
|
|
3608
|
+
src: referenceImageUrl,
|
|
3609
|
+
style: {
|
|
3610
|
+
width: "100%",
|
|
3611
|
+
height: "100%",
|
|
3612
|
+
objectFit: "cover"
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
)
|
|
3616
|
+
}
|
|
3587
3617
|
)
|
|
3588
3618
|
]
|
|
3589
3619
|
}
|
|
@@ -3854,6 +3884,9 @@ var readReceiptSchema = z.object({
|
|
|
3854
3884
|
timestamp: z.string().optional().describe("Timestamp text")
|
|
3855
3885
|
});
|
|
3856
3886
|
var instagramDmSchema = z.object({
|
|
3887
|
+
// Reference overlay
|
|
3888
|
+
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"),
|
|
3889
|
+
referenceOpacity: z.number().optional().default(50).describe("Reference overlay opacity (0-100)"),
|
|
3857
3890
|
// Canvas
|
|
3858
3891
|
width: z.number().optional().default(1206).describe("Canvas width (px)"),
|
|
3859
3892
|
height: z.number().optional().default(2622).describe("Canvas height (px)"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.53",
|
|
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",
|