ugcinc-render 1.8.94 → 1.8.95

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.
@@ -532,6 +532,10 @@ interface VideoEditorImageSequenceSegment extends VideoEditorVisualSegment {
532
532
  defaultDuration: number;
533
533
  /** How media fits in bounds */
534
534
  fit?: FitMode;
535
+ /** How many items to use: 'variable' uses all, 'static' uses staticItemCount (default: 'variable') */
536
+ itemCountMode?: 'variable' | 'static';
537
+ /** Number of items when itemCountMode is 'static' */
538
+ staticItemCount?: number;
535
539
  }
536
540
  /**
537
541
  * Video sequence segment (UI) - plays an array of videos sequentially
@@ -544,6 +548,10 @@ interface VideoEditorVideoSequenceSegment extends VideoEditorVisualSegment {
544
548
  inputRef?: string;
545
549
  /** How media fits in bounds */
546
550
  fit?: FitMode;
551
+ /** How many items to use: 'variable' uses all, 'static' uses staticItemCount (default: 'variable') */
552
+ itemCountMode?: 'variable' | 'static';
553
+ /** Number of items when itemCountMode is 'static' */
554
+ staticItemCount?: number;
547
555
  }
548
556
  /**
549
557
  * Union of all video editor segment types
@@ -532,6 +532,10 @@ interface VideoEditorImageSequenceSegment extends VideoEditorVisualSegment {
532
532
  defaultDuration: number;
533
533
  /** How media fits in bounds */
534
534
  fit?: FitMode;
535
+ /** How many items to use: 'variable' uses all, 'static' uses staticItemCount (default: 'variable') */
536
+ itemCountMode?: 'variable' | 'static';
537
+ /** Number of items when itemCountMode is 'static' */
538
+ staticItemCount?: number;
535
539
  }
536
540
  /**
537
541
  * Video sequence segment (UI) - plays an array of videos sequentially
@@ -544,6 +548,10 @@ interface VideoEditorVideoSequenceSegment extends VideoEditorVisualSegment {
544
548
  inputRef?: string;
545
549
  /** How media fits in bounds */
546
550
  fit?: FitMode;
551
+ /** How many items to use: 'variable' uses all, 'static' uses staticItemCount (default: 'variable') */
552
+ itemCountMode?: 'variable' | 'static';
553
+ /** Number of items when itemCountMode is 'static' */
554
+ staticItemCount?: number;
547
555
  }
548
556
  /**
549
557
  * Union of all video editor segment types
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-oFOiJqaH.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-oFOiJqaH.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-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';
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-oFOiJqaH.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-oFOiJqaH.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-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';
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-oFOiJqaH.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-ul4UIbpT.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-oFOiJqaH.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-ul4UIbpT.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.8.94",
3
+ "version": "1.8.95",
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",