ywana-core8 0.0.844 → 0.0.846
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 +1613 -2678
- 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 -2678
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1617 -2681
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
- package/src/site/site.js +0 -15
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ywana-core8",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.846",
|
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
@@ -8,7 +8,6 @@ import { SiteContext } from './siteContext'
|
|
8
8
|
import { ReactNotifications, Store } from 'react-notifications-component'
|
9
9
|
import 'react-notifications-component/dist/theme.css'
|
10
10
|
import './site.css'
|
11
|
-
import { ErrorBoundary } from 'react-error-boundary'
|
12
11
|
|
13
12
|
/**
|
14
13
|
* Site Provider
|
@@ -105,23 +104,9 @@ export const SiteProvider = ({ children, siteLang, siteDictionary }) => {
|
|
105
104
|
}
|
106
105
|
}
|
107
106
|
|
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
107
|
return (
|
121
108
|
<SiteContext.Provider value={value}>
|
122
|
-
<ErrorBoundary fallbackRender={fallbackRenderer}>
|
123
109
|
{children}
|
124
|
-
</ErrorBoundary>
|
125
110
|
</SiteContext.Provider>
|
126
111
|
)
|
127
112
|
}
|