ugcinc-render 1.8.144 → 1.8.145

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.
package/dist/index.d.mts CHANGED
@@ -1074,7 +1074,7 @@ interface IMessageDmCompositionProps {
1074
1074
  * iMessage DM Composition
1075
1075
  *
1076
1076
  * A fully parameterized iMessage DM conversation renderer.
1077
- * Uses ImageEditorComposition for rendering, with props converted to elements.
1077
+ * Uses BaseDmComposition for shared zoom/pan/crosshair functionality.
1078
1078
  */
1079
1079
 
1080
1080
  /**
@@ -1086,6 +1086,48 @@ declare const defaultIMessageDmProps: IMessageDmCompositionProps;
1086
1086
  */
1087
1087
  declare const IMessageDmComposition: React.FC<IMessageDmCompositionProps>;
1088
1088
 
1089
+ interface BaseDmCompositionProps {
1090
+ /** Canvas width */
1091
+ width: number;
1092
+ /** Canvas height */
1093
+ height: number;
1094
+ /** Background color */
1095
+ backgroundColor: string;
1096
+ /** Show debug overlay with crosshair and coordinates */
1097
+ showDebugOverlay?: boolean;
1098
+ /** Reference image URL for overlay comparison */
1099
+ referenceImageUrl?: string;
1100
+ /** Show reference image overlay */
1101
+ showReferenceImage?: boolean;
1102
+ /** Reference image opacity (0-100) */
1103
+ referenceOpacity?: number;
1104
+ /** Current props for copy-to-clipboard feature in debug overlay */
1105
+ currentProps?: Record<string, unknown>;
1106
+ /** Children to render inside the zoomable/pannable content area */
1107
+ children: React.ReactNode;
1108
+ }
1109
+ declare function BaseDmComposition({ width, height, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1110
+
1111
+ /**
1112
+ * Debug Overlay Component
1113
+ *
1114
+ * Shows mouse coordinates, zoom controls, and pixel-snapped crosshair.
1115
+ * Useful for matching elements to a reference screenshot.
1116
+ */
1117
+ interface DebugOverlayProps {
1118
+ width: number;
1119
+ height: number;
1120
+ zoom: number;
1121
+ scrollX: number;
1122
+ scrollY: number;
1123
+ referenceVisible: boolean;
1124
+ onZoomChange: (zoom: number, scrollX: number, scrollY: number) => void;
1125
+ onToggleReference: () => void;
1126
+ /** Current prop values for copy-to-clipboard feature */
1127
+ currentProps?: Record<string, unknown>;
1128
+ }
1129
+ declare function DebugOverlay({ width, height, zoom, scrollX, scrollY, referenceVisible, onZoomChange, onToggleReference, currentProps, }: DebugOverlayProps): react_jsx_runtime.JSX.Element;
1130
+
1089
1131
  /**
1090
1132
  * Platform-agnostic messaging types
1091
1133
  *
@@ -1563,4 +1605,4 @@ declare function useResolvedPositions(elements: ImageEditorElement[], textValues
1563
1605
 
1564
1606
  declare const RenderRoot: React.FC;
1565
1607
 
1566
- export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, 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, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, 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 };
1608
+ 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, 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
@@ -1074,7 +1074,7 @@ interface IMessageDmCompositionProps {
1074
1074
  * iMessage DM Composition
1075
1075
  *
1076
1076
  * A fully parameterized iMessage DM conversation renderer.
1077
- * Uses ImageEditorComposition for rendering, with props converted to elements.
1077
+ * Uses BaseDmComposition for shared zoom/pan/crosshair functionality.
1078
1078
  */
1079
1079
 
1080
1080
  /**
@@ -1086,6 +1086,48 @@ declare const defaultIMessageDmProps: IMessageDmCompositionProps;
1086
1086
  */
1087
1087
  declare const IMessageDmComposition: React.FC<IMessageDmCompositionProps>;
1088
1088
 
1089
+ interface BaseDmCompositionProps {
1090
+ /** Canvas width */
1091
+ width: number;
1092
+ /** Canvas height */
1093
+ height: number;
1094
+ /** Background color */
1095
+ backgroundColor: string;
1096
+ /** Show debug overlay with crosshair and coordinates */
1097
+ showDebugOverlay?: boolean;
1098
+ /** Reference image URL for overlay comparison */
1099
+ referenceImageUrl?: string;
1100
+ /** Show reference image overlay */
1101
+ showReferenceImage?: boolean;
1102
+ /** Reference image opacity (0-100) */
1103
+ referenceOpacity?: number;
1104
+ /** Current props for copy-to-clipboard feature in debug overlay */
1105
+ currentProps?: Record<string, unknown>;
1106
+ /** Children to render inside the zoomable/pannable content area */
1107
+ children: React.ReactNode;
1108
+ }
1109
+ declare function BaseDmComposition({ width, height, backgroundColor, showDebugOverlay, referenceImageUrl, showReferenceImage, referenceOpacity, currentProps, children, }: BaseDmCompositionProps): react_jsx_runtime.JSX.Element | null;
1110
+
1111
+ /**
1112
+ * Debug Overlay Component
1113
+ *
1114
+ * Shows mouse coordinates, zoom controls, and pixel-snapped crosshair.
1115
+ * Useful for matching elements to a reference screenshot.
1116
+ */
1117
+ interface DebugOverlayProps {
1118
+ width: number;
1119
+ height: number;
1120
+ zoom: number;
1121
+ scrollX: number;
1122
+ scrollY: number;
1123
+ referenceVisible: boolean;
1124
+ onZoomChange: (zoom: number, scrollX: number, scrollY: number) => void;
1125
+ onToggleReference: () => void;
1126
+ /** Current prop values for copy-to-clipboard feature */
1127
+ currentProps?: Record<string, unknown>;
1128
+ }
1129
+ declare function DebugOverlay({ width, height, zoom, scrollX, scrollY, referenceVisible, onZoomChange, onToggleReference, currentProps, }: DebugOverlayProps): react_jsx_runtime.JSX.Element;
1130
+
1089
1131
  /**
1090
1132
  * Platform-agnostic messaging types
1091
1133
  *
@@ -1563,4 +1605,4 @@ declare function useResolvedPositions(elements: ImageEditorElement[], textValues
1563
1605
 
1564
1606
  declare const RenderRoot: React.FC;
1565
1607
 
1566
- export { type Acceleration, type AudioConfig, type AudioSegment, AutoCaptionComposition, AutoCaptionCompositionProps, AutoCaptionCompositionWithVideo, type BaseBubbleStyle, 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, type DeduplicationConfig, type DeduplicationInput, type DeduplicationLevel, 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 };
1608
+ 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, 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 };