@pooflabs/web 0.0.74 → 0.0.76

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 (59) hide show
  1. package/dist/auth/providers/sol/sol-utils.d.ts +2 -0
  2. package/dist/{index-QqlKSXH4.js → index-BilNgDSc.js} +2 -2406
  3. package/dist/index-BilNgDSc.js.map +1 -0
  4. package/dist/{index-CVK4iKo4.js → index-BrlvWT1Q.js} +93 -38
  5. package/dist/index-BrlvWT1Q.js.map +1 -0
  6. package/dist/{index-tYJgJQDc.esm.js → index-C5Cnn7Hq.esm.js} +94 -38
  7. package/dist/index-C5Cnn7Hq.esm.js.map +1 -0
  8. package/dist/{index-BVfqY0fJ.js → index-COMIXUxl.js} +2 -2406
  9. package/dist/index-COMIXUxl.js.map +1 -0
  10. package/dist/{index-ORXorrQK.esm.js → index-DeVykeX4.esm.js} +2 -2406
  11. package/dist/index-DeVykeX4.esm.js.map +1 -0
  12. package/dist/{index-ByH7PSr3.esm.js → index-Dsh0H37n.esm.js} +2 -2406
  13. package/dist/index-Dsh0H37n.esm.js.map +1 -0
  14. package/dist/{index.browser-DTId19-8.esm.js → index.browser--rDwfvXH.esm.js} +2 -2
  15. package/dist/{index.browser-DTId19-8.esm.js.map → index.browser--rDwfvXH.esm.js.map} +1 -1
  16. package/dist/{index.browser-GM5fUBfQ.js → index.browser-CLZv9v_y.js} +2 -2
  17. package/dist/{index.browser-GM5fUBfQ.js.map → index.browser-CLZv9v_y.js.map} +1 -1
  18. package/dist/{index.browser-De6JT7NR.js → index.browser-CMO2pjaF.js} +2 -2
  19. package/dist/{index.browser-De6JT7NR.js.map → index.browser-CMO2pjaF.js.map} +1 -1
  20. package/dist/{index.browser-C2K1wE09.esm.js → index.browser-CSTWylhG.esm.js} +2 -2
  21. package/dist/{index.browser-C2K1wE09.esm.js.map → index.browser-CSTWylhG.esm.js.map} +1 -1
  22. package/dist/{index.browser-D63nJFKg.esm.js → index.browser-DQKnuR3q.esm.js} +2 -2
  23. package/dist/{index.browser-D63nJFKg.esm.js.map → index.browser-DQKnuR3q.esm.js.map} +1 -1
  24. package/dist/{index.browser-B8vmX-tI.js → index.browser-DqO3G-HJ.js} +2 -2
  25. package/dist/{index.browser-B8vmX-tI.js.map → index.browser-DqO3G-HJ.js.map} +1 -1
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.esm.js +1 -1
  28. package/dist/index.js +2 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/{index.native-muw49g7i.js → index.native-CkUXrvPQ.js} +85 -16
  31. package/dist/index.native-CkUXrvPQ.js.map +1 -0
  32. package/dist/{index.native-CzfZTw_J.esm.js → index.native-H-fEcP_L.esm.js} +84 -16
  33. package/dist/index.native-H-fEcP_L.esm.js.map +1 -0
  34. package/dist/index.native.d.ts +1 -0
  35. package/dist/index.native.esm.js +1 -1
  36. package/dist/index.native.js +2 -1
  37. package/dist/index.native.js.map +1 -1
  38. package/dist/{phantom-wallet-provider-Di3Z8vOA.esm.js → phantom-wallet-provider-5IQi4ihD.esm.js} +6 -6
  39. package/dist/{phantom-wallet-provider-Di3Z8vOA.esm.js.map → phantom-wallet-provider-5IQi4ihD.esm.js.map} +1 -1
  40. package/dist/{phantom-wallet-provider-CeNZvRZY.js → phantom-wallet-provider-DrNrxSUL.js} +6 -6
  41. package/dist/{phantom-wallet-provider-CeNZvRZY.js.map → phantom-wallet-provider-DrNrxSUL.js.map} +1 -1
  42. package/dist/platform.d.ts +13 -0
  43. package/dist/{privy-wallet-provider-Cfws3b3x.esm.js → privy-wallet-provider-BtLH1dpY.esm.js} +8 -9
  44. package/dist/{privy-wallet-provider-Cfws3b3x.esm.js.map → privy-wallet-provider-BtLH1dpY.esm.js.map} +1 -1
  45. package/dist/{privy-wallet-provider-lbg2fDVg.js → privy-wallet-provider-CrRfcONv.js} +8 -9
  46. package/dist/{privy-wallet-provider-lbg2fDVg.js.map → privy-wallet-provider-CrRfcONv.js.map} +1 -1
  47. package/dist/{solana-mobile-wallet-provider-BZMvp9Qy.esm.js → solana-mobile-wallet-provider-C3l6mxSm.esm.js} +4 -4
  48. package/dist/{solana-mobile-wallet-provider-BZMvp9Qy.esm.js.map → solana-mobile-wallet-provider-C3l6mxSm.esm.js.map} +1 -1
  49. package/dist/{solana-mobile-wallet-provider-DDqwl25J.js → solana-mobile-wallet-provider-QcGazewW.js} +4 -4
  50. package/dist/{solana-mobile-wallet-provider-DDqwl25J.js.map → solana-mobile-wallet-provider-QcGazewW.js.map} +1 -1
  51. package/package.json +2 -2
  52. package/dist/index-BVfqY0fJ.js.map +0 -1
  53. package/dist/index-ByH7PSr3.esm.js.map +0 -1
  54. package/dist/index-CVK4iKo4.js.map +0 -1
  55. package/dist/index-ORXorrQK.esm.js.map +0 -1
  56. package/dist/index-QqlKSXH4.js.map +0 -1
  57. package/dist/index-tYJgJQDc.esm.js.map +0 -1
  58. package/dist/index.native-CzfZTw_J.esm.js.map +0 -1
  59. package/dist/index.native-muw49g7i.js.map +0 -1
@@ -15,6 +15,7 @@ export type { GetOptions as TarobaseGetOptions } from "@pooflabs/core";
15
15
  export { subscribe } from "@pooflabs/core";
16
16
  export * from "@pooflabs/core";
17
17
  export { useAuth } from "./auth/hooks/useAuth";
18
+ export { deserializeTransaction } from "./auth/providers/sol/sol-utils";
18
19
  export { getIdToken } from "./utils";
19
20
  export { setPlatform, getPlatform } from "./platform";
20
21
  export type { PlatformAdapter, StorageAdapter } from "./platform";
@@ -1,4 +1,4 @@
1
- export { T as DEFAULT_TEST_ADDRESS, X as InsufficientBalanceError, R as MockAuthProvider, U as OffchainAuthProvider, V as PrivyExpoProvider, Y as ReactNativeSessionManager, Z as ServerSessionManager, W as WebSessionManager, M as aggregate, b as buildSetDocumentsTransaction, _ as clearCache, $ as closeAllSubscriptions, c as convertRemainingAccounts, L as count, f as createSessionWithPrivy, l as createSessionWithSignature, j as genAuthNonce, k as genSolanaMessage, z as get, u as getAuthLoading, y as getAuthProvider, a0 as getCachedData, x as getConfig, p as getCurrentUser, D as getFiles, P as getIdToken, g as getPlatform, o as init, v as login, w as logout, t as onAuthLoadingChanged, q as onAuthStateChanged, a1 as reconnectWithNewAuth, a2 as refreshSession, G as runExpression, H as runExpressionMany, E as runQuery, F as runQueryMany, A as set, C as setFile, B as setMany, Q as setPlatform, K as signAndSubmitTransaction, I as signMessage, a3 as signSessionCreateMessage, J as signTransaction, N as subscribe, O as useAuth } from './index.native-CzfZTw_J.esm.js';
1
+ export { U as DEFAULT_TEST_ADDRESS, Y as InsufficientBalanceError, T as MockAuthProvider, V as OffchainAuthProvider, X as PrivyExpoProvider, Z as ReactNativeSessionManager, _ as ServerSessionManager, W as WebSessionManager, M as aggregate, b as buildSetDocumentsTransaction, $ as clearCache, a0 as closeAllSubscriptions, c as convertRemainingAccounts, L as count, f as createSessionWithPrivy, n as createSessionWithSignature, P as deserializeTransaction, l as genAuthNonce, m as genSolanaMessage, z as get, u as getAuthLoading, y as getAuthProvider, a1 as getCachedData, x as getConfig, q as getCurrentUser, D as getFiles, Q as getIdToken, g as getPlatform, p as init, v as login, w as logout, t as onAuthLoadingChanged, r as onAuthStateChanged, a2 as reconnectWithNewAuth, a3 as refreshSession, G as runExpression, H as runExpressionMany, E as runQuery, F as runQueryMany, A as set, C as setFile, B as setMany, R as setPlatform, K as signAndSubmitTransaction, I as signMessage, a4 as signSessionCreateMessage, J as signTransaction, N as subscribe, O as useAuth } from './index.native-H-fEcP_L.esm.js';
2
2
  import 'axios';
3
3
  import '@solana/web3.js';
4
4
  import '@coral-xyz/anchor';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index_native = require('./index.native-muw49g7i.js');
3
+ var index_native = require('./index.native-CkUXrvPQ.js');
4
4
  require('axios');
5
5
  require('@solana/web3.js');
6
6
  require('@coral-xyz/anchor');
@@ -24,6 +24,7 @@ exports.convertRemainingAccounts = index_native.convertRemainingAccounts;
24
24
  exports.count = index_native.count;
25
25
  exports.createSessionWithPrivy = index_native.createSessionWithPrivy;
26
26
  exports.createSessionWithSignature = index_native.createSessionWithSignature;
27
+ exports.deserializeTransaction = index_native.deserializeTransaction;
27
28
  exports.genAuthNonce = index_native.genAuthNonce;
28
29
  exports.genSolanaMessage = index_native.genSolanaMessage;
29
30
  exports.get = index_native.get;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.native.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { b as bufferExports } from './index-CrOVJFX9.esm.js';
2
- import { W as WebSessionManager, c as convertRemainingAccounts, b as buildSetDocumentsTransaction, e as confirmAndCheckTransaction, s as setCurrentUser, a as SOLANA_DEVNET_RPC_URL, S as SOLANA_MAINNET_RPC_URL, h as SURFNET_RPC_URL, g as getPlatform, i as setAuthLoading, j as genAuthNonce, k as genSolanaMessage, l as createSessionWithSignature } from './index.native-CzfZTw_J.esm.js';
2
+ import { W as WebSessionManager, c as convertRemainingAccounts, b as buildSetDocumentsTransaction, e as confirmAndCheckTransaction, s as setCurrentUser, a as SOLANA_DEVNET_RPC_URL, S as SOLANA_MAINNET_RPC_URL, h as SURFNET_RPC_URL, i as detectMobile, j as detectAndroid, k as setAuthLoading, l as genAuthNonce, m as genSolanaMessage, n as createSessionWithSignature, g as getPlatform } from './index.native-H-fEcP_L.esm.js';
3
3
  import { Connection, PublicKey, VersionedTransaction } from '@solana/web3.js';
4
4
  import * as anchor from '@coral-xyz/anchor';
5
5
  import 'axios';
@@ -26,7 +26,7 @@ async function loadDependencies() {
26
26
  const [reactModule, reactDomModule, phantomModule] = await Promise.all([
27
27
  import('react'),
28
28
  import('react-dom/client'),
29
- import('./index-ORXorrQK.esm.js')
29
+ import('./index-DeVykeX4.esm.js')
30
30
  ]);
31
31
  // Extract default export from ESM module namespace
32
32
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -164,7 +164,7 @@ class PhantomWalletProvider {
164
164
  const [hoveredBtn, setHoveredBtn] = React.useState(null);
165
165
  // Discover all available wallets via Wallet Standard + EIP-6963
166
166
  const { wallets: discoveredWallets } = useDiscoveredWallets();
167
- const isMobile = /Android|iPhone|iPad|iPod/i.test(getPlatform().getUserAgent());
167
+ const isMobile = detectMobile();
168
168
  const hasPhantomInjected = discoveredWallets.some((w) => w.id === 'phantom');
169
169
  const showDeeplink = isMobile && sdkProviders.includes('deeplink') && !hasPhantomInjected;
170
170
  // Track previous modal state to detect closes
@@ -556,7 +556,7 @@ class PhantomWalletProvider {
556
556
  }), 'Open Phantom app'));
557
557
  }
558
558
  // Mobile Wallet Adapter button — shown on Android when MWA callback is available
559
- const isAndroid = /Android/i.test(getPlatform().getUserAgent());
559
+ const isAndroid = detectAndroid();
560
560
  if (isAndroid && that.onSwitchToMWA) {
561
561
  walletButtons.push(React.createElement('button', {
562
562
  key: 'mobile-wallet',
@@ -945,7 +945,7 @@ class PhantomWalletProvider {
945
945
  documents: solTransactionData.txArgs[0].setDocumentData,
946
946
  delete_paths: solTransactionData.txArgs[0].deletePaths,
947
947
  txData: solTransactionData.txArgs[0].txData
948
- }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false);
948
+ }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);
949
949
  tx = result.tx;
950
950
  }
951
951
  if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {
@@ -1304,4 +1304,4 @@ class PhantomWalletProvider {
1304
1304
  PhantomWalletProvider.instance = null;
1305
1305
 
1306
1306
  export { PhantomWalletProvider };
1307
- //# sourceMappingURL=phantom-wallet-provider-Di3Z8vOA.esm.js.map
1307
+ //# sourceMappingURL=phantom-wallet-provider-5IQi4ihD.esm.js.map
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Bdcc5821.js');
4
- var index_native = require('./index.native-muw49g7i.js');
4
+ var index_native = require('./index.native-CkUXrvPQ.js');
5
5
  var web3_js = require('@solana/web3.js');
6
6
  var anchor = require('@coral-xyz/anchor');
7
7
  require('axios');
@@ -47,7 +47,7 @@ async function loadDependencies() {
47
47
  const [reactModule, reactDomModule, phantomModule] = await Promise.all([
48
48
  import('react'),
49
49
  import('react-dom/client'),
50
- Promise.resolve().then(function () { return require('./index-QqlKSXH4.js'); })
50
+ Promise.resolve().then(function () { return require('./index-BilNgDSc.js'); })
51
51
  ]);
52
52
  // Extract default export from ESM module namespace
53
53
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -185,7 +185,7 @@ class PhantomWalletProvider {
185
185
  const [hoveredBtn, setHoveredBtn] = React.useState(null);
186
186
  // Discover all available wallets via Wallet Standard + EIP-6963
187
187
  const { wallets: discoveredWallets } = useDiscoveredWallets();
188
- const isMobile = /Android|iPhone|iPad|iPod/i.test(index_native.getPlatform().getUserAgent());
188
+ const isMobile = index_native.detectMobile();
189
189
  const hasPhantomInjected = discoveredWallets.some((w) => w.id === 'phantom');
190
190
  const showDeeplink = isMobile && sdkProviders.includes('deeplink') && !hasPhantomInjected;
191
191
  // Track previous modal state to detect closes
@@ -577,7 +577,7 @@ class PhantomWalletProvider {
577
577
  }), 'Open Phantom app'));
578
578
  }
579
579
  // Mobile Wallet Adapter button — shown on Android when MWA callback is available
580
- const isAndroid = /Android/i.test(index_native.getPlatform().getUserAgent());
580
+ const isAndroid = index_native.detectAndroid();
581
581
  if (isAndroid && that.onSwitchToMWA) {
582
582
  walletButtons.push(React.createElement('button', {
583
583
  key: 'mobile-wallet',
@@ -966,7 +966,7 @@ class PhantomWalletProvider {
966
966
  documents: solTransactionData.txArgs[0].setDocumentData,
967
967
  delete_paths: solTransactionData.txArgs[0].deletePaths,
968
968
  txData: solTransactionData.txArgs[0].txData
969
- }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false);
969
+ }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);
970
970
  tx = result.tx;
971
971
  }
972
972
  if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {
@@ -1325,4 +1325,4 @@ class PhantomWalletProvider {
1325
1325
  PhantomWalletProvider.instance = null;
1326
1326
 
1327
1327
  exports.PhantomWalletProvider = PhantomWalletProvider;
1328
- //# sourceMappingURL=phantom-wallet-provider-CeNZvRZY.js.map
1328
+ //# sourceMappingURL=phant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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -60,6 +60,19 @@ export interface PlatformAdapter {
60
60
  export declare function setPlatform(adapter: Partial<PlatformAdapter>): void;
61
61
  /** Get the current platform adapter. */
62
62
  export declare function getPlatform(): PlatformAdapter;
63
+ /**
64
+ * Detect mobile device even when Chrome "Request Desktop Site" is active.
65
+ *
66
+ * Desktop mode on Android strips "Android" and "Mobile" from the UA, leaving
67
+ * something like "Linux x86_64 …". The fallback detects this by looking for
68
+ * touch capability + small viewport + a UA that doesn't belong to a known
69
+ * desktop OS (ChromeOS, Windows, macOS).
70
+ */
71
+ export declare function detectMobile(): boolean;
72
+ /**
73
+ * Detect Android, including desktop-mode Chrome and Seeker/Saga in-app browsers.
74
+ */
75
+ export declare function detectAndroid(): boolean;
63
76
  /**
64
77
  * Reset the platform to web defaults and clear the configured flag.
65
78
  * **For testing only** — not exported from the public API.
@@ -1,4 +1,4 @@
1
- import { S as SOLANA_MAINNET_RPC_URL, a as SOLANA_DEVNET_RPC_URL, W as WebSessionManager, c as convertRemainingAccounts, b as buildSetDocumentsTransaction, d as bs58, e as confirmAndCheckTransaction, s as setCurrentUser, g as getPlatform, f as createSessionWithPrivy } from './index.native-CzfZTw_J.esm.js';
1
+ import { S as SOLANA_MAINNET_RPC_URL, a as SOLANA_DEVNET_RPC_URL, W as WebSessionManager, c as convertRemainingAccounts, b as buildSetDocumentsTransaction, d as bs58, e as confirmAndCheckTransaction, s as setCurrentUser, g as getPlatform, f as createSessionWithPrivy } from './index.native-H-fEcP_L.esm.js';
2
2
  import { Connection, VersionedTransaction, PublicKey, Transaction } from '@solana/web3.js';
3
3
  import * as anchor from '@coral-xyz/anchor';
4
4
  import 'axios';
@@ -3046,7 +3046,7 @@ if (typeof window !== 'undefined') {
3046
3046
  privyImports = require('@privy-io/react-auth');
3047
3047
  privySolana = require('@privy-io/react-auth/solana');
3048
3048
  }
3049
- const defaultPrivyConfig = {
3049
+ const getDefaultPrivyConfig = () => ({
3050
3050
  appId: "cm4ve714908o27dk2yurpnfhd",
3051
3051
  config: {
3052
3052
  embeddedWallets: {
@@ -3059,14 +3059,13 @@ const defaultPrivyConfig = {
3059
3059
  },
3060
3060
  externalWallets: { solana: { connectors: privySolana.toSolanaWalletConnectors() } }
3061
3061
  }
3062
- };
3062
+ });
3063
3063
  class PrivyWalletProvider {
3064
3064
  constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
3065
3065
  this.containerElement = null;
3066
3066
  this.chainId = 'solana:mainnet';
3067
3067
  this.root = null;
3068
3068
  this.privyMethods = null;
3069
- this.privyConfig = defaultPrivyConfig;
3070
3069
  this.pendingLogin = null;
3071
3070
  // This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion
3072
3071
  this.pendingTransaction = null;
@@ -3086,7 +3085,7 @@ class PrivyWalletProvider {
3086
3085
  this.containerElement = null;
3087
3086
  this.root = null;
3088
3087
  this.privyMethods = null;
3089
- this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig : defaultPrivyConfig;
3088
+ this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig : getDefaultPrivyConfig();
3090
3089
  // Only use the appName and appLogoUrl if no privyConfig is provided
3091
3090
  if (privyConfig == null) {
3092
3091
  if (appName != null && appName != '') {
@@ -3098,7 +3097,7 @@ class PrivyWalletProvider {
3098
3097
  }
3099
3098
  // Ensure externalWallets connectors are always configured — required for
3100
3099
  // useWallets().ready to resolve even when no browser extension is present
3101
- if (!this.privyConfig.config.externalWallets) {
3100
+ if (!this.privyConfig.config.externalWallets && privySolana) {
3102
3101
  this.privyConfig.config.externalWallets = {
3103
3102
  solana: { connectors: privySolana.toSolanaWalletConnectors() }
3104
3103
  };
@@ -3460,7 +3459,7 @@ class PrivyWalletProvider {
3460
3459
  lastValidBlockHeight = latestBlockhash.lastValidBlockHeight;
3461
3460
  }
3462
3461
  else {
3463
- const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, new PublicKey(wallet.address), { app_id, documents: solTransactionData.txArgs[0].setDocumentData, delete_paths: solTransactionData.txArgs[0].deletePaths, txData: solTransactionData.txArgs[0].txData }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false);
3462
+ const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, new PublicKey(wallet.address), { app_id, documents: solTransactionData.txArgs[0].setDocumentData, delete_paths: solTransactionData.txArgs[0].deletePaths, txData: solTransactionData.txArgs[0].txData }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);
3464
3463
  tx = result.tx;
3465
3464
  blockhash = result.blockhash;
3466
3465
  lastValidBlockHeight = result.lastValidBlockHeight;
@@ -3849,7 +3848,7 @@ class PrivyWalletProvider {
3849
3848
  }));
3850
3849
  // The signature is returned as a Uint8Array, encode it as base58 (standard Solana format)
3851
3850
  const signatureBytes = (result === null || result === void 0 ? void 0 : result.signature) || result;
3852
- const bs58 = await import('./index.native-CzfZTw_J.esm.js').then(function (n) { return n.a4; });
3851
+ const bs58 = await import('./index.native-H-fEcP_L.esm.js').then(function (n) { return n.a5; });
3853
3852
  return bs58.default.encode(signatureBytes);
3854
3853
  }
3855
3854
  async restoreSession() {
@@ -3918,4 +3917,4 @@ class PrivyWalletProvider {
3918
3917
  PrivyWalletProvider.instance = null;
3919
3918
 
3920
3919
  export { PrivyWalletProvider };
3921
- //# sourceMappingURL=privy-wallet-provider-Cfws3b3x.esm.js.map
3920
+ //# sourceMappingURL=privy-wallet-provider-BtLH1dpY.esm.js.map