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
@@ -1,108 +0,0 @@
1
- import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { secondsToMilliseconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
3
- import { createGeneratorEasing } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs";
4
- import { isGenerator } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
5
- import { NativeAnimationControls } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs";
6
- import { supportsLinearEasing } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/linear-easing.mjs";
7
- import { startWaapiAnimation } from "./index.mjs";
8
- import { browserNumberValueTypes } from "../../../render/dom/value-types/number-browser.mjs";
9
- import { getFinalKeyframe } from "./utils/get-final-keyframe.mjs";
10
- import { setCSSVar, setStyle } from "./utils/style.mjs";
11
- import { supportsPartialKeyframes } from "./utils/supports-partial-keyframes.mjs";
12
- import { supportsWaapi } from "./utils/supports-waapi.mjs";
13
- const state = /* @__PURE__ */ new WeakMap();
14
- function hydrateKeyframes(valueName, keyframes, read) {
15
- for (let i = 0; i < keyframes.length; i++) {
16
- if (keyframes[i] === null) {
17
- keyframes[i] = i === 0 ? read() : keyframes[i - 1];
18
- }
19
- if (typeof keyframes[i] === "number" && browserNumberValueTypes[valueName]) {
20
- keyframes[i] = browserNumberValueTypes[valueName].transform(keyframes[i]);
21
- }
22
- }
23
- if (!supportsPartialKeyframes() && keyframes.length < 2) {
24
- keyframes.unshift(read());
25
- }
26
- }
27
- const defaultEasing = "easeOut";
28
- function getElementAnimationState(element) {
29
- const animationState = state.get(element) || /* @__PURE__ */ new Map();
30
- state.set(element, animationState);
31
- return state.get(element);
32
- }
33
- class NativeAnimation extends NativeAnimationControls {
34
- constructor(element, valueName, valueKeyframes, options) {
35
- const isCSSVar = valueName.startsWith("--");
36
- invariant(typeof options.type !== "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);
37
- const existingAnimation = getElementAnimationState(element).get(valueName);
38
- existingAnimation && existingAnimation.stop();
39
- const readInitialKeyframe = () => {
40
- return valueName.startsWith("--") ? element.style.getPropertyValue(valueName) : window.getComputedStyle(element)[valueName];
41
- };
42
- if (!Array.isArray(valueKeyframes)) {
43
- valueKeyframes = [valueKeyframes];
44
- }
45
- hydrateKeyframes(valueName, valueKeyframes, readInitialKeyframe);
46
- if (isGenerator(options.type)) {
47
- const generatorOptions = createGeneratorEasing(options, 100, options.type);
48
- options.ease = supportsLinearEasing() ? generatorOptions.ease : defaultEasing;
49
- options.duration = secondsToMilliseconds(generatorOptions.duration);
50
- options.type = "keyframes";
51
- } else {
52
- options.ease = options.ease || defaultEasing;
53
- }
54
- const onFinish = () => {
55
- this.setValue(element, valueName, getFinalKeyframe(valueKeyframes, options));
56
- this.cancel();
57
- this.resolveFinishedPromise();
58
- };
59
- const init = () => {
60
- this.setValue = isCSSVar ? setCSSVar : setStyle;
61
- this.options = options;
62
- this.updateFinishedPromise();
63
- this.removeAnimation = () => {
64
- const elementState = state.get(element);
65
- elementState && elementState.delete(valueName);
66
- };
67
- };
68
- if (!supportsWaapi()) {
69
- super();
70
- init();
71
- onFinish();
72
- } else {
73
- super(startWaapiAnimation(element, valueName, valueKeyframes, options));
74
- init();
75
- if (options.autoplay === false) {
76
- this.animation.pause();
77
- }
78
- this.animation.onfinish = onFinish;
79
- getElementAnimationState(element).set(valueName, this);
80
- }
81
- }
82
- /**
83
- * Allows the returned animation to be awaited or promise-chained. Currently
84
- * resolves when the animation finishes at all but in a future update could/should
85
- * reject if its cancels.
86
- */
87
- then(resolve, reject) {
88
- return this.currentFinishedPromise.then(resolve, reject);
89
- }
90
- updateFinishedPromise() {
91
- this.currentFinishedPromise = new Promise((resolve) => {
92
- this.resolveFinishedPromise = resolve;
93
- });
94
- }
95
- play() {
96
- if (this.state === "finished") {
97
- this.updateFinishedPromise();
98
- }
99
- super.play();
100
- }
101
- cancel() {
102
- this.removeAnimation();
103
- super.cancel();
104
- }
105
- }
106
- export {
107
- NativeAnimation
108
- };
@@ -1,32 +0,0 @@
1
- import { invariant } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { secondsToMilliseconds } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
3
- import { getValueTransition } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
4
- import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
5
- import { NativeAnimation } from "./NativeAnimation.mjs";
6
- function animateElements(elementOrSelector, keyframes, options, scope) {
7
- const elements = resolveElements(elementOrSelector, scope);
8
- const numElements = elements.length;
9
- invariant(Boolean(numElements), "No valid element provided.");
10
- const animations = [];
11
- for (let i = 0; i < numElements; i++) {
12
- const element = elements[i];
13
- const elementTransition = { ...options };
14
- if (typeof elementTransition.delay === "function") {
15
- elementTransition.delay = elementTransition.delay(i, numElements);
16
- }
17
- for (const valueName in keyframes) {
18
- const valueKeyframes = keyframes[valueName];
19
- const valueOptions = {
20
- ...getValueTransition(elementTransition, valueName)
21
- };
22
- valueOptions.duration = valueOptions.duration ? secondsToMilliseconds(valueOptions.duration) : valueOptions.duration;
23
- valueOptions.delay = secondsToMilliseconds(valueOptions.delay || 0);
24
- valueOptions.allowFlatten = !elementTransition.type && !elementTransition.ease;
25
- animations.push(new NativeAnimation(element, valueName, valueKeyframes, valueOptions));
26
- }
27
- }
28
- return animations;
29
- }
30
- export {
31
- animateElements
32
- };
@@ -1,14 +0,0 @@
1
- import { GroupPlaybackControls } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs";
2
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
3
- import { animateElements } from "./animate-elements.mjs";
4
- const createScopedWaapiAnimate = (scope) => {
5
- function scopedAnimate(elementOrSelector, keyframes, options) {
6
- return new GroupPlaybackControls(animateElements(elementOrSelector, keyframes, options, scope));
7
- }
8
- return scopedAnimate;
9
- };
10
- const animateMini = /* @__PURE__ */ createScopedWaapiAnimate();
11
- export {
12
- animateMini,
13
- createScopedWaapiAnimate
14
- };
@@ -1,22 +0,0 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { mapEasingToNativeEasing } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs";
3
- function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeInOut", times } = {}) {
4
- const keyframeOptions = { [valueName]: keyframes };
5
- if (times)
6
- keyframeOptions.offset = times;
7
- const easing = mapEasingToNativeEasing(ease, duration);
8
- if (Array.isArray(easing))
9
- keyframeOptions.easing = easing;
10
- const animation = element.animate(keyframeOptions, {
11
- delay,
12
- duration,
13
- easing: !Array.isArray(easing) ? easing : "linear",
14
- fill: "both",
15
- iterations: repeat + 1,
16
- direction: repeatType === "reverse" ? "alternate" : "normal"
17
- });
18
- return animation;
19
- }
20
- export {
21
- startWaapiAnimation
22
- };
@@ -1,10 +0,0 @@
1
- function setCSSVar(element, name, value) {
2
- element.style.setProperty(name, value);
3
- }
4
- function setStyle(element, name, value) {
5
- element.style[name] = value;
6
- }
7
- export {
8
- setCSSVar,
9
- setStyle
10
- };
@@ -1,6 +0,0 @@
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";
3
- const supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
4
- export {
5
- supportsWaapi
6
- };
@@ -1,70 +0,0 @@
1
- import { supportsScrollTimeline } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs";
2
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
3
- import { noop } from "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/noop.mjs";
4
- import { observeTimeline } from "./observe.mjs";
5
- import { scrollInfo } from "./track.mjs";
6
- function scrollTimelineFallback({ source, container, axis = "y" }) {
7
- if (source)
8
- container = source;
9
- const currentTime = { value: 0 };
10
- const cancel = scrollInfo((info) => {
11
- currentTime.value = info[axis].progress * 100;
12
- }, { container, axis });
13
- return { currentTime, cancel };
14
- }
15
- const timelineCache = /* @__PURE__ */ new Map();
16
- function getTimeline({ source, container = document.documentElement, axis = "y" } = {}) {
17
- if (source)
18
- container = source;
19
- if (!timelineCache.has(container)) {
20
- timelineCache.set(container, {});
21
- }
22
- const elementCache = timelineCache.get(container);
23
- if (!elementCache[axis]) {
24
- elementCache[axis] = supportsScrollTimeline() ? new ScrollTimeline({ source: container, axis }) : scrollTimelineFallback({ source: container, axis });
25
- }
26
- return elementCache[axis];
27
- }
28
- function isOnScrollWithInfo(onScroll) {
29
- return onScroll.length === 2;
30
- }
31
- function needsElementTracking(options) {
32
- return options && (options.target || options.offset);
33
- }
34
- function scrollFunction(onScroll, options) {
35
- if (isOnScrollWithInfo(onScroll) || needsElementTracking(options)) {
36
- return scrollInfo((info) => {
37
- onScroll(info[options.axis].progress, info);
38
- }, options);
39
- } else {
40
- return observeTimeline(onScroll, getTimeline(options));
41
- }
42
- }
43
- function scrollAnimation(animation, options) {
44
- animation.flatten();
45
- if (needsElementTracking(options)) {
46
- animation.pause();
47
- return scrollInfo((info) => {
48
- animation.time = animation.duration * info[options.axis].progress;
49
- }, options);
50
- } else {
51
- const timeline = getTimeline(options);
52
- if (animation.attachTimeline) {
53
- return animation.attachTimeline(timeline, (valueAnimation) => {
54
- valueAnimation.pause();
55
- return observeTimeline((progress) => {
56
- valueAnimation.time = valueAnimation.duration * progress;
57
- }, timeline);
58
- });
59
- } else {
60
- return noop;
61
- }
62
- }
63
- }
64
- function scroll(onScroll, { axis = "y", ...options } = {}) {
65
- const optionsWithDefaults = { axis, ...options };
66
- return typeof onScroll === "function" ? scrollFunction(onScroll, optionsWithDefaults) : scrollAnimation(onScroll, optionsWithDefaults);
67
- }
68
- export {
69
- scroll
70
- };
@@ -1,9 +0,0 @@
1
- import { color } from "../../../value/types/color/index.mjs";
2
- import { complex } from "../../../value/types/complex/index.mjs";
3
- import { dimensionValueTypes } from "./dimensions.mjs";
4
- import { testValueType } from "./test.mjs";
5
- const valueTypes = [...dimensionValueTypes, color, complex];
6
- const findValueType = (v) => valueTypes.find(testValueType(v));
7
- export {
8
- findValueType
9
- };
@@ -1,18 +0,0 @@
1
- import { alpha } from "../../../value/types/numbers/index.mjs";
2
- import { px } from "../../../value/types/numbers/units.mjs";
3
- import { browserNumberValueTypes } from "./number-browser.mjs";
4
- import { transformValueTypes } from "./transform.mjs";
5
- import { int } from "./type-int.mjs";
6
- const numberValueTypes = {
7
- ...browserNumberValueTypes,
8
- ...transformValueTypes,
9
- zIndex: int,
10
- size: px,
11
- // SVG
12
- fillOpacity: alpha,
13
- strokeOpacity: alpha,
14
- numOctaves: int
15
- };
16
- export {
17
- numberValueTypes
18
- };
@@ -1,15 +0,0 @@
1
- function updateSVGDimensions(instance, renderState) {
2
- try {
3
- renderState.dimensions = typeof instance.getBBox === "function" ? instance.getBBox() : instance.getBoundingClientRect();
4
- } catch (e) {
5
- renderState.dimensions = {
6
- x: 0,
7
- y: 0,
8
- width: 0,
9
- height: 0
10
- };
11
- }
12
- }
13
- export {
14
- updateSVGDimensions
15
- };
@@ -1,12 +0,0 @@
1
- import { px } from "../../../value/types/numbers/units.mjs";
2
- function calcOrigin(origin, offset, size) {
3
- return typeof origin === "string" ? origin : px.transform(offset + size * origin);
4
- }
5
- function calcSVGTransformOrigin(dimensions, originX, originY) {
6
- const pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);
7
- const pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);
8
- return `${pxOriginX} ${pxOriginY}`;
9
- }
10
- export {
11
- calcSVGTransformOrigin
12
- };
@@ -1,11 +0,0 @@
1
- import { isKeyframesTarget } from "../animation/utils/is-keyframes-target.mjs";
2
- const isCustomValue = (v) => {
3
- return Boolean(v && typeof v === "object" && v.mix && v.toValue);
4
- };
5
- const resolveFinalValueInKeyframes = (v) => {
6
- return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
7
- };
8
- export {
9
- isCustomValue,
10
- resolveFinalValueInKeyframes
11
- };
@@ -1,10 +0,0 @@
1
- import { isWillChangeMotionValue } from "./is.mjs";
2
- function addValueToWillChange(visualElement, key) {
3
- const willChange = visualElement.getValue("willChange");
4
- if (isWillChangeMotionValue(willChange)) {
5
- return willChange.add(key);
6
- }
7
- }
8
- export {
9
- addValueToWillChange
10
- };
@@ -1,9 +0,0 @@
1
- import { isCustomValue } from "../../utils/resolve-value.mjs";
2
- import { isMotionValue } from "./is-motion-value.mjs";
3
- function resolveMotionValue(value) {
4
- const unwrappedValue = isMotionValue(value) ? value.get() : value;
5
- return isCustomValue(unwrappedValue) ? unwrappedValue.toValue() : unwrappedValue;
6
- }
7
- export {
8
- resolveMotionValue
9
- };
@@ -1,9 +0,0 @@
1
- import { BaseGroupPlaybackControls } from "./BaseGroup.mjs";
2
- class GroupPlaybackControls extends BaseGroupPlaybackControls {
3
- then(onResolve, onReject) {
4
- return Promise.all(this.animations).then(onResolve).catch(onReject);
5
- }
6
- }
7
- export {
8
- GroupPlaybackControls
9
- };
@@ -1,6 +0,0 @@
1
- function isGenerator(type) {
2
- return typeof type === "function";
3
- }
4
- export {
5
- isGenerator
6
- };
@@ -1,6 +0,0 @@
1
- function getValueTransition(transition, key) {
2
- return transition ? transition[key] || transition["default"] || transition : void 0;
3
- }
4
- export {
5
- getValueTransition
6
- };
@@ -1,81 +0,0 @@
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 { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/time-conversion.mjs";
4
- import { attachTimeline } from "./utils/attach-timeline.mjs";
5
- class NativeAnimationControls {
6
- constructor(animation) {
7
- this.animation = animation;
8
- }
9
- get duration() {
10
- var _a, _b, _c;
11
- const durationInMs = ((_b = (_a = this.animation) === null || _a === void 0 ? void 0 : _a.effect) === null || _b === void 0 ? void 0 : _b.getComputedTiming().duration) || ((_c = this.options) === null || _c === void 0 ? void 0 : _c.duration) || 300;
12
- return millisecondsToSeconds(Number(durationInMs));
13
- }
14
- get time() {
15
- var _a;
16
- if (this.animation) {
17
- return millisecondsToSeconds(((_a = this.animation) === null || _a === void 0 ? void 0 : _a.currentTime) || 0);
18
- }
19
- return 0;
20
- }
21
- set time(newTime) {
22
- if (this.animation) {
23
- this.animation.currentTime = secondsToMilliseconds(newTime);
24
- }
25
- }
26
- get speed() {
27
- return this.animation ? this.animation.playbackRate : 1;
28
- }
29
- set speed(newSpeed) {
30
- if (this.animation) {
31
- this.animation.playbackRate = newSpeed;
32
- }
33
- }
34
- get state() {
35
- return this.animation ? this.animation.playState : "finished";
36
- }
37
- get startTime() {
38
- return this.animation ? this.animation.startTime : null;
39
- }
40
- get finished() {
41
- return this.animation ? this.animation.finished : Promise.resolve();
42
- }
43
- play() {
44
- this.animation && this.animation.play();
45
- }
46
- pause() {
47
- this.animation && this.animation.pause();
48
- }
49
- stop() {
50
- if (!this.animation || this.state === "idle" || this.state === "finished") {
51
- return;
52
- }
53
- if (this.animation.commitStyles) {
54
- this.animation.commitStyles();
55
- }
56
- this.cancel();
57
- }
58
- flatten() {
59
- var _a, _b;
60
- if (!this.animation || !((_a = this.options) === null || _a === void 0 ? void 0 : _a.allowFlatten))
61
- return;
62
- (_b = this.animation.effect) === null || _b === void 0 ? void 0 : _b.updateTiming({ easing: "linear" });
63
- }
64
- attachTimeline(timeline) {
65
- if (this.animation)
66
- attachTimeline(this.animation, timeline);
67
- return noop;
68
- }
69
- complete() {
70
- this.animation && this.animation.finish();
71
- }
72
- cancel() {
73
- try {
74
- this.animation && this.animation.cancel();
75
- } catch (e) {
76
- }
77
- }
78
- }
79
- export {
80
- NativeAnimationControls
81
- };
@@ -1,7 +0,0 @@
1
- function attachTimeline(animation, timeline) {
2
- animation.timeline = timeline;
3
- animation.onfinish = null;
4
- }
5
- export {
6
- attachTimeline
7
- };
@@ -1,37 +0,0 @@
1
- import { isBezierDefinition } from "../../../utils/is-bezier-definition.mjs";
2
- import { supportsLinearEasing } from "../../../utils/supports/linear-easing.mjs";
3
- import { generateLinearEasing } from "./linear.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
- const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;
8
- const supportedWaapiEasing = {
9
- linear: "linear",
10
- ease: "ease",
11
- easeIn: "ease-in",
12
- easeOut: "ease-out",
13
- easeInOut: "ease-in-out",
14
- circIn: /* @__PURE__ */ cubicBezierAsString([0, 0.65, 0.55, 1]),
15
- circOut: /* @__PURE__ */ cubicBezierAsString([0.55, 0, 1, 0.45]),
16
- backIn: /* @__PURE__ */ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),
17
- backOut: /* @__PURE__ */ cubicBezierAsString([0.33, 1.53, 0.69, 0.99])
18
- };
19
- function mapEasingToNativeEasing(easing, duration) {
20
- if (!easing) {
21
- return void 0;
22
- } else if (typeof easing === "function" && supportsLinearEasing()) {
23
- return generateLinearEasing(easing, duration);
24
- } else if (isBezierDefinition(easing)) {
25
- return cubicBezierAsString(easing);
26
- } else if (Array.isArray(easing)) {
27
- return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);
28
- } else {
29
- return supportedWaapiEasing[easing];
30
- }
31
- }
32
- export {
33
- cubicBezierAsString,
34
- isWaapiSupportedEasing,
35
- mapEasingToNativeEasing,
36
- supportedWaapiEasing
37
- };
@@ -1,74 +0,0 @@
1
- import { isDragActive } from "../drag/state/is-active.mjs";
2
- import { capturePointer } from "../utils/capture-pointer.mjs";
3
- import { isNodeOrChild } from "../utils/is-node-or-child.mjs";
4
- import { isPrimaryPointer } from "../utils/is-primary-pointer.mjs";
5
- import { setupGesture } from "../utils/setup.mjs";
6
- import { isElementKeyboardAccessible } from "./utils/is-keyboard-accessible.mjs";
7
- import { enableKeyboardPress } from "./utils/keyboard.mjs";
8
- import { isPressing } from "./utils/state.mjs";
9
- function isValidPressEvent(event) {
10
- return isPrimaryPointer(event) && !isDragActive();
11
- }
12
- function press(targetOrSelector, onPressStart, options = {}) {
13
- const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);
14
- const startPress = (startEvent) => {
15
- const target = startEvent.currentTarget;
16
- if (!target || !isValidPressEvent(startEvent) || isPressing.has(target))
17
- return;
18
- isPressing.add(target);
19
- capturePointer(startEvent, "set");
20
- const onPressEnd = onPressStart(target, startEvent);
21
- const onPointerEnd = (endEvent, success) => {
22
- target.removeEventListener("pointerup", onPointerUp);
23
- target.removeEventListener("pointercancel", onPointerCancel);
24
- capturePointer(endEvent, "release");
25
- if (!isValidPressEvent(endEvent) || !isPressing.has(target)) {
26
- return;
27
- }
28
- isPressing.delete(target);
29
- if (typeof onPressEnd === "function") {
30
- onPressEnd(endEvent, { success });
31
- }
32
- };
33
- const onPointerUp = (upEvent) => {
34
- const isOutside = !upEvent.isTrusted ? false : checkOutside(upEvent, target instanceof Element ? target.getBoundingClientRect() : {
35
- left: 0,
36
- top: 0,
37
- right: window.innerWidth,
38
- bottom: window.innerHeight
39
- });
40
- if (isOutside) {
41
- onPointerEnd(upEvent, false);
42
- } else {
43
- onPointerEnd(upEvent, !(target instanceof Element) || isNodeOrChild(target, upEvent.target));
44
- }
45
- };
46
- const onPointerCancel = (cancelEvent) => {
47
- onPointerEnd(cancelEvent, false);
48
- };
49
- target.addEventListener("pointerup", onPointerUp, eventOptions);
50
- target.addEventListener("pointercancel", onPointerCancel, eventOptions);
51
- target.addEventListener("lostpointercapture", onPointerCancel, eventOptions);
52
- };
53
- targets.forEach((target) => {
54
- target = options.useGlobalTarget ? window : target;
55
- let canAddKeyboardAccessibility = false;
56
- if (target instanceof HTMLElement) {
57
- canAddKeyboardAccessibility = true;
58
- if (!isElementKeyboardAccessible(target) && target.getAttribute("tabindex") === null) {
59
- target.tabIndex = 0;
60
- }
61
- }
62
- target.addEventListener("pointerdown", startPress, eventOptions);
63
- if (canAddKeyboardAccessibility) {
64
- target.addEventListener("focus", (event) => enableKeyboardPress(event, eventOptions), eventOptions);
65
- }
66
- });
67
- return cancelEvents;
68
- }
69
- function checkOutside(event, rect) {
70
- return event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom;
71
- }
72
- export {
73
- press
74
- };
@@ -1,12 +0,0 @@
1
- function capturePointer(event, action) {
2
- const actionName = `${action}PointerCapture`;
3
- if (event.target instanceof Element && actionName in event.target && event.pointerId !== void 0) {
4
- try {
5
- event.target[actionName](event.pointerId);
6
- } catch (e) {
7
- }
8
- }
9
- }
10
- export {
11
- capturePointer
12
- };
@@ -1,6 +0,0 @@
1
- const supportsFlags = {
2
- linearEasing: void 0
3
- };
4
- export {
5
- supportsFlags
6
- };
@@ -1,13 +0,0 @@
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";
3
- import { supportsFlags } from "./flags.mjs";
4
- function memoSupports(callback, supportsFlag) {
5
- const memoized = memo(callback);
6
- return () => {
7
- var _a;
8
- return (_a = supportsFlags[supportsFlag]) !== null && _a !== void 0 ? _a : memoized();
9
- };
10
- }
11
- export {
12
- memoSupports
13
- };
@@ -1,13 +0,0 @@
1
- function addUniqueItem(arr, item) {
2
- if (arr.indexOf(item) === -1)
3
- arr.push(item);
4
- }
5
- function removeItem(arr, item) {
6
- const index = arr.indexOf(item);
7
- if (index > -1)
8
- arr.splice(index, 1);
9
- }
10
- export {
11
- addUniqueItem,
12
- removeItem
13
- };
@@ -1,7 +0,0 @@
1
- const MotionGlobalConfig = {
2
- skipAnimations: false,
3
- useManualTiming: false
4
- };
5
- export {
6
- MotionGlobalConfig
7
- };