ugcinc-render 1.8.2 → 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 +18 -19
- package/dist/index.mjs +18 -19
- package/package.json +1 -1
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,22 +2185,21 @@ function CaptionOverlay({ captions, style, previewTimeMs }) {
|
|
|
2185
2185
|
);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
word.word
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
);
|
|
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}`);
|
|
2204
2203
|
}) }) });
|
|
2205
2204
|
}
|
|
2206
2205
|
|
|
@@ -2219,7 +2218,7 @@ function AutoCaptionComposition({
|
|
|
2219
2218
|
style: {
|
|
2220
2219
|
width: "100%",
|
|
2221
2220
|
height: "100%",
|
|
2222
|
-
objectFit: "
|
|
2221
|
+
objectFit: "cover"
|
|
2223
2222
|
}
|
|
2224
2223
|
}
|
|
2225
2224
|
),
|
|
@@ -2239,7 +2238,7 @@ function AutoCaptionCompositionWithVideo({
|
|
|
2239
2238
|
style: {
|
|
2240
2239
|
width: "100%",
|
|
2241
2240
|
height: "100%",
|
|
2242
|
-
objectFit: "
|
|
2241
|
+
objectFit: "cover"
|
|
2243
2242
|
}
|
|
2244
2243
|
}
|
|
2245
2244
|
),
|
package/dist/index.mjs
CHANGED
|
@@ -1201,7 +1201,7 @@ 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
1206
|
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1207
1207
|
function createPages(words, wordsPerPage) {
|
|
@@ -1323,22 +1323,21 @@ function CaptionOverlay({ captions, style, previewTimeMs }) {
|
|
|
1323
1323
|
);
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
return /* @__PURE__ */ jsxs4(
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
word.word
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
);
|
|
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}`);
|
|
1342
1341
|
}) }) });
|
|
1343
1342
|
}
|
|
1344
1343
|
|
|
@@ -1357,7 +1356,7 @@ function AutoCaptionComposition({
|
|
|
1357
1356
|
style: {
|
|
1358
1357
|
width: "100%",
|
|
1359
1358
|
height: "100%",
|
|
1360
|
-
objectFit: "
|
|
1359
|
+
objectFit: "cover"
|
|
1361
1360
|
}
|
|
1362
1361
|
}
|
|
1363
1362
|
),
|
|
@@ -1377,7 +1376,7 @@ function AutoCaptionCompositionWithVideo({
|
|
|
1377
1376
|
style: {
|
|
1378
1377
|
width: "100%",
|
|
1379
1378
|
height: "100%",
|
|
1380
|
-
objectFit: "
|
|
1379
|
+
objectFit: "cover"
|
|
1381
1380
|
}
|
|
1382
1381
|
}
|
|
1383
1382
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
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",
|