framer-motion 12.23.11 → 13.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -65
- package/dist/cjs/client.js +1 -2
- package/dist/cjs/{feature-bundle-PNQ-8QDo.js → feature-bundle-C8gfmTBU.js} +0 -1
- package/dist/cjs/index.js +1 -2
- package/dist/dom.js +1 -1
- package/dist/es/animation/hooks/use-animate-style.mjs +1 -0
- package/dist/es/animation/hooks/use-animate.mjs +1 -0
- package/dist/es/animation/hooks/use-animated-state.mjs +1 -0
- package/dist/es/animation/hooks/use-animation.mjs +1 -0
- package/dist/es/client.mjs +0 -2
- package/dist/es/components/AnimatePresence/use-presence-data.mjs +1 -0
- package/dist/es/components/AnimatePresence/use-presence.mjs +1 -0
- package/dist/es/components/AnimateSharedLayout.mjs +1 -0
- package/dist/es/context/DeprecatedLayoutGroupContext.mjs +1 -0
- package/dist/es/context/MotionContext/create.mjs +1 -0
- package/dist/es/events/use-dom-event.mjs +1 -0
- package/dist/es/index.mjs +0 -2
- package/dist/es/m.mjs +0 -1
- package/dist/es/motion/utils/use-motion-ref.mjs +1 -0
- package/dist/es/motion/utils/use-visual-element.mjs +1 -0
- package/dist/es/motion/utils/use-visual-state.mjs +1 -0
- package/dist/es/render/dom/use-render.mjs +1 -0
- package/dist/es/render/html/use-html-visual-state.mjs +1 -0
- package/dist/es/render/html/use-props.mjs +1 -0
- package/dist/es/render/svg/use-props.mjs +1 -0
- package/dist/es/render/svg/use-svg-visual-state.mjs +1 -0
- package/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +1 -0
- package/dist/es/utils/reduced-motion/use-reduced-motion.mjs +1 -0
- package/dist/es/utils/use-animation-frame.mjs +1 -0
- package/dist/es/utils/use-constant.mjs +1 -0
- package/dist/es/utils/use-cycle.mjs +1 -0
- package/dist/es/utils/use-force-update.mjs +1 -0
- package/dist/es/utils/use-in-view.mjs +1 -0
- package/dist/es/utils/use-instant-transition.mjs +1 -0
- package/dist/es/utils/use-is-mounted.mjs +1 -0
- package/dist/es/utils/use-isomorphic-effect.mjs +1 -0
- package/dist/es/utils/use-motion-value-event.mjs +1 -0
- package/dist/es/utils/use-page-in-view.mjs +1 -0
- package/dist/es/utils/use-unmount-effect.mjs +1 -0
- package/dist/es/value/use-combine-values.mjs +1 -0
- package/dist/es/value/use-computed.mjs +1 -0
- package/dist/es/value/use-inverted-scale.mjs +1 -0
- package/dist/es/value/use-motion-template.mjs +1 -0
- package/dist/es/value/use-motion-value.mjs +1 -0
- package/dist/es/value/use-scroll.mjs +1 -0
- package/dist/es/value/use-spring.mjs +1 -0
- package/dist/es/value/use-time.mjs +1 -0
- package/dist/es/value/use-transform.mjs +1 -0
- package/dist/es/value/use-velocity.mjs +1 -0
- package/dist/es/value/use-will-change/index.mjs +1 -0
- package/dist/framer-motion.dev.js +5 -3
- package/dist/framer-motion.js +1 -1
- package/dist/types/client.d.ts +2 -4
- package/dist/types/index.d.ts +78 -3
- package/dist/{types.d-Cjd591yU.d.ts → types.d-C7Th3txw.d.ts} +3 -79
- package/package.json +3 -3
|
@@ -4742,7 +4742,7 @@
|
|
|
4742
4742
|
},
|
|
4743
4743
|
};
|
|
4744
4744
|
|
|
4745
|
-
function
|
|
4745
|
+
function getViewAnimationLayerInfo(pseudoElement) {
|
|
4746
4746
|
const match = pseudoElement.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);
|
|
4747
4747
|
if (!match)
|
|
4748
4748
|
return null;
|
|
@@ -4861,7 +4861,7 @@
|
|
|
4861
4861
|
const { pseudoElement } = effect;
|
|
4862
4862
|
if (!pseudoElement)
|
|
4863
4863
|
continue;
|
|
4864
|
-
const name =
|
|
4864
|
+
const name = getViewAnimationLayerInfo(pseudoElement);
|
|
4865
4865
|
if (!name)
|
|
4866
4866
|
continue;
|
|
4867
4867
|
const targetDefinition = targets.get(name.layer);
|
|
@@ -14061,7 +14061,6 @@
|
|
|
14061
14061
|
exports.DOMKeyframesResolver = DOMKeyframesResolver;
|
|
14062
14062
|
exports.DeprecatedLayoutGroupContext = DeprecatedLayoutGroupContext;
|
|
14063
14063
|
exports.DragControls = DragControls;
|
|
14064
|
-
exports.FlatTree = FlatTree;
|
|
14065
14064
|
exports.GroupAnimation = GroupAnimation;
|
|
14066
14065
|
exports.GroupAnimationWithThen = GroupAnimationWithThen;
|
|
14067
14066
|
exports.JSAnimation = JSAnimation;
|
|
@@ -14103,6 +14102,7 @@
|
|
|
14103
14102
|
exports.animationMapKey = animationMapKey;
|
|
14104
14103
|
exports.animations = animations;
|
|
14105
14104
|
exports.anticipate = anticipate;
|
|
14105
|
+
exports.applyGeneratorOptions = applyGeneratorOptions;
|
|
14106
14106
|
exports.applyPxDefaults = applyPxDefaults;
|
|
14107
14107
|
exports.attachSpring = attachSpring;
|
|
14108
14108
|
exports.attrEffect = attrEffect;
|
|
@@ -14166,6 +14166,8 @@
|
|
|
14166
14166
|
exports.getValueAsType = getValueAsType;
|
|
14167
14167
|
exports.getValueTransition = getValueTransition$1;
|
|
14168
14168
|
exports.getVariableValue = getVariableValue;
|
|
14169
|
+
exports.getViewAnimationLayerInfo = getViewAnimationLayerInfo;
|
|
14170
|
+
exports.getViewAnimations = getViewAnimations;
|
|
14169
14171
|
exports.hasWarned = hasWarned$1;
|
|
14170
14172
|
exports.hex = hex;
|
|
14171
14173
|
exports.hover = hover;
|