ywana-core8 0.0.76 → 0.0.77
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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/site/site.js +15 -3
package/dist/index.modern.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import 'material-design-icons-iconfont/dist/material-design-icons.css';
|
2
2
|
import React, { useContext, useState, useEffect, Fragment, useRef, Children, useMemo } from 'react';
|
3
|
+
import { NotificationContainer, NotificationManager } from 'react-notifications';
|
4
|
+
import 'react-notifications/lib/notifications.css';
|
3
5
|
import equal from 'deep-equal';
|
4
6
|
import ResumableJS from 'resumablejs';
|
5
7
|
|
@@ -1951,6 +1953,9 @@ var SiteProvider = function SiteProvider(_ref) {
|
|
1951
1953
|
},
|
1952
1954
|
confirm: function confirm(message) {
|
1953
1955
|
return window.confirm(message);
|
1956
|
+
},
|
1957
|
+
notify: function notify(title, message) {
|
1958
|
+
NotificationManager.info(message, title);
|
1954
1959
|
}
|
1955
1960
|
};
|
1956
1961
|
return /*#__PURE__*/React.createElement(SiteContext.Provider, {
|
@@ -1986,12 +1991,17 @@ var Site = function Site(_ref2) {
|
|
1986
1991
|
init: init
|
1987
1992
|
}, children, /*#__PURE__*/React.createElement(Page, {
|
1988
1993
|
id: "EMPTY"
|
1989
|
-
}, "EMPTY")), /*#__PURE__*/React.createElement(SiteAside, null), /*#__PURE__*/React.createElement(SiteConsole, null), /*#__PURE__*/React.createElement(SiteDialog, null), /*#__PURE__*/React.createElement(SitePreview, null)));
|
1994
|
+
}, "EMPTY")), /*#__PURE__*/React.createElement(SiteAside, null), /*#__PURE__*/React.createElement(SiteConsole, null), /*#__PURE__*/React.createElement(SiteDialog, null), /*#__PURE__*/React.createElement(SitePreview, null), /*#__PURE__*/React.createElement(SiteNotifications, null)));
|
1995
|
+
};
|
1996
|
+
|
1997
|
+
var SiteNotifications = function SiteNotifications() {
|
1998
|
+
return /*#__PURE__*/React.createElement(NotificationContainer, null);
|
1990
1999
|
};
|
1991
2000
|
/**
|
1992
2001
|
* Site Header
|
1993
2002
|
*/
|
1994
2003
|
|
2004
|
+
|
1995
2005
|
var SiteHeader = function SiteHeader(props) {
|
1996
2006
|
var _props$icon = props.icon,
|
1997
2007
|
icon = _props$icon === void 0 ? "equalizer" : _props$icon,
|