ywana-core8 0.0.844 → 0.0.845
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 +1615 -2682
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -54
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +1613 -2680
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1619 -2683
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
- package/src/site/site.js +0 -17
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ywana-core8",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.845",
|
4
4
|
"description": "ywana-core8",
|
5
5
|
"homepage": "https://ywana.github.io/workspace",
|
6
6
|
"author": "Ernesto Roldan Garcia",
|
@@ -37,7 +37,6 @@
|
|
37
37
|
"moment": "^2.29.1",
|
38
38
|
"moment-range": "^4.0.2",
|
39
39
|
"react-datepicker": "^4.6.0",
|
40
|
-
"react-error-boundary": "^4.0.3",
|
41
40
|
"react-error-overlay": "^6.0.10",
|
42
41
|
"react-image-pan-zoom-rotate": "^1.6.0",
|
43
42
|
"react-notifications-component": "^3.4.1",
|
package/src/site/site.js
CHANGED
@@ -5,10 +5,7 @@ import { Header } from '../html/header'
|
|
5
5
|
import { Tooltip } from '../html/tooltip'
|
6
6
|
import { Page } from './page'
|
7
7
|
import { SiteContext } from './siteContext'
|
8
|
-
import { ReactNotifications, Store } from 'react-notifications-component'
|
9
|
-
import 'react-notifications-component/dist/theme.css'
|
10
8
|
import './site.css'
|
11
|
-
import { ErrorBoundary } from 'react-error-boundary'
|
12
9
|
|
13
10
|
/**
|
14
11
|
* Site Provider
|
@@ -105,23 +102,9 @@ export const SiteProvider = ({ children, siteLang, siteDictionary }) => {
|
|
105
102
|
}
|
106
103
|
}
|
107
104
|
|
108
|
-
function fallbackRenderer({ error, resetErrorBoundary }) {
|
109
|
-
return (
|
110
|
-
<div className="site-error-fallback" role="alert">
|
111
|
-
<dialog>
|
112
|
-
<h3>Ywana Core 8</h3>
|
113
|
-
<p>Something went wrong:</p>
|
114
|
-
<pre>{error.message}</pre>
|
115
|
-
</dialog>
|
116
|
-
</div>
|
117
|
-
)
|
118
|
-
}
|
119
|
-
|
120
105
|
return (
|
121
106
|
<SiteContext.Provider value={value}>
|
122
|
-
<ErrorBoundary fallbackRender={fallbackRenderer}>
|
123
107
|
{children}
|
124
|
-
</ErrorBoundary>
|
125
108
|
</SiteContext.Provider>
|
126
109
|
)
|
127
110
|
}
|