ugcinc-render 1.8.70 → 1.8.71

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
@@ -2818,7 +2818,7 @@ function ScreenshotAnimation({
2818
2818
 
2819
2819
  // src/compositions/InstagramDmComposition/index.tsx
2820
2820
  var import_react8 = require("react");
2821
- var import_remotion8 = require("remotion");
2821
+ var import_remotion9 = require("remotion");
2822
2822
 
2823
2823
  // src/compositions/InstagramDmComposition/theme.ts
2824
2824
  var IG_THEME_COLORS = {
@@ -3075,6 +3075,7 @@ function DebugOverlay({
3075
3075
  }
3076
3076
 
3077
3077
  // src/compositions/InstagramDmComposition/components/IgMessageFooter.tsx
3078
+ var import_remotion8 = require("remotion");
3078
3079
  var import_jsx_runtime10 = require("react/jsx-runtime");
3079
3080
  var FOOTER_TOP = 2363;
3080
3081
  var FOOTER_BOTTOM = 2496;
@@ -3084,21 +3085,64 @@ var FOOTER_HEIGHT = FOOTER_BOTTOM - FOOTER_TOP;
3084
3085
  var FOOTER_WIDTH = FOOTER_RIGHT - FOOTER_LEFT;
3085
3086
  var FOOTER_BORDER_RADIUS = FOOTER_HEIGHT / 2;
3086
3087
  var FOOTER_BG_COLOR = "#0a0a0a";
3088
+ var CAMERA_BTN_LEFT = 39;
3089
+ var CAMERA_BTN_RIGHT = 141;
3090
+ var CAMERA_BTN_TOP = 2379;
3091
+ var CAMERA_BTN_BOTTOM = 2481;
3092
+ var CAMERA_BTN_WIDTH = CAMERA_BTN_RIGHT - CAMERA_BTN_LEFT;
3093
+ var CAMERA_BTN_HEIGHT = CAMERA_BTN_BOTTOM - CAMERA_BTN_TOP;
3094
+ var CAMERA_BTN_RADIUS = CAMERA_BTN_WIDTH / 2;
3095
+ var CAMERA_BTN_BG_COLOR = "#5354fc";
3096
+ var CAMERA_ICON_LEFT = 62;
3097
+ var CAMERA_ICON_RIGHT = 118;
3098
+ var CAMERA_ICON_TOP = 2400;
3099
+ var CAMERA_ICON_BOTTOM = 2454;
3100
+ var CAMERA_ICON_WIDTH = CAMERA_ICON_RIGHT - CAMERA_ICON_LEFT;
3101
+ var CAMERA_ICON_HEIGHT = CAMERA_ICON_BOTTOM - CAMERA_ICON_TOP;
3087
3102
  function IgMessageFooter({ theme }) {
3088
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3089
- "div",
3090
- {
3091
- style: {
3092
- position: "absolute",
3093
- top: FOOTER_TOP,
3094
- left: FOOTER_LEFT,
3095
- width: FOOTER_WIDTH,
3096
- height: FOOTER_HEIGHT,
3097
- backgroundColor: FOOTER_BG_COLOR,
3098
- borderRadius: FOOTER_BORDER_RADIUS
3103
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
3104
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3105
+ "div",
3106
+ {
3107
+ style: {
3108
+ position: "absolute",
3109
+ top: FOOTER_TOP,
3110
+ left: FOOTER_LEFT,
3111
+ width: FOOTER_WIDTH,
3112
+ height: FOOTER_HEIGHT,
3113
+ backgroundColor: FOOTER_BG_COLOR,
3114
+ borderRadius: FOOTER_BORDER_RADIUS
3115
+ }
3099
3116
  }
3100
- }
3101
- );
3117
+ ),
3118
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3119
+ "div",
3120
+ {
3121
+ style: {
3122
+ position: "absolute",
3123
+ top: CAMERA_BTN_TOP,
3124
+ left: CAMERA_BTN_LEFT,
3125
+ width: CAMERA_BTN_WIDTH,
3126
+ height: CAMERA_BTN_HEIGHT,
3127
+ backgroundColor: CAMERA_BTN_BG_COLOR,
3128
+ borderRadius: CAMERA_BTN_RADIUS
3129
+ }
3130
+ }
3131
+ ),
3132
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3133
+ import_remotion8.Img,
3134
+ {
3135
+ src: (0, import_remotion8.staticFile)("ig-camera.png"),
3136
+ style: {
3137
+ position: "absolute",
3138
+ top: CAMERA_ICON_TOP,
3139
+ left: CAMERA_ICON_LEFT,
3140
+ width: CAMERA_ICON_WIDTH,
3141
+ height: CAMERA_ICON_HEIGHT
3142
+ }
3143
+ }
3144
+ )
3145
+ ] });
3102
3146
  }
3103
3147
 
3104
3148
  // src/compositions/InstagramDmComposition/index.tsx
@@ -3155,18 +3199,18 @@ function InstagramDmComposition({
3155
3199
  };
3156
3200
  }, []);
3157
3201
  (0, import_react8.useEffect)(() => {
3158
- const handle = (0, import_remotion8.delayRender)("Loading fonts...");
3202
+ const handle = (0, import_remotion9.delayRender)("Loading fonts...");
3159
3203
  preloadFonts().then(() => {
3160
3204
  setFontsLoaded(true);
3161
- (0, import_remotion8.continueRender)(handle);
3205
+ (0, import_remotion9.continueRender)(handle);
3162
3206
  }).catch((err) => {
3163
3207
  console.error("Failed to load fonts:", err);
3164
3208
  setFontsLoaded(true);
3165
- (0, import_remotion8.continueRender)(handle);
3209
+ (0, import_remotion9.continueRender)(handle);
3166
3210
  });
3167
3211
  }, []);
3168
3212
  if (!fontsLoaded) {
3169
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_remotion8.AbsoluteFill, {});
3213
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_remotion9.AbsoluteFill, {});
3170
3214
  }
3171
3215
  const colors = getThemeColors(theme);
3172
3216
  const zoomScale = zoom / 100;
@@ -3186,7 +3230,7 @@ function InstagramDmComposition({
3186
3230
  opacity: showDebugOverlay ? 1 : clampedReferenceOpacity / 100
3187
3231
  },
3188
3232
  children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3189
- import_remotion8.Img,
3233
+ import_remotion9.Img,
3190
3234
  {
3191
3235
  src: referenceImageUrl,
3192
3236
  style: {
@@ -3200,7 +3244,7 @@ function InstagramDmComposition({
3200
3244
  )
3201
3245
  ] });
3202
3246
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
3203
- import_remotion8.AbsoluteFill,
3247
+ import_remotion9.AbsoluteFill,
3204
3248
  {
3205
3249
  style: {
3206
3250
  backgroundColor: colors.background,
@@ -3394,7 +3438,7 @@ function MessageBubble({
3394
3438
  }
3395
3439
 
3396
3440
  // src/compositions/messaging/components/ProfilePic.tsx
3397
- var import_remotion9 = require("remotion");
3441
+ var import_remotion10 = require("remotion");
3398
3442
  var import_jsx_runtime13 = require("react/jsx-runtime");
3399
3443
  function ProfilePic({
3400
3444
  src,
@@ -3429,7 +3473,7 @@ function ProfilePic({
3429
3473
  boxSizing: "border-box"
3430
3474
  },
3431
3475
  children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3432
- import_remotion9.Img,
3476
+ import_remotion10.Img,
3433
3477
  {
3434
3478
  src,
3435
3479
  style: {
@@ -3494,7 +3538,7 @@ function Reaction({
3494
3538
  }
3495
3539
 
3496
3540
  // src/compositions/messaging/components/TypingIndicator.tsx
3497
- var import_remotion10 = require("remotion");
3541
+ var import_remotion11 = require("remotion");
3498
3542
  var import_jsx_runtime15 = require("react/jsx-runtime");
3499
3543
  function gradientToCss2(color) {
3500
3544
  if (color.type === "solid") {
@@ -3524,7 +3568,7 @@ function TypingIndicator({
3524
3568
  paddingH,
3525
3569
  paddingV
3526
3570
  }) {
3527
- const frame = (0, import_remotion10.useCurrentFrame)();
3571
+ const frame = (0, import_remotion11.useCurrentFrame)();
3528
3572
  const dot1Y = calculateDotBounce(frame, 0);
3529
3573
  const dot2Y = calculateDotBounce(frame, 1);
3530
3574
  const dot3Y = calculateDotBounce(frame, 2);
@@ -3579,7 +3623,7 @@ function TypingIndicator({
3579
3623
  }
3580
3624
 
3581
3625
  // src/compositions/messaging/components/MediaBubble.tsx
3582
- var import_remotion11 = require("remotion");
3626
+ var import_remotion12 = require("remotion");
3583
3627
  var import_jsx_runtime16 = require("react/jsx-runtime");
3584
3628
  function MediaBubble({
3585
3629
  src,
@@ -3602,7 +3646,7 @@ function MediaBubble({
3602
3646
  boxSizing: "border-box"
3603
3647
  },
3604
3648
  children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3605
- import_remotion11.Img,
3649
+ import_remotion12.Img,
3606
3650
  {
3607
3651
  src,
3608
3652
  style: {
@@ -3984,7 +4028,7 @@ function useResolvedPositions(elements, textValues) {
3984
4028
  }
3985
4029
 
3986
4030
  // src/Root.tsx
3987
- var import_remotion12 = require("remotion");
4031
+ var import_remotion13 = require("remotion");
3988
4032
  var import_zod = require("zod");
3989
4033
  var import_jsx_runtime17 = require("react/jsx-runtime");
3990
4034
  var defaultImageProps = {
@@ -4236,7 +4280,7 @@ var calculateImageMetadata = async ({ props }) => {
4236
4280
  var RenderRoot = () => {
4237
4281
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
4238
4282
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4239
- import_remotion12.Composition,
4283
+ import_remotion13.Composition,
4240
4284
  {
4241
4285
  id: "ImageEditorComposition",
4242
4286
  component: ImageComp,
@@ -4249,7 +4293,7 @@ var RenderRoot = () => {
4249
4293
  }
4250
4294
  ),
4251
4295
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4252
- import_remotion12.Composition,
4296
+ import_remotion13.Composition,
4253
4297
  {
4254
4298
  id: "VideoEditorComposition",
4255
4299
  component: VideoComp,
@@ -4261,7 +4305,7 @@ var RenderRoot = () => {
4261
4305
  }
4262
4306
  ),
4263
4307
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4264
- import_remotion12.Composition,
4308
+ import_remotion13.Composition,
4265
4309
  {
4266
4310
  id: "AutoCaptionComposition",
4267
4311
  component: AutoCaptionComp,
@@ -4273,7 +4317,7 @@ var RenderRoot = () => {
4273
4317
  }
4274
4318
  ),
4275
4319
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4276
- import_remotion12.Composition,
4320
+ import_remotion13.Composition,
4277
4321
  {
4278
4322
  id: "ScreenshotAnimationComposition",
4279
4323
  component: ScreenshotAnimationComp,
@@ -4286,7 +4330,7 @@ var RenderRoot = () => {
4286
4330
  }
4287
4331
  ),
4288
4332
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4289
- import_remotion12.Composition,
4333
+ import_remotion13.Composition,
4290
4334
  {
4291
4335
  id: "InstagramDmComposition",
4292
4336
  component: InstagramDmComp,
package/dist/index.mjs CHANGED
@@ -1926,7 +1926,7 @@ function ScreenshotAnimation({
1926
1926
 
1927
1927
  // src/compositions/InstagramDmComposition/index.tsx
1928
1928
  import { useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
1929
- import { AbsoluteFill as AbsoluteFill5, Img as Img4, continueRender as continueRender2, delayRender as delayRender2 } from "remotion";
1929
+ import { AbsoluteFill as AbsoluteFill5, Img as Img5, continueRender as continueRender2, delayRender as delayRender2 } from "remotion";
1930
1930
 
1931
1931
  // src/compositions/InstagramDmComposition/theme.ts
1932
1932
  var IG_THEME_COLORS = {
@@ -2183,7 +2183,8 @@ function DebugOverlay({
2183
2183
  }
2184
2184
 
2185
2185
  // src/compositions/InstagramDmComposition/components/IgMessageFooter.tsx
2186
- import { jsx as jsx10 } from "react/jsx-runtime";
2186
+ import { Img as Img4, staticFile } from "remotion";
2187
+ import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
2187
2188
  var FOOTER_TOP = 2363;
2188
2189
  var FOOTER_BOTTOM = 2496;
2189
2190
  var FOOTER_LEFT = 24;
@@ -2192,25 +2193,68 @@ var FOOTER_HEIGHT = FOOTER_BOTTOM - FOOTER_TOP;
2192
2193
  var FOOTER_WIDTH = FOOTER_RIGHT - FOOTER_LEFT;
2193
2194
  var FOOTER_BORDER_RADIUS = FOOTER_HEIGHT / 2;
2194
2195
  var FOOTER_BG_COLOR = "#0a0a0a";
2196
+ var CAMERA_BTN_LEFT = 39;
2197
+ var CAMERA_BTN_RIGHT = 141;
2198
+ var CAMERA_BTN_TOP = 2379;
2199
+ var CAMERA_BTN_BOTTOM = 2481;
2200
+ var CAMERA_BTN_WIDTH = CAMERA_BTN_RIGHT - CAMERA_BTN_LEFT;
2201
+ var CAMERA_BTN_HEIGHT = CAMERA_BTN_BOTTOM - CAMERA_BTN_TOP;
2202
+ var CAMERA_BTN_RADIUS = CAMERA_BTN_WIDTH / 2;
2203
+ var CAMERA_BTN_BG_COLOR = "#5354fc";
2204
+ var CAMERA_ICON_LEFT = 62;
2205
+ var CAMERA_ICON_RIGHT = 118;
2206
+ var CAMERA_ICON_TOP = 2400;
2207
+ var CAMERA_ICON_BOTTOM = 2454;
2208
+ var CAMERA_ICON_WIDTH = CAMERA_ICON_RIGHT - CAMERA_ICON_LEFT;
2209
+ var CAMERA_ICON_HEIGHT = CAMERA_ICON_BOTTOM - CAMERA_ICON_TOP;
2195
2210
  function IgMessageFooter({ theme }) {
2196
- return /* @__PURE__ */ jsx10(
2197
- "div",
2198
- {
2199
- style: {
2200
- position: "absolute",
2201
- top: FOOTER_TOP,
2202
- left: FOOTER_LEFT,
2203
- width: FOOTER_WIDTH,
2204
- height: FOOTER_HEIGHT,
2205
- backgroundColor: FOOTER_BG_COLOR,
2206
- borderRadius: FOOTER_BORDER_RADIUS
2211
+ return /* @__PURE__ */ jsxs8(Fragment2, { children: [
2212
+ /* @__PURE__ */ jsx10(
2213
+ "div",
2214
+ {
2215
+ style: {
2216
+ position: "absolute",
2217
+ top: FOOTER_TOP,
2218
+ left: FOOTER_LEFT,
2219
+ width: FOOTER_WIDTH,
2220
+ height: FOOTER_HEIGHT,
2221
+ backgroundColor: FOOTER_BG_COLOR,
2222
+ borderRadius: FOOTER_BORDER_RADIUS
2223
+ }
2207
2224
  }
2208
- }
2209
- );
2225
+ ),
2226
+ /* @__PURE__ */ jsx10(
2227
+ "div",
2228
+ {
2229
+ style: {
2230
+ position: "absolute",
2231
+ top: CAMERA_BTN_TOP,
2232
+ left: CAMERA_BTN_LEFT,
2233
+ width: CAMERA_BTN_WIDTH,
2234
+ height: CAMERA_BTN_HEIGHT,
2235
+ backgroundColor: CAMERA_BTN_BG_COLOR,
2236
+ borderRadius: CAMERA_BTN_RADIUS
2237
+ }
2238
+ }
2239
+ ),
2240
+ /* @__PURE__ */ jsx10(
2241
+ Img4,
2242
+ {
2243
+ src: staticFile("ig-camera.png"),
2244
+ style: {
2245
+ position: "absolute",
2246
+ top: CAMERA_ICON_TOP,
2247
+ left: CAMERA_ICON_LEFT,
2248
+ width: CAMERA_ICON_WIDTH,
2249
+ height: CAMERA_ICON_HEIGHT
2250
+ }
2251
+ }
2252
+ )
2253
+ ] });
2210
2254
  }
2211
2255
 
2212
2256
  // src/compositions/InstagramDmComposition/index.tsx
2213
- import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
2257
+ import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
2214
2258
  var defaultInstagramDmProps = {
2215
2259
  showDebugOverlay: true,
2216
2260
  referenceImageUrl: "https://n14dcpakf8w1fekl.public.blob.vercel-storage.com/media/8ff1462b-13d7-4abe-9325-0a6ad19004f0/IMG_3171-DmKgZAYCYJpLxiZjJBYYCk4mynmjkv.png",
@@ -2278,7 +2322,7 @@ function InstagramDmComposition({
2278
2322
  }
2279
2323
  const colors = getThemeColors(theme);
2280
2324
  const zoomScale = zoom / 100;
2281
- const renderContent = () => /* @__PURE__ */ jsxs8(Fragment2, { children: [
2325
+ const renderContent = () => /* @__PURE__ */ jsxs9(Fragment3, { children: [
2282
2326
  /* @__PURE__ */ jsx11(IgMessageFooter, { theme }),
2283
2327
  referenceImageUrl && (showDebugOverlay ? referenceVisible : clampedReferenceOpacity > 0) && /* @__PURE__ */ jsx11(
2284
2328
  "div",
@@ -2294,7 +2338,7 @@ function InstagramDmComposition({
2294
2338
  opacity: showDebugOverlay ? 1 : clampedReferenceOpacity / 100
2295
2339
  },
2296
2340
  children: /* @__PURE__ */ jsx11(
2297
- Img4,
2341
+ Img5,
2298
2342
  {
2299
2343
  src: referenceImageUrl,
2300
2344
  style: {
@@ -2307,7 +2351,7 @@ function InstagramDmComposition({
2307
2351
  }
2308
2352
  )
2309
2353
  ] });
2310
- return /* @__PURE__ */ jsxs8(
2354
+ return /* @__PURE__ */ jsxs9(
2311
2355
  AbsoluteFill5,
2312
2356
  {
2313
2357
  style: {
@@ -2502,8 +2546,8 @@ function MessageBubble({
2502
2546
  }
2503
2547
 
2504
2548
  // src/compositions/messaging/components/ProfilePic.tsx
2505
- import { Img as Img5 } from "remotion";
2506
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
2549
+ import { Img as Img6 } from "remotion";
2550
+ import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
2507
2551
  function ProfilePic({
2508
2552
  src,
2509
2553
  size,
@@ -2515,7 +2559,7 @@ function ProfilePic({
2515
2559
  }) {
2516
2560
  const activeSize = size * activeIndicatorRatio;
2517
2561
  const activeBorderWidth = activeSize * 0.15;
2518
- return /* @__PURE__ */ jsxs9(
2562
+ return /* @__PURE__ */ jsxs10(
2519
2563
  "div",
2520
2564
  {
2521
2565
  style: {
@@ -2537,7 +2581,7 @@ function ProfilePic({
2537
2581
  boxSizing: "border-box"
2538
2582
  },
2539
2583
  children: /* @__PURE__ */ jsx13(
2540
- Img5,
2584
+ Img6,
2541
2585
  {
2542
2586
  src,
2543
2587
  style: {
@@ -2603,7 +2647,7 @@ function Reaction({
2603
2647
 
2604
2648
  // src/compositions/messaging/components/TypingIndicator.tsx
2605
2649
  import { useCurrentFrame as useCurrentFrame6 } from "remotion";
2606
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2650
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
2607
2651
  function gradientToCss2(color) {
2608
2652
  if (color.type === "solid") {
2609
2653
  return color.colors[0];
@@ -2642,7 +2686,7 @@ function TypingIndicator({
2642
2686
  borderRadius: "50%",
2643
2687
  backgroundColor: dotColor
2644
2688
  };
2645
- return /* @__PURE__ */ jsxs10(
2689
+ return /* @__PURE__ */ jsxs11(
2646
2690
  "div",
2647
2691
  {
2648
2692
  style: {
@@ -2687,7 +2731,7 @@ function TypingIndicator({
2687
2731
  }
2688
2732
 
2689
2733
  // src/compositions/messaging/components/MediaBubble.tsx
2690
- import { Img as Img6 } from "remotion";
2734
+ import { Img as Img7 } from "remotion";
2691
2735
  import { jsx as jsx16 } from "react/jsx-runtime";
2692
2736
  function MediaBubble({
2693
2737
  src,
@@ -2710,7 +2754,7 @@ function MediaBubble({
2710
2754
  boxSizing: "border-box"
2711
2755
  },
2712
2756
  children: /* @__PURE__ */ jsx16(
2713
- Img6,
2757
+ Img7,
2714
2758
  {
2715
2759
  src,
2716
2760
  style: {
@@ -2811,7 +2855,7 @@ function useResolvedPositions(elements, textValues) {
2811
2855
  // src/Root.tsx
2812
2856
  import { Composition } from "remotion";
2813
2857
  import { z } from "zod";
2814
- import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
2858
+ import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
2815
2859
  var defaultImageProps = {
2816
2860
  config: {
2817
2861
  width: 1080,
@@ -3059,7 +3103,7 @@ var calculateImageMetadata = async ({ props }) => {
3059
3103
  };
3060
3104
  };
3061
3105
  var RenderRoot = () => {
3062
- return /* @__PURE__ */ jsxs11(Fragment3, { children: [
3106
+ return /* @__PURE__ */ jsxs12(Fragment4, { children: [
3063
3107
  /* @__PURE__ */ jsx17(
3064
3108
  Composition,
3065
3109
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.70",
3
+ "version": "1.8.71",
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",