Skip to content

Commit 7cebb22

Browse files
authored
Move animation sequence types to vanilla entrypoint (#2942)
* Exporting AnimationSequence * Removing old type * Updating changelog * Fixing tests
1 parent 4cfd7aa commit 7cebb22

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Motion adheres to [Semantic Versioning](http://semver.org/).
44

55
Undocumented APIs should be considered internal and may change without warning.
66

7+
## [11.14.4] 2024-12-13
8+
9+
### Fixed
10+
11+
- Exporting `AnimationSequence` via `"motion"` entrypoint.
12+
713
## [11.14.3] 2024-12-13
814

915
### Fixed

dev/react/src/tests/layout-shared-switch-a-b.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const App = () => {
2121
opacity: state ? 0.4 : 1,
2222
}}
2323
onClick={() => setState(!state)}
24-
transition={{ duration: 0.3, ease: () => 0.5 }}
24+
transition={{ duration: 0.5, ease: () => 0.5 }}
2525
onLayoutAnimationStart={() => backgroundColor.set("#0f0")}
2626
onLayoutAnimationComplete={() => backgroundColor.set("#00f")}
2727
/>

packages/framer-motion/cypress/integration/layout-shared.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe("Shared layout: A -> B transition", () => {
7171
/**
7272
* Test that onLayoutAnimationComplete fires
7373
*/
74-
.wait(800)
74+
.wait(1200)
7575
.should(([$box]: any) => {
7676
expect($box.style.backgroundColor).to.equal("rgb(0, 0, 255)")
7777
})

packages/framer-motion/src/dom.ts

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export { scroll } from "./render/dom/scroll"
1313
export { scrollInfo } from "./render/dom/scroll/track"
1414
export { inView } from "./render/dom/viewport"
1515

16+
/**
17+
* Types
18+
*/
19+
export * from "./animation/sequence/types"
20+
1621
/**
1722
* Easing
1823
*/

packages/framer-motion/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export { CreateVisualElement } from "./render/types"
166166
export * from "./projection/geometry/types"
167167
export { IProjectionNode } from "./projection/node/types"
168168
export * from "./animation/types"
169-
export * from "./animation/sequence/types"
170169

171170
/**
172171
* Deprecated

0 commit comments

Comments
 (0)