upgrade framer-motion to 11

This commit is contained in:
Kendall Garner 2024-04-28 18:59:05 -07:00
parent c36f0a055d
commit 5259f2401b
No known key found for this signature in database
GPG Key ID: 18D2767419676C87
4 changed files with 17 additions and 48 deletions

56
package-lock.json generated
View File

@ -39,7 +39,7 @@
"electron-updater": "^4.6.5", "electron-updater": "^4.6.5",
"fast-average-color": "^9.3.0", "fast-average-color": "^9.3.0",
"format-duration": "^2.0.0", "format-duration": "^2.0.0",
"framer-motion": "^10.13.0", "framer-motion": "^11.0.0",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"history": "^5.3.0", "history": "^5.3.0",
"i18next": "^21.10.0", "i18next": "^21.10.0",
@ -11553,21 +11553,22 @@
} }
}, },
"node_modules/framer-motion": { "node_modules/framer-motion": {
"version": "10.13.0", "version": "11.1.7",
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.13.0.tgz", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.1.7.tgz",
"integrity": "sha512-xKhw9VCizmwEHbopOfluaoVunGHSZyMztGbTvsgOYqCjaKu6qtlwWY1J+6GhL41NY1P157JgEikjDm67XCFnvQ==", "integrity": "sha512-cW11Pu53eDAXUEhv5hEiWuIXWhfkbV32PlgVISn7jRdcAiVrJ1S03YQQ0/DzoswGYYwKi4qYmHHjCzAH52eSdQ==",
"license": "MIT",
"dependencies": { "dependencies": {
"@emotion/is-prop-valid": "^0.8.2",
"tslib": "^2.4.0" "tslib": "^2.4.0"
}, },
"optionalDependencies": {
"@emotion/is-prop-valid": "^0.8.2"
},
"peerDependencies": { "peerDependencies": {
"@emotion/is-prop-valid": "*",
"react": "^18.0.0", "react": "^18.0.0",
"react-dom": "^18.0.0" "react-dom": "^18.0.0"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"@emotion/is-prop-valid": {
"optional": true
},
"react": { "react": {
"optional": true "optional": true
}, },
@ -11576,21 +11577,6 @@
} }
} }
}, },
"node_modules/framer-motion/node_modules/@emotion/is-prop-valid": {
"version": "0.8.8",
"resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
"integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
"optional": true,
"dependencies": {
"@emotion/memoize": "0.7.4"
}
},
"node_modules/framer-motion/node_modules/@emotion/memoize": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
"integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==",
"optional": true
},
"node_modules/fresh": { "node_modules/fresh": {
"version": "0.5.2", "version": "0.5.2",
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
@ -30720,29 +30706,11 @@
"dev": true "dev": true
}, },
"framer-motion": { "framer-motion": {
"version": "10.13.0", "version": "11.1.7",
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.13.0.tgz", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.1.7.tgz",
"integrity": "sha512-xKhw9VCizmwEHbopOfluaoVunGHSZyMztGbTvsgOYqCjaKu6qtlwWY1J+6GhL41NY1P157JgEikjDm67XCFnvQ==", "integrity": "sha512-cW11Pu53eDAXUEhv5hEiWuIXWhfkbV32PlgVISn7jRdcAiVrJ1S03YQQ0/DzoswGYYwKi4qYmHHjCzAH52eSdQ==",
"requires": { "requires": {
"@emotion/is-prop-valid": "^0.8.2",
"tslib": "^2.4.0" "tslib": "^2.4.0"
},
"dependencies": {
"@emotion/is-prop-valid": {
"version": "0.8.8",
"resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
"integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
"optional": true,
"requires": {
"@emotion/memoize": "0.7.4"
}
},
"@emotion/memoize": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
"integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==",
"optional": true
}
} }
}, },
"fresh": { "fresh": {

View File

@ -319,7 +319,7 @@
"electron-updater": "^4.6.5", "electron-updater": "^4.6.5",
"fast-average-color": "^9.3.0", "fast-average-color": "^9.3.0",
"format-duration": "^2.0.0", "format-duration": "^2.0.0",
"framer-motion": "^10.13.0", "framer-motion": "^11.0.0",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"history": "^5.3.0", "history": "^5.3.0",
"i18next": "^21.10.0", "i18next": "^21.10.0",

View File

@ -2299,7 +2299,8 @@
"ws": { "ws": {
"version": "8.13.0", "version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==" "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"requires": {}
}, },
"xml2js": { "xml2js": {
"version": "0.4.23", "version": "0.4.23",

View File

@ -1,9 +1,9 @@
import { Group } from '@mantine/core'; import { Group } from '@mantine/core';
import { useDragControls, Reorder } from 'framer-motion'; import { useDragControls, Reorder, DragControls } from 'framer-motion';
import { MdDragIndicator } from 'react-icons/md'; import { MdDragIndicator } from 'react-icons/md';
import { Checkbox } from '/@/renderer/components'; import { Checkbox } from '/@/renderer/components';
const DragHandle = ({ dragControls }: any) => { const DragHandle = ({ dragControls }: { dragControls: DragControls }) => {
return ( return (
<MdDragIndicator <MdDragIndicator
color="white" color="white"