@jetbrains/ring-ui-built 6.0.69 → 6.0.71

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.
@@ -188,8 +188,8 @@ var Dialog = /*#__PURE__*/function (_PureComponent) {
188
188
  closeButtonTitle = _this$props4.closeButtonTitle,
189
189
  dense = _this$props4.dense;
190
190
  _this$props4.shortcutOptions;
191
- var native = _this$props4.native;
192
- _this$props4.modal;
191
+ var native = _this$props4.native,
192
+ modal = _this$props4.modal;
193
193
  _this$props4.preventBodyScroll;
194
194
  var restProps = _objectWithoutProperties(_this$props4, _excluded);
195
195
  var classes = classNames(modules_5e9b8c03.container, className);
@@ -233,6 +233,7 @@ var Dialog = /*#__PURE__*/function (_PureComponent) {
233
233
  return /*#__PURE__*/jsx("dialog", {
234
234
  className: classNames(modules_5e9b8c03.nativeDialog, className),
235
235
  ref: this.nativeDialog,
236
+ "data-rg-modal-dialog-container": modal ? '' : undefined,
236
237
  children: /*#__PURE__*/jsx(PopupTarget, {
237
238
  id: this.uid,
238
239
  className: modules_5e9b8c03.popupTarget,
@@ -262,6 +263,7 @@ var Dialog = /*#__PURE__*/function (_PureComponent) {
262
263
  return /*#__PURE__*/jsxs(TabTrap, _objectSpread2(_objectSpread2({
263
264
  trapDisabled: !trapFocus,
264
265
  "data-test": joinDataTestAttributes('ring-dialog-container', dataTest),
266
+ "data-rg-modal-dialog-container": "",
265
267
  ref: _this2.dialogRef,
266
268
  className: classes,
267
269
  role: "presentation"
@@ -123,7 +123,14 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
123
123
  _defineProperty(this, "userConsent", DEFAULT_CONSENT);
124
124
  _defineProperty(this, "intervalId", void 0);
125
125
  _defineProperty(this, "startChecking", function () {
126
- _this.intervalId = window.setInterval(_this.checkConsentAndShowDialog, _this.interval);
126
+ _this.intervalId = window.setInterval(function () {
127
+ return _this.checkConsentAndShowDialog().catch(function (reason) {
128
+ if (reason === 'Postponed') {
129
+ return;
130
+ }
131
+ throw reason;
132
+ });
133
+ }, _this.interval);
127
134
  window.addEventListener('storage', _this.onStorageEvent);
128
135
  _this.checkConsentAndShowDialog();
129
136
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "6.0.69",
3
+ "version": "6.0.71",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",