ugcinc-render 1.8.213 → 1.8.214

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.
@@ -365,6 +365,12 @@ interface ImageEditorElement {
365
365
  boxAlign?: 'left' | 'center' | 'right';
366
366
  /** Maps to input port (e.g., "image_1", "image_2") */
367
367
  inputId?: string;
368
+ /** Whether this image comes from a variable input port (default: true for backwards compat) */
369
+ imageIsVariable?: boolean;
370
+ /** Media library ID for static image selection */
371
+ imageMediaId?: string | null;
372
+ /** URL for static image selection */
373
+ imageMediaUrl?: string | null;
368
374
  /** How the image fits its container */
369
375
  fit?: FitMode;
370
376
  /** Opacity percentage 0-100 */
@@ -391,6 +397,12 @@ interface ImageEditorNodeConfig {
391
397
  elements: ImageEditorElement[];
392
398
  /** Background type: 'image' for image input, 'color' for solid color */
393
399
  backgroundType?: 'image' | 'color';
400
+ /** Whether background image comes from a variable input port (default: true for backwards compat) */
401
+ backgroundIsVariable?: boolean;
402
+ /** Media library ID for static background image */
403
+ backgroundMediaId?: string | null;
404
+ /** URL for static background image */
405
+ backgroundMediaUrl?: string | null;
394
406
  /** Background color (hex) when backgroundType is 'color' */
395
407
  backgroundColor?: string;
396
408
  /** How the background image fits the canvas */
@@ -365,6 +365,12 @@ interface ImageEditorElement {
365
365
  boxAlign?: 'left' | 'center' | 'right';
366
366
  /** Maps to input port (e.g., "image_1", "image_2") */
367
367
  inputId?: string;
368
+ /** Whether this image comes from a variable input port (default: true for backwards compat) */
369
+ imageIsVariable?: boolean;
370
+ /** Media library ID for static image selection */
371
+ imageMediaId?: string | null;
372
+ /** URL for static image selection */
373
+ imageMediaUrl?: string | null;
368
374
  /** How the image fits its container */
369
375
  fit?: FitMode;
370
376
  /** Opacity percentage 0-100 */
@@ -391,6 +397,12 @@ interface ImageEditorNodeConfig {
391
397
  elements: ImageEditorElement[];
392
398
  /** Background type: 'image' for image input, 'color' for solid color */
393
399
  backgroundType?: 'image' | 'color';
400
+ /** Whether background image comes from a variable input port (default: true for backwards compat) */
401
+ backgroundIsVariable?: boolean;
402
+ /** Media library ID for static background image */
403
+ backgroundMediaId?: string | null;
404
+ /** URL for static background image */
405
+ backgroundMediaUrl?: string | null;
394
406
  /** Background color (hex) when backgroundType is 'color' */
395
407
  backgroundColor?: string;
396
408
  /** How the background image fits the canvas */
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-ul4UIbpT.mjs';
2
- export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, M as CropAxisConfig, L as CropBoundary, N as CropBounds, aJ as DEFAULT_CAPTION_STYLE, q as DIMENSION_PRESETS, p as DimensionPreset, o as DimensionPresetKey, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ac as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, au as PositionResolutionError, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, K as SegmentTimelinePosition, ab as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, r as TimeMode, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, v as VideoEditorAudioSegment, s as VideoEditorBaseSegment, G as VideoEditorChannel, w as VideoEditorImageSegment, y as VideoEditorImageSequenceSegment, J as VideoEditorNodeConfig, E as VideoEditorSegment, x as VideoEditorTextSegment, u as VideoEditorVideoSegment, z as VideoEditorVideoSequenceSegment, t as VideoEditorVisualSegment, W as WordBreak, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from './index-ul4UIbpT.mjs';
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-COoGJ_Tb.mjs';
2
+ export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, M as CropAxisConfig, L as CropBoundary, N as CropBounds, aJ as DEFAULT_CAPTION_STYLE, q as DIMENSION_PRESETS, p as DimensionPreset, o as DimensionPresetKey, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ac as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, au as PositionResolutionError, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, K as SegmentTimelinePosition, ab as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, r as TimeMode, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, v as VideoEditorAudioSegment, s as VideoEditorBaseSegment, G as VideoEditorChannel, w as VideoEditorImageSegment, y as VideoEditorImageSequenceSegment, J as VideoEditorNodeConfig, E as VideoEditorSegment, x as VideoEditorTextSegment, u as VideoEditorVideoSegment, z as VideoEditorVideoSequenceSegment, t as VideoEditorVisualSegment, W as WordBreak, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from './index-COoGJ_Tb.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-ul4UIbpT.js';
2
- export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, M as CropAxisConfig, L as CropBoundary, N as CropBounds, aJ as DEFAULT_CAPTION_STYLE, q as DIMENSION_PRESETS, p as DimensionPreset, o as DimensionPresetKey, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ac as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, au as PositionResolutionError, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, K as SegmentTimelinePosition, ab as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, r as TimeMode, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, v as VideoEditorAudioSegment, s as VideoEditorBaseSegment, G as VideoEditorChannel, w as VideoEditorImageSegment, y as VideoEditorImageSequenceSegment, J as VideoEditorNodeConfig, E as VideoEditorSegment, x as VideoEditorTextSegment, u as VideoEditorVideoSegment, z as VideoEditorVideoSequenceSegment, t as VideoEditorVisualSegment, W as WordBreak, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from './index-ul4UIbpT.js';
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-COoGJ_Tb.js';
2
+ export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, M as CropAxisConfig, L as CropBoundary, N as CropBounds, aJ as DEFAULT_CAPTION_STYLE, q as DIMENSION_PRESETS, p as DimensionPreset, o as DimensionPresetKey, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, e as FontType, k as HorizontalAnchor, l as HorizontalSelfAnchor, H as Hyphenation, ac as IMAGE_DEFAULTS, n as ImageEditorNodeConfig, au as PositionResolutionError, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, K as SegmentTimelinePosition, ab as TEXT_DEFAULTS, f as TextAlignment, g as TextDirection, i as TextOverflow, h as TextWrap, r as TimeMode, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, V as VerticalAlignment, j as VerticalAnchor, m as VerticalSelfAnchor, v as VideoEditorAudioSegment, s as VideoEditorBaseSegment, G as VideoEditorChannel, w as VideoEditorImageSegment, y as VideoEditorImageSequenceSegment, J as VideoEditorNodeConfig, E as VideoEditorSegment, x as VideoEditorTextSegment, u as VideoEditorVideoSegment, z as VideoEditorVideoSequenceSegment, t as VideoEditorVisualSegment, W as WordBreak, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from './index-COoGJ_Tb.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import React from 'react';
5
5
 
@@ -1 +1 @@
1
- export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, aJ as DEFAULT_CAPTION_STYLE, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, ac as IMAGE_DEFAULTS, au as PositionResolutionError, P as PositionResolutionResult, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ab as TEXT_DEFAULTS, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from '../index-ul4UIbpT.mjs';
1
+ export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, aJ as DEFAULT_CAPTION_STYLE, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, ac as IMAGE_DEFAULTS, au as PositionResolutionError, P as PositionResolutionResult, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ab as TEXT_DEFAULTS, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from '../index-COoGJ_Tb.mjs';
@@ -1 +1 @@
1
- export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, aJ as DEFAULT_CAPTION_STYLE, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, ac as IMAGE_DEFAULTS, au as PositionResolutionError, P as PositionResolutionResult, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ab as TEXT_DEFAULTS, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from '../index-ul4UIbpT.js';
1
+ export { a2 as APPLE_EMOJI_FONT, aI as CAPTION_PRESETS, Y as CaptionFontWeight, Q as CaptionPage, X as CaptionPosition, U as CaptionPreset, Z as CaptionStyle, O as CaptionWord, aJ as DEFAULT_CAPTION_STYLE, a1 as FONT_FAMILIES, a5 as FONT_URLS, aa as FitDimensions, ac as IMAGE_DEFAULTS, au as PositionResolutionError, P as PositionResolutionResult, $ as SCREENSHOT_ANIMATION_DEFAULTS, _ as ScreenshotAnimationConfig, c as ScreenshotAnimationProps, ab as TEXT_DEFAULTS, ad as VIDEO_DEFAULTS, ae as VISUAL_DEFAULTS, ag as applyImageDefaults, af as applyTextDefaults, ah as applyVideoDefaults, a7 as areFontsLoaded, a4 as buildFontString, ap as calculateAutoWidthDimensions, av as calculateCropBounds, aC as calculateEstimatedDuration, a9 as calculateFitDimensions, aj as calculateLineWidth, a0 as calculateScreenshotAnimationDuration, aD as calculateTimelineContentEnd, aq as canSetAsReference, a8 as debugFontStatus, ax as defaultOffset, aE as formatTime, aH as generateOverlayId, aG as generateSegmentId, ay as getBaseSegments, ak as getBorderRadii, aL as getCaptionPresetNames, ar as getDependentElements, a3 as getFontFamily, az as getOverlays, as as getReferenceElementX, at as getReferenceElementY, an as getSFProLetterSpacing, aA as getSegmentTimelinePosition, am as hexToRgba, aw as isDynamicCropEnabled, aB as isSegmentVisibleAtTime, aM as isValidCaptionPreset, al as parseHexColor, aF as parseTime, a6 as preloadFonts, aK as resolveCaptionStyle, ao as resolveElementPositions, ai as wrapText } from '../index-COoGJ_Tb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.213",
3
+ "version": "1.8.214",
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",