framer-motion 12.23.9 → 12.23.10

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var featureBundle = require('./feature-bundle-DrbfNaqu.js');
5
+ var featureBundle = require('./feature-bundle-CQ-jKhGL.js');
6
6
  require('react');
7
7
  require('motion-dom');
8
8
  require('motion-utils');
@@ -5826,6 +5826,10 @@ class PanGesture extends Feature {
5826
5826
  /**
5827
5827
  * Track whether we've taken any snapshots yet. If not,
5828
5828
  * we can safely skip notification of didUpdate.
5829
+ *
5830
+ * Difficult to capture in a test but to prevent flickering
5831
+ * we must set this to true either on update or unmount.
5832
+ * Running `next-env/layout-id` in Safari will show this behaviour if broken.
5829
5833
  */
5830
5834
  let hasTakenAnySnapshot = false;
5831
5835
  class MeasureLayoutWithContext extends React.Component {
@@ -5914,6 +5918,7 @@ class MeasureLayoutWithContext extends React.Component {
5914
5918
  componentWillUnmount() {
5915
5919
  const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;
5916
5920
  const { projection } = visualElement;
5921
+ hasTakenAnySnapshot = true;
5917
5922
  if (projection) {
5918
5923
  projection.scheduleCheckAfterUnmount();
5919
5924
  if (layoutGroup && layoutGroup.group)
package/dist/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React = require('react');
7
- var featureBundle = require('./feature-bundle-DrbfNaqu.js');
7
+ var featureBundle = require('./feature-bundle-CQ-jKhGL.js');
8
8
  var motionDom = require('motion-dom');
9
9
  var motionUtils = require('motion-utils');
10
10
 
@@ -13,6 +13,10 @@ import { addScaleCorrector } from '../../../projection/styles/scale-correction.m
13
13
  /**
14
14
  * Track whether we've taken any snapshots yet. If not,
15
15
  * we can safely skip notification of didUpdate.
16
+ *
17
+ * Difficult to capture in a test but to prevent flickering
18
+ * we must set this to true either on update or unmount.
19
+ * Running `next-env/layout-id` in Safari will show this behaviour if broken.
16
20
  */
17
21
  let hasTakenAnySnapshot = false;
18
22
  class MeasureLayoutWithContext extends Component {
@@ -101,6 +105,7 @@ class MeasureLayoutWithContext extends Component {
101
105
  componentWillUnmount() {
102
106
  const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;
103
107
  const { projection } = visualElement;
108
+ hasTakenAnySnapshot = true;
104
109
  if (projection) {
105
110
  projection.scheduleCheckAfterUnmount();
106
111
  if (layoutGroup && layoutGroup.group)
@@ -11343,6 +11343,10 @@
11343
11343
  /**
11344
11344
  * Track whether we've taken any snapshots yet. If not,
11345
11345
  * we can safely skip notification of didUpdate.
11346
+ *
11347
+ * Difficult to capture in a test but to prevent flickering
11348
+ * we must set this to true either on update or unmount.
11349
+ * Running `next-env/layout-id` in Safari will show this behaviour if broken.
11346
11350
  */
11347
11351
  let hasTakenAnySnapshot = false;
11348
11352
  class MeasureLayoutWithContext extends React$1.Component {
@@ -11431,6 +11435,7 @@
11431
11435
  componentWillUnmount() {
11432
11436
  const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;
11433
11437
  const { projection } = visualElement;
11438
+ hasTakenAnySnapshot = true;
11434
11439
  if (projection) {
11435
11440
  projection.scheduleCheckAfterUnmount();
11436
11441
  if (layoutGroup && layoutGroup.group)