ugcinc-render 1.8.8 → 1.8.9

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
@@ -2739,6 +2739,7 @@ function useResolvedPositions(elements, textValues) {
2739
2739
 
2740
2740
  // src/Root.tsx
2741
2741
  var import_remotion8 = require("remotion");
2742
+ var import_zod = require("zod");
2742
2743
  var import_jsx_runtime9 = require("react/jsx-runtime");
2743
2744
  var defaultImageProps = {
2744
2745
  config: {
@@ -2786,6 +2787,11 @@ var defaultScreenshotAnimationProps = {
2786
2787
  width: 1080,
2787
2788
  height: 1920
2788
2789
  };
2790
+ var screenshotAnimationSchema = import_zod.z.object({
2791
+ imageUrl: import_zod.z.string().describe("URL of the image to screenshot"),
2792
+ width: import_zod.z.number().optional().default(1080).describe("Canvas width"),
2793
+ height: import_zod.z.number().optional().default(1920).describe("Canvas height")
2794
+ });
2789
2795
  var ImageComp = ImageEditorComposition;
2790
2796
  var VideoComp = VideoEditorComposition;
2791
2797
  var AutoCaptionComp = AutoCaptionComposition;
@@ -2883,6 +2889,7 @@ var RenderRoot = () => {
2883
2889
  {
2884
2890
  id: "ScreenshotAnimationComposition",
2885
2891
  component: ScreenshotAnimationComp,
2892
+ schema: screenshotAnimationSchema,
2886
2893
  durationInFrames: 60,
2887
2894
  fps: 30,
2888
2895
  width: 1080,
package/dist/index.mjs CHANGED
@@ -1593,6 +1593,7 @@ function useResolvedPositions(elements, textValues) {
1593
1593
 
1594
1594
  // src/Root.tsx
1595
1595
  import { Composition } from "remotion";
1596
+ import { z } from "zod";
1596
1597
  import { Fragment, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1597
1598
  var defaultImageProps = {
1598
1599
  config: {
@@ -1640,6 +1641,11 @@ var defaultScreenshotAnimationProps = {
1640
1641
  width: 1080,
1641
1642
  height: 1920
1642
1643
  };
1644
+ var screenshotAnimationSchema = z.object({
1645
+ imageUrl: z.string().describe("URL of the image to screenshot"),
1646
+ width: z.number().optional().default(1080).describe("Canvas width"),
1647
+ height: z.number().optional().default(1920).describe("Canvas height")
1648
+ });
1643
1649
  var ImageComp = ImageEditorComposition;
1644
1650
  var VideoComp = VideoEditorComposition;
1645
1651
  var AutoCaptionComp = AutoCaptionComposition;
@@ -1737,6 +1743,7 @@ var RenderRoot = () => {
1737
1743
  {
1738
1744
  id: "ScreenshotAnimationComposition",
1739
1745
  component: ScreenshotAnimationComp,
1746
+ schema: screenshotAnimationSchema,
1740
1747
  durationInFrames: 60,
1741
1748
  fps: 30,
1742
1749
  width: 1080,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
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",
@@ -55,7 +55,8 @@
55
55
  "remotion": "^4.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@remotion/player": "^4.0.0"
58
+ "@remotion/player": "^4.0.0",
59
+ "zod": "^3.22.0"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@remotion/bundler": "^4.0.0",