framer-motion 9.0.3-alpha.0 → 9.0.4

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 (69) hide show
  1. package/README.md +15 -1
  2. package/dist/cjs/index.js +458 -404
  3. package/dist/es/animation/hooks/use-animated-state.mjs +3 -3
  4. package/dist/es/animation/index.mjs +3 -5
  5. package/dist/es/animation/legacy-popmotion/index.mjs +6 -2
  6. package/dist/es/animation/legacy-popmotion/inertia.mjs +4 -5
  7. package/dist/es/components/AnimatePresence/use-presence.mjs +0 -1
  8. package/dist/es/components/Reorder/Group.mjs +1 -1
  9. package/dist/es/components/Reorder/Item.mjs +1 -1
  10. package/dist/es/events/add-dom-event.mjs +6 -0
  11. package/dist/es/events/{use-pointer-event.mjs → add-pointer-event.mjs} +1 -1
  12. package/dist/es/events/use-dom-event.mjs +2 -5
  13. package/dist/es/gestures/drag/VisualElementDragControls.mjs +29 -28
  14. package/dist/es/gestures/drag/index.mjs +9 -5
  15. package/dist/es/gestures/focus.mjs +28 -32
  16. package/dist/es/gestures/hover.mjs +3 -10
  17. package/dist/es/gestures/pan/PanSession.mjs +1 -1
  18. package/dist/es/gestures/pan/index.mjs +10 -10
  19. package/dist/es/gestures/press.mjs +19 -20
  20. package/dist/es/index.mjs +1 -1
  21. package/dist/es/motion/features/Feature.mjs +1 -1
  22. package/dist/es/motion/features/animation/exit.mjs +32 -0
  23. package/dist/es/motion/features/{AnimationFeature.mjs → animation/index.mjs} +12 -10
  24. package/dist/es/motion/features/animations.mjs +2 -2
  25. package/dist/es/motion/features/drag.mjs +1 -1
  26. package/dist/es/motion/features/gestures.mjs +1 -1
  27. package/dist/es/motion/features/layout/MeasureLayout.mjs +5 -5
  28. package/dist/es/motion/features/layout.mjs +2 -0
  29. package/dist/es/motion/features/viewport/{InViewFeature.mjs → index.mjs} +37 -11
  30. package/dist/es/motion/index.mjs +2 -4
  31. package/dist/es/motion/utils/use-visual-element.mjs +5 -19
  32. package/dist/es/motion/utils/valid-prop.mjs +1 -0
  33. package/dist/es/projection/geometry/delta-apply.mjs +9 -2
  34. package/dist/es/projection/geometry/delta-calc.mjs +2 -2
  35. package/dist/es/projection/geometry/delta-remove.mjs +2 -2
  36. package/dist/es/projection/node/DocumentProjectionNode.mjs +1 -1
  37. package/dist/es/projection/node/create-projection-node.mjs +65 -57
  38. package/dist/es/projection/node/group.mjs +5 -3
  39. package/dist/es/projection/shared/stack.mjs +7 -5
  40. package/dist/es/render/VisualElement.mjs +37 -32
  41. package/dist/es/render/dom/DOMVisualElement.mjs +1 -2
  42. package/dist/es/render/dom/value-types/animatable-none.mjs +3 -2
  43. package/dist/es/render/html/utils/build-styles.mjs +2 -4
  44. package/dist/es/render/html/utils/build-transform.mjs +12 -10
  45. package/dist/es/render/html/utils/create-render-state.mjs +0 -1
  46. package/dist/es/render/svg/SVGVisualElement.mjs +2 -2
  47. package/dist/es/render/utils/animation-state.mjs +6 -2
  48. package/dist/es/render/utils/animation.mjs +4 -4
  49. package/dist/es/render/utils/motion-values.mjs +1 -1
  50. package/dist/es/render/utils/setters.mjs +14 -9
  51. package/dist/es/value/index.mjs +1 -1
  52. package/dist/es/value/utils/is-motion-value.mjs +1 -1
  53. package/dist/framer-motion.dev.js +458 -404
  54. package/dist/framer-motion.js +1 -1
  55. package/dist/index.d.ts +72 -75
  56. package/dist/projection.dev.js +171 -142
  57. package/dist/size-rollup-dom-animation-assets.js +1 -1
  58. package/dist/size-rollup-dom-animation-m.js +1 -1
  59. package/dist/size-rollup-dom-animation.js +1 -1
  60. package/dist/size-rollup-dom-max-assets.js +1 -1
  61. package/dist/size-rollup-dom-max.js +1 -1
  62. package/dist/size-rollup-m.js +1 -1
  63. package/dist/size-rollup-motion.js +1 -1
  64. package/dist/size-webpack-dom-animation.js +1 -1
  65. package/dist/size-webpack-dom-max.js +1 -1
  66. package/dist/size-webpack-m.js +1 -1
  67. package/dist/three-entry.d.ts +30 -18
  68. package/package.json +9 -9
  69. package/dist/es/motion/features/ExitAnimationFeature.mjs +0 -19
package/README.md CHANGED
@@ -3,8 +3,20 @@
3
3
  </p>
4
4
  <h1 align="center">Framer Motion</h1>
5
5
  <h3 align="center">
6
- An open source motion library for React, <a href="https://www.framer.com/?utm_source=motion-readme">made by Framer</a>.
6
+ An open source motion library for React, made by Framer. Motion powers Framer, the web builder for creative pros. Design and ship your dream site. Zero code, maximum speed.
7
7
  </h3>
8
+ <br/>
9
+ <p align="center">
10
+ <a href="https://www.framer.com?utm_source=motion">
11
+ <img src="https://framerusercontent.com/images/atXqxn4JhKm4LXVncdNjkKV7yCU.png" width="140" alt="Start for free" />
12
+ </a>
13
+ </p>
14
+ <br/>
15
+ <p align="center">
16
+ <a href="https://www.framer.com?utm_source=motion">
17
+ <img src="https://framerusercontent.com/images/pMSOmGP2V8sSaZRV2D7i4HTBTe4.png" width="1000" alt="Framer Banner" />
18
+ </a>
19
+ </p>
8
20
 
9
21
  <br>
10
22
 
@@ -23,6 +35,8 @@
23
35
  </a>
24
36
  </p>
25
37
 
38
+ <br>
39
+ <hr>
26
40
  <br>
27
41
 
28
42
  Framer Motion is an open source, production-ready library that’s designed for all creative developers.