motion-v 1.0.1 → 1.1.0-alpha.0

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 (328) hide show
  1. package/dist/cjs/index.js +3844 -3226
  2. package/dist/es/animation/hooks/animation-controls.mjs +1 -1
  3. package/dist/es/animation/hooks/use-animate.mjs +1 -1
  4. package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -2
  5. package/dist/es/components/motion/use-motion-state.d.ts +702 -702
  6. package/dist/es/components/motion/use-motion-state.mjs +10 -2
  7. package/dist/es/components/reorder/index.d.ts +2808 -2808
  8. package/dist/es/components/reorder/utils.d.ts +1 -1
  9. package/dist/es/components/reorder/utils.mjs +1 -2
  10. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
  11. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
  12. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
  13. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
  14. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  15. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
  16. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
  17. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +17 -24
  18. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
  19. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
  20. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
  21. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
  22. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
  23. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
  24. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
  25. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
  26. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
  27. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
  28. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
  29. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +61 -35
  30. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
  31. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
  32. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
  33. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
  34. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
  35. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
  36. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  37. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
  38. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
  39. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
  40. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/index.mjs +12 -0
  41. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
  42. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
  43. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
  44. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +6 -6
  45. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
  46. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
  47. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
  48. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
  49. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
  50. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
  51. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +3 -16
  52. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +10 -9
  53. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
  54. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
  55. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
  56. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -6
  57. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
  58. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
  59. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
  60. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
  61. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
  62. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +138 -0
  63. package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
  64. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
  65. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/JSAnimation.mjs +267 -0
  66. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
  67. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
  68. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
  69. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/drivers/frame.mjs} +3 -4
  70. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
  71. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
  72. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
  73. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
  74. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
  75. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
  76. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +10 -10
  77. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +32 -35
  78. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
  79. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
  80. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
  81. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
  82. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
  83. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
  84. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
  85. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
  86. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
  87. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
  88. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
  89. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
  90. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
  91. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
  92. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
  93. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
  94. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
  95. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
  96. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
  97. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
  98. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
  99. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
  100. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
  101. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
  102. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/MotionValueState.mjs +42 -0
  103. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
  104. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/transform.mjs +33 -0
  105. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
  106. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
  107. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
  108. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
  109. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
  110. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
  111. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
  112. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/press/index.mjs +55 -0
  113. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
  114. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
  115. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
  116. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
  117. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
  118. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
  119. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/index.mjs +114 -0
  120. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
  121. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
  122. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
  123. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
  124. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
  125. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
  126. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
  127. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
  128. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/value/index.mjs +33 -10
  129. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/map-value.mjs +9 -0
  130. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
  131. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
  132. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
  133. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
  134. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/dimensions.mjs +3 -3
  135. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
  136. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
  137. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
  138. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
  139. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
  140. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
  141. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
  142. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
  143. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/index.mjs +65 -0
  144. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/queue.mjs +45 -0
  145. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/start.mjs +115 -0
  146. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
  147. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
  148. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
  149. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
  150. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
  151. package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs +23 -0
  152. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
  153. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
  154. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
  155. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
  156. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/errors.mjs +4 -3
  157. package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs +4 -0
  158. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/warn-once.mjs +6 -0
  159. package/dist/es/features/animation/animation.mjs +4 -6
  160. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
  161. package/dist/es/features/gestures/drag/index.mjs +1 -2
  162. package/dist/es/features/gestures/focus/index.mjs +1 -1
  163. package/dist/es/features/gestures/hover/index.mjs +2 -3
  164. package/dist/es/features/gestures/in-view/index.mjs +2 -3
  165. package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
  166. package/dist/es/features/gestures/pan/index.mjs +2 -3
  167. package/dist/es/features/gestures/press/index.mjs +2 -3
  168. package/dist/es/features/layout/config.mjs +2 -2
  169. package/dist/es/features/layout/layout.mjs +2 -2
  170. package/dist/es/features/layout/projection.mjs +2 -2
  171. package/dist/es/index.mjs +243 -36
  172. package/dist/es/state/create-visual-element.mjs +2 -2
  173. package/dist/es/state/motion-state.mjs +2 -6
  174. package/dist/es/state/style.d.ts +1 -1
  175. package/dist/es/state/style.mjs +5 -5
  176. package/dist/es/state/utils.d.ts +1 -2
  177. package/dist/es/types/transform.d.ts +1 -23
  178. package/dist/es/utils/index.d.ts +0 -1
  179. package/dist/es/utils/use-animation-frame.mjs +1 -2
  180. package/dist/es/utils/use-in-view.mjs +1 -1
  181. package/dist/es/value/use-combine-values.mjs +2 -3
  182. package/dist/es/value/use-computed.mjs +1 -2
  183. package/dist/es/value/use-scroll.d.ts +4 -4
  184. package/dist/es/value/use-scroll.mjs +2 -3
  185. package/dist/es/value/use-spring.mjs +3 -4
  186. package/dist/es/value/use-time.d.ts +1 -1
  187. package/dist/es/value/use-time.mjs +1 -2
  188. package/dist/es/value/use-transform.mjs +1 -1
  189. package/dist/es/value/use-velocity.mjs +2 -3
  190. package/package.json +3 -4
  191. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -247
  192. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -102
  193. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -281
  194. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -108
  195. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -32
  196. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -14
  197. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -22
  198. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -10
  199. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
  200. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -70
  201. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -9
  202. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -18
  203. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -15
  204. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -12
  205. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
  206. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -10
  207. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -9
  208. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
  209. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
  210. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
  211. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
  212. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
  213. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
  214. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
  215. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
  216. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
  217. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
  218. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +0 -13
  219. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +0 -7
  220. package/dist/es/render/utils/setters.d.ts +0 -3
  221. package/dist/es/utils/time-conversion.d.ts +0 -8
  222. package/dist/es/utils/time-conversion.mjs +0 -8
  223. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  224. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  225. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  226. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  227. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  228. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  229. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +2 -2
  230. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  231. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  232. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  233. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  234. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  235. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  236. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  237. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  238. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  239. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  240. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  241. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  242. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  243. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  244. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  245. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  246. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  247. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  248. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  249. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  250. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  251. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  252. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  253. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  254. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  255. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  256. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/store.mjs +0 -0
  257. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  258. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  259. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  260. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  261. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  262. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  263. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  264. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  265. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  266. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  267. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  268. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  269. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  270. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  271. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
  272. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
  273. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
  274. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
  275. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
  276. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
  277. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
  278. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
  279. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
  280. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
  281. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
  282. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
  283. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
  284. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
  285. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
  286. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
  287. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
  288. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.10.4/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
  289. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
  290. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
  291. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
  292. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
  293. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
  294. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
  295. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
  296. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
  297. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
  298. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
  299. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
  300. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
  301. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
  302. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
  303. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
  304. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
  305. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
  306. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
  307. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
  308. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
  309. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  310. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/clamp.mjs +0 -0
  311. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
  312. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/back.mjs +0 -0
  313. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
  314. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
  315. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
  316. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
  317. /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.9.4/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
  318. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
  319. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
  320. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
  321. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/memo.mjs +0 -0
  322. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/noop.mjs +0 -0
  323. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/pipe.mjs +0 -0
  324. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/progress.mjs +0 -0
  325. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
  326. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
  327. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
  328. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/wrap.mjs +0 -0
@@ -1,17 +1,8 @@
1
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { noop } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
3
- import { SubscriptionManager } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
4
- import { getValueTransition } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
5
- import { cancelFrame, frameData, frameSteps, frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
6
- import { microtask } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/microtask.mjs";
7
- import { time } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
8
1
  import { animateSingleValue } from "../../animation/animate/single-value.mjs";
9
2
  import { getOptimisedAppearId } from "../../animation/optimized-appear/get-appear-id.mjs";
10
3
  import { isSVGElement } from "../../render/dom/utils/is-svg-element.mjs";
11
4
  import { FlatTree } from "../../render/utils/flat-tree.mjs";
12
- import { clamp } from "../../utils/clamp.mjs";
13
5
  import { delay } from "../../utils/delay.mjs";
14
- import { mixNumber } from "../../utils/mix/number.mjs";
15
6
  import { resolveMotionValue } from "../../value/utils/resolve-motion-value.mjs";
16
7
  import { mixValues } from "../animation/mix-values.mjs";
17
8
  import { copyBoxInto, copyAxisDeltaInto } from "../geometry/copy.mjs";
@@ -26,6 +17,22 @@ import { buildProjectionTransform } from "../styles/transform.mjs";
26
17
  import { eachAxis } from "../utils/each-axis.mjs";
27
18
  import { hasTransform, hasScale, has2DTranslate } from "../utils/has-transform.mjs";
28
19
  import { globalProjectionState } from "./state.mjs";
20
+ import { noop } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
21
+ import { statsBuffer } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/stats/buffer.mjs";
22
+ import { SubscriptionManager } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/subscription-manager.mjs";
23
+ import { getValueTransition } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
24
+ import { cancelFrame, frameData, frameSteps, frame } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
25
+ import { time } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/sync-time.mjs";
26
+ import { clamp } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/clamp.mjs";
27
+ import { microtask } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/microtask.mjs";
28
+ import { activeAnimations } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/stats/animation-count.mjs";
29
+ import { motionValue } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
30
+ import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
31
+ const metrics = {
32
+ nodes: 0,
33
+ calculatedTargetDeltas: 0,
34
+ calculatedProjections: 0
35
+ };
29
36
  const transformAxes = ["", "X", "Y", "Z"];
30
37
  const hiddenVisibility = { visibility: "hidden" };
31
38
  const animationTarget = 1e3;
@@ -59,7 +66,7 @@ function cancelTreeOptimisedTransformAnimations(projectionNode) {
59
66
  }
60
67
  function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform }) {
61
68
  return class ProjectionNode {
62
- constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {
69
+ constructor(latestValues = {}, parent = defaultParent == null ? void 0 : defaultParent()) {
63
70
  this.id = id++;
64
71
  this.animationId = 0;
65
72
  this.children = /* @__PURE__ */ new Set();
@@ -91,10 +98,16 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
91
98
  };
92
99
  this.updateProjection = () => {
93
100
  this.projectionUpdateScheduled = false;
101
+ if (statsBuffer.value) {
102
+ metrics.nodes = metrics.calculatedTargetDeltas = metrics.calculatedProjections = 0;
103
+ }
94
104
  this.nodes.forEach(propagateDirtyNodes);
95
105
  this.nodes.forEach(resolveTargetDelta);
96
106
  this.nodes.forEach(calcProjection);
97
107
  this.nodes.forEach(cleanDirtyNodes);
108
+ if (statsBuffer.addProjectionMetrics) {
109
+ statsBuffer.addProjectionMetrics(metrics);
110
+ }
98
111
  };
99
112
  this.resolvedRelativeTargetAt = 0;
100
113
  this.hasProjected = false;
@@ -128,7 +141,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
128
141
  /**
129
142
  * Lifecycles
130
143
  */
131
- mount(instance, isLayoutDirty = this.root.hasTreeAnimated) {
144
+ mount(instance) {
132
145
  if (this.instance)
133
146
  return;
134
147
  this.isSVG = isSVGElement(instance);
@@ -139,7 +152,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
139
152
  }
140
153
  this.root.nodes.add(this);
141
154
  this.parent && this.parent.children.add(this);
142
- if (isLayoutDirty && (layout || layoutId)) {
155
+ if (this.root.hasTreeAnimated && (layout || layoutId)) {
143
156
  this.isLayoutDirty = true;
144
157
  }
145
158
  if (attachResizeListener) {
@@ -204,6 +217,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
204
217
  stack && stack.remove(this);
205
218
  this.parent && this.parent.children.delete(this);
206
219
  this.instance = void 0;
220
+ this.eventHandlers.clear();
207
221
  cancelFrame(this.updateProjection);
208
222
  }
209
223
  // only on the root
@@ -349,7 +363,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
349
363
  if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === phase) {
350
364
  needsMeasurement = false;
351
365
  }
352
- if (needsMeasurement) {
366
+ if (needsMeasurement && this.instance) {
353
367
  const isRoot = checkIsScrollRoot(this.instance);
354
368
  this.scroll = {
355
369
  animationId: this.root.animationId,
@@ -368,7 +382,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
368
382
  const transformTemplate = this.getTransformTemplate();
369
383
  const transformTemplateValue = transformTemplate ? transformTemplate(this.latestValues, "") : void 0;
370
384
  const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;
371
- if (isResetRequested && (hasProjection || hasTransform(this.latestValues) || transformTemplateHasChanged)) {
385
+ if (isResetRequested && this.instance && (hasProjection || hasTransform(this.latestValues) || transformTemplateHasChanged)) {
372
386
  resetTransform(this.instance, transformTemplateValue);
373
387
  this.shouldResetTransform = false;
374
388
  this.scheduleRender();
@@ -395,7 +409,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
395
409
  if (!visualElement)
396
410
  return createBox();
397
411
  const box = visualElement.measureViewportBox();
398
- const wasInScrollRoot = ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
412
+ const wasInScrollRoot = ((_a = this.scroll) == null ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
399
413
  if (!wasInScrollRoot) {
400
414
  const { scroll } = this.root;
401
415
  if (scroll) {
@@ -409,7 +423,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
409
423
  var _a;
410
424
  const boxWithoutScroll = createBox();
411
425
  copyBoxInto(boxWithoutScroll, box);
412
- if ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) {
426
+ if ((_a = this.scroll) == null ? void 0 : _a.wasRoot) {
413
427
  return boxWithoutScroll;
414
428
  }
415
429
  for (let i = 0; i < this.path.length; i++) {
@@ -500,7 +514,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
500
514
  this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);
501
515
  this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);
502
516
  const isShared = Boolean(this.resumingFrom) || this !== lead;
503
- const canSkip = !(forceRecalculation || isShared && this.isSharedProjectionDirty || this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty) || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize);
517
+ const canSkip = !(forceRecalculation || isShared && this.isSharedProjectionDirty || this.isProjectionDirty || ((_a = this.parent) == null ? void 0 : _a.isProjectionDirty) || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize);
504
518
  if (canSkip)
505
519
  return;
506
520
  const { layout, layoutId } = this.options;
@@ -553,6 +567,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
553
567
  this.relativeParent = this.relativeTarget = void 0;
554
568
  }
555
569
  }
570
+ if (statsBuffer.value) {
571
+ metrics.calculatedTargetDeltas++;
572
+ }
556
573
  }
557
574
  getClosestProjectingParent() {
558
575
  if (!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues)) {
@@ -572,7 +589,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
572
589
  const lead = this.getLead();
573
590
  const isShared = Boolean(this.resumingFrom) || this !== lead;
574
591
  let canSkip = true;
575
- if (this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty)) {
592
+ if (this.isProjectionDirty || ((_a = this.parent) == null ? void 0 : _a.isProjectionDirty)) {
576
593
  canSkip = false;
577
594
  }
578
595
  if (isShared && (this.isSharedProjectionDirty || this.isTransformDirty)) {
@@ -618,6 +635,9 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
618
635
  this.scheduleRender();
619
636
  this.notifyListeners("projectionUpdate", target);
620
637
  }
638
+ if (statsBuffer.value) {
639
+ metrics.calculatedProjections++;
640
+ }
621
641
  }
622
642
  hide() {
623
643
  this.isVisible = false;
@@ -627,7 +647,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
627
647
  }
628
648
  scheduleRender(notifyAll = true) {
629
649
  var _a;
630
- (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.scheduleRender();
650
+ (_a = this.options.visualElement) == null ? void 0 : _a.scheduleRender();
631
651
  if (notifyAll) {
632
652
  const stack = this.getStack();
633
653
  stack && stack.scheduleRender();
@@ -685,26 +705,30 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
685
705
  this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
686
706
  }
687
707
  startAnimation(options) {
708
+ var _a, _b, _c;
688
709
  this.notifyListeners("animationStart");
689
- this.currentAnimation && this.currentAnimation.stop();
690
- if (this.resumingFrom && this.resumingFrom.currentAnimation) {
691
- this.resumingFrom.currentAnimation.stop();
692
- }
710
+ (_a = this.currentAnimation) == null ? void 0 : _a.stop(false);
711
+ (_c = (_b = this.resumingFrom) == null ? void 0 : _b.currentAnimation) == null ? void 0 : _c.stop(false);
693
712
  if (this.pendingAnimation) {
694
713
  cancelFrame(this.pendingAnimation);
695
714
  this.pendingAnimation = void 0;
696
715
  }
697
716
  this.pendingAnimation = frame.update(() => {
698
717
  globalProjectionState.hasAnimatedSinceResize = true;
699
- this.currentAnimation = animateSingleValue(0, animationTarget, {
718
+ activeAnimations.layout++;
719
+ this.motionValue || (this.motionValue = motionValue(0));
720
+ this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {
700
721
  ...options,
722
+ isSync: true,
701
723
  onUpdate: (latest) => {
702
724
  this.mixTargetDelta(latest);
703
725
  options.onUpdate && options.onUpdate(latest);
704
726
  },
705
727
  onStop: () => {
728
+ activeAnimations.layout--;
706
729
  },
707
730
  onComplete: () => {
731
+ activeAnimations.layout--;
708
732
  options.onComplete && options.onComplete();
709
733
  this.completeAnimation();
710
734
  }
@@ -728,7 +752,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
728
752
  finishAnimation() {
729
753
  if (this.currentAnimation) {
730
754
  this.mixTargetDelta && this.mixTargetDelta(animationTarget);
731
- this.currentAnimation.stop();
755
+ this.currentAnimation.stop(false);
732
756
  }
733
757
  this.completeAnimation();
734
758
  }
@@ -769,12 +793,12 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
769
793
  getLead() {
770
794
  var _a;
771
795
  const { layoutId } = this.options;
772
- return layoutId ? ((_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.lead) || this : this;
796
+ return layoutId ? ((_a = this.getStack()) == null ? void 0 : _a.lead) || this : this;
773
797
  }
774
798
  getPrevLead() {
775
799
  var _a;
776
800
  const { layoutId } = this.options;
777
- return layoutId ? (_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.prevLead : void 0;
801
+ return layoutId ? (_a = this.getStack()) == null ? void 0 : _a.prevLead : void 0;
778
802
  }
779
803
  getStack() {
780
804
  const { layoutId } = this.options;
@@ -829,7 +853,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
829
853
  visualElement.scheduleRender();
830
854
  }
831
855
  getProjectionStyles(styleProp) {
832
- var _a, _b;
833
856
  if (!this.instance || this.isSVG)
834
857
  return void 0;
835
858
  if (!this.isVisible) {
@@ -842,7 +865,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
842
865
  if (this.needsReset) {
843
866
  this.needsReset = false;
844
867
  styles.opacity = "";
845
- styles.pointerEvents = resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
868
+ styles.pointerEvents = resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "";
846
869
  styles.transform = transformTemplate ? transformTemplate(this.latestValues, "") : "none";
847
870
  return styles;
848
871
  }
@@ -851,7 +874,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
851
874
  const emptyStyles = {};
852
875
  if (this.options.layoutId) {
853
876
  emptyStyles.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1;
854
- emptyStyles.pointerEvents = resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
877
+ emptyStyles.pointerEvents = resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "";
855
878
  }
856
879
  if (this.hasProjected && !hasTransform(this.latestValues)) {
857
880
  emptyStyles.transform = transformTemplate ? transformTemplate({}, "") : "none";
@@ -868,7 +891,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
868
891
  const { x, y } = this.projectionDelta;
869
892
  styles.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;
870
893
  if (lead.animationValues) {
871
- styles.opacity = lead === this ? (_b = (_a = valuesToRender.opacity) !== null && _a !== void 0 ? _a : this.latestValues.opacity) !== null && _b !== void 0 ? _b : 1 : this.preserveOpacity ? this.latestValues.opacity : valuesToRender.opacityExit;
894
+ styles.opacity = lead === this ? valuesToRender.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : valuesToRender.opacityExit;
872
895
  } else {
873
896
  styles.opacity = lead === this ? valuesToRender.opacity !== void 0 ? valuesToRender.opacity : "" : valuesToRender.opacityExit !== void 0 ? valuesToRender.opacityExit : 0;
874
897
  }
@@ -891,7 +914,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
891
914
  }
892
915
  }
893
916
  if (this.options.layoutId) {
894
- styles.pointerEvents = lead === this ? resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "" : "none";
917
+ styles.pointerEvents = lead === this ? resolveMotionValue(styleProp == null ? void 0 : styleProp.pointerEvents) || "" : "none";
895
918
  }
896
919
  return styles;
897
920
  }
@@ -902,7 +925,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
902
925
  resetTree() {
903
926
  this.root.nodes.forEach((node) => {
904
927
  var _a;
905
- return (_a = node.currentAnimation) === null || _a === void 0 ? void 0 : _a.stop();
928
+ return (_a = node.currentAnimation) == null ? void 0 : _a.stop(false);
906
929
  });
907
930
  this.root.nodes.forEach(clearMeasurements);
908
931
  this.root.sharedNodes.clear();
@@ -914,7 +937,7 @@ function updateLayout(node) {
914
937
  }
915
938
  function notifyLayoutUpdate(node) {
916
939
  var _a;
917
- const snapshot = ((_a = node.resumeFrom) === null || _a === void 0 ? void 0 : _a.snapshot) || node.snapshot;
940
+ const snapshot = ((_a = node.resumeFrom) == null ? void 0 : _a.snapshot) || node.snapshot;
918
941
  if (node.isLead() && node.layout && snapshot && node.hasListeners("didUpdate")) {
919
942
  const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;
920
943
  const { animationType } = node.options;
@@ -982,6 +1005,9 @@ function notifyLayoutUpdate(node) {
982
1005
  node.options.transition = void 0;
983
1006
  }
984
1007
  function propagateDirtyNodes(node) {
1008
+ if (statsBuffer.value) {
1009
+ metrics.nodes++;
1010
+ }
985
1011
  if (!node.parent)
986
1012
  return;
987
1013
  if (!node.isProjecting()) {
@@ -1062,7 +1088,7 @@ function shouldAnimatePositionOnly(animationType, snapshot, layout) {
1062
1088
  }
1063
1089
  function checkNodeWasScrollRoot(node) {
1064
1090
  var _a;
1065
- return node !== node.root && ((_a = node.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot);
1091
+ return node !== node.root && ((_a = node.scroll) == null ? void 0 : _a.wasRoot);
1066
1092
  }
1067
1093
  export {
1068
1094
  cleanDirtyNodes,
@@ -1,5 +1,4 @@
1
- import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs";
2
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
1
+ import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs";
3
2
  class NodeStack {
4
3
  constructor() {
5
4
  this.members = [];
@@ -1,4 +1,4 @@
1
- import { px } from "../../value/types/numbers/units.mjs";
1
+ import { px } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/numbers/units.mjs";
2
2
  function pixelsToPercent(pixels, axis) {
3
3
  if (axis.max === axis.min)
4
4
  return 0;
@@ -1,5 +1,5 @@
1
- import { mixNumber } from "../../utils/mix/number.mjs";
2
- import { complex } from "../../value/types/complex/index.mjs";
1
+ import { complex } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/complex/index.mjs";
2
+ import { mixNumber } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/mix/number.mjs";
3
3
  const correctBoxShadow = {
4
4
  correct: (latest, { treeScale, projectionDelta }) => {
5
5
  const original = latest;
@@ -1,4 +1,4 @@
1
- import { isCSSVariableName } from "../../render/dom/utils/is-css-variable.mjs";
1
+ import { isCSSVariableName } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
2
2
  const scaleCorrectors = {};
3
3
  function addScaleCorrector(correctors) {
4
4
  for (const key in correctors) {
@@ -2,7 +2,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
2
2
  let transform = "";
3
3
  const xTranslate = delta.x.translate / treeScale.x;
4
4
  const yTranslate = delta.y.translate / treeScale.y;
5
- const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
5
+ const zTranslate = (latestTransform == null ? void 0 : latestTransform.z) || 0;
6
6
  if (xTranslate || yTranslate || zTranslate) {
7
7
  transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
8
8
  }
@@ -1,25 +1,24 @@
1
- import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { SubscriptionManager } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/subscription-manager.mjs";
3
- import { warnOnce } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
4
- import { frame, cancelFrame } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
5
- import { time } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
6
- import { motionValue } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
7
1
  import { featureDefinitions } from "../motion/features/definitions.mjs";
8
2
  import { createBox } from "../projection/geometry/models.mjs";
9
- import { isNumericalString } from "../utils/is-numerical-string.mjs";
10
- import { isZeroValueString } from "../utils/is-zero-value-string.mjs";
11
3
  import { initPrefersReducedMotion } from "../utils/reduced-motion/index.mjs";
12
4
  import { hasReducedMotionListener, prefersReducedMotion } from "../utils/reduced-motion/state.mjs";
13
- import { complex } from "../value/types/complex/index.mjs";
14
5
  import { isMotionValue } from "../value/utils/is-motion-value.mjs";
15
- import { getAnimatableNone } from "./dom/value-types/animatable-none.mjs";
16
- import { findValueType } from "./dom/value-types/find.mjs";
17
- import { transformProps } from "./html/utils/keys-transform.mjs";
18
6
  import { visualElementStore } from "./store.mjs";
19
7
  import { isControllingVariants, isVariantNode } from "./utils/is-controlling-variants.mjs";
20
- import { KeyframeResolver } from "./utils/KeyframesResolver.mjs";
21
8
  import { updateMotionValuesFromProps } from "./utils/motion-values.mjs";
22
9
  import { resolveVariantFromProps } from "./utils/resolve-variants.mjs";
10
+ import { KeyframeResolver } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs";
11
+ import { time } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/sync-time.mjs";
12
+ import { frame, cancelFrame } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
13
+ import { warnOnce } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/warn-once.mjs";
14
+ import { transformProps } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
15
+ import { motionValue } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
16
+ import { isNumericalString } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/is-numerical-string.mjs";
17
+ import { isZeroValueString } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/is-zero-value-string.mjs";
18
+ import { findValueType } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/find.mjs";
19
+ import { complex } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/complex/index.mjs";
20
+ import { getAnimatableNone } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/animatable-none.mjs";
21
+ import { SubscriptionManager } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/subscription-manager.mjs";
23
22
  const propEventHandlers = [
24
23
  "AnimationStart",
25
24
  "AnimationComplete",
@@ -68,8 +67,7 @@ class VisualElement {
68
67
  frame.render(this.render, false, true);
69
68
  }
70
69
  };
71
- const { latestValues, renderState, onUpdate } = visualState;
72
- this.onUpdate = onUpdate;
70
+ const { latestValues, renderState } = visualState;
73
71
  this.latestValues = latestValues;
74
72
  this.baseTarget = { ...latestValues };
75
73
  this.initialValues = props.initial ? { ...latestValues } : {};
@@ -237,7 +235,6 @@ class VisualElement {
237
235
  if (this.handleChildMotionValue) {
238
236
  this.handleChildMotionValue();
239
237
  }
240
- this.onUpdate && this.onUpdate(this);
241
238
  }
242
239
  getProps() {
243
240
  return this.props;
@@ -319,8 +316,7 @@ class VisualElement {
319
316
  * directly from the instance (which might have performance implications).
320
317
  */
321
318
  readValue(key, target) {
322
- var _a;
323
- let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
319
+ let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : this.getBaseTargetFromProps(this.props, key) ?? this.readValueFromInstance(this.current, key, this.options);
324
320
  if (value !== void 0 && value !== null) {
325
321
  if (typeof value === "string" && (isNumericalString(value) || isZeroValueString(value))) {
326
322
  value = parseFloat(value);
@@ -347,7 +343,7 @@ class VisualElement {
347
343
  const { initial } = this.props;
348
344
  let valueFromInitial;
349
345
  if (typeof initial === "string" || typeof initial === "object") {
350
- const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);
346
+ const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) == null ? void 0 : _a.custom);
351
347
  if (variant) {
352
348
  valueFromInitial = variant[key];
353
349
  }
@@ -1,6 +1,6 @@
1
1
  import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
2
2
  import { VisualElement } from "../VisualElement.mjs";
3
- import { DOMKeyframesResolver } from "./DOMKeyframesResolver.mjs";
3
+ import { DOMKeyframesResolver } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs";
4
4
  class DOMVisualElement extends VisualElement {
5
5
  constructor() {
6
6
  super(...arguments);
@@ -1,5 +1,4 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
1
+ import { resolveElements } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
3
2
  const resizeHandlers = /* @__PURE__ */ new WeakMap();
4
3
  let observer;
5
4
  function getElementSize(target, borderBoxSize) {
@@ -17,7 +16,7 @@ function getElementSize(target, borderBoxSize) {
17
16
  }
18
17
  function notifyTarget({ target, contentRect, borderBoxSize }) {
19
18
  var _a;
20
- (_a = resizeHandlers.get(target)) === null || _a === void 0 ? void 0 : _a.forEach((handler) => {
19
+ (_a = resizeHandlers.get(target)) == null ? void 0 : _a.forEach((handler) => {
21
20
  handler({
22
21
  target,
23
22
  contentSize: contentRect,
@@ -46,14 +45,14 @@ function resizeElement(target, handler) {
46
45
  resizeHandlers.set(element, elementHandlers);
47
46
  }
48
47
  elementHandlers.add(handler);
49
- observer === null || observer === void 0 ? void 0 : observer.observe(element);
48
+ observer == null ? void 0 : observer.observe(element);
50
49
  });
51
50
  return () => {
52
51
  elements.forEach((element) => {
53
52
  const elementHandlers = resizeHandlers.get(element);
54
- elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.delete(handler);
55
- if (!(elementHandlers === null || elementHandlers === void 0 ? void 0 : elementHandlers.size)) {
56
- observer === null || observer === void 0 ? void 0 : observer.unobserve(element);
53
+ elementHandlers == null ? void 0 : elementHandlers.delete(handler);
54
+ if (!(elementHandlers == null ? void 0 : elementHandlers.size)) {
55
+ observer == null ? void 0 : observer.unobserve(element);
57
56
  }
58
57
  });
59
58
  };
@@ -0,0 +1,17 @@
1
+ import { getTimeline } from "./utils/get-timeline.mjs";
2
+ import { observeTimeline } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/scroll/observe.mjs";
3
+ function attachToAnimation(animation, options) {
4
+ const timeline = getTimeline(options);
5
+ return animation.attachTimeline({
6
+ timeline: options.target ? void 0 : timeline,
7
+ observe: (valueAnimation) => {
8
+ valueAnimation.pause();
9
+ return observeTimeline((progress) => {
10
+ valueAnimation.time = valueAnimation.duration * progress;
11
+ }, timeline);
12
+ }
13
+ });
14
+ }
15
+ export {
16
+ attachToAnimation
17
+ };
@@ -0,0 +1,18 @@
1
+ import { scrollInfo } from "./track.mjs";
2
+ import { getTimeline } from "./utils/get-timeline.mjs";
3
+ import { observeTimeline } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/scroll/observe.mjs";
4
+ function isOnScrollWithInfo(onScroll) {
5
+ return onScroll.length === 2;
6
+ }
7
+ function attachToFunction(onScroll, options) {
8
+ if (isOnScrollWithInfo(onScroll)) {
9
+ return scrollInfo((info) => {
10
+ onScroll(info[options.axis].progress, info);
11
+ }, options);
12
+ } else {
13
+ return observeTimeline(onScroll, getTimeline(options));
14
+ }
15
+ }
16
+ export {
17
+ attachToFunction
18
+ };
@@ -0,0 +1,12 @@
1
+ import { attachToAnimation } from "./attach-animation.mjs";
2
+ import { attachToFunction } from "./attach-function.mjs";
3
+ function scroll(onScroll, { axis = "y", container = document.documentElement, ...options } = {}) {
4
+ if (container === document.documentElement && (axis === "y" && container.scrollHeight === container.clientHeight || axis === "x" && container.scrollWidth === container.clientWidth)) {
5
+ container = document.body;
6
+ }
7
+ const optionsWithDefaults = { axis, container, ...options };
8
+ return typeof onScroll === "function" ? attachToFunction(onScroll, optionsWithDefaults) : attachToAnimation(onScroll, optionsWithDefaults);
9
+ }
10
+ export {
11
+ scroll
12
+ };
@@ -1,6 +1,5 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { progress } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
3
- import { velocityPerSecond } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/velocity-per-second.mjs";
1
+ import { progress } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/progress.mjs";
2
+ import { velocityPerSecond } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/velocity-per-second.mjs";
4
3
  const maxElapsed = 50;
5
4
  const createAxisInfo = () => ({
6
5
  current: 0,
@@ -1,9 +1,9 @@
1
- import { clamp } from "../../../../utils/clamp.mjs";
2
- import { interpolate } from "../../../../utils/interpolate.mjs";
3
- import { defaultOffset } from "../../../../utils/offsets/default.mjs";
4
1
  import { calcInset } from "./inset.mjs";
5
2
  import { resolveOffset } from "./offset.mjs";
6
3
  import { ScrollOffset } from "./presets.mjs";
4
+ import { interpolate } from "../../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/interpolate.mjs";
5
+ import { defaultOffset } from "../../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/offsets/default.mjs";
6
+ import { clamp } from "../../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/clamp.mjs";
7
7
  const point = { x: 0, y: 0 };
8
8
  function getTargetSize(target) {
9
9
  return "getBBox" in target && target.tagName !== "svg" ? target.getBBox() : { width: target.clientWidth, height: target.clientHeight };
@@ -1,7 +1,6 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { warnOnce } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
3
1
  import { updateScrollInfo } from "./info.mjs";
4
2
  import { resolveOffsets } from "./offsets/index.mjs";
3
+ import { warnOnce } from "../../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/warn-once.mjs";
5
4
  function measure(container, target = container, info) {
6
5
  info.x.targetOffset = 0;
7
6
  info.y.targetOffset = 0;
@@ -1,8 +1,7 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
3
1
  import { resize } from "../resize/index.mjs";
4
2
  import { createScrollInfo } from "./info.mjs";
5
3
  import { createOnScrollHandler } from "./on-scroll-handler.mjs";
4
+ import { frame, cancelFrame, frameData } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
6
5
  const scrollListeners = /* @__PURE__ */ new WeakMap();
7
6
  const resizeListeners = /* @__PURE__ */ new WeakMap();
8
7
  const onScrollHandlers = /* @__PURE__ */ new WeakMap();
@@ -31,9 +30,9 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
31
30
  handler.notify();
32
31
  };
33
32
  const listener2 = () => {
34
- frame.read(measureAll, false, true);
35
- frame.read(updateAll, false, true);
36
- frame.update(notifyAll, false, true);
33
+ frame.read(measureAll);
34
+ frame.read(updateAll);
35
+ frame.preUpdate(notifyAll);
37
36
  };
38
37
  scrollListeners.set(container, listener2);
39
38
  const target = getEventTarget(container);
@@ -42,6 +41,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
42
41
  resizeListeners.set(container, resize(container, listener2));
43
42
  }
44
43
  target.addEventListener("scroll", listener2, { passive: true });
44
+ listener2();
45
45
  }
46
46
  const listener = scrollListeners.get(container);
47
47
  frame.read(listener, false, true);
@@ -58,7 +58,7 @@ function scrollInfo(onScroll, { container = document.documentElement, ...options
58
58
  scrollListeners.delete(container);
59
59
  if (scrollListener) {
60
60
  getEventTarget(container).removeEventListener("scroll", scrollListener);
61
- (_a = resizeListeners.get(container)) === null || _a === void 0 ? void 0 : _a();
61
+ (_a = resizeListeners.get(container)) == null ? void 0 : _a();
62
62
  window.removeEventListener("resize", scrollListener);
63
63
  }
64
64
  };
@@ -0,0 +1,27 @@
1
+ import { scrollInfo } from "../track.mjs";
2
+ import { supportsScrollTimeline } from "../../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
3
+ const timelineCache = /* @__PURE__ */ new Map();
4
+ function scrollTimelineFallback(options) {
5
+ const currentTime = { value: 0 };
6
+ const cancel = scrollInfo((info) => {
7
+ currentTime.value = info[options.axis].progress * 100;
8
+ }, options);
9
+ return { currentTime, cancel };
10
+ }
11
+ function getTimeline({ source, container, ...options }) {
12
+ const { axis } = options;
13
+ if (source)
14
+ container = source;
15
+ const containerCache = timelineCache.get(container) ?? /* @__PURE__ */ new Map();
16
+ timelineCache.set(container, containerCache);
17
+ const targetKey = options.target ?? "self";
18
+ const targetCache = containerCache.get(targetKey) ?? {};
19
+ const axisKey = axis + (options.offset ?? []).join(",");
20
+ if (!targetCache[axisKey]) {
21
+ targetCache[axisKey] = !options.target && supportsScrollTimeline() ? new ScrollTimeline({ source: container, axis }) : scrollTimelineFallback({ container, ...options });
22
+ }
23
+ return targetCache[axisKey];
24
+ }
25
+ export {
26
+ getTimeline
27
+ };