motion-v 1.0.2 → 1.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/cjs/index.js +3844 -3225
  2. package/dist/es/animation/hooks/animation-controls.mjs +1 -1
  3. package/dist/es/animation/hooks/use-animate.mjs +1 -1
  4. package/dist/es/components/animate-presence/use-pop-layout.mjs +1 -2
  5. package/dist/es/components/motion/use-motion-state.d.ts +702 -702
  6. package/dist/es/components/motion/use-motion-state.mjs +10 -2
  7. package/dist/es/components/reorder/index.d.ts +2808 -2808
  8. package/dist/es/components/reorder/utils.d.ts +1 -1
  9. package/dist/es/components/reorder/utils.mjs +1 -2
  10. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -3
  11. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -2
  12. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/sequence.mjs +1 -1
  13. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -2
  14. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  15. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +73 -0
  16. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
  17. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +17 -24
  18. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +8 -6
  19. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/create.mjs +10 -10
  20. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +1 -2
  21. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +3 -4
  22. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
  23. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/stagger.mjs +1 -1
  24. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
  25. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +8 -14
  26. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +1 -1
  27. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +1 -1
  28. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +2 -2
  29. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +61 -35
  30. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/shared/stack.mjs +1 -2
  31. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +1 -1
  32. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +2 -2
  33. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +1 -1
  34. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/styles/transform.mjs +1 -1
  35. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/VisualElement.mjs +15 -19
  36. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  37. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +6 -7
  38. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs +17 -0
  39. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/attach-function.mjs +18 -0
  40. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/index.mjs +12 -0
  41. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -3
  42. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +3 -3
  43. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -2
  44. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +6 -6
  45. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs +27 -0
  46. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -2
  47. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +3 -3
  48. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +4 -4
  49. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +3 -3
  50. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +1 -1
  51. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +3 -16
  52. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +10 -9
  53. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/path.mjs +1 -1
  54. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
  55. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +1 -2
  56. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -6
  57. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +1 -1
  58. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/setters.mjs +5 -3
  59. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/delay.mjs +4 -5
  60. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +15 -0
  61. package/dist/es/external/.pnpm/framer-motion@12.10.4/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +7 -0
  62. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +138 -0
  63. package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimation.mjs} +8 -15
  64. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs +10 -0
  65. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/JSAnimation.mjs +267 -0
  66. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimation.mjs +150 -0
  67. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +44 -0
  68. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs +14 -0
  69. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/drivers/frame.mjs} +3 -4
  70. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/keyframes.mjs +5 -5
  71. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/find.mjs +3 -3
  72. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/index.mjs +15 -6
  73. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +1 -2
  74. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +6 -0
  75. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/utils/velocity.mjs +1 -2
  76. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/DOMKeyframesResolver.mjs +10 -10
  77. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/KeyframesResolver.mjs +32 -35
  78. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/get-final.mjs +10 -0
  79. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/fill.mjs +2 -3
  80. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs +11 -0
  81. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +8 -0
  82. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/is-none.mjs +1 -1
  83. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/make-none-animatable.mjs +1 -1
  84. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/utils/unit-conversion.mjs +2 -2
  85. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/WithPromise.mjs +29 -0
  86. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/active-animations.mjs +11 -0
  87. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/can-animate.mjs +3 -3
  88. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/css-variables-conversion.mjs +3 -3
  89. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +6 -0
  90. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
  91. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +4 -0
  92. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs +9 -0
  93. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +21 -0
  94. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
  95. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +36 -0
  96. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs} +1 -2
  97. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +26 -0
  98. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +14 -0
  99. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/waapi/utils/linear.mjs +1 -3
  100. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/px-values.mjs +40 -0
  101. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +19 -0
  102. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/MotionValueState.mjs +42 -0
  103. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/index.mjs +49 -0
  104. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/effects/style/transform.mjs +33 -0
  105. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/batcher.mjs +6 -4
  106. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/frame.mjs +1 -2
  107. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/index-legacy.mjs +11 -0
  108. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/order.mjs +4 -0
  109. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/sync-time.mjs +1 -2
  110. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +1 -1
  111. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/drag/state/set-active.mjs +25 -0
  112. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/gestures/press/index.mjs +55 -0
  113. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/is-css-var.mjs +4 -0
  114. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-computed.mjs +8 -0
  115. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/style-set.mjs +7 -0
  116. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-transform.mjs +1 -1
  117. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es}/scroll/observe.mjs +2 -3
  118. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/animation-count.mjs +8 -0
  119. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/stats/index.mjs +114 -0
  120. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/interpolate.mjs +7 -6
  121. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/color.mjs +4 -4
  122. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/complex.mjs +7 -8
  123. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/resolve-elements.mjs +1 -2
  124. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/flags.mjs +4 -0
  125. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
  126. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -2
  127. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/transform.mjs +1 -8
  128. package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/value/index.mjs +33 -10
  129. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/map-value.mjs +9 -0
  130. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/subscribe-value.mjs +13 -0
  131. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/transform-value.mjs +14 -0
  132. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/rgba.mjs +1 -1
  133. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/index.mjs +1 -1
  134. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/dimensions.mjs +3 -3
  135. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/int.mjs} +1 -1
  136. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/defaults.mjs +2 -2
  137. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs} +13 -4
  138. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps}/transform.mjs +2 -2
  139. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/index.mjs +1 -1
  140. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/numbers/units.mjs +3 -3
  141. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/animatable-none.mjs +3 -3
  142. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/find.mjs +9 -0
  143. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/index.mjs +65 -0
  144. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/queue.mjs +45 -0
  145. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/start.mjs +115 -0
  146. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/choose-layer-type.mjs +12 -0
  147. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/css.mjs +35 -0
  148. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-layer-name.mjs +9 -0
  149. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/get-view-animations.mjs +13 -0
  150. package/dist/es/external/.pnpm/motion-dom@12.10.4/external/motion-dom/dist/es/view/utils/has-target.mjs +6 -0
  151. package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs +23 -0
  152. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/cubic-bezier.mjs +1 -2
  153. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/steps.mjs +1 -1
  154. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/get-easing-for-segment.mjs +1 -1
  155. package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/map.mjs +7 -4
  156. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/errors.mjs +4 -3
  157. package/dist/es/external/.pnpm/motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs +4 -0
  158. package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/warn-once.mjs +6 -0
  159. package/dist/es/features/animation/animation.mjs +3 -4
  160. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -3
  161. package/dist/es/features/gestures/drag/index.mjs +1 -2
  162. package/dist/es/features/gestures/focus/index.mjs +1 -1
  163. package/dist/es/features/gestures/hover/index.mjs +2 -3
  164. package/dist/es/features/gestures/in-view/index.mjs +2 -3
  165. package/dist/es/features/gestures/pan/PanSession.mjs +4 -5
  166. package/dist/es/features/gestures/pan/index.mjs +2 -3
  167. package/dist/es/features/gestures/press/index.mjs +2 -3
  168. package/dist/es/features/layout/config.mjs +2 -2
  169. package/dist/es/features/layout/layout.mjs +2 -2
  170. package/dist/es/features/layout/projection.mjs +2 -2
  171. package/dist/es/index.mjs +243 -36
  172. package/dist/es/state/create-visual-element.mjs +2 -2
  173. package/dist/es/state/motion-state.mjs +2 -6
  174. package/dist/es/state/style.d.ts +1 -1
  175. package/dist/es/state/style.mjs +5 -5
  176. package/dist/es/state/utils.d.ts +1 -2
  177. package/dist/es/types/transform.d.ts +1 -23
  178. package/dist/es/utils/index.d.ts +0 -1
  179. package/dist/es/utils/use-animation-frame.mjs +1 -2
  180. package/dist/es/utils/use-in-view.mjs +1 -1
  181. package/dist/es/value/use-combine-values.mjs +2 -3
  182. package/dist/es/value/use-computed.mjs +1 -2
  183. package/dist/es/value/use-scroll.d.ts +4 -4
  184. package/dist/es/value/use-scroll.mjs +2 -3
  185. package/dist/es/value/use-spring.mjs +3 -4
  186. package/dist/es/value/use-time.d.ts +1 -1
  187. package/dist/es/value/use-time.mjs +1 -2
  188. package/dist/es/value/use-transform.mjs +1 -1
  189. package/dist/es/value/use-velocity.mjs +2 -3
  190. package/package.json +3 -4
  191. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +0 -247
  192. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -102
  193. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +0 -281
  194. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +0 -108
  195. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +0 -32
  196. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +0 -14
  197. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +0 -22
  198. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -10
  199. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -6
  200. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/scroll/index.mjs +0 -70
  201. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -9
  202. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -18
  203. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/measure.mjs +0 -15
  204. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -12
  205. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -11
  206. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -10
  207. package/dist/es/external/.pnpm/framer-motion@12.5.0/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -9
  208. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/controls/Group.mjs +0 -9
  209. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +0 -6
  210. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs +0 -6
  211. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +0 -81
  212. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs +0 -7
  213. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs +0 -37
  214. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/press/index.mjs +0 -74
  215. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/gestures/utils/capture-pointer.mjs +0 -12
  216. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/flags.mjs +0 -6
  217. package/dist/es/external/.pnpm/motion-dom@12.5.0/external/motion-dom/dist/es/utils/supports/memo.mjs +0 -13
  218. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs +0 -13
  219. package/dist/es/external/.pnpm/motion-utils@12.5.0/external/motion-utils/dist/es/global-config.mjs +0 -7
  220. package/dist/es/render/utils/setters.d.ts +0 -3
  221. package/dist/es/utils/time-conversion.d.ts +0 -8
  222. package/dist/es/utils/time-conversion.mjs +0 -8
  223. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  224. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  225. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  226. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  227. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  228. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  229. package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +2 -2
  230. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  231. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  232. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  233. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  234. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  235. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  236. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  237. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  238. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  239. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  240. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  241. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  242. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  243. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  244. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  245. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  246. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  247. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  248. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  249. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  250. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  251. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  252. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  253. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  254. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  255. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  256. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/store.mjs +0 -0
  257. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  258. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  259. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  260. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  261. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  262. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  263. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  264. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  265. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  266. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  267. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  268. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  269. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  270. /package/dist/es/external/.pnpm/{framer-motion@12.5.0 → framer-motion@12.10.4}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  271. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/inertia.mjs +0 -0
  272. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/generators/spring/defaults.mjs +0 -0
  273. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
  274. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/default.mjs +0 -0
  275. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/animation/keyframes}/offsets/time.mjs +0 -0
  276. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/animation/utils/is-animatable.mjs +0 -0
  277. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom → motion-dom@12.10.4/external/motion-dom/dist/es/animation}/utils/is-css-variable.mjs +0 -0
  278. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/animation/animators → motion-dom@12.10.4/external/motion-dom/dist/es/animation/waapi}/utils/accelerated-values.mjs +0 -0
  279. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/microtask.mjs +0 -0
  280. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/frameloop/render-step.mjs +0 -0
  281. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/hover.mjs +0 -0
  282. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +0 -0
  283. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +0 -0
  284. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/press/utils/state.mjs +0 -0
  285. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +0 -0
  286. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +0 -0
  287. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/gestures/utils/setup.mjs +0 -0
  288. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html/utils → motion-dom@12.10.4/external/motion-dom/dist/es/render/dom}/parse-transform.mjs +0 -0
  289. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/html → motion-dom@12.10.4/external/motion-dom/dist/es/render}/utils/keys-position.mjs +0 -0
  290. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/stats/buffer.mjs +0 -0
  291. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/immediate.mjs +0 -0
  292. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/index.mjs +0 -0
  293. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/number.mjs +0 -0
  294. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/utils/mix/visibility.mjs +0 -0
  295. /package/dist/es/external/.pnpm/{motion-dom@12.5.0 → motion-dom@12.10.4}/external/motion-dom/dist/es/utils/supports/linear-easing.mjs +0 -0
  296. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/auto.mjs} +0 -0
  297. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hex.mjs +0 -0
  298. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/color}/hsla-to-rgba.mjs +0 -0
  299. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/hsla.mjs +0 -0
  300. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/index.mjs +0 -0
  301. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/color/utils.mjs +0 -0
  302. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/complex/filter.mjs +0 -0
  303. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types}/test.mjs +0 -0
  304. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/color-regex.mjs +0 -0
  305. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/float-regex.mjs +0 -0
  306. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/render/dom/value-types → motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils}/get-as-type.mjs +0 -0
  307. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/is-nullish.mjs +0 -0
  308. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/sanitize.mjs +0 -0
  309. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-dom@12.10.4/external/motion-dom}/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  310. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/clamp.mjs +0 -0
  311. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/anticipate.mjs +0 -0
  312. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/back.mjs +0 -0
  313. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/circ.mjs +0 -0
  314. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/ease.mjs +0 -0
  315. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/mirror.mjs +0 -0
  316. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/modifiers/reverse.mjs +0 -0
  317. /package/dist/es/external/.pnpm/{motion-dom@12.5.0/external/motion-dom/dist/es → motion-utils@12.9.4/external/motion-utils/dist/es/easing}/utils/is-bezier-definition.mjs +0 -0
  318. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion → motion-utils@12.9.4/external/motion-utils}/dist/es/easing/utils/is-easing-array.mjs +0 -0
  319. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-numerical-string.mjs +0 -0
  320. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/is-zero-value-string.mjs +0 -0
  321. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/memo.mjs +0 -0
  322. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/noop.mjs +0 -0
  323. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/pipe.mjs +0 -0
  324. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/progress.mjs +0 -0
  325. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/subscription-manager.mjs +0 -0
  326. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/time-conversion.mjs +0 -0
  327. /package/dist/es/external/.pnpm/{motion-utils@12.5.0 → motion-utils@12.9.4}/external/motion-utils/dist/es/velocity-per-second.mjs +0 -0
  328. /package/dist/es/external/.pnpm/{framer-motion@12.5.0/external/framer-motion/dist/es/utils → motion-utils@12.9.4/external/motion-utils/dist/es}/wrap.mjs +0 -0
@@ -1,5 +1,4 @@
1
- import "../../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { resolveElements } from "../../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/utils/resolve-elements.mjs";
1
+ import { resolveElements } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
3
2
  const thresholds = {
4
3
  some: 0,
5
4
  all: 1
@@ -1,11 +1,11 @@
1
1
  import { measureViewportBox } from "../../projection/utils/measure.mjs";
2
2
  import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
3
- import { isCSSVariableName } from "../dom/utils/is-css-variable.mjs";
4
3
  import { buildHTMLStyles } from "./utils/build-styles.mjs";
5
- import { transformProps } from "./utils/keys-transform.mjs";
6
- import { readTransformValue } from "./utils/parse-transform.mjs";
7
4
  import { renderHTML } from "./utils/render.mjs";
8
5
  import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
6
+ import { transformProps } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
7
+ import { readTransformValue } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/dom/parse-transform.mjs";
8
+ import { isCSSVariableName } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
9
9
  function getComputedStyle(element) {
10
10
  return window.getComputedStyle(element);
11
11
  }
@@ -1,8 +1,8 @@
1
- import { isCSSVariableName } from "../../dom/utils/is-css-variable.mjs";
2
- import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
3
- import { numberValueTypes } from "../../dom/value-types/number.mjs";
4
1
  import { buildTransform } from "./build-transform.mjs";
5
- import { transformProps } from "./keys-transform.mjs";
2
+ import { transformProps } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
3
+ import { isCSSVariableName } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/animation/utils/is-css-variable.mjs";
4
+ import { getValueAsType } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs";
5
+ import { numberValueTypes } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs";
6
6
  function buildHTMLStyles(state, latestValues, transformTemplate) {
7
7
  const { style, vars, transformOrigin } = state;
8
8
  let hasTransform = false;
@@ -1,6 +1,6 @@
1
- import { getValueAsType } from "../../dom/value-types/get-as-type.mjs";
2
- import { numberValueTypes } from "../../dom/value-types/number.mjs";
3
- import { transformPropOrder } from "./keys-transform.mjs";
1
+ import { transformPropOrder } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
2
+ import { getValueAsType } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/utils/get-as-type.mjs";
3
+ import { numberValueTypes } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/number.mjs";
4
4
  const translateAlias = {
5
5
  x: "translateX",
6
6
  y: "translateY",
@@ -5,7 +5,7 @@ function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
5
5
  const { style } = props;
6
6
  const newValues = {};
7
7
  for (const key in style) {
8
- if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== void 0) {
8
+ if (isMotionValue(style[key]) || prevProps.style && isMotionValue(prevProps.style[key]) || isForcedMotionValue(key, props) || ((_a = visualElement == null ? void 0 : visualElement.getValue(key)) == null ? void 0 : _a.liveStyle) !== void 0) {
9
9
  newValues[key] = style[key];
10
10
  }
11
11
  }
@@ -1,27 +1,19 @@
1
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { frame } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
3
1
  import { createBox } from "../../projection/geometry/models.mjs";
4
2
  import { DOMVisualElement } from "../dom/DOMVisualElement.mjs";
5
3
  import { camelToDash } from "../dom/utils/camel-to-dash.mjs";
6
- import { getDefaultValueType } from "../dom/value-types/defaults.mjs";
7
- import { transformProps } from "../html/utils/keys-transform.mjs";
8
4
  import { buildSVGAttrs } from "./utils/build-attrs.mjs";
9
5
  import { camelCaseAttributes } from "./utils/camel-case-attrs.mjs";
10
6
  import { isSVGTag } from "./utils/is-svg-tag.mjs";
11
- import { updateSVGDimensions } from "./utils/measure.mjs";
12
7
  import { renderSVG } from "./utils/render.mjs";
13
8
  import { scrapeMotionValuesFromProps } from "./utils/scrape-motion-values.mjs";
9
+ import { transformProps } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
10
+ import { getDefaultValueType } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/maps/defaults.mjs";
14
11
  class SVGVisualElement extends DOMVisualElement {
15
12
  constructor() {
16
13
  super(...arguments);
17
14
  this.type = "svg";
18
15
  this.isSVGTag = false;
19
16
  this.measureInstanceViewportBox = createBox;
20
- this.updateDimensions = () => {
21
- if (this.current && !this.renderState.dimensions) {
22
- updateSVGDimensions(this.current, this.renderState);
23
- }
24
- };
25
17
  }
26
18
  getBaseTargetFromProps(props, key) {
27
19
  return props[key];
@@ -37,13 +29,8 @@ class SVGVisualElement extends DOMVisualElement {
37
29
  scrapeMotionValuesFromProps(props, prevProps, visualElement) {
38
30
  return scrapeMotionValuesFromProps(props, prevProps, visualElement);
39
31
  }
40
- onBindTransform() {
41
- if (this.current && !this.renderState.dimensions) {
42
- frame.postRender(this.updateDimensions);
43
- }
44
- }
45
32
  build(renderState, latestValues, props) {
46
- buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate);
33
+ buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate, props.style);
47
34
  }
48
35
  renderInstance(instance, renderState, styleProp, projection) {
49
36
  renderSVG(instance, renderState, styleProp, projection);
@@ -1,18 +1,15 @@
1
1
  import { buildHTMLStyles } from "../../html/utils/build-styles.mjs";
2
2
  import { buildSVGPath } from "./path.mjs";
3
- import { calcSVGTransformOrigin } from "./transform-origin.mjs";
4
3
  function buildSVGAttrs(state, {
5
4
  attrX,
6
5
  attrY,
7
6
  attrScale,
8
- originX,
9
- originY,
10
7
  pathLength,
11
8
  pathSpacing = 1,
12
9
  pathOffset = 0,
13
10
  // This is object creation, which we try to avoid per-frame.
14
11
  ...latest
15
- }, isSVGTag, transformTemplate) {
12
+ }, isSVGTag, transformTemplate, styleProp) {
16
13
  buildHTMLStyles(state, latest, transformTemplate);
17
14
  if (isSVGTag) {
18
15
  if (state.style.viewBox) {
@@ -22,14 +19,18 @@ function buildSVGAttrs(state, {
22
19
  }
23
20
  state.attrs = state.style;
24
21
  state.style = {};
25
- const { attrs, style, dimensions } = state;
22
+ const { attrs, style } = state;
26
23
  if (attrs.transform) {
27
- if (dimensions)
28
- style.transform = attrs.transform;
24
+ style.transform = attrs.transform;
29
25
  delete attrs.transform;
30
26
  }
31
- if (dimensions && (originX !== void 0 || originY !== void 0 || style.transform)) {
32
- style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== void 0 ? originX : 0.5, originY !== void 0 ? originY : 0.5);
27
+ if (style.transform || attrs.transformOrigin) {
28
+ style.transformOrigin = attrs.transformOrigin ?? "50% 50%";
29
+ delete attrs.transformOrigin;
30
+ }
31
+ if (style.transform) {
32
+ style.transformBox = (styleProp == null ? void 0 : styleProp.transformBox) ?? "fill-box";
33
+ delete attrs.transformBox;
33
34
  }
34
35
  if (attrX !== void 0)
35
36
  attrs.x = attrX;
@@ -1,4 +1,4 @@
1
- import { px } from "../../../value/types/numbers/units.mjs";
1
+ import { px } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/types/numbers/units.mjs";
2
2
  const dashKeys = {
3
3
  offset: "stroke-dashoffset",
4
4
  array: "stroke-dasharray"
@@ -1,6 +1,6 @@
1
1
  import { isMotionValue } from "../../../value/utils/is-motion-value.mjs";
2
- import { transformPropOrder } from "../../html/utils/keys-transform.mjs";
3
2
  import { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from "../../html/utils/scrape-motion-values.mjs";
3
+ import { transformPropOrder } from "../../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/render/utils/keys-transform.mjs";
4
4
  function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
5
5
  const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);
6
6
  for (const key in props) {
@@ -1,6 +1,5 @@
1
- import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/array.mjs";
2
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
3
1
  import { compareByDepth } from "./compare-by-depth.mjs";
2
+ import { addUniqueItem, removeItem } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/array.mjs";
4
3
  class FlatTree {
5
4
  constructor() {
6
5
  this.children = [];
@@ -1,16 +1,11 @@
1
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { warnOnce } from "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/warn-once.mjs";
3
- import { motionValue } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
4
1
  import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
2
+ import { motionValue } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
5
3
  function updateMotionValuesFromProps(element, next, prev) {
6
4
  for (const key in next) {
7
5
  const nextValue = next[key];
8
6
  const prevValue = prev[key];
9
7
  if (isMotionValue(nextValue)) {
10
8
  element.addValue(key, nextValue);
11
- if (process.env.NODE_ENV === "development") {
12
- warnOnce(nextValue.version === "12.5.0", `Attempting to mix Motion versions ${nextValue.version} with 12.5.0 may not work as expected.`);
13
- }
14
9
  } else if (isMotionValue(prevValue)) {
15
10
  element.addValue(key, motionValue(nextValue, { owner: element }));
16
11
  } else if (prevValue !== nextValue) {
@@ -1,6 +1,6 @@
1
1
  function getValueState(visualElement) {
2
2
  const state = [{}, {}];
3
- visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
3
+ visualElement == null ? void 0 : visualElement.values.forEach((value, key) => {
4
4
  state[0][key] = value.get();
5
5
  state[1][key] = value.getVelocity();
6
6
  });
@@ -1,7 +1,6 @@
1
- import "../../../../../../../motion-utils@12.5.0/external/motion-utils/dist/es/errors.mjs";
2
- import { motionValue } from "../../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/value/index.mjs";
3
- import { resolveFinalValueInKeyframes } from "../../utils/resolve-value.mjs";
1
+ import { isKeyframesTarget } from "../../animation/utils/is-keyframes-target.mjs";
4
2
  import { resolveVariant } from "./resolve-dynamic-variants.mjs";
3
+ import { motionValue } from "../../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/value/index.mjs";
5
4
  function setMotionValue(visualElement, key, value) {
6
5
  if (visualElement.hasValue(key)) {
7
6
  visualElement.getValue(key).set(value);
@@ -9,6 +8,9 @@ function setMotionValue(visualElement, key, value) {
9
8
  visualElement.addValue(key, motionValue(value));
10
9
  }
11
10
  }
11
+ function resolveFinalValueInKeyframes(v) {
12
+ return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
13
+ }
12
14
  function setTarget(visualElement, definition) {
13
15
  const resolved = resolveVariant(visualElement, definition);
14
16
  let { transitionEnd = {}, transition = {}, ...target } = resolved || {};
@@ -1,7 +1,6 @@
1
- import "../../../../../../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 { frame, cancelFrame } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/frame.mjs";
4
- import { time } from "../../../../../../motion-dom@12.5.0/external/motion-dom/dist/es/frameloop/sync-time.mjs";
1
+ import { time } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/sync-time.mjs";
2
+ import { frame, cancelFrame } from "../../../../../../motion-dom@12.10.4/external/motion-dom/dist/es/frameloop/frame.mjs";
3
+ import { secondsToMilliseconds } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/time-conversion.mjs";
5
4
  function delay(callback, timeout) {
6
5
  const start = time.now();
7
6
  const checkElapsed = ({ timestamp }) => {
@@ -11,7 +10,7 @@ function delay(callback, timeout) {
11
10
  callback(elapsed - timeout);
12
11
  }
13
12
  };
14
- frame.read(checkElapsed, true);
13
+ frame.setup(checkElapsed, true);
15
14
  return () => cancelFrame(checkElapsed);
16
15
  }
17
16
  function delayInSeconds(callback, timeout) {
@@ -0,0 +1,15 @@
1
+ import { isWillChangeMotionValue } from "./is.mjs";
2
+ import { MotionGlobalConfig } from "../../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs";
3
+ function addValueToWillChange(visualElement, key) {
4
+ const willChange = visualElement.getValue("willChange");
5
+ if (isWillChangeMotionValue(willChange)) {
6
+ return willChange.add(key);
7
+ } else if (!willChange && MotionGlobalConfig.WillChange) {
8
+ const newWillChange = new MotionGlobalConfig.WillChange("auto");
9
+ visualElement.addValue("willChange", newWillChange);
10
+ newWillChange.add(key);
11
+ }
12
+ }
13
+ export {
14
+ addValueToWillChange
15
+ };
@@ -0,0 +1,7 @@
1
+ import { isMotionValue } from "./is-motion-value.mjs";
2
+ function resolveMotionValue(value) {
3
+ return isMotionValue(value) ? value.get() : value;
4
+ }
5
+ export {
6
+ resolveMotionValue
7
+ };
@@ -0,0 +1,138 @@
1
+ import { time } from "../frameloop/sync-time.mjs";
2
+ import { JSAnimation } from "./JSAnimation.mjs";
3
+ import { getFinalKeyframe } from "./keyframes/get-final.mjs";
4
+ import { KeyframeResolver, flushKeyframeResolvers } from "./keyframes/KeyframesResolver.mjs";
5
+ import { NativeAnimationExtended } from "./NativeAnimationExtended.mjs";
6
+ import { canAnimate } from "./utils/can-animate.mjs";
7
+ import { WithPromise } from "./utils/WithPromise.mjs";
8
+ import { supportsBrowserAnimation } from "./waapi/supports/waapi.mjs";
9
+ import { MotionGlobalConfig } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/global-config.mjs";
10
+ import { noop } from "../../../../../../motion-utils@12.9.4/external/motion-utils/dist/es/noop.mjs";
11
+ const MAX_RESOLVE_DELAY = 40;
12
+ class AsyncMotionValueAnimation extends WithPromise {
13
+ constructor({ autoplay = true, delay = 0, type = "keyframes", repeat = 0, repeatDelay = 0, repeatType = "loop", keyframes, name, motionValue, element, ...options }) {
14
+ var _a;
15
+ super();
16
+ this.stop = () => {
17
+ var _a2, _b;
18
+ if (this._animation) {
19
+ this._animation.stop();
20
+ (_a2 = this.stopTimeline) == null ? void 0 : _a2.call(this);
21
+ }
22
+ (_b = this.keyframeResolver) == null ? void 0 : _b.cancel();
23
+ };
24
+ this.createdAt = time.now();
25
+ const optionsWithDefaults = {
26
+ autoplay,
27
+ delay,
28
+ type,
29
+ repeat,
30
+ repeatDelay,
31
+ repeatType,
32
+ name,
33
+ motionValue,
34
+ element,
35
+ ...options
36
+ };
37
+ const KeyframeResolver$1 = (element == null ? void 0 : element.KeyframeResolver) || KeyframeResolver;
38
+ this.keyframeResolver = new KeyframeResolver$1(keyframes, (resolvedKeyframes, finalKeyframe, forced) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe, optionsWithDefaults, !forced), name, motionValue, element);
39
+ (_a = this.keyframeResolver) == null ? void 0 : _a.scheduleResolve();
40
+ }
41
+ onKeyframesResolved(keyframes, finalKeyframe, options, sync) {
42
+ this.keyframeResolver = void 0;
43
+ const { name, type, velocity, delay, isHandoff, onUpdate } = options;
44
+ this.resolvedAt = time.now();
45
+ if (!canAnimate(keyframes, name, type, velocity)) {
46
+ if (MotionGlobalConfig.instantAnimations || !delay) {
47
+ onUpdate == null ? void 0 : onUpdate(getFinalKeyframe(keyframes, options, finalKeyframe));
48
+ }
49
+ keyframes[0] = keyframes[keyframes.length - 1];
50
+ options.duration = 0;
51
+ options.repeat = 0;
52
+ }
53
+ const startTime = sync ? !this.resolvedAt ? this.createdAt : this.resolvedAt - this.createdAt > MAX_RESOLVE_DELAY ? this.resolvedAt : this.createdAt : void 0;
54
+ const resolvedOptions = {
55
+ startTime,
56
+ finalKeyframe,
57
+ ...options,
58
+ keyframes
59
+ };
60
+ const animation = !isHandoff && supportsBrowserAnimation(resolvedOptions) ? new NativeAnimationExtended({
61
+ ...resolvedOptions,
62
+ element: resolvedOptions.motionValue.owner.current
63
+ }) : new JSAnimation(resolvedOptions);
64
+ animation.finished.then(() => this.notifyFinished()).catch(noop);
65
+ if (this.pendingTimeline) {
66
+ this.stopTimeline = animation.attachTimeline(this.pendingTimeline);
67
+ this.pendingTimeline = void 0;
68
+ }
69
+ this._animation = animation;
70
+ }
71
+ get finished() {
72
+ if (!this._animation) {
73
+ return this._finished;
74
+ } else {
75
+ return this.animation.finished;
76
+ }
77
+ }
78
+ then(onResolve, _onReject) {
79
+ return this.finished.finally(onResolve).then(() => {
80
+ });
81
+ }
82
+ get animation() {
83
+ var _a;
84
+ if (!this._animation) {
85
+ (_a = this.keyframeResolver) == null ? void 0 : _a.resume();
86
+ flushKeyframeResolvers();
87
+ }
88
+ return this._animation;
89
+ }
90
+ get duration() {
91
+ return this.animation.duration;
92
+ }
93
+ get time() {
94
+ return this.animation.time;
95
+ }
96
+ set time(newTime) {
97
+ this.animation.time = newTime;
98
+ }
99
+ get speed() {
100
+ return this.animation.speed;
101
+ }
102
+ get state() {
103
+ return this.animation.state;
104
+ }
105
+ set speed(newSpeed) {
106
+ this.animation.speed = newSpeed;
107
+ }
108
+ get startTime() {
109
+ return this.animation.startTime;
110
+ }
111
+ attachTimeline(timeline) {
112
+ if (this._animation) {
113
+ this.stopTimeline = this.animation.attachTimeline(timeline);
114
+ } else {
115
+ this.pendingTimeline = timeline;
116
+ }
117
+ return () => this.stop();
118
+ }
119
+ play() {
120
+ this.animation.play();
121
+ }
122
+ pause() {
123
+ this.animation.pause();
124
+ }
125
+ complete() {
126
+ this.animation.complete();
127
+ }
128
+ cancel() {
129
+ var _a;
130
+ if (this._animation) {
131
+ this.animation.cancel();
132
+ }
133
+ (_a = this.keyframeResolver) == null ? void 0 : _a.cancel();
134
+ }
135
+ }
136
+ export {
137
+ AsyncMotionValueAnimation
138
+ };
@@ -1,11 +1,10 @@
1
- import { supportsScrollTimeline } from "../../utils/supports/scroll-timeline.mjs";
2
- class BaseGroupPlaybackControls {
1
+ class GroupAnimation {
3
2
  constructor(animations) {
4
3
  this.stop = () => this.runAll("stop");
5
4
  this.animations = animations.filter(Boolean);
6
5
  }
7
6
  get finished() {
8
- return Promise.all(this.animations.map((animation) => "finished" in animation ? animation.finished : animation));
7
+ return Promise.all(this.animations.map((animation) => animation.finished));
9
8
  }
10
9
  /**
11
10
  * TODO: Filter out cancelled or stopped animations before returning
@@ -18,14 +17,8 @@ class BaseGroupPlaybackControls {
18
17
  this.animations[i][propName] = newValue;
19
18
  }
20
19
  }
21
- attachTimeline(timeline, fallback) {
22
- const subscriptions = this.animations.map((animation) => {
23
- if (supportsScrollTimeline() && animation.attachTimeline) {
24
- return animation.attachTimeline(timeline);
25
- } else if (typeof fallback === "function") {
26
- return fallback(animation);
27
- }
28
- });
20
+ attachTimeline(timeline) {
21
+ const subscriptions = this.animations.map((animation) => animation.attachTimeline(timeline));
29
22
  return () => {
30
23
  subscriptions.forEach((cancel, i) => {
31
24
  cancel && cancel();
@@ -45,6 +38,9 @@ class BaseGroupPlaybackControls {
45
38
  set speed(speed) {
46
39
  this.setAll("speed", speed);
47
40
  }
41
+ get state() {
42
+ return this.getAll("state");
43
+ }
48
44
  get startTime() {
49
45
  return this.getAll("startTime");
50
46
  }
@@ -58,9 +54,6 @@ class BaseGroupPlaybackControls {
58
54
  runAll(methodName) {
59
55
  this.animations.forEach((controls) => controls[methodName]());
60
56
  }
61
- flatten() {
62
- this.runAll("flatten");
63
- }
64
57
  play() {
65
58
  this.runAll("play");
66
59
  }
@@ -75,5 +68,5 @@ class BaseGroupPlaybackControls {
75
68
  }
76
69
  }
77
70
  export {
78
- BaseGroupPlaybackControls
71
+ GroupAnimation
79
72
  };
@@ -0,0 +1,10 @@
1
+ import { GroupAnimation } from "./GroupAnimation.mjs";
2
+ class GroupAnimationWithThen extends GroupAnimation {
3
+ then(onResolve, _onReject) {
4
+ return this.finished.finally(onResolve).then(() => {
5
+ });
6
+ }
7
+ }
8
+ export {
9
+ GroupAnimationWithThen
10
+ };