@motion.page/sdk 1.0.4 → 1.0.5

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.
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { HoverConfig, ClickConfig, ScrollConfig, MouseMoveConfig, GestureConfig, CursorConfig, PageExitConfig, TargetInput, AnimationConfig, TimelineConfig, RepeatConfig } from '../types';
13
13
  import { Animation } from './Animation';
14
+ import { AnimationBuilder } from './AnimationBuilder';
14
15
  export declare class Timeline {
15
16
  /** Monotonic counter for generating unique each-mode instance names */
16
17
  private static _eachCounter;
@@ -136,7 +137,10 @@ export declare class Timeline {
136
137
  */
137
138
  call(callback: (...args: unknown[]) => void, params?: unknown[], position?: string | number): this;
138
139
  /**
139
- * Get the first animation's target element for trigger inference
140
+ * Get the first animation's target element for trigger inference.
141
+ * When text splitting is active, returns the original pre-split container
142
+ * element instead of the split char/word fragments, so the scroll trigger
143
+ * is anchored to the full element rather than a tiny character span.
140
144
  * Note: Returns only DOM Elements, not plain objects
141
145
  */
142
146
  private _getFirstAnimationTarget;
@@ -353,4 +357,10 @@ export declare class Timeline {
353
357
  * @internal
354
358
  */
355
359
  getFirstChildAnimation(): Animation | null;
360
+ /**
361
+ * Get first child builder (for split-aware trigger target resolution).
362
+ * When text splitting is active, the builder holds original pre-split targets.
363
+ * @internal
364
+ */
365
+ getFirstChildBuilder(): AnimationBuilder | null;
356
366
  }