@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
|
@@ -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
|
var web3_js = require('@solana/web3.js');
|
|
5
5
|
var anchor = require('@coral-xyz/anchor');
|
|
6
6
|
require('axios');
|
|
@@ -3067,7 +3067,7 @@ if (typeof window !== 'undefined') {
|
|
|
3067
3067
|
privyImports = require('@privy-io/react-auth');
|
|
3068
3068
|
privySolana = require('@privy-io/react-auth/solana');
|
|
3069
3069
|
}
|
|
3070
|
-
const
|
|
3070
|
+
const getDefaultPrivyConfig = () => ({
|
|
3071
3071
|
appId: "cm4ve714908o27dk2yurpnfhd",
|
|
3072
3072
|
config: {
|
|
3073
3073
|
embeddedWallets: {
|
|
@@ -3080,14 +3080,13 @@ const defaultPrivyConfig = {
|
|
|
3080
3080
|
},
|
|
3081
3081
|
externalWallets: { solana: { connectors: privySolana.toSolanaWalletConnectors() } }
|
|
3082
3082
|
}
|
|
3083
|
-
};
|
|
3083
|
+
});
|
|
3084
3084
|
class PrivyWalletProvider {
|
|
3085
3085
|
constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
|
|
3086
3086
|
this.containerElement = null;
|
|
3087
3087
|
this.chainId = 'solana:mainnet';
|
|
3088
3088
|
this.root = null;
|
|
3089
3089
|
this.privyMethods = null;
|
|
3090
|
-
this.privyConfig = defaultPrivyConfig;
|
|
3091
3090
|
this.pendingLogin = null;
|
|
3092
3091
|
// This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion
|
|
3093
3092
|
this.pendingTransaction = null;
|
|
@@ -3107,7 +3106,7 @@ class PrivyWalletProvider {
|
|
|
3107
3106
|
this.containerElement = null;
|
|
3108
3107
|
this.root = null;
|
|
3109
3108
|
this.privyMethods = null;
|
|
3110
|
-
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig :
|
|
3109
|
+
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig : getDefaultPrivyConfig();
|
|
3111
3110
|
// Only use the appName and appLogoUrl if no privyConfig is provided
|
|
3112
3111
|
if (privyConfig == null) {
|
|
3113
3112
|
if (appName != null && appName != '') {
|
|
@@ -3119,7 +3118,7 @@ class PrivyWalletProvider {
|
|
|
3119
3118
|
}
|
|
3120
3119
|
// Ensure externalWallets connectors are always configured — required for
|
|
3121
3120
|
// useWallets().ready to resolve even when no browser extension is present
|
|
3122
|
-
if (!this.privyConfig.config.externalWallets) {
|
|
3121
|
+
if (!this.privyConfig.config.externalWallets && privySolana) {
|
|
3123
3122
|
this.privyConfig.config.externalWallets = {
|
|
3124
3123
|
solana: { connectors: privySolana.toSolanaWalletConnectors() }
|
|
3125
3124
|
};
|
|
@@ -3870,7 +3869,7 @@ class PrivyWalletProvider {
|
|
|
3870
3869
|
}));
|
|
3871
3870
|
// The signature is returned as a Uint8Array, encode it as base58 (standard Solana format)
|
|
3872
3871
|
const signatureBytes = (result === null || result === void 0 ? void 0 : result.signature) || result;
|
|
3873
|
-
const bs58 = await Promise.resolve().then(function () { return require('./index.native-
|
|
3872
|
+
const bs58 = await Promise.resolve().then(function () { return require('./index.native-CKd2b3_F.js'); }).then(function (n) { return n.index; });
|
|
3874
3873
|
return bs58.default.encode(signatureBytes);
|
|
3875
3874
|
}
|
|
3876
3875
|
async restoreSession() {
|
|
@@ -3939,4 +3938,4 @@ class PrivyWalletProvider {
|
|
|
3939
3938
|
PrivyWalletProvider.instance = null;
|
|
3940
3939
|
|
|
3941
3940
|
exports.PrivyWalletProvider = PrivyWalletProvider;
|
|
3942
|
-
//# sourceMappingURL=privy-wallet-provider-
|
|
3941
|
+
//# sourceMappingURL=privy-wallet-provider-CMCv5g3O.js.map
|