@pooflabs/web 0.0.22 → 0.0.23

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.
package/dist/index.esm.js CHANGED
@@ -42855,6 +42855,13 @@ class OffchainAuthProvider {
42855
42855
  const style = document.createElement("style");
42856
42856
  style.textContent = this.getModalStyles();
42857
42857
  this.modalContainer.appendChild(style);
42858
+ // Mark all other body children as inert to disable focus traps from other modals
42859
+ document.body.childNodes.forEach((child) => {
42860
+ if (child !== this.modalContainer &&
42861
+ child instanceof HTMLElement) {
42862
+ child.setAttribute("inert", "");
42863
+ }
42864
+ });
42858
42865
  // Animate in
42859
42866
  requestAnimationFrame(() => {
42860
42867
  var _a, _b;
@@ -42906,6 +42913,10 @@ class OffchainAuthProvider {
42906
42913
  }
42907
42914
  closeModal() {
42908
42915
  if (this.modalContainer) {
42916
+ // Remove inert attribute from all elements
42917
+ document.body.querySelectorAll("[inert]").forEach((el) => {
42918
+ el.removeAttribute("inert");
42919
+ });
42909
42920
  const overlay = this.modalContainer.querySelector(".poofnet-modal-overlay");
42910
42921
  const content = this.modalContainer.querySelector(".poofnet-modal-content");
42911
42922
  if (overlay)