@pooflabs/web 0.0.85-rc3 → 0.0.86

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 (50) hide show
  1. package/dist/{index-BaKs3A8s.js → index-BHkED2YI.js} +2 -2
  2. package/dist/{index-BaKs3A8s.js.map → index-BHkED2YI.js.map} +1 -1
  3. package/dist/{index-C4AnWFs_.esm.js → index-BQUfNEiY.esm.js} +12 -49
  4. package/dist/{index-C4AnWFs_.esm.js.map → index-BQUfNEiY.esm.js.map} +1 -1
  5. package/dist/{index-BE-VWSJT.esm.js → index-Cfp30Jm_.esm.js} +2 -2
  6. package/dist/{index-BE-VWSJT.esm.js.map → index-Cfp30Jm_.esm.js.map} +1 -1
  7. package/dist/{index-B5qYY4YM.js → index-D-Wbwevj.js} +2 -2
  8. package/dist/index-D-Wbwevj.js.map +1 -0
  9. package/dist/{index-dqqR5q7b.esm.js → index-DK28JaJm.esm.js} +3 -3
  10. package/dist/{index-dqqR5q7b.esm.js.map → index-DK28JaJm.esm.js.map} +1 -1
  11. package/dist/index-DKyWaxCB.esm.js +6 -0
  12. package/dist/index-DKyWaxCB.esm.js.map +1 -0
  13. package/dist/{index-BzeiIIwF.js → index-DUn32Hkh.js} +3 -3
  14. package/dist/{index-BzeiIIwF.js.map → index-DUn32Hkh.js.map} +1 -1
  15. package/dist/{index-bEXLwE7_.js → index-hEc5_KoM.js} +12 -49
  16. package/dist/{index-bEXLwE7_.js.map → index-hEc5_KoM.js.map} +1 -1
  17. package/dist/{index.browser-DQIwLToJ.esm.js → index.browser-C9gHoUen.esm.js} +2 -2
  18. package/dist/{index.browser-DQIwLToJ.esm.js.map → index.browser-C9gHoUen.esm.js.map} +1 -1
  19. package/dist/{index.browser-CN6obNQM.js → index.browser-CbawPvh6.js} +2 -2
  20. package/dist/{index.browser-CN6obNQM.js.map → index.browser-CbawPvh6.js.map} +1 -1
  21. package/dist/{index.browser-CZIJCtms.js → index.browser-DD8pg_L2.js} +2 -2
  22. package/dist/{index.browser-CZIJCtms.js.map → index.browser-DD8pg_L2.js.map} +1 -1
  23. package/dist/{index.browser-D8ttddP4.esm.js → index.browser-DQqKPfDA.esm.js} +2 -2
  24. package/dist/{index.browser-D8ttddP4.esm.js.map → index.browser-DQqKPfDA.esm.js.map} +1 -1
  25. package/dist/index.esm.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/{index.native-pG1NTZ0f.js → index.native-7hiNiSyC.js} +4 -4
  28. package/dist/{index.native-pG1NTZ0f.js.map → index.native-7hiNiSyC.js.map} +1 -1
  29. package/dist/{index.native-DLziTime.esm.js → index.native-BItnSD47.esm.js} +4 -4
  30. package/dist/{index.native-DLziTime.esm.js.map → index.native-BItnSD47.esm.js.map} +1 -1
  31. package/dist/index.native.esm.js +1 -1
  32. package/dist/index.native.js +1 -1
  33. package/dist/{phantom-wallet-provider-zBp7-uEw.js → phantom-wallet-provider-CjvLq_2_.js} +4 -4
  34. package/dist/{phantom-wallet-provider-zBp7-uEw.js.map → phantom-wallet-provider-CjvLq_2_.js.map} +1 -1
  35. package/dist/{phantom-wallet-provider-CP6NXRwG.esm.js → phantom-wallet-provider-DE3vit2Z.esm.js} +4 -4
  36. package/dist/{phantom-wallet-provider-CP6NXRwG.esm.js.map → phantom-wallet-provider-DE3vit2Z.esm.js.map} +1 -1
  37. package/dist/{privy-wallet-provider-CoyW5Gdg.js → privy-wallet-provider-DFZaQPss.js} +3 -3
  38. package/dist/{privy-wallet-provider-CoyW5Gdg.js.map → privy-wallet-provider-DFZaQPss.js.map} +1 -1
  39. package/dist/{privy-wallet-provider-CGYvf3-r.esm.js → privy-wallet-provider-ip2pqo_U.esm.js} +3 -3
  40. package/dist/{privy-wallet-provider-CGYvf3-r.esm.js.map → privy-wallet-provider-ip2pqo_U.esm.js.map} +1 -1
  41. package/dist/{solana-mobile-wallet-provider-B8rHfsPN.esm.js → solana-mobile-wallet-provider-D7BbSpez.esm.js} +11 -48
  42. package/dist/solana-mobile-wallet-provider-D7BbSpez.esm.js.map +1 -0
  43. package/dist/{solana-mobile-wallet-provider-CN-D_H4l.js → solana-mobile-wallet-provider-DwER68Rz.js} +11 -48
  44. package/dist/solana-mobile-wallet-provider-DwER68Rz.js.map +1 -0
  45. package/package.json +1 -1
  46. package/dist/index-B5qYY4YM.js.map +0 -1
  47. package/dist/index-TzHXEf3-.esm.js +0 -6
  48. package/dist/index-TzHXEf3-.esm.js.map +0 -1
  49. package/dist/solana-mobile-wallet-provider-B8rHfsPN.esm.js.map +0 -1
  50. package/dist/solana-mobile-wallet-provider-CN-D_H4l.js.map +0 -1
@@ -15709,7 +15709,7 @@ async function loadDependencies() {
15709
15709
  const [reactModule, reactDomModule, phantomModule] = await Promise.all([
15710
15710
  import('react'),
15711
15711
  import('react-dom/client'),
15712
- import('./index-BE-VWSJT.esm.js')
15712
+ import('./index-Cfp30Jm_.esm.js')
15713
15713
  ]);
15714
15714
  // Extract default export from ESM module namespace
15715
15715
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -21336,20 +21336,11 @@ function isMwaAssociationRetryable(e) {
21336
21336
  * so a second attempt skips the consent sheet, jumps straight to
21337
21337
  * Verify/Approve, and completes inside the timeout.
21338
21338
  */
21339
- async function withMwaAssociationRetry(label, fn) {
21340
- const t0 = Date.now();
21341
- console.log(`[MWA-DEBUG] ${label} attempt=1 start`);
21339
+ async function withMwaAssociationRetry(fn) {
21342
21340
  try {
21343
- const result = await fn();
21344
- console.log(`[MWA-DEBUG] ${label} attempt=1 ok (${Date.now() - t0}ms)`);
21345
- return result;
21341
+ return await fn();
21346
21342
  }
21347
21343
  catch (e) {
21348
- const info = findMwaError(e);
21349
- console.log(`[MWA-DEBUG] ${label} attempt=1 err (${Date.now() - t0}ms)`, {
21350
- outer: { name: e === null || e === void 0 ? void 0 : e.name, message: e === null || e === void 0 ? void 0 : e.message },
21351
- mwa: info,
21352
- });
21353
21344
  const retryable = isMwaAssociationRetryable(e);
21354
21345
  if (!retryable)
21355
21346
  throw e;
@@ -21358,21 +21349,11 @@ async function withMwaAssociationRetry(label, fn) {
21358
21349
  // so visibility-based waits fire too early. Use a fixed delay long
21359
21350
  // enough for Seeker to dismiss its sheet and the OS to release intent
21360
21351
  // state. 2.5s is empirically safe; tune from device traces if needed.
21361
- console.log(`[MWA-DEBUG] ${label} retryable (${retryable.code}); waiting 2500ms before retry`);
21362
21352
  await new Promise(r => setTimeout(r, 2500));
21363
- const t1 = Date.now();
21364
- console.log(`[MWA-DEBUG] ${label} attempt=2 start`);
21365
21353
  try {
21366
- const result = await fn();
21367
- console.log(`[MWA-DEBUG] ${label} attempt=2 ok (${Date.now() - t1}ms)`);
21368
- return result;
21354
+ return await fn();
21369
21355
  }
21370
21356
  catch (e2) {
21371
- const info2 = findMwaError(e2);
21372
- console.log(`[MWA-DEBUG] ${label} attempt=2 err (${Date.now() - t1}ms)`, {
21373
- outer: { name: e2 === null || e2 === void 0 ? void 0 : e2.name, message: e2 === null || e2 === void 0 ? void 0 : e2.message },
21374
- mwa: info2,
21375
- });
21376
21357
  // Only mask the error with the clean Seeker message when the
21377
21358
  // second failure is also an association-flavored error. If it's
21378
21359
  // a user cancel, wallet rejection, or unknown error, rethrow
@@ -21411,7 +21392,7 @@ async function withMwaAssociationRetry(label, fn) {
21411
21392
  * next tap is a new activation (a real retry). A timer-based retry would
21412
21393
  * just hit the same Chrome block. Cap at 3 attempts before giving up.
21413
21394
  */
21414
- async function awaitSignInGestureAndSign(label, theme, signFn) {
21395
+ async function awaitSignInGestureAndSign(theme, signFn) {
21415
21396
  if (typeof document === 'undefined' || typeof window === 'undefined') {
21416
21397
  // SSR / non-browser: skip the gesture, just call (the activation
21417
21398
  // model doesn't apply outside the browser).
@@ -21578,18 +21559,15 @@ async function awaitSignInGestureAndSign(label, theme, signFn) {
21578
21559
  finishReject(new Error('User cancelled wallet sign in'));
21579
21560
  };
21580
21561
  closeBtn.addEventListener('click', () => {
21581
- console.log(`[MWA-DEBUG] ${label} gesture: close clicked`);
21582
21562
  handleCancel();
21583
21563
  });
21584
21564
  overlay.addEventListener('click', (e) => {
21585
21565
  if (e.target === overlay) {
21586
- console.log(`[MWA-DEBUG] ${label} gesture: overlay clicked (cancel)`);
21587
21566
  handleCancel();
21588
21567
  }
21589
21568
  });
21590
21569
  const onKeydown = (e) => {
21591
21570
  if (e.key === 'Escape') {
21592
- console.log(`[MWA-DEBUG] ${label} gesture: Escape pressed (cancel)`);
21593
21571
  handleCancel();
21594
21572
  }
21595
21573
  };
@@ -21599,7 +21577,6 @@ async function awaitSignInGestureAndSign(label, theme, signFn) {
21599
21577
  return;
21600
21578
  attemptCount++;
21601
21579
  const attempt = attemptCount;
21602
- console.log(`[MWA-DEBUG] ${label} gesture: button click attempt=${attempt}`);
21603
21580
  // Disable to prevent double-clicks while the wallet popup is up.
21604
21581
  button.disabled = true;
21605
21582
  setButtonDisabledStyle();
@@ -21611,29 +21588,17 @@ async function awaitSignInGestureAndSign(label, theme, signFn) {
21611
21588
  // so Chrome's transient user activation propagates to the
21612
21589
  // protocol's window.location.assign(associationUrl) inside
21613
21590
  // launchAssociation(). Do not `await` before calling.
21614
- const t0 = Date.now();
21615
- console.log(`[MWA-DEBUG] ${label} gesture: signMessage start (attempt=${attempt})`);
21616
21591
  signFn().then((results) => {
21617
- const elapsed = Date.now() - t0;
21618
21592
  if (!results || results.length === 0) {
21619
- console.log(`[MWA-DEBUG] ${label} gesture: signMessage returned empty (attempt=${attempt}, ${elapsed}ms)`);
21620
21593
  finishReject(new Error('MWA returned no signature'));
21621
21594
  return;
21622
21595
  }
21623
- console.log(`[MWA-DEBUG] ${label} gesture: signMessage ok (attempt=${attempt}, ${elapsed}ms)`);
21624
21596
  finishResolve(results[0]);
21625
21597
  }).catch((err) => {
21626
- const elapsed = Date.now() - t0;
21627
- const info = findMwaError(err);
21628
- console.log(`[MWA-DEBUG] ${label} gesture: signMessage err (attempt=${attempt}, ${elapsed}ms)`, {
21629
- outer: { name: err === null || err === void 0 ? void 0 : err.name, message: err === null || err === void 0 ? void 0 : err.message },
21630
- mwa: info,
21631
- });
21632
21598
  const retryable = isMwaAssociationRetryable(err);
21633
21599
  if (retryable && attempt < MAX_ATTEMPTS) {
21634
21600
  // Re-enable the button so the user's next tap provides a
21635
21601
  // fresh user activation. Show inline error text.
21636
- console.log(`[MWA-DEBUG] ${label} gesture: retryable (${retryable.code}); awaiting user tap to retry (attempt ${attempt}/${MAX_ATTEMPTS})`);
21637
21602
  button.disabled = false;
21638
21603
  setButtonEnabledStyle();
21639
21604
  button.textContent = originalText;
@@ -21643,7 +21608,6 @@ async function awaitSignInGestureAndSign(label, theme, signFn) {
21643
21608
  }
21644
21609
  if (retryable) {
21645
21610
  // Hit the attempt cap with a still-retryable failure.
21646
- console.log(`[MWA-DEBUG] ${label} gesture: retryable but attempt cap reached (${attempt})`);
21647
21611
  finishReject(new Error("Couldn't connect to your Seeker wallet. Please try again."));
21648
21612
  return;
21649
21613
  }
@@ -21652,7 +21616,6 @@ async function awaitSignInGestureAndSign(label, theme, signFn) {
21652
21616
  finishReject(err);
21653
21617
  });
21654
21618
  });
21655
- console.log(`[MWA-DEBUG] ${label} gesture: modal shown`);
21656
21619
  });
21657
21620
  }
21658
21621
  /**
@@ -21796,7 +21759,7 @@ async function registerMobileWalletAdapter(config) {
21796
21759
  if (typeof window === 'undefined')
21797
21760
  return;
21798
21761
  try {
21799
- const walletStandardMobile = await import('./index.browser-DQIwLToJ.esm.js');
21762
+ const walletStandardMobile = await import('./index.browser-C9gHoUen.esm.js');
21800
21763
  const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);
21801
21764
  if (!registerMwa) {
21802
21765
  console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');
@@ -21823,7 +21786,7 @@ async function registerMobileWalletAdapter(config) {
21823
21786
  // SolanaMobileWalletProvider.ensureWallet() for why. Consumers that
21824
21787
  // want their own UX can pass config.onWalletNotFound.
21825
21788
  options.onWalletNotFound = (_b = config === null || config === void 0 ? void 0 : config.onWalletNotFound) !== null && _b !== void 0 ? _b : (async () => {
21826
- console.warn('[MWA-DEBUG] registerMobileWalletAdapter onWalletNotFound (suppressed)');
21789
+ // intentional no-op
21827
21790
  });
21828
21791
  registerMwa(options);
21829
21792
  }
@@ -21888,7 +21851,7 @@ class SolanaMobileWalletProvider {
21888
21851
  async ensureWallet() {
21889
21852
  if (this.wallet)
21890
21853
  return this.wallet;
21891
- const mod = await import('./index.browser-DQIwLToJ.esm.js');
21854
+ const mod = await import('./index.browser-C9gHoUen.esm.js');
21892
21855
  const chain = mapChainToWalletStandard(this.cluster);
21893
21856
  this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({
21894
21857
  appIdentity: this.appIdentity,
@@ -21902,7 +21865,7 @@ class SolanaMobileWalletProvider {
21902
21865
  // login()'s withMwaAssociationRetry handles this case; on second
21903
21866
  // failure it surfaces a clean error message to the host app.
21904
21867
  onWalletNotFound: async () => {
21905
- console.warn('[MWA-DEBUG] ensureWallet onWalletNotFound (suppressed)');
21868
+ // intentional no-op
21906
21869
  },
21907
21870
  });
21908
21871
  return this.wallet;
@@ -21976,7 +21939,7 @@ class SolanaMobileWalletProvider {
21976
21939
  // consent on the second pass and completes quickly. See
21977
21940
  // withMwaAssociationRetry for details.
21978
21941
  const connectFeat = getConnectFeature(wallet);
21979
- const { accounts } = await withMwaAssociationRetry('login:connect', () => connectFeat.connect());
21942
+ const { accounts } = await withMwaAssociationRetry(() => connectFeat.connect());
21980
21943
  if (!accounts || accounts.length === 0) {
21981
21944
  throw new Error('MWA returned no accounts');
21982
21945
  }
@@ -22009,7 +21972,7 @@ class SolanaMobileWalletProvider {
22009
21972
  const messageText = await genSolanaMessage(base58Addr, nonce);
22010
21973
  const messageBytes = getPlatform().textEncode(messageText);
22011
21974
  const signMessageFeat = getSignMessageFeature(wallet);
22012
- const signResult = await awaitSignInGestureAndSign('login:signMessage', this.config.theme, () => signMessageFeat.signMessage({ account, message: messageBytes }));
21975
+ const signResult = await awaitSignInGestureAndSign(this.config.theme, () => signMessageFeat.signMessage({ account, message: messageBytes }));
22013
21976
  if (!signResult) {
22014
21977
  throw new Error('MWA returned no signature');
22015
21978
  }
@@ -22766,4 +22729,4 @@ class PrivyExpoProvider {
22766
22729
  }
22767
22730
 
22768
22731
  export { getCachedData as $, subscribe as A, useAuth as B, deserializeTransaction as C, getIdToken as D, setPlatform as E, getPlatform as F, PrivyWalletProvider as G, DEFAULT_TEST_ADDRESS as H, isMobileWalletAvailable as I, registerMobileWalletAdapter as J, PrivyExpoProvider as K, InsufficientBalanceError as L, MockAuthProvider as M, ServerSessionManager as N, OffchainAuthProvider as O, PhantomWalletProvider as P, buildSetDocumentsTransaction as Q, ReactNativeSessionManager as R, SolanaMobileWalletProvider as S, clearCache as T, closeAllSubscriptions as U, convertRemainingAccounts as V, WebSessionManager as W, createSessionWithPrivy as X, createSessionWithSignature as Y, genAuthNonce as Z, genSolanaMessage as _, base58 as a, getMany as a0, reconnectWithNewAuth as a1, refreshSession as a2, signSessionCreateMessage as a3, bufferExports as b, getCurrentUser as c, onAuthLoadingChanged as d, getAuthLoading as e, logout as f, getDefaultExportFromCjs$1 as g, getConfig as h, init as i, getAuthProvider as j, get as k, login as l, setMany as m, setFile as n, onAuthStateChanged as o, getFiles as p, runQueryMany as q, runQuery as r, set as s, runExpression as t, runExpressionMany as u, signMessage as v, signTransaction as w, signAndSubmitTransaction as x, count as y, aggregate as z };
22769
- //# sourceMappingURL=index-C4AnWFs_.esm.js.map
22732
+ //# sourceMappingURL=index-BQUfNEiY.esm.js.map