ugcinc-render 1.8.220 → 1.8.222

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.
@@ -813,9 +813,20 @@ function calculateCropBounds(elements, dynamicCrop, canvasWidth, canvasHeight, t
813
813
  for (const elem of elements) {
814
814
  elementMap.set(elem.id, elem);
815
815
  }
816
+ const messageElementIds = elements.filter((e) => /^message-msg-\d+$/.test(e.id)).map((e) => {
817
+ const m = e.id.match(/^message-msg-(\d+)$/);
818
+ return m ? { id: e.id, indexFromTop: parseInt(m[1], 10) } : null;
819
+ }).filter((x) => x !== null).sort((a, b) => a.indexFromTop - b.indexFromTop).map((x) => x.id);
820
+ const messageCount = messageElementIds.length;
816
821
  const resolveBoundary = (boundary) => {
817
822
  if (!boundary) return void 0;
818
823
  if (boundary.elementId) return boundary.elementId;
824
+ if (boundary.messageIndexFromBottom !== void 0 && messageCount > 0) {
825
+ const idx = boundary.messageIndexFromBottom;
826
+ if (idx >= 0 && idx < messageCount) {
827
+ return messageElementIds[messageCount - 1 - idx];
828
+ }
829
+ }
819
830
  return void 0;
820
831
  };
821
832
  let measureCtx = null;
@@ -213,13 +213,19 @@ interface RelativePositionConfigY {
213
213
  * based on element positions at render time.
214
214
  */
215
215
  /**
216
- * Crop boundary - can be static (element ID) or dynamic (input reference)
216
+ * Crop boundary - can be static (element ID) or dynamic (input reference).
217
+ * For image editor: use elementId/inputRef.
218
+ * For DM compositions: use messageIndexFromBottom/messageIndexInputRef (index from bottom, 0 = last message).
217
219
  */
218
220
  interface CropBoundary {
219
- /** Static: reference a specific element by ID */
221
+ /** Static: reference a specific element by ID (image editor) */
220
222
  elementId?: string;
221
- /** Variable: get element ID from input (creates an input port) */
223
+ /** Variable: get element ID from input (image editor, creates an input port) */
222
224
  inputRef?: string;
225
+ /** Static: reference message by index from bottom, 0 = last message (DM only) */
226
+ messageIndexFromBottom?: number;
227
+ /** Variable: get message index from bottom from input (DM only, creates an input port) */
228
+ messageIndexInputRef?: string;
223
229
  }
224
230
  /**
225
231
  * Configuration for cropping along one axis (vertical = height, horizontal = width)
@@ -1199,4 +1205,4 @@ declare function getCaptionPresetNames(): CaptionPreset[];
1199
1205
  */
1200
1206
  declare function isValidCaptionPreset(name: string): name is CaptionPreset;
1201
1207
 
1202
- 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 };
1208
+ export { type ScreenshotAnimationConfig as $, type AutoCaptionCompositionProps as A, type BorderRadiusConfig as B, type CropBounds as C, type DynamicCropConfig as D, type VideoEditorImageSequenceSegment as E, type FitMode as F, type VideoEditorVideoSequenceSegment as G, type Hyphenation as H, type ImageEditorElement as I, type VideoEditorSegment as J, type VideoEditorChannel as K, type VideoEditorNodeConfig as L, type SegmentTimelinePosition as M, type CropBoundary as N, type CropAxisConfig 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 CaptionOverlayProps as e, type FontType as f, type TextAlignment as g, type TextDirection as h, type TextWrap as i, type TextOverflow as j, type VerticalAnchor as k, type HorizontalAnchor as l, type HorizontalSelfAnchor as m, type VerticalSelfAnchor as n, type ImageEditorNodeConfig as o, type StaticMediaItem as p, type DimensionPresetKey as q, type DimensionPreset as r, DIMENSION_PRESETS as s, type TimeMode as t, type VideoEditorBaseSegment as u, type VideoEditorVisualSegment as v, type VideoEditorVideoSegment as w, type VideoEditorAudioSegment as x, type VideoEditorImageSegment as y, type VideoEditorTextSegment as z };
@@ -213,13 +213,19 @@ interface RelativePositionConfigY {
213
213
  * based on element positions at render time.
214
214
  */
215
215
  /**
216
- * Crop boundary - can be static (element ID) or dynamic (input reference)
216
+ * Crop boundary - can be static (element ID) or dynamic (input reference).
217
+ * For image editor: use elementId/inputRef.
218
+ * For DM compositions: use messageIndexFromBottom/messageIndexInputRef (index from bottom, 0 = last message).
217
219
  */
218
220
  interface CropBoundary {
219
- /** Static: reference a specific element by ID */
221
+ /** Static: reference a specific element by ID (image editor) */
220
222
  elementId?: string;
221
- /** Variable: get element ID from input (creates an input port) */
223
+ /** Variable: get element ID from input (image editor, creates an input port) */
222
224
  inputRef?: string;
225
+ /** Static: reference message by index from bottom, 0 = last message (DM only) */
226
+ messageIndexFromBottom?: number;
227
+ /** Variable: get message index from bottom from input (DM only, creates an input port) */
228
+ messageIndexInputRef?: string;
223
229
  }
224
230
  /**
225
231
  * Configuration for cropping along one axis (vertical = height, horizontal = width)
@@ -1199,4 +1205,4 @@ declare function getCaptionPresetNames(): CaptionPreset[];
1199
1205
  */
1200
1206
  declare function isValidCaptionPreset(name: string): name is CaptionPreset;
1201
1207
 
1202
- 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 };
1208
+ export { type ScreenshotAnimationConfig as $, type AutoCaptionCompositionProps as A, type BorderRadiusConfig as B, type CropBounds as C, type DynamicCropConfig as D, type VideoEditorImageSequenceSegment as E, type FitMode as F, type VideoEditorVideoSequenceSegment as G, type Hyphenation as H, type ImageEditorElement as I, type VideoEditorSegment as J, type VideoEditorChannel as K, type VideoEditorNodeConfig as L, type SegmentTimelinePosition as M, type CropBoundary as N, type CropAxisConfig 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 CaptionOverlayProps as e, type FontType as f, type TextAlignment as g, type TextDirection as h, type TextWrap as i, type TextOverflow as j, type VerticalAnchor as k, type HorizontalAnchor as l, type HorizontalSelfAnchor as m, type VerticalSelfAnchor as n, type ImageEditorNodeConfig as o, type StaticMediaItem as p, type DimensionPresetKey as q, type DimensionPreset as r, DIMENSION_PRESETS as s, type TimeMode as t, type VideoEditorBaseSegment as u, type VideoEditorVisualSegment as v, type VideoEditorVideoSegment as w, type VideoEditorAudioSegment as x, type VideoEditorImageSegment as y, type VideoEditorTextSegment 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-DTYstCYC.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-DTYstCYC.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, C as CropBounds, d as FontWeight, e as CaptionOverlayProps, P as PositionResolutionResult } from './index-Dk32_en6.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, O as CropAxisConfig, N as CropBoundary, aK as DEFAULT_CAPTION_STYLE, s as DIMENSION_PRESETS, r as DimensionPreset, q as DimensionPresetKey, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, f as FontType, l as HorizontalAnchor, m as HorizontalSelfAnchor, H as Hyphenation, ad as IMAGE_DEFAULTS, o as ImageEditorNodeConfig, av as PositionResolutionError, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, M as SegmentTimelinePosition, p as StaticMediaItem, ac as TEXT_DEFAULTS, g as TextAlignment, h as TextDirection, j as TextOverflow, i as TextWrap, t as TimeMode, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, V as VerticalAlignment, k as VerticalAnchor, n as VerticalSelfAnchor, x as VideoEditorAudioSegment, u as VideoEditorBaseSegment, K as VideoEditorChannel, y as VideoEditorImageSegment, E as VideoEditorImageSequenceSegment, L as VideoEditorNodeConfig, J as VideoEditorSegment, z as VideoEditorTextSegment, w as VideoEditorVideoSegment, G as VideoEditorVideoSequenceSegment, v 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-Dk32_en6.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import React from 'react';
5
5
 
@@ -554,6 +554,7 @@ declare function resolveDeduplicationConfig(input: DeduplicationInput): Deduplic
554
554
  * These are the types exposed to users via the automation node.
555
555
  * They provide a simpler interface than the full InstagramDmCompositionProps.
556
556
  */
557
+
557
558
  /** Message sender side */
558
559
  type IgDmSender = 'user' | 'recipient';
559
560
  /** Theme for the DM composition */
@@ -607,6 +608,8 @@ interface InstagramDmPublicInput {
607
608
  * Required if any message has isStoryReply=true.
608
609
  */
609
610
  storyImageUrl?: string;
611
+ /** Dynamic cropping configuration - crop output to DM element bounds */
612
+ dynamicCrop?: DynamicCropConfig;
610
613
  }
611
614
 
612
615
  interface ImageEditorCompositionProps {
@@ -726,6 +729,7 @@ declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs,
726
729
  *
727
730
  * Minimal types for the stripped-down composition.
728
731
  */
732
+
729
733
  /** Instagram theme - light or dark mode */
730
734
  type IgTheme = 'light' | 'dark';
731
735
  /** Message sender type */
@@ -935,6 +939,8 @@ interface InstagramDmCompositionProps {
935
939
  dividerLineY?: number;
936
940
  dividerLineColor?: string;
937
941
  headerBackgroundColor?: string;
942
+ /** Dynamic cropping configuration - crop output to element bounds */
943
+ dynamicCrop?: DynamicCropConfig;
938
944
  }
939
945
 
940
946
  /**
@@ -1169,6 +1175,8 @@ interface IMessageDmCompositionProps {
1169
1175
  readReceiptLeft?: number;
1170
1176
  readReceiptRight?: number;
1171
1177
  messages?: ImMessage[];
1178
+ /** Dynamic cropping configuration - crop output to DM element bounds */
1179
+ dynamicCrop?: DynamicCropConfig;
1172
1180
  }
1173
1181
 
1174
1182
  /**
@@ -1193,6 +1201,8 @@ interface BaseDmCompositionProps {
1193
1201
  width: number;
1194
1202
  /** Canvas height */
1195
1203
  height: number;
1204
+ /** When set, crop output to these bounds (for dynamic crop) */
1205
+ cropBounds?: CropBounds;
1196
1206
  /** Background color */
1197
1207
  backgroundColor: string;
1198
1208
  /** Show debug overlay with crosshair and coordinates */
@@ -1290,7 +1300,7 @@ interface BaseDmCompositionProps {
1290
1300
  /** Status bar elements color (time, cell bars, icons) - defaults to white */
1291
1301
  statusBarColor?: string;
1292
1302
  }
1293
- declare function BaseDmComposition({ width, height, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, time, timeRight, timeBottom, timeFontSize, timeLetterSpacing, timeColor, noNotisTop, noNotisBottom, noNotisLeft, noNotisRight, cellLevel, cell1Top, cell1Bottom, cell1Left, cell1Right, cell2Top, cell2Bottom, cell2Left, cell2Right, cell3Top, cell3Bottom, cell3Left, cell3Right, cell4Top, cell4Bottom, cell4Left, cell4Right, wifiTop, wifiBottom, wifiLeft, wifiRight, batteryTop, batteryBottom, batteryLeft, batteryRight, homeIndicatorTop, homeIndicatorBottom, homeIndicatorLeft, homeIndicatorRight, homeIndicatorColor, statusBarColor, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1303
+ declare function BaseDmComposition({ width, height, cropBounds, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, time, timeRight, timeBottom, timeFontSize, timeLetterSpacing, timeColor, noNotisTop, noNotisBottom, noNotisLeft, noNotisRight, cellLevel, cell1Top, cell1Bottom, cell1Left, cell1Right, cell2Top, cell2Bottom, cell2Left, cell2Right, cell3Top, cell3Bottom, cell3Left, cell3Right, cell4Top, cell4Bottom, cell4Left, cell4Right, wifiTop, wifiBottom, wifiLeft, wifiRight, batteryTop, batteryBottom, batteryLeft, batteryRight, homeIndicatorTop, homeIndicatorBottom, homeIndicatorLeft, homeIndicatorRight, homeIndicatorColor, statusBarColor, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1294
1304
 
1295
1305
  /**
1296
1306
  * Debug Overlay Component
@@ -1799,4 +1809,4 @@ declare function useResolvedPositions(elements: ImageEditorElement[], textValues
1799
1809
 
1800
1810
  declare const RenderRoot: React.FC;
1801
1811
 
1802
- export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, BaseDmComposition, type BaseDmCompositionProps, type BaseEditorConfig, type BaseMessage, type BaseMessageType, type BaseSegment, type BlendMode, BorderRadiusConfig, type BubbleRadii, CaptionOverlay, CaptionOverlayProps, type Channel, type ColorFilterConfig, type ColorShiftConfig, type CropConfig, type CuttingConfig, DEDUPLICATION_LEVELS, DebugOverlay, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, DeduplicationPreview, type DeduplicationPreviewProps, type DiagonalFilterConfig, type DiagonalFilterType, DynamicCropConfig, type EditorConfig, type EditorSegment, type EnhanceLevel, type EnhancementConfig, FitMode, FontWeight, type FrameManipulationConfig, type GifOverlayConfig, type GifSource, type GradientColor, type GradientOverlayConfig, IMessageDmComposition, type IMessageDmCompositionProps, type IgDmMessage, type IgDmSender, type IgDmTheme, type IgTheme, type ImMessage, type ImMessageSender, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, ImageEditorElement, ImageElement, type ImageElementProps, type ImageMessage, type ImageSegment, type ImageSequenceSegment, InstagramDmComposition, type InstagramDmCompositionProps, type InstagramDmPublicInput, LEVEL_1_CONFIG, LEVEL_2_CONFIG, LEVEL_3_CONFIG, LEVEL_4_CONFIG, LEVEL_5_CONFIG, type LensCorrectionConfig, MediaBubble, type MediaBubbleProps, type Message, MessageBubble, type MessageBubbleProps, type MessageGroup, type MessageOrTyping, type MessagePosition, type MessageReaction, type MessageSender, type MobileEncodingConfig, type ParticleOverlayConfig, type PhoneConfig, type PhoneModel, type PhoneType, type PictureSegment, PositionResolutionResult, type PositionedMessage, ProfilePic, type ProfilePicProps, Reaction, type ReactionProps, type ReadReceipt, type ReadReceiptState, RelativePositionConfigX, RelativePositionConfigY, RenderRoot, ScreenshotAnimation, ScreenshotAnimationProps, type Segment, SegmentType, type SpeedConfig, type StaticSegment, TYPING_ANIMATION, TextElement, type TextElementProps, type TextMessage, type TextSegment, TextStyleProperties, TimeValue, type TraceRemovalConfig, TypingIndicator, type TypingIndicatorProps, type TypingIndicatorStyle, type TypingMessage, type UserProfile, type ValidationError, type VideoCodec, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, VideoElement, type VideoElementProps, type VideoExtension, type VideoSegment, type VideoSequenceSegment, type VisualAdjustmentsConfig, type VisualSegment, type VisualSegmentUnion, bubbleRadiiToCss, calculateBubbleRadii, convertPublicToProps, defaultIMessageDmProps, defaultInstagramDmProps, flattenGroups, groupMessages, isDeduplicationLevel, resolveDeduplicationConfig, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, validatePublicInput };
1812
+ export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, BaseDmComposition, type BaseDmCompositionProps, type BaseEditorConfig, type BaseMessage, type BaseMessageType, type BaseSegment, type BlendMode, BorderRadiusConfig, type BubbleRadii, CaptionOverlay, CaptionOverlayProps, type Channel, type ColorFilterConfig, type ColorShiftConfig, CropBounds, type CropConfig, type CuttingConfig, DEDUPLICATION_LEVELS, DebugOverlay, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, DeduplicationPreview, type DeduplicationPreviewProps, type DiagonalFilterConfig, type DiagonalFilterType, DynamicCropConfig, type EditorConfig, type EditorSegment, type EnhanceLevel, type EnhancementConfig, FitMode, FontWeight, type FrameManipulationConfig, type GifOverlayConfig, type GifSource, type GradientColor, type GradientOverlayConfig, IMessageDmComposition, type IMessageDmCompositionProps, type IgDmMessage, type IgDmSender, type IgDmTheme, type IgTheme, type ImMessage, type ImMessageSender, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, ImageEditorElement, ImageElement, type ImageElementProps, type ImageMessage, type ImageSegment, type ImageSequenceSegment, InstagramDmComposition, type InstagramDmCompositionProps, type InstagramDmPublicInput, LEVEL_1_CONFIG, LEVEL_2_CONFIG, LEVEL_3_CONFIG, LEVEL_4_CONFIG, LEVEL_5_CONFIG, type LensCorrectionConfig, MediaBubble, type MediaBubbleProps, type Message, MessageBubble, type MessageBubbleProps, type MessageGroup, type MessageOrTyping, type MessagePosition, type MessageReaction, type MessageSender, type MobileEncodingConfig, type ParticleOverlayConfig, type PhoneConfig, type PhoneModel, type PhoneType, type PictureSegment, PositionResolutionResult, type PositionedMessage, ProfilePic, type ProfilePicProps, Reaction, type ReactionProps, type ReadReceipt, type ReadReceiptState, RelativePositionConfigX, RelativePositionConfigY, RenderRoot, ScreenshotAnimation, ScreenshotAnimationProps, type Segment, SegmentType, type SpeedConfig, type StaticSegment, TYPING_ANIMATION, TextElement, type TextElementProps, type TextMessage, type TextSegment, TextStyleProperties, TimeValue, type TraceRemovalConfig, TypingIndicator, type TypingIndicatorProps, type TypingIndicatorStyle, type TypingMessage, type UserProfile, type ValidationError, type VideoCodec, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, VideoElement, type VideoElementProps, type VideoExtension, type VideoSegment, type VideoSequenceSegment, type VisualAdjustmentsConfig, type VisualSegment, type VisualSegmentUnion, bubbleRadiiToCss, calculateBubbleRadii, convertPublicToProps, defaultIMessageDmProps, defaultInstagramDmProps, flattenGroups, groupMessages, isDeduplicationLevel, resolveDeduplicationConfig, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, validatePublicInput };
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-DTYstCYC.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-DTYstCYC.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, C as CropBounds, d as FontWeight, e as CaptionOverlayProps, P as PositionResolutionResult } from './index-Dk32_en6.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, O as CropAxisConfig, N as CropBoundary, aK as DEFAULT_CAPTION_STYLE, s as DIMENSION_PRESETS, r as DimensionPreset, q as DimensionPresetKey, a2 as FONT_FAMILIES, a6 as FONT_URLS, ab as FitDimensions, f as FontType, l as HorizontalAnchor, m as HorizontalSelfAnchor, H as Hyphenation, ad as IMAGE_DEFAULTS, o as ImageEditorNodeConfig, av as PositionResolutionError, a0 as SCREENSHOT_ANIMATION_DEFAULTS, $ as ScreenshotAnimationConfig, M as SegmentTimelinePosition, p as StaticMediaItem, ac as TEXT_DEFAULTS, g as TextAlignment, h as TextDirection, j as TextOverflow, i as TextWrap, t as TimeMode, ae as VIDEO_DEFAULTS, af as VISUAL_DEFAULTS, V as VerticalAlignment, k as VerticalAnchor, n as VerticalSelfAnchor, x as VideoEditorAudioSegment, u as VideoEditorBaseSegment, K as VideoEditorChannel, y as VideoEditorImageSegment, E as VideoEditorImageSequenceSegment, L as VideoEditorNodeConfig, J as VideoEditorSegment, z as VideoEditorTextSegment, w as VideoEditorVideoSegment, G as VideoEditorVideoSequenceSegment, v 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-Dk32_en6.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import React from 'react';
5
5
 
@@ -554,6 +554,7 @@ declare function resolveDeduplicationConfig(input: DeduplicationInput): Deduplic
554
554
  * These are the types exposed to users via the automation node.
555
555
  * They provide a simpler interface than the full InstagramDmCompositionProps.
556
556
  */
557
+
557
558
  /** Message sender side */
558
559
  type IgDmSender = 'user' | 'recipient';
559
560
  /** Theme for the DM composition */
@@ -607,6 +608,8 @@ interface InstagramDmPublicInput {
607
608
  * Required if any message has isStoryReply=true.
608
609
  */
609
610
  storyImageUrl?: string;
611
+ /** Dynamic cropping configuration - crop output to DM element bounds */
612
+ dynamicCrop?: DynamicCropConfig;
610
613
  }
611
614
 
612
615
  interface ImageEditorCompositionProps {
@@ -726,6 +729,7 @@ declare function ScreenshotAnimation({ imageUrl, width, height, pauseDurationMs,
726
729
  *
727
730
  * Minimal types for the stripped-down composition.
728
731
  */
732
+
729
733
  /** Instagram theme - light or dark mode */
730
734
  type IgTheme = 'light' | 'dark';
731
735
  /** Message sender type */
@@ -935,6 +939,8 @@ interface InstagramDmCompositionProps {
935
939
  dividerLineY?: number;
936
940
  dividerLineColor?: string;
937
941
  headerBackgroundColor?: string;
942
+ /** Dynamic cropping configuration - crop output to element bounds */
943
+ dynamicCrop?: DynamicCropConfig;
938
944
  }
939
945
 
940
946
  /**
@@ -1169,6 +1175,8 @@ interface IMessageDmCompositionProps {
1169
1175
  readReceiptLeft?: number;
1170
1176
  readReceiptRight?: number;
1171
1177
  messages?: ImMessage[];
1178
+ /** Dynamic cropping configuration - crop output to DM element bounds */
1179
+ dynamicCrop?: DynamicCropConfig;
1172
1180
  }
1173
1181
 
1174
1182
  /**
@@ -1193,6 +1201,8 @@ interface BaseDmCompositionProps {
1193
1201
  width: number;
1194
1202
  /** Canvas height */
1195
1203
  height: number;
1204
+ /** When set, crop output to these bounds (for dynamic crop) */
1205
+ cropBounds?: CropBounds;
1196
1206
  /** Background color */
1197
1207
  backgroundColor: string;
1198
1208
  /** Show debug overlay with crosshair and coordinates */
@@ -1290,7 +1300,7 @@ interface BaseDmCompositionProps {
1290
1300
  /** Status bar elements color (time, cell bars, icons) - defaults to white */
1291
1301
  statusBarColor?: string;
1292
1302
  }
1293
- declare function BaseDmComposition({ width, height, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, time, timeRight, timeBottom, timeFontSize, timeLetterSpacing, timeColor, noNotisTop, noNotisBottom, noNotisLeft, noNotisRight, cellLevel, cell1Top, cell1Bottom, cell1Left, cell1Right, cell2Top, cell2Bottom, cell2Left, cell2Right, cell3Top, cell3Bottom, cell3Left, cell3Right, cell4Top, cell4Bottom, cell4Left, cell4Right, wifiTop, wifiBottom, wifiLeft, wifiRight, batteryTop, batteryBottom, batteryLeft, batteryRight, homeIndicatorTop, homeIndicatorBottom, homeIndicatorLeft, homeIndicatorRight, homeIndicatorColor, statusBarColor, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1303
+ declare function BaseDmComposition({ width, height, cropBounds, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, time, timeRight, timeBottom, timeFontSize, timeLetterSpacing, timeColor, noNotisTop, noNotisBottom, noNotisLeft, noNotisRight, cellLevel, cell1Top, cell1Bottom, cell1Left, cell1Right, cell2Top, cell2Bottom, cell2Left, cell2Right, cell3Top, cell3Bottom, cell3Left, cell3Right, cell4Top, cell4Bottom, cell4Left, cell4Right, wifiTop, wifiBottom, wifiLeft, wifiRight, batteryTop, batteryBottom, batteryLeft, batteryRight, homeIndicatorTop, homeIndicatorBottom, homeIndicatorLeft, homeIndicatorRight, homeIndicatorColor, statusBarColor, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1294
1304
 
1295
1305
  /**
1296
1306
  * Debug Overlay Component
@@ -1799,4 +1809,4 @@ declare function useResolvedPositions(elements: ImageEditorElement[], textValues
1799
1809
 
1800
1810
  declare const RenderRoot: React.FC;
1801
1811
 
1802
- export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, BaseDmComposition, type BaseDmCompositionProps, type BaseEditorConfig, type BaseMessage, type BaseMessageType, type BaseSegment, type BlendMode, BorderRadiusConfig, type BubbleRadii, CaptionOverlay, CaptionOverlayProps, type Channel, type ColorFilterConfig, type ColorShiftConfig, type CropConfig, type CuttingConfig, DEDUPLICATION_LEVELS, DebugOverlay, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, DeduplicationPreview, type DeduplicationPreviewProps, type DiagonalFilterConfig, type DiagonalFilterType, DynamicCropConfig, type EditorConfig, type EditorSegment, type EnhanceLevel, type EnhancementConfig, FitMode, FontWeight, type FrameManipulationConfig, type GifOverlayConfig, type GifSource, type GradientColor, type GradientOverlayConfig, IMessageDmComposition, type IMessageDmCompositionProps, type IgDmMessage, type IgDmSender, type IgDmTheme, type IgTheme, type ImMessage, type ImMessageSender, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, ImageEditorElement, ImageElement, type ImageElementProps, type ImageMessage, type ImageSegment, type ImageSequenceSegment, InstagramDmComposition, type InstagramDmCompositionProps, type InstagramDmPublicInput, LEVEL_1_CONFIG, LEVEL_2_CONFIG, LEVEL_3_CONFIG, LEVEL_4_CONFIG, LEVEL_5_CONFIG, type LensCorrectionConfig, MediaBubble, type MediaBubbleProps, type Message, MessageBubble, type MessageBubbleProps, type MessageGroup, type MessageOrTyping, type MessagePosition, type MessageReaction, type MessageSender, type MobileEncodingConfig, type ParticleOverlayConfig, type PhoneConfig, type PhoneModel, type PhoneType, type PictureSegment, PositionResolutionResult, type PositionedMessage, ProfilePic, type ProfilePicProps, Reaction, type ReactionProps, type ReadReceipt, type ReadReceiptState, RelativePositionConfigX, RelativePositionConfigY, RenderRoot, ScreenshotAnimation, ScreenshotAnimationProps, type Segment, SegmentType, type SpeedConfig, type StaticSegment, TYPING_ANIMATION, TextElement, type TextElementProps, type TextMessage, type TextSegment, TextStyleProperties, TimeValue, type TraceRemovalConfig, TypingIndicator, type TypingIndicatorProps, type TypingIndicatorStyle, type TypingMessage, type UserProfile, type ValidationError, type VideoCodec, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, VideoElement, type VideoElementProps, type VideoExtension, type VideoSegment, type VideoSequenceSegment, type VisualAdjustmentsConfig, type VisualSegment, type VisualSegmentUnion, bubbleRadiiToCss, calculateBubbleRadii, convertPublicToProps, defaultIMessageDmProps, defaultInstagramDmProps, flattenGroups, groupMessages, isDeduplicationLevel, resolveDeduplicationConfig, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, validatePublicInput };
1812
+ export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, BaseDmComposition, type BaseDmCompositionProps, type BaseEditorConfig, type BaseMessage, type BaseMessageType, type BaseSegment, type BlendMode, BorderRadiusConfig, type BubbleRadii, CaptionOverlay, CaptionOverlayProps, type Channel, type ColorFilterConfig, type ColorShiftConfig, CropBounds, type CropConfig, type CuttingConfig, DEDUPLICATION_LEVELS, DebugOverlay, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, DeduplicationPreview, type DeduplicationPreviewProps, type DiagonalFilterConfig, type DiagonalFilterType, DynamicCropConfig, type EditorConfig, type EditorSegment, type EnhanceLevel, type EnhancementConfig, FitMode, FontWeight, type FrameManipulationConfig, type GifOverlayConfig, type GifSource, type GradientColor, type GradientOverlayConfig, IMessageDmComposition, type IMessageDmCompositionProps, type IgDmMessage, type IgDmSender, type IgDmTheme, type IgTheme, type ImMessage, type ImMessageSender, ImageEditorComposition, type ImageEditorCompositionProps, type ImageEditorConfig, ImageEditorElement, ImageElement, type ImageElementProps, type ImageMessage, type ImageSegment, type ImageSequenceSegment, InstagramDmComposition, type InstagramDmCompositionProps, type InstagramDmPublicInput, LEVEL_1_CONFIG, LEVEL_2_CONFIG, LEVEL_3_CONFIG, LEVEL_4_CONFIG, LEVEL_5_CONFIG, type LensCorrectionConfig, MediaBubble, type MediaBubbleProps, type Message, MessageBubble, type MessageBubbleProps, type MessageGroup, type MessageOrTyping, type MessagePosition, type MessageReaction, type MessageSender, type MobileEncodingConfig, type ParticleOverlayConfig, type PhoneConfig, type PhoneModel, type PhoneType, type PictureSegment, PositionResolutionResult, type PositionedMessage, ProfilePic, type ProfilePicProps, Reaction, type ReactionProps, type ReadReceipt, type ReadReceiptState, RelativePositionConfigX, RelativePositionConfigY, RenderRoot, ScreenshotAnimation, ScreenshotAnimationProps, type Segment, SegmentType, type SpeedConfig, type StaticSegment, TYPING_ANIMATION, TextElement, type TextElementProps, type TextMessage, type TextSegment, TextStyleProperties, TimeValue, type TraceRemovalConfig, TypingIndicator, type TypingIndicatorProps, type TypingIndicatorStyle, type TypingMessage, type UserProfile, type ValidationError, type VideoCodec, VideoEditorComposition, type VideoEditorCompositionProps, type VideoEditorConfig, VideoElement, type VideoElementProps, type VideoExtension, type VideoSegment, type VideoSequenceSegment, type VisualAdjustmentsConfig, type VisualSegment, type VisualSegmentUnion, bubbleRadiiToCss, calculateBubbleRadii, convertPublicToProps, defaultIMessageDmProps, defaultInstagramDmProps, flattenGroups, groupMessages, isDeduplicationLevel, resolveDeduplicationConfig, useFontsLoaded, useImageLoader, useImagePreloader, useResolvedPositions, validatePublicInput };