dockview-react 1.17.0 → 1.17.2

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-react
3
- * @version 1.17.0
3
+ * @version 1.17.2
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -6603,7 +6603,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
6603
6603
  }
6604
6604
  }
6605
6605
 
6606
- const DEFAULT_OVERLAY_Z_INDEX = 999;
6607
6606
  class AriaLevelTracker {
6608
6607
  constructor() {
6609
6608
  this._orderedList = [];
@@ -6622,7 +6621,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
6622
6621
  update() {
6623
6622
  for (let i = 0; i < this._orderedList.length; i++) {
6624
6623
  this._orderedList[i].setAttribute('aria-level', `${i}`);
6625
- this._orderedList[i].style.zIndex = `${DEFAULT_OVERLAY_Z_INDEX + i * 2}`;
6624
+ this._orderedList[i].style.zIndex = `calc(var(--dv-overlay-z-index, 999) + ${i * 2})`;
6626
6625
  }
6627
6626
  }
6628
6627
  }
@@ -6792,7 +6791,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
6792
6791
  bounds.right = right;
6793
6792
  }
6794
6793
  this.setBounds(bounds);
6795
- }), addDisposableWindowListener(window, 'mouseup', () => {
6794
+ }), addDisposableWindowListener(window, 'pointerup', () => {
6796
6795
  toggleClass(this._element, 'dv-resize-container-dragging', false);
6797
6796
  move.dispose();
6798
6797
  this._onDidChangeEnd.fire();
@@ -6961,7 +6960,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
6961
6960
  dispose: () => {
6962
6961
  iframes.release();
6963
6962
  },
6964
- }, addDisposableWindowListener(window, 'mouseup', () => {
6963
+ }, addDisposableWindowListener(window, 'pointerup', () => {
6965
6964
  move.dispose();
6966
6965
  this._onDidChangeEnd.fire();
6967
6966
  }));
@@ -7079,7 +7078,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
7079
7078
  const element = floatingGroup.overlay.element;
7080
7079
  const update = () => {
7081
7080
  const level = Number(element.getAttribute('aria-level'));
7082
- focusContainer.style.zIndex = `${DEFAULT_OVERLAY_Z_INDEX + level * 2 + 1}`;
7081
+ focusContainer.style.zIndex = `calc(var(--dv-overlay-z-index, 999) + ${level * 2 + 1})`;
7083
7082
  };
7084
7083
  const observer = new MutationObserver(() => {
7085
7084
  update();