ugcinc-render 1.8.49 → 1.8.51
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 +146 -6
- package/dist/index.mjs +146 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4341,8 +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
|
-
width:
|
|
4345
|
-
height:
|
|
4344
|
+
width: 1206,
|
|
4345
|
+
height: 2622,
|
|
4346
4346
|
durationInFrames: 90,
|
|
4347
4347
|
fps: 30,
|
|
4348
4348
|
theme: "dark",
|
|
@@ -4371,8 +4371,8 @@ var defaultInstagramDmProps = {
|
|
|
4371
4371
|
}
|
|
4372
4372
|
};
|
|
4373
4373
|
function InstagramDmComposition({
|
|
4374
|
-
width =
|
|
4375
|
-
height =
|
|
4374
|
+
width = 1206,
|
|
4375
|
+
height = 2622,
|
|
4376
4376
|
theme,
|
|
4377
4377
|
statusBar,
|
|
4378
4378
|
user,
|
|
@@ -4917,6 +4917,145 @@ var screenshotAnimationSchema = import_zod.z.object({
|
|
|
4917
4917
|
borderColor: import_zod.z.string().optional().default("rgba(254, 255, 255, 1)").describe("Border color"),
|
|
4918
4918
|
backgroundColor: import_zod.z.string().optional().default("#000000").describe("Background color")
|
|
4919
4919
|
});
|
|
4920
|
+
var gradientColorSchema = import_zod.z.object({
|
|
4921
|
+
type: import_zod.z.enum(["solid", "linear"]).describe("Color type"),
|
|
4922
|
+
colors: import_zod.z.array(import_zod.z.string()).describe("Color values"),
|
|
4923
|
+
angle: import_zod.z.number().optional().describe("Gradient angle in degrees")
|
|
4924
|
+
});
|
|
4925
|
+
var messageReactionSchema = import_zod.z.object({
|
|
4926
|
+
emoji: import_zod.z.string().describe("Reaction emoji"),
|
|
4927
|
+
fromUser: import_zod.z.boolean().describe("Is reaction from user")
|
|
4928
|
+
});
|
|
4929
|
+
var baseMessageSchema = import_zod.z.object({
|
|
4930
|
+
id: import_zod.z.string().describe("Message ID"),
|
|
4931
|
+
sender: import_zod.z.enum(["user", "recipient"]).describe("Message sender"),
|
|
4932
|
+
reaction: messageReactionSchema.optional().describe("Message reaction")
|
|
4933
|
+
});
|
|
4934
|
+
var textMessageSchema = baseMessageSchema.extend({
|
|
4935
|
+
type: import_zod.z.literal("text"),
|
|
4936
|
+
text: import_zod.z.string().describe("Message text")
|
|
4937
|
+
});
|
|
4938
|
+
var imageMessageSchema = baseMessageSchema.extend({
|
|
4939
|
+
type: import_zod.z.literal("image"),
|
|
4940
|
+
imageInputId: import_zod.z.string().describe("Image input ID")
|
|
4941
|
+
});
|
|
4942
|
+
var storyReplyMessageSchema = baseMessageSchema.extend({
|
|
4943
|
+
type: import_zod.z.literal("story-reply"),
|
|
4944
|
+
storyLabel: import_zod.z.string().describe("Story reply label"),
|
|
4945
|
+
imageInputId: import_zod.z.string().describe("Story image input ID"),
|
|
4946
|
+
replyText: import_zod.z.string().optional().describe("Reply text")
|
|
4947
|
+
});
|
|
4948
|
+
var igMessageSchema = import_zod.z.discriminatedUnion("type", [
|
|
4949
|
+
textMessageSchema,
|
|
4950
|
+
imageMessageSchema,
|
|
4951
|
+
storyReplyMessageSchema
|
|
4952
|
+
]);
|
|
4953
|
+
var igUserProfileSchema = import_zod.z.object({
|
|
4954
|
+
username: import_zod.z.string().describe("Username"),
|
|
4955
|
+
displayName: import_zod.z.string().optional().describe("Display name"),
|
|
4956
|
+
avatarInputId: import_zod.z.string().describe("Avatar image input ID"),
|
|
4957
|
+
verified: import_zod.z.boolean().optional().describe("Is verified"),
|
|
4958
|
+
isActive: import_zod.z.boolean().optional().describe("Is active now")
|
|
4959
|
+
});
|
|
4960
|
+
var igStatusBarSchema = import_zod.z.object({
|
|
4961
|
+
time: import_zod.z.string().describe("Status bar time"),
|
|
4962
|
+
showCellular: import_zod.z.boolean().optional().default(true).describe("Show cellular icon"),
|
|
4963
|
+
showWifi: import_zod.z.boolean().optional().default(true).describe("Show WiFi icon"),
|
|
4964
|
+
showBattery: import_zod.z.boolean().optional().default(true).describe("Show battery icon"),
|
|
4965
|
+
batteryLevel: import_zod.z.number().optional().default(100).describe("Battery level 0-100"),
|
|
4966
|
+
isCharging: import_zod.z.boolean().optional().default(false).describe("Is charging")
|
|
4967
|
+
});
|
|
4968
|
+
var igHeaderConfigSchema = import_zod.z.object({
|
|
4969
|
+
height: import_zod.z.number().default(110).describe("Header height (px)"),
|
|
4970
|
+
showBackButton: import_zod.z.boolean().default(true).describe("Show back button"),
|
|
4971
|
+
showVideoCallButton: import_zod.z.boolean().default(true).describe("Show video call button"),
|
|
4972
|
+
showCallButton: import_zod.z.boolean().default(true).describe("Show call button"),
|
|
4973
|
+
showInfoButton: import_zod.z.boolean().default(true).describe("Show info button")
|
|
4974
|
+
});
|
|
4975
|
+
var igFooterConfigSchema = import_zod.z.object({
|
|
4976
|
+
height: import_zod.z.number().default(90).describe("Footer height (px)"),
|
|
4977
|
+
showCamera: import_zod.z.boolean().default(true).describe("Show camera button"),
|
|
4978
|
+
showGallery: import_zod.z.boolean().default(true).describe("Show gallery button"),
|
|
4979
|
+
showMic: import_zod.z.boolean().default(true).describe("Show mic button"),
|
|
4980
|
+
showSticker: import_zod.z.boolean().default(true).describe("Show sticker button"),
|
|
4981
|
+
placeholderText: import_zod.z.string().default("Message...").describe("Input placeholder"),
|
|
4982
|
+
inputText: import_zod.z.string().optional().describe("Text in input field")
|
|
4983
|
+
});
|
|
4984
|
+
var igMessageStyleSchema = import_zod.z.object({
|
|
4985
|
+
// Text styling
|
|
4986
|
+
fontSize: import_zod.z.number().default(28).describe("Font size (px)"),
|
|
4987
|
+
fontWeight: import_zod.z.enum(["normal", "bold"]).default("normal").describe("Font weight"),
|
|
4988
|
+
lineHeight: import_zod.z.number().default(1.35).describe("Line height multiplier"),
|
|
4989
|
+
letterSpacing: import_zod.z.number().default(0).describe("Letter spacing (px)"),
|
|
4990
|
+
// Bubble colors
|
|
4991
|
+
userBubbleColor: gradientColorSchema.default({ type: "solid", colors: ["#3797F0"] }).describe("User bubble color"),
|
|
4992
|
+
recipientBubbleColor: gradientColorSchema.default({ type: "solid", colors: ["#262626"] }).describe("Recipient bubble color"),
|
|
4993
|
+
userTextColor: import_zod.z.string().default("#FFFFFF").describe("User text color"),
|
|
4994
|
+
recipientTextColor: import_zod.z.string().default("#FFFFFF").describe("Recipient text color"),
|
|
4995
|
+
// Bubble sizing
|
|
4996
|
+
bubbleMaxWidth: import_zod.z.number().default(70).describe("Max bubble width (%)"),
|
|
4997
|
+
bubblePaddingH: import_zod.z.number().default(14).describe("Bubble horizontal padding (px)"),
|
|
4998
|
+
bubblePaddingV: import_zod.z.number().default(10).describe("Bubble vertical padding (px)"),
|
|
4999
|
+
// Corner radii
|
|
5000
|
+
bubbleRadiusOuter: import_zod.z.number().default(20).describe("Outer corner radius (px)"),
|
|
5001
|
+
bubbleRadiusInner: import_zod.z.number().default(4).describe("Inner corner radius (px)"),
|
|
5002
|
+
// Spacing
|
|
5003
|
+
messageGapInGroup: import_zod.z.number().default(2).describe("Gap between messages in group (px)"),
|
|
5004
|
+
messageGapBetweenGroups: import_zod.z.number().default(10).describe("Gap between groups (px)"),
|
|
5005
|
+
sideMargin: import_zod.z.number().default(16).describe("Side margin (px)"),
|
|
5006
|
+
// Media
|
|
5007
|
+
mediaMaxWidth: import_zod.z.number().default(220).describe("Media max width (px)"),
|
|
5008
|
+
mediaMaxHeight: import_zod.z.number().default(300).describe("Media max height (px)"),
|
|
5009
|
+
mediaBorderRadius: import_zod.z.number().default(18).describe("Media border radius (px)"),
|
|
5010
|
+
// Story reply
|
|
5011
|
+
storyReplyLabelColor: import_zod.z.string().default("#A8A8A8").describe("Story label color"),
|
|
5012
|
+
storyReplyLabelSize: import_zod.z.number().default(20).describe("Story label font size (px)"),
|
|
5013
|
+
storyImageSize: import_zod.z.number().default(80).describe("Story image size (px)"),
|
|
5014
|
+
storyImageRadius: import_zod.z.number().default(8).describe("Story image radius (px)"),
|
|
5015
|
+
// Reactions
|
|
5016
|
+
reactionSize: import_zod.z.number().default(20).describe("Reaction emoji size (px)"),
|
|
5017
|
+
reactionBubbleColor: import_zod.z.string().default("#363636").describe("Reaction bubble color"),
|
|
5018
|
+
reactionBorderRadius: import_zod.z.number().default(10).describe("Reaction border radius (px)"),
|
|
5019
|
+
reactionOffsetY: import_zod.z.number().default(-6).describe("Reaction Y offset (px)"),
|
|
5020
|
+
// Typing indicator
|
|
5021
|
+
typingDotSize: import_zod.z.number().default(8).describe("Typing dot size (px)"),
|
|
5022
|
+
typingDotColor: import_zod.z.string().default("#A8A8A8").describe("Typing dot color"),
|
|
5023
|
+
typingDotSpacing: import_zod.z.number().default(4).describe("Typing dot spacing (px)"),
|
|
5024
|
+
typingBubblePaddingH: import_zod.z.number().default(16).describe("Typing bubble H padding (px)"),
|
|
5025
|
+
typingBubblePaddingV: import_zod.z.number().default(14).describe("Typing bubble V padding (px)"),
|
|
5026
|
+
// Profile picture
|
|
5027
|
+
profilePicSize: import_zod.z.number().default(28).describe("Profile pic size (px)"),
|
|
5028
|
+
profilePicGap: import_zod.z.number().default(8).describe("Profile pic gap (px)")
|
|
5029
|
+
});
|
|
5030
|
+
var readReceiptSchema = import_zod.z.object({
|
|
5031
|
+
state: import_zod.z.enum(["none", "sent", "delivered", "seen"]).describe("Receipt state"),
|
|
5032
|
+
showAvatar: import_zod.z.boolean().optional().describe("Show avatar for seen"),
|
|
5033
|
+
timestamp: import_zod.z.string().optional().describe("Timestamp text")
|
|
5034
|
+
});
|
|
5035
|
+
var instagramDmSchema = import_zod.z.object({
|
|
5036
|
+
// Canvas
|
|
5037
|
+
width: import_zod.z.number().optional().default(1206).describe("Canvas width (px)"),
|
|
5038
|
+
height: import_zod.z.number().optional().default(2622).describe("Canvas height (px)"),
|
|
5039
|
+
// Theme
|
|
5040
|
+
theme: import_zod.z.enum(["light", "dark"]).describe("Color theme"),
|
|
5041
|
+
// Status bar
|
|
5042
|
+
statusBar: igStatusBarSchema.describe("Status bar config"),
|
|
5043
|
+
// Profiles
|
|
5044
|
+
user: igUserProfileSchema.describe("User profile"),
|
|
5045
|
+
recipient: igUserProfileSchema.describe("Recipient profile"),
|
|
5046
|
+
// Messages
|
|
5047
|
+
messages: import_zod.z.array(igMessageSchema).describe("Messages array"),
|
|
5048
|
+
showTypingIndicator: import_zod.z.boolean().optional().default(false).describe("Show typing indicator"),
|
|
5049
|
+
readReceipt: readReceiptSchema.optional().describe("Read receipt"),
|
|
5050
|
+
// Image URLs
|
|
5051
|
+
imageUrls: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).describe("Image URLs map"),
|
|
5052
|
+
// Styling
|
|
5053
|
+
messageStyle: igMessageStyleSchema.optional().describe("Message styling"),
|
|
5054
|
+
headerConfig: igHeaderConfigSchema.optional().describe("Header config"),
|
|
5055
|
+
footerConfig: igFooterConfigSchema.optional().describe("Footer config"),
|
|
5056
|
+
// Scroll
|
|
5057
|
+
scrollOffset: import_zod.z.number().optional().default(0).describe("Scroll offset (px)")
|
|
5058
|
+
});
|
|
4920
5059
|
var ImageComp = ImageEditorComposition;
|
|
4921
5060
|
var VideoComp = VideoEditorComposition;
|
|
4922
5061
|
var AutoCaptionComp = AutoCaptionComposition;
|
|
@@ -5028,10 +5167,11 @@ var RenderRoot = () => {
|
|
|
5028
5167
|
{
|
|
5029
5168
|
id: "InstagramDmComposition",
|
|
5030
5169
|
component: InstagramDmComp,
|
|
5170
|
+
schema: instagramDmSchema,
|
|
5031
5171
|
durationInFrames: 90,
|
|
5032
5172
|
fps: 30,
|
|
5033
|
-
width:
|
|
5034
|
-
height:
|
|
5173
|
+
width: 1206,
|
|
5174
|
+
height: 2622,
|
|
5035
5175
|
defaultProps: defaultInstagramDmProps
|
|
5036
5176
|
}
|
|
5037
5177
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -3445,8 +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
|
-
width:
|
|
3449
|
-
height:
|
|
3448
|
+
width: 1206,
|
|
3449
|
+
height: 2622,
|
|
3450
3450
|
durationInFrames: 90,
|
|
3451
3451
|
fps: 30,
|
|
3452
3452
|
theme: "dark",
|
|
@@ -3475,8 +3475,8 @@ var defaultInstagramDmProps = {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
};
|
|
3477
3477
|
function InstagramDmComposition({
|
|
3478
|
-
width =
|
|
3479
|
-
height =
|
|
3478
|
+
width = 1206,
|
|
3479
|
+
height = 2622,
|
|
3480
3480
|
theme,
|
|
3481
3481
|
statusBar,
|
|
3482
3482
|
user,
|
|
@@ -3738,6 +3738,145 @@ var screenshotAnimationSchema = z.object({
|
|
|
3738
3738
|
borderColor: z.string().optional().default("rgba(254, 255, 255, 1)").describe("Border color"),
|
|
3739
3739
|
backgroundColor: z.string().optional().default("#000000").describe("Background color")
|
|
3740
3740
|
});
|
|
3741
|
+
var gradientColorSchema = z.object({
|
|
3742
|
+
type: z.enum(["solid", "linear"]).describe("Color type"),
|
|
3743
|
+
colors: z.array(z.string()).describe("Color values"),
|
|
3744
|
+
angle: z.number().optional().describe("Gradient angle in degrees")
|
|
3745
|
+
});
|
|
3746
|
+
var messageReactionSchema = z.object({
|
|
3747
|
+
emoji: z.string().describe("Reaction emoji"),
|
|
3748
|
+
fromUser: z.boolean().describe("Is reaction from user")
|
|
3749
|
+
});
|
|
3750
|
+
var baseMessageSchema = z.object({
|
|
3751
|
+
id: z.string().describe("Message ID"),
|
|
3752
|
+
sender: z.enum(["user", "recipient"]).describe("Message sender"),
|
|
3753
|
+
reaction: messageReactionSchema.optional().describe("Message reaction")
|
|
3754
|
+
});
|
|
3755
|
+
var textMessageSchema = baseMessageSchema.extend({
|
|
3756
|
+
type: z.literal("text"),
|
|
3757
|
+
text: z.string().describe("Message text")
|
|
3758
|
+
});
|
|
3759
|
+
var imageMessageSchema = baseMessageSchema.extend({
|
|
3760
|
+
type: z.literal("image"),
|
|
3761
|
+
imageInputId: z.string().describe("Image input ID")
|
|
3762
|
+
});
|
|
3763
|
+
var storyReplyMessageSchema = baseMessageSchema.extend({
|
|
3764
|
+
type: z.literal("story-reply"),
|
|
3765
|
+
storyLabel: z.string().describe("Story reply label"),
|
|
3766
|
+
imageInputId: z.string().describe("Story image input ID"),
|
|
3767
|
+
replyText: z.string().optional().describe("Reply text")
|
|
3768
|
+
});
|
|
3769
|
+
var igMessageSchema = z.discriminatedUnion("type", [
|
|
3770
|
+
textMessageSchema,
|
|
3771
|
+
imageMessageSchema,
|
|
3772
|
+
storyReplyMessageSchema
|
|
3773
|
+
]);
|
|
3774
|
+
var igUserProfileSchema = z.object({
|
|
3775
|
+
username: z.string().describe("Username"),
|
|
3776
|
+
displayName: z.string().optional().describe("Display name"),
|
|
3777
|
+
avatarInputId: z.string().describe("Avatar image input ID"),
|
|
3778
|
+
verified: z.boolean().optional().describe("Is verified"),
|
|
3779
|
+
isActive: z.boolean().optional().describe("Is active now")
|
|
3780
|
+
});
|
|
3781
|
+
var igStatusBarSchema = z.object({
|
|
3782
|
+
time: z.string().describe("Status bar time"),
|
|
3783
|
+
showCellular: z.boolean().optional().default(true).describe("Show cellular icon"),
|
|
3784
|
+
showWifi: z.boolean().optional().default(true).describe("Show WiFi icon"),
|
|
3785
|
+
showBattery: z.boolean().optional().default(true).describe("Show battery icon"),
|
|
3786
|
+
batteryLevel: z.number().optional().default(100).describe("Battery level 0-100"),
|
|
3787
|
+
isCharging: z.boolean().optional().default(false).describe("Is charging")
|
|
3788
|
+
});
|
|
3789
|
+
var igHeaderConfigSchema = z.object({
|
|
3790
|
+
height: z.number().default(110).describe("Header height (px)"),
|
|
3791
|
+
showBackButton: z.boolean().default(true).describe("Show back button"),
|
|
3792
|
+
showVideoCallButton: z.boolean().default(true).describe("Show video call button"),
|
|
3793
|
+
showCallButton: z.boolean().default(true).describe("Show call button"),
|
|
3794
|
+
showInfoButton: z.boolean().default(true).describe("Show info button")
|
|
3795
|
+
});
|
|
3796
|
+
var igFooterConfigSchema = z.object({
|
|
3797
|
+
height: z.number().default(90).describe("Footer height (px)"),
|
|
3798
|
+
showCamera: z.boolean().default(true).describe("Show camera button"),
|
|
3799
|
+
showGallery: z.boolean().default(true).describe("Show gallery button"),
|
|
3800
|
+
showMic: z.boolean().default(true).describe("Show mic button"),
|
|
3801
|
+
showSticker: z.boolean().default(true).describe("Show sticker button"),
|
|
3802
|
+
placeholderText: z.string().default("Message...").describe("Input placeholder"),
|
|
3803
|
+
inputText: z.string().optional().describe("Text in input field")
|
|
3804
|
+
});
|
|
3805
|
+
var igMessageStyleSchema = z.object({
|
|
3806
|
+
// Text styling
|
|
3807
|
+
fontSize: z.number().default(28).describe("Font size (px)"),
|
|
3808
|
+
fontWeight: z.enum(["normal", "bold"]).default("normal").describe("Font weight"),
|
|
3809
|
+
lineHeight: z.number().default(1.35).describe("Line height multiplier"),
|
|
3810
|
+
letterSpacing: z.number().default(0).describe("Letter spacing (px)"),
|
|
3811
|
+
// Bubble colors
|
|
3812
|
+
userBubbleColor: gradientColorSchema.default({ type: "solid", colors: ["#3797F0"] }).describe("User bubble color"),
|
|
3813
|
+
recipientBubbleColor: gradientColorSchema.default({ type: "solid", colors: ["#262626"] }).describe("Recipient bubble color"),
|
|
3814
|
+
userTextColor: z.string().default("#FFFFFF").describe("User text color"),
|
|
3815
|
+
recipientTextColor: z.string().default("#FFFFFF").describe("Recipient text color"),
|
|
3816
|
+
// Bubble sizing
|
|
3817
|
+
bubbleMaxWidth: z.number().default(70).describe("Max bubble width (%)"),
|
|
3818
|
+
bubblePaddingH: z.number().default(14).describe("Bubble horizontal padding (px)"),
|
|
3819
|
+
bubblePaddingV: z.number().default(10).describe("Bubble vertical padding (px)"),
|
|
3820
|
+
// Corner radii
|
|
3821
|
+
bubbleRadiusOuter: z.number().default(20).describe("Outer corner radius (px)"),
|
|
3822
|
+
bubbleRadiusInner: z.number().default(4).describe("Inner corner radius (px)"),
|
|
3823
|
+
// Spacing
|
|
3824
|
+
messageGapInGroup: z.number().default(2).describe("Gap between messages in group (px)"),
|
|
3825
|
+
messageGapBetweenGroups: z.number().default(10).describe("Gap between groups (px)"),
|
|
3826
|
+
sideMargin: z.number().default(16).describe("Side margin (px)"),
|
|
3827
|
+
// Media
|
|
3828
|
+
mediaMaxWidth: z.number().default(220).describe("Media max width (px)"),
|
|
3829
|
+
mediaMaxHeight: z.number().default(300).describe("Media max height (px)"),
|
|
3830
|
+
mediaBorderRadius: z.number().default(18).describe("Media border radius (px)"),
|
|
3831
|
+
// Story reply
|
|
3832
|
+
storyReplyLabelColor: z.string().default("#A8A8A8").describe("Story label color"),
|
|
3833
|
+
storyReplyLabelSize: z.number().default(20).describe("Story label font size (px)"),
|
|
3834
|
+
storyImageSize: z.number().default(80).describe("Story image size (px)"),
|
|
3835
|
+
storyImageRadius: z.number().default(8).describe("Story image radius (px)"),
|
|
3836
|
+
// Reactions
|
|
3837
|
+
reactionSize: z.number().default(20).describe("Reaction emoji size (px)"),
|
|
3838
|
+
reactionBubbleColor: z.string().default("#363636").describe("Reaction bubble color"),
|
|
3839
|
+
reactionBorderRadius: z.number().default(10).describe("Reaction border radius (px)"),
|
|
3840
|
+
reactionOffsetY: z.number().default(-6).describe("Reaction Y offset (px)"),
|
|
3841
|
+
// Typing indicator
|
|
3842
|
+
typingDotSize: z.number().default(8).describe("Typing dot size (px)"),
|
|
3843
|
+
typingDotColor: z.string().default("#A8A8A8").describe("Typing dot color"),
|
|
3844
|
+
typingDotSpacing: z.number().default(4).describe("Typing dot spacing (px)"),
|
|
3845
|
+
typingBubblePaddingH: z.number().default(16).describe("Typing bubble H padding (px)"),
|
|
3846
|
+
typingBubblePaddingV: z.number().default(14).describe("Typing bubble V padding (px)"),
|
|
3847
|
+
// Profile picture
|
|
3848
|
+
profilePicSize: z.number().default(28).describe("Profile pic size (px)"),
|
|
3849
|
+
profilePicGap: z.number().default(8).describe("Profile pic gap (px)")
|
|
3850
|
+
});
|
|
3851
|
+
var readReceiptSchema = z.object({
|
|
3852
|
+
state: z.enum(["none", "sent", "delivered", "seen"]).describe("Receipt state"),
|
|
3853
|
+
showAvatar: z.boolean().optional().describe("Show avatar for seen"),
|
|
3854
|
+
timestamp: z.string().optional().describe("Timestamp text")
|
|
3855
|
+
});
|
|
3856
|
+
var instagramDmSchema = z.object({
|
|
3857
|
+
// Canvas
|
|
3858
|
+
width: z.number().optional().default(1206).describe("Canvas width (px)"),
|
|
3859
|
+
height: z.number().optional().default(2622).describe("Canvas height (px)"),
|
|
3860
|
+
// Theme
|
|
3861
|
+
theme: z.enum(["light", "dark"]).describe("Color theme"),
|
|
3862
|
+
// Status bar
|
|
3863
|
+
statusBar: igStatusBarSchema.describe("Status bar config"),
|
|
3864
|
+
// Profiles
|
|
3865
|
+
user: igUserProfileSchema.describe("User profile"),
|
|
3866
|
+
recipient: igUserProfileSchema.describe("Recipient profile"),
|
|
3867
|
+
// Messages
|
|
3868
|
+
messages: z.array(igMessageSchema).describe("Messages array"),
|
|
3869
|
+
showTypingIndicator: z.boolean().optional().default(false).describe("Show typing indicator"),
|
|
3870
|
+
readReceipt: readReceiptSchema.optional().describe("Read receipt"),
|
|
3871
|
+
// Image URLs
|
|
3872
|
+
imageUrls: z.record(z.string(), z.string()).describe("Image URLs map"),
|
|
3873
|
+
// Styling
|
|
3874
|
+
messageStyle: igMessageStyleSchema.optional().describe("Message styling"),
|
|
3875
|
+
headerConfig: igHeaderConfigSchema.optional().describe("Header config"),
|
|
3876
|
+
footerConfig: igFooterConfigSchema.optional().describe("Footer config"),
|
|
3877
|
+
// Scroll
|
|
3878
|
+
scrollOffset: z.number().optional().default(0).describe("Scroll offset (px)")
|
|
3879
|
+
});
|
|
3741
3880
|
var ImageComp = ImageEditorComposition;
|
|
3742
3881
|
var VideoComp = VideoEditorComposition;
|
|
3743
3882
|
var AutoCaptionComp = AutoCaptionComposition;
|
|
@@ -3849,10 +3988,11 @@ var RenderRoot = () => {
|
|
|
3849
3988
|
{
|
|
3850
3989
|
id: "InstagramDmComposition",
|
|
3851
3990
|
component: InstagramDmComp,
|
|
3991
|
+
schema: instagramDmSchema,
|
|
3852
3992
|
durationInFrames: 90,
|
|
3853
3993
|
fps: 30,
|
|
3854
|
-
width:
|
|
3855
|
-
height:
|
|
3994
|
+
width: 1206,
|
|
3995
|
+
height: 2622,
|
|
3856
3996
|
defaultProps: defaultInstagramDmProps
|
|
3857
3997
|
}
|
|
3858
3998
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.51",
|
|
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",
|