motion-dom 14.7.1 → 14.8.0

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.
Files changed (52) hide show
  1. package/dist/cjs/index.js +370 -147
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/es/animation/JSAnimation.mjs +7 -1
  4. package/dist/es/animation/JSAnimation.mjs.map +1 -1
  5. package/dist/es/animation/generators/keyframes.mjs +12 -3
  6. package/dist/es/animation/generators/keyframes.mjs.map +1 -1
  7. package/dist/es/animation/utils/is-transition-defined.mjs +1 -0
  8. package/dist/es/animation/utils/is-transition-defined.mjs.map +1 -1
  9. package/dist/es/animation/waapi/supports/waapi.mjs +3 -1
  10. package/dist/es/animation/waapi/supports/waapi.mjs.map +1 -1
  11. package/dist/es/animation/waapi/transforms/TransformAnimation.mjs +31 -35
  12. package/dist/es/animation/waapi/transforms/TransformAnimation.mjs.map +1 -1
  13. package/dist/es/animation/waapi/utils/needs-mixer.mjs +11 -0
  14. package/dist/es/animation/waapi/utils/needs-mixer.mjs.map +1 -0
  15. package/dist/es/effects/svg/index.mjs +14 -0
  16. package/dist/es/effects/svg/index.mjs.map +1 -1
  17. package/dist/es/gestures/drag/index.mjs +4 -3
  18. package/dist/es/gestures/drag/index.mjs.map +1 -1
  19. package/dist/es/gestures/drag/projection.mjs +85 -0
  20. package/dist/es/gestures/drag/projection.mjs.map +1 -0
  21. package/dist/es/index.mjs +1 -1
  22. package/dist/es/layout/LayoutAnimationBuilder.mjs +34 -51
  23. package/dist/es/layout/LayoutAnimationBuilder.mjs.map +1 -1
  24. package/dist/es/layout/visual-element.mjs +48 -0
  25. package/dist/es/layout/visual-element.mjs.map +1 -0
  26. package/dist/es/projection/geometry/round.mjs +25 -0
  27. package/dist/es/projection/geometry/round.mjs.map +1 -0
  28. package/dist/es/projection/node/DocumentProjectionNode.mjs +2 -8
  29. package/dist/es/projection/node/DocumentProjectionNode.mjs.map +1 -1
  30. package/dist/es/projection/node/create-projection-node.mjs +68 -48
  31. package/dist/es/projection/node/create-projection-node.mjs.map +1 -1
  32. package/dist/es/projection/utils/measure.mjs +5 -1
  33. package/dist/es/projection/utils/measure.mjs.map +1 -1
  34. package/dist/es/stats/buffer.mjs +1 -0
  35. package/dist/es/stats/buffer.mjs.map +1 -1
  36. package/dist/es/stats/index.mjs +31 -0
  37. package/dist/es/stats/index.mjs.map +1 -1
  38. package/dist/es/utils/interpolate.mjs +3 -2
  39. package/dist/es/utils/interpolate.mjs.map +1 -1
  40. package/dist/es/utils/is-ref-object.mjs +8 -0
  41. package/dist/es/utils/is-ref-object.mjs.map +1 -0
  42. package/dist/es/utils/transform.mjs.map +1 -1
  43. package/dist/es/value/index.mjs +10 -1
  44. package/dist/es/value/index.mjs.map +1 -1
  45. package/dist/index.d.ts +298 -232
  46. package/dist/motion-dom.dev.js +370 -147
  47. package/dist/motion-dom.js +1 -1
  48. package/dist/size-rollup-motion-value.js +1 -1
  49. package/dist/size-rollup-motion-value.js.map +1 -1
  50. package/dist/size-rollup-style-effect.js +1 -1
  51. package/dist/size-rollup-style-effect.js.map +1 -1
  52. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1867,6 +1867,9 @@ interface AnimationElement extends Omit<WithRender, "current">, Owner {
1867
1867
  shouldReduceMotion?: boolean | null;
1868
1868
  }
1869
1869
 
1870
+ type Mixer<T> = (p: number) => T;
1871
+ type MixerFactory<T> = (a: T, b: T) => Mixer<T>;
1872
+
1870
1873
  type AnyResolvedKeyframe = string | number;
1871
1874
  interface ProgressTimeline {
1872
1875
  currentTime: null | {
@@ -2314,6 +2317,32 @@ interface ValueTransition extends AnimationOrchestrationOptions, AnimationPlayba
2314
2317
  * @public
2315
2318
  */
2316
2319
  path?: MotionPath;
2320
+ /**
2321
+ * Replaces the function that blends between each pair of keyframes
2322
+ * that aren't numbers. It receives the two keyframes and returns a
2323
+ * function that maps progress (`0`-`1`, or beyond with springs and
2324
+ * overshooting easing) to a value, or `undefined` to blend them as
2325
+ * usual. For example, a mixer that morphs paths can animate `d`
2326
+ * between paths of different shapes, and return `undefined` for values
2327
+ * that aren't paths, like `fill`, so they blend as usual:
2328
+ *
2329
+ * ```jsx
2330
+ * <motion.path animate={{ d, fill }} transition={{ mixer: morph }} />
2331
+ * ```
2332
+ *
2333
+ * Animations between numbers (not strings with units, like `"100px"`),
2334
+ * and those where the mixer returns `undefined` for every pair, run as
2335
+ * they would without it. The rest run on the main thread, where the
2336
+ * mixer can be called. Animations that only run in the browser, like
2337
+ * those from `motion/mini`, don't use it. Values Motion can't animate,
2338
+ * like text without numbers, still change at once.
2339
+ *
2340
+ * A mixer can be asked for the same pair more than once, so keep any
2341
+ * costly setup for when its function is first called.
2342
+ *
2343
+ * @public
2344
+ */
2345
+ mixer?: (from: any, to: any) => Mixer<any> | undefined;
2317
2346
  }
2318
2347
  /**
2319
2348
  * @deprecated Use KeyframeOptions instead
@@ -3202,7 +3231,7 @@ declare function getOptimisedAppearId(visualElement: WithAppearProps): string |
3202
3231
  declare function inertia({ keyframes, velocity, power, timeConstant, bounceDamping, bounceStiffness, modifyTarget, min, max, restDelta, restSpeed, }: ValueAnimationOptions<number>): KeyframeGenerator<number>;
3203
3232
 
3204
3233
  declare function defaultEasing(values: any[], easing?: EasingFunction): EasingFunction[];
3205
- declare function keyframes<T extends AnyResolvedKeyframe>({ duration, keyframes: keyframeValues, times, ease, }: ValueAnimationOptions<T>): KeyframeGenerator<T>;
3234
+ declare function keyframes<T extends AnyResolvedKeyframe>({ duration, keyframes: keyframeValues, times, ease, mixer: transitionMixer, }: ValueAnimationOptions<T>): KeyframeGenerator<T>;
3206
3235
 
3207
3236
  declare function springGenerator(optionsOrVisualDuration?: ValueAnimationOptions<number> | number, bounce?: number): KeyframeGenerator<number>;
3208
3237
  declare const spring: typeof springGenerator & {
@@ -3602,6 +3631,245 @@ declare const time: {
3602
3631
  set: (newTime: number) => void;
3603
3632
  };
3604
3633
 
3634
+ interface WithDepth {
3635
+ depth: number;
3636
+ }
3637
+ declare const compareByDepth: (a: VisualElement, b: VisualElement) => number;
3638
+
3639
+ declare class FlatTree {
3640
+ private children;
3641
+ private isDirty;
3642
+ add(child: WithDepth): void;
3643
+ remove(child: WithDepth): void;
3644
+ forEach(callback: (child: WithDepth) => void): void;
3645
+ }
3646
+
3647
+ declare class NodeStack {
3648
+ lead?: IProjectionNode;
3649
+ prevLead?: IProjectionNode;
3650
+ members: IProjectionNode[];
3651
+ add(node: IProjectionNode): void;
3652
+ remove(node: IProjectionNode): void;
3653
+ relegate(node: IProjectionNode): boolean;
3654
+ promote(node: IProjectionNode, preserveFollowOpacity?: boolean): void;
3655
+ exitAnimationComplete(): void;
3656
+ scheduleRender(): void;
3657
+ removeLeadSnapshot(): void;
3658
+ }
3659
+
3660
+ interface Measurements {
3661
+ animationId: number;
3662
+ measuredBox: Box;
3663
+ layoutBox: Box;
3664
+ latestValues: ResolvedValues$1;
3665
+ source: number;
3666
+ }
3667
+ type Phase = "snapshot" | "measure";
3668
+ interface ScrollMeasurements {
3669
+ animationId: number;
3670
+ phase: Phase;
3671
+ offset: Point;
3672
+ isRoot: boolean;
3673
+ wasRoot: boolean;
3674
+ }
3675
+ type LayoutEvents = "willUpdate" | "didUpdate" | "beforeMeasure" | "measure" | "projectionUpdate" | "animationStart" | "animationComplete";
3676
+ interface IProjectionNode<I = unknown> {
3677
+ id: number;
3678
+ animationId: number;
3679
+ animationCommitId: number;
3680
+ parent?: IProjectionNode;
3681
+ relativeParent?: IProjectionNode;
3682
+ root?: IProjectionNode;
3683
+ children: Set<IProjectionNode>;
3684
+ path: IProjectionNode[];
3685
+ nodes?: FlatTree;
3686
+ depth: number;
3687
+ instance: I | undefined;
3688
+ mount: (node: I, isLayoutDirty?: boolean) => void;
3689
+ unmount: () => void;
3690
+ options: ProjectionNodeOptions;
3691
+ setOptions(options: ProjectionNodeOptions): void;
3692
+ layout?: Measurements;
3693
+ dragSnapshot?: Measurements;
3694
+ dragAncestor?: IProjectionNode;
3695
+ snapshot?: Measurements;
3696
+ target?: Box;
3697
+ relativeTarget?: Box;
3698
+ relativeTargetOrigin?: Box;
3699
+ targetDelta?: Delta;
3700
+ targetWithTransforms?: Box;
3701
+ scroll?: ScrollMeasurements;
3702
+ treeScale?: Point;
3703
+ projectionDelta?: Delta;
3704
+ projectionDeltaWithTransform?: Delta;
3705
+ latestValues: ResolvedValues$1;
3706
+ isLayoutDirty: boolean;
3707
+ isProjectionDirty: boolean;
3708
+ isSharedProjectionDirty: boolean;
3709
+ isTransformDirty: boolean;
3710
+ resolvedRelativeTargetAt?: number;
3711
+ shouldResetTransform: boolean;
3712
+ prevTransformTemplateValue: string | undefined;
3713
+ isUpdateBlocked(): boolean;
3714
+ updateManuallyBlocked: boolean;
3715
+ updateBlockedByResize: boolean;
3716
+ blockUpdate(): void;
3717
+ unblockUpdate(): void;
3718
+ isUpdating: boolean;
3719
+ needsReset: boolean;
3720
+ needsShow?: boolean;
3721
+ startUpdate(): void;
3722
+ willUpdate(notifyListeners?: boolean): void;
3723
+ didUpdate(): void;
3724
+ measure(removeTransform?: boolean): Measurements;
3725
+ measurePageBox(): Box;
3726
+ updateLayout(): void;
3727
+ updateSnapshot(): void;
3728
+ clearSnapshot(): void;
3729
+ updateScroll(phase?: Phase): void;
3730
+ scheduleUpdateProjection(): void;
3731
+ scheduleCheckAfterUnmount(): void;
3732
+ checkUpdateFailed(): void;
3733
+ sharedNodes: Map<string, NodeStack>;
3734
+ registerSharedNode(id: string, node: IProjectionNode): void;
3735
+ getStack(): NodeStack | undefined;
3736
+ isVisible: boolean;
3737
+ hide(): void;
3738
+ show(): void;
3739
+ scheduleRender(notifyAll?: boolean): void;
3740
+ getClosestProjectingParent(): IProjectionNode | undefined;
3741
+ setTargetDelta(delta: Delta): void;
3742
+ resetTransform(): void;
3743
+ resetSkewAndRotation(): void;
3744
+ applyTransform(box: Box, transformOnly?: boolean, output?: Box, skipOwnTransform?: boolean, start?: number): Box;
3745
+ resolveTargetDelta(force?: boolean): void;
3746
+ removeRelativeTarget(): void;
3747
+ calcProjection(): void;
3748
+ applyProjectionStyles(targetStyle: CSSStyleDeclaration, styleProp?: MotionStyle): void;
3749
+ clearMeasurements(): void;
3750
+ resetTree(): void;
3751
+ isProjecting(): boolean;
3752
+ animationValues?: ResolvedValues$1;
3753
+ currentAnimation?: JSAnimation<number>;
3754
+ isTreeAnimating?: boolean;
3755
+ isAnimationBlocked?: boolean;
3756
+ setAnimationOrigin(delta: Delta, hasOnlyRelativeTargetChanged?: boolean, pathFn?: MotionPath): void;
3757
+ startAnimation(transition: ValueTransition): void;
3758
+ finishAnimation(): void;
3759
+ hasCheckedOptimisedAppear: boolean;
3760
+ isLead(): boolean;
3761
+ promote(options?: {
3762
+ needsReset?: boolean;
3763
+ transition?: Transition;
3764
+ preserveFollowOpacity?: boolean;
3765
+ }): void;
3766
+ relegate(): boolean;
3767
+ resumeFrom?: IProjectionNode;
3768
+ resumingFrom?: IProjectionNode;
3769
+ isPresent?: boolean;
3770
+ addEventListener(name: LayoutEvents, handler: any): VoidFunction;
3771
+ notifyListeners(name: LayoutEvents, ...args: any): void;
3772
+ hasListeners(name: LayoutEvents): boolean;
3773
+ hasTreeAnimated: boolean;
3774
+ preserveOpacity?: boolean;
3775
+ }
3776
+ interface LayoutUpdateData {
3777
+ layout: Box;
3778
+ snapshot: Measurements;
3779
+ delta: Delta;
3780
+ layoutDelta: Delta;
3781
+ hasLayoutChanged: boolean;
3782
+ hasRelativeLayoutChanged: boolean;
3783
+ }
3784
+ type LayoutUpdateHandler = (data: LayoutUpdateData) => void;
3785
+ interface ProjectionNodeConfig<I> {
3786
+ defaultParent?: () => IProjectionNode;
3787
+ attachResizeListener?: (instance: I, notifyResize: VoidFunction) => VoidFunction;
3788
+ measureScroll: (instance: I) => Point;
3789
+ checkIsScrollRoot: (instance: I) => boolean;
3790
+ resetTransform?: (instance: I, value?: string) => void;
3791
+ }
3792
+ /**
3793
+ * Configuration for initial promotion of shared layout elements.
3794
+ * This was originally in React's SwitchLayoutGroupContext but is now
3795
+ * framework-agnostic to support vanilla JS usage.
3796
+ */
3797
+ interface InitialPromotionConfig {
3798
+ /**
3799
+ * The initial transition to use when the elements in this group mount (and automatically promoted).
3800
+ * Subsequent updates should provide a transition in the promote method.
3801
+ */
3802
+ transition?: Transition;
3803
+ /**
3804
+ * If the follow tree should preserve its opacity when the lead is promoted on mount
3805
+ */
3806
+ shouldPreserveFollowOpacity?: (member: IProjectionNode) => boolean;
3807
+ }
3808
+ interface ProjectionNodeOptions {
3809
+ animate?: boolean;
3810
+ layoutScroll?: boolean;
3811
+ layoutRoot?: boolean;
3812
+ alwaysMeasureLayout?: boolean;
3813
+ onExitComplete?: VoidFunction;
3814
+ animationType?: "size" | "position" | "both" | "preserve-aspect" | "x" | "y";
3815
+ layoutId?: string;
3816
+ layout?: boolean | string;
3817
+ visualElement?: VisualElement;
3818
+ crossfade?: boolean;
3819
+ transition?: Transition;
3820
+ initialPromotionConfig?: InitialPromotionConfig;
3821
+ layoutDependency?: unknown;
3822
+ layoutAnchor?: Point | false;
3823
+ }
3824
+ type ProjectionEventName = "layoutUpdate" | "projectionUpdate";
3825
+
3826
+ type LayoutAnimationScope = Element | Document;
3827
+ type LayoutBuilderResolve = (animation: GroupAnimation) => void;
3828
+ type LayoutBuilderReject = (error: unknown) => void;
3829
+ /**
3830
+ * Get a projection node for an element, so motion/remix can measure and
3831
+ * animate its layout. Reuses a node owned by a `motion` component or
3832
+ * animateLayout(), otherwise creates one in the shared imperative tree.
3833
+ * Returns the node and a function that releases it.
3834
+ */
3835
+ declare function acquireProjectionNode(element: HTMLElement): [IProjectionNode, VoidFunction];
3836
+ declare function flushPendingBuilders(): void;
3837
+ /**
3838
+ * Snapshot every pending animateLayout() now, rather than on the next
3839
+ * microtask. For renderers that tell us a DOM update is about to happen
3840
+ * and then make it synchronously (e.g. a beforeUpdate/commit pair), with
3841
+ * updateDom returning a promise that resolves on commit.
3842
+ */
3843
+ declare const flushLayoutSnapshots: typeof flushPendingBuilders;
3844
+ declare class LayoutAnimationBuilder {
3845
+ private scope;
3846
+ private updateDom;
3847
+ private defaultOptions?;
3848
+ private sharedTransitions;
3849
+ private notifyReady;
3850
+ private rejectReady;
3851
+ private readyPromise;
3852
+ private tracked;
3853
+ private restorePoints;
3854
+ private updateError;
3855
+ constructor(scope: LayoutAnimationScope, updateDom: () => void | Promise<void>, defaultOptions?: AnimationOptions | undefined);
3856
+ shared(id: string, transition: AnimationOptions): this;
3857
+ then(resolve: LayoutBuilderResolve, reject?: LayoutBuilderReject): Promise<void>;
3858
+ transitionFor(element: HTMLElement): Transition | undefined;
3859
+ adopt(element: HTMLElement, node: IProjectionNode): void;
3860
+ collectTargets(): HTMLElement[];
3861
+ runUpdate(): Promise<void> | undefined;
3862
+ reconcileAdditions(newMemberIds: Set<string>): void;
3863
+ reconcileRemovals(newMemberIds: Set<string>): void;
3864
+ getRoot(): IProjectionNode | undefined;
3865
+ finalize(): void;
3866
+ }
3867
+ declare function parseAnimateLayoutArgs(scopeOrUpdateDom: ElementOrSelector | (() => void), updateDomOrOptions?: (() => void) | AnimationOptions, options?: AnimationOptions): {
3868
+ scope: Element | Document;
3869
+ updateDom: () => void;
3870
+ defaultOptions?: AnimationOptions;
3871
+ };
3872
+
3605
3873
  /**
3606
3874
  * @public
3607
3875
  */
@@ -4135,20 +4403,29 @@ interface StatsRecording {
4135
4403
  type InactiveStatsBuffer = {
4136
4404
  value: null;
4137
4405
  addProjectionMetrics: null;
4406
+ countProjection?: undefined;
4138
4407
  };
4139
4408
  type ActiveStatsBuffer = {
4140
4409
  value: StatsRecording;
4141
4410
  addProjectionMetrics: (metrics: LayoutProjectionMetrics) => void;
4411
+ /**
4412
+ * Counts one projection metric, by its index in recordStats()'s
4413
+ * projectionMetrics.
4414
+ * Called without one at the end of a projection frame, it records the
4415
+ * frame's counts and starts the next.
4416
+ */
4417
+ countProjection: (metric?: number) => void;
4142
4418
  };
4143
4419
  declare const statsBuffer: InactiveStatsBuffer | ActiveStatsBuffer;
4144
4420
 
4145
- type Mixer<T> = (p: number) => T;
4146
- type MixerFactory<T> = (a: T, b: T) => Mixer<T>;
4147
-
4148
4421
  interface InterpolateOptions<T> {
4149
4422
  clamp?: boolean;
4150
4423
  ease?: EasingFunction | EasingFunction[];
4151
- mixer?: MixerFactory<T>;
4424
+ /**
4425
+ * Returns a mixer for a pair of values, or `undefined` to mix them
4426
+ * as usual.
4427
+ */
4428
+ mixer?: (from: T, to: T) => Mixer<T> | undefined;
4152
4429
  }
4153
4430
  /**
4154
4431
  * Create a function that maps from a numerical input array to a generic output array.
@@ -4311,11 +4588,12 @@ interface TransformOptions<T> {
4311
4588
  */
4312
4589
  ease?: EasingFunction | EasingFunction[];
4313
4590
  /**
4314
- * Provide a function that can interpolate between any two values in the provided range.
4591
+ * Provide a function that can interpolate between any two values in the provided range,
4592
+ * or return `undefined` to interpolate them as usual.
4315
4593
  *
4316
4594
  * @public
4317
4595
  */
4318
- mixer?: (from: T, to: T) => (v: number) => any;
4596
+ mixer?: (from: T, to: T) => ((v: number) => any) | undefined;
4319
4597
  }
4320
4598
  /**
4321
4599
  * Transforms numbers into other values by mapping them from an input range to an output range.
@@ -5183,19 +5461,6 @@ declare function addPointerEvent(target: EventTarget, eventName: string, handler
5183
5461
  declare const distance: (a: number, b: number) => number;
5184
5462
  declare function distance2D(a: Point, b: Point): number;
5185
5463
 
5186
- interface WithDepth {
5187
- depth: number;
5188
- }
5189
- declare const compareByDepth: (a: VisualElement, b: VisualElement) => number;
5190
-
5191
- declare class FlatTree {
5192
- private children;
5193
- private isDirty;
5194
- add(child: WithDepth): void;
5195
- remove(child: WithDepth): void;
5196
- forEach(callback: (child: WithDepth) => void): void;
5197
- }
5198
-
5199
5464
  type DelayedFunction = (overshoot: number) => void;
5200
5465
  /**
5201
5466
  * Timeout defined in ms
@@ -5208,185 +5473,6 @@ declare function delayInSeconds(callback: DelayedFunction, timeout: number): ()
5208
5473
  */
5209
5474
  declare function resolveMotionValue(value?: AnyResolvedKeyframe | MotionValue): AnyResolvedKeyframe;
5210
5475
 
5211
- interface Measurements {
5212
- animationId: number;
5213
- measuredBox: Box;
5214
- layoutBox: Box;
5215
- latestValues: ResolvedValues$1;
5216
- source: number;
5217
- }
5218
- type Phase = "snapshot" | "measure";
5219
- interface ScrollMeasurements {
5220
- animationId: number;
5221
- phase: Phase;
5222
- offset: Point;
5223
- isRoot: boolean;
5224
- wasRoot: boolean;
5225
- }
5226
- type LayoutEvents = "willUpdate" | "didUpdate" | "beforeMeasure" | "measure" | "projectionUpdate" | "animationStart" | "animationComplete";
5227
- interface IProjectionNode<I = unknown> {
5228
- id: number;
5229
- animationId: number;
5230
- animationCommitId: number;
5231
- parent?: IProjectionNode;
5232
- relativeParent?: IProjectionNode;
5233
- root?: IProjectionNode;
5234
- children: Set<IProjectionNode>;
5235
- path: IProjectionNode[];
5236
- nodes?: FlatTree;
5237
- depth: number;
5238
- instance: I | undefined;
5239
- mount: (node: I, isLayoutDirty?: boolean) => void;
5240
- unmount: () => void;
5241
- options: ProjectionNodeOptions;
5242
- setOptions(options: ProjectionNodeOptions): void;
5243
- layout?: Measurements;
5244
- dragSnapshot?: Measurements;
5245
- dragAncestor?: IProjectionNode;
5246
- snapshot?: Measurements;
5247
- target?: Box;
5248
- relativeTarget?: Box;
5249
- relativeTargetOrigin?: Box;
5250
- targetDelta?: Delta;
5251
- targetWithTransforms?: Box;
5252
- scroll?: ScrollMeasurements;
5253
- treeScale?: Point;
5254
- projectionDelta?: Delta;
5255
- projectionDeltaWithTransform?: Delta;
5256
- latestValues: ResolvedValues$1;
5257
- isLayoutDirty: boolean;
5258
- isProjectionDirty: boolean;
5259
- isSharedProjectionDirty: boolean;
5260
- isTransformDirty: boolean;
5261
- resolvedRelativeTargetAt?: number;
5262
- shouldResetTransform: boolean;
5263
- prevTransformTemplateValue: string | undefined;
5264
- isUpdateBlocked(): boolean;
5265
- updateManuallyBlocked: boolean;
5266
- updateBlockedByResize: boolean;
5267
- blockUpdate(): void;
5268
- unblockUpdate(): void;
5269
- isUpdating: boolean;
5270
- needsReset: boolean;
5271
- needsShow?: boolean;
5272
- startUpdate(): void;
5273
- willUpdate(notifyListeners?: boolean): void;
5274
- didUpdate(): void;
5275
- measure(removeTransform?: boolean): Measurements;
5276
- measurePageBox(): Box;
5277
- updateLayout(): void;
5278
- updateSnapshot(): void;
5279
- clearSnapshot(): void;
5280
- updateScroll(phase?: Phase): void;
5281
- scheduleUpdateProjection(): void;
5282
- scheduleCheckAfterUnmount(): void;
5283
- checkUpdateFailed(): void;
5284
- sharedNodes: Map<string, NodeStack>;
5285
- registerSharedNode(id: string, node: IProjectionNode): void;
5286
- getStack(): NodeStack | undefined;
5287
- isVisible: boolean;
5288
- hide(): void;
5289
- show(): void;
5290
- scheduleRender(notifyAll?: boolean): void;
5291
- getClosestProjectingParent(): IProjectionNode | undefined;
5292
- setTargetDelta(delta: Delta): void;
5293
- resetTransform(): void;
5294
- resetSkewAndRotation(): void;
5295
- applyTransform(box: Box, transformOnly?: boolean, output?: Box, skipOwnTransform?: boolean, start?: number): Box;
5296
- resolveTargetDelta(force?: boolean): void;
5297
- removeRelativeTarget(): void;
5298
- calcProjection(): void;
5299
- applyProjectionStyles(targetStyle: CSSStyleDeclaration, styleProp?: MotionStyle): void;
5300
- clearMeasurements(): void;
5301
- resetTree(): void;
5302
- isProjecting(): boolean;
5303
- animationValues?: ResolvedValues$1;
5304
- currentAnimation?: JSAnimation<number>;
5305
- isTreeAnimating?: boolean;
5306
- isAnimationBlocked?: boolean;
5307
- setAnimationOrigin(delta: Delta, hasOnlyRelativeTargetChanged?: boolean, pathFn?: MotionPath): void;
5308
- startAnimation(transition: ValueTransition): void;
5309
- finishAnimation(): void;
5310
- hasCheckedOptimisedAppear: boolean;
5311
- isLead(): boolean;
5312
- promote(options?: {
5313
- needsReset?: boolean;
5314
- transition?: Transition;
5315
- preserveFollowOpacity?: boolean;
5316
- }): void;
5317
- relegate(): boolean;
5318
- resumeFrom?: IProjectionNode;
5319
- resumingFrom?: IProjectionNode;
5320
- isPresent?: boolean;
5321
- addEventListener(name: LayoutEvents, handler: any): VoidFunction;
5322
- notifyListeners(name: LayoutEvents, ...args: any): void;
5323
- hasListeners(name: LayoutEvents): boolean;
5324
- hasTreeAnimated: boolean;
5325
- preserveOpacity?: boolean;
5326
- }
5327
- interface LayoutUpdateData {
5328
- layout: Box;
5329
- snapshot: Measurements;
5330
- delta: Delta;
5331
- layoutDelta: Delta;
5332
- hasLayoutChanged: boolean;
5333
- hasRelativeLayoutChanged: boolean;
5334
- }
5335
- type LayoutUpdateHandler = (data: LayoutUpdateData) => void;
5336
- interface ProjectionNodeConfig<I> {
5337
- defaultParent?: () => IProjectionNode;
5338
- attachResizeListener?: (instance: I, notifyResize: VoidFunction) => VoidFunction;
5339
- measureScroll: (instance: I) => Point;
5340
- checkIsScrollRoot: (instance: I) => boolean;
5341
- resetTransform?: (instance: I, value?: string) => void;
5342
- }
5343
- /**
5344
- * Configuration for initial promotion of shared layout elements.
5345
- * This was originally in React's SwitchLayoutGroupContext but is now
5346
- * framework-agnostic to support vanilla JS usage.
5347
- */
5348
- interface InitialPromotionConfig {
5349
- /**
5350
- * The initial transition to use when the elements in this group mount (and automatically promoted).
5351
- * Subsequent updates should provide a transition in the promote method.
5352
- */
5353
- transition?: Transition;
5354
- /**
5355
- * If the follow tree should preserve its opacity when the lead is promoted on mount
5356
- */
5357
- shouldPreserveFollowOpacity?: (member: IProjectionNode) => boolean;
5358
- }
5359
- interface ProjectionNodeOptions {
5360
- animate?: boolean;
5361
- layoutScroll?: boolean;
5362
- layoutRoot?: boolean;
5363
- alwaysMeasureLayout?: boolean;
5364
- onExitComplete?: VoidFunction;
5365
- animationType?: "size" | "position" | "both" | "preserve-aspect" | "x" | "y";
5366
- layoutId?: string;
5367
- layout?: boolean | string;
5368
- visualElement?: VisualElement;
5369
- crossfade?: boolean;
5370
- transition?: Transition;
5371
- initialPromotionConfig?: InitialPromotionConfig;
5372
- layoutDependency?: unknown;
5373
- layoutAnchor?: Point | false;
5374
- }
5375
- type ProjectionEventName = "layoutUpdate" | "projectionUpdate";
5376
-
5377
- declare class NodeStack {
5378
- lead?: IProjectionNode;
5379
- prevLead?: IProjectionNode;
5380
- members: IProjectionNode[];
5381
- add(node: IProjectionNode): void;
5382
- remove(node: IProjectionNode): void;
5383
- relegate(node: IProjectionNode): boolean;
5384
- promote(node: IProjectionNode, preserveFollowOpacity?: boolean): void;
5385
- exitAnimationComplete(): void;
5386
- scheduleRender(): void;
5387
- removeLeadSnapshot(): void;
5388
- }
5389
-
5390
5476
  declare function createProjectionNode<I>({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }: ProjectionNodeConfig<I>): {
5391
5477
  new (latestValues?: ResolvedValues$1, parent?: IProjectionNode | undefined): {
5392
5478
  /**
@@ -5720,6 +5806,16 @@ declare function createProjectionNode<I>({ attachResizeListener, defaultParent,
5720
5806
  clearSnapshot(): void;
5721
5807
  resetTree(): void;
5722
5808
  };
5809
+ /**
5810
+ * Create the projection node of a `motion` component's VisualElement,
5811
+ * from its props. This runs while the component renders, before its
5812
+ * children. It's here rather than in the component so React
5813
+ * bundles only include it with the features that supply a
5814
+ * ProjectionNode. Vanilla bundles that use the projection node
5815
+ * (drag(), animateLayout()) include it too, as a class static
5816
+ * can't be tree-shaken.
5817
+ */
5818
+ create(visualElement: VisualElement<any>, props: MotionNodeOptions, initialPromotionConfig?: InitialPromotionConfig): void;
5723
5819
  };
5724
5820
  declare function propagateDirtyNodes(node: IProjectionNode): void;
5725
5821
  declare function cleanDirtyNodes(node: IProjectionNode): void;
@@ -5859,6 +5955,7 @@ declare const DocumentProjectionNode: {
5859
5955
  clearSnapshot(): void;
5860
5956
  resetTree(): void;
5861
5957
  };
5958
+ create(visualElement: VisualElement<any, unknown, {}>, props: MotionNodeOptions, initialPromotionConfig?: InitialPromotionConfig | undefined): void;
5862
5959
  };
5863
5960
 
5864
5961
  interface NodeGroup {
@@ -6003,6 +6100,7 @@ declare const HTMLProjectionNode: {
6003
6100
  clearSnapshot(): void;
6004
6101
  resetTree(): void;
6005
6102
  };
6103
+ create(visualElement: VisualElement<any, unknown, {}>, props: MotionNodeOptions, initialPromotionConfig?: InitialPromotionConfig | undefined): void;
6006
6104
  };
6007
6105
 
6008
6106
  declare const rootProjectionNode: {
@@ -6073,38 +6171,6 @@ declare function scrapeMotionValuesFromProps(props: MotionNodeOptions, prevProps
6073
6171
  [key: string]: any;
6074
6172
  };
6075
6173
 
6076
- type LayoutAnimationScope = Element | Document;
6077
- type LayoutBuilderResolve = (animation: GroupAnimation) => void;
6078
- type LayoutBuilderReject = (error: unknown) => void;
6079
- declare class LayoutAnimationBuilder {
6080
- private scope;
6081
- private updateDom;
6082
- private defaultOptions?;
6083
- private sharedTransitions;
6084
- private notifyReady;
6085
- private rejectReady;
6086
- private readyPromise;
6087
- private tracked;
6088
- private restorePoints;
6089
- private updateError;
6090
- constructor(scope: LayoutAnimationScope, updateDom: () => void | Promise<void>, defaultOptions?: AnimationOptions | undefined);
6091
- shared(id: string, transition: AnimationOptions): this;
6092
- then(resolve: LayoutBuilderResolve, reject?: LayoutBuilderReject): Promise<void>;
6093
- transitionFor(element: HTMLElement): Transition | undefined;
6094
- adopt(element: HTMLElement, node: IProjectionNode): void;
6095
- collectTargets(): HTMLElement[];
6096
- runUpdate(): Promise<void> | undefined;
6097
- reconcileAdditions(newMemberIds: Set<string>): void;
6098
- reconcileRemovals(newMemberIds: Set<string>): void;
6099
- getRoot(): IProjectionNode | undefined;
6100
- finalize(): void;
6101
- }
6102
- declare function parseAnimateLayoutArgs(scopeOrUpdateDom: ElementOrSelector | (() => void), updateDomOrOptions?: (() => void) | AnimationOptions, options?: AnimationOptions): {
6103
- scope: Element | Document;
6104
- updateDom: () => void;
6105
- defaultOptions?: AnimationOptions;
6106
- };
6107
-
6108
6174
  /**
6109
6175
  * Animate layout changes made within `updateDom` on elements tagged
6110
6176
  * with `data-layout` or `data-layout-id`.
@@ -6130,4 +6196,4 @@ declare const sync: Batcher;
6130
6196
  */
6131
6197
  declare const cancelSync: Record<string, (process: Process) => void>;
6132
6198
 
6133
- export { type AccelerateConfig, type AcceptedAnimations, type ActiveStatsBuffer, type AddEffectValue, type AnimateEffect, type AnimationDefinition, type AnimationGeneratorName, type AnimationGeneratorType, type AnimationList, type AnimationOptions, type AnimationOrchestrationOptions, type AnimationPlaybackControls, type AnimationPlaybackControlsWithThen, type AnimationPlaybackLifecycles, type AnimationPlaybackOptions, type AnimationScope, type AnimationState$1 as AnimationState, type AnimationType, type AnimationTypeState, type AnyResolvedKeyframe, type ArcOptions, AsyncMotionValueAnimation, type Batcher, type CSSStyleDeclarationWithTransform, type CSSVariableName, type CSSVariableToken, type CancelProcess, type Color, type ComplexValueInfo, type ComplexValues, type DOMKeyframesDefinition, DOMKeyframesResolver, type DOMValueAnimationOptions, DOMVisualElement, type DOMVisualElementOptions, type DecayOptions, type DelayedFunction, DocumentProjectionNode, type DragControlOptions, type DragElastic, type DragHandler, type DragOptions, type DraggableProps, type DurationSpringOptions, type DynamicOption, type Effect, type EffectKeyframes, type EffectOptions, type EffectRead, type EffectTest, type EffectTransition, type ElementOrSelector, type EventInfo, type EventListenerWithPointInfo, type EventOptions, Feature, type FeatureClass, FlatTree, type FollowValueOptions, type FrameData, type GeneratorFactory, type GeneratorFactoryFunction, GroupAnimation, GroupAnimationWithThen, type GroupedAnimations, type HSLA, HTMLProjectionNode, type HTMLRenderState, HTMLVisualElement, type HandoffFunction, type IProjectionNode, type InactiveStatsBuffer, type InertiaOptions, type InitialPromotionConfig, type InterpolateOptions, JSAnimation, type KeyframeGenerator, type KeyframeOptions, KeyframeResolver, LayoutAnimationBuilder, type LayoutEvents, type LayoutLifecycles, type LayoutProjectionMetrics, type LayoutProjectionStats, type LayoutUpdateData, type LayoutUpdateHandler, type LegacyAnimationControls, type MapInputRange, type Measurements, type MediaConditions, type Mixer, type MixerFactory, type MotionConfigContextProps, type MotionNodeAdvancedOptions, type MotionNodeAnimationOptions, type MotionNodeDragHandlers, type MotionNodeDraggableOptions, type MotionNodeEventOptions, type MotionNodeFocusHandlers, type MotionNodeHoverHandlers, type MotionNodeLayoutOptions, type MotionNodeOptions, type MotionNodePanHandlers, type MotionNodeTapHandlers, type MotionNodeViewportOptions, type MotionPath, type MotionScope, type MotionStyle, MotionValue, type MotionValueAnimation, type MotionValueEventCallbacks, type MotionValueOptions, MotionValueState, type MultiTransformer, NativeAnimation, NativeAnimationExtended, type NativeAnimationOptions, type NativeAnimationOptionsExtended, NativeAnimationWrapper, type NodeGroup, NodeStack, type NumberMap, ObjectVisualElement, type OnHoverEndEvent, type OnHoverStartEvent, type OnKeyframesResolved, type OnPressEndEvent, type OnPressStartEvent, type Owner, type PanHandler, type PanInfo, PanSession, type PassiveEffect, type PathInterpolator, type PathState, type Phase, type Point2D, type PointerEventOptions, type PresenceContextProps, type PressGestureInfo, type Process, type ProgressTimeline, type ProjectionEventName, type ProjectionNodeConfig, type ProjectionNodeOptions, type PropagateOptions, type RGBA, type ReducedMotionConfig, type RepeatType, type ResolvedConstraints, type ResolvedElastic, type ResolvedKeyframes, type ResolvedValueKeyframe, type ResolvedValues$1 as ResolvedValues, type SVGAttributes, type SVGForcedAttrKeyframesDefinition, type SVGForcedAttrProperties, type SVGForcedAttrTransitions, type SVGKeyframesDefinition, type SVGPathKeyframesDefinition, type SVGPathProperties, type SVGPathTransitions, type SVGRenderState, type SVGTransitions, SVGVisualElement, type ScaleCorrectionNode, type ScaleCorrector, type ScaleCorrectorDefinition, type ScaleCorrectorMap, type Schedule, type ScopeOptions, type ScopeSetup, type ScopeState, type ScrapeMotionValuesFromProps, type ScrollMeasurements, type SelectorCache, type SingleTransformer, type Spring, type SpringOptions, type StaggerOptions, type StaggerOrigin, type StartAnimation, type StatsRecording, type Step, type StepId, type Steps, type StyleKeyframesDefinition, type StyleSubject, type StyleTransitions, type Subscriber, type TapHandlers, type TapInfo, type Target, type TargetAndTransition, type TargetResolver, type TimelineWithFallback, type TransformInputRange, type TransformOptions, type TransformOrigin, type TransformProperties, type TransformTemplate, type Transformer, type Transition, type TransitionWithValueOverrides, type Tween, type UnresolvedKeyframes, type UnresolvedValueKeyframe, type UseRenderState, type ValueAnimationOptions, type ValueAnimationOptionsWithRenderContext, type ValueAnimationTransition, type ValueAnimationWithDynamicDelay, type ValueIndexes, type ValueKeyframe, type ValueKeyframesDefinition, type ValueTransformer, type ValueTransition, type ValueType, type ValueTypeMap, type VariableKeyframesDefinition, type VariableTransitions, type Variant, type VariantLabels, type Variants, type VelocityOptions, type ViewTransitionAnimationDefinition, ViewTransitionBuilder, type ViewTransitionOptions, type ViewTransitionTarget, type ViewTransitionTargetDefinition, type ViewportEventHandler, type ViewportOptions, VisualElement, type VisualElementAnimationOptions, VisualElementDragControls, type VisualElementEventCallbacks, type VisualElementOptions, type VisualState, type WillChange, type WithAppearProps, type WithDepth, type WithQuerySelectorAll, acceleratedValues, activeScope, addAttrValue, addBuilderToScope, addDomEvent, addEffect, addPointerEvent, addPointerInfo, addSVGValue, addScaleCorrector, addStyleValue, addToScope, addValueToWillChange, alpha, analyseComplexValue, animateEffectSubject, animateElement, animateLayout, animateMotionValue, animateSingleValue, animateTarget, animateValue, animateValues, animateVariant, animateView, animateVisualElement, animationMapKey, applyAxisDelta, applyBoxDelta, applyGeneratorOptions, applyPointDelta, applyPxDefaults, applyTreeDeltas, arc, aspectRatio, attachFollow, attachSpring, attrEffect, axisDeltaEquals, axisEquals, axisEqualsRounded, bindToScope, boxEquals, boxEqualsRounded, buildHTMLStyles, buildProjectionTransform, buildSVGAttrs, buildSVGPath, buildTransform, buildTransformer, calcAxisDelta, calcBoxDelta, calcChildStagger, calcGeneratorDuration, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, camelCaseAttributes, camelToDash, cancelFrame, cancelMicrotask, cancelSync, checkVariantsDidChange, cleanDirtyNodes, collectMotionValues, color, compareByDepth, complex, containsCSSVariable, convertBoundingBoxToBox, convertBoxToBoundingBox, convertOffsetToTimes, copyAxisDeltaInto, copyAxisInto, copyBoxInto, correctBorderRadius, correctBoxShadow, createAnimationState, createAxis, createAxisDelta, createBox, createDelta, createEffect, createGeneratorEasing, createProjectionNode, createRenderBatcher, cubicBezierAsString, defaultEasing, defaultOffset, defaultTransformValue, defaultValueTypes, degrees, delay, delayInSeconds, dimensionValueTypes, distance, distance2D, drag, eachAxis, elementDragControls, expectsResolvedDragConstraints, extractEventInfo, fillOffset, fillWildcards, findDimensionValueType, findEffect, findValueType, flushKeyframeResolvers, followValue, frame, frameData, frameSteps, generateLinearEasing, getAnimatableNone, getAnimationMap, getComputedStyle, getDefaultTransition, getDefaultValueType, getFeatureDefinitions, getFinalKeyframe, getMixer, getOptimisedAppearId, getOriginIndex, getValueAsType, getValueTransition, getVariableValue, getVariantContext, getViewAnimationLayerInfo, getViewAnimations, globalProjectionState, handOffElementState, has2DTranslate, hasComplexValues, hasReducedMotionListener, hasScale, hasTransform, hex, hover, hsla, hslaToRgba, inertia, initPrefersReducedMotion, interpolate, invisibleValues, isAnimationControls, isCSSVariableName, isCSSVariableToken, isControllingVariants, isDeltaZero, isDragActive, isDragging, isElementKeyboardAccessible, isElementTextInput, isForcedMotionValue, isGenerator, isHTMLElement, isKeyframesTarget, isMotionValue, isNear, isNodeOrChild, isPrimaryPointer, isSVGElement, isSVGSVGElement, isSVGTag, isTransitionDefined, isVariantLabel, isVariantNode, isWaapiSupportedEasing, isWillChangeMotionValue, keyframes, makeAnimationInstant, mapEasingToNativeEasing, mapValue, maxGeneratorDuration, measurePageBox, measureViewportBox, microtask, mix, mixArray, mixColor, mixComplex, mixImmediate, mixLinearColor, mixNumber, mixObject, mixValues, mixVisibility, motionValue, nodeGroup, number, numberValueTypes, optimizedAppearDataAttribute, optimizedAppearDataId, originProps, parseAnimateLayoutArgs, parseCSSVariable, parseValueFromTransform, percent, pixelsToPercent, positionalKeys, prefersReducedMotion, press, processFrame, progressPercentage, propEffect, propagateDirtyNodes, px, readSVGValue, readStyleValue, readTransformValue, recordStats, releaseElement, removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removeEffect, removePointDelta, renderHTML, renderSVG, resize, resolveElements, resolveMotionValue, resolveTransition, resolveVariant, resolveVariantFromProps, rgbUnit, rgba, rootProjectionNode, round, sampleDelta, scale, scaleCorrectors, scalePoint, scopeMotion, scrapeMotionValuesFromProps$1 as scrapeHTMLMotionValuesFromProps, scrapeMotionValuesFromProps as scrapeSVGMotionValuesFromProps, setDragLock, setFeatureDefinitions, setStyle, setTarget, spring, springValue, stagger, startWaapiAnimation, statsBuffer, styleEffect, styleSubjectEffect, supportedWaapiEasing, supportsBrowserAnimation, supportsFlags, supportsLinearEasing, supportsPartialKeyframes, supportsScrollTimeline, supportsViewTimeline, supportsWaapi, svgEffect, svgSubjectEffect, sync, testValueType, time, toMediaQuery, transform, transformAxis, transformBox, transformBoxPoints, transformPropOrder, transformProps, transformValue, transformValueTypes, translateAxis, updateMotionValuesFromProps, variantPriorityOrder, variantProps, vh, visualElementStore, vw };
6199
+ export { type AccelerateConfig, type AcceptedAnimations, type ActiveStatsBuffer, type AddEffectValue, type AnimateEffect, type AnimationDefinition, type AnimationGeneratorName, type AnimationGeneratorType, type AnimationList, type AnimationOptions, type AnimationOrchestrationOptions, type AnimationPlaybackControls, type AnimationPlaybackControlsWithThen, type AnimationPlaybackLifecycles, type AnimationPlaybackOptions, type AnimationScope, type AnimationState$1 as AnimationState, type AnimationType, type AnimationTypeState, type AnyResolvedKeyframe, type ArcOptions, AsyncMotionValueAnimation, type Batcher, type CSSStyleDeclarationWithTransform, type CSSVariableName, type CSSVariableToken, type CancelProcess, type Color, type ComplexValueInfo, type ComplexValues, type DOMKeyframesDefinition, DOMKeyframesResolver, type DOMValueAnimationOptions, DOMVisualElement, type DOMVisualElementOptions, type DecayOptions, type DelayedFunction, DocumentProjectionNode, type DragControlOptions, type DragElastic, type DragHandler, type DragOptions, type DraggableProps, type DurationSpringOptions, type DynamicOption, type Effect, type EffectKeyframes, type EffectOptions, type EffectRead, type EffectTest, type EffectTransition, type ElementOrSelector, type EventInfo, type EventListenerWithPointInfo, type EventOptions, Feature, type FeatureClass, FlatTree, type FollowValueOptions, type FrameData, type GeneratorFactory, type GeneratorFactoryFunction, GroupAnimation, GroupAnimationWithThen, type GroupedAnimations, type HSLA, HTMLProjectionNode, type HTMLRenderState, HTMLVisualElement, type HandoffFunction, type IProjectionNode, type InactiveStatsBuffer, type InertiaOptions, type InitialPromotionConfig, type InterpolateOptions, JSAnimation, type KeyframeGenerator, type KeyframeOptions, KeyframeResolver, LayoutAnimationBuilder, type LayoutEvents, type LayoutLifecycles, type LayoutProjectionMetrics, type LayoutProjectionStats, type LayoutUpdateData, type LayoutUpdateHandler, type LegacyAnimationControls, type MapInputRange, type Measurements, type MediaConditions, type Mixer, type MixerFactory, type MotionConfigContextProps, type MotionNodeAdvancedOptions, type MotionNodeAnimationOptions, type MotionNodeDragHandlers, type MotionNodeDraggableOptions, type MotionNodeEventOptions, type MotionNodeFocusHandlers, type MotionNodeHoverHandlers, type MotionNodeLayoutOptions, type MotionNodeOptions, type MotionNodePanHandlers, type MotionNodeTapHandlers, type MotionNodeViewportOptions, type MotionPath, type MotionScope, type MotionStyle, MotionValue, type MotionValueAnimation, type MotionValueEventCallbacks, type MotionValueOptions, MotionValueState, type MultiTransformer, NativeAnimation, NativeAnimationExtended, type NativeAnimationOptions, type NativeAnimationOptionsExtended, NativeAnimationWrapper, type NodeGroup, NodeStack, type NumberMap, ObjectVisualElement, type OnHoverEndEvent, type OnHoverStartEvent, type OnKeyframesResolved, type OnPressEndEvent, type OnPressStartEvent, type Owner, type PanHandler, type PanInfo, PanSession, type PassiveEffect, type PathInterpolator, type PathState, type Phase, type Point2D, type PointerEventOptions, type PresenceContextProps, type PressGestureInfo, type Process, type ProgressTimeline, type ProjectionEventName, type ProjectionNodeConfig, type ProjectionNodeOptions, type PropagateOptions, type RGBA, type ReducedMotionConfig, type RepeatType, type ResolvedConstraints, type ResolvedElastic, type ResolvedKeyframes, type ResolvedValueKeyframe, type ResolvedValues$1 as ResolvedValues, type SVGAttributes, type SVGForcedAttrKeyframesDefinition, type SVGForcedAttrProperties, type SVGForcedAttrTransitions, type SVGKeyframesDefinition, type SVGPathKeyframesDefinition, type SVGPathProperties, type SVGPathTransitions, type SVGRenderState, type SVGTransitions, SVGVisualElement, type ScaleCorrectionNode, type ScaleCorrector, type ScaleCorrectorDefinition, type ScaleCorrectorMap, type Schedule, type ScopeOptions, type ScopeSetup, type ScopeState, type ScrapeMotionValuesFromProps, type ScrollMeasurements, type SelectorCache, type SingleTransformer, type Spring, type SpringOptions, type StaggerOptions, type StaggerOrigin, type StartAnimation, type StatsRecording, type Step, type StepId, type Steps, type StyleKeyframesDefinition, type StyleSubject, type StyleTransitions, type Subscriber, type TapHandlers, type TapInfo, type Target, type TargetAndTransition, type TargetResolver, type TimelineWithFallback, type TransformInputRange, type TransformOptions, type TransformOrigin, type TransformProperties, type TransformTemplate, type Transformer, type Transition, type TransitionWithValueOverrides, type Tween, type UnresolvedKeyframes, type UnresolvedValueKeyframe, type UseRenderState, type ValueAnimationOptions, type ValueAnimationOptionsWithRenderContext, type ValueAnimationTransition, type ValueAnimationWithDynamicDelay, type ValueIndexes, type ValueKeyframe, type ValueKeyframesDefinition, type ValueTransformer, type ValueTransition, type ValueType, type ValueTypeMap, type VariableKeyframesDefinition, type VariableTransitions, type Variant, type VariantLabels, type Variants, type VelocityOptions, type ViewTransitionAnimationDefinition, ViewTransitionBuilder, type ViewTransitionOptions, type ViewTransitionTarget, type ViewTransitionTargetDefinition, type ViewportEventHandler, type ViewportOptions, VisualElement, type VisualElementAnimationOptions, VisualElementDragControls, type VisualElementEventCallbacks, type VisualElementOptions, type VisualState, type WillChange, type WithAppearProps, type WithDepth, type WithQuerySelectorAll, acceleratedValues, acquireProjectionNode, activeScope, addAttrValue, addBuilderToScope, addDomEvent, addEffect, addPointerEvent, addPointerInfo, addSVGValue, addScaleCorrector, addStyleValue, addToScope, addValueToWillChange, alpha, analyseComplexValue, animateEffectSubject, animateElement, animateLayout, animateMotionValue, animateSingleValue, animateTarget, animateValue, animateValues, animateVariant, animateView, animateVisualElement, animationMapKey, applyAxisDelta, applyBoxDelta, applyGeneratorOptions, applyPointDelta, applyPxDefaults, applyTreeDeltas, arc, aspectRatio, attachFollow, attachSpring, attrEffect, axisDeltaEquals, axisEquals, axisEqualsRounded, bindToScope, boxEquals, boxEqualsRounded, buildHTMLStyles, buildProjectionTransform, buildSVGAttrs, buildSVGPath, buildTransform, buildTransformer, calcAxisDelta, calcBoxDelta, calcChildStagger, calcGeneratorDuration, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, camelCaseAttributes, camelToDash, cancelFrame, cancelMicrotask, cancelSync, checkVariantsDidChange, cleanDirtyNodes, collectMotionValues, color, compareByDepth, complex, containsCSSVariable, convertBoundingBoxToBox, convertBoxToBoundingBox, convertOffsetToTimes, copyAxisDeltaInto, copyAxisInto, copyBoxInto, correctBorderRadius, correctBoxShadow, createAnimationState, createAxis, createAxisDelta, createBox, createDelta, createEffect, createGeneratorEasing, createProjectionNode, createRenderBatcher, cubicBezierAsString, defaultEasing, defaultOffset, defaultTransformValue, defaultValueTypes, degrees, delay, delayInSeconds, dimensionValueTypes, distance, distance2D, drag, eachAxis, elementDragControls, expectsResolvedDragConstraints, extractEventInfo, fillOffset, fillWildcards, findDimensionValueType, findEffect, findValueType, flushKeyframeResolvers, flushLayoutSnapshots, followValue, frame, frameData, frameSteps, generateLinearEasing, getAnimatableNone, getAnimationMap, getComputedStyle, getDefaultTransition, getDefaultValueType, getFeatureDefinitions, getFinalKeyframe, getMixer, getOptimisedAppearId, getOriginIndex, getValueAsType, getValueTransition, getVariableValue, getVariantContext, getViewAnimationLayerInfo, getViewAnimations, globalProjectionState, handOffElementState, has2DTranslate, hasComplexValues, hasReducedMotionListener, hasScale, hasTransform, hex, hover, hsla, hslaToRgba, inertia, initPrefersReducedMotion, interpolate, invisibleValues, isAnimationControls, isCSSVariableName, isCSSVariableToken, isControllingVariants, isDeltaZero, isDragActive, isDragging, isElementKeyboardAccessible, isElementTextInput, isForcedMotionValue, isGenerator, isHTMLElement, isKeyframesTarget, isMotionValue, isNear, isNodeOrChild, isPrimaryPointer, isSVGElement, isSVGSVGElement, isSVGTag, isTransitionDefined, isVariantLabel, isVariantNode, isWaapiSupportedEasing, isWillChangeMotionValue, keyframes, makeAnimationInstant, mapEasingToNativeEasing, mapValue, maxGeneratorDuration, measurePageBox, measureViewportBox, microtask, mix, mixArray, mixColor, mixComplex, mixImmediate, mixLinearColor, mixNumber, mixObject, mixValues, mixVisibility, motionValue, nodeGroup, number, numberValueTypes, optimizedAppearDataAttribute, optimizedAppearDataId, originProps, parseAnimateLayoutArgs, parseCSSVariable, parseValueFromTransform, percent, pixelsToPercent, positionalKeys, prefersReducedMotion, press, processFrame, progressPercentage, propEffect, propagateDirtyNodes, px, readSVGValue, readStyleValue, readTransformValue, recordStats, releaseElement, removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removeEffect, removePointDelta, renderHTML, renderSVG, resize, resolveElements, resolveMotionValue, resolveTransition, resolveVariant, resolveVariantFromProps, rgbUnit, rgba, rootProjectionNode, round, sampleDelta, scale, scaleCorrectors, scalePoint, scopeMotion, scrapeMotionValuesFromProps$1 as scrapeHTMLMotionValuesFromProps, scrapeMotionValuesFromProps as scrapeSVGMotionValuesFromProps, setDragLock, setFeatureDefinitions, setStyle, setTarget, spring, springValue, stagger, startWaapiAnimation, statsBuffer, styleEffect, styleSubjectEffect, supportedWaapiEasing, supportsBrowserAnimation, supportsFlags, supportsLinearEasing, supportsPartialKeyframes, supportsScrollTimeline, supportsViewTimeline, supportsWaapi, svgEffect, svgSubjectEffect, sync, testValueType, time, toMediaQuery, transform, transformAxis, transformBox, transformBoxPoints, transformPropOrder, transformProps, transformValue, transformValueTypes, translateAxis, updateMotionValuesFromProps, variantPriorityOrder, variantProps, vh, visualElementStore, vw };