ugcinc 4.5.7 → 4.5.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.
@@ -110,7 +110,7 @@ const definition = (0, types_1.defineNode)({
110
110
  const selectedVideoUrl = (0, selection_1.selectFromPool)(videoUrlPool, selectionMode, index, `preview-${output.id}`);
111
111
  const selectedIdx = selectedVideoUrl ? videoUrlPool.indexOf(selectedVideoUrl) : -1;
112
112
  const selectedThumbnail = selectedIdx >= 0 ? thumbnailPool[selectedIdx] : undefined;
113
- result[output.id] = { url: selectedVideoUrl ?? selected, thumbnailUrl: selectedThumbnail };
113
+ result[output.id] = { url: selectedVideoUrl ?? selected, thumbnail: selectedThumbnail };
114
114
  }
115
115
  else if (portType === 'image') {
116
116
  result[output.id] = { url: selected };
@@ -91,7 +91,6 @@ export interface ImageValue {
91
91
  */
92
92
  export interface VideoValue {
93
93
  url: string;
94
- thumbnailUrl?: string;
95
94
  width?: number;
96
95
  height?: number;
97
96
  duration?: number;
@@ -173,7 +173,7 @@ function RGBAShiftOverlay({ src, srcType }) {
173
173
  const mediaStyle = {
174
174
  width: '100%',
175
175
  height: '100%',
176
- objectFit: 'cover',
176
+ objectFit: 'contain',
177
177
  };
178
178
  const MediaElement = srcType === 'video'
179
179
  ? () => (0, jsx_runtime_1.jsx)(remotion_1.Video, { src: src, style: mediaStyle })
@@ -305,7 +305,7 @@ function DeduplicationPreview({ src, srcType, config, }) {
305
305
  const mediaStyle = {
306
306
  width: '100%',
307
307
  height: '100%',
308
- objectFit: 'cover',
308
+ objectFit: 'contain',
309
309
  };
310
310
  return ((0, jsx_runtime_1.jsxs)(remotion_1.AbsoluteFill, { style: { backgroundColor: '#000000' }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
311
311
  position: 'absolute',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.7",
3
+ "version": "4.5.9",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",