motion-v 0.5.2-beta.1 → 0.6.1

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 (296) hide show
  1. package/dist/cjs/index.js +1788 -1539
  2. package/dist/es/animation/use-animate.mjs +1 -1
  3. package/dist/es/components/LayoutGroup.vue.mjs +2 -7
  4. package/dist/es/components/Motion.vue.mjs +47 -30
  5. package/dist/es/components/Primitive.mjs +14 -6
  6. package/dist/es/components/{AnimatePresence.vue.mjs → animate-presence/AnimatePresence.vue.mjs} +34 -15
  7. package/dist/es/components/{use-pop-layout.mjs → animate-presence/use-pop-layout.mjs} +8 -5
  8. package/dist/es/components/group.mjs +5 -2
  9. package/dist/es/components/presence.mjs +0 -2
  10. package/dist/es/components/utils.mjs +7 -0
  11. package/dist/es/constants/index.mjs +2 -1
  12. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/index.mjs +2 -1
  13. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +2 -1
  14. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
  15. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +7 -7
  16. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +8 -8
  17. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +2 -2
  18. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +29 -89
  19. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +4 -4
  20. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +2 -1
  21. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +2 -1
  22. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +2 -1
  23. package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +6 -0
  24. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/find.mjs +2 -2
  25. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/index.mjs +7 -6
  26. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +6 -5
  27. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +6 -5
  28. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/create.mjs +8 -8
  29. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +1 -1
  30. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -2
  31. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/map.mjs +6 -6
  32. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/frame.mjs +2 -2
  33. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +1 -1
  34. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/animation/mix-values.mjs +3 -3
  35. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/create-projection-node.mjs +15 -15
  36. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/VisualElement.mjs +12 -12
  37. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +4 -3
  38. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +2 -1
  39. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/index.mjs +4 -4
  40. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/info.mjs +2 -1
  41. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +6 -5
  42. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
  43. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +1 -14
  44. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/viewport/index.mjs +3 -2
  45. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +6 -6
  46. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +2 -2
  47. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +1 -1
  48. package/dist/es/external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/render/html/utils/keys-position.mjs +13 -0
  49. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +6 -6
  50. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -1
  51. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
  52. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/delay.mjs +2 -1
  53. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/interpolate.mjs +8 -5
  54. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/color.mjs +1 -1
  55. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
  56. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/fill.mjs +2 -1
  57. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/index.mjs +2 -2
  58. package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/GroupPlaybackControls.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/BaseGroup.mjs} +6 -6
  59. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/Group.mjs +9 -0
  60. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +17 -0
  61. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs +81 -0
  62. package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi → motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils}/easing.mjs +3 -3
  63. package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators → motion-dom@11.16.4/external/motion-dom/dist/es/animation}/waapi/utils/linear.mjs +2 -1
  64. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/drag/state/is-active.mjs +11 -0
  65. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/hover.mjs +30 -0
  66. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/index.mjs +51 -0
  67. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +13 -0
  68. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +32 -0
  69. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/press/utils/state.mjs +4 -0
  70. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +12 -0
  71. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +10 -0
  72. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/gestures/utils/setup.mjs +15 -0
  73. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs +17 -0
  74. package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/linear-easing.mjs} +1 -1
  75. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/memo.mjs +13 -0
  76. package/dist/es/external/.pnpm/motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +6 -0
  77. package/dist/es/features/gestures/drag/VisualElementDragControls.mjs +2 -2
  78. package/dist/es/features/gestures/drag/index.mjs +2 -2
  79. package/dist/es/features/gestures/hover/index.mjs +3 -2
  80. package/dist/es/features/gestures/in-view/index.mjs +2 -2
  81. package/dist/es/features/gestures/pan/PanSession.mjs +3 -3
  82. package/dist/es/features/gestures/pan/index.mjs +3 -3
  83. package/dist/es/features/gestures/press/index.mjs +3 -2
  84. package/dist/es/features/layout/config.mjs +2 -2
  85. package/dist/es/features/layout/layout.mjs +19 -10
  86. package/dist/es/features/layout/projection.mjs +19 -3
  87. package/dist/es/features/svg.mjs +1 -1
  88. package/dist/es/index.mjs +37 -37
  89. package/dist/es/state/animate-variants-children.mjs +6 -4
  90. package/dist/es/state/create-visual-element.mjs +2 -2
  91. package/dist/es/state/motion-state.mjs +59 -26
  92. package/dist/es/state/utils.mjs +0 -9
  93. package/dist/es/utils/use-animation-frame.mjs +1 -1
  94. package/dist/es/utils/use-in-view.mjs +1 -1
  95. package/dist/es/value/use-combine-values.mjs +2 -2
  96. package/dist/es/value/use-computed.mjs +1 -1
  97. package/dist/es/value/use-scroll.mjs +2 -2
  98. package/dist/es/value/use-spring.mjs +3 -3
  99. package/dist/es/value/use-time.mjs +1 -1
  100. package/dist/es/value/use-transform.mjs +1 -1
  101. package/dist/es/value/use-velocity.mjs +2 -2
  102. package/dist/src/animation/types.d.ts +0 -12
  103. package/dist/src/components/LayoutGroup.d.ts +1 -10
  104. package/dist/src/components/Motion.d.ts +1 -1
  105. package/dist/src/components/Primitive.d.ts +14 -5
  106. package/dist/src/components/Slot.d.ts +1 -1
  107. package/dist/src/components/animate-presence/AnimatePresence.d.ts +21 -0
  108. package/dist/src/components/animate-presence/index.d.ts +2 -0
  109. package/dist/src/components/{type.d.ts → animate-presence/types.d.ts} +2 -0
  110. package/dist/src/components/{use-pop-layout.d.ts → animate-presence/use-pop-layout.d.ts} +3 -2
  111. package/dist/src/components/animate-presence/use-presence.d.ts +2 -0
  112. package/dist/src/components/context.d.ts +1 -0
  113. package/dist/src/components/group.d.ts +1 -0
  114. package/dist/src/components/hooks/use-motion-elm.d.ts +13 -0
  115. package/dist/src/components/index.d.ts +2 -0
  116. package/dist/src/components/motion-config/MotionConfig.d.ts +2 -23
  117. package/dist/src/components/presence.d.ts +3 -5
  118. package/dist/src/components/utils.d.ts +7 -0
  119. package/dist/src/features/gestures/base.d.ts +0 -2
  120. package/dist/src/index.d.ts +1 -3
  121. package/dist/src/state/animate-variants-children.d.ts +1 -1
  122. package/dist/src/state/event.d.ts +1 -1
  123. package/dist/src/state/motion-state.d.ts +9 -6
  124. package/dist/src/state/utils.d.ts +2 -2
  125. package/dist/src/types/index.d.ts +0 -1
  126. package/dist/src/types/state.d.ts +8 -5
  127. package/dist/src/types/transform.d.ts +0 -24
  128. package/dist/src/utils/use-dom-ref.d.ts +2 -1
  129. package/dist/src/utils/use-in-view.d.ts +1 -1
  130. package/package.json +10 -5
  131. package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +0 -12
  132. package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +0 -5
  133. package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +0 -14
  134. package/dist/es/external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/render/dom/scroll/supports.mjs +0 -5
  135. package/dist/es/state/schedule.mjs +0 -30
  136. package/dist/src/animation/animation-controls.d.ts +0 -7
  137. package/dist/src/components/AnimatePresence.d.ts +0 -46
  138. package/dist/src/state/schedule.d.ts +0 -3
  139. package/dist/es/components/{AnimatePresence.vue2.mjs → animate-presence/AnimatePresence.vue2.mjs} +0 -0
  140. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/sequence.mjs +0 -0
  141. package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animate/single-value.mjs +1 -1
  142. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +0 -0
  143. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +0 -0
  144. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +0 -0
  145. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +0 -0
  146. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +0 -0
  147. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/inertia.mjs +0 -0
  148. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/keyframes.mjs +0 -0
  149. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/spring/defaults.mjs +0 -0
  150. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +0 -0
  151. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +0 -0
  152. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +0 -0
  153. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +0 -0
  154. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +0 -0
  155. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +0 -0
  156. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs +0 -0
  157. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +0 -0
  158. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +0 -0
  159. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +0 -0
  160. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +0 -0
  161. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +0 -0
  162. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +0 -0
  163. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-none.mjs +0 -0
  164. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +0 -0
  165. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/animation/utils/stagger.mjs +0 -0
  166. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/anticipate.mjs +0 -0
  167. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/back.mjs +0 -0
  168. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/circ.mjs +0 -0
  169. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/ease.mjs +0 -0
  170. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +0 -0
  171. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +0 -0
  172. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/steps.mjs +0 -0
  173. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +0 -0
  174. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +0 -0
  175. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/events/add-dom-event.mjs +0 -0
  176. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/batcher.mjs +0 -0
  177. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -0
  178. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/microtask.mjs +0 -0
  179. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/render-step.mjs +0 -0
  180. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/frameloop/sync-time.mjs +0 -0
  181. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/motion/features/definitions.mjs +0 -0
  182. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/conversion.mjs +0 -0
  183. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/copy.mjs +0 -0
  184. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-apply.mjs +0 -0
  185. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-calc.mjs +0 -0
  186. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/delta-remove.mjs +0 -0
  187. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/models.mjs +0 -0
  188. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/geometry/utils.mjs +0 -0
  189. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +0 -0
  190. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +0 -0
  191. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/node/state.mjs +0 -0
  192. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/shared/stack.mjs +0 -0
  193. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +0 -0
  194. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +0 -0
  195. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +0 -0
  196. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/styles/transform.mjs +0 -0
  197. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/each-axis.mjs +0 -0
  198. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/has-transform.mjs +0 -0
  199. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/projection/utils/measure.mjs +0 -0
  200. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +0 -0
  201. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +0 -0
  202. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/resize/index.mjs +0 -0
  203. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +0 -0
  204. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +0 -0
  205. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +0 -0
  206. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +0 -0
  207. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +0 -0
  208. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +0 -0
  209. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/scroll/track.mjs +0 -0
  210. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +0 -0
  211. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +0 -0
  212. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +0 -0
  213. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +0 -0
  214. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +0 -0
  215. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +0 -0
  216. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/find.mjs +0 -0
  217. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +0 -0
  218. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +0 -0
  219. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/number.mjs +0 -0
  220. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/test.mjs +0 -0
  221. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +0 -0
  222. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +0 -0
  223. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +0 -0
  224. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/render/html/utils/transform.mjs → framer-motion@11.16.6/external/framer-motion/dist/es/render/html/utils/keys-transform.mjs} +0 -0
  225. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +0 -0
  226. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/render.mjs +0 -0
  227. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +0 -0
  228. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +0 -0
  229. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/store.mjs +0 -0
  230. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +0 -0
  231. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +0 -0
  232. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +0 -0
  233. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/path.mjs +0 -0
  234. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/render.mjs +0 -0
  235. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +0 -0
  236. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +0 -0
  237. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/compare-by-depth.mjs +0 -0
  238. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/flat-tree.mjs +0 -0
  239. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +0 -0
  240. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +0 -0
  241. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +0 -0
  242. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +0 -0
  243. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/setters.mjs +0 -0
  244. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/render/utils/variant-props.mjs +0 -0
  245. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/GlobalConfig.mjs +0 -0
  246. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/array.mjs +0 -0
  247. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/clamp.mjs +0 -0
  248. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/distance.mjs +0 -0
  249. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +0 -0
  250. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-browser.mjs +0 -0
  251. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-numerical-string.mjs +0 -0
  252. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +0 -0
  253. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/immediate.mjs +0 -0
  254. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/index.mjs +0 -0
  255. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/number.mjs +0 -0
  256. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/mix/visibility.mjs +0 -0
  257. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/default.mjs +0 -0
  258. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/offsets/time.mjs +0 -0
  259. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/pipe.mjs +0 -0
  260. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +0 -0
  261. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +0 -0
  262. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/resolve-value.mjs +0 -0
  263. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/subscription-manager.mjs +0 -0
  264. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/transform.mjs +0 -0
  265. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/velocity-per-second.mjs +0 -0
  266. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/warn-once.mjs +0 -0
  267. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/utils/wrap.mjs +0 -0
  268. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/hex.mjs +0 -0
  269. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/hsla.mjs +0 -0
  270. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/index.mjs +0 -0
  271. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/rgba.mjs +0 -0
  272. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/color/utils.mjs +0 -0
  273. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/complex/filter.mjs +0 -0
  274. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/complex/index.mjs +0 -0
  275. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/numbers/index.mjs +0 -0
  276. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/numbers/units.mjs +0 -0
  277. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +0 -0
  278. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +0 -0
  279. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +0 -0
  280. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +0 -0
  281. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +0 -0
  282. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +0 -0
  283. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/use-will-change/is.mjs +0 -0
  284. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +0 -0
  285. /package/dist/es/external/.pnpm/{framer-motion@11.15.0 → framer-motion@11.16.6}/external/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +0 -0
  286. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/generators/utils/calc-duration.mjs +0 -0
  287. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/generators/utils/is-generator.mjs +0 -0
  288. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion → motion-dom@11.16.4/external/motion-dom}/dist/es/animation/utils/get-value-transition.mjs +0 -0
  289. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators → motion-dom@11.16.4/external/motion-dom/dist/es/animation}/waapi/utils/attach-timeline.mjs +0 -0
  290. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/easing → motion-dom@11.16.4/external/motion-dom/dist/es}/utils/is-bezier-definition.mjs +0 -0
  291. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs → motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/flags.mjs} +0 -0
  292. /package/dist/es/external/.pnpm/{motion-utils@11.14.3 → motion-utils@11.16.0}/external/motion-utils/dist/es/errors.mjs +0 -0
  293. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/memo.mjs +0 -0
  294. /package/dist/es/external/.pnpm/{motion-utils@11.14.3 → motion-utils@11.16.0}/external/motion-utils/dist/es/noop.mjs +0 -0
  295. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/progress.mjs +0 -0
  296. /package/dist/es/external/.pnpm/{framer-motion@11.15.0/external/framer-motion/dist/es/utils → motion-utils@11.16.0/external/motion-utils/dist/es}/time-conversion.mjs +0 -0
@@ -1,5 +1,5 @@
1
1
  import { ref, onUnmounted } from "vue";
2
- import { createScopedAnimate } from "../external/.pnpm/framer-motion@11.15.0/external/framer-motion/dist/es/animation/animate/index.mjs";
2
+ import { createScopedAnimate } from "../external/.pnpm/framer-motion@11.16.6/external/framer-motion/dist/es/animation/animate/index.mjs";
3
3
  function useAnimate() {
4
4
  const dom = ref(null);
5
5
  const domProxy = new Proxy(dom, {
@@ -1,4 +1,4 @@
1
- import { defineComponent, onUpdated, onBeforeUpdate, renderSlot, unref } from "vue";
1
+ import { defineComponent, renderSlot, unref } from "vue";
2
2
  import { useLayoutGroupProvider } from "./use-layout-group.mjs";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "LayoutGroup",
@@ -8,12 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  },
9
9
  setup(__props) {
10
10
  const props = __props;
11
- const { forceRender, key, group } = useLayoutGroupProvider(props);
12
- onUpdated(() => {
13
- });
14
- onBeforeUpdate(() => {
15
- group.dirty();
16
- });
11
+ const { forceRender, key } = useLayoutGroupProvider(props);
17
12
  return (_ctx, _cache) => {
18
13
  return renderSlot(_ctx.$slots, "default", {
19
14
  renderKey: unref(key),
@@ -1,10 +1,10 @@
1
- import { defineComponent, mergeDefaults, ref, useAttrs, getCurrentInstance, onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onBeforeUpdate, onUpdated, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, mergeDefaults, useAttrs, getCurrentInstance, onBeforeMount, onMounted, onBeforeUnmount, onUnmounted, onBeforeUpdate, onUpdated, ref, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
2
2
  import { injectMotion, injectLayoutGroup, provideMotion } from "./context.mjs";
3
3
  import { convertSvgStyleToAttributes, createStyles } from "../state/style.mjs";
4
4
  import { Primitive } from "./Primitive.mjs";
5
5
  import { MotionState } from "../state/motion-state.mjs";
6
6
  import { injectAnimatePresence } from "./presence.mjs";
7
- import { getMotionElement } from "./utils.mjs";
7
+ import { getMotionElement, checkMotionIsHidden } from "./utils.mjs";
8
8
  import { useMotionConfig } from "./motion-config/context.mjs";
9
9
  import { isMotionValue } from "../utils/motion-value.mjs";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -27,6 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  transition: {},
28
28
  layoutGroup: {},
29
29
  motionConfig: {},
30
+ onAnimationComplete: { type: Function },
31
+ onUpdate: { type: Function },
30
32
  layout: { type: [Boolean, String] },
31
33
  layoutId: {},
32
34
  layoutScroll: { type: Boolean },
@@ -80,22 +82,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
82
  dragElastic: 0.2,
81
83
  dragMomentum: true,
82
84
  whileDrag: void 0,
83
- crossfade: void 0
85
+ crossfade: true
84
86
  }),
85
87
  setup(__props) {
86
88
  const props = __props;
87
- const { initial: presenceInitial, safeUnmount } = injectAnimatePresence({ initial: ref(void 0), safeUnmount: () => true });
89
+ const animatePresenceContext = injectAnimatePresence({});
88
90
  const parentState = injectMotion(null);
89
91
  const attrs = useAttrs();
90
92
  const layoutGroup = injectLayoutGroup({});
91
93
  const config = useMotionConfig();
92
- const state = new MotionState(
93
- {
94
+ function getLayoutId() {
95
+ if (layoutGroup.id && props.layoutId)
96
+ return `${layoutGroup.id}-${props.layoutId}`;
97
+ return props.layoutId || void 0;
98
+ }
99
+ function getMotionProps() {
100
+ return {
94
101
  ...attrs,
95
102
  ...props,
103
+ layoutId: getLayoutId(),
104
+ transition: props.transition ?? config.value.transition,
96
105
  layoutGroup,
97
- motionConfig: config.value
98
- },
106
+ motionConfig: config.value,
107
+ initial: animatePresenceContext.initial === false ? animatePresenceContext.initial : props.initial === true ? void 0 : props.initial
108
+ };
109
+ }
110
+ const state = new MotionState(
111
+ getMotionProps(),
99
112
  parentState
100
113
  );
101
114
  provideMotion(state);
@@ -104,29 +117,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
117
  state.beforeMount();
105
118
  });
106
119
  onMounted(() => {
107
- state.mount(getMotionElement(instance.$el), {
108
- ...attrs,
109
- ...props,
110
- transition: props.transition ?? config.value.transition,
111
- layoutGroup,
112
- motionConfig: config.value,
113
- initial: presenceInitial.value === false ? presenceInitial.value : props.initial === true ? void 0 : props.initial
114
- });
120
+ state.mount(getMotionElement(instance.$el), getMotionProps(), checkMotionIsHidden(instance));
115
121
  });
116
122
  onBeforeUnmount(() => state.beforeUnmount());
117
123
  onUnmounted(() => {
118
- if (safeUnmount(getMotionElement(instance.$el)))
124
+ const el = getMotionElement(instance.$el);
125
+ if (!(el == null ? void 0 : el.isConnected)) {
119
126
  state.unmount();
127
+ }
128
+ });
129
+ onBeforeUpdate(() => {
130
+ state.beforeUpdate();
120
131
  });
121
- onBeforeUpdate(() => state.beforeUpdate());
122
132
  onUpdated(() => {
123
- state.update({
124
- ...attrs,
125
- ...props,
126
- transition: props.transition ?? config.value.transition,
127
- motionConfig: config.value,
128
- initial: presenceInitial.value === false ? presenceInitial.value : props.initial === true ? void 0 : props.initial
129
- });
133
+ state.update(getMotionProps());
130
134
  });
131
135
  function getProps() {
132
136
  const isSVG = state.visualElement.type === "svg";
@@ -145,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
149
  Object.assign(styleProps, style);
146
150
  }
147
151
  if (!state.isMounted()) {
148
- Object.assign(styleProps, state.target);
152
+ Object.assign(styleProps, state.baseTarget);
149
153
  }
150
154
  if (props.drag && props.dragListener !== false) {
151
155
  Object.assign(styleProps, {
@@ -162,16 +166,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
162
166
  attrsProps.style = styleProps;
163
167
  return attrsProps;
164
168
  }
169
+ const PrimitiveRef = ref();
170
+ function onMotionComplete() {
171
+ var _a;
172
+ if (props.asChild) {
173
+ (_a = PrimitiveRef.value) == null ? void 0 : _a.$forceUpdate();
174
+ }
175
+ }
165
176
  return (_ctx, _cache) => {
166
- return openBlock(), createBlock(unref(Primitive), mergeProps({
177
+ var _a;
178
+ return openBlock(), createBlock(unref(Primitive), {
179
+ ref_key: "PrimitiveRef",
180
+ ref: PrimitiveRef,
181
+ "get-props": getProps,
167
182
  as: _ctx.as,
168
- "as-child": _ctx.asChild
169
- }, getProps()), {
183
+ "as-child": _ctx.asChild,
184
+ "data-motion-group": ((_a = unref(layoutGroup).key) == null ? void 0 : _a.value) || void 0,
185
+ onMotioncomplete: onMotionComplete
186
+ }, {
170
187
  default: withCtx(() => [
171
188
  renderSlot(_ctx.$slots, "default")
172
189
  ]),
173
190
  _: 3
174
- }, 16, ["as", "as-child"]);
191
+ }, 8, ["as", "as-child", "data-motion-group"]);
175
192
  };
176
193
  }
177
194
  });
@@ -11,17 +11,25 @@ const Primitive = defineComponent({
11
11
  as: {
12
12
  type: [String, Object],
13
13
  default: "div"
14
+ },
15
+ getProps: {
16
+ type: Function,
17
+ default: () => ({})
14
18
  }
15
19
  },
16
20
  setup(props, { attrs, slots }) {
17
21
  const asTag = props.asChild ? "template" : props.as;
18
22
  const SELF_CLOSING_TAGS = ["area", "img", "input"];
19
- if (typeof asTag === "string" && SELF_CLOSING_TAGS.includes(asTag))
20
- return () => h(asTag, attrs);
21
- if (asTag !== "template") {
22
- return () => h(props.as, attrs, { default: slots.default });
23
- }
24
- return () => h(Slot, attrs, { default: slots.default });
23
+ return () => {
24
+ const motionProps = props.getProps();
25
+ const allAttrs = { ...attrs, ...motionProps };
26
+ if (typeof asTag === "string" && SELF_CLOSING_TAGS.includes(asTag))
27
+ return h(asTag, allAttrs);
28
+ if (asTag !== "template") {
29
+ return h(props.as, allAttrs, { default: slots.default });
30
+ }
31
+ return h(Slot, allAttrs, { default: slots.default });
32
+ };
25
33
  }
26
34
  });
27
35
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent, toRefs, openBlock, createBlock, resolveDynamicComponent, TransitionGroup, Transition, withCtx, renderSlot } from "vue";
2
- import { mountedStates } from "../state/motion-state.mjs";
3
- import { provideAnimatePresence, doneCallbacks, removeDoneCallback } from "./presence.mjs";
1
+ import { defineComponent, onMounted, onUnmounted, openBlock, createBlock, resolveDynamicComponent, TransitionGroup, Transition, withCtx, renderSlot } from "vue";
2
+ import { mountedStates } from "../../state/motion-state.mjs";
3
+ import { provideAnimatePresence, removeDoneCallback, doneCallbacks } from "../presence.mjs";
4
4
  import { usePopLayout } from "./use-pop-layout.mjs";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  ...{
@@ -12,42 +12,61 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  mode: { default: "sync" },
13
13
  initial: { type: Boolean, default: true },
14
14
  multiple: { type: Boolean, default: false },
15
- as: {}
15
+ as: {},
16
+ custom: {},
17
+ onExitComplete: {}
16
18
  },
17
19
  setup(__props) {
18
20
  const props = __props;
19
- const { initial } = toRefs(props);
20
- provideAnimatePresence({
21
- initial,
22
- safeUnmount(el) {
23
- return !doneCallbacks.has(el);
24
- }
21
+ const presenceContext = {
22
+ initial: props.initial,
23
+ custom: props.custom
24
+ };
25
+ provideAnimatePresence(presenceContext);
26
+ onMounted(() => {
27
+ presenceContext.initial = void 0;
25
28
  });
26
29
  function enter(el) {
27
30
  const state = mountedStates.get(el);
28
31
  if (!state) {
29
32
  return;
30
33
  }
34
+ state.isVShow = true;
31
35
  removeDoneCallback(el);
32
36
  state.setActive("exit", false);
33
37
  }
34
- const { addPopStyle, removePopStyle } = usePopLayout(props);
38
+ const { addPopStyle, removePopStyle, styles } = usePopLayout(props);
39
+ const exitDom = /* @__PURE__ */ new Map();
40
+ onUnmounted(() => {
41
+ exitDom.clear();
42
+ });
35
43
  function exit(el, done) {
36
44
  const state = mountedStates.get(el);
37
45
  if (!state) {
38
46
  return done();
39
47
  }
48
+ exitDom.set(el, true);
40
49
  removeDoneCallback(el);
41
50
  addPopStyle(state);
42
51
  function doneCallback(e) {
43
52
  var _a, _b;
44
- removePopStyle(state);
45
53
  if ((_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.isExit) {
54
+ const projection = state.visualElement.projection;
55
+ if ((projection == null ? void 0 : projection.animationProgress) > 0 && !state.isSafeToRemove && !state.isVShow) {
56
+ return;
57
+ }
46
58
  removeDoneCallback(el);
47
- (_b = state.visualElement.projection) == null ? void 0 : _b.willUpdate();
59
+ exitDom.delete(el);
60
+ if (exitDom.size === 0) {
61
+ (_b = props.onExitComplete) == null ? void 0 : _b.call(props);
62
+ }
63
+ if (!styles.has(state)) {
64
+ state.willUpdate("done");
65
+ }
48
66
  done();
49
- if (!el.isConnected) {
50
- state.unmount();
67
+ removePopStyle(state);
68
+ if (!(el == null ? void 0 : el.isConnected)) {
69
+ state.unmount(true);
51
70
  }
52
71
  }
53
72
  }
@@ -1,4 +1,4 @@
1
- import { useMotionConfig } from "./motion-config/context.mjs";
1
+ import { useMotionConfig } from "../motion-config/context.mjs";
2
2
  function usePopLayout(props) {
3
3
  const styles = /* @__PURE__ */ new WeakMap();
4
4
  const config = useMotionConfig();
@@ -37,14 +37,17 @@ function usePopLayout(props) {
37
37
  }
38
38
  function removePopStyle(state) {
39
39
  const style = styles.get(state);
40
- if (style) {
41
- styles.delete(state);
40
+ if (!style)
41
+ return;
42
+ styles.delete(state);
43
+ requestIdleCallback(() => {
42
44
  document.head.removeChild(style);
43
- }
45
+ });
44
46
  }
45
47
  return {
46
48
  addPopStyle,
47
- removePopStyle
49
+ removePopStyle,
50
+ styles
48
51
  };
49
52
  }
50
53
  export {
@@ -20,9 +20,12 @@ function nodeGroup() {
20
20
  unsubscribe();
21
21
  subscriptions.delete(node);
22
22
  }
23
- dirtyAll();
24
23
  },
25
- dirty: dirtyAll
24
+ dirty: dirtyAll,
25
+ didUpdate: () => {
26
+ var _a;
27
+ (_a = nodes[0]) == null ? void 0 : _a.didUpdate();
28
+ }
26
29
  };
27
30
  }
28
31
  export {
@@ -1,7 +1,5 @@
1
- import { ref } from "vue";
2
1
  import { createContext } from "../utils/createContext.mjs";
3
2
  const doneCallbacks = /* @__PURE__ */ new WeakMap();
4
- ref(/* @__PURE__ */ new WeakMap());
5
3
  function removeDoneCallback(element) {
6
4
  const prevDoneCallback = doneCallbacks.get(element);
7
5
  if (prevDoneCallback) {
@@ -3,6 +3,13 @@ function getMotionElement(el) {
3
3
  return getMotionElement(el.nextSibling);
4
4
  return el;
5
5
  }
6
+ function checkMotionIsHidden(instance) {
7
+ var _a;
8
+ const isHidden = ((_a = getMotionElement(instance.$el)) == null ? void 0 : _a.style.display) === "none";
9
+ const hasTransition = instance.$.vnode.transition;
10
+ return hasTransition && isHidden;
11
+ }
6
12
  export {
13
+ checkMotionIsHidden,
7
14
  getMotionElement
8
15
  };
@@ -2,7 +2,8 @@ const components = {
2
2
  motion: [
3
3
  "Motion",
4
4
  "AnimatePresence",
5
- "LayoutGroup"
5
+ "LayoutGroup",
6
+ "MotionConfig"
6
7
  ]
7
8
  };
8
9
  const utilities = {
@@ -1,4 +1,5 @@
1
- import { GroupPlaybackControls } from "../GroupPlaybackControls.mjs";
1
+ import { GroupPlaybackControls } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/Group.mjs";
2
+ import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
3
  import { animateSequence } from "./sequence.mjs";
3
4
  import { animateSubject } from "./subject.mjs";
4
5
  function isSequence(value) {
@@ -1,4 +1,5 @@
1
- import { resolveElements } from "motion-dom";
1
+ import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { resolveElements } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
2
3
  import { isDOMKeyframes } from "../utils/is-dom-keyframes.mjs";
3
4
  function resolveSubjects(subject, keyframes, scope, selectorCache) {
4
5
  if (typeof subject === "string" && isDOMKeyframes(keyframes)) {
@@ -1,4 +1,4 @@
1
- import { invariant } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
1
+ import { invariant } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
2
  import { visualElementStore } from "../../render/store.mjs";
3
3
  import { isMotionValue } from "../../value/utils/is-motion-value.mjs";
4
4
  import { animateTarget } from "../interfaces/visual-element-target.mjs";
@@ -1,19 +1,19 @@
1
+ import "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { noop } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/noop.mjs";
3
+ import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
4
+ import { isGenerator } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
5
+ import { attachTimeline } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs";
6
+ import { isWaapiSupportedEasing } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs";
7
+ import { supportsLinearEasing } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/linear-easing.mjs";
1
8
  import { anticipate } from "../../easing/anticipate.mjs";
2
9
  import { backInOut } from "../../easing/back.mjs";
3
10
  import { circInOut } from "../../easing/circ.mjs";
4
11
  import { DOMKeyframesResolver } from "../../render/dom/DOMKeyframesResolver.mjs";
5
- import "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
6
- import { noop } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
7
- import { millisecondsToSeconds, secondsToMilliseconds } from "../../utils/time-conversion.mjs";
8
- import { isGenerator } from "../generators/utils/is-generator.mjs";
9
12
  import { BaseAnimation } from "./BaseAnimation.mjs";
10
13
  import { MainThreadAnimation } from "./MainThreadAnimation.mjs";
11
14
  import { acceleratedValues } from "./utils/accelerated-values.mjs";
12
15
  import { startWaapiAnimation } from "./waapi/index.mjs";
13
- import { isWaapiSupportedEasing } from "./waapi/easing.mjs";
14
- import { attachTimeline } from "./waapi/utils/attach-timeline.mjs";
15
16
  import { getFinalKeyframe } from "./waapi/utils/get-final-keyframe.mjs";
16
- import { supportsLinearEasing } from "./waapi/utils/supports-linear-easing.mjs";
17
17
  import { supportsWaapi } from "./waapi/utils/supports-waapi.mjs";
18
18
  const sampleDelta = 10;
19
19
  const maxDuration = 2e4;
@@ -1,17 +1,17 @@
1
+ import { invariant } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { millisecondsToSeconds, secondsToMilliseconds } from "../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
3
+ import { calcGeneratorDuration } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs";
4
+ import { isGenerator } from "../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
1
5
  import { KeyframeResolver } from "../../render/utils/KeyframesResolver.mjs";
2
- import { spring } from "../generators/spring/index.mjs";
6
+ import { clamp } from "../../utils/clamp.mjs";
7
+ import { mix } from "../../utils/mix/index.mjs";
8
+ import { pipe } from "../../utils/pipe.mjs";
3
9
  import { inertia } from "../generators/inertia.mjs";
4
10
  import { keyframes } from "../generators/keyframes.mjs";
11
+ import { spring } from "../generators/spring/index.mjs";
5
12
  import { BaseAnimation } from "./BaseAnimation.mjs";
6
- import { pipe } from "../../utils/pipe.mjs";
7
- import { mix } from "../../utils/mix/index.mjs";
8
- import { calcGeneratorDuration } from "../generators/utils/calc-duration.mjs";
9
- import { millisecondsToSeconds, secondsToMilliseconds } from "../../utils/time-conversion.mjs";
10
- import { clamp } from "../../utils/clamp.mjs";
11
- import { invariant } from "../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
12
13
  import { frameloopDriver } from "./drivers/driver-frameloop.mjs";
13
14
  import { getFinalKeyframe } from "./waapi/utils/get-final-keyframe.mjs";
14
- import { isGenerator } from "../generators/utils/is-generator.mjs";
15
15
  const generators = {
16
16
  decay: inertia,
17
17
  inertia,
@@ -1,5 +1,5 @@
1
- import { warning } from "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
2
- import { isGenerator } from "../../generators/utils/is-generator.mjs";
1
+ import { warning } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { isGenerator } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
3
3
  import { isAnimatable } from "../../utils/is-animatable.mjs";
4
4
  function hasKeyframesChanged(keyframes) {
5
5
  const current = keyframes[0];
@@ -1,14 +1,13 @@
1
+ import { invariant } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { secondsToMilliseconds } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
3
+ import { createGeneratorEasing } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs";
4
+ import { isGenerator } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/generators/utils/is-generator.mjs";
5
+ import { NativeAnimationControls } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/NativeAnimationControls.mjs";
6
+ import { supportsLinearEasing } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/supports/linear-easing.mjs";
1
7
  import { startWaapiAnimation } from "./index.mjs";
2
- import { createGeneratorEasing } from "../../../easing/utils/create-generator-easing.mjs";
3
8
  import { browserNumberValueTypes } from "../../../render/dom/value-types/number-browser.mjs";
4
- import { invariant } from "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
5
- import { noop } from "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/noop.mjs";
6
- import { secondsToMilliseconds, millisecondsToSeconds } from "../../../utils/time-conversion.mjs";
7
- import { isGenerator } from "../../generators/utils/is-generator.mjs";
8
- import { attachTimeline } from "./utils/attach-timeline.mjs";
9
9
  import { getFinalKeyframe } from "./utils/get-final-keyframe.mjs";
10
10
  import { setCSSVar, setStyle } from "./utils/style.mjs";
11
- import { supportsLinearEasing } from "./utils/supports-linear-easing.mjs";
12
11
  import { supportsPartialKeyframes } from "./utils/supports-partial-keyframes.mjs";
13
12
  import { supportsWaapi } from "./utils/supports-waapi.mjs";
14
13
  const state = /* @__PURE__ */ new WeakMap();
@@ -31,12 +30,9 @@ function getElementAnimationState(element) {
31
30
  state.set(element, animationState);
32
31
  return state.get(element);
33
32
  }
34
- class NativeAnimation {
33
+ class NativeAnimation extends NativeAnimationControls {
35
34
  constructor(element, valueName, valueKeyframes, options) {
36
35
  const isCSSVar = valueName.startsWith("--");
37
- this.setValue = isCSSVar ? setCSSVar : setStyle;
38
- this.options = options;
39
- this.updateFinishedPromise();
40
36
  invariant(typeof options.type !== "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);
41
37
  const existingAnimation = getElementAnimationState(element).get(valueName);
42
38
  existingAnimation && existingAnimation.stop();
@@ -55,92 +51,34 @@ class NativeAnimation {
55
51
  } else {
56
52
  options.ease = options.ease || defaultEasing;
57
53
  }
58
- this.removeAnimation = () => {
59
- var _a;
60
- return (_a = state.get(element)) === null || _a === void 0 ? void 0 : _a.delete(valueName);
61
- };
62
54
  const onFinish = () => {
63
- this.setValue(element, valueName, getFinalKeyframe(valueKeyframes, this.options));
55
+ this.setValue(element, valueName, getFinalKeyframe(valueKeyframes, options));
64
56
  this.cancel();
65
57
  this.resolveFinishedPromise();
66
58
  };
59
+ const init = () => {
60
+ this.setValue = isCSSVar ? setCSSVar : setStyle;
61
+ this.options = options;
62
+ this.updateFinishedPromise();
63
+ this.removeAnimation = () => {
64
+ var _a;
65
+ return (_a = state.get(element)) === null || _a === void 0 ? void 0 : _a.delete(valueName);
66
+ };
67
+ };
67
68
  if (!supportsWaapi()) {
69
+ super();
70
+ init();
68
71
  onFinish();
69
72
  } else {
70
- this.animation = startWaapiAnimation(element, valueName, valueKeyframes, options);
73
+ super(startWaapiAnimation(element, valueName, valueKeyframes, options));
74
+ init();
71
75
  if (options.autoplay === false) {
72
76
  this.animation.pause();
73
77
  }
74
78
  this.animation.onfinish = onFinish;
75
- if (this.pendingTimeline) {
76
- attachTimeline(this.animation, this.pendingTimeline);
77
- }
78
79
  getElementAnimationState(element).set(valueName, this);
79
80
  }
80
81
  }
81
- get duration() {
82
- return millisecondsToSeconds(this.options.duration || 300);
83
- }
84
- get time() {
85
- var _a;
86
- if (this.animation) {
87
- return millisecondsToSeconds(((_a = this.animation) === null || _a === void 0 ? void 0 : _a.currentTime) || 0);
88
- }
89
- return 0;
90
- }
91
- set time(newTime) {
92
- if (this.animation) {
93
- this.animation.currentTime = secondsToMilliseconds(newTime);
94
- }
95
- }
96
- get speed() {
97
- return this.animation ? this.animation.playbackRate : 1;
98
- }
99
- set speed(newSpeed) {
100
- if (this.animation) {
101
- this.animation.playbackRate = newSpeed;
102
- }
103
- }
104
- get state() {
105
- return this.animation ? this.animation.playState : "finished";
106
- }
107
- get startTime() {
108
- return this.animation ? this.animation.startTime : null;
109
- }
110
- flatten() {
111
- var _a;
112
- if (!this.animation)
113
- return;
114
- (_a = this.animation.effect) === null || _a === void 0 ? void 0 : _a.updateTiming({ easing: "linear" });
115
- }
116
- play() {
117
- if (this.state === "finished") {
118
- this.updateFinishedPromise();
119
- }
120
- this.animation && this.animation.play();
121
- }
122
- pause() {
123
- this.animation && this.animation.pause();
124
- }
125
- stop() {
126
- if (!this.animation || this.state === "idle" || this.state === "finished") {
127
- return;
128
- }
129
- if (this.animation.commitStyles) {
130
- this.animation.commitStyles();
131
- }
132
- this.cancel();
133
- }
134
- complete() {
135
- this.animation && this.animation.finish();
136
- }
137
- cancel() {
138
- this.removeAnimation();
139
- try {
140
- this.animation && this.animation.cancel();
141
- } catch (e) {
142
- }
143
- }
144
82
  /**
145
83
  * Allows the returned animation to be awaited or promise-chained. Currently
146
84
  * resolves when the animation finishes at all but in a future update could/should
@@ -154,13 +92,15 @@ class NativeAnimation {
154
92
  this.resolveFinishedPromise = resolve;
155
93
  });
156
94
  }
157
- attachTimeline(timeline) {
158
- if (!this.animation) {
159
- this.pendingTimeline = timeline;
160
- } else {
161
- attachTimeline(this.animation, timeline);
95
+ play() {
96
+ if (this.state === "finished") {
97
+ this.updateFinishedPromise();
162
98
  }
163
- return noop;
99
+ super.play();
100
+ }
101
+ cancel() {
102
+ this.removeAnimation();
103
+ super.cancel();
164
104
  }
165
105
  }
166
106
  export {
@@ -1,7 +1,7 @@
1
- import { resolveElements } from "motion-dom";
2
- import { invariant } from "../../../../../../../../motion-utils@11.14.3/external/motion-utils/dist/es/errors.mjs";
3
- import { secondsToMilliseconds } from "../../../utils/time-conversion.mjs";
4
- import { getValueTransition } from "../../utils/get-value-transition.mjs";
1
+ import { invariant } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { secondsToMilliseconds } from "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/time-conversion.mjs";
3
+ import { getValueTransition } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/utils/get-value-transition.mjs";
4
+ import { resolveElements } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/utils/resolve-elements.mjs";
5
5
  import { NativeAnimation } from "./NativeAnimation.mjs";
6
6
  function animateElements(elementOrSelector, keyframes, options, scope) {
7
7
  const elements = resolveElements(elementOrSelector, scope);
@@ -1,4 +1,5 @@
1
- import { GroupPlaybackControls } from "../../GroupPlaybackControls.mjs";
1
+ import { GroupPlaybackControls } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/controls/Group.mjs";
2
+ import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
3
  import { animateElements } from "./animate-elements.mjs";
3
4
  const createScopedWaapiAnimate = (scope) => {
4
5
  function scopedAnimate(elementOrSelector, keyframes, options) {
@@ -1,4 +1,5 @@
1
- import { mapEasingToNativeEasing } from "./easing.mjs";
1
+ import "../../../../../../../../motion-utils@11.16.0/external/motion-utils/dist/es/errors.mjs";
2
+ import { mapEasingToNativeEasing } from "../../../../../../../../motion-dom@11.16.4/external/motion-dom/dist/es/animation/waapi/utils/easing.mjs";
2
3
  function startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease = "easeInOut", times } = {}) {
3
4
  const keyframeOptions = { [valueName]: keyframes };
4
5
  if (times)