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/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/site/site.js +4 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ywana-core8",
|
3
|
-
"version": "0.1.
|
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.
|
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
|
-
<
|
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
|
-
</
|
281
|
+
</MotionDiv>
|
281
282
|
)}
|
282
283
|
</AnimatePresence>
|
283
284
|
</main>
|