@zohodesk/dot 1.0.0-temp-220.4 → 1.0.0-temp-220.5
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.
|
@@ -77,7 +77,7 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
77
77
|
shadowClose: true
|
|
78
78
|
};
|
|
79
79
|
_this.onClose = _this.onClose.bind(_assertThisInitialized(_this));
|
|
80
|
-
_this.
|
|
80
|
+
_this.getNotificationData = _this.getNotificationData.bind(_assertThisInitialized(_this));
|
|
81
81
|
_this.handleStatusChange = _this.handleStatusChange.bind(_assertThisInitialized(_this));
|
|
82
82
|
return _this;
|
|
83
83
|
}
|
|
@@ -124,7 +124,7 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
124
124
|
var onStatusChange = this.props.onStatusChange;
|
|
125
125
|
|
|
126
126
|
if (typeof onStatusChange == 'function') {
|
|
127
|
-
var notificationData = this.
|
|
127
|
+
var notificationData = this.getNotificationData();
|
|
128
128
|
var currentTime = (0, _getCurrentTime["default"])();
|
|
129
129
|
onStatusChange(_objectSpread(_objectSpread({
|
|
130
130
|
status: status
|
|
@@ -148,8 +148,8 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
148
148
|
onClose && onClose(e);
|
|
149
149
|
}
|
|
150
150
|
}, {
|
|
151
|
-
key: "
|
|
152
|
-
value: function
|
|
151
|
+
key: "getNotificationData",
|
|
152
|
+
value: function getNotificationData() {
|
|
153
153
|
var _this$props3 = this.props,
|
|
154
154
|
id = _this$props3.id,
|
|
155
155
|
type = _this$props3.type,
|
|
@@ -176,7 +176,7 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
176
176
|
var shadowClose = this.state.shadowClose;
|
|
177
177
|
var _i18nKeys$closeTitle = i18nKeys.closeTitle,
|
|
178
178
|
closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
|
|
179
|
-
var notificationData = this.
|
|
179
|
+
var notificationData = this.getNotificationData();
|
|
180
180
|
return /*#__PURE__*/_react["default"].createElement(GlobalNotificationUI, _extends({}, notificationData, {
|
|
181
181
|
hideMessage: hideMessage,
|
|
182
182
|
onClick: onClick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-220.
|
|
3
|
+
"version": "1.0.0-temp-220.5",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@zohodesk/virtualizer": "1.0.13",
|
|
84
84
|
"react-sortable-hoc": "^0.8.3",
|
|
85
85
|
"velocity-react": "1.4.3",
|
|
86
|
-
"@zohodesk/dotkit": "1.0.0-temp-1.
|
|
86
|
+
"@zohodesk/dotkit": "1.0.0-temp-1.10",
|
|
87
87
|
"@zohodesk/react-cli": "1.1.27"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|