From cd43451ed548a3071b5a7589c190e5ff2f2586c3 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Fri, 13 Dec 2024 09:42:30 +0100 Subject: [PATCH] Adding exports --- CHANGELOG.md | 7 +++++++ packages/framer-motion/src/dom.ts | 6 +++++- packages/framer-motion/src/value/index.ts | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5db60a1005..b4fe3f2b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ Motion adheres to [Semantic Versioning](http://semver.org/). Undocumented APIs should be considered internal and may change without warning. +## [11.14.2] 2024-12-13 + +### Fixed + +- Exporting `time` for internal use. +- Making `MotionValue.updatedAt` public for internal use. + ## [11.14.1] 2024-12-12 ### Fixed diff --git a/packages/framer-motion/src/dom.ts b/packages/framer-motion/src/dom.ts index dd3ed48b9f..6a597227a4 100644 --- a/packages/framer-motion/src/dom.ts +++ b/packages/framer-motion/src/dom.ts @@ -3,7 +3,10 @@ export { isDragActive } from "motion-dom" export { motionValue, MotionValue } from "./value" export type { PassiveEffect, Subscriber } from "./value" -export type { DynamicAnimationOptions, DOMKeyframesDefinition } from './animation/types' +export type { + DynamicAnimationOptions, + DOMKeyframesDefinition, +} from "./animation/types" export { animate, createScopedAnimate } from "./animation/animate" export { animateMini } from "./animation/animators/waapi/animate-style" export { scroll } from "./render/dom/scroll" @@ -44,6 +47,7 @@ export { pipe } from "./utils/pipe" export { progress } from "./utils/progress" export { wrap } from "./utils/wrap" export * from "./frameloop" +export { time } from "./frameloop/sync-time" /** * Deprecated diff --git a/packages/framer-motion/src/value/index.ts b/packages/framer-motion/src/value/index.ts index 821c5715b9..fbe37990ab 100644 --- a/packages/framer-motion/src/value/index.ts +++ b/packages/framer-motion/src/value/index.ts @@ -92,12 +92,12 @@ export class MotionValue { /** * The last time the `MotionValue` was updated. */ - private updatedAt: number + updatedAt: number /** * The time `prevFrameValue` was updated. */ - private prevUpdatedAt: number | undefined + prevUpdatedAt: number | undefined /** * Add a passive effect to this `MotionValue`.