react-autoql 3.4.3 → 3.4.4

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.
@@ -11994,7 +11994,7 @@ var validateExpression = function validateExpression(_ref20) {
11994
11994
  });
11995
11995
  }; // DELETE
11996
11996
 
11997
- var deleteDataAlert = function deleteDataAlert(dataAlertId, projectId, authObject) {
11997
+ var deleteDataAlert = function deleteDataAlert(dataAlertId, authObject) {
11998
11998
  // If there is missing data, dont bother making the call
11999
11999
  var domain = authObject.domain,
12000
12000
  apiKey = authObject.apiKey,
@@ -12069,9 +12069,11 @@ var NotificationIcon = /*#__PURE__*/function (_React$Component) {
12069
12069
  while (1) {
12070
12070
  switch (_context.prev = _context.next) {
12071
12071
  case 0:
12072
- _this._isMounted = true; // this.subscribeToNotificationCount()
12072
+ _this._isMounted = true;
12073
12073
 
12074
- case 1:
12074
+ _this.subscribeToNotificationCount();
12075
+
12076
+ case 2:
12075
12077
  case "end":
12076
12078
  return _context.stop();
12077
12079
  }
@@ -14356,13 +14358,13 @@ var DataAlertModal = /*#__PURE__*/function (_React$Component) {
14356
14358
  isDeletingDataAlert: true
14357
14359
  });
14358
14360
 
14359
- deleteDataAlert(dataAlertId, _this.props.activeAlertType, _this.props.authObject).then(function () {
14361
+ deleteDataAlert(dataAlertId, getAuthentication(_this.props.authentication)).then(function () {
14360
14362
  _this.setState({
14361
14363
  isDeletingDataAlert: false,
14362
14364
  isConfirmDeleteModalVisible: false
14363
14365
  });
14364
14366
 
14365
- _this.props.handleAlertDeletedByWidget();
14367
+ _this.props.onDelete();
14366
14368
 
14367
14369
  _this.props.onClose(false);
14368
14370
  }).catch(function (error) {
@@ -15117,7 +15119,6 @@ var DataAlerts = /*#__PURE__*/function (_React$Component) {
15117
15119
  });
15118
15120
 
15119
15121
  _defineProperty(_assertThisInitialized(_this), "hasError", function (dataAlert) {
15120
- console.log(dataAlert);
15121
15122
  return dataAlert.status === 'GENERAL_ERROR' || dataAlert.status === 'EVALUATION_ERROR' || dataAlert.status === 'DATA_RETURN_ERROR';
15122
15123
  });
15123
15124
 
@@ -19131,7 +19132,6 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
19131
19132
  } // WIP
19132
19133
  // fetchConditions({ ...getAuthentication(this.props.authentication) }).then(
19133
19134
  // (response) => {
19134
- // console.log(_get(response, 'data.data.data'))
19135
19135
  // this.setState({ conditions: _get(response, 'data.data.data') })
19136
19136
  // }
19137
19137
  // )
@@ -19743,6 +19743,22 @@ var DataMessenger = /*#__PURE__*/function (_React$Component) {
19743
19743
  ,
19744
19744
  content: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
19745
19745
  className: "clear-messages-confirm-popover"
19746
+ }, /*#__PURE__*/React.createElement("div", {
19747
+ className: "react-autoql-menu-text",
19748
+ onClick: function onClick() {
19749
+ _this.setState({
19750
+ isConditionLockingMenuOpen: true,
19751
+ isOptionsDropdownOpen: false
19752
+ });
19753
+ }
19754
+ }, /*#__PURE__*/React.createElement(Icon, {
19755
+ type: "lock"
19756
+ }), /*#__PURE__*/React.createElement("span", {
19757
+ style: {
19758
+ marginLeft: 5
19759
+ }
19760
+ }, lang.openConditionLocking))), /*#__PURE__*/React.createElement("div", {
19761
+ className: "clear-messages-confirm-popover"
19746
19762
  }, /*#__PURE__*/React.createElement("div", {
19747
19763
  className: "react-autoql-menu-text",
19748
19764
  onClick: _this.handleClearQueriesDropdown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-autoql",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "React Widget Library",
5
5
  "main": "dist/autoql.cjs.js",
6
6
  "module": "dist/autoql.esm.js",