ywana-core8 0.1.57 → 0.1.58

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": "ywana-core8",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -36,7 +36,7 @@
36
36
  "axios": "^1.3.4",
37
37
  "crypto-js": "^4.1.1",
38
38
  "deep-equal": "^2.0.5",
39
- "framer-motion": "^5.6.0",
39
+ "framer-motion": "^5.3.1",
40
40
  "material-design-icons-iconfont": "^6.7.0",
41
41
  "moment": "^2.29.1",
42
42
  "moment-range": "^4.0.2",
package/src/site/site.js CHANGED
@@ -7,9 +7,10 @@ import { Page } from './page'
7
7
  import { SiteContext } from './siteContext'
8
8
  import { ReactNotifications, Store } from 'react-notifications-component'
9
9
  import { useHashPage } from './navigation'
10
- import { AnimatePresence, motion } from 'framer-motion'
11
10
  import 'react-notifications-component/dist/theme.css'
12
11
  import './site.css'
12
+ import motion from "framer-motion/dist/framer-motion.cjs"
13
+ const { AnimatePresence, motion: MotionDiv } = motion
13
14
 
14
15
  /**
15
16
  * Site Provider
@@ -269,7 +270,7 @@ const SitePage = ({ children, init }) => {
269
270
  <main className='site-page-container'>
270
271
  <AnimatePresence exitBeforeEnter>
271
272
  {currentPage && (
272
- <motion.div
273
+ <MotionDiv
273
274
  key={page}
274
275
  initial={{ opacity: 0, x: xOffset }}
275
276
  animate={{ opacity: 1, x: 0 }}
@@ -277,7 +278,7 @@ const SitePage = ({ children, init }) => {
277
278
  transition={{ duration: 0.3 }}
278
279
  >
279
280
  {currentPage}
280
- </motion.div>
281
+ </MotionDiv>
281
282
  )}
282
283
  </AnimatePresence>
283
284
  </main>