@pooflabs/web 0.0.75 → 0.0.77

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 (83) hide show
  1. package/README.md +32 -0
  2. package/dist/auth/providers/sol/sol-utils.d.ts +2 -0
  3. package/dist/{index-BcDe_euX.js → index-Bfk81d8_.js} +883 -25
  4. package/dist/index-Bfk81d8_.js.map +1 -0
  5. package/dist/{index-Dho2J3X6.esm.js → index-CFh1x-M0.esm.js} +368 -162
  6. package/dist/index-CFh1x-M0.esm.js.map +1 -0
  7. package/dist/index-CdOv7Nw2.esm.js +6 -0
  8. package/dist/index-CdOv7Nw2.esm.js.map +1 -0
  9. package/dist/{index-_vhjpl1l.esm.js → index-CeQ8hE3s.esm.js} +881 -24
  10. package/dist/index-CeQ8hE3s.esm.js.map +1 -0
  11. package/dist/index-DDXzCx2W.js +8 -0
  12. package/dist/index-DDXzCx2W.js.map +1 -0
  13. package/dist/{index-CMeewi-G.js → index-DQVpAl5t.js} +368 -161
  14. package/dist/index-DQVpAl5t.js.map +1 -0
  15. package/dist/{index-BHYrnHi6.js → index-KUU0aVzP.js} +882 -24
  16. package/dist/index-KUU0aVzP.js.map +1 -0
  17. package/dist/{index-BqDvUK9s.esm.js → index-R7t9pRt_.esm.js} +882 -23
  18. package/dist/index-R7t9pRt_.esm.js.map +1 -0
  19. package/dist/{index.browser-Br0p4bjw.esm.js → index.browser-BE44CEaJ.esm.js} +3 -3
  20. package/dist/{index.browser-Br0p4bjw.esm.js.map → index.browser-BE44CEaJ.esm.js.map} +1 -1
  21. package/dist/{index.browser-DZjyUgtx.esm.js → index.browser-C-_FEr5M.esm.js} +449 -479
  22. package/dist/index.browser-C-_FEr5M.esm.js.map +1 -0
  23. package/dist/index.browser-C9bFQZyQ.esm.js +1373 -0
  24. package/dist/index.browser-C9bFQZyQ.esm.js.map +1 -0
  25. package/dist/index.browser-Dbq5Qf1G.esm.js +242 -0
  26. package/dist/index.browser-Dbq5Qf1G.esm.js.map +1 -0
  27. package/dist/index.browser-Df7yN8D5.js +245 -0
  28. package/dist/index.browser-Df7yN8D5.js.map +1 -0
  29. package/dist/{index.browser-BzHjnrpD.js → index.browser-Di1_YZpi.js} +3 -3
  30. package/dist/{index.browser-BzHjnrpD.js.map → index.browser-Di1_YZpi.js.map} +1 -1
  31. package/dist/{index.browser-BOJRGZWX.js → index.browser-DjEZSiqI.js} +449 -479
  32. package/dist/index.browser-DjEZSiqI.js.map +1 -0
  33. package/dist/index.browser-dszs5oe5.js +1376 -0
  34. package/dist/index.browser-dszs5oe5.js.map +1 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.esm.js +1 -1
  37. package/dist/index.js +3 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/{index.native-DcKDTqvq.js → index.native-CKd2b3_F.js} +2767 -188
  40. package/dist/index.native-CKd2b3_F.js.map +1 -0
  41. package/dist/{index.native-BB7er4-z.esm.js → index.native-DAyMVhFq.esm.js} +2766 -190
  42. package/dist/index.native-DAyMVhFq.esm.js.map +1 -0
  43. package/dist/index.native.d.ts +1 -0
  44. package/dist/index.native.esm.js +1 -1
  45. package/dist/index.native.js +3 -1
  46. package/dist/index.native.js.map +1 -1
  47. package/dist/{phantom-wallet-provider-DMxFAUC4.js → phantom-wallet-provider-DJ6qf2VB.js} +4 -4
  48. package/dist/{phantom-wallet-provider-DMxFAUC4.js.map → phantom-wallet-provider-DJ6qf2VB.js.map} +1 -1
  49. package/dist/{phantom-wallet-provider-DHok8ui3.esm.js → phantom-wallet-provider-DQ0uhl2v.esm.js} +4 -4
  50. package/dist/{phantom-wallet-provider-DHok8ui3.esm.js.map → phantom-wallet-provider-DQ0uhl2v.esm.js.map} +1 -1
  51. package/dist/{privy-wallet-provider-CFuoQYuv.esm.js → privy-wallet-provider-BhiHnphv.esm.js} +7 -8
  52. package/dist/privy-wallet-provider-BhiHnphv.esm.js.map +1 -0
  53. package/dist/{privy-wallet-provider-Bhvw0t1d.js → privy-wallet-provider-CMCv5g3O.js} +7 -8
  54. package/dist/privy-wallet-provider-CMCv5g3O.js.map +1 -0
  55. package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js → solana-mobile-wallet-provider-DSSk_6CR.esm.js} +4 -4
  56. package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js.map → solana-mobile-wallet-provider-DSSk_6CR.esm.js.map} +1 -1
  57. package/dist/{solana-mobile-wallet-provider-D8b5y-By.js → solana-mobile-wallet-provider-DaFNesCe.js} +4 -4
  58. package/dist/{solana-mobile-wallet-provider-D8b5y-By.js.map → solana-mobile-wallet-provider-DaFNesCe.js.map} +1 -1
  59. package/package.json +2 -2
  60. package/dist/index-BHYrnHi6.js.map +0 -1
  61. package/dist/index-BcDe_euX.js.map +0 -1
  62. package/dist/index-Bdcc5821.js +0 -2375
  63. package/dist/index-Bdcc5821.js.map +0 -1
  64. package/dist/index-BqDvUK9s.esm.js.map +0 -1
  65. package/dist/index-CMeewi-G.js.map +0 -1
  66. package/dist/index-CrOVJFX9.esm.js +0 -2373
  67. package/dist/index-CrOVJFX9.esm.js.map +0 -1
  68. package/dist/index-Dho2J3X6.esm.js.map +0 -1
  69. package/dist/index-_vhjpl1l.esm.js.map +0 -1
  70. package/dist/index.browser-BOJRGZWX.js.map +0 -1
  71. package/dist/index.browser-Btm3sRKb.esm.js +0 -307
  72. package/dist/index.browser-Btm3sRKb.esm.js.map +0 -1
  73. package/dist/index.browser-CGfjPfzM.esm.js +0 -1468
  74. package/dist/index.browser-CGfjPfzM.esm.js.map +0 -1
  75. package/dist/index.browser-DZjyUgtx.esm.js.map +0 -1
  76. package/dist/index.browser-Dapjfbl6.js +0 -310
  77. package/dist/index.browser-Dapjfbl6.js.map +0 -1
  78. package/dist/index.browser-JX3F6oPV.js +0 -1471
  79. package/dist/index.browser-JX3F6oPV.js.map +0 -1
  80. package/dist/index.native-BB7er4-z.esm.js.map +0 -1
  81. package/dist/index.native-DcKDTqvq.js.map +0 -1
  82. package/dist/privy-wallet-provider-Bhvw0t1d.js.map +0 -1
  83. package/dist/privy-wallet-provider-CFuoQYuv.esm.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, n as createSessionWithSignature, l as genAuthNonce, m as genSolanaMessage, z as get, u as getAuthLoading, y as getAuthProvider, a0 as getCachedData, x as getConfig, q as getCurrentUser, D as getFiles, P as getIdToken, g as getPlatform, p as init, v as login, w as logout, t as onAuthLoadingChanged, r 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-BB7er4-z.esm.js';
1
+ export { X as DEFAULT_TEST_ADDRESS, _ as InsufficientBalanceError, V as MockAuthProvider, Y as OffchainAuthProvider, Z as PrivyExpoProvider, $ as ReactNativeSessionManager, a0 as ServerSessionManager, W as WebSessionManager, O as aggregate, b as buildSetDocumentsTransaction, a1 as clearCache, a2 as closeAllSubscriptions, c as convertRemainingAccounts, N as count, f as createSessionWithPrivy, o as createSessionWithSignature, R as deserializeTransaction, m as genAuthNonce, n as genSolanaMessage, B as get, w as getAuthLoading, A as getAuthProvider, a3 as getCachedData, z as getConfig, t as getCurrentUser, F as getFiles, T as getIdToken, a4 as getMany, g as getPlatform, q as init, x as login, y as logout, v as onAuthLoadingChanged, u as onAuthStateChanged, a5 as reconnectWithNewAuth, a6 as refreshSession, I as runExpression, J as runExpressionMany, G as runQuery, H as runQueryMany, C as set, E as setFile, D as setMany, U as setPlatform, M as signAndSubmitTransaction, K as signMessage, a7 as signSessionCreateMessage, L as signTransaction, P as subscribe, Q as useAuth } from './index.native-DAyMVhFq.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-DcKDTqvq.js');
3
+ var index_native = require('./index.native-CKd2b3_F.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;
@@ -34,6 +35,7 @@ exports.getConfig = index_native.getConfig;
34
35
  exports.getCurrentUser = index_native.getCurrentUser;
35
36
  exports.getFiles = index_native.getFiles;
36
37
  exports.getIdToken = index_native.getIdToken;
38
+ exports.getMany = index_native.getMany;
37
39
  exports.getPlatform = index_native.getPlatform;
38
40
  exports.init = index_native.init;
39
41
  exports.login = index_native.login;
@@ -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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bdcc5821.js');
4
- var index_native = require('./index.native-DcKDTqvq.js');
3
+ var index = require('./index-DDXzCx2W.js');
4
+ var index_native = require('./index.native-CKd2b3_F.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-BcDe_euX.js'); })
50
+ Promise.resolve().then(function () { return require('./index-Bfk81d8_.js'); })
51
51
  ]);
52
52
  // Extract default export from ESM module namespace
53
53
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -1325,4 +1325,4 @@ class PhantomWalletProvider {
1325
1325
  PhantomWalletProvider.instance = null;
1326
1326
 
1327
1327
  exports.PhantomWalletProvider = PhantomWalletProvider;
1328
- //# sourceMappingURL=phantom-wallet-provider-DMxFAUC4.js.map
1328
+ //# sourceMappingURL=phantom-wallet-provider-DJ6qf2VB.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"phantom-wallet-provider-DMxFAUC4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
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, i as detectMobile, j as detectAndroid, k as setAuthLoading, l as genAuthNonce, m as genSolanaMessage, n as createSessionWithSignature, g as getPlatform } from './index.native-BB7er4-z.esm.js';
1
+ import { b as bufferExports } from './index-CdOv7Nw2.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, j as detectMobile, k as detectAndroid, l as setAuthLoading, m as genAuthNonce, n as genSolanaMessage, o as createSessionWithSignature, g as getPlatform } from './index.native-DAyMVhFq.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-_vhjpl1l.esm.js')
29
+ import('./index-R7t9pRt_.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
@@ -1304,4 +1304,4 @@ class PhantomWalletProvider {
1304
1304
  PhantomWalletProvider.instance = null;
1305
1305
 
1306
1306
  export { PhantomWalletProvider };
1307
- //# sourceMappingURL=phantom-wallet-provider-DHok8ui3.esm.js.map
1307
+ //# sourceMappingURL=phantom-wallet-provider-DQ0uhl2v.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"phantom-wallet-provider-DHok8ui3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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-BB7er4-z.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-DAyMVhFq.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
  };
@@ -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-BB7er4-z.esm.js').then(function (n) { return n.a4; });
3851
+ const bs58 = await import('./index.native-DAyMVhFq.esm.js').then(function (n) { return n.i; });
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-CFuoQYuv.esm.js.map
3920
+ //# sourceMappingURL=privy-wallet-provider-BhiHnphv.esm.js.map