ugcinc-render 1.8.3 → 1.8.4

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
@@ -2063,7 +2063,7 @@ function VideoEditorComposition({
2063
2063
  var import_remotion6 = require("remotion");
2064
2064
 
2065
2065
  // src/components/CaptionOverlay.tsx
2066
- var import_react6 = require("react");
2066
+ var import_react6 = __toESM(require("react"));
2067
2067
  var import_remotion5 = require("remotion");
2068
2068
  var import_jsx_runtime6 = require("react/jsx-runtime");
2069
2069
  function createPages(words, wordsPerPage) {
@@ -2185,20 +2185,21 @@ function CaptionOverlay({ captions, style, previewTimeMs }) {
2185
2185
  );
2186
2186
  }
2187
2187
  }
2188
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2189
- "span",
2190
- {
2191
- style: {
2192
- color,
2193
- display: "inline-block",
2194
- transform: `scale(${scale})`,
2195
- transformOrigin: "center center",
2196
- marginRight: index < currentPage.words.length - 1 ? "0.25em" : 0
2197
- },
2198
- children: word.word
2199
- },
2200
- `${word.word}-${word.startMs}-${index}`
2201
- );
2188
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react6.default.Fragment, { children: [
2189
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2190
+ "span",
2191
+ {
2192
+ style: {
2193
+ color,
2194
+ display: "inline-block",
2195
+ transform: `scale(${scale})`,
2196
+ transformOrigin: "center center"
2197
+ },
2198
+ children: word.word
2199
+ }
2200
+ ),
2201
+ index < currentPage.words.length - 1 && " "
2202
+ ] }, `${word.word}-${word.startMs}-${index}`);
2202
2203
  }) }) });
2203
2204
  }
2204
2205
 
package/dist/index.mjs CHANGED
@@ -1201,9 +1201,9 @@ function VideoEditorComposition({
1201
1201
  import { AbsoluteFill as AbsoluteFill3, Video, OffthreadVideo as OffthreadVideo2 } from "remotion";
1202
1202
 
1203
1203
  // src/components/CaptionOverlay.tsx
1204
- import { useMemo as useMemo6 } from "react";
1204
+ import React6, { useMemo as useMemo6 } from "react";
1205
1205
  import { useCurrentFrame as useCurrentFrame4, useVideoConfig as useVideoConfig4, interpolate } from "remotion";
1206
- import { jsx as jsx6 } from "react/jsx-runtime";
1206
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
1207
1207
  function createPages(words, wordsPerPage) {
1208
1208
  const pages = [];
1209
1209
  for (let i = 0; i < words.length; i += wordsPerPage) {
@@ -1323,31 +1323,32 @@ function CaptionOverlay({ captions, style, previewTimeMs }) {
1323
1323
  );
1324
1324
  }
1325
1325
  }
1326
- return /* @__PURE__ */ jsx6(
1327
- "span",
1328
- {
1329
- style: {
1330
- color,
1331
- display: "inline-block",
1332
- transform: `scale(${scale})`,
1333
- transformOrigin: "center center",
1334
- marginRight: index < currentPage.words.length - 1 ? "0.25em" : 0
1335
- },
1336
- children: word.word
1337
- },
1338
- `${word.word}-${word.startMs}-${index}`
1339
- );
1326
+ return /* @__PURE__ */ jsxs4(React6.Fragment, { children: [
1327
+ /* @__PURE__ */ jsx6(
1328
+ "span",
1329
+ {
1330
+ style: {
1331
+ color,
1332
+ display: "inline-block",
1333
+ transform: `scale(${scale})`,
1334
+ transformOrigin: "center center"
1335
+ },
1336
+ children: word.word
1337
+ }
1338
+ ),
1339
+ index < currentPage.words.length - 1 && " "
1340
+ ] }, `${word.word}-${word.startMs}-${index}`);
1340
1341
  }) }) });
1341
1342
  }
1342
1343
 
1343
1344
  // src/compositions/AutoCaptionComposition.tsx
1344
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1345
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1345
1346
  function AutoCaptionComposition({
1346
1347
  videoUrl,
1347
1348
  captions,
1348
1349
  style
1349
1350
  }) {
1350
- return /* @__PURE__ */ jsxs4(AbsoluteFill3, { style: { backgroundColor: "#000000" }, children: [
1351
+ return /* @__PURE__ */ jsxs5(AbsoluteFill3, { style: { backgroundColor: "#000000" }, children: [
1351
1352
  /* @__PURE__ */ jsx7(
1352
1353
  OffthreadVideo2,
1353
1354
  {
@@ -1367,7 +1368,7 @@ function AutoCaptionCompositionWithVideo({
1367
1368
  captions,
1368
1369
  style
1369
1370
  }) {
1370
- return /* @__PURE__ */ jsxs4(AbsoluteFill3, { style: { backgroundColor: "#000000" }, children: [
1371
+ return /* @__PURE__ */ jsxs5(AbsoluteFill3, { style: { backgroundColor: "#000000" }, children: [
1371
1372
  /* @__PURE__ */ jsx7(
1372
1373
  Video,
1373
1374
  {
@@ -1466,7 +1467,7 @@ function useResolvedPositions(elements, textValues) {
1466
1467
 
1467
1468
  // src/Root.tsx
1468
1469
  import { Composition } from "remotion";
1469
- import { Fragment, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1470
+ import { Fragment, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1470
1471
  var defaultImageProps = {
1471
1472
  config: {
1472
1473
  width: 1080,
@@ -1561,7 +1562,7 @@ var calculateImageMetadata = async ({ props }) => {
1561
1562
  };
1562
1563
  };
1563
1564
  var RenderRoot = () => {
1564
- return /* @__PURE__ */ jsxs5(Fragment, { children: [
1565
+ return /* @__PURE__ */ jsxs6(Fragment, { children: [
1565
1566
  /* @__PURE__ */ jsx8(
1566
1567
  Composition,
1567
1568
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
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",