@pooflabs/web 0.0.89-rc3 → 0.0.89-rc4

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.
Files changed (43) hide show
  1. package/dist/{index-TCh-Tz3A.esm.js → index-Bop7HFA-.esm.js} +2 -2
  2. package/dist/{index-BosINgjL.esm.js.map → index-Bop7HFA-.esm.js.map} +1 -1
  3. package/dist/{index-BdtzCA9I.js → index-CEADZ0na.js} +2 -2
  4. package/dist/{index-BdtzCA9I.js.map → index-CEADZ0na.js.map} +1 -1
  5. package/dist/{index-2wcE74zV.esm.js → index-DGOP9-5L.esm.js} +11 -6
  6. package/dist/index-DGOP9-5L.esm.js.map +1 -0
  7. package/dist/{index-BbyEdrbT.js → index-DHI02_l_.js} +11 -6
  8. package/dist/index-DHI02_l_.js.map +1 -0
  9. package/dist/{index-D5KlQpzj.js → index-DS3Ftep_.js} +2 -2
  10. package/dist/{index-D5KlQpzj.js.map → index-DS3Ftep_.js.map} +1 -1
  11. package/dist/{index-BosINgjL.esm.js → index-DZhOa-_D.esm.js} +2 -2
  12. package/dist/{index-TCh-Tz3A.esm.js.map → index-DZhOa-_D.esm.js.map} +1 -1
  13. package/dist/{index.browser-CkaOa5gJ.esm.js → index.browser-0dewreQm.esm.js} +2 -2
  14. package/dist/{index.browser-CkaOa5gJ.esm.js.map → index.browser-0dewreQm.esm.js.map} +1 -1
  15. package/dist/{index.browser-CQxdFuE2.esm.js → index.browser-B-pUCZgP.esm.js} +2 -2
  16. package/dist/{index.browser-CQxdFuE2.esm.js.map → index.browser-B-pUCZgP.esm.js.map} +1 -1
  17. package/dist/{index.browser-DxjCzf2n.js → index.browser-C9AVHEa4.js} +2 -2
  18. package/dist/{index.browser-DxjCzf2n.js.map → index.browser-C9AVHEa4.js.map} +1 -1
  19. package/dist/{index.browser-dTW8LCID.js → index.browser-rhFUHjM1.js} +2 -2
  20. package/dist/{index.browser-dTW8LCID.js.map → index.browser-rhFUHjM1.js.map} +1 -1
  21. package/dist/index.esm.js +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{index.native-Ch6gsAP_.esm.js → index.native-CXtxnE1X.esm.js} +11 -6
  24. package/dist/{index.native-Ch6gsAP_.esm.js.map → index.native-CXtxnE1X.esm.js.map} +1 -1
  25. package/dist/{index.native-K4hpch3o.js → index.native-DzDWIHgW.js} +11 -6
  26. package/dist/{index.native-K4hpch3o.js.map → index.native-DzDWIHgW.js.map} +1 -1
  27. package/dist/index.native.esm.js +1 -1
  28. package/dist/index.native.js +1 -1
  29. package/dist/{phantom-wallet-provider-ieVw9iZ_.esm.js → phantom-wallet-provider-SmsVVBCI.esm.js} +3 -3
  30. package/dist/{phantom-wallet-provider-ieVw9iZ_.esm.js.map → phantom-wallet-provider-SmsVVBCI.esm.js.map} +1 -1
  31. package/dist/{phantom-wallet-provider-BOz9oPsO.js → phantom-wallet-provider-mA4Yaf-t.js} +3 -3
  32. package/dist/{phantom-wallet-provider-BOz9oPsO.js.map → phantom-wallet-provider-mA4Yaf-t.js.map} +1 -1
  33. package/dist/{privy-wallet-provider-CVVhV2RP.esm.js → privy-wallet-provider-BNPm2WEZ.esm.js} +3 -3
  34. package/dist/{privy-wallet-provider-CVVhV2RP.esm.js.map → privy-wallet-provider-BNPm2WEZ.esm.js.map} +1 -1
  35. package/dist/{privy-wallet-provider-BlWvz1R6.js → privy-wallet-provider-CHMc_YjB.js} +3 -3
  36. package/dist/{privy-wallet-provider-BlWvz1R6.js.map → privy-wallet-provider-CHMc_YjB.js.map} +1 -1
  37. package/dist/{solana-mobile-wallet-provider-CHMZajIq.esm.js → solana-mobile-wallet-provider-BMGBQI3W.esm.js} +3 -3
  38. package/dist/{solana-mobile-wallet-provider-CHMZajIq.esm.js.map → solana-mobile-wallet-provider-BMGBQI3W.esm.js.map} +1 -1
  39. package/dist/{solana-mobile-wallet-provider-C8QDeO6I.js → solana-mobile-wallet-provider-DmBKAypM.js} +3 -3
  40. package/dist/{solana-mobile-wallet-provider-C8QDeO6I.js.map → solana-mobile-wallet-provider-DmBKAypM.js.map} +1 -1
  41. package/package.json +1 -1
  42. package/dist/index-2wcE74zV.esm.js.map +0 -1
  43. package/dist/index-BbyEdrbT.js.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- export { I as DEFAULT_TEST_ADDRESS, N as InsufficientBalanceError, M as MockAuthProvider, O as OffchainAuthProvider, P as PhantomWalletProvider, L as PrivyExpoProvider, H as PrivyWalletProvider, R as ReactNativeSessionManager, Q as ServerSessionManager, S as SolanaMobileWalletProvider, W as WebSessionManager, z as aggregate, T as buildSetDocumentsTransaction, U as clearCache, V as closeAllSubscriptions, X as convertRemainingAccounts, y as count, Y as createSessionWithPrivy, Z as createSessionWithSignature, D as deserializeTransaction, _ as genAuthNonce, $ as genSolanaMessage, k as get, e as getAuthLoading, j as getAuthProvider, a0 as getCachedData, h as getConfig, c as getCurrentUser, p as getFiles, E as getIdToken, a1 as getMany, G as getPlatform, i as init, J as isMobileWalletAvailable, l as login, f as logout, d as onAuthLoadingChanged, o as onAuthStateChanged, a2 as reconnectWithNewAuth, a3 as refreshSession, K as registerMobileWalletAdapter, t as runExpression, u as runExpressionMany, r as runQuery, q as runQueryMany, s as set, n as setFile, m as setMany, F as setPlatform, x as signAndSubmitTransaction, v as signMessage, a4 as signSessionCreateMessage, w as signTransaction, A as subscribe, B as useAuth, C as usePoofnetWallet } from './index-2wcE74zV.esm.js';
1
+ export { I as DEFAULT_TEST_ADDRESS, N as InsufficientBalanceError, M as MockAuthProvider, O as OffchainAuthProvider, P as PhantomWalletProvider, L as PrivyExpoProvider, H as PrivyWalletProvider, R as ReactNativeSessionManager, Q as ServerSessionManager, S as SolanaMobileWalletProvider, W as WebSessionManager, z as aggregate, T as buildSetDocumentsTransaction, U as clearCache, V as closeAllSubscriptions, X as convertRemainingAccounts, y as count, Y as createSessionWithPrivy, Z as createSessionWithSignature, D as deserializeTransaction, _ as genAuthNonce, $ as genSolanaMessage, k as get, e as getAuthLoading, j as getAuthProvider, a0 as getCachedData, h as getConfig, c as getCurrentUser, p as getFiles, E as getIdToken, a1 as getMany, G as getPlatform, i as init, J as isMobileWalletAvailable, l as login, f as logout, d as onAuthLoadingChanged, o as onAuthStateChanged, a2 as reconnectWithNewAuth, a3 as refreshSession, K as registerMobileWalletAdapter, t as runExpression, u as runExpressionMany, r as runQuery, q as runQueryMany, s as set, n as setFile, m as setMany, F as setPlatform, x as signAndSubmitTransaction, v as signMessage, a4 as signSessionCreateMessage, w as signTransaction, A as subscribe, B as useAuth, C as usePoofnetWallet } from './index-DGOP9-5L.esm.js';
2
2
  import 'axios';
3
3
  import '@solana/web3.js';
4
4
  import '@coral-xyz/anchor';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BbyEdrbT.js');
3
+ var index = require('./index-DHI02_l_.js');
4
4
  require('axios');
5
5
  require('@solana/web3.js');
6
6
  require('@coral-xyz/anchor');
@@ -16985,8 +16985,11 @@ class MockPoofnetProvider {
16985
16985
  }
16986
16986
  const index = Math.min(meta.activeIndex, meta.count - 1);
16987
16987
  this.activeKeypair = await this.deriveKeypair(appId, index);
16988
- const user = await this.mintSession(this.activeKeypair);
16988
+ // Set the singleton BEFORE mintSession — mintSession calls setCurrentUser,
16989
+ // which fires onAuthStateChanged → usePoofnetWallet.refresh(); that refresh
16990
+ // must see this instance (else isMock is false until a reload).
16989
16991
  activeMockPoofnetInstance = this;
16992
+ const user = await this.mintSession(this.activeKeypair);
16990
16993
  return user;
16991
16994
  }
16992
16995
  async restoreSession() {
@@ -17022,8 +17025,10 @@ class MockPoofnetProvider {
17022
17025
  // Drop the old session, mint a fresh one for the selected wallet.
17023
17026
  WebSessionManager.clearSession();
17024
17027
  this.activeKeypair = await this.deriveKeypair(appId, index);
17025
- const user = await this.mintSession(this.activeKeypair);
17028
+ // Set the singleton before mintSession (see login) so the refresh that
17029
+ // mintSession's setCurrentUser triggers observes the active instance.
17026
17030
  activeMockPoofnetInstance = this;
17031
+ const user = await this.mintSession(this.activeKeypair);
17027
17032
  return user;
17028
17033
  }
17029
17034
  /** Generate a brand-new mock wallet (next index) and connect as it. */
@@ -17839,15 +17844,15 @@ function clearIncompatibleSession() {
17839
17844
  // Lazy loaders for web-only providers.
17840
17845
  // Using dynamic import() ensures Metro (RN) never resolves these modules.
17841
17846
  async function loadPrivyWalletProvider() {
17842
- const mod = await import('./privy-wallet-provider-CVVhV2RP.esm.js');
17847
+ const mod = await import('./privy-wallet-provider-BNPm2WEZ.esm.js');
17843
17848
  return mod.PrivyWalletProvider;
17844
17849
  }
17845
17850
  async function loadPhantomWalletProvider() {
17846
- const mod = await import('./phantom-wallet-provider-ieVw9iZ_.esm.js');
17851
+ const mod = await import('./phantom-wallet-provider-SmsVVBCI.esm.js');
17847
17852
  return { PhantomWalletProvider: mod.PhantomWalletProvider };
17848
17853
  }
17849
17854
  async function loadSolanaMobileWalletProvider() {
17850
- const mod = await import('./solana-mobile-wallet-provider-CHMZajIq.esm.js');
17855
+ const mod = await import('./solana-mobile-wallet-provider-BMGBQI3W.esm.js');
17851
17856
  return mod.SolanaMobileWalletProvider;
17852
17857
  }
17853
17858
  async function hotSwapToPrivyProvider(config) {
@@ -18953,4 +18958,4 @@ class PrivyExpoProvider {
18953
18958
  }
18954
18959
 
18955
18960
  export { InsufficientBalanceError as $, getAuthProvider as A, get as B, set as C, setMany as D, setFile as E, getFiles as F, runQuery as G, runQueryMany as H, runExpression as I, runExpressionMany as J, signMessage as K, signTransaction as L, signAndSubmitTransaction as M, count as N, aggregate as O, subscribe as P, useAuth as Q, usePoofnetWallet as R, SOLANA_MAINNET_RPC_URL as S, deserializeTransaction as T, getIdToken as U, setPlatform as V, WebSessionManager as W, MockAuthProvider as X, DEFAULT_TEST_ADDRESS as Y, OffchainAuthProvider as Z, PrivyExpoProvider as _, SOLANA_DEVNET_RPC_URL as a, ReactNativeSessionManager as a0, ServerSessionManager as a1, clearCache as a2, closeAllSubscriptions as a3, getCachedData as a4, getMany as a5, reconnectWithNewAuth as a6, refreshSession as a7, signSessionCreateMessage as a8, buildSetDocumentsTransaction as b, convertRemainingAccounts as c, base58 as d, confirmAndCheckTransaction as e, createSessionWithPrivy as f, getPlatform as g, bufferExports as h, index as i, SURFNET_RPC_URL$1 as j, detectMobile as k, detectAndroid as l, setAuthLoading as m, genAuthNonce as n, genSolanaMessage as o, createSessionWithSignature as p, getDefaultExportFromCjs$1 as q, init as r, setCurrentUser as s, getCurrentUser as t, onAuthStateChanged as u, onAuthLoadingChanged as v, getAuthLoading as w, login as x, logout as y, getConfig as z };
18956
- //# sourceMappingURL=index.native-Ch6gsAP_.esm.js.map
18961
+ //# sourceMappingURL=index.native-CXtxnE1X.esm.js.map