@astral/ui 1.19.3 → 1.20.0

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.backdropStackManager = void 0;
4
4
  class BackdropStackManager {
5
5
  constructor() {
6
+ var _a;
6
7
  this.stack = [];
7
8
  // сохраняем информацию о том какой был предыдущий вызов pop,
8
9
  // нужен для предотвращения синхронного закрытия при последовательности 'blur' и 'backdropClick' в рамках одного клика
@@ -35,7 +36,7 @@ class BackdropStackManager {
35
36
  }
36
37
  return false;
37
38
  };
38
- document === null || document === void 0 ? void 0 : document.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
39
+ (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
39
40
  }
40
41
  }
41
42
  exports.backdropStackManager = new BackdropStackManager();
@@ -1,5 +1,6 @@
1
1
  class BackdropStackManager {
2
2
  constructor() {
3
+ var _a;
3
4
  this.stack = [];
4
5
  // сохраняем информацию о том какой был предыдущий вызов pop,
5
6
  // нужен для предотвращения синхронного закрытия при последовательности 'blur' и 'backdropClick' в рамках одного клика
@@ -32,7 +33,7 @@ class BackdropStackManager {
32
33
  }
33
34
  return false;
34
35
  };
35
- document === null || document === void 0 ? void 0 : document.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
36
+ (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
36
37
  }
37
38
  }
38
39
  export const backdropStackManager = new BackdropStackManager();
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "1.19.3",
3
+ "version": "1.20.0",
4
4
  "browser": "./esm/index.js",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@astral/icons": "^1.19.3",
7
+ "@astral/icons": "^1.20.0",
8
8
  "@emotion/cache": "11.7.1",
9
9
  "@emotion/react": "11.9.0",
10
10
  "@emotion/server": "11.4.0",