motion-v 1.0.0-beta.2 → 1.0.0-beta.3

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 (327) hide show
  1. package/dist/cjs/index.js +3429 -2928
  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 +706 -706
  6. package/dist/es/components/reorder/index.d.ts +2808 -2808
  7. package/dist/es/components/reorder/utils.d.ts +1 -1
  8. package/dist/es/components/reorder/utils.mjs +1 -2
  9. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
  10. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
  11. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
  12. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
  13. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  14. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
  15. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
  16. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +16 -24
  17. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
  18. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
  19. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
  20. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
  21. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
  22. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
  23. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
  24. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
  25. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
  26. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
  27. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
  28. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +48 -25
  29. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
  30. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
  31. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
  32. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
  33. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
  34. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
  35. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  36. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
  37. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
  38. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
  39. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +9 -0
  40. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
  41. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
  42. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
  43. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +3 -4
  44. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
  45. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
  46. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
  47. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
  48. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
  49. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
  50. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -15
  51. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +9 -8
  52. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
  53. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
  54. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
  55. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/motion-values.mjs +3 -4
  56. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
  57. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
  58. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
  59. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
  60. package/dist/es/external/.pnpm/framer-motion@12.9.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
  61. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +133 -0
  62. package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
  63. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
  64. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/JSAnimation.mjs +261 -0
  65. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
  66. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
  67. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
  68. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/drivers/driver-frameloop.mjs +2 -3
  69. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
  70. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
  71. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
  72. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
  73. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
  74. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
  75. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +9 -9
  76. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +26 -28
  77. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
  78. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
  79. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
  80. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
  81. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
  82. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
  83. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
  84. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
  85. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
  86. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
  87. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
  88. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
  89. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
  90. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
  91. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
  92. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
  93. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
  94. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
  95. 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.9.0/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
  96. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
  97. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
  98. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
  99. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
  100. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
  101. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/effects/style-effect.mjs +30 -0
  102. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
  103. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
  104. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
  105. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
  106. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
  107. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
  108. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
  109. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/gestures/press/index.mjs +53 -0
  110. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
  111. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
  112. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
  113. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
  114. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
  115. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
  116. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/stats/index.mjs +114 -0
  117. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
  118. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
  119. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
  120. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
  121. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
  122. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
  123. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
  124. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
  125. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/value/index.mjs +12 -10
  126. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/map-value.mjs +9 -0
  127. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
  128. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
  129. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
  130. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
  131. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types}/dimensions.mjs +3 -3
  132. 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.9.0/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
  133. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
  134. 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.9.0/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
  135. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
  136. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
  137. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
  138. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
  139. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
  140. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/index.mjs +65 -0
  141. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/queue.mjs +45 -0
  142. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/start.mjs +115 -0
  143. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
  144. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
  145. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
  146. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
  147. package/dist/es/external/.pnpm/motion-dom@12.9.0/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
  148. package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/array.mjs +23 -0
  149. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
  150. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
  151. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
  152. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
  153. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/errors.mjs +4 -3
  154. package/dist/es/external/.pnpm/motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs +4 -0
  155. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/warn-once.mjs +6 -0
  156. package/dist/es/features/animation/animation.mjs +3 -4
  157. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
  158. package/dist/es/features/gestures/drag/index.mjs +1 -2
  159. package/dist/es/features/gestures/focus/index.mjs +1 -1
  160. package/dist/es/features/gestures/hover/index.mjs +2 -3
  161. package/dist/es/features/gestures/in-view/index.mjs +2 -3
  162. package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
  163. package/dist/es/features/gestures/pan/index.mjs +2 -3
  164. package/dist/es/features/gestures/press/index.mjs +2 -3
  165. package/dist/es/features/layout/config.mjs +2 -2
  166. package/dist/es/features/layout/layout.mjs +2 -2
  167. package/dist/es/features/layout/projection.mjs +2 -2
  168. package/dist/es/index.mjs +243 -36
  169. package/dist/es/state/create-visual-element.mjs +2 -2
  170. package/dist/es/state/motion-state.mjs +4 -7
  171. package/dist/es/state/style.mjs +2 -1
  172. package/dist/es/state/utils.d.ts +2 -2
  173. package/dist/es/types/index.d.ts +0 -1
  174. package/dist/es/types/transform.d.ts +0 -23
  175. package/dist/es/utils/index.d.ts +0 -1
  176. package/dist/es/utils/is.d.ts +1 -0
  177. package/dist/es/utils/is.mjs +4 -0
  178. package/dist/es/utils/use-animation-frame.mjs +1 -2
  179. package/dist/es/utils/use-in-view.mjs +1 -1
  180. package/dist/es/value/use-combine-values.mjs +2 -3
  181. package/dist/es/value/use-computed.mjs +1 -2
  182. package/dist/es/value/use-scroll.d.ts +4 -4
  183. package/dist/es/value/use-scroll.mjs +7 -4
  184. package/dist/es/value/use-spring.mjs +6 -7
  185. package/dist/es/value/use-time.d.ts +1 -1
  186. package/dist/es/value/use-time.mjs +1 -2
  187. package/dist/es/value/use-transform.d.ts +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/state/animate-variants-children.d.ts +0 -15
  221. package/dist/es/utils/time-conversion.mjs +0 -8
  222. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  223. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  224. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  225. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  226. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  227. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  228. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
  229. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  230. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  231. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  232. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  233. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  234. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  235. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  236. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  237. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  238. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  239. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  240. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  241. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  242. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  243. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  244. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  245. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  246. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  247. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  248. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  249. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  250. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  251. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  252. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  253. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  254. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  255. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/store.mjs +0 -0
  256. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  257. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  258. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  259. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  260. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  261. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  262. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  263. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  264. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  265. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  266. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  267. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  268. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  269. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.9.0}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  270. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
  271. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
  272. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
  273. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
  274. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
  275. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
  276. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.9.0/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
  277. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.9.0/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
  278. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
  279. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
  280. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
  281. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
  282. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
  283. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
  284. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
  285. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
  286. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
  287. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.9.0/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
  288. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.9.0/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
  289. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
  290. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
  291. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
  292. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
  293. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
  294. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.9.0}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
  295. /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.9.0/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
  296. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
  297. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
  298. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
  299. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
  300. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
  301. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
  302. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
  303. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
  304. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
  305. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.9.0/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
  306. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
  307. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
  308. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.9.0/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  309. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/clamp.mjs +0 -0
  310. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
  311. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/back.mjs +0 -0
  312. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
  313. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
  314. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
  315. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
  316. /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.8.3/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
  317. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.8.3/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
  318. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
  319. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
  320. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/memo.mjs +0 -0
  321. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/noop.mjs +0 -0
  322. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/pipe.mjs +0 -0
  323. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/progress.mjs +0 -0
  324. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
  325. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
  326. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.8.3}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
  327. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.8.3/external/motion-utils/dist/es}/wrap.mjs +0 -0
@@ -0,0 +1,9 @@
1
+ import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
+ import { supportedWaapiEasing } from "./supported.mjs";
3
+ import { isBezierDefinition } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
4
+ function isWaapiSupportedEasing(easing) {
5
+ return Boolean(typeof easing === "function" && supportsLinearEasing() || !easing || typeof easing === "string" && (easing in supportedWaapiEasing || supportsLinearEasing()) || isBezierDefinition(easing) || Array.isArray(easing) && easing.every(isWaapiSupportedEasing));
6
+ }
7
+ export {
8
+ isWaapiSupportedEasing
9
+ };
@@ -0,0 +1,21 @@
1
+ import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
+ import { generateLinearEasing } from "../utils/linear.mjs";
3
+ import { cubicBezierAsString } from "./cubic-bezier.mjs";
4
+ import { supportedWaapiEasing } from "./supported.mjs";
5
+ import { isBezierDefinition } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs";
6
+ function mapEasingToNativeEasing(easing, duration) {
7
+ if (!easing) {
8
+ return void 0;
9
+ } else if (typeof easing === "function") {
10
+ return supportsLinearEasing() ? generateLinearEasing(easing, duration) : "ease-out";
11
+ } else if (isBezierDefinition(easing)) {
12
+ return cubicBezierAsString(easing);
13
+ } else if (Array.isArray(easing)) {
14
+ return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);
15
+ } else {
16
+ return supportedWaapiEasing[easing];
17
+ }
18
+ }
19
+ export {
20
+ mapEasingToNativeEasing
21
+ };
@@ -0,0 +1,15 @@
1
+ import { cubicBezierAsString } from "./cubic-bezier.mjs";
2
+ const supportedWaapiEasing = {
3
+ linear: "linear",
4
+ ease: "ease",
5
+ easeIn: "ease-in",
6
+ easeOut: "ease-out",
7
+ easeInOut: "ease-in-out",
8
+ circIn: /* @__PURE__ */ cubicBezierAsString([0, 0.65, 0.55, 1]),
9
+ circOut: /* @__PURE__ */ cubicBezierAsString([0.55, 0, 1, 0.45]),
10
+ backIn: /* @__PURE__ */ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
11
+ backOut: /* @__PURE__ */ cubicBezierAsString([0.33, 1.53, 0.69, 0.99])
12
+ };
13
+ export {
14
+ supportedWaapiEasing
15
+ };
@@ -0,0 +1,36 @@
1
+ import { activeAnimations } from "../../stats/animation-count.mjs";
2
+ import { statsBuffer } from "../../stats/buffer.mjs";
3
+ import { mapEasingToNativeEasing } from "./easing/map-easing.mjs";
4
+ function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeOut", times } = {}, pseudoElement = void 0) {
5
+ const keyframeOptions = {
6
+ [valueName]: keyframes
7
+ };
8
+ if (times)
9
+ keyframeOptions.offset = times;
10
+ const easing = mapEasingToNativeEasing(ease, duration);
11
+ if (Array.isArray(easing))
12
+ keyframeOptions.easing = easing;
13
+ if (statsBuffer.value) {
14
+ activeAnimations.waapi++;
15
+ }
16
+ const options = {
17
+ delay,
18
+ duration,
19
+ easing: !Array.isArray(easing) ? easing : "linear",
20
+ fill: "both",
21
+ iterations: repeat + 1,
22
+ direction: repeatType === "reverse" ? "alternate" : "normal"
23
+ };
24
+ if (pseudoElement)
25
+ options.pseudoElement = pseudoElement;
26
+ const animation = element.animate(keyframeOptions, options);
27
+ if (statsBuffer.value) {
28
+ animation.finished.finally(() => {
29
+ activeAnimations.waapi--;
30
+ });
31
+ }
32
+ return animation;
33
+ }
34
+ export {
35
+ startWaapiAnimation
36
+ };
@@ -1,5 +1,4 @@
1
- import "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { memo } from "../../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/memo.mjs";
1
+ import { memo } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
3
2
  const supportsPartialKeyframes = /* @__PURE__ */ memo(() => {
4
3
  try {
5
4
  document.createElement("div").animate({ opacity: [1] });
@@ -0,0 +1,26 @@
1
+ import { memo } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/memo.mjs";
2
+ const acceleratedValues = /* @__PURE__ */ new Set([
3
+ "opacity",
4
+ "clipPath",
5
+ "filter",
6
+ "transform"
7
+ // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
8
+ // or until we implement support for linear() easing.
9
+ // "background-color"
10
+ ]);
11
+ const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
12
+ function supportsBrowserAnimation(options) {
13
+ const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
14
+ if (!motionValue || !motionValue.owner || !(motionValue.owner.current instanceof HTMLElement)) {
15
+ return false;
16
+ }
17
+ const { onUpdate, transformTemplate } = motionValue.owner.getProps();
18
+ return supportsWaapi() && name && acceleratedValues.has(name) && (name !== "transform" || !transformTemplate) && /**
19
+ * If we're outputting values to onUpdate then we can't use WAAPI as there's
20
+ * no way to read the value from WAAPI every frame.
21
+ */
22
+ !onUpdate && !repeatDelay && repeatType !== "mirror" && damping !== 0 && type !== "inertia";
23
+ }
24
+ export {
25
+ supportsBrowserAnimation
26
+ };
@@ -0,0 +1,14 @@
1
+ import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
2
+ import { isGenerator } from "../../generators/utils/is-generator.mjs";
3
+ function applyGeneratorOptions({ type, ...options }) {
4
+ if (isGenerator(type) && supportsLinearEasing()) {
5
+ return type.applyToOptions(options);
6
+ } else {
7
+ options.duration ?? (options.duration = 300);
8
+ options.ease ?? (options.ease = "easeOut");
9
+ }
10
+ return options;
11
+ }
12
+ export {
13
+ applyGeneratorOptions
14
+ };
@@ -1,10 +1,8 @@
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
1
  const generateLinearEasing = (easing, duration, resolution = 10) => {
4
2
  let points = "";
5
3
  const numPoints = Math.max(Math.round(duration / resolution), 2);
6
4
  for (let i = 0; i < numPoints; i++) {
7
- points += easing(progress(0, numPoints - 1, i)) + ", ";
5
+ points += easing(i / (numPoints - 1)) + ", ";
8
6
  }
9
7
  return `linear(${points.substring(0, points.length - 2)})`;
10
8
  };
@@ -0,0 +1,40 @@
1
+ const pxValues = /* @__PURE__ */ new Set([
2
+ // Border props
3
+ "borderWidth",
4
+ "borderTopWidth",
5
+ "borderRightWidth",
6
+ "borderBottomWidth",
7
+ "borderLeftWidth",
8
+ "borderRadius",
9
+ "radius",
10
+ "borderTopLeftRadius",
11
+ "borderTopRightRadius",
12
+ "borderBottomRightRadius",
13
+ "borderBottomLeftRadius",
14
+ // Positioning props
15
+ "width",
16
+ "maxWidth",
17
+ "height",
18
+ "maxHeight",
19
+ "top",
20
+ "right",
21
+ "bottom",
22
+ "left",
23
+ // Spacing props
24
+ "padding",
25
+ "paddingTop",
26
+ "paddingRight",
27
+ "paddingBottom",
28
+ "paddingLeft",
29
+ "margin",
30
+ "marginTop",
31
+ "marginRight",
32
+ "marginBottom",
33
+ "marginLeft",
34
+ // Misc
35
+ "backgroundPositionX",
36
+ "backgroundPositionY"
37
+ ]);
38
+ export {
39
+ pxValues
40
+ };
@@ -0,0 +1,19 @@
1
+ import { anticipate } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/anticipate.mjs";
2
+ import { backInOut } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/back.mjs";
3
+ import { circInOut } from "../../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/easing/circ.mjs";
4
+ const unsupportedEasingFunctions = {
5
+ anticipate,
6
+ backInOut,
7
+ circInOut
8
+ };
9
+ function isUnsupportedEase(key) {
10
+ return key in unsupportedEasingFunctions;
11
+ }
12
+ function replaceStringEasing(transition) {
13
+ if (typeof transition.ease === "string" && isUnsupportedEase(transition.ease)) {
14
+ transition.ease = unsupportedEasingFunctions[transition.ease];
15
+ }
16
+ }
17
+ export {
18
+ replaceStringEasing
19
+ };
@@ -0,0 +1,30 @@
1
+ import { resolveElements } from "../utils/resolve-elements.mjs";
2
+ import { frame, cancelFrame } from "../frameloop/frame.mjs";
3
+ function styleEffect(subject, values) {
4
+ const elements = resolveElements(subject);
5
+ const subscriptions = [];
6
+ for (let i = 0; i < elements.length; i++) {
7
+ const element = elements[i];
8
+ for (const key in values) {
9
+ const value = values[key];
10
+ const updateStyle = () => {
11
+ element.style[key] = value.get();
12
+ };
13
+ const scheduleUpdate = () => frame.render(updateStyle);
14
+ const cancel = value.on("change", scheduleUpdate);
15
+ scheduleUpdate();
16
+ subscriptions.push(() => {
17
+ cancel();
18
+ cancelFrame(updateStyle);
19
+ });
20
+ }
21
+ }
22
+ return () => {
23
+ for (const cancel of subscriptions) {
24
+ cancel();
25
+ }
26
+ };
27
+ }
28
+ export {
29
+ styleEffect
30
+ };
@@ -1,6 +1,6 @@
1
- import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
1
  import { stepsOrder } from "./order.mjs";
3
2
  import { createRenderStep } from "./render-step.mjs";
3
+ import { MotionGlobalConfig } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs";
4
4
  const maxElapsed = 40;
5
5
  function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
6
6
  let runNextFrame = false;
@@ -15,17 +15,19 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
15
15
  acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : void 0);
16
16
  return acc;
17
17
  }, {});
18
- const { read, resolveKeyframes, update, preRender, render, postRender } = steps;
18
+ const { setup, read, resolveKeyframes, preUpdate, update, preRender, render, postRender } = steps;
19
19
  const processBatch = () => {
20
- const timestamp = performance.now();
20
+ const timestamp = MotionGlobalConfig.useManualTiming ? state.timestamp : performance.now();
21
21
  runNextFrame = false;
22
- {
22
+ if (!MotionGlobalConfig.useManualTiming) {
23
23
  state.delta = useDefaultElapsed ? 1e3 / 60 : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
24
24
  }
25
25
  state.timestamp = timestamp;
26
26
  state.isProcessing = true;
27
+ setup.process(state);
27
28
  read.process(state);
28
29
  resolveKeyframes.process(state);
30
+ preUpdate.process(state);
29
31
  update.process(state);
30
32
  preRender.process(state);
31
33
  render.process(state);
@@ -1,6 +1,5 @@
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
1
  import { createRenderBatcher } from "./batcher.mjs";
2
+ import { noop } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
4
3
  const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
5
4
  export {
6
5
  cancelFrame,
@@ -0,0 +1,11 @@
1
+ import { stepsOrder } from "./order.mjs";
2
+ import { frame, cancelFrame } from "./frame.mjs";
3
+ const sync = frame;
4
+ const cancelSync = stepsOrder.reduce((acc, key) => {
5
+ acc[key] = (process) => cancelFrame(process);
6
+ return acc;
7
+ }, {});
8
+ export {
9
+ cancelSync,
10
+ sync
11
+ };
@@ -1,8 +1,12 @@
1
1
  const stepsOrder = [
2
+ "setup",
3
+ // Compute
2
4
  "read",
3
5
  // Read
4
6
  "resolveKeyframes",
5
7
  // Write/Read/Write/Read
8
+ "preUpdate",
9
+ // Compute
6
10
  "update",
7
11
  // Compute
8
12
  "preRender",
@@ -1,6 +1,5 @@
1
- import "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { MotionGlobalConfig } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs";
3
1
  import { frameData } from "./frame.mjs";
2
+ import { MotionGlobalConfig } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs";
4
3
  let now;
5
4
  function clearTime() {
6
5
  now = void 0;
@@ -3,7 +3,7 @@ const isDragging = {
3
3
  y: false
4
4
  };
5
5
  function isDragActive() {
6
- return isDragging.y;
6
+ return isDragging.x || isDragging.y;
7
7
  }
8
8
  export {
9
9
  isDragActive,
@@ -0,0 +1,25 @@
1
+ import { isDragging } from "./is-active.mjs";
2
+ function setDragLock(axis) {
3
+ if (axis === "x" || axis === "y") {
4
+ if (isDragging[axis]) {
5
+ return null;
6
+ } else {
7
+ isDragging[axis] = true;
8
+ return () => {
9
+ isDragging[axis] = false;
10
+ };
11
+ }
12
+ } else {
13
+ if (isDragging.x || isDragging.y) {
14
+ return null;
15
+ } else {
16
+ isDragging.x = isDragging.y = true;
17
+ return () => {
18
+ isDragging.x = isDragging.y = false;
19
+ };
20
+ }
21
+ }
22
+ }
23
+ export {
24
+ setDragLock
25
+ };
@@ -0,0 +1,53 @@
1
+ import { isDragActive } from "../drag/state/is-active.mjs";
2
+ import { isNodeOrChild } from "../utils/is-node-or-child.mjs";
3
+ import { isPrimaryPointer } from "../utils/is-primary-pointer.mjs";
4
+ import { setupGesture } from "../utils/setup.mjs";
5
+ import { isElementKeyboardAccessible } from "./utils/is-keyboard-accessible.mjs";
6
+ import { enableKeyboardPress } from "./utils/keyboard.mjs";
7
+ import { isPressing } from "./utils/state.mjs";
8
+ function isValidPressEvent(event) {
9
+ return isPrimaryPointer(event) && !isDragActive();
10
+ }
11
+ function press(targetOrSelector, onPressStart, options = {}) {
12
+ const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);
13
+ const startPress = (startEvent) => {
14
+ const target = startEvent.currentTarget;
15
+ if (!isValidPressEvent(startEvent) || isPressing.has(target))
16
+ return;
17
+ isPressing.add(target);
18
+ const onPressEnd = onPressStart(target, startEvent);
19
+ const onPointerEnd = (endEvent, success) => {
20
+ window.removeEventListener("pointerup", onPointerUp);
21
+ window.removeEventListener("pointercancel", onPointerCancel);
22
+ if (!isValidPressEvent(endEvent) || !isPressing.has(target)) {
23
+ return;
24
+ }
25
+ isPressing.delete(target);
26
+ if (typeof onPressEnd === "function") {
27
+ onPressEnd(endEvent, { success });
28
+ }
29
+ };
30
+ const onPointerUp = (upEvent) => {
31
+ onPointerEnd(upEvent, target === window || target === document || options.useGlobalTarget || isNodeOrChild(target, upEvent.target));
32
+ };
33
+ const onPointerCancel = (cancelEvent) => {
34
+ onPointerEnd(cancelEvent, false);
35
+ };
36
+ window.addEventListener("pointerup", onPointerUp, eventOptions);
37
+ window.addEventListener("pointercancel", onPointerCancel, eventOptions);
38
+ };
39
+ targets.forEach((target) => {
40
+ const pointerDownTarget = options.useGlobalTarget ? window : target;
41
+ pointerDownTarget.addEventListener("pointerdown", startPress, eventOptions);
42
+ if (target instanceof HTMLElement) {
43
+ target.addEventListener("focus", (event) => enableKeyboardPress(event, eventOptions));
44
+ if (!isElementKeyboardAccessible(target) && !target.hasAttribute("tabindex")) {
45
+ target.tabIndex = 0;
46
+ }
47
+ }
48
+ });
49
+ return cancelEvents;
50
+ }
51
+ export {
52
+ press
53
+ };
@@ -0,0 +1,4 @@
1
+ const isCSSVar = (name) => name.startsWith("--");
2
+ export {
3
+ isCSSVar
4
+ };
@@ -0,0 +1,8 @@
1
+ import { isCSSVar } from "./is-css-var.mjs";
2
+ function getComputedStyle(element, name) {
3
+ const computedStyle = window.getComputedStyle(element);
4
+ return isCSSVar(name) ? computedStyle.getPropertyValue(name) : computedStyle[name];
5
+ }
6
+ export {
7
+ getComputedStyle
8
+ };
@@ -0,0 +1,7 @@
1
+ import { isCSSVar } from "./is-css-var.mjs";
2
+ function setStyle(element, name, value) {
3
+ isCSSVar(name) ? element.style.setProperty(name, value) : element.style[name] = value;
4
+ }
5
+ export {
6
+ setStyle
7
+ };
@@ -17,7 +17,7 @@ const transformPropOrder = [
17
17
  "skewX",
18
18
  "skewY"
19
19
  ];
20
- const transformProps = new Set(transformPropOrder);
20
+ const transformProps = /* @__PURE__ */ (() => new Set(transformPropOrder))();
21
21
  export {
22
22
  transformPropOrder,
23
23
  transformProps
@@ -1,5 +1,4 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { frame, cancelFrame } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
1
+ import { frame, cancelFrame } from "../frameloop/frame.mjs";
3
2
  function observeTimeline(update, timeline) {
4
3
  let prevProgress;
5
4
  const onFrame = () => {
@@ -11,7 +10,7 @@ function observeTimeline(update, timeline) {
11
10
  }
12
11
  prevProgress = progress;
13
12
  };
14
- frame.update(onFrame, true);
13
+ frame.preUpdate(onFrame, true);
15
14
  return () => cancelFrame(onFrame);
16
15
  }
17
16
  export {
@@ -0,0 +1,8 @@
1
+ const activeAnimations = {
2
+ layout: 0,
3
+ mainThread: 0,
4
+ waapi: 0
5
+ };
6
+ export {
7
+ activeAnimations
8
+ };
@@ -0,0 +1,114 @@
1
+ import { activeAnimations } from "./animation-count.mjs";
2
+ import { statsBuffer } from "./buffer.mjs";
3
+ import { frame, cancelFrame, frameData } from "../frameloop/frame.mjs";
4
+ function record() {
5
+ const { value } = statsBuffer;
6
+ if (value === null) {
7
+ cancelFrame(record);
8
+ return;
9
+ }
10
+ value.frameloop.rate.push(frameData.delta);
11
+ value.animations.mainThread.push(activeAnimations.mainThread);
12
+ value.animations.waapi.push(activeAnimations.waapi);
13
+ value.animations.layout.push(activeAnimations.layout);
14
+ }
15
+ function mean(values) {
16
+ return values.reduce((acc, value) => acc + value, 0) / values.length;
17
+ }
18
+ function summarise(values, calcAverage = mean) {
19
+ if (values.length === 0) {
20
+ return {
21
+ min: 0,
22
+ max: 0,
23
+ avg: 0
24
+ };
25
+ }
26
+ return {
27
+ min: Math.min(...values),
28
+ max: Math.max(...values),
29
+ avg: calcAverage(values)
30
+ };
31
+ }
32
+ const msToFps = (ms) => Math.round(1e3 / ms);
33
+ function clearStatsBuffer() {
34
+ statsBuffer.value = null;
35
+ statsBuffer.addProjectionMetrics = null;
36
+ }
37
+ function reportStats() {
38
+ const { value } = statsBuffer;
39
+ if (!value) {
40
+ throw new Error("Stats are not being measured");
41
+ }
42
+ clearStatsBuffer();
43
+ cancelFrame(record);
44
+ const summary = {
45
+ frameloop: {
46
+ setup: summarise(value.frameloop.setup),
47
+ rate: summarise(value.frameloop.rate),
48
+ read: summarise(value.frameloop.read),
49
+ resolveKeyframes: summarise(value.frameloop.resolveKeyframes),
50
+ preUpdate: summarise(value.frameloop.preUpdate),
51
+ update: summarise(value.frameloop.update),
52
+ preRender: summarise(value.frameloop.preRender),
53
+ render: summarise(value.frameloop.render),
54
+ postRender: summarise(value.frameloop.postRender)
55
+ },
56
+ animations: {
57
+ mainThread: summarise(value.animations.mainThread),
58
+ waapi: summarise(value.animations.waapi),
59
+ layout: summarise(value.animations.layout)
60
+ },
61
+ layoutProjection: {
62
+ nodes: summarise(value.layoutProjection.nodes),
63
+ calculatedTargetDeltas: summarise(value.layoutProjection.calculatedTargetDeltas),
64
+ calculatedProjections: summarise(value.layoutProjection.calculatedProjections)
65
+ }
66
+ };
67
+ const { rate } = summary.frameloop;
68
+ rate.min = msToFps(rate.min);
69
+ rate.max = msToFps(rate.max);
70
+ rate.avg = msToFps(rate.avg);
71
+ [rate.min, rate.max] = [rate.max, rate.min];
72
+ return summary;
73
+ }
74
+ function recordStats() {
75
+ if (statsBuffer.value) {
76
+ clearStatsBuffer();
77
+ throw new Error("Stats are already being measured");
78
+ }
79
+ const newStatsBuffer = statsBuffer;
80
+ newStatsBuffer.value = {
81
+ frameloop: {
82
+ setup: [],
83
+ rate: [],
84
+ read: [],
85
+ resolveKeyframes: [],
86
+ preUpdate: [],
87
+ update: [],
88
+ preRender: [],
89
+ render: [],
90
+ postRender: []
91
+ },
92
+ animations: {
93
+ mainThread: [],
94
+ waapi: [],
95
+ layout: []
96
+ },
97
+ layoutProjection: {
98
+ nodes: [],
99
+ calculatedTargetDeltas: [],
100
+ calculatedProjections: []
101
+ }
102
+ };
103
+ newStatsBuffer.addProjectionMetrics = (metrics) => {
104
+ const { layoutProjection } = newStatsBuffer.value;
105
+ layoutProjection.nodes.push(metrics.nodes);
106
+ layoutProjection.calculatedTargetDeltas.push(metrics.calculatedTargetDeltas);
107
+ layoutProjection.calculatedProjections.push(metrics.calculatedProjections);
108
+ };
109
+ frame.postRender(record, true);
110
+ return reportStats;
111
+ }
112
+ export {
113
+ recordStats
114
+ };
@@ -1,12 +1,13 @@
1
- import { invariant } from "../../../../../../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 { progress } from "../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/progress.mjs";
4
- import { clamp } from "./clamp.mjs";
5
1
  import { mix } from "./mix/index.mjs";
6
- import { pipe } from "./pipe.mjs";
2
+ import { invariant } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
3
+ import { clamp } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/clamp.mjs";
4
+ import { MotionGlobalConfig } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/global-config.mjs";
5
+ import { noop } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/noop.mjs";
6
+ import { pipe } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/pipe.mjs";
7
+ import { progress } from "../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/progress.mjs";
7
8
  function createMixers(output, ease, customMixer) {
8
9
  const mixers = [];
9
- const mixerFactory = customMixer || mix;
10
+ const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;
10
11
  const numMixers = output.length - 1;
11
12
  for (let i = 0; i < numMixers; i++) {
12
13
  let mixer = mixerFactory(output[i], output[i + 1]);
@@ -1,10 +1,10 @@
1
- import { mixNumber } from "./number.mjs";
2
- import { warning } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
3
- import { hslaToRgba } from "../hsla-to-rgba.mjs";
4
1
  import { hex } from "../../value/types/color/hex.mjs";
5
- import { rgba } from "../../value/types/color/rgba.mjs";
6
2
  import { hsla } from "../../value/types/color/hsla.mjs";
3
+ import { hslaToRgba } from "../../value/types/color/hsla-to-rgba.mjs";
4
+ import { rgba } from "../../value/types/color/rgba.mjs";
7
5
  import { mixImmediate } from "./immediate.mjs";
6
+ import { mixNumber } from "./number.mjs";
7
+ import { warning } from "../../../../../../../motion-utils@12.8.3/external/motion-utils/dist/es/errors.mjs";
8
8
  const mixLinearColor = (from, to, v) => {
9
9
  const fromExpo = from * from;
10
10
  const expo = v * (to * to - fromExpo) + fromExpo;