ugcinc-render 1.8.213 → 1.8.215
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.
|
@@ -275,6 +275,16 @@ interface CropBounds {
|
|
|
275
275
|
* before rendering.
|
|
276
276
|
*/
|
|
277
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Lightweight media reference stored in editor configs.
|
|
280
|
+
* Structurally compatible with the full Media type from ugcinc.
|
|
281
|
+
*/
|
|
282
|
+
interface StaticMediaItem {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string | null;
|
|
285
|
+
url: string | null;
|
|
286
|
+
type: string | null;
|
|
287
|
+
}
|
|
278
288
|
/**
|
|
279
289
|
* Dimension preset keys for image editor
|
|
280
290
|
*/
|
|
@@ -365,6 +375,10 @@ interface ImageEditorElement {
|
|
|
365
375
|
boxAlign?: 'left' | 'center' | 'right';
|
|
366
376
|
/** Maps to input port (e.g., "image_1", "image_2") */
|
|
367
377
|
inputId?: string;
|
|
378
|
+
/** Whether this image comes from a variable input port (default: true for backwards compat) */
|
|
379
|
+
imageIsVariable?: boolean;
|
|
380
|
+
/** Selected media items for static image selection */
|
|
381
|
+
imageMedia?: StaticMediaItem[];
|
|
368
382
|
/** How the image fits its container */
|
|
369
383
|
fit?: FitMode;
|
|
370
384
|
/** Opacity percentage 0-100 */
|
|
@@ -391,6 +405,10 @@ interface ImageEditorNodeConfig {
|
|
|
391
405
|
elements: ImageEditorElement[];
|
|
392
406
|
/** Background type: 'image' for image input, 'color' for solid color */
|
|
393
407
|
backgroundType?: 'image' | 'color';
|
|
408
|
+
/** Whether background image comes from a variable input port (default: true for backwards compat) */
|
|
409
|
+
backgroundIsVariable?: boolean;
|
|
410
|
+
/** Selected media items for static background image */
|
|
411
|
+
backgroundMedia?: StaticMediaItem[];
|
|
394
412
|
/** Background color (hex) when backgroundType is 'color' */
|
|
395
413
|
backgroundColor?: string;
|
|
396
414
|
/** How the background image fits the canvas */
|
|
@@ -1165,4 +1183,4 @@ declare function getCaptionPresetNames(): CaptionPreset[];
|
|
|
1165
1183
|
*/
|
|
1166
1184
|
declare function isValidCaptionPreset(name: string): name is CaptionPreset;
|
|
1167
1185
|
|
|
1168
|
-
export {
|
|
1186
|
+
export { type ScreenshotAnimationConfig as $, type AutoCaptionCompositionProps as A, type BorderRadiusConfig as B, type CaptionOverlayProps as C, type DynamicCropConfig as D, type VideoEditorVideoSequenceSegment as E, type FitMode as F, type VideoEditorSegment as G, type Hyphenation as H, type ImageEditorElement as I, type VideoEditorChannel as J, type VideoEditorNodeConfig as K, type SegmentTimelinePosition as L, type CropBoundary as M, type CropAxisConfig as N, type CropBounds as O, type PositionResolutionResult as P, type CaptionWord as Q, type RelativePositionConfigX as R, type SegmentType as S, type TimeValue as T, type CaptionPage as U, type VerticalAlignment as V, type WordBreak as W, type CaptionPreset as X, type CaptionPosition as Y, type CaptionFontWeight as Z, type CaptionStyle as _, type RelativePositionConfigY as a, SCREENSHOT_ANIMATION_DEFAULTS as a0, calculateScreenshotAnimationDuration as a1, FONT_FAMILIES as a2, APPLE_EMOJI_FONT as a3, getFontFamily as a4, buildFontString as a5, FONT_URLS as a6, preloadFonts as a7, areFontsLoaded as a8, debugFontStatus as a9, getOverlays as aA, getSegmentTimelinePosition as aB, isSegmentVisibleAtTime as aC, calculateEstimatedDuration as aD, calculateTimelineContentEnd as aE, formatTime as aF, parseTime as aG, generateSegmentId as aH, generateOverlayId as aI, CAPTION_PRESETS as aJ, DEFAULT_CAPTION_STYLE as aK, resolveCaptionStyle as aL, getCaptionPresetNames as aM, isValidCaptionPreset as aN, calculateFitDimensions as aa, type FitDimensions as ab, TEXT_DEFAULTS as ac, IMAGE_DEFAULTS as ad, VIDEO_DEFAULTS as ae, VISUAL_DEFAULTS as af, applyTextDefaults as ag, applyImageDefaults as ah, applyVideoDefaults as ai, wrapText as aj, calculateLineWidth as ak, getBorderRadii as al, parseHexColor as am, hexToRgba as an, getSFProLetterSpacing as ao, resolveElementPositions as ap, calculateAutoWidthDimensions as aq, canSetAsReference as ar, getDependentElements as as, getReferenceElementX as at, getReferenceElementY as au, type PositionResolutionError as av, calculateCropBounds as aw, isDynamicCropEnabled as ax, defaultOffset as ay, getBaseSegments as az, type TextStyleProperties as b, type ScreenshotAnimationProps as c, type FontWeight as d, type FontType as e, type TextAlignment as f, type TextDirection as g, type TextWrap as h, type TextOverflow as i, type VerticalAnchor as j, type HorizontalAnchor as k, type HorizontalSelfAnchor as l, type VerticalSelfAnchor as m, type ImageEditorNodeConfig as n, type StaticMediaItem as o, type DimensionPresetKey as p, type DimensionPreset as q, DIMENSION_PRESETS as r, type TimeMode as s, type VideoEditorBaseSegment as t, type VideoEditorVisualSegment as u, type VideoEditorVideoSegment as v, type VideoEditorAudioSegment as w, type VideoEditorImageSegment as x, type VideoEditorTextSegment as y, type VideoEditorImageSequenceSegment as z };
|
|
@@ -275,6 +275,16 @@ interface CropBounds {
|
|
|
275
275
|
* before rendering.
|
|
276
276
|
*/
|
|
277
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Lightweight media reference stored in editor configs.
|
|
280
|
+
* Structurally compatible with the full Media type from ugcinc.
|
|
281
|
+
*/
|
|
282
|
+
interface StaticMediaItem {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string | null;
|
|
285
|
+
url: string | null;
|
|
286
|
+
type: string | null;
|
|
287
|
+
}
|
|
278
288
|
/**
|
|
279
289
|
* Dimension preset keys for image editor
|
|
280
290
|
*/
|
|
@@ -365,6 +375,10 @@ interface ImageEditorElement {
|
|
|
365
375
|
boxAlign?: 'left' | 'center' | 'right';
|
|
366
376
|
/** Maps to input port (e.g., "image_1", "image_2") */
|
|
367
377
|
inputId?: string;
|
|
378
|
+
/** Whether this image comes from a variable input port (default: true for backwards compat) */
|
|
379
|
+
imageIsVariable?: boolean;
|
|
380
|
+
/** Selected media items for static image selection */
|
|
381
|
+
imageMedia?: StaticMediaItem[];
|
|
368
382
|
/** How the image fits its container */
|
|
369
383
|
fit?: FitMode;
|
|
370
384
|
/** Opacity percentage 0-100 */
|
|
@@ -391,6 +405,10 @@ interface ImageEditorNodeConfig {
|
|
|
391
405
|
elements: ImageEditorElement[];
|
|
392
406
|
/** Background type: 'image' for image input, 'color' for solid color */
|
|
393
407
|
backgroundType?: 'image' | 'color';
|
|
408
|
+
/** Whether background image comes from a variable input port (default: true for backwards compat) */
|
|
409
|
+
backgroundIsVariable?: boolean;
|
|
410
|
+
/** Selected media items for static background image */
|
|
411
|
+
backgroundMedia?: StaticMediaItem[];
|
|
394
412
|
/** Background color (hex) when backgroundType is 'color' */
|
|
395
413
|
backgroundColor?: string;
|
|
396
414
|
/** How the background image fits the canvas */
|
|
@@ -1165,4 +1183,4 @@ declare function getCaptionPresetNames(): CaptionPreset[];
|
|
|
1165
1183
|
*/
|
|
1166
1184
|
declare function isValidCaptionPreset(name: string): name is CaptionPreset;
|
|
1167
1185
|
|
|
1168
|
-
export {
|
|
1186
|
+
export { type ScreenshotAnimationConfig as $, type AutoCaptionCompositionProps as A, type BorderRadiusConfig as B, type CaptionOverlayProps as C, type DynamicCropConfig as D, type VideoEditorVideoSequenceSegment as E, type FitMode as F, type VideoEditorSegment as G, type Hyphenation as H, type ImageEditorElement as I, type VideoEditorChannel as J, type VideoEditorNodeConfig as K, type SegmentTimelinePosition as L, type CropBoundary as M, type CropAxisConfig as N, type CropBounds as O, type PositionResolutionResult as P, type CaptionWord as Q, type RelativePositionConfigX as R, type SegmentType as S, type TimeValue as T, type CaptionPage as U, type VerticalAlignment as V, type WordBreak as W, type CaptionPreset as X, type CaptionPosition as Y, type CaptionFontWeight as Z, type CaptionStyle as _, type RelativePositionConfigY as a, SCREENSHOT_ANIMATION_DEFAULTS as a0, calculateScreenshotAnimationDuration as a1, FONT_FAMILIES as a2, APPLE_EMOJI_FONT as a3, getFontFamily as a4, buildFontString as a5, FONT_URLS as a6, preloadFonts as a7, areFontsLoaded as a8, debugFontStatus as a9, getOverlays as aA, getSegmentTimelinePosition as aB, isSegmentVisibleAtTime as aC, calculateEstimatedDuration as aD, calculateTimelineContentEnd as aE, formatTime as aF, parseTime as aG, generateSegmentId as aH, generateOverlayId as aI, CAPTION_PRESETS as aJ, DEFAULT_CAPTION_STYLE as aK, resolveCaptionStyle as aL, getCaptionPresetNames as aM, isValidCaptionPreset as aN, calculateFitDimensions as aa, type FitDimensions as ab, TEXT_DEFAULTS as ac, IMAGE_DEFAULTS as ad, VIDEO_DEFAULTS as ae, VISUAL_DEFAULTS as af, applyTextDefaults as ag, applyImageDefaults as ah, applyVideoDefaults as ai, wrapText as aj, calculateLineWidth as ak, getBorderRadii as al, parseHexColor as am, hexToRgba as an, getSFProLetterSpacing as ao, resolveElementPositions as ap, calculateAutoWidthDimensions as aq, canSetAsReference as ar, getDependentElements as as, getReferenceElementX as at, getReferenceElementY as au, type PositionResolutionError as av, calculateCropBounds as aw, isDynamicCropEnabled as ax, defaultOffset as ay, getBaseSegments as az, type TextStyleProperties as b, type ScreenshotAnimationProps as c, type FontWeight as d, type FontType as e, type TextAlignment as f, type TextDirection as g, type TextWrap as h, type TextOverflow as i, type VerticalAnchor as j, type HorizontalAnchor as k, type HorizontalSelfAnchor as l, type VerticalSelfAnchor as m, type ImageEditorNodeConfig as n, type StaticMediaItem as o, type DimensionPresetKey as p, type DimensionPreset as q, DIMENSION_PRESETS as r, type TimeMode as s, type VideoEditorBaseSegment as t, type VideoEditorVisualSegment as u, type VideoEditorVideoSegment as v, type VideoEditorAudioSegment as w, type VideoEditorImageSegment as x, type VideoEditorTextSegment as y, type VideoEditorImageSequenceSegment as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SegmentType, T as TimeValue, R as RelativePositionConfigX, a as RelativePositionConfigY, F as FitMode, B as BorderRadiusConfig, b as TextStyleProperties, D as DynamicCropConfig, I as ImageEditorElement, A as AutoCaptionCompositionProps, c as ScreenshotAnimationProps, d as FontWeight, C as CaptionOverlayProps, P as PositionResolutionResult } from './index-
|
|
2
|
-
export {
|
|
1
|
+
import { S as SegmentType, T as TimeValue, R as RelativePositionConfigX, a as RelativePositionConfigY, F as FitMode, B as BorderRadiusConfig, b as TextStyleProperties, D as DynamicCropConfig, I as ImageEditorElement, A as AutoCaptionCompositionProps, c as ScreenshotAnimationProps, d as FontWeight, C as CaptionOverlayProps, P as PositionResolutionResult } from './index-Defxsgxn.mjs';
|
|
2
|
+
export { a3 as APPLE_EMOJI_FONT, aJ as CAPTION_PRESETS, Z as CaptionFontWeight, U as CaptionPage, Y as CaptionPosition, X as CaptionPreset, _ as CaptionStyle, Q as CaptionWord, N as CropAxisConfig, M as CropBoundary, O as CropBounds, aK as DEFAULT_CAPTION_STYLE, r as DIMENSION_PRESETS, q as DimensionPreset, p as DimensionPresetKey, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ad as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, av as PositionResolutionError, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, L as SegmentTimelinePosition, o as StaticMediaItem, ac as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, s as TimeMode, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, w as VideoEditorAudioSegment, t as VideoEditorBaseSegment, J as VideoEditorChannel, x as VideoEditorImageSegment, z as VideoEditorImageSequenceSegment, K as VideoEditorNodeConfig, G as VideoEditorSegment, y as VideoEditorTextSegment, v as VideoEditorVideoSegment, E as VideoEditorVideoSequenceSegment, u as VideoEditorVisualSegment, W as WordBreak, ah as applyImageDefaults, ag as applyTextDefaults, ai as applyVideoDefaults, a8 as areFontsLoaded, a5 as buildFontString, aq as calculateAutoWidthDimensions, aw as calculateCropBounds, aD as calculateEstimatedDuration, aa as calculateFitDimensions, ak as calculateLineWidth, a1 as calculateScreenshotAnimationDuration, aE as calculateTimelineContentEnd, ar as canSetAsReference, a9 as debugFontStatus, ay as defaultOffset, aF as formatTime, aI as generateOverlayId, aH as generateSegmentId, az as getBaseSegments, al as getBorderRadii, aM as getCaptionPresetNames, as as getDependentElements, a4 as getFontFamily, aA as getOverlays, at as getReferenceElementX, au as getReferenceElementY, ao as getSFProLetterSpacing, aB as getSegmentTimelinePosition, an as hexToRgba, ax as isDynamicCropEnabled, aC as isSegmentVisibleAtTime, aN as isValidCaptionPreset, am as parseHexColor, aG as parseTime, a7 as preloadFonts, aL as resolveCaptionStyle, ap as resolveElementPositions, aj as wrapText } from './index-Defxsgxn.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SegmentType, T as TimeValue, R as RelativePositionConfigX, a as RelativePositionConfigY, F as FitMode, B as BorderRadiusConfig, b as TextStyleProperties, D as DynamicCropConfig, I as ImageEditorElement, A as AutoCaptionCompositionProps, c as ScreenshotAnimationProps, d as FontWeight, C as CaptionOverlayProps, P as PositionResolutionResult } from './index-
|
|
2
|
-
export {
|
|
1
|
+
import { S as SegmentType, T as TimeValue, R as RelativePositionConfigX, a as RelativePositionConfigY, F as FitMode, B as BorderRadiusConfig, b as TextStyleProperties, D as DynamicCropConfig, I as ImageEditorElement, A as AutoCaptionCompositionProps, c as ScreenshotAnimationProps, d as FontWeight, C as CaptionOverlayProps, P as PositionResolutionResult } from './index-Defxsgxn.js';
|
|
2
|
+
export { a3 as APPLE_EMOJI_FONT, aJ as CAPTION_PRESETS, Z as CaptionFontWeight, U as CaptionPage, Y as CaptionPosition, X as CaptionPreset, _ as CaptionStyle, Q as CaptionWord, N as CropAxisConfig, M as CropBoundary, O as CropBounds, aK as DEFAULT_CAPTION_STYLE, r as DIMENSION_PRESETS, q as DimensionPreset, p as DimensionPresetKey, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ad as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, av as PositionResolutionError, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, L as SegmentTimelinePosition, o as StaticMediaItem, ac as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, s as TimeMode, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, w as VideoEditorAudioSegment, t as VideoEditorBaseSegment, J as VideoEditorChannel, x as VideoEditorImageSegment, z as VideoEditorImageSequenceSegment, K as VideoEditorNodeConfig, G as VideoEditorSegment, y as VideoEditorTextSegment, v as VideoEditorVideoSegment, E as VideoEditorVideoSequenceSegment, u as VideoEditorVisualSegment, W as WordBreak, ah as applyImageDefaults, ag as applyTextDefaults, ai as applyVideoDefaults, a8 as areFontsLoaded, a5 as buildFontString, aq as calculateAutoWidthDimensions, aw as calculateCropBounds, aD as calculateEstimatedDuration, aa as calculateFitDimensions, ak as calculateLineWidth, a1 as calculateScreenshotAnimationDuration, aE as calculateTimelineContentEnd, ar as canSetAsReference, a9 as debugFontStatus, ay as defaultOffset, aF as formatTime, aI as generateOverlayId, aH as generateSegmentId, az as getBaseSegments, al as getBorderRadii, aM as getCaptionPresetNames, as as getDependentElements, a4 as getFontFamily, aA as getOverlays, at as getReferenceElementX, au as getReferenceElementY, ao as getSFProLetterSpacing, aB as getSegmentTimelinePosition, an as hexToRgba, ax as isDynamicCropEnabled, aC as isSegmentVisibleAtTime, aN as isValidCaptionPreset, am as parseHexColor, aG as parseTime, a7 as preloadFonts, aL as resolveCaptionStyle, ap as resolveElementPositions, aj as wrapText } from './index-Defxsgxn.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a3 as APPLE_EMOJI_FONT, aJ as CAPTION_PRESETS, Z as CaptionFontWeight, U as CaptionPage, Y as CaptionPosition, X as CaptionPreset, _ as CaptionStyle, Q as CaptionWord, aK as DEFAULT_CAPTION_STYLE, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, ad as IMAGE_DEFAULTS, av as PositionResolutionError, P as PositionResolutionResult, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ac as TEXT_DEFAULTS, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, ah as applyImageDefaults, ag as applyTextDefaults, ai as applyVideoDefaults, a8 as areFontsLoaded, a5 as buildFontString, aq as calculateAutoWidthDimensions, aw as calculateCropBounds, aD as calculateEstimatedDuration, aa as calculateFitDimensions, ak as calculateLineWidth, a1 as calculateScreenshotAnimationDuration, aE as calculateTimelineContentEnd, ar as canSetAsReference, a9 as debugFontStatus, ay as defaultOffset, aF as formatTime, aI as generateOverlayId, aH as generateSegmentId, az as getBaseSegments, al as getBorderRadii, aM as getCaptionPresetNames, as as getDependentElements, a4 as getFontFamily, aA as getOverlays, at as getReferenceElementX, au as getReferenceElementY, ao as getSFProLetterSpacing, aB as getSegmentTimelinePosition, an as hexToRgba, ax as isDynamicCropEnabled, aC as isSegmentVisibleAtTime, aN as isValidCaptionPreset, am as parseHexColor, aG as parseTime, a7 as preloadFonts, aL as resolveCaptionStyle, ap as resolveElementPositions, aj as wrapText } from '../index-Defxsgxn.mjs';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a3 as APPLE_EMOJI_FONT, aJ as CAPTION_PRESETS, Z as CaptionFontWeight, U as CaptionPage, Y as CaptionPosition, X as CaptionPreset, _ as CaptionStyle, Q as CaptionWord, aK as DEFAULT_CAPTION_STYLE, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, ad as IMAGE_DEFAULTS, av as PositionResolutionError, P as PositionResolutionResult, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ac as TEXT_DEFAULTS, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, ah as applyImageDefaults, ag as applyTextDefaults, ai as applyVideoDefaults, a8 as areFontsLoaded, a5 as buildFontString, aq as calculateAutoWidthDimensions, aw as calculateCropBounds, aD as calculateEstimatedDuration, aa as calculateFitDimensions, ak as calculateLineWidth, a1 as calculateScreenshotAnimationDuration, aE as calculateTimelineContentEnd, ar as canSetAsReference, a9 as debugFontStatus, ay as defaultOffset, aF as formatTime, aI as generateOverlayId, aH as generateSegmentId, az as getBaseSegments, al as getBorderRadii, aM as getCaptionPresetNames, as as getDependentElements, a4 as getFontFamily, aA as getOverlays, at as getReferenceElementX, au as getReferenceElementY, ao as getSFProLetterSpacing, aB as getSegmentTimelinePosition, an as hexToRgba, ax as isDynamicCropEnabled, aC as isSegmentVisibleAtTime, aN as isValidCaptionPreset, am as parseHexColor, aG as parseTime, a7 as preloadFonts, aL as resolveCaptionStyle, ap as resolveElementPositions, aj as wrapText } from '../index-Defxsgxn.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc-render",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.215",
|
|
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",
|