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
  */
@@ -6607,7 +6607,6 @@
6607
6607
  }
6608
6608
  }
6609
6609
 
6610
- const DEFAULT_OVERLAY_Z_INDEX = 999;
6611
6610
  class AriaLevelTracker {
6612
6611
  constructor() {
6613
6612
  this._orderedList = [];
@@ -6626,7 +6625,7 @@
6626
6625
  update() {
6627
6626
  for (let i = 0; i < this._orderedList.length; i++) {
6628
6627
  this._orderedList[i].setAttribute('aria-level', `${i}`);
6629
- this._orderedList[i].style.zIndex = `${DEFAULT_OVERLAY_Z_INDEX + i * 2}`;
6628
+ this._orderedList[i].style.zIndex = `calc(var(--dv-overlay-z-index, 999) + ${i * 2})`;
6630
6629
  }
6631
6630
  }
6632
6631
  }
@@ -6796,7 +6795,7 @@
6796
6795
  bounds.right = right;
6797
6796
  }
6798
6797
  this.setBounds(bounds);
6799
- }), addDisposableWindowListener(window, 'mouseup', () => {
6798
+ }), addDisposableWindowListener(window, 'pointerup', () => {
6800
6799
  toggleClass(this._element, 'dv-resize-container-dragging', false);
6801
6800
  move.dispose();
6802
6801
  this._onDidChangeEnd.fire();
@@ -6965,7 +6964,7 @@
6965
6964
  dispose: () => {
6966
6965
  iframes.release();
6967
6966
  },
6968
- }, addDisposableWindowListener(window, 'mouseup', () => {
6967
+ }, addDisposableWindowListener(window, 'pointerup', () => {
6969
6968
  move.dispose();
6970
6969
  this._onDidChangeEnd.fire();
6971
6970
  }));
@@ -7083,7 +7082,7 @@
7083
7082
  const element = floatingGroup.overlay.element;
7084
7083
  const update = () => {
7085
7084
  const level = Number(element.getAttribute('aria-level'));
7086
- focusContainer.style.zIndex = `${DEFAULT_OVERLAY_Z_INDEX + level * 2 + 1}`;
7085
+ focusContainer.style.zIndex = `calc(var(--dv-overlay-z-index, 999) + ${level * 2 + 1})`;
7087
7086
  };
7088
7087
  const observer = new MutationObserver(() => {
7089
7088
  update();