framer-motion 7.10.2 → 8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-motion",
3
- "version": "7.10.2",
3
+ "version": "8.0.0",
4
4
  "description": "A simple and powerful React animation library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",
@@ -72,7 +72,7 @@
72
72
  "bundlesize": [
73
73
  {
74
74
  "path": "./dist/size-rollup-motion.js",
75
- "maxSize": "29.6 kB"
75
+ "maxSize": "29.30 kB"
76
76
  },
77
77
  {
78
78
  "path": "./dist/size-rollup-m.js",
@@ -80,11 +80,11 @@
80
80
  },
81
81
  {
82
82
  "path": "./dist/size-rollup-dom-animation.js",
83
- "maxSize": "14.76kb"
83
+ "maxSize": "14.53 kB"
84
84
  },
85
85
  {
86
86
  "path": "./dist/size-rollup-dom-max.js",
87
- "maxSize": "25.49 kB"
87
+ "maxSize": "25.25 kB"
88
88
  },
89
89
  {
90
90
  "path": "./dist/size-webpack-m.js",
@@ -92,12 +92,12 @@
92
92
  },
93
93
  {
94
94
  "path": "./dist/size-webpack-dom-animation.js",
95
- "maxSize": "19 kB"
95
+ "maxSize": "18.7 kB"
96
96
  },
97
97
  {
98
98
  "path": "./dist/size-webpack-dom-max.js",
99
- "maxSize": "30.5kB"
99
+ "maxSize": "30.24kB"
100
100
  }
101
101
  ],
102
- "gitHead": "bb7ee043bff53c2a817c599805d6d3e71308b640"
102
+ "gitHead": "f58fea876198895716a776550ec6fbf0813ecaad"
103
103
  }
@@ -1,8 +0,0 @@
1
- import { isBrowser } from '../utils/is-browser.mjs';
2
-
3
- // We check for event support via functions in case they've been mocked by a testing suite.
4
- const supportsPointerEvents = () => isBrowser && window.onpointerdown === null;
5
- const supportsTouchEvents = () => isBrowser && window.ontouchstart === null;
6
- const supportsMouseEvents = () => isBrowser && window.onmousedown === null;
7
-
8
- export { supportsMouseEvents, supportsPointerEvents, supportsTouchEvents };
@@ -1,13 +0,0 @@
1
- function isMouseEvent(event) {
2
- // PointerEvent inherits from MouseEvent so we can't use a straight instanceof check.
3
- if (typeof PointerEvent !== "undefined" && event instanceof PointerEvent) {
4
- return !!(event.pointerType === "mouse");
5
- }
6
- return event instanceof MouseEvent;
7
- }
8
- function isTouchEvent(event) {
9
- const hasTouches = !!event.touches;
10
- return hasTouches;
11
- }
12
-
13
- export { isMouseEvent, isTouchEvent };