@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.
- package/README.md +32 -0
- package/dist/auth/providers/sol/sol-utils.d.ts +2 -0
- package/dist/{index-BcDe_euX.js → index-Bfk81d8_.js} +883 -25
- package/dist/index-Bfk81d8_.js.map +1 -0
- package/dist/{index-Dho2J3X6.esm.js → index-CFh1x-M0.esm.js} +368 -162
- package/dist/index-CFh1x-M0.esm.js.map +1 -0
- package/dist/index-CdOv7Nw2.esm.js +6 -0
- package/dist/index-CdOv7Nw2.esm.js.map +1 -0
- package/dist/{index-_vhjpl1l.esm.js → index-CeQ8hE3s.esm.js} +881 -24
- package/dist/index-CeQ8hE3s.esm.js.map +1 -0
- package/dist/index-DDXzCx2W.js +8 -0
- package/dist/index-DDXzCx2W.js.map +1 -0
- package/dist/{index-CMeewi-G.js → index-DQVpAl5t.js} +368 -161
- package/dist/index-DQVpAl5t.js.map +1 -0
- package/dist/{index-BHYrnHi6.js → index-KUU0aVzP.js} +882 -24
- package/dist/index-KUU0aVzP.js.map +1 -0
- package/dist/{index-BqDvUK9s.esm.js → index-R7t9pRt_.esm.js} +882 -23
- package/dist/index-R7t9pRt_.esm.js.map +1 -0
- package/dist/{index.browser-Br0p4bjw.esm.js → index.browser-BE44CEaJ.esm.js} +3 -3
- package/dist/{index.browser-Br0p4bjw.esm.js.map → index.browser-BE44CEaJ.esm.js.map} +1 -1
- package/dist/{index.browser-DZjyUgtx.esm.js → index.browser-C-_FEr5M.esm.js} +449 -479
- package/dist/index.browser-C-_FEr5M.esm.js.map +1 -0
- package/dist/index.browser-C9bFQZyQ.esm.js +1373 -0
- package/dist/index.browser-C9bFQZyQ.esm.js.map +1 -0
- package/dist/index.browser-Dbq5Qf1G.esm.js +242 -0
- package/dist/index.browser-Dbq5Qf1G.esm.js.map +1 -0
- package/dist/index.browser-Df7yN8D5.js +245 -0
- package/dist/index.browser-Df7yN8D5.js.map +1 -0
- package/dist/{index.browser-BzHjnrpD.js → index.browser-Di1_YZpi.js} +3 -3
- package/dist/{index.browser-BzHjnrpD.js.map → index.browser-Di1_YZpi.js.map} +1 -1
- package/dist/{index.browser-BOJRGZWX.js → index.browser-DjEZSiqI.js} +449 -479
- package/dist/index.browser-DjEZSiqI.js.map +1 -0
- package/dist/index.browser-dszs5oe5.js +1376 -0
- package/dist/index.browser-dszs5oe5.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/{index.native-DcKDTqvq.js → index.native-CKd2b3_F.js} +2767 -188
- package/dist/index.native-CKd2b3_F.js.map +1 -0
- package/dist/{index.native-BB7er4-z.esm.js → index.native-DAyMVhFq.esm.js} +2766 -190
- package/dist/index.native-DAyMVhFq.esm.js.map +1 -0
- package/dist/index.native.d.ts +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +3 -1
- package/dist/index.native.js.map +1 -1
- package/dist/{phantom-wallet-provider-DMxFAUC4.js → phantom-wallet-provider-DJ6qf2VB.js} +4 -4
- package/dist/{phantom-wallet-provider-DMxFAUC4.js.map → phantom-wallet-provider-DJ6qf2VB.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DHok8ui3.esm.js → phantom-wallet-provider-DQ0uhl2v.esm.js} +4 -4
- package/dist/{phantom-wallet-provider-DHok8ui3.esm.js.map → phantom-wallet-provider-DQ0uhl2v.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-CFuoQYuv.esm.js → privy-wallet-provider-BhiHnphv.esm.js} +7 -8
- package/dist/privy-wallet-provider-BhiHnphv.esm.js.map +1 -0
- package/dist/{privy-wallet-provider-Bhvw0t1d.js → privy-wallet-provider-CMCv5g3O.js} +7 -8
- package/dist/privy-wallet-provider-CMCv5g3O.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js → solana-mobile-wallet-provider-DSSk_6CR.esm.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js.map → solana-mobile-wallet-provider-DSSk_6CR.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-D8b5y-By.js → solana-mobile-wallet-provider-DaFNesCe.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-D8b5y-By.js.map → solana-mobile-wallet-provider-DaFNesCe.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-BHYrnHi6.js.map +0 -1
- package/dist/index-BcDe_euX.js.map +0 -1
- package/dist/index-Bdcc5821.js +0 -2375
- package/dist/index-Bdcc5821.js.map +0 -1
- package/dist/index-BqDvUK9s.esm.js.map +0 -1
- package/dist/index-CMeewi-G.js.map +0 -1
- package/dist/index-CrOVJFX9.esm.js +0 -2373
- package/dist/index-CrOVJFX9.esm.js.map +0 -1
- package/dist/index-Dho2J3X6.esm.js.map +0 -1
- package/dist/index-_vhjpl1l.esm.js.map +0 -1
- package/dist/index.browser-BOJRGZWX.js.map +0 -1
- package/dist/index.browser-Btm3sRKb.esm.js +0 -307
- package/dist/index.browser-Btm3sRKb.esm.js.map +0 -1
- package/dist/index.browser-CGfjPfzM.esm.js +0 -1468
- package/dist/index.browser-CGfjPfzM.esm.js.map +0 -1
- package/dist/index.browser-DZjyUgtx.esm.js.map +0 -1
- package/dist/index.browser-Dapjfbl6.js +0 -310
- package/dist/index.browser-Dapjfbl6.js.map +0 -1
- package/dist/index.browser-JX3F6oPV.js +0 -1471
- package/dist/index.browser-JX3F6oPV.js.map +0 -1
- package/dist/index.native-BB7er4-z.esm.js.map +0 -1
- package/dist/index.native-DcKDTqvq.js.map +0 -1
- package/dist/privy-wallet-provider-Bhvw0t1d.js.map +0 -1
- package/dist/privy-wallet-provider-CFuoQYuv.esm.js.map +0 -1
package/dist/index.native.d.ts
CHANGED
|
@@ -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";
|
package/dist/index.native.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index_native = require('./index.native-
|
|
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;
|
package/dist/index.native.js.map
CHANGED
|
@@ -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-
|
|
4
|
-
var index_native = require('./index.native-
|
|
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-
|
|
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-
|
|
1328
|
+
//# sourceMappingURL=phantom-wallet-provider-DJ6qf2VB.js.map
|
package/dist/{phantom-wallet-provider-DMxFAUC4.js.map → phantom-wallet-provider-DJ6qf2VB.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phantom-wallet-provider-
|
|
1
|
+
{"version":3,"file":"phantom-wallet-provider-DJ6qf2VB.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/{phantom-wallet-provider-DHok8ui3.esm.js → phantom-wallet-provider-DQ0uhl2v.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bufferExports } from './index-
|
|
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,
|
|
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-
|
|
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-
|
|
1307
|
+
//# sourceMappingURL=phantom-wallet-provider-DQ0uhl2v.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phantom-wallet-provider-
|
|
1
|
+
{"version":3,"file":"phantom-wallet-provider-DQ0uhl2v.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/{privy-wallet-provider-CFuoQYuv.esm.js → privy-wallet-provider-BhiHnphv.esm.js}
RENAMED
|
@@ -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-
|
|
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
|
|
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 :
|
|
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-
|
|
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-
|
|
3920
|
+
//# sourceMappingURL=privy-wallet-provider-BhiHnphv.esm.js.map
|