motion-v 2.2.0 → 2.2.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.
|
@@ -48,7 +48,8 @@ var MotionState = class {
|
|
|
48
48
|
invariant(Boolean(element), "Animation state must be mounted with valid Element");
|
|
49
49
|
mountedStates.set(element, this);
|
|
50
50
|
this.element = element;
|
|
51
|
-
|
|
51
|
+
const presenceId = this.options.presenceContext?.presenceId;
|
|
52
|
+
if (presenceId !== void 0) element.setAttribute(motionGlobalConfig.motionAttribute, presenceId);
|
|
52
53
|
this.visualElement?.mount(element);
|
|
53
54
|
this.updateFeatures();
|
|
54
55
|
}
|
|
@@ -3,5 +3,6 @@ import { MotionValue } from 'framer-motion/dom';
|
|
|
3
3
|
import { FollowValueOptions, SpringOptions } from 'motion-dom';
|
|
4
4
|
type AnyResolvedKeyframe = string | number;
|
|
5
5
|
export declare function useFollowValue<T extends AnyResolvedKeyframe>(source: T | MotionValue<T>, options?: MaybeRef<FollowValueOptions>): MotionValue<T>;
|
|
6
|
-
export declare function useSpring(source: MotionValue<string> |
|
|
6
|
+
export declare function useSpring(source: MotionValue<string> | string, config?: MaybeRef<SpringOptions>): MotionValue<string>;
|
|
7
|
+
export declare function useSpring(source: MotionValue<number> | number, config?: MaybeRef<SpringOptions>): MotionValue<number>;
|
|
7
8
|
export {};
|