dockview-react 1.17.1 → 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.1
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
  }
@@ -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();