@pooflabs/web 0.0.21 → 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.js CHANGED
@@ -4,7 +4,6 @@ var globalAxios = require('axios');
4
4
  var web3_js = require('@solana/web3.js');
5
5
  var anchor = require('@coral-xyz/anchor');
6
6
  var React$1 = require('react');
7
- require('@solana-program/memo');
8
7
  require('react/jsx-runtime');
9
8
 
10
9
  function _interopNamespaceDefault(e) {
@@ -42876,6 +42875,13 @@ class OffchainAuthProvider {
42876
42875
  const style = document.createElement("style");
42877
42876
  style.textContent = this.getModalStyles();
42878
42877
  this.modalContainer.appendChild(style);
42878
+ // Mark all other body children as inert to disable focus traps from other modals
42879
+ document.body.childNodes.forEach((child) => {
42880
+ if (child !== this.modalContainer &&
42881
+ child instanceof HTMLElement) {
42882
+ child.setAttribute("inert", "");
42883
+ }
42884
+ });
42879
42885
  // Animate in
42880
42886
  requestAnimationFrame(() => {
42881
42887
  var _a, _b;
@@ -42927,6 +42933,10 @@ class OffchainAuthProvider {
42927
42933
  }
42928
42934
  closeModal() {
42929
42935
  if (this.modalContainer) {
42936
+ // Remove inert attribute from all elements
42937
+ document.body.querySelectorAll("[inert]").forEach((el) => {
42938
+ el.removeAttribute("inert");
42939
+ });
42930
42940
  const overlay = this.modalContainer.querySelector(".poofnet-modal-overlay");
42931
42941
  const content = this.modalContainer.querySelector(".poofnet-modal-content");
42932
42942
  if (overlay)