Skip to content

Commit

Permalink
Adding exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Dec 13, 2024
1 parent 6cd8bda commit cd43451
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion packages/framer-motion/src/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/framer-motion/src/value/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ export class MotionValue<V = any> {
/**
* 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`.
Expand Down

0 comments on commit cd43451

Please sign in to comment.