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.umd.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('deep-equal'), require('resumablejs')) :
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'deep-equal', 'resumablejs'], factory) :
|
4
|
-
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.deepEqual, global.resumablejs));
|
5
|
-
})(this, (function (exports, materialDesignIcons_css, React, equal, ResumableJS) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-notifications'), require('react-notifications/lib/notifications.css'), require('deep-equal'), require('resumablejs')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-notifications', 'react-notifications/lib/notifications.css', 'deep-equal', 'resumablejs'], factory) :
|
4
|
+
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactNotifications, null, global.deepEqual, global.resumablejs));
|
5
|
+
})(this, (function (exports, materialDesignIcons_css, React, reactNotifications, notifications_css, equal, ResumableJS) {
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
7
7
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
@@ -1957,6 +1957,9 @@
|
|
1957
1957
|
},
|
1958
1958
|
confirm: function confirm(message) {
|
1959
1959
|
return window.confirm(message);
|
1960
|
+
},
|
1961
|
+
notify: function notify(title, message) {
|
1962
|
+
reactNotifications.NotificationManager.info(message, title);
|
1960
1963
|
}
|
1961
1964
|
};
|
1962
1965
|
return /*#__PURE__*/React__default["default"].createElement(SiteContext.Provider, {
|
@@ -1992,12 +1995,17 @@
|
|
1992
1995
|
init: init
|
1993
1996
|
}, children, /*#__PURE__*/React__default["default"].createElement(Page, {
|
1994
1997
|
id: "EMPTY"
|
1995
|
-
}, "EMPTY")), /*#__PURE__*/React__default["default"].createElement(SiteAside, null), /*#__PURE__*/React__default["default"].createElement(SiteConsole, null), /*#__PURE__*/React__default["default"].createElement(SiteDialog, null), /*#__PURE__*/React__default["default"].createElement(SitePreview, null)));
|
1998
|
+
}, "EMPTY")), /*#__PURE__*/React__default["default"].createElement(SiteAside, null), /*#__PURE__*/React__default["default"].createElement(SiteConsole, null), /*#__PURE__*/React__default["default"].createElement(SiteDialog, null), /*#__PURE__*/React__default["default"].createElement(SitePreview, null), /*#__PURE__*/React__default["default"].createElement(SiteNotifications, null)));
|
1999
|
+
};
|
2000
|
+
|
2001
|
+
var SiteNotifications = function SiteNotifications() {
|
2002
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNotifications.NotificationContainer, null);
|
1996
2003
|
};
|
1997
2004
|
/**
|
1998
2005
|
* Site Header
|
1999
2006
|
*/
|
2000
2007
|
|
2008
|
+
|
2001
2009
|
var SiteHeader = function SiteHeader(props) {
|
2002
2010
|
var _props$icon = props.icon,
|
2003
2011
|
icon = _props$icon === void 0 ? "equalizer" : _props$icon,
|