motion-dom 13.5.1 → 14.0.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/dist/cjs/index.js CHANGED
@@ -2733,16 +2733,13 @@ class NativeAnimation extends WithPromise {
2733
2733
  /**
2734
2734
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
2735
2735
  */
2736
- attachTimeline({ timeline, onAttach, observe,
2737
- // Deprecated rangeStart/rangeEnd from framer-motion 13.0–13.4. Removed in v14.
2738
- ...range }) {
2736
+ attachTimeline({ timeline, onAttach, observe, }) {
2739
2737
  if (this.allowFlatten) {
2740
2738
  this.animation.effect?.updateTiming({ easing: "linear" });
2741
2739
  }
2742
2740
  this.animation.onfinish = null;
2743
2741
  if (timeline && supportsScrollTimeline()) {
2744
2742
  this.animation.timeline = timeline;
2745
- Object.assign(this.animation, range);
2746
2743
  onAttach?.(this.animation);
2747
2744
  return motionUtils.noop;
2748
2745
  }
@@ -6054,25 +6051,6 @@ function resize(a, b) {
6054
6051
  return typeof a === "function" ? resizeWindow(a) : resizeElement(a, b);
6055
6052
  }
6056
6053
 
6057
- /**
6058
- * @deprecated Kept because framer-motion 13.0–13.4 import it from
6059
- * motion-dom with a ^ range. Removed in v14.
6060
- */
6061
- function observeTimeline(update, timeline) {
6062
- let prevProgress;
6063
- const onFrame = () => {
6064
- const { currentTime } = timeline;
6065
- const percentage = currentTime === null ? 0 : currentTime.value;
6066
- const progress = percentage / 100;
6067
- if (prevProgress !== progress) {
6068
- update(progress);
6069
- }
6070
- prevProgress = progress;
6071
- };
6072
- frame.preUpdate(onFrame, true);
6073
- return () => cancelFrame(onFrame);
6074
- }
6075
-
6076
6054
  const statsBuffer = {
6077
6055
  value: null,
6078
6056
  addProjectionMetrics: null,
@@ -11702,7 +11680,6 @@ exports.motionValue = motionValue;
11702
11680
  exports.nodeGroup = nodeGroup;
11703
11681
  exports.number = number;
11704
11682
  exports.numberValueTypes = numberValueTypes;
11705
- exports.observeTimeline = observeTimeline;
11706
11683
  exports.optimizedAppearDataAttribute = optimizedAppearDataAttribute;
11707
11684
  exports.optimizedAppearDataId = optimizedAppearDataId;
11708
11685
  exports.originProps = originProps;