@jetbrains/ring-ui-built 6.0.76 → 6.0.78

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.
@@ -486,7 +486,9 @@ var List = /*#__PURE__*/function (_Component) {
486
486
  key: "shouldComponentUpdate",
487
487
  value: function shouldComponentUpdate(nextProps, nextState) {
488
488
  var _this2 = this;
489
- return nextProps !== this.props || Object.keys(nextState).some(function (key) {
489
+ return Object.keys(nextProps).some(function (key) {
490
+ return !Object.is(nextProps[key], _this2.props[key]);
491
+ }) || Object.keys(nextState).some(function (key) {
490
492
  return nextState[key] !== _this2.state[key];
491
493
  });
492
494
  }
@@ -106,6 +106,12 @@ var DEFAULT_AGREEMENT = {
106
106
  requiredForREST: false,
107
107
  content: ''
108
108
  };
109
+ function ignorePostponedCatchReason(reason) {
110
+ if (reason === 'Postponed') {
111
+ return;
112
+ }
113
+ throw reason;
114
+ }
109
115
  var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementService(config) {
110
116
  var _this = this;
111
117
  _classCallCheck(this, UserAgreementService);
@@ -124,15 +130,10 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
124
130
  _defineProperty(this, "intervalId", void 0);
125
131
  _defineProperty(this, "startChecking", function () {
126
132
  _this.intervalId = window.setInterval(function () {
127
- return _this.checkConsentAndShowDialog().catch(function (reason) {
128
- if (reason === 'Postponed') {
129
- return;
130
- }
131
- throw reason;
132
- });
133
+ return _this.checkConsentAndShowDialog().catch(ignorePostponedCatchReason);
133
134
  }, _this.interval);
134
135
  window.addEventListener('storage', _this.onStorageEvent);
135
- _this.checkConsentAndShowDialog();
136
+ _this.checkConsentAndShowDialog().catch(ignorePostponedCatchReason);
136
137
  });
137
138
  _defineProperty(this, "stopChecking", function () {
138
139
  clearInterval(_this.intervalId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "6.0.76",
3
+ "version": "6.0.78",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",