@clypra-studio/engine 1.9.0 → 1.10.1

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.cts CHANGED
@@ -2,8 +2,8 @@ import { S as SceneDocument, K as Keyframe, f as TextEffectConfig, g as StyleRec
2
2
  export { o as AnimationPreset, C as CanvasBackgroundConfig, p as ColorAdjustments, q as CompositorSettings, D as DEFAULT_CANVAS_HEIGHT, r as DEFAULT_CANVAS_WIDTH, s as DEFAULT_DURATION, t as DEFAULT_FONT_SIZE, u as DEFAULT_FPS, v as EffectBevel, w as EffectFill, x as EffectFullDefinition, y as EffectGlow, z as EffectIndexItem, F as EffectLayerType, H as EffectPanel, I as EffectShadow, J as EffectStack, M as EffectStroke, N as EvaluatedTextLayer, O as GradingParams, L as LayerAnimation, Q as LayerTarget, U as SCENE_SCHEMA_VERSION, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as SpatialAnchorPoint, Z as StaggerDirection, _ as TemplateContainerLayer, $ as TemplateFlexLayout, a0 as TemplateImageLayer, a1 as TemplateShapeLayer, a2 as TemplateTextLayer, e as TemplateVariableDefinition, a3 as TemplateVariableType, a4 as TextSplitTransform, a5 as Timeline, a6 as createEmptyScene, a7 as newLayerId } from './types-BsF33bC4.cjs';
3
3
  import { z } from 'zod';
4
4
  export { C as CompositorFromScene, E as EvaluateOptions, F as FontDescriptor, a as FontLoadResult, b as FontLoader, c as FontVariant, T as TextEffectRenderer, _ as _buildConfig, d as advanceSceneTime, e as builtInPresets, f as checkFontVariant, g as createBlankTextEffectConfig, h as defaultConfig, i as ensureFontsLoaded, j as evaluateConfig, k as evaluateScene, l as getFontLoader, m as getSceneTime, n as initializeFontSystem, o as injectFontVariantRules, p as layerToTextEffectConfig, q as mergeSceneIntoConfig, r as renderTextEffectCore, s as resetFontLoader, t as resetSceneTime, u as resolveFontFamilyName, v as sceneToConfig, w as setSceneTime, x as syncCompositorFromScene, y as textEffectConfigToScene } from './index-CHLTQy2v.cjs';
5
- import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-FDQDo2pR.cjs';
6
- export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-FDQDo2pR.cjs';
5
+ import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-n6E8NGM_.cjs';
6
+ export { B as BubbleRenderMode, d as BubbleRenderOptions, e as CANONICAL_RENDERER_VERSION, f as CANONICAL_SCHEMA_VERSION, g as CanonicalRenderContext, h as CanonicalRenderInput, i as CanonicalRenderResult, j as CapabilityReport, k as CapabilityStatus, l as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, m as RenderCapability, n as RenderDiagnostic, o as RenderDiagnostics, p as RenderEnvironment, q as RenderIdentity, r as RenderTarget, S as SceneDocumentV2, s as TEXT_TEMPLATE_KIND, t as TEXT_TEMPLATE_RENDERER_VERSION, u as TEXT_TEMPLATE_SCHEMA_VERSION, v as TemplateAssetRef, w as TemplateBackgroundPanel, x as TemplateCapabilityReport, y as TemplateContainerNode, z as TemplateContainerNodeStyle, A as TemplateControl, D as TemplateControlConstraints, F as TemplateControlOption, G as TemplateControlType, H as TemplateDependencyManifest, I as TemplateDurationPolicy, J as TemplateFontRef, K as TemplateImageNode, L as TemplateLayerV2, M as TemplateMetadata, N as TemplateNode, O as TemplateNodeAnimation, Q as TemplatePreviewArtifacts, U as TemplatePropertyKeyframes, V as TemplateProtectedRegion, W as TemplateRenderTarget, X as TemplateRevision, Y as TemplateShapeNode, Z as TemplateShapeNodeStyle, _ as TemplateStyleRef, $ as TemplateTextNode, a0 as TemplateTextNodeStyle, a1 as TemplateTimelineMarker, a2 as TemplateTiming, a3 as TextBubbleCategory, a4 as TextBubbleLayout, a5 as TextBubblePadding, a6 as TextBubblePreset, a7 as TextEffectRenderInput, a8 as TextTemplateCanvas, a9 as TextTemplateClip, aa as TextTemplateDocument, ab as TextTemplateDocumentV2, ac as TextTemplateFlexLayout, ad as TextTemplateRenderInput, ae as canonicalContentHash, af as canonicalizeSceneDocument, ag as drawComicBurst, ah as drawRibbonBanner, ai as drawSpeechBubble, aj as drawThoughtCloud, ak as drawTornPaper, al as evaluateTextEffect, am as evaluateTextTemplate, an as getRenderCapabilities, ao as getTextTemplateControls, ap as normalizeTextEffect, aq as normalizeTextTemplate, ar as pseudoNoise, as as renderBubbleBackground, at as renderCanonicalToCanvas, au as renderTextEffectToCanvas, av as renderTextTemplateToCanvas, aw as resolveBubbleLayout, ax as resolveTemplateFontFamily, ay as resolveTextTemplateArtifact } from './index-n6E8NGM_.cjs';
7
7
  export { AppliedEffect, AppliedOverlay, BlendMode, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, FilterAsset, GraphDefinition, OverlayAsset, VideoEffectApiDefinition, VideoEffectCategory, VideoEffectItem, VideoEffectManifest, VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext } from './videoEffects/index.cjs';
8
8
  export { ALL_TRANSITIONS, AppliedTransition, EasingFunction, NativeTransitionDefinition, NativeTransitionParam, TRANSITION_CATEGORIES, TRANSITION_PRESETS, TransitionCategory, TransitionParameters, TransitionPreset, TransitionRenderer, TransitionRendererType, getAllTransitionTags, getAllTransitions, getRecommendedDuration, getTransitionById, getTransitionByRenderer, getTransitionCategories, getTransitionCountByCategory, getTransitionsByCategory, getTransitionsByTags, searchTransitions } from './transitions/index.cjs';
9
9
  import { NodeCapabilities, NodeRequirements, GraphPin, GraphNode, GraphEdge, MediaProcessingGraph } from '@clypra-studio/types';
@@ -7169,6 +7169,68 @@ declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneC
7169
7169
  background?: boolean;
7170
7170
  }): void;
7171
7171
 
7172
+ /**
7173
+ * Shared Sticker Scanner and Validator Module
7174
+ *
7175
+ * Single canonical implementation shared across:
7176
+ * - clypra-packages (@clypra-studio/engine)
7177
+ * - clypra-studio (Client-side Sticker Builder)
7178
+ * - clypra-api (Server-side validation & staging)
7179
+ * - clypra-api (CI validator script)
7180
+ */
7181
+ declare const MAX_LOTTIE_BYTES: number;
7182
+ declare const MAX_ASSET_BYTES: number;
7183
+ interface LottieScanResult {
7184
+ valid: boolean;
7185
+ errors: string[];
7186
+ dimensions?: {
7187
+ width: number;
7188
+ height: number;
7189
+ };
7190
+ animation?: {
7191
+ durationMs: number;
7192
+ fps: number;
7193
+ loop: boolean;
7194
+ lottie: {
7195
+ layerCount: number;
7196
+ hasExpressions: boolean;
7197
+ };
7198
+ };
7199
+ }
7200
+ interface AssetScanResult {
7201
+ valid: boolean;
7202
+ errors: string[];
7203
+ bytes: number;
7204
+ mime: "application/json" | "image/webp" | "image/png" | "image/svg+xml" | "application/octet-stream";
7205
+ dimensions?: {
7206
+ width: number;
7207
+ height: number;
7208
+ };
7209
+ animation?: LottieScanResult["animation"];
7210
+ }
7211
+ /**
7212
+ * Recursively scans Lottie node tree for expressions and external URLs.
7213
+ */
7214
+ declare function scanLottieNodes(node: any, found?: {
7215
+ expressions: number;
7216
+ remoteUrls: number;
7217
+ }): {
7218
+ expressions: number;
7219
+ remoteUrls: number;
7220
+ };
7221
+ /**
7222
+ * Inspects parsed or stringified Lottie JSON data.
7223
+ */
7224
+ declare function inspectLottieJson(jsonOrString: string | Record<string, any>): LottieScanResult;
7225
+ /**
7226
+ * Sniffs an asset buffer or string to detect MIME type, dimensions, and Lottie validity.
7227
+ */
7228
+ declare function inspectStickerAsset(data: Uint8Array | ArrayBuffer | string, filenameHint?: string): AssetScanResult;
7229
+ /**
7230
+ * Universal SHA-256 hash helper supporting both Web Crypto API (browser) and Node.js.
7231
+ */
7232
+ declare function calculateSha256(data: Uint8Array | ArrayBuffer | string): Promise<string>;
7233
+
7172
7234
  /**
7173
7235
  * @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
7174
7236
  * @version 0.1.0
@@ -7177,4 +7239,4 @@ declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneC
7177
7239
  /** Package version */
7178
7240
  declare const VERSION = "1.4.0";
7179
7241
 
7180
- export { ASPECT_RATIO_PRESETS, type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, BezierControlPoints, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, CompiledTextTemplate, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ComputedSplitUnitTransform, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeSizingPolicy, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderPass, RenderPlan, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, ResolveTemplateControlValuesOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedLayoutBounds, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, ResponsiveAnchorConfig, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, type SceneCanvasContext, SceneDocument, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, SplitMode, type SplitUnit, SpringParams, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateCustomization, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateManifest, type TemplatePresetCategory, TemplateRenderContext, TemplateRenderer, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, TextSplitAnimator, type TextStyleOverride, TextStyleSpan, TextTemplate, TextTemplateArtifact, type TextTemplateDiagnostic, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyEasing, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assertValidTextTemplateArtifact, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, canonicalTemplateHash, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, compileTextTemplate, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateSplitTextTransforms, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getSourceCropRect, getSpanForCharIndex, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, interpolateColorString, interpolateValue, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextTemplateArtifact, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderEvaluatedSceneToCanvas, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnchorPosition, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, resolveTemplateControlValues, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, solveSpring, sortKeyframes, splitTextContent, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateArtifact, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
7242
+ export { ASPECT_RATIO_PRESETS, type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetScanResult, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, BezierControlPoints, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, CompiledTextTemplate, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ComputedSplitUnitTransform, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieScanResult, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, MAX_ASSET_BYTES, MAX_LOTTIE_BYTES, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeSizingPolicy, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderPass, RenderPlan, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, ResolveTemplateControlValuesOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedLayoutBounds, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, ResponsiveAnchorConfig, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, type SceneCanvasContext, SceneDocument, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, SplitMode, type SplitUnit, SpringParams, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateCustomization, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateManifest, type TemplatePresetCategory, TemplateRenderContext, TemplateRenderer, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, TextSplitAnimator, type TextStyleOverride, TextStyleSpan, TextTemplate, TextTemplateArtifact, type TextTemplateDiagnostic, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyEasing, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assertValidTextTemplateArtifact, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, calculateSha256, canonicalTemplateHash, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, compileTextTemplate, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateSplitTextTransforms, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getSourceCropRect, getSpanForCharIndex, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, inspectLottieJson, inspectStickerAsset, interpolateColorString, interpolateValue, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextTemplateArtifact, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderEvaluatedSceneToCanvas, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnchorPosition, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, resolveTemplateControlValues, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanLottieNodes, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, solveSpring, sortKeyframes, splitTextContent, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateArtifact, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { S as SceneDocument, K as Keyframe, f as TextEffectConfig, g as StyleRec
2
2
  export { o as AnimationPreset, C as CanvasBackgroundConfig, p as ColorAdjustments, q as CompositorSettings, D as DEFAULT_CANVAS_HEIGHT, r as DEFAULT_CANVAS_WIDTH, s as DEFAULT_DURATION, t as DEFAULT_FONT_SIZE, u as DEFAULT_FPS, v as EffectBevel, w as EffectFill, x as EffectFullDefinition, y as EffectGlow, z as EffectIndexItem, F as EffectLayerType, H as EffectPanel, I as EffectShadow, J as EffectStack, M as EffectStroke, N as EvaluatedTextLayer, O as GradingParams, L as LayerAnimation, Q as LayerTarget, U as SCENE_SCHEMA_VERSION, V as SCENE_VERSION, W as SceneCanvas, X as SceneText, Y as SpatialAnchorPoint, Z as StaggerDirection, _ as TemplateContainerLayer, $ as TemplateFlexLayout, a0 as TemplateImageLayer, a1 as TemplateShapeLayer, a2 as TemplateTextLayer, e as TemplateVariableDefinition, a3 as TemplateVariableType, a4 as TextSplitTransform, a5 as Timeline, a6 as createEmptyScene, a7 as newLayerId } from './types-BsF33bC4.js';
3
3
  import { z } from 'zod';
4
4
  export { C as CompositorFromScene, E as EvaluateOptions, F as FontDescriptor, a as FontLoadResult, b as FontLoader, c as FontVariant, T as TextEffectRenderer, _ as _buildConfig, d as advanceSceneTime, e as builtInPresets, f as checkFontVariant, g as createBlankTextEffectConfig, h as defaultConfig, i as ensureFontsLoaded, j as evaluateConfig, k as evaluateScene, l as getFontLoader, m as getSceneTime, n as initializeFontSystem, o as injectFontVariantRules, p as layerToTextEffectConfig, q as mergeSceneIntoConfig, r as renderTextEffectCore, s as resetFontLoader, t as resetSceneTime, u as resolveFontFamilyName, v as sceneToConfig, w as setSceneTime, x as syncCompositorFromScene, y as textEffectConfigToScene } from './index-9ozUyd9c.js';
5
- import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index-XWLBYyFQ.js';
6
- export { d as CANONICAL_RENDERER_VERSION, e as CANONICAL_SCHEMA_VERSION, f as CanonicalRenderContext, g as CanonicalRenderInput, h as CanonicalRenderResult, i as CapabilityReport, j as CapabilityStatus, k as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, l as RenderCapability, m as RenderDiagnostic, n as RenderDiagnostics, o as RenderEnvironment, p as RenderIdentity, q as RenderTarget, S as SceneDocumentV2, r as TEXT_TEMPLATE_KIND, s as TEXT_TEMPLATE_RENDERER_VERSION, t as TEXT_TEMPLATE_SCHEMA_VERSION, u as TemplateAssetRef, v as TemplateBackgroundPanel, w as TemplateCapabilityReport, x as TemplateContainerNode, y as TemplateContainerNodeStyle, z as TemplateControl, A as TemplateControlConstraints, B as TemplateControlOption, D as TemplateControlType, F as TemplateDependencyManifest, G as TemplateDurationPolicy, H as TemplateFontRef, I as TemplateImageNode, J as TemplateLayerV2, K as TemplateMetadata, L as TemplateNode, M as TemplateNodeAnimation, N as TemplatePreviewArtifacts, O as TemplatePropertyKeyframes, Q as TemplateProtectedRegion, U as TemplateRenderTarget, V as TemplateRevision, W as TemplateShapeNode, X as TemplateShapeNodeStyle, Y as TemplateStyleRef, Z as TemplateTextNode, _ as TemplateTextNodeStyle, $ as TemplateTimelineMarker, a0 as TemplateTiming, a1 as TextEffectRenderInput, a2 as TextTemplateCanvas, a3 as TextTemplateClip, a4 as TextTemplateDocument, a5 as TextTemplateDocumentV2, a6 as TextTemplateFlexLayout, a7 as TextTemplateRenderInput, a8 as canonicalContentHash, a9 as canonicalizeSceneDocument, aa as evaluateTextEffect, ab as evaluateTextTemplate, ac as getRenderCapabilities, ad as getTextTemplateControls, ae as normalizeTextEffect, af as normalizeTextTemplate, ag as renderCanonicalToCanvas, ah as renderTextEffectToCanvas, ai as renderTextTemplateToCanvas, aj as resolveTemplateFontFamily, ak as resolveTextTemplateArtifact } from './index-XWLBYyFQ.js';
5
+ import { R as RenderPlan, T as TextTemplateArtifact, a as ResolveTemplateControlValuesOptions, b as TemplateCustomization, c as TemplateRenderContext, C as CompiledTextTemplate } from './index--k_VrUnv.js';
6
+ export { B as BubbleRenderMode, d as BubbleRenderOptions, e as CANONICAL_RENDERER_VERSION, f as CANONICAL_SCHEMA_VERSION, g as CanonicalRenderContext, h as CanonicalRenderInput, i as CanonicalRenderResult, j as CapabilityReport, k as CapabilityStatus, l as CompiledTemplateRenderLayer, E as EvaluatedTemplateScene, P as PublishedRevision, m as RenderCapability, n as RenderDiagnostic, o as RenderDiagnostics, p as RenderEnvironment, q as RenderIdentity, r as RenderTarget, S as SceneDocumentV2, s as TEXT_TEMPLATE_KIND, t as TEXT_TEMPLATE_RENDERER_VERSION, u as TEXT_TEMPLATE_SCHEMA_VERSION, v as TemplateAssetRef, w as TemplateBackgroundPanel, x as TemplateCapabilityReport, y as TemplateContainerNode, z as TemplateContainerNodeStyle, A as TemplateControl, D as TemplateControlConstraints, F as TemplateControlOption, G as TemplateControlType, H as TemplateDependencyManifest, I as TemplateDurationPolicy, J as TemplateFontRef, K as TemplateImageNode, L as TemplateLayerV2, M as TemplateMetadata, N as TemplateNode, O as TemplateNodeAnimation, Q as TemplatePreviewArtifacts, U as TemplatePropertyKeyframes, V as TemplateProtectedRegion, W as TemplateRenderTarget, X as TemplateRevision, Y as TemplateShapeNode, Z as TemplateShapeNodeStyle, _ as TemplateStyleRef, $ as TemplateTextNode, a0 as TemplateTextNodeStyle, a1 as TemplateTimelineMarker, a2 as TemplateTiming, a3 as TextBubbleCategory, a4 as TextBubbleLayout, a5 as TextBubblePadding, a6 as TextBubblePreset, a7 as TextEffectRenderInput, a8 as TextTemplateCanvas, a9 as TextTemplateClip, aa as TextTemplateDocument, ab as TextTemplateDocumentV2, ac as TextTemplateFlexLayout, ad as TextTemplateRenderInput, ae as canonicalContentHash, af as canonicalizeSceneDocument, ag as drawComicBurst, ah as drawRibbonBanner, ai as drawSpeechBubble, aj as drawThoughtCloud, ak as drawTornPaper, al as evaluateTextEffect, am as evaluateTextTemplate, an as getRenderCapabilities, ao as getTextTemplateControls, ap as normalizeTextEffect, aq as normalizeTextTemplate, ar as pseudoNoise, as as renderBubbleBackground, at as renderCanonicalToCanvas, au as renderTextEffectToCanvas, av as renderTextTemplateToCanvas, aw as resolveBubbleLayout, ax as resolveTemplateFontFamily, ay as resolveTextTemplateArtifact } from './index--k_VrUnv.js';
7
7
  export { AppliedEffect, AppliedOverlay, BlendMode, EFFECTS_REGISTRY, EffectCategory, EffectEngine, EffectGraph, EffectMetadata, EffectParameters, EffectPreset, EffectRenderer, EffectRendererType, FilterAsset, GraphDefinition, OverlayAsset, VideoEffectApiDefinition, VideoEffectCategory, VideoEffectItem, VideoEffectManifest, VideoEffectState, addNoise, blendColors, clearCanvas, effectMetadataToApi, generateEffectsManifest, getAllEffectsForApi, getEffectByIdForApi, getEffectCategoriesSummary, getEffectMetadata, getEffectPreviewUrl, getEffectRenderer, getEffectsByCategory, getEffectsByCategoryForApi, hexToRgba, rgbaToComponents, searchEffects, searchEffectsForApi, withContext } from './videoEffects/index.js';
8
8
  export { ALL_TRANSITIONS, AppliedTransition, EasingFunction, NativeTransitionDefinition, NativeTransitionParam, TRANSITION_CATEGORIES, TRANSITION_PRESETS, TransitionCategory, TransitionParameters, TransitionPreset, TransitionRenderer, TransitionRendererType, getAllTransitionTags, getAllTransitions, getRecommendedDuration, getTransitionById, getTransitionByRenderer, getTransitionCategories, getTransitionCountByCategory, getTransitionsByCategory, getTransitionsByTags, searchTransitions } from './transitions/index.js';
9
9
  import { NodeCapabilities, NodeRequirements, GraphPin, GraphNode, GraphEdge, MediaProcessingGraph } from '@clypra-studio/types';
@@ -7169,6 +7169,68 @@ declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneC
7169
7169
  background?: boolean;
7170
7170
  }): void;
7171
7171
 
7172
+ /**
7173
+ * Shared Sticker Scanner and Validator Module
7174
+ *
7175
+ * Single canonical implementation shared across:
7176
+ * - clypra-packages (@clypra-studio/engine)
7177
+ * - clypra-studio (Client-side Sticker Builder)
7178
+ * - clypra-api (Server-side validation & staging)
7179
+ * - clypra-api (CI validator script)
7180
+ */
7181
+ declare const MAX_LOTTIE_BYTES: number;
7182
+ declare const MAX_ASSET_BYTES: number;
7183
+ interface LottieScanResult {
7184
+ valid: boolean;
7185
+ errors: string[];
7186
+ dimensions?: {
7187
+ width: number;
7188
+ height: number;
7189
+ };
7190
+ animation?: {
7191
+ durationMs: number;
7192
+ fps: number;
7193
+ loop: boolean;
7194
+ lottie: {
7195
+ layerCount: number;
7196
+ hasExpressions: boolean;
7197
+ };
7198
+ };
7199
+ }
7200
+ interface AssetScanResult {
7201
+ valid: boolean;
7202
+ errors: string[];
7203
+ bytes: number;
7204
+ mime: "application/json" | "image/webp" | "image/png" | "image/svg+xml" | "application/octet-stream";
7205
+ dimensions?: {
7206
+ width: number;
7207
+ height: number;
7208
+ };
7209
+ animation?: LottieScanResult["animation"];
7210
+ }
7211
+ /**
7212
+ * Recursively scans Lottie node tree for expressions and external URLs.
7213
+ */
7214
+ declare function scanLottieNodes(node: any, found?: {
7215
+ expressions: number;
7216
+ remoteUrls: number;
7217
+ }): {
7218
+ expressions: number;
7219
+ remoteUrls: number;
7220
+ };
7221
+ /**
7222
+ * Inspects parsed or stringified Lottie JSON data.
7223
+ */
7224
+ declare function inspectLottieJson(jsonOrString: string | Record<string, any>): LottieScanResult;
7225
+ /**
7226
+ * Sniffs an asset buffer or string to detect MIME type, dimensions, and Lottie validity.
7227
+ */
7228
+ declare function inspectStickerAsset(data: Uint8Array | ArrayBuffer | string, filenameHint?: string): AssetScanResult;
7229
+ /**
7230
+ * Universal SHA-256 hash helper supporting both Web Crypto API (browser) and Node.js.
7231
+ */
7232
+ declare function calculateSha256(data: Uint8Array | ArrayBuffer | string): Promise<string>;
7233
+
7172
7234
  /**
7173
7235
  * @clypra-studio/engine — Canvas 2D text effects, Lottie tooling, and animation engine.
7174
7236
  * @version 0.1.0
@@ -7177,4 +7239,4 @@ declare function renderEvaluatedSceneToCanvas(scene: EvaluatedScene, ctx: SceneC
7177
7239
  /** Package version */
7178
7240
  declare const VERSION = "1.4.0";
7179
7241
 
7180
- export { ASPECT_RATIO_PRESETS, type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, BezierControlPoints, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, CompiledTextTemplate, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ComputedSplitUnitTransform, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeSizingPolicy, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderPass, RenderPlan, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, ResolveTemplateControlValuesOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedLayoutBounds, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, ResponsiveAnchorConfig, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, type SceneCanvasContext, SceneDocument, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, SplitMode, type SplitUnit, SpringParams, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateCustomization, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateManifest, type TemplatePresetCategory, TemplateRenderContext, TemplateRenderer, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, TextSplitAnimator, type TextStyleOverride, TextStyleSpan, TextTemplate, TextTemplateArtifact, type TextTemplateDiagnostic, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyEasing, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assertValidTextTemplateArtifact, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, canonicalTemplateHash, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, compileTextTemplate, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateSplitTextTransforms, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getSourceCropRect, getSpanForCharIndex, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, interpolateColorString, interpolateValue, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextTemplateArtifact, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderEvaluatedSceneToCanvas, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnchorPosition, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, resolveTemplateControlValues, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, solveSpring, sortKeyframes, splitTextContent, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateArtifact, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
7242
+ export { ASPECT_RATIO_PRESETS, type AddBreakpointCommand, type AddDataPreviewSetCommand, type AddNodeCommand, type AddTimelineMarkerCommand, type AddVariableCommand, type AlignmentGuide, type AlignmentMode, type AnchorSide, type AnchorXMode, type AnchorYMode, type AnimBuildOpts, type AnimKeyframe, AnimTrack, type AnimTrackDef, type AnimatableParamDef, AnimatableValue, type AnimationCategory, type AnimationDiagnostic, type AnimationDiagnosticSeverity, type AnimationEvaluationOptions, AnimationPresetSchema, AnimationRuntime, AnimationSchema, type AnimationStartSpec, type AnimationState, AnimationValidator, type AnnotationNode, type ArcGeometryOutput, type AssetHandle, type AssetKind, type AssetManifest, type AssetRef, AssetRegistry$1 as AssetRegistry, type AssetScanResult, type AssetSource, type AudioNode, type AudioPlaybackConfig, type AvatarNode, type AvoidRegionKind, type AxisConfig, BUILTIN_CANVAS_TEMPLATES, type BarGeometryItem, type BaseCommand, type BaseEditorCommand, type BatchCommand, type BatchCommandsCommand, type BatchInjection, type BehaviorKind, type BehaviorSpec, BezierControlPoints, type BindingDefinition, type BodySegmentationOptions, type BodySegmentationRequest, type BodySegmentationResponse, type BodySegmentationRuntime, type BodySegmentationRuntimeConfig, type BoundingBox, BoundingBoxSchema, type BoundingRegion, type BreadcrumbItem, type Breakpoint, type BreakpointSet, COMPOSITION_PRESETS, type CalloutNode, CanvasDevice, type CanvasSnapResult, type ChartAnimationConfig, type ChartBarStyle, type ChartNode, type ChartScale, type ChartSeries, type ChartType, type ClipConform, type ClipSegment, type CodeOverlayContent, type CodeSmartOverlayContent, type ColumnDefinition, type Command, type CommandBuffer, CommandBufferBuilder, type CommandExecutionResult, CommandExecutor, CommandHistory, type CommandHistoryOptions, type CommandType, type ComparisonItem, type ComparisonOverlayContent, type ComparisonSmartOverlayContent, CompiledTextTemplate, type ComponentCategory, type ComponentDefinition, type ComponentNode, type CompositionPreset, type ComputedCell, type ComputedColumn, type ComputedNodeBounds, type ComputedRow, type ComputedSplitUnitTransform, type ConformMode, type ConnectorNode, type ContainerNode, type CountUpEasing, DEFAULT_TEXT_STYLE, DataBindingAuthoringEngine, DataBindingEngine, type DataBindingRule, type DataPreviewSet, type DeleteNodeCommand, type DeleteNodesCommand, type DependencyGraph, type DetachComponentCommand, type DimensionMode, type DividerNode, type DocumentCommand, DocumentMigrator, type DocumentPoint, DocumentValidator, type DocumentVariable, type DotLottieManifest, type DrawPerCharTextOptions, type DuplicateNodesCommand, EMPHASIS_PRESETS, ENTRANCE_PRESETS, EXIT_PRESETS, EXPORT_PROFILE_PRESETS, type EasingControlPoint, type EditorAddNodeCommand, type EditorCommand, EditorCommandSystem, type EditorCommandType, type EditorExecutionResult, EffectBevelSchema, EffectFillSchema, EffectFullDefinitionSchema, EffectGlowSchema, EffectIndexItemSchema, type EffectInstance, EffectLayer, EffectPanelSchema, EffectShadowSchema, EffectStackSchema, EffectStrokeSchema, type EncodedFileEntry, type EncodedOutput, type EvaluatedBroadcastFrame, type EvaluatedContent, type EvaluatedExportFrame, type EvaluatedMilestone, type EvaluatedNode, type EvaluatedNodeState, type EvaluatedScene, type EvaluatedSceneState, type EvaluatedStyle, type EvaluatedThreshold, type EvaluatedTransform, type EvaluatedVideoStateAtTime, type EvaluationDiagnostic, type ExecutionPlanner, type ExecutionPolicy, type ExecutionQuality, ExportAbortError, type ExportConfig, type ExportDiagnosticCode, type ExportDiagnosticSeverity, type ExportFormat, type ExportFrameDescriptor, ExportJob, type ExportJobRecord, type ExportProfile, type ExportProgress, type ExportValidationDiagnostic, ExportValidator, FONT_WEIGHT_OPTIONS, type FillType, type FocalPoint$1 as FocalPoint, type FontRef, FontRegistry, FontSchema, type FontSpec, type FrameGraph, FrameGraphBuilder, type FrameNode, type GaugeNode, type GaugeThreshold, GifEncoder, type GifExportOptions, type GifFrame, GlowLayer, type GradientDir, type GradientNode, GradientStop, GradientStopSchema, GraphValidator, GridEngine, type GroupNodesCommand, type HandleType, type IconNode, type ImageFitMode, type ImageFittingInput, type ImageFittingResult, ImageLayerSchema, type JobChangeListener, type JobStatus, Keyframe, type KeyframeTrack, LOOP_PRESETS, LOTTIE_ANIM_PRESETS, LOTTIE_TEMPLATE_PRESETS, LayerAnimationSchema, type LayoutComputedState, LayoutEngine, type LayoutMode, type LineNode, type ListOverlayContent, type ListOverlayItem, type ListSmartOverlayContent, LiveBroadcastBridge, type LiveBroadcastOptions, type LottieAnimPreset, type LottieFileInfo, type LottieFontEntry, type LottieFontUsage, type LottieGradientStop, type LottieKeyframe, type LottieNode, type LottiePropertyPath, type LottieScanResult, type LottieTemplatePreset, type LowerThirdOverlayContent, type LowerThirdSmartOverlayContent, MAX_ASSET_BYTES, MAX_LOTTIE_BYTES, type MediaEncoder, MediaEncoderRegistry, type MediaFitMode, MediaImageEngine, type MediaLayout, type MetricDelta, MetricEngine, type MetricEvaluationResult, type MetricFormatOptions, type MetricNode, type MilestoneItem, type MotionPreset, type MotionPresetDefinition, type MotionPresetParameter, MotionPresetRegistry, type MoveNodesCommand, type Mp4ExportOptions, Mp4VideoEncoder, type NodeAnimationRules, type NodeConstraints, type NodeDefinition, type NodeLayoutRules, NodeRegistry, type NodeSizingPolicy, type NodeStartTransform, type NodeStyleRules, type NormalizedCrop, NullBackend, type OverlayDocument, type ParsedTextLayer, type PlaybackDirection, type PlaybackMode, PngSequenceEncoder, type PngSequenceFrame, type PngSequenceOptions, Preset, type PrimitiveDefinition, type PrimitiveMediaNode, PrimitiveRegistry, type PrimitiveShapeNode, type PrimitiveTextNode, ProResVideoEncoder, type ProfileCanvasDimensions, type ProgressNode, ProjectCompiler, ProjectHelper, type ProjectManifestV2, type PropertyAnimationDefinition, PropertyAnimationRegistry, type PropertyDefinition, PropertyInspectorEngine, PropertyInterpolator, type PropertySchemaField, type PropertyValueType, type PublishedOverlayArtifact, type QuoteOverlayContent, type QuoteSmartOverlayContent, RawFramesEncoder, type RecordedExecution, type RegisterAssetCommand, type RegisteredAsset, type RegisteredFont, type RemoveAssetCommand, type RemoveBreakpointCommand, type RemoveDataPreviewSetCommand, type RemoveTimelineMarkerCommand, type RemoveVariableCommand, type RenderBackend, type RenderPass, RenderPlan, type RendererCapabilities, type ReorderNodesCommand, type ReparentNodeCommand, type RepeaterNode, type ResizeHandle, type ResizeNodeCommand, type ResizeOptions, ResolveTemplateControlValuesOptions, type ResolvedAsset, type ResolvedFit, type ResolvedFont, type ResolvedImageDimensions, type ResolvedLayoutBounds, type ResolvedMediaLayout, type ResourceAllocation, type ResourceRequest, type ResourceState$1 as ResourceState, ResponsiveAnchorConfig, type ResponsiveNodeOverride, type RichTextNode, type RichTextSpan, RuntimeAssetResolver, type RuntimeContext, SMART_OVERLAY_PRESETS, SUPPORTED_FONT_FAMILIES, type SceneCanvasContext, SceneDocument, type SceneNode, type SceneNodeBase, type SceneNodeType, type ScratchElementBlock, type ScratchOverlayTemplate, type ScreenPoint, SelectionEngine, type SemanticAnimationConfig, type SemanticBehaviorConfig, type SemanticContent, type SemanticIntent, type SemanticOverlayDefinition, type SemanticSlotDefinition, type SemanticSpatialConstraints, SeriesEngine, type SeriesPoint, type SetActiveBreakpointCommand, type SetAssetRefCommand, type SetBindingCommand, type SetDocumentCommand, type SetFontRefCommand, type SetResponsiveOverrideCommand, type ShaderCompilation, type ShapeKind, ShapeLayerSchema, type ShotBoundary, type Size, type SizingDimensionInput, type SmartAlignmentGuide, SmartGuideEngine, type SmartOverlayAnimation, type SmartOverlayClip, type SmartOverlayContentUnion, type SmartOverlayLayout, type SmartOverlayPreset, type SmartOverlayRegistryItem, SmartOverlayRegistryService, SmartOverlayRenderer, type SmartOverlayStyle, type SmartOverlayType, type SmartSnapResult, SnapEngine, type SnapResult, type SocialOverlayContent, type SocialSmartOverlayContent, type SpatialAnchorConfig, type SpatialConstraintSpec, SplitMode, type SplitUnit, SpringParams, type StatOverlayContent, type StatSmartOverlayContent, StyleRecipe, type SubtitleRegion, TEMPLATE_CATEGORIES, type TableColumn, type TableLayoutResult, type TableNode, TemplateCategory, TemplateCategorySchema, TemplateCustomization, TemplateEasingFunction, TemplateKeyframe, TemplateLayer, TemplateLayerSchema, type TemplateManifest, type TemplatePresetCategory, TemplateRenderContext, TemplateRenderer, type TemporalKeyframedRegion, type TextAlign, type TextCustomization, TextEffectBuilder, TextEffectConfig, TextEffectDefinition, TextEffectDefinitionSchema, type TextLayerConfig, TextLayerSchema, type TextLayerStyle, type TextLayoutBounds, type TextLayoutResult, TextSplitAnimator, type TextStyleOverride, TextStyleSpan, TextTemplate, TextTemplateArtifact, type TextTemplateDiagnostic, TextTemplateSchema, type ThresholdBand, type TimelineEvent, type TimelineMarker, type TimelineNode, type TimelineOverlayContent, type TimelineOverlayNode, type TimelineSmartOverlayContent, type TrackDefinition, type TrackedSubject, type TranscriptSegment, TransformEngine, type UngroupNodesCommand, type UpdateAnimationCommand, type UpdateCanvasSizeCommand, type UpdateDataPreviewSetCommand, type UpdateDocumentMetaCommand, type UpdateKeyframeTracksCommand, type UpdateNodePropertyCommand, type UpdateNodeStyleCommand, type UpdatePropCommand, type UpdateStyleCommand, type UpdateTimelineMarkerCommand, type UpdateVariableCommand, type Command$1 as V2Command, VERSION, type ValidatedEffectDefinition, type ValidatedTextEffectDefinition, type ValidatedTextTemplate, type ValidationDiagnostic, type ValidationError, type ValidationResult, type VideoCodecProfile, type VideoContext, type VideoNode, type VideoPlaybackConfig, type ViewportState, ViewportTransform, type VirtualWindow, WEBM_EXPORT_MAX_FRAMES, WebMEncoder, type WebMExportOptions, _resetPlatformCache, addImageLayer, addKeyframe, addKeyframeAtTime, addOrUpdateKeyframe, addShapeLayer, addSolidLayer, addTextLayer, addTrack, addVectorShape, alignToLottieJ, animationRuntime, animationValidator, applyEasing, applyFillColorToAll, applyLetterSpacing, applyMaskReveal, applyRecipeToScene, applyStyleToLottie, applyStyleToLottieLayer, applyTimelineAtTime, assertValidTextTemplateArtifact, assetRegistry, bakeAnimationIntoLayer, blendConfigs, blendScenes, buildDotLottie, buildFontEntries, buildLottieFontName, buildPngSequenceZip, builtInRecipes, calculateCropFromFocalPoint, calculateDefaultCoverCrop, calculateMediaFit, calculateResizeBounds, calculateRotationAngle, calculateSha256, canonicalTemplateHash, captureImageSourceDimensions, captureLottieFrames, captureVideoSourceDimensions, clearAnimationFromLayer, clearFontCache, clearRecipeCache, cloneSceneWithNewIds, commandExecutor, compileSemanticOverlay, compileTextTemplate, componentRegistry, computeAutoFitFontSize, computeFitZoom, computeTextLayout, convertScratchTemplateToClip, countTextGlyphs, createBlankLottie, createBlankScratchTemplate, createCanvas, createDefaultRevealTrack, createDefaultScratchBlock, createKeyframed, createPulseOpacityTrack, cubicBezier, dataBindingAuthoringEngine, dataBindingEngine, deleteKeyframe, deserializeTemplate, documentMigrator, documentValidator, downloadDotLottie, downloadLottieJson, downloadLottieMp4, downloadPngSequenceZip, downloadSceneWebM, drawPerCharText, drawRoundedRect, duplicateTrackAtPlayhead, ease, editorCommandSystem, enableKeyframing, encodeGif, ensureDefaultTimeline, ensureFontInLottie, evaluateAnimatable, evaluateExportFrame, evaluateOverlayDocument, evaluateSplitTextTransforms, exportLottieToMp4, exportValidator, findTrackIndex, fontRegistry, formatValidationErrors, getAnimPreset, getAnimatableParamDef, getAnimatableParamsForLayer, getCanvasTemplatePreset, getCanvasTemplatesByCategory, getClipLayout, getDefaultText, getLayerById, getPresetScene, getSourceCropRect, getSpanForCharIndex, getSupportedWebMMimeType, getTemplatePreset, getTemplatesByCategory, getWebMFrameCount, hexToLottieColor, hexToLottieRgb, hitTestTransformHandles, injectBatch, injectColor, injectGlobalTextStyle, injectSolidColor, injectText, injectTextStyle, inspectLottieJson, inspectStickerAsset, interpolateColorString, interpolateValue, isKeyframed, isMp4ExportSupported, isWebMExportSupported, layoutEngine, liveBroadcastBridge, loadLottieFonts, lottieColorToHex, lottieJToAlign, measureTextFits, measureTextWidth, mediaEncoderRegistry, motionPresetRegistry, moveKeyframe, normalizeTextTemplateArtifact, parseHistorySnapshot, parseLottieJson, preloadGoogleFont, presetToRecipe, primitiveRegistry, propertyAnimationRegistry, propertyInspectorEngine, propertyInterpolator, pruneTracksForLayer, rainbowCharFillColors, readLayerScalar, readStyleFromLottieLayer, reindexLayers, releaseCanvas, removeKeyframe, removeTemplateKeyframe, removeTrack, renderEvaluatedSceneToCanvas, renderPngSequence, renderSceneWebM, resizeCharFillColors, resolveAnchorPosition, resolveAnimatedScalar, resolveBehaviorToAnimationSpec, resolveConform, resolveDocumentForBreakpoint, resolveExportCanvasDimensions, resolveMediaLayout, resolveNodeForBreakpoint, resolveSpatialConstraints, resolveTemplateControlValues, restoreLetterSpacing, rotateCrop, runtimeAssetResolver, sampleVideoContextAtTime, scanLottieFonts, scanLottieNodes, scanTextLayers, selectionEngine, serializeTemplate, setCharFillColor, setTracks, shouldUsePerCharFill, smartOverlayRegistry, snapEngine, snapshotScene, solveSpring, sortKeyframes, splitTextContent, streamExportFrames, supportsCtxFilter, supportsLetterSpacing, supportsOffscreenCanvas, supportsRoundRect, trackId, updateKeyframe, updateSceneBevel, updateSceneCanvas, updateSceneFill, updateSceneGlow, updateScenePanel, updateSceneShadow, updateSceneStack, updateSceneStroke, updateSceneText, updateStaticProperty, updateTimeline, updateTrack, updateTrackMatte, upsertKeyframe, validateEffectDefinition, validateEffectDefinitionStrict, validateTextEffectDefinition, validateTextEffectDefinitionStrict, validateTextTemplate, validateTextTemplateArtifact, validateTextTemplateStrict, viewportTransform, waitForFontsReady, wrapTextToWidth };
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ import {
2
+ FontLoader,
3
+ checkFontVariant,
4
+ ensureFontsLoaded,
5
+ getFontLoader,
6
+ initializeFontSystem,
7
+ injectFontVariantRules,
8
+ resetFontLoader
9
+ } from "./chunk-V5VSY64D.js";
1
10
  import {
2
11
  CANONICAL_RENDERER_VERSION,
3
12
  CANONICAL_SCHEMA_VERSION,
@@ -13,6 +22,11 @@ import {
13
22
  compileTextTemplate,
14
23
  createKeyframed,
15
24
  cubicBezier,
25
+ drawComicBurst,
26
+ drawRibbonBanner,
27
+ drawSpeechBubble,
28
+ drawThoughtCloud,
29
+ drawTornPaper,
16
30
  evaluateAnimatable,
17
31
  evaluateSplitTextTransforms,
18
32
  evaluateTextEffect,
@@ -26,26 +40,20 @@ import {
26
40
  normalizeTextEffect,
27
41
  normalizeTextTemplate,
28
42
  normalizeTextTemplateArtifact,
43
+ pseudoNoise,
29
44
  removeTemplateKeyframe,
45
+ renderBubbleBackground,
30
46
  renderCanonicalToCanvas,
31
47
  renderTextEffectToCanvas,
32
48
  renderTextTemplateToCanvas,
49
+ resolveBubbleLayout,
33
50
  resolveTemplateControlValues,
34
51
  resolveTemplateFontFamily,
35
52
  resolveTextTemplateArtifact,
36
53
  solveSpring,
37
54
  splitTextContent,
38
55
  validateTextTemplateArtifact
39
- } from "./chunk-JP44RJUI.js";
40
- import {
41
- FontLoader,
42
- checkFontVariant,
43
- ensureFontsLoaded,
44
- getFontLoader,
45
- initializeFontSystem,
46
- injectFontVariantRules,
47
- resetFontLoader
48
- } from "./chunk-V5VSY64D.js";
56
+ } from "./chunk-KUJR5V3B.js";
49
57
  import {
50
58
  COMPOSITION_PRESETS,
51
59
  CanvasDevice,
@@ -17635,6 +17643,170 @@ function renderEvaluatedSceneToCanvas(scene, ctx, options = {}) {
17635
17643
  scene.nodes.forEach((node) => drawNode(ctx, node, scene.time));
17636
17644
  }
17637
17645
 
17646
+ // src/stickers/stickerScanner.ts
17647
+ var MAX_LOTTIE_BYTES = 300 * 1024;
17648
+ var MAX_ASSET_BYTES = 2 * 1024 * 1024;
17649
+ function scanLottieNodes(node, found = { expressions: 0, remoteUrls: 0 }) {
17650
+ if (Array.isArray(node)) {
17651
+ for (const item of node) {
17652
+ scanLottieNodes(item, found);
17653
+ }
17654
+ } else if (node && typeof node === "object") {
17655
+ if (typeof node.x === "string" && node.x.trim() !== "" && "k" in node) {
17656
+ found.expressions++;
17657
+ }
17658
+ for (const value of Object.values(node)) {
17659
+ scanLottieNodes(value, found);
17660
+ }
17661
+ } else if (typeof node === "string" && /^https?:\/\//i.test(node)) {
17662
+ found.remoteUrls++;
17663
+ }
17664
+ return found;
17665
+ }
17666
+ function inspectLottieJson(jsonOrString) {
17667
+ const errors = [];
17668
+ let json;
17669
+ if (typeof jsonOrString === "string") {
17670
+ try {
17671
+ json = JSON.parse(jsonOrString);
17672
+ } catch (err) {
17673
+ return { valid: false, errors: [`Lottie file is not valid JSON: ${err.message}`] };
17674
+ }
17675
+ } else {
17676
+ json = jsonOrString;
17677
+ }
17678
+ if (!json || typeof json !== "object") {
17679
+ return { valid: false, errors: ["Lottie data must be a JSON object"] };
17680
+ }
17681
+ for (const field of ["v", "fr", "ip", "op", "w", "h", "layers"]) {
17682
+ if (!(field in json)) {
17683
+ errors.push(`Lottie header missing required field "${field}"`);
17684
+ }
17685
+ }
17686
+ const found = scanLottieNodes(json);
17687
+ if (found.expressions > 0) {
17688
+ errors.push(`Lottie contains ${found.expressions} expression(s); expressions are strictly forbidden`);
17689
+ }
17690
+ if (found.remoteUrls > 0) {
17691
+ errors.push(`Lottie references ${found.remoteUrls} remote URL(s); all assets must be embedded`);
17692
+ }
17693
+ const fps = typeof json.fr === "number" && json.fr > 0 ? json.fr : 30;
17694
+ const ip = typeof json.ip === "number" ? json.ip : 0;
17695
+ const op = typeof json.op === "number" ? json.op : ip;
17696
+ const durationMs = Math.round((op - ip) / fps * 1e3);
17697
+ const layerCount = Array.isArray(json.layers) ? json.layers.length : 0;
17698
+ const width = Math.round(Number(json.w || 0));
17699
+ const height = Math.round(Number(json.h || 0));
17700
+ if (width < 16 || width > 2048) {
17701
+ errors.push(`Lottie width ${width} is outside permitted range [16, 2048]`);
17702
+ }
17703
+ if (height < 16 || height > 2048) {
17704
+ errors.push(`Lottie height ${height} is outside permitted range [16, 2048]`);
17705
+ }
17706
+ return {
17707
+ valid: errors.length === 0,
17708
+ errors,
17709
+ dimensions: { width, height },
17710
+ animation: {
17711
+ durationMs: Math.max(1, durationMs),
17712
+ fps,
17713
+ loop: true,
17714
+ lottie: {
17715
+ layerCount,
17716
+ hasExpressions: false
17717
+ }
17718
+ }
17719
+ };
17720
+ }
17721
+ function inspectStickerAsset(data, filenameHint = "") {
17722
+ const errors = [];
17723
+ let u8;
17724
+ if (typeof data === "string") {
17725
+ u8 = new TextEncoder().encode(data);
17726
+ } else if (data instanceof Uint8Array) {
17727
+ u8 = data;
17728
+ } else {
17729
+ u8 = new Uint8Array(data);
17730
+ }
17731
+ const bytes = u8.length;
17732
+ const isPng = u8.length >= 8 && u8[0] === 137 && u8[1] === 80 && u8[2] === 78 && u8[3] === 71 && u8[4] === 13 && u8[5] === 10 && u8[6] === 26 && u8[7] === 10;
17733
+ const isWebp = u8.length >= 12 && u8[0] === 82 && u8[1] === 73 && u8[2] === 70 && u8[3] === 70 && u8[8] === 87 && u8[9] === 69 && u8[10] === 66 && u8[11] === 80;
17734
+ const isJson = !isPng && !isWebp && (filenameHint.toLowerCase().endsWith(".json") || u8[0] === 123);
17735
+ const isSvg = !isPng && !isWebp && !isJson && (filenameHint.toLowerCase().endsWith(".svg") || u8[0] === 60);
17736
+ if (isJson) {
17737
+ if (bytes > MAX_LOTTIE_BYTES) {
17738
+ errors.push(`Lottie file size (${bytes} bytes) exceeds maximum limit of ${MAX_LOTTIE_BYTES} bytes (300 KB)`);
17739
+ }
17740
+ const text = new TextDecoder("utf8").decode(u8);
17741
+ const lottieScan = inspectLottieJson(text);
17742
+ if (!lottieScan.valid) {
17743
+ errors.push(...lottieScan.errors);
17744
+ }
17745
+ return {
17746
+ valid: errors.length === 0,
17747
+ errors,
17748
+ bytes,
17749
+ mime: "application/json",
17750
+ dimensions: lottieScan.dimensions,
17751
+ animation: lottieScan.animation
17752
+ };
17753
+ }
17754
+ if (bytes > MAX_ASSET_BYTES) {
17755
+ errors.push(`Asset file size (${bytes} bytes) exceeds maximum limit of ${MAX_ASSET_BYTES} bytes (2 MB)`);
17756
+ }
17757
+ if (isPng) {
17758
+ let width = 0;
17759
+ let height = 0;
17760
+ if (u8.length >= 24) {
17761
+ const view = new DataView(u8.buffer, u8.byteOffset, u8.byteLength);
17762
+ width = view.getUint32(16);
17763
+ height = view.getUint32(20);
17764
+ }
17765
+ return {
17766
+ valid: errors.length === 0,
17767
+ errors,
17768
+ bytes,
17769
+ mime: "image/png",
17770
+ dimensions: width > 0 && height > 0 ? { width, height } : void 0
17771
+ };
17772
+ }
17773
+ if (isWebp) {
17774
+ return {
17775
+ valid: errors.length === 0,
17776
+ errors,
17777
+ bytes,
17778
+ mime: "image/webp"
17779
+ };
17780
+ }
17781
+ if (isSvg) {
17782
+ return {
17783
+ valid: errors.length === 0,
17784
+ errors,
17785
+ bytes,
17786
+ mime: "image/svg+xml"
17787
+ };
17788
+ }
17789
+ return {
17790
+ valid: false,
17791
+ errors: ["Unsupported file format; allowed formats are Lottie JSON, WebP, PNG, and SVG"],
17792
+ bytes,
17793
+ mime: "application/octet-stream"
17794
+ };
17795
+ }
17796
+ async function calculateSha256(data) {
17797
+ const u8 = typeof data === "string" ? new TextEncoder().encode(data) : data instanceof Uint8Array ? data : new Uint8Array(data);
17798
+ if (typeof crypto !== "undefined" && crypto.subtle) {
17799
+ const hashBuf = await crypto.subtle.digest("SHA-256", u8);
17800
+ return Array.from(new Uint8Array(hashBuf)).map((b) => b.toString(16).padStart(2, "0")).join("");
17801
+ }
17802
+ try {
17803
+ const nodeCrypto = await import("crypto");
17804
+ return nodeCrypto.createHash("sha256").update(u8).digest("hex");
17805
+ } catch {
17806
+ throw new Error("No cryptographic hash implementation available");
17807
+ }
17808
+ }
17809
+
17638
17810
  // src/index.ts
17639
17811
  var VERSION = "1.4.0";
17640
17812
  export {
@@ -17702,6 +17874,8 @@ export {
17702
17874
  LayerAnimationSchema,
17703
17875
  LayoutEngine,
17704
17876
  LiveBroadcastBridge,
17877
+ MAX_ASSET_BYTES,
17878
+ MAX_LOTTIE_BYTES,
17705
17879
  MediaEncoderRegistry,
17706
17880
  MediaImageEngine,
17707
17881
  MetricEngine,
@@ -17791,6 +17965,7 @@ export {
17791
17965
  calculateMediaFit,
17792
17966
  calculateResizeBounds,
17793
17967
  calculateRotationAngle,
17968
+ calculateSha256,
17794
17969
  canonicalContentHash,
17795
17970
  canonicalTemplateHash,
17796
17971
  canonicalizeSceneDocument,
@@ -17834,8 +18009,13 @@ export {
17834
18009
  downloadLottieMp4,
17835
18010
  downloadPngSequenceZip,
17836
18011
  downloadSceneWebM,
18012
+ drawComicBurst,
17837
18013
  drawPerCharText,
18014
+ drawRibbonBanner,
17838
18015
  drawRoundedRect,
18016
+ drawSpeechBubble,
18017
+ drawThoughtCloud,
18018
+ drawTornPaper,
17839
18019
  duplicateTrackAtPlayhead,
17840
18020
  ease,
17841
18021
  editorCommandSystem,
@@ -17907,6 +18087,8 @@ export {
17907
18087
  injectSolidColor,
17908
18088
  injectText,
17909
18089
  injectTextStyle,
18090
+ inspectLottieJson,
18091
+ inspectStickerAsset,
17910
18092
  interpolateColorString,
17911
18093
  interpolateValue,
17912
18094
  isKeyframed,
@@ -17937,6 +18119,7 @@ export {
17937
18119
  propertyInspectorEngine,
17938
18120
  propertyInterpolator,
17939
18121
  pruneTracksForLayer,
18122
+ pseudoNoise,
17940
18123
  rainbowCharFillColors,
17941
18124
  readLayerScalar,
17942
18125
  readStyleFromLottieLayer,
@@ -17945,6 +18128,7 @@ export {
17945
18128
  removeKeyframe,
17946
18129
  removeTemplateKeyframe,
17947
18130
  removeTrack,
18131
+ renderBubbleBackground,
17948
18132
  renderCanonicalToCanvas,
17949
18133
  renderEvaluatedSceneToCanvas,
17950
18134
  renderPngSequence,
@@ -17958,6 +18142,7 @@ export {
17958
18142
  resolveAnchorPosition,
17959
18143
  resolveAnimatedScalar,
17960
18144
  resolveBehaviorToAnimationSpec,
18145
+ resolveBubbleLayout,
17961
18146
  resolveConform,
17962
18147
  resolveDocumentForBreakpoint,
17963
18148
  resolveExportCanvasDimensions,
@@ -17974,6 +18159,7 @@ export {
17974
18159
  runtimeAssetResolver,
17975
18160
  sampleVideoContextAtTime,
17976
18161
  scanLottieFonts,
18162
+ scanLottieNodes,
17977
18163
  scanTextLayers,
17978
18164
  sceneToConfig,
17979
18165
  searchEffects,