@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.esm.js +11 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as anchor from '@coral-xyz/anchor';
|
|
|
4
4
|
import { Program } from '@coral-xyz/anchor';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
6
|
import { createContext } from 'react';
|
|
7
|
-
import '@solana-program/memo';
|
|
8
7
|
import 'react/jsx-runtime';
|
|
9
8
|
|
|
10
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -42856,6 +42855,13 @@ class OffchainAuthProvider {
|
|
|
42856
42855
|
const style = document.createElement("style");
|
|
42857
42856
|
style.textContent = this.getModalStyles();
|
|
42858
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
|
+
});
|
|
42859
42865
|
// Animate in
|
|
42860
42866
|
requestAnimationFrame(() => {
|
|
42861
42867
|
var _a, _b;
|
|
@@ -42907,6 +42913,10 @@ class OffchainAuthProvider {
|
|
|
42907
42913
|
}
|
|
42908
42914
|
closeModal() {
|
|
42909
42915
|
if (this.modalContainer) {
|
|
42916
|
+
// Remove inert attribute from all elements
|
|
42917
|
+
document.body.querySelectorAll("[inert]").forEach((el) => {
|
|
42918
|
+
el.removeAttribute("inert");
|
|
42919
|
+
});
|
|
42910
42920
|
const overlay = this.modalContainer.querySelector(".poofnet-modal-overlay");
|
|
42911
42921
|
const content = this.modalContainer.querySelector(".poofnet-modal-content");
|
|
42912
42922
|
if (overlay)
|