motion-v 0.12.0-beta.1 → 0.12.0-beta.2

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.
package/dist/cjs/index.js CHANGED
@@ -8173,7 +8173,7 @@ function animateUpdates({
8173
8173
  else
8174
8174
  animationOptions = resolveStateAnimation.call(this, controlActiveState);
8175
8175
  const factories = createAnimationFactories.call(this, prevTarget, animationOptions, controlDelay);
8176
- const { getChildAnimations, childAnimations } = setupChildAnimations.call(this, transition, this.activeStates, isFallback);
8176
+ const { getChildAnimations, childAnimations } = setupChildAnimations.call(this, animationOptions, this.activeStates, isFallback);
8177
8177
  return executeAnimations.call(this, {
8178
8178
  factories,
8179
8179
  getChildAnimations,
@@ -8237,7 +8237,7 @@ function createAnimationFactories(prevTarget, animationOptions, controlDelay) {
8237
8237
  { [key]: keyValue },
8238
8238
  {
8239
8239
  ...animationOptions,
8240
- delay: (((_a2 = animationOptions[key]) == null ? void 0 : _a2.delay) || (animationOptions == null ? void 0 : animationOptions.delay) || 0) + controlDelay
8240
+ delay: (((_a2 = animationOptions == null ? void 0 : animationOptions[key]) == null ? void 0 : _a2.delay) || (animationOptions == null ? void 0 : animationOptions.delay) || 0) + controlDelay
8241
8241
  }
8242
8242
  );
8243
8243
  });
@@ -8397,7 +8397,10 @@ class MotionState {
8397
8397
  this.updateOptions();
8398
8398
  this.featureManager.mount();
8399
8399
  if (!notAnimate && this.options.animate) {
8400
- this.animateUpdates();
8400
+ if (this.visualElement.type === "svg") {
8401
+ this.visualElement.updateDimensions();
8402
+ }
8403
+ this.startAnimation();
8401
8404
  }
8402
8405
  if (this.options.layoutId) {
8403
8406
  mountedLayoutIds.add(this.options.layoutId);