motion-start 0.0.3 → 0.1.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 (364) hide show
  1. package/LICENSE.md +0 -0
  2. package/README.md +37 -29
  3. package/dist/animation/UseAnimatedState.svelte +26 -24
  4. package/dist/animation/UseAnimatedState.svelte.d.ts +5 -3
  5. package/dist/animation/UseAnimatedState.svelte.d.ts.map +1 -1
  6. package/dist/animation/UseAnimation.svelte.d.ts +1 -1
  7. package/dist/animation/animation-controls.d.ts +1 -1
  8. package/dist/animation/animation-controls.d.ts.map +1 -1
  9. package/dist/animation/animation-controls.js +12 -12
  10. package/dist/animation/use-animation.d.ts +1 -1
  11. package/dist/animation/utils/default-transitions.d.ts +1 -1
  12. package/dist/animation/utils/default-transitions.d.ts.map +1 -1
  13. package/dist/animation/utils/default-transitions.js +27 -37
  14. package/dist/animation/utils/easing.d.ts +2 -2
  15. package/dist/animation/utils/easing.d.ts.map +1 -1
  16. package/dist/animation/utils/easing.js +5 -6
  17. package/dist/animation/utils/transitions.d.ts +5 -5
  18. package/dist/animation/utils/transitions.d.ts.map +1 -1
  19. package/dist/animation/utils/transitions.js +55 -64
  20. package/dist/animation/utils/variant-resolvers.d.ts +1 -1
  21. package/dist/animation/utils/variant-resolvers.d.ts.map +1 -1
  22. package/dist/animation/utils/variant-resolvers.js +1 -5
  23. package/dist/components/AnimatePresence/AnimatePresence.svelte +16 -8
  24. package/dist/components/AnimatePresence/AnimatePresence.svelte.d.ts.map +1 -1
  25. package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte +29 -23
  26. package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte.d.ts +1 -26
  27. package/dist/components/AnimatePresence/PresenceChild/PresenceChild.svelte.d.ts.map +1 -1
  28. package/dist/components/AnimatePresence/PresenceChild/types.d.ts +3 -1
  29. package/dist/components/AnimatePresence/PresenceChild/types.d.ts.map +1 -1
  30. package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte +22 -15
  31. package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte.d.ts +1 -1
  32. package/dist/components/AnimateSharedLayout/AnimateSharedLayout.svelte.d.ts.map +1 -1
  33. package/dist/components/AnimateSharedLayout/index.d.ts +1 -1
  34. package/dist/components/AnimateSharedLayout/index.d.ts.map +1 -1
  35. package/dist/components/AnimateSharedLayout/index.js +1 -0
  36. package/dist/components/AnimateSharedLayout/types.d.ts +5 -5
  37. package/dist/components/AnimateSharedLayout/types.d.ts.map +1 -1
  38. package/dist/components/AnimateSharedLayout/types.js +0 -1
  39. package/dist/components/AnimateSharedLayout/utils/batcher.d.ts +1 -1
  40. package/dist/components/AnimateSharedLayout/utils/batcher.d.ts.map +1 -1
  41. package/dist/components/AnimateSharedLayout/utils/batcher.js +21 -22
  42. package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts +3 -3
  43. package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts.map +1 -1
  44. package/dist/components/AnimateSharedLayout/utils/crossfader.js +40 -46
  45. package/dist/components/AnimateSharedLayout/utils/rotate.d.ts +1 -1
  46. package/dist/components/AnimateSharedLayout/utils/rotate.d.ts.map +1 -1
  47. package/dist/components/AnimateSharedLayout/utils/rotate.js +2 -1
  48. package/dist/components/AnimateSharedLayout/utils/stack.d.ts +2 -5
  49. package/dist/components/AnimateSharedLayout/utils/stack.d.ts.map +1 -1
  50. package/dist/components/AnimateSharedLayout/utils/stack.js +22 -22
  51. package/dist/components/LazyMotion/LazyMotion.svelte +9 -3
  52. package/dist/components/LazyMotion/LazyMotion.svelte.d.ts.map +1 -1
  53. package/dist/components/LazyMotion/types.d.ts +1 -1
  54. package/dist/components/LazyMotion/types.d.ts.map +1 -1
  55. package/dist/components/MotionConfig/MotionConfig.svelte +1 -0
  56. package/dist/components/MotionConfig/MotionConfig.svelte.d.ts.map +1 -1
  57. package/dist/components/MotionConfig/MotionConfigScaleCorrection.d.ts.map +1 -1
  58. package/dist/components/MotionConfig/MotionConfigScaleCorrection.js +7 -4
  59. package/dist/context/DOMcontext.d.ts +4 -3
  60. package/dist/context/DOMcontext.d.ts.map +1 -1
  61. package/dist/context/DOMcontext.js +1 -1
  62. package/dist/context/LayoutGroupContext.d.ts.map +1 -1
  63. package/dist/context/LayoutGroupContext.js +1 -0
  64. package/dist/context/LazyContext.d.ts +2 -2
  65. package/dist/context/LazyContext.d.ts.map +1 -1
  66. package/dist/context/LazyContext.js +4 -3
  67. package/dist/context/MotionConfigContext.d.ts.map +1 -1
  68. package/dist/context/MotionConfigContext.js +1 -0
  69. package/dist/context/MotionContext/MotionContext.svelte +3 -18
  70. package/dist/context/MotionContext/MotionContext.svelte.d.ts +2 -36
  71. package/dist/context/MotionContext/MotionContext.svelte.d.ts.map +1 -1
  72. package/dist/context/MotionContext/UseCreateMotionContext.svelte +2 -2
  73. package/dist/context/MotionContext/index.d.ts +4 -1
  74. package/dist/context/MotionContext/index.d.ts.map +1 -1
  75. package/dist/context/MotionContext/index.js +8 -1
  76. package/dist/context/PresenceContext.d.ts.map +1 -1
  77. package/dist/context/PresenceContext.js +1 -0
  78. package/dist/context/ScaleCorrectionProvider.svelte +1 -1
  79. package/dist/context/ScaleCorrectionProvider.svelte.d.ts +2 -2
  80. package/dist/context/ScaleCorrectionProvider.svelte.d.ts.map +1 -1
  81. package/dist/context/SharedLayoutContext.d.ts +3 -3
  82. package/dist/context/SharedLayoutContext.d.ts.map +1 -1
  83. package/dist/context/SharedLayoutContext.js +5 -3
  84. package/dist/events/UseDomEvent.svelte +23 -24
  85. package/dist/events/UseDomEvent.svelte.d.ts +5 -28
  86. package/dist/events/UseDomEvent.svelte.d.ts.map +1 -1
  87. package/dist/events/UsePointerEvent.svelte +3 -57
  88. package/dist/events/UsePointerEvent.svelte.d.ts +1 -3
  89. package/dist/events/UsePointerEvent.svelte.d.ts.map +1 -1
  90. package/dist/events/event-info.js +1 -1
  91. package/dist/events/types.d.ts +4 -3
  92. package/dist/events/types.d.ts.map +1 -1
  93. package/dist/events/use-dom-event.d.ts +2 -1
  94. package/dist/events/use-dom-event.d.ts.map +1 -1
  95. package/dist/events/use-dom-event.js +7 -1
  96. package/dist/events/use-pointer-event.d.ts +10 -5
  97. package/dist/events/use-pointer-event.d.ts.map +1 -1
  98. package/dist/events/use-pointer-event.js +35 -1
  99. package/dist/gestures/PanSession.d.ts.map +1 -1
  100. package/dist/gestures/PanSession.js +1 -2
  101. package/dist/gestures/UseHoverGesture.svelte +4 -2
  102. package/dist/gestures/UseHoverGesture.svelte.d.ts.map +1 -1
  103. package/dist/gestures/UsePanGesture.svelte +6 -5
  104. package/dist/gestures/UsePanGesture.svelte.d.ts.map +1 -1
  105. package/dist/gestures/UseTapGesture.svelte +6 -5
  106. package/dist/gestures/UseTapGesture.svelte.d.ts.map +1 -1
  107. package/dist/gestures/drag/UseDrag.svelte +10 -16
  108. package/dist/gestures/drag/UseDrag.svelte.d.ts +6 -30
  109. package/dist/gestures/drag/UseDrag.svelte.d.ts.map +1 -1
  110. package/dist/gestures/drag/UseDragControls.svelte +1 -83
  111. package/dist/gestures/drag/UseDragControls.svelte.d.ts +7 -2
  112. package/dist/gestures/drag/UseDragControls.svelte.d.ts.map +1 -1
  113. package/dist/gestures/drag/VisualElementDragControls.d.ts.map +1 -1
  114. package/dist/gestures/drag/VisualElementDragControls.js +20 -11
  115. package/dist/gestures/drag/types.d.ts +12 -11
  116. package/dist/gestures/drag/types.d.ts.map +1 -1
  117. package/dist/gestures/drag/types.js +1 -2
  118. package/dist/gestures/drag/use-drag-controls.d.ts +3 -1
  119. package/dist/gestures/drag/use-drag-controls.d.ts.map +1 -1
  120. package/dist/gestures/drag/use-drag-controls.js +1 -1
  121. package/dist/gestures/drag/utils/constraints.d.ts +3 -3
  122. package/dist/gestures/drag/utils/constraints.d.ts.map +1 -1
  123. package/dist/gestures/drag/utils/constraints.js +11 -12
  124. package/dist/gestures/drag/utils/lock.js +1 -1
  125. package/dist/gestures/use-focus-gesture.d.ts +1 -1
  126. package/dist/gestures/use-focus-gesture.d.ts.map +1 -1
  127. package/dist/gestures/use-hover-gesture.d.ts +1 -1
  128. package/dist/gestures/use-hover-gesture.d.ts.map +1 -1
  129. package/dist/gestures/use-pan-gesture.d.ts +1 -1
  130. package/dist/gestures/use-pan-gesture.d.ts.map +1 -1
  131. package/dist/gestures/use-tap-gesture.d.ts +1 -1
  132. package/dist/gestures/use-tap-gesture.d.ts.map +1 -1
  133. package/dist/gestures/utils/is-node-or-child.d.ts.map +1 -1
  134. package/dist/gestures/utils/is-node-or-child.js +1 -0
  135. package/dist/index.d.ts +58 -59
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +42 -41
  138. package/dist/motion/Motion.svelte +1 -0
  139. package/dist/motion/Motion.svelte.d.ts.map +1 -1
  140. package/dist/motion/MotionSSR.svelte +1 -1
  141. package/dist/motion/features/Exit.svelte +10 -9
  142. package/dist/motion/features/Exit.svelte.d.ts +6 -30
  143. package/dist/motion/features/Exit.svelte.d.ts.map +1 -1
  144. package/dist/motion/features/animations.d.ts +11 -0
  145. package/dist/motion/features/animations.d.ts.map +1 -0
  146. package/dist/motion/features/drag.d.ts +11 -0
  147. package/dist/motion/features/drag.d.ts.map +1 -0
  148. package/dist/motion/features/gestures.d.ts +11 -0
  149. package/dist/motion/features/gestures.d.ts.map +1 -0
  150. package/dist/motion/features/layout/Animate.svelte +44 -39
  151. package/dist/motion/features/layout/Animate.svelte.d.ts +2 -1
  152. package/dist/motion/features/layout/Animate.svelte.d.ts.map +1 -1
  153. package/dist/motion/features/layout/Measure.svelte +8 -6
  154. package/dist/motion/features/layout/Measure.svelte.d.ts.map +1 -1
  155. package/dist/motion/features/layout/index.d.ts +8 -0
  156. package/dist/motion/features/layout/index.d.ts.map +1 -0
  157. package/dist/motion/features/layout/index.js +1 -1
  158. package/dist/motion/features/types.d.ts +5 -3
  159. package/dist/motion/features/types.d.ts.map +1 -1
  160. package/dist/motion/index.d.ts +6 -6
  161. package/dist/motion/index.d.ts.map +1 -1
  162. package/dist/motion/index.js +4 -4
  163. package/dist/motion/types.d.ts +13 -9
  164. package/dist/motion/types.d.ts.map +1 -1
  165. package/dist/motion/types.js +1 -1
  166. package/dist/motion/utils/UseVisualState.svelte +22 -22
  167. package/dist/motion/utils/UseVisualState.svelte.d.ts +1 -1
  168. package/dist/motion/utils/UseVisualState.svelte.d.ts.map +1 -1
  169. package/dist/motion/utils/use-motion-ref.d.ts +4 -3
  170. package/dist/motion/utils/use-motion-ref.d.ts.map +1 -1
  171. package/dist/motion/utils/use-motion-ref.js +4 -6
  172. package/dist/motion/utils/use-visual-element.d.ts +5 -4
  173. package/dist/motion/utils/use-visual-element.d.ts.map +1 -1
  174. package/dist/motion/utils/use-visual-state.d.ts +6 -5
  175. package/dist/motion/utils/use-visual-state.d.ts.map +1 -1
  176. package/dist/motion/utils/use-visual-state.js +2 -1
  177. package/dist/render/dom/M-type.spec-d.js +2 -2
  178. package/dist/render/dom/{M.svelte → Motion-Proxy.svelte} +8 -2
  179. package/dist/render/dom/{M.svelte.d.ts → Motion-Proxy.svelte.d.ts} +5 -4
  180. package/dist/render/dom/Motion-Proxy.svelte.d.ts.map +1 -0
  181. package/dist/render/dom/Motion-type.spec-d.d.ts +2 -0
  182. package/dist/render/dom/Motion-type.spec-d.d.ts.map +1 -0
  183. package/dist/{motion/type.spec-d.js → render/dom/Motion-type.spec-d.js} +2 -2
  184. package/dist/render/dom/UseRender.svelte +5 -4
  185. package/dist/render/dom/UseRender.svelte.d.ts.map +1 -1
  186. package/dist/render/dom/featureBundle.d.ts +24 -0
  187. package/dist/render/dom/featureBundle.d.ts.map +1 -0
  188. package/dist/render/dom/featureBundle.js +5 -4
  189. package/dist/render/dom/motion-minimal.d.ts +942 -2
  190. package/dist/render/dom/motion-minimal.d.ts.map +1 -1
  191. package/dist/render/dom/motion-minimal.js +11 -7
  192. package/dist/render/dom/motion-proxy.d.ts +13 -195
  193. package/dist/render/dom/motion-proxy.d.ts.map +1 -1
  194. package/dist/render/dom/motion-proxy.js +9 -7
  195. package/dist/render/dom/motion.d.ts +974 -0
  196. package/dist/render/dom/motion.d.ts.map +1 -0
  197. package/dist/render/dom/motion.js +8 -4
  198. package/dist/render/dom/projection/convert-to-relative.d.ts.map +1 -1
  199. package/dist/render/dom/projection/default-scale-correctors.d.ts +5 -4
  200. package/dist/render/dom/projection/default-scale-correctors.d.ts.map +1 -1
  201. package/dist/render/dom/projection/default-scale-correctors.js +19 -19
  202. package/dist/render/dom/projection/scale-correction.d.ts +1 -1
  203. package/dist/render/dom/projection/scale-correction.d.ts.map +1 -1
  204. package/dist/render/dom/projection/scale-correction.js +2 -1
  205. package/dist/render/dom/projection/utils.d.ts +1 -1
  206. package/dist/render/dom/projection/utils.d.ts.map +1 -1
  207. package/dist/render/dom/projection/utils.js +2 -2
  208. package/dist/render/dom/svg-visual-element.d.ts +1 -1
  209. package/dist/render/dom/svg-visual-element.d.ts.map +1 -1
  210. package/dist/render/dom/svg-visual-element.js +11 -1
  211. package/dist/render/dom/use-render.d.ts +4 -8
  212. package/dist/render/dom/use-render.d.ts.map +1 -1
  213. package/dist/render/dom/use-render.js +4 -0
  214. package/dist/render/dom/utils/UseInitialMotionProps.svelte +14 -3
  215. package/dist/render/dom/utils/UseInitialMotionProps.svelte.d.ts +2 -1
  216. package/dist/render/dom/utils/UseInitialMotionProps.svelte.d.ts.map +1 -1
  217. package/dist/render/dom/utils/batch-layout.d.ts.map +1 -1
  218. package/dist/render/dom/utils/batch-layout.js +1 -0
  219. package/dist/render/dom/utils/create-config.d.ts +5 -11
  220. package/dist/render/dom/utils/create-config.d.ts.map +1 -1
  221. package/dist/render/dom/utils/create-config.js +7 -6
  222. package/dist/render/dom/utils/css-variables-conversion.d.ts +2 -2
  223. package/dist/render/dom/utils/css-variables-conversion.d.ts.map +1 -1
  224. package/dist/render/dom/utils/css-variables-conversion.js +8 -6
  225. package/dist/render/dom/utils/filter-props.d.ts.map +1 -1
  226. package/dist/render/dom/utils/filter-props.js +1 -0
  227. package/dist/render/dom/utils/is-svg-component.d.ts +2 -2
  228. package/dist/render/dom/utils/is-svg-component.d.ts.map +1 -1
  229. package/dist/render/dom/utils/is-svg-component.js +7 -3
  230. package/dist/render/dom/utils/unit-conversion.d.ts +2 -2
  231. package/dist/render/dom/utils/unit-conversion.d.ts.map +1 -1
  232. package/dist/render/dom/utils/unit-conversion.js +57 -74
  233. package/dist/render/dom/value-types/defaults.d.ts +1 -1
  234. package/dist/render/dom/value-types/defaults.d.ts.map +1 -1
  235. package/dist/render/dom/value-types/defaults.js +14 -5
  236. package/dist/render/dom/value-types/dimensions.d.ts +2 -1
  237. package/dist/render/dom/value-types/dimensions.d.ts.map +1 -1
  238. package/dist/render/dom/value-types/find.d.ts.map +1 -1
  239. package/dist/render/dom/value-types/find.js +2 -5
  240. package/dist/render/dom/value-types/get-as-type.js +1 -1
  241. package/dist/render/dom/value-types/type-int.d.ts.map +1 -1
  242. package/dist/render/dom/value-types/type-int.js +1 -2
  243. package/dist/render/html/UseHTMLProps.svelte +14 -2
  244. package/dist/render/html/UseHTMLProps.svelte.d.ts +3 -2
  245. package/dist/render/html/UseHTMLProps.svelte.d.ts.map +1 -1
  246. package/dist/render/html/UseInitialMotionValues.svelte +6 -5
  247. package/dist/render/html/UseInitialMotionValues.svelte.d.ts +6 -34
  248. package/dist/render/html/UseInitialMotionValues.svelte.d.ts.map +1 -1
  249. package/dist/render/html/UseStyle.svelte +7 -20
  250. package/dist/render/html/UseStyle.svelte.d.ts +0 -5
  251. package/dist/render/html/UseStyle.svelte.d.ts.map +1 -1
  252. package/dist/render/html/config-motion.d.ts.map +1 -1
  253. package/dist/render/html/config-motion.js +1 -0
  254. package/dist/render/html/types.d.ts +16 -19
  255. package/dist/render/html/types.d.ts.map +1 -1
  256. package/dist/render/html/use-props.d.ts +12 -10
  257. package/dist/render/html/use-props.d.ts.map +1 -1
  258. package/dist/render/html/use-props.js +17 -2
  259. package/dist/render/html/utils/build-styles.d.ts.map +1 -1
  260. package/dist/render/html/utils/build-styles.js +1 -0
  261. package/dist/render/html/utils/build-transform.d.ts.map +1 -1
  262. package/dist/render/html/utils/build-transform.js +1 -0
  263. package/dist/render/html/utils/render.d.ts.map +1 -1
  264. package/dist/render/html/utils/render.js +1 -0
  265. package/dist/render/html/utils/scrape-motion-values.d.ts.map +1 -1
  266. package/dist/render/html/utils/scrape-motion-values.js +2 -0
  267. package/dist/render/html/visual-element.d.ts +2311 -5
  268. package/dist/render/html/visual-element.d.ts.map +1 -1
  269. package/dist/render/html/visual-element.js +21 -29
  270. package/dist/render/index.d.ts +2 -2
  271. package/dist/render/index.d.ts.map +1 -1
  272. package/dist/render/index.js +105 -45
  273. package/dist/render/svg/UseSVGProps.svelte +13 -9
  274. package/dist/render/svg/UseSVGProps.svelte.d.ts +5 -33
  275. package/dist/render/svg/UseSVGProps.svelte.d.ts.map +1 -1
  276. package/dist/render/svg/config-motion.d.ts +18 -2
  277. package/dist/render/svg/config-motion.d.ts.map +1 -1
  278. package/dist/render/svg/config-motion.js +3 -0
  279. package/dist/render/svg/types.d.ts +6 -20
  280. package/dist/render/svg/types.d.ts.map +1 -1
  281. package/dist/render/svg/utils/build-attrs.d.ts +7 -7
  282. package/dist/render/svg/utils/build-attrs.d.ts.map +1 -1
  283. package/dist/render/svg/utils/build-attrs.js +3 -7
  284. package/dist/render/svg/utils/create-render-state.d.ts +9 -1
  285. package/dist/render/svg/utils/create-render-state.d.ts.map +1 -1
  286. package/dist/render/svg/utils/create-render-state.js +1 -2
  287. package/dist/render/svg/utils/path.js +1 -1
  288. package/dist/render/svg/utils/render.d.ts +1 -1
  289. package/dist/render/svg/utils/render.d.ts.map +1 -1
  290. package/dist/render/svg/utils/scrape-motion-values.d.ts.map +1 -1
  291. package/dist/render/svg/utils/scrape-motion-values.js +2 -0
  292. package/dist/render/svg/utils/transform-origin.js +1 -1
  293. package/dist/render/svg/visual-element.d.ts +1 -1
  294. package/dist/render/svg/visual-element.d.ts.map +1 -1
  295. package/dist/render/svg/visual-element.js +10 -13
  296. package/dist/render/types.d.ts +17 -16
  297. package/dist/render/types.d.ts.map +1 -1
  298. package/dist/render/types.js +1 -4
  299. package/dist/render/utils/animation-state.d.ts +12 -6
  300. package/dist/render/utils/animation-state.d.ts.map +1 -1
  301. package/dist/render/utils/animation-state.js +49 -50
  302. package/dist/render/utils/animation.d.ts +4 -4
  303. package/dist/render/utils/animation.d.ts.map +1 -1
  304. package/dist/render/utils/animation.js +22 -34
  305. package/dist/render/utils/lifecycles.d.ts +6 -6
  306. package/dist/render/utils/lifecycles.d.ts.map +1 -1
  307. package/dist/render/utils/lifecycles.js +28 -33
  308. package/dist/render/utils/motion-values.d.ts.map +1 -1
  309. package/dist/render/utils/motion-values.js +4 -3
  310. package/dist/render/utils/setters.d.ts +4 -4
  311. package/dist/render/utils/setters.d.ts.map +1 -1
  312. package/dist/render/utils/setters.js +30 -21
  313. package/dist/render/utils/state.d.ts.map +1 -1
  314. package/dist/render/utils/variants.js +3 -3
  315. package/dist/types/geometry.d.ts +1 -0
  316. package/dist/types/geometry.d.ts.map +1 -1
  317. package/dist/types.d.ts +12 -12
  318. package/dist/types.d.ts.map +1 -1
  319. package/dist/utils/geometry/delta-apply.d.ts +3 -3
  320. package/dist/utils/geometry/delta-apply.d.ts.map +1 -1
  321. package/dist/utils/geometry/delta-apply.js +5 -4
  322. package/dist/utils/geometry/delta-calc.js +1 -1
  323. package/dist/utils/geometry/index.d.ts +3 -3
  324. package/dist/utils/geometry/index.d.ts.map +1 -1
  325. package/dist/utils/geometry/index.js +6 -7
  326. package/dist/utils/is-ref-object.d.ts +3 -2
  327. package/dist/utils/is-ref-object.d.ts.map +1 -1
  328. package/dist/utils/is-ref-object.js +5 -2
  329. package/dist/utils/subscription-manager.d.ts +1 -1
  330. package/dist/utils/subscription-manager.d.ts.map +1 -1
  331. package/dist/utils/subscription-manager.js +1 -1
  332. package/dist/utils/transform.d.ts +1 -1
  333. package/dist/utils/transform.d.ts.map +1 -1
  334. package/dist/utils/transform.js +7 -6
  335. package/dist/utils/use-force-update.d.ts +1 -1
  336. package/dist/utils/use-force-update.d.ts.map +1 -1
  337. package/dist/value/index.js +1 -1
  338. package/dist/value/scroll/use-element-scroll.d.ts +4 -3
  339. package/dist/value/scroll/use-element-scroll.d.ts.map +1 -1
  340. package/dist/value/scroll/use-element-scroll.js +7 -8
  341. package/dist/value/scroll/utils.d.ts +2 -2
  342. package/dist/value/scroll/utils.d.ts.map +1 -1
  343. package/dist/value/scroll/utils.js +20 -24
  344. package/dist/value/use-combine-values.d.ts +1 -1
  345. package/dist/value/use-combine-values.d.ts.map +1 -1
  346. package/dist/value/use-spring.d.ts +2 -2
  347. package/dist/value/use-spring.d.ts.map +1 -1
  348. package/dist/value/use-spring.js +7 -12
  349. package/dist/value/use-transform.d.ts.map +1 -1
  350. package/dist/value/use-transform.js +2 -1
  351. package/dist/value/use-velocity.d.ts +1 -1
  352. package/dist/value/use-velocity.d.ts.map +1 -1
  353. package/dist/value/use-velocity.js +1 -6
  354. package/package.json +91 -84
  355. package/dist/motion/type.spec-d.d.ts +0 -2
  356. package/dist/motion/type.spec-d.d.ts.map +0 -1
  357. package/dist/render/dom/M.svelte.d.ts.map +0 -1
  358. package/dist/render/dom/create-motion-class.js +0 -10
  359. package/dist/utils/use-constant.d.ts +0 -22
  360. package/dist/utils/use-constant.d.ts.map +0 -1
  361. package/dist/utils/use-constant.js +0 -9
  362. package/dist/utils/use-isomorphic-effect.d.ts +0 -7
  363. package/dist/utils/use-isomorphic-effect.d.ts.map +0 -1
  364. package/dist/utils/use-isomorphic-effect.js +0 -7
@@ -1,5 +1,6 @@
1
1
  <!-- based on framer-motion@4.0.3,
2
2
  Copyright (c) 2018 Framer B.V. -->
3
+ <svelte:options runes />
3
4
 
4
5
  <script lang="ts">
5
6
  import { getContext } from "svelte";
@@ -16,15 +17,16 @@ Copyright (c) 2018 Framer B.V. -->
16
17
  import { AnimationType } from "../../render/utils/types.js";
17
18
  import type { Writable } from "svelte/store";
18
19
 
19
- export let props, visualElement, isCustom;
20
- $: ({ custom } = props);
20
+ let { props, visualElement, isCustom, children } = $props();
21
+ const { custom } = $derived(props);
21
22
 
22
- const presenceContext =
23
+ const presenceContext = $derived(
23
24
  getContext<Writable<PresenceContextProps>>(PresenceContext) ||
24
- PresenceContext(isCustom);
25
- const presence = usePresence(isCustom);
25
+ PresenceContext(isCustom),
26
+ );
27
+ const presence = $derived(usePresence(isCustom));
26
28
 
27
- const effect = (pres: AlwaysPresent | Present | NotPresent) => {
29
+ const _effect = (pres: AlwaysPresent | Present | NotPresent) => {
28
30
  const [isPresent, onExitComplete] = pres;
29
31
 
30
32
  const animation = visualElement.animationState?.setActive(
@@ -34,9 +36,8 @@ Copyright (c) 2018 Framer B.V. -->
34
36
  );
35
37
 
36
38
  !isPresent && animation?.then(onExitComplete);
37
- return "";
38
39
  };
39
- $: effect($presence);
40
+ $effect(() => _effect($presence));
40
41
  </script>
41
42
 
42
- <slot />
43
+ {@render children?.()}
@@ -1,32 +1,8 @@
1
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
- $$bindings?: Bindings;
4
- } & Exports;
5
- (internal: unknown, props: Props & {
6
- $$events?: Events;
7
- $$slots?: Slots;
8
- }): Exports & {
9
- $set?: any;
10
- $on?: any;
11
- };
12
- z_$$bindings?: Bindings;
13
- }
14
- type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
15
- default: any;
16
- } ? Props extends Record<string, never> ? any : {
17
- children?: any;
18
- } : {});
19
- declare const Exit: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
20
- props: any;
21
- visualElement: any;
22
- isCustom: any;
23
- }, {
24
- default: {};
25
- }>, {
26
- [evt: string]: CustomEvent<any>;
27
- }, {
28
- default: {};
29
- }, {}, string>;
30
- type Exit = InstanceType<typeof Exit>;
1
+ declare const Exit: import("svelte").Component<{
2
+ props: unknown;
3
+ visualElement: unknown;
4
+ isCustom: unknown;
5
+ children: unknown;
6
+ }, {}, "">;
31
7
  export default Exit;
32
8
  //# sourceMappingURL=Exit.svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exit.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/Exit.svelte.ts"],"names":[],"mappings":"AAqDA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId,QAAA,MAAM,IAAI;;;;;;;;;;cAAmF,CAAC;AAC5E,KAAK,IAAI,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AACxC,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Exit.svelte.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/Exit.svelte.ts"],"names":[],"mappings":"AAsDA,QAAA,MAAM,IAAI;WAhC4C,OAAO;mBAAiB,OAAO;cAAY,OAAO;cAAY,OAAO;UAgC3E,CAAC;AACjD,eAAe,IAAI,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ based on framer-motion@4.1.17,
3
+ Copyright (c) 2018 Framer B.V.
4
+ */
5
+ import type { FeatureComponents } from './types';
6
+ /**
7
+ * @public
8
+ */
9
+ declare const animations: FeatureComponents;
10
+ export { animations };
11
+ //# sourceMappingURL=animations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/animations.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,iBAAiB,EAAG,MAAM,SAAS,CAAC;AAQlD;;GAEG;AACH,QAAA,MAAM,UAAU,EAAE,iBAGjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ based on framer-motion@4.1.17,
3
+ Copyright (c) 2018 Framer B.V.
4
+ */
5
+ import type { FeatureComponents } from "./types";
6
+ /**
7
+ * @public
8
+ */
9
+ declare const drag: FeatureComponents;
10
+ export { drag };
11
+ //# sourceMappingURL=drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/drag.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAWjD;;GAEG;AACH,QAAA,MAAM,IAAI,EAAC,iBAGV,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ based on framer-motion@4.1.17,
3
+ Copyright (c) 2018 Framer B.V.
4
+ */
5
+ import type { FeatureComponents } from "./types";
6
+ /**
7
+ * @public
8
+ */
9
+ declare const gestureAnimations: FeatureComponents;
10
+ export { gestureAnimations };
11
+ //# sourceMappingURL=gestures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/gestures.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAUjD;;GAEG;AACH,QAAA,MAAM,iBAAiB,EAAE,iBAIxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -4,7 +4,7 @@ Copyright (c) 2018 Framer B.V. -->
4
4
  <script lang="ts" context="module">
5
5
  const progressTarget = 1000;
6
6
 
7
- function hasMoved(a: { x: any; y: any; }, b: { x: any; y: any; }) {
7
+ function hasMoved(a: AxisBox2D, b: AxisBox2D) {
8
8
  return (
9
9
  !isZeroBox(a) &&
10
10
  !isZeroBox(b) &&
@@ -12,12 +12,12 @@ Copyright (c) 2018 Framer B.V. -->
12
12
  );
13
13
  }
14
14
 
15
- const zeroAxis = { min: 0, max: 0 };
16
- function isZeroBox(a: { x: any; y: any; }) {
15
+ const zeroAxis = { min: 0, max: 0 } satisfies Axis;
16
+ function isZeroBox(a: AxisBox2D) {
17
17
  return axisIsEqual(a.x, zeroAxis) && axisIsEqual(a.y, zeroAxis);
18
18
  }
19
19
 
20
- function axisIsEqual(a: { min: any; max: any; }, b: { min: any; max: any; }) {
20
+ function axisIsEqual(a: Axis, b: Axis) {
21
21
  return a.min === b.min && a.max === b.max;
22
22
  }
23
23
 
@@ -38,8 +38,10 @@ Copyright (c) 2018 Framer B.V. -->
38
38
  import { eachAxis } from "../../../utils/each-axis.js";
39
39
  import { axisBox } from "../../../utils/geometry/index.js";
40
40
  import { tweenAxis } from "./utils";
41
+ import type { Axis, AxisBox2D } from "../../../types/geometry.js";
42
+ import type { VisualElement } from "../../../render/types.js";
41
43
 
42
- export let visualElement,
44
+ export let visualElement: VisualElement,
43
45
  //initial = undefined,
44
46
  //style = undefined,
45
47
  //transformTemplate = undefined,
@@ -122,31 +124,13 @@ Copyright (c) 2018 Framer B.V. -->
122
124
  let stopAxisAnimation = {
123
125
  x: undefined,
124
126
  y: undefined,
125
- };
126
-
127
- let unsubLayoutReady: () => void;
127
+ } as any satisfies AxisBox2D;
128
128
 
129
129
  let isAnimatingTree = false;
130
130
 
131
- onMount(() => {
132
- visualElement.animateMotionValue = startAnimation;
133
- visualElement.enableLayoutProjection();
134
- unsubLayoutReady = visualElement.onLayoutUpdate(animateF);
135
- visualElement.layoutSafeToRemove = function () {
136
- safeToRemove();
137
- };
138
-
139
- addScaleCorrection(defaultScaleCorrectors);
140
- });
141
-
142
- onDestroy(() => {
143
- unsubLayoutReady();
144
- eachAxis((axis) => stopAxisAnimation[axis]?.());
145
- });
146
-
147
131
  const animateF = (
148
- target: { [x: string]: { max: any; }; x?: any; y?: any; },
149
- origin: { [x: string]: any; x?: any; y?: any; },
132
+ target: AxisBox2D,
133
+ origin: AxisBox2D,
150
134
  {
151
135
  originBox,
152
136
  targetBox,
@@ -154,7 +138,7 @@ Copyright (c) 2018 Framer B.V. -->
154
138
  shouldStackAnimate,
155
139
  onComplete,
156
140
  ...config
157
- } = {}
141
+ } = {} as any,
158
142
  ) => {
159
143
  /**
160
144
  * Early return if we've been instructed not to animate this render.
@@ -195,7 +179,7 @@ Copyright (c) 2018 Framer B.V. -->
195
179
  if (visualElement.projection.isTargetLocked) {
196
180
  return;
197
181
  } else if (visibilityAction !== undefined) {
198
- visualElement.setVisibility(visibilityAction === VisibilityAction.Show);
182
+ visualElement.setVisibility(visibilityAction === visibilityAction.Show);
199
183
  } else if (boxHasMoved) {
200
184
  // If the box has moved, animate between it's current visual state and its
201
185
  // final state
@@ -206,7 +190,7 @@ Copyright (c) 2018 Framer B.V. -->
206
190
  return visualElement.setProjectionTargetAxis(
207
191
  axis,
208
192
  target[axis].min,
209
- target[axis].max
193
+ target[axis].max,
210
194
  );
211
195
  }
212
196
  });
@@ -232,26 +216,26 @@ Copyright (c) 2018 Framer B.V. -->
232
216
  * API to accept more custom animations like
233
217
  */
234
218
  const animateAxis = (
235
- axis: string,
219
+ axis: "x" | "y",
236
220
  target: Axis,
237
221
  origin: Axis,
238
- { transition: _transition } = {}
222
+ { transition: _transition } = {} as any,
239
223
  ) => {
240
224
  stopAxisAnimation[axis]?.();
241
225
  /**
242
226
  * If we're not animating to a new target, don't run this animation
243
227
  */
244
228
  if (
245
- isAnimating[axis] &&
246
- axisIsEqual(target, currentAnimationTarget[axis])
229
+ (isAnimating as any)[axis] &&
230
+ axisIsEqual(target, (currentAnimationTarget as any)[axis])
247
231
  ) {
248
232
  return;
249
233
  }
250
234
 
251
235
  stopAxisAnimation[axis]?.();
252
- isAnimating[axis] = true;
236
+ (isAnimating as any)[axis] = true;
253
237
 
254
- const _frameTarget = frameTarget[axis];
238
+ const _frameTarget = (frameTarget as any)[axis];
255
239
  const layoutProgress = visualElement.getProjectionAnimationProgress()[axis];
256
240
 
257
241
  /**
@@ -275,7 +259,7 @@ Copyright (c) 2018 Framer B.V. -->
275
259
  visualElement.setProjectionTargetAxis(
276
260
  axis,
277
261
  _frameTarget.min,
278
- _frameTarget.max
262
+ _frameTarget.max,
279
263
  );
280
264
  };
281
265
 
@@ -289,12 +273,12 @@ Copyright (c) 2018 Framer B.V. -->
289
273
  const unsubscribeProgress = layoutProgress.onChange(frame);
290
274
 
291
275
  stopAxisAnimation[axis] = () => {
292
- isAnimating[axis] = false;
276
+ (isAnimating as any)[axis] = false;
293
277
  layoutProgress.stop();
294
278
  unsubscribeProgress();
295
279
  };
296
280
 
297
- currentAnimationTarget[axis] = target;
281
+ (currentAnimationTarget as any)[axis] = target;
298
282
 
299
283
  const layoutTransition =
300
284
  _transition ||
@@ -306,9 +290,30 @@ Copyright (c) 2018 Framer B.V. -->
306
290
  axis === "x" ? "layoutX" : "layoutY",
307
291
  layoutProgress,
308
292
  progressTarget,
309
- layoutTransition && getValueTransition(layoutTransition, "layout")
293
+ layoutTransition && getValueTransition(layoutTransition, "layout"),
310
294
  ).then(stopAxisAnimation[axis]);
311
295
 
312
296
  return animation;
313
297
  };
298
+
299
+ const subLayoutReady = () => {
300
+ visualElement.animateMotionValue = startAnimation;
301
+ visualElement.enableLayoutProjection();
302
+ const unsubLayoutReady = visualElement.onLayoutUpdate(animateF);
303
+ visualElement.layoutSafeToRemove = function () {
304
+ safeToRemove();
305
+ };
306
+
307
+ addScaleCorrection(defaultScaleCorrectors);
308
+
309
+ return () => {
310
+ unsubLayoutReady();
311
+ eachAxis((axis) => stopAxisAnimation[axis]?.());
312
+ };
313
+ };
314
+
315
+ onMount(subLayoutReady);
316
+ // beforeUpdate(subLayoutReady);
317
+
318
+ // afterUpdate(subLayoutReady);
314
319
  </script>
@@ -1,3 +1,4 @@
1
+ import type { VisualElement } from "../../../render/types.js";
1
2
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
3
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
4
  $$bindings?: Bindings;
@@ -12,7 +13,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
12
13
  z_$$bindings?: Bindings;
13
14
  }
14
15
  declare const Animate: $$__sveltets_2_IsomorphicComponent<{
15
- visualElement: any;
16
+ visualElement: VisualElement;
16
17
  layout?: undefined;
17
18
  safeToRemove: any;
18
19
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"Animate.svelte.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/motion/features/layout/Animate.svelte.ts"],"names":[],"mappings":"AAwUA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,OAAO;;;;;;kBAA6E,CAAC;AACzE,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Animate.svelte.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/motion/features/layout/Animate.svelte.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAwSvE,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,OAAO;mBAVmG,aAAa;;;;;kBAUnC,CAAC;AACzE,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
@@ -3,7 +3,7 @@ Copyright (c) 2018 Framer B.V. -->
3
3
 
4
4
  <script lang="ts">
5
5
  import { afterUpdate, beforeUpdate, getContext, onMount } from "svelte";
6
- import { get } from "svelte/store";
6
+ import { get, type Writable } from "svelte/store";
7
7
  import {
8
8
  ScaleCorrectionContext,
9
9
  ScaleCorrectionParentContext,
@@ -13,9 +13,11 @@ Copyright (c) 2018 Framer B.V. -->
13
13
 
14
14
  export let visualElement, syncLayout, framerSyncLayout, update;
15
15
 
16
- const scaleCorrectionContext: any = getContext(ScaleCorrectionContext);
17
- const scaleCorrectionParentContext: any = getContext(
18
- ScaleCorrectionParentContext
16
+ const scaleCorrectionContext = getContext<Writable<any[]>>(
17
+ ScaleCorrectionContext,
18
+ );
19
+ const scaleCorrectionParentContext = getContext<Writable<any[]>>(
20
+ ScaleCorrectionParentContext,
19
21
  );
20
22
 
21
23
  onMount(() => {
@@ -72,7 +74,7 @@ Copyright (c) 2018 Framer B.V. -->
72
74
  /* Second part of the updater calling in child layouts first.*/
73
75
  const scc = get(scaleCorrectionContext);
74
76
 
75
- scc.forEach((v, i) => {
77
+ scc.forEach((v: any, i) => {
76
78
  v.afterU?.(true);
77
79
  });
78
80
 
@@ -92,7 +94,7 @@ Copyright (c) 2018 Framer B.V. -->
92
94
  updater,
93
95
  afterU,
94
96
  },
95
- ])
97
+ ]),
96
98
  );
97
99
  afterUpdate(afterU);
98
100
  </script>
@@ -1 +1 @@
1
- {"version":3,"file":"Measure.svelte.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/motion/features/layout/Measure.svelte.ts"],"names":[],"mappings":"AA6GA,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,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AAC;AACzE,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ based on framer-motion@4.1.17,
3
+ Copyright (c) 2018 Framer B.V.
4
+ */
5
+ import type { FeatureComponents } from '../types';
6
+ declare var layoutAnimations: FeatureComponents;
7
+ export { layoutAnimations };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/motion-start/motion/features/layout/index.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAWlD,QAAA,IAAI,gBAAgB,EAAE,iBAGrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -6,6 +6,6 @@ import { AnimateLayoutContextProvider } from './Animate.js';
6
6
  import { MeasureContextProvider } from './Measure.js';
7
7
  var layoutAnimations = {
8
8
  measureLayout: MeasureContextProvider,
9
- layoutAnimation: AnimateLayoutContextProvider
9
+ layoutAnimation: AnimateLayoutContextProvider,
10
10
  };
11
11
  export { layoutAnimations };
@@ -2,9 +2,9 @@
2
2
  based on framer-motion@4.1.17,
3
3
  Copyright (c) 2018 Framer B.V.
4
4
  */
5
- import type { Component } from 'svelte';
5
+ import type { Component, Snippet } from 'svelte';
6
6
  import type { CreateVisualElement, VisualElement } from '../../render/types';
7
- import type { MotionProps } from '../types';
7
+ import type { MotionProps, Ref } from '../types';
8
8
  import type { VisualState } from '../utils/use-visual-state';
9
9
  /**
10
10
  * @public
@@ -12,6 +12,8 @@ import type { VisualState } from '../utils/use-visual-state';
12
12
  export interface FeatureProps {
13
13
  props: MotionProps;
14
14
  visualElement: VisualElement;
15
+ isCustom: any;
16
+ children: Snippet;
15
17
  }
16
18
  export type FeatureNames = {
17
19
  animation: true;
@@ -50,5 +52,5 @@ export type LazyFeatureBundle = () => Promise<FeatureBundle>;
50
52
  export type FeatureDefinitions = {
51
53
  [K in keyof FeatureNames]: FeatureDefinition;
52
54
  };
53
- export type RenderComponent<Instance, RenderState> = (Component: string | React.ComponentType, props: MotionProps, ref: React.Ref<Instance>, visualState: VisualState<Instance, RenderState>, isStatic: boolean) => any;
55
+ export type RenderComponent<Instance, RenderState> = (Component: string | Component, props: MotionProps, ref: Ref<Instance>, visualState: VisualState<Instance, RenderState>, isStatic: boolean) => any;
54
56
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/motion-start/motion/features/types.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,WAAW,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;CAC7B;AACD,MAAM,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,EAAE,IAAI,CAAC;IACV,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,IAAI,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AACvD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,SAAS,EAAE,CAAC,KAAK,EAAE,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AAE,mBAAmB,CAAC,GAAG,CAAC,CAAC;CACnC;AACD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG;KAC/B,CAAC,IAAI,MAAM,YAAY,GAAG,iBAAiB;CAC5C,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,WAAW,IAAI,CACpD,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,GAAG,CAAC,QAAQ,CAAC,EAClB,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,EAC/C,QAAQ,EAAE,OAAO,KACb,GAAG,CAAC"}
@@ -2,10 +2,10 @@
2
2
  based on framer-motion@4.1.17,
3
3
  Copyright (c) 2018 Framer B.V.
4
4
  */
5
- import type { CreateVisualElement } from "../render/types";
6
- import type { FeatureBundle, RenderComponent } from "./features/types";
7
- import type { UseVisualState } from "./utils/use-visual-state";
8
- export type { MotionProps } from "./types";
5
+ import type { CreateVisualElement } from '../render/types';
6
+ import type { FeatureBundle, RenderComponent } from './features/types';
7
+ import type { UseVisualState } from './utils/use-visual-state';
8
+ export type { MotionProps } from './types';
9
9
  export interface MotionComponentConfig<Instance, RenderState> {
10
10
  preloadedFeatures?: FeatureBundle;
11
11
  createVisualElement?: CreateVisualElement<Instance>;
@@ -13,8 +13,8 @@ export interface MotionComponentConfig<Instance, RenderState> {
13
13
  useVisualState: UseVisualState<Instance, RenderState>;
14
14
  Component: string | Component;
15
15
  }
16
- import type { MotionProps } from "./types";
17
- import type { Component } from "svelte";
16
+ import type { MotionProps } from './types';
17
+ import type { Component } from 'svelte';
18
18
  /**
19
19
  * Create a `motion` component.
20
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/index.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK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;IAC3D,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACpD,SAAS,EAAE,eAAe,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACtD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAQD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAAI,KAAK,SAAS,EAAE,EAAE,QAAQ,EAAE,WAAW,4HAM1E,qBAAqB,CAAC,QAAQ,EAAE,WAAW,CAAC,KAAG,SAAS,CAAC,KAAK,GAAG,WAAW,CAiB9E,CAAC"}
@@ -3,8 +3,7 @@ based on framer-motion@4.0.3,
3
3
  Copyright (c) 2018 Framer B.V.
4
4
  */
5
5
  import Motion from './Motion.svelte';
6
- import { loadFeatures } from "./features/definitions";
7
- // import { asClassComponent, createClassComponent } from "svelte/legacy";
6
+ import { loadFeatures } from './features/definitions';
8
7
  /**
9
8
  * Create a `motion` component.
10
9
  *
@@ -18,6 +17,7 @@ import { loadFeatures } from "./features/definitions";
18
17
  */
19
18
  export const createMotionComponent = ({ preloadedFeatures, createVisualElement, useRender: forwardMotionProps, useVisualState: visualStateConfig, Component, }) => {
20
19
  preloadedFeatures && loadFeatures(preloadedFeatures);
20
+ // @ts-expect-error
21
21
  return class MotionComponent extends Motion {
22
22
  constructor(options) {
23
23
  const props = options.props;
@@ -27,9 +27,9 @@ export const createMotionComponent = ({ preloadedFeatures, createVisualElement,
27
27
  createVisualElement,
28
28
  forwardMotionProps,
29
29
  Component,
30
- visualStateConfig
30
+ visualStateConfig,
31
31
  };
32
32
  super({ component: Motion, ...options });
33
- }
33
+ } // @ts-expect-error
34
34
  };
35
35
  };
@@ -2,14 +2,17 @@
2
2
  based on framer-motion@4.1.17,
3
3
  Copyright (c) 2018 Framer B.V.
4
4
  */
5
- import type { CSSProperties } from "react";
6
- import type { AnimationControls } from "../animation/types";
7
- import type { DraggableProps } from "../gestures/drag/types";
8
- import type { FocusHandlers, HoverHandlers, PanHandlers, TapHandlers } from "../gestures/types";
9
- import type { VisualElementLifecycles } from "../render/utils/lifecycles";
10
- import type { MakeCustomValueType, Omit, Target, TargetAndTransition, Transition, Variants } from "../types";
11
- import { MotionValue } from "../value";
12
- import type { LayoutProps } from "./features/layout/types";
5
+ import type { Properties } from 'csstype';
6
+ import type { AnimationControls } from '../animation/types';
7
+ import type { DraggableProps } from '../gestures/drag/types';
8
+ import type { FocusHandlers, HoverHandlers, PanHandlers, TapHandlers } from '../gestures/types';
9
+ import type { VisualElementLifecycles } from '../render/utils/lifecycles.ts';
10
+ import type { MakeCustomValueType, Omit, Target, TargetAndTransition, Transition, Variants } from '../types';
11
+ import type { MotionValue } from '../value';
12
+ import type { LayoutProps } from './features/layout/types';
13
+ export type Ref<T> = (instance: T | null) => void | {
14
+ current: T | null;
15
+ } | null;
13
16
  export type MotionStyleProp = string | number | MotionValue;
14
17
  /**
15
18
  * Either a string, or array of strings, that reference variants defined via the `variants` prop.
@@ -61,7 +64,7 @@ export interface CustomStyles {
61
64
  export type MakeMotion<T> = MakeCustomValueType<{
62
65
  [K in keyof T]: T[K] | MotionValue<number> | MotionValue<string> | MotionValue<any>;
63
66
  }>;
64
- export type MotionCSS = MakeMotion<Omit<CSSProperties, "rotate" | "scale" | "perspective">>;
67
+ export type MotionCSS = MakeMotion<Omit<Properties, 'rotate' | 'scale' | 'perspective'>>;
65
68
  /**
66
69
  * @public
67
70
  */
@@ -215,6 +218,7 @@ export interface MotionAdvancedProps {
215
218
  * @public
216
219
  */
217
220
  export interface MotionProps extends AnimationProps, VisualElementLifecycles, PanHandlers, TapHandlers, HoverHandlers, FocusHandlers, DraggableProps, LayoutProps, MotionAdvancedProps {
221
+ transformValues?: any;
218
222
  /**
219
223
  * Properties, variant label or array of variant labels to start in.
220
224
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/types.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC7G,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;AAC5D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAC9C,MAAM,WAAW,mBAAmB;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAA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