@pooflabs/web 0.0.56 → 0.0.57

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.
@@ -13066,7 +13066,7 @@ async function loadDependencies() {
13066
13066
  const [reactModule, reactDomModule, phantomModule] = await Promise.all([
13067
13067
  import('react'),
13068
13068
  import('react-dom/client'),
13069
- import('./index-Dy385TfE.esm.js')
13069
+ import('./index-iG3iHW2H.esm.js')
13070
13070
  ]);
13071
13071
  // Extract default export from ESM module namespace
13072
13072
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -13180,7 +13180,7 @@ class PhantomWalletProvider {
13180
13180
  this.containerElement.style.position = 'fixed';
13181
13181
  this.containerElement.style.inset = '0';
13182
13182
  this.containerElement.style.zIndex = '2147483647';
13183
- this.containerElement.style.pointerEvents = 'auto';
13183
+ this.containerElement.style.pointerEvents = 'none';
13184
13184
  document.body.appendChild(this.containerElement);
13185
13185
  const that = this;
13186
13186
  const { PhantomProvider: ReactPhantomProvider, usePhantom, useConnect, useDisconnect, useModal, useSolana, useDiscoveredWallets, AddressType, darkTheme, lightTheme } = phantomReactSdk;
@@ -13327,14 +13327,17 @@ class PhantomWalletProvider {
13327
13327
  }
13328
13328
  prevModalOpen.current = showWalletModal || modal.isOpened;
13329
13329
  }, [showWalletModal, modal.isOpened, phantom === null || phantom === void 0 ? void 0 : phantom.isConnected]);
13330
- // While custom modal is open, block pointer events on everything behind it.
13330
+ // While any modal is open, block pointer events on everything behind it.
13331
13331
  // This guarantees host app modals (e.g. z-50 stacks) can't steal clicks.
13332
13332
  React$1.useEffect(() => {
13333
- if (!showWalletModal)
13333
+ const isModalOpen = showWalletModal || modal.isOpened;
13334
+ if (!isModalOpen)
13334
13335
  return;
13335
13336
  const container = that.containerElement;
13336
13337
  if (!container || typeof document === 'undefined')
13337
13338
  return;
13339
+ // Enable clicks on the Phantom container while a modal is open
13340
+ container.style.pointerEvents = 'auto';
13338
13341
  const restored = new Map();
13339
13342
  const bodyChildren = Array.from(document.body.children);
13340
13343
  for (const el of bodyChildren) {
@@ -13344,11 +13347,13 @@ class PhantomWalletProvider {
13344
13347
  el.style.pointerEvents = 'none';
13345
13348
  }
13346
13349
  return () => {
13350
+ // Restore pass-through on the container when modal closes
13351
+ container.style.pointerEvents = 'none';
13347
13352
  for (const [el, prev] of restored.entries()) {
13348
13353
  el.style.pointerEvents = prev;
13349
13354
  }
13350
13355
  };
13351
- }, [showWalletModal]);
13356
+ }, [showWalletModal, modal.isOpened]);
13352
13357
  // Handle connection errors
13353
13358
  React$1.useEffect(() => {
13354
13359
  if (connectError && that.pendingLogin) {
@@ -34656,4 +34661,4 @@ async function getIdToken() {
34656
34661
  }
34657
34662
 
34658
34663
  export { useAuth as A, getIdToken as B, PrivyWalletProvider as C, DEFAULT_TEST_ADDRESS as D, EventEmitter4 as E, buildSetDocumentsTransaction as F, clearCache as G, closeAllSubscriptions as H, convertRemainingAccounts as I, createSessionWithPrivy as J, createSessionWithSignature as K, genAuthNonce as L, MockAuthProvider as M, genSolanaMessage as N, OffchainAuthProvider as O, PhantomWalletProvider as P, getCachedData as Q, reconnectWithNewAuth as R, ServerSessionManager as S, refreshSession as T, signSessionCreateMessage as U, WebSessionManager as W, bs58 as a, bufferExports as b, commonjsRequire as c, onAuthLoadingChanged as d, getAuthLoading as e, logout as f, getCurrentUser as g, getConfig as h, init as i, getAuthProvider as j, get$2 as k, login as l, setMany as m, setFile as n, onAuthStateChanged as o, getFiles as p, runQuery as q, require$$0$1 as r, set$1 as s, runQueryMany as t, runExpression as u, runExpressionMany as v, signMessage as w, signTransaction as x, signAndSubmitTransaction as y, subscribe as z };
34659
- //# sourceMappingURL=index-RoZR68Bd.esm.js.map
34664
+ //# sourceMappingURL=index-ipxXG26r.esm.js.map