@pooflabs/web 0.0.92-rc1 → 0.0.92-rc2
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/dist/{index-DOAgc25g.esm.js → index-6iINLG88.esm.js} +20 -17
- package/dist/index-6iINLG88.esm.js.map +1 -0
- package/dist/index-CWD6VMLX.esm.js +6 -0
- package/dist/index-CWD6VMLX.esm.js.map +1 -0
- package/dist/{index-8ttHwD7w.esm.js → index-Dg3y_pRI.esm.js} +3 -3
- package/dist/{index-8ttHwD7w.esm.js.map → index-Dg3y_pRI.esm.js.map} +1 -1
- package/dist/{index-Qooqzt4n.js → index-GeHpO_Ud.js} +20 -17
- package/dist/index-GeHpO_Ud.js.map +1 -0
- package/dist/{index-B8EmyNEY.esm.js → index-dEUHmDSl.esm.js} +2 -2
- package/dist/{index-B8EmyNEY.esm.js.map → index-dEUHmDSl.esm.js.map} +1 -1
- package/dist/{index-Db6dsdHn.js → index-eFFOC8cE.js} +2 -2
- package/dist/index-eFFOC8cE.js.map +1 -0
- package/dist/{index-DYlgQ5eM.js → index-m53xb2JA.js} +3 -3
- package/dist/{index-DYlgQ5eM.js.map → index-m53xb2JA.js.map} +1 -1
- package/dist/{index-YWtjwOnI.js → index-vi52dsn6.js} +2 -2
- package/dist/{index-YWtjwOnI.js.map → index-vi52dsn6.js.map} +1 -1
- package/dist/{index.browser-DC1jUfJf.js → index.browser-B1Zbn8LC.js} +2 -2
- package/dist/{index.browser-DC1jUfJf.js.map → index.browser-B1Zbn8LC.js.map} +1 -1
- package/dist/{index.browser-BtqDgoVf.js → index.browser-D6XPhu6r.js} +2 -2
- package/dist/{index.browser-BtqDgoVf.js.map → index.browser-D6XPhu6r.js.map} +1 -1
- package/dist/{index.browser-BAtXWf8k.esm.js → index.browser-RwalL3F4.esm.js} +2 -2
- package/dist/{index.browser-BAtXWf8k.esm.js.map → index.browser-RwalL3F4.esm.js.map} +1 -1
- package/dist/{index.browser-Cmz2nG0U.esm.js → index.browser-wZkBhwtI.esm.js} +2 -2
- package/dist/{index.browser-Cmz2nG0U.esm.js.map → index.browser-wZkBhwtI.esm.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.native-DoznXdQe.js → index.native-Bjx72Wnj.js} +5 -11
- package/dist/index.native-Bjx72Wnj.js.map +1 -0
- package/dist/{index.native-BbmtowC0.esm.js → index.native-Dd783Qva.esm.js} +5 -11
- package/dist/index.native-Dd783Qva.esm.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-CNrBhCG1.js → phantom-wallet-provider-DUVViY9g.js} +4 -4
- package/dist/{phantom-wallet-provider-CNrBhCG1.js.map → phantom-wallet-provider-DUVViY9g.js.map} +1 -1
- package/dist/{phantom-wallet-provider-BZwDaCQQ.esm.js → phantom-wallet-provider-Dloixy8s.esm.js} +4 -4
- package/dist/{phantom-wallet-provider-BZwDaCQQ.esm.js.map → phantom-wallet-provider-Dloixy8s.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-CFa78z1Z.esm.js → privy-wallet-provider-BQbIRyXF.esm.js} +18 -9
- package/dist/{privy-wallet-provider-CFa78z1Z.esm.js.map → privy-wallet-provider-BQbIRyXF.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-BjiWbKiy.js → privy-wallet-provider-CEdQMBT2.js} +18 -9
- package/dist/{privy-wallet-provider-BjiWbKiy.js.map → privy-wallet-provider-CEdQMBT2.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-P6brXW6S.esm.js → solana-mobile-wallet-provider-ARvDWjP7.esm.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-P6brXW6S.esm.js.map → solana-mobile-wallet-provider-ARvDWjP7.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-yETC7TqO.js → solana-mobile-wallet-provider-CgQWQ7Sk.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-yETC7TqO.js.map → solana-mobile-wallet-provider-CgQWQ7Sk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B41m9KgX.esm.js +0 -6
- package/dist/index-B41m9KgX.esm.js.map +0 -1
- package/dist/index-DOAgc25g.esm.js.map +0 -1
- package/dist/index-Db6dsdHn.js.map +0 -1
- package/dist/index-Qooqzt4n.js.map +0 -1
- package/dist/index.native-BbmtowC0.esm.js.map +0 -1
- package/dist/index.native-DoznXdQe.js.map +0 -1
package/dist/{privy-wallet-provider-CFa78z1Z.esm.js → privy-wallet-provider-BQbIRyXF.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 base58, 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 base58, e as confirmAndCheckTransaction, s as setCurrentUser, g as getPlatform, f as createSessionWithPrivy } from './index.native-Dd783Qva.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';
|
|
@@ -3062,6 +3062,7 @@ const getDefaultPrivyConfig = () => ({
|
|
|
3062
3062
|
});
|
|
3063
3063
|
class PrivyWalletProvider {
|
|
3064
3064
|
constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
|
|
3065
|
+
var _a, _b;
|
|
3065
3066
|
this.containerElement = null;
|
|
3066
3067
|
this.chainId = 'solana:mainnet';
|
|
3067
3068
|
this.root = null;
|
|
@@ -3095,12 +3096,20 @@ class PrivyWalletProvider {
|
|
|
3095
3096
|
this.privyConfig.config.appearance.logo = appLogoUrl;
|
|
3096
3097
|
}
|
|
3097
3098
|
}
|
|
3098
|
-
// Ensure externalWallets
|
|
3099
|
-
//
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3099
|
+
// Ensure externalWallets.solana.connectors is a VALID Privy connector registry.
|
|
3100
|
+
// Privy (@privy-io/react-auth) calls connectors.onMount() during mount, so a
|
|
3101
|
+
// MISSING key OR an array (the common `connectors: []` mistake, e.g. in
|
|
3102
|
+
// social-only configs) crashes with
|
|
3103
|
+
// "externalWallets.solana.connectors.onMount is not a function". Normalize both
|
|
3104
|
+
// cases to a real toSolanaWalletConnectors() registry. This does NOT force a
|
|
3105
|
+
// wallet picker — the modal's visible login methods are controlled by
|
|
3106
|
+
// loginMethods; connectors only need to be present for useWallets().ready.
|
|
3107
|
+
if (privySolana) {
|
|
3108
|
+
const ew = this.privyConfig.config.externalWallets;
|
|
3109
|
+
const connectors = (_a = ew === null || ew === void 0 ? void 0 : ew.solana) === null || _a === void 0 ? void 0 : _a.connectors;
|
|
3110
|
+
if (!ew || !connectors || Array.isArray(connectors)) {
|
|
3111
|
+
this.privyConfig.config.externalWallets = Object.assign(Object.assign({}, (ew !== null && ew !== void 0 ? ew : {})), { solana: Object.assign(Object.assign({}, ((_b = ew === null || ew === void 0 ? void 0 : ew.solana) !== null && _b !== void 0 ? _b : {})), { connectors: privySolana.toSolanaWalletConnectors() }) });
|
|
3112
|
+
}
|
|
3104
3113
|
}
|
|
3105
3114
|
// Add Solana RPC configuration for v3
|
|
3106
3115
|
let devnetUrl = SOLANA_DEVNET_RPC_URL;
|
|
@@ -3848,7 +3857,7 @@ class PrivyWalletProvider {
|
|
|
3848
3857
|
}));
|
|
3849
3858
|
// The signature is returned as a Uint8Array, encode it as base58 (standard Solana format)
|
|
3850
3859
|
const signatureBytes = (result === null || result === void 0 ? void 0 : result.signature) || result;
|
|
3851
|
-
const bs58 = await import('./index.native-
|
|
3860
|
+
const bs58 = await import('./index.native-Dd783Qva.esm.js').then(function (n) { return n.ag; });
|
|
3852
3861
|
return bs58.default.encode(signatureBytes);
|
|
3853
3862
|
}
|
|
3854
3863
|
async restoreSession() {
|
|
@@ -3917,4 +3926,4 @@ class PrivyWalletProvider {
|
|
|
3917
3926
|
PrivyWalletProvider.instance = null;
|
|
3918
3927
|
|
|
3919
3928
|
export { PrivyWalletProvider };
|
|
3920
|
-
//# sourceMappingURL=privy-wallet-provider-
|
|
3929
|
+
//# sourceMappingURL=privy-wallet-provider-BQbIRyXF.esm.js.map
|