framer-motion 6.2.5 → 6.2.6

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
@@ -4351,9 +4351,15 @@ var gestureAnimations = {
4351
4351
 
4352
4352
  var counter = 0;
4353
4353
  var incrementId = function () { return counter++; };
4354
- var useId = React__namespace.useId
4355
- ? React__namespace.useId
4356
- : function () { return useConstant(incrementId); };
4354
+ var useId = function () { return useConstant(incrementId); };
4355
+ /**
4356
+ * Ideally we'd use the following code to support React 18 optionally.
4357
+ * But this fairly fails in Webpack (otherwise treeshaking wouldn't work at all).
4358
+ * Need to come up with a different way of figuring this out.
4359
+ */
4360
+ // export const useId = (React as any).useId
4361
+ // ? (React as any).useId
4362
+ // : () => useConstant(incrementId)
4357
4363
 
4358
4364
  /**
4359
4365
  * When a component is the child of `AnimatePresence`, it can use `usePresence`
@@ -1,10 +1,15 @@
1
- import * as React from 'react';
2
1
  import { useConstant } from './use-constant.mjs';
3
2
 
4
3
  var counter = 0;
5
4
  var incrementId = function () { return counter++; };
6
- var useId = React.useId
7
- ? React.useId
8
- : function () { return useConstant(incrementId); };
5
+ var useId = function () { return useConstant(incrementId); };
6
+ /**
7
+ * Ideally we'd use the following code to support React 18 optionally.
8
+ * But this fairly fails in Webpack (otherwise treeshaking wouldn't work at all).
9
+ * Need to come up with a different way of figuring this out.
10
+ */
11
+ // export const useId = (React as any).useId
12
+ // ? (React as any).useId
13
+ // : () => useConstant(incrementId)
9
14
 
10
15
  export { useId };
@@ -5584,9 +5584,15 @@
5584
5584
 
5585
5585
  var counter = 0;
5586
5586
  var incrementId = function () { return counter++; };
5587
- var useId = React__namespace.useId
5588
- ? React__namespace.useId
5589
- : function () { return useConstant(incrementId); };
5587
+ var useId = function () { return useConstant(incrementId); };
5588
+ /**
5589
+ * Ideally we'd use the following code to support React 18 optionally.
5590
+ * But this fairly fails in Webpack (otherwise treeshaking wouldn't work at all).
5591
+ * Need to come up with a different way of figuring this out.
5592
+ */
5593
+ // export const useId = (React as any).useId
5594
+ // ? (React as any).useId
5595
+ // : () => useConstant(incrementId)
5590
5596
 
5591
5597
  /**
5592
5598
  * When a component is the child of `AnimatePresence`, it can use `usePresence`