@pooflabs/web 0.0.75 → 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.
- package/dist/auth/providers/sol/sol-utils.d.ts +2 -0
- package/dist/{index-BcDe_euX.js → index-BilNgDSc.js} +2 -2
- package/dist/{index-BcDe_euX.js.map → index-BilNgDSc.js.map} +1 -1
- package/dist/{index-CMeewi-G.js → index-BrlvWT1Q.js} +19 -9
- package/dist/{index-CMeewi-G.js.map → index-BrlvWT1Q.js.map} +1 -1
- package/dist/{index-Dho2J3X6.esm.js → index-C5Cnn7Hq.esm.js} +20 -11
- package/dist/{index-Dho2J3X6.esm.js.map → index-C5Cnn7Hq.esm.js.map} +1 -1
- package/dist/{index-BHYrnHi6.js → index-COMIXUxl.js} +2 -2
- package/dist/{index-BHYrnHi6.js.map → index-COMIXUxl.js.map} +1 -1
- package/dist/{index-_vhjpl1l.esm.js → index-DeVykeX4.esm.js} +2 -2
- package/dist/{index-_vhjpl1l.esm.js.map → index-DeVykeX4.esm.js.map} +1 -1
- package/dist/{index-BqDvUK9s.esm.js → index-Dsh0H37n.esm.js} +2 -2
- package/dist/{index-BqDvUK9s.esm.js.map → index-Dsh0H37n.esm.js.map} +1 -1
- package/dist/{index.browser-Btm3sRKb.esm.js → index.browser--rDwfvXH.esm.js} +2 -2
- package/dist/{index.browser-Btm3sRKb.esm.js.map → index.browser--rDwfvXH.esm.js.map} +1 -1
- package/dist/{index.browser-Dapjfbl6.js → index.browser-CLZv9v_y.js} +2 -2
- package/dist/{index.browser-Dapjfbl6.js.map → index.browser-CLZv9v_y.js.map} +1 -1
- package/dist/{index.browser-BzHjnrpD.js → index.browser-CMO2pjaF.js} +2 -2
- package/dist/{index.browser-BzHjnrpD.js.map → index.browser-CMO2pjaF.js.map} +1 -1
- package/dist/{index.browser-Br0p4bjw.esm.js → index.browser-CSTWylhG.esm.js} +2 -2
- package/dist/{index.browser-Br0p4bjw.esm.js.map → index.browser-CSTWylhG.esm.js.map} +1 -1
- package/dist/{index.browser-CGfjPfzM.esm.js → index.browser-DQKnuR3q.esm.js} +2 -2
- package/dist/{index.browser-CGfjPfzM.esm.js.map → index.browser-DQKnuR3q.esm.js.map} +1 -1
- package/dist/{index.browser-JX3F6oPV.js → index.browser-DqO3G-HJ.js} +2 -2
- package/dist/{index.browser-JX3F6oPV.js.map → index.browser-DqO3G-HJ.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{index.native-DcKDTqvq.js → index.native-CkUXrvPQ.js} +15 -4
- package/dist/{index.native-DcKDTqvq.js.map → index.native-CkUXrvPQ.js.map} +1 -1
- package/dist/{index.native-BB7er4-z.esm.js → index.native-H-fEcP_L.esm.js} +16 -6
- package/dist/{index.native-BB7er4-z.esm.js.map → index.native-H-fEcP_L.esm.js.map} +1 -1
- package/dist/index.native.d.ts +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +2 -1
- package/dist/index.native.js.map +1 -1
- package/dist/{phantom-wallet-provider-DHok8ui3.esm.js → phantom-wallet-provider-5IQi4ihD.esm.js} +3 -3
- package/dist/{phantom-wallet-provider-DHok8ui3.esm.js.map → phantom-wallet-provider-5IQi4ihD.esm.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DMxFAUC4.js → phantom-wallet-provider-DrNrxSUL.js} +3 -3
- package/dist/{phantom-wallet-provider-DMxFAUC4.js.map → phantom-wallet-provider-DrNrxSUL.js.map} +1 -1
- package/dist/{privy-wallet-provider-CFuoQYuv.esm.js → privy-wallet-provider-BtLH1dpY.esm.js} +7 -8
- package/dist/{privy-wallet-provider-CFuoQYuv.esm.js.map → privy-wallet-provider-BtLH1dpY.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-Bhvw0t1d.js → privy-wallet-provider-CrRfcONv.js} +7 -8
- package/dist/{privy-wallet-provider-Bhvw0t1d.js.map → privy-wallet-provider-CrRfcONv.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js → solana-mobile-wallet-provider-C3l6mxSm.esm.js} +3 -3
- package/dist/{solana-mobile-wallet-provider-BpQghAgC.esm.js.map → solana-mobile-wallet-provider-C3l6mxSm.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-D8b5y-By.js → solana-mobile-wallet-provider-QcGazewW.js} +3 -3
- package/dist/{solana-mobile-wallet-provider-D8b5y-By.js.map → solana-mobile-wallet-provider-QcGazewW.js.map} +1 -1
- package/package.json +1 -1
|
@@ -12762,6 +12762,16 @@ function useAuth() {
|
|
|
12762
12762
|
};
|
|
12763
12763
|
}
|
|
12764
12764
|
|
|
12765
|
+
async function deserializeTransaction(tx) {
|
|
12766
|
+
const buf = Buffer.isBuffer(tx) ? tx : Buffer.from(tx, 'base64');
|
|
12767
|
+
if ((buf[0] & 0x80) !== 0) {
|
|
12768
|
+
return web3_js.VersionedTransaction.deserialize(buf);
|
|
12769
|
+
}
|
|
12770
|
+
else {
|
|
12771
|
+
return web3_js.Transaction.from(buf);
|
|
12772
|
+
}
|
|
12773
|
+
}
|
|
12774
|
+
|
|
12765
12775
|
// Wrapper for getIdToken - passes isServer=false for client-side usage
|
|
12766
12776
|
async function getIdToken() {
|
|
12767
12777
|
return getIdToken$1(false);
|
|
@@ -15207,7 +15217,7 @@ async function loadDependencies() {
|
|
|
15207
15217
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
15208
15218
|
import('react'),
|
|
15209
15219
|
import('react-dom/client'),
|
|
15210
|
-
Promise.resolve().then(function () { return require('./index-
|
|
15220
|
+
Promise.resolve().then(function () { return require('./index-COMIXUxl.js'); })
|
|
15211
15221
|
]);
|
|
15212
15222
|
// Extract default export from ESM module namespace
|
|
15213
15223
|
// Dynamic import() returns { default: Module, ...exports }, not the module directly
|
|
@@ -19663,7 +19673,7 @@ if (typeof window !== 'undefined') {
|
|
|
19663
19673
|
privyImports = require('@privy-io/react-auth');
|
|
19664
19674
|
privySolana = require('@privy-io/react-auth/solana');
|
|
19665
19675
|
}
|
|
19666
|
-
const
|
|
19676
|
+
const getDefaultPrivyConfig = () => ({
|
|
19667
19677
|
appId: "cm4ve714908o27dk2yurpnfhd",
|
|
19668
19678
|
config: {
|
|
19669
19679
|
embeddedWallets: {
|
|
@@ -19676,14 +19686,13 @@ const defaultPrivyConfig = {
|
|
|
19676
19686
|
},
|
|
19677
19687
|
externalWallets: { solana: { connectors: privySolana.toSolanaWalletConnectors() } }
|
|
19678
19688
|
}
|
|
19679
|
-
};
|
|
19689
|
+
});
|
|
19680
19690
|
class PrivyWalletProvider {
|
|
19681
19691
|
constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
|
|
19682
19692
|
this.containerElement = null;
|
|
19683
19693
|
this.chainId = 'solana:mainnet';
|
|
19684
19694
|
this.root = null;
|
|
19685
19695
|
this.privyMethods = null;
|
|
19686
|
-
this.privyConfig = defaultPrivyConfig;
|
|
19687
19696
|
this.pendingLogin = null;
|
|
19688
19697
|
// This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion
|
|
19689
19698
|
this.pendingTransaction = null;
|
|
@@ -19703,7 +19712,7 @@ class PrivyWalletProvider {
|
|
|
19703
19712
|
this.containerElement = null;
|
|
19704
19713
|
this.root = null;
|
|
19705
19714
|
this.privyMethods = null;
|
|
19706
|
-
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig :
|
|
19715
|
+
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig : getDefaultPrivyConfig();
|
|
19707
19716
|
// Only use the appName and appLogoUrl if no privyConfig is provided
|
|
19708
19717
|
if (privyConfig == null) {
|
|
19709
19718
|
if (appName != null && appName != '') {
|
|
@@ -19715,7 +19724,7 @@ class PrivyWalletProvider {
|
|
|
19715
19724
|
}
|
|
19716
19725
|
// Ensure externalWallets connectors are always configured — required for
|
|
19717
19726
|
// useWallets().ready to resolve even when no browser extension is present
|
|
19718
|
-
if (!this.privyConfig.config.externalWallets) {
|
|
19727
|
+
if (!this.privyConfig.config.externalWallets && privySolana) {
|
|
19719
19728
|
this.privyConfig.config.externalWallets = {
|
|
19720
19729
|
solana: { connectors: privySolana.toSolanaWalletConnectors() }
|
|
19721
19730
|
};
|
|
@@ -20564,7 +20573,7 @@ async function loadMwaProtocol() {
|
|
|
20564
20573
|
return mwaProtocolLoadPromise;
|
|
20565
20574
|
mwaProtocolLoadPromise = (async () => {
|
|
20566
20575
|
try {
|
|
20567
|
-
mwaProtocolModule = await Promise.resolve().then(function () { return require('./index.browser-
|
|
20576
|
+
mwaProtocolModule = await Promise.resolve().then(function () { return require('./index.browser-CLZv9v_y.js'); });
|
|
20568
20577
|
}
|
|
20569
20578
|
catch (e) {
|
|
20570
20579
|
console.warn('[SolanaMobileWallet] @solana-mobile/mobile-wallet-adapter-protocol-web3js not installed. Install it to enable Seeker wallet support.');
|
|
@@ -20586,7 +20595,7 @@ async function registerMobileWalletAdapter(config) {
|
|
|
20586
20595
|
if (typeof window === 'undefined')
|
|
20587
20596
|
return;
|
|
20588
20597
|
try {
|
|
20589
|
-
const walletStandardMobile = await Promise.resolve().then(function () { return require('./index.browser-
|
|
20598
|
+
const walletStandardMobile = await Promise.resolve().then(function () { return require('./index.browser-CMO2pjaF.js'); });
|
|
20590
20599
|
const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);
|
|
20591
20600
|
if (!registerMwa) {
|
|
20592
20601
|
console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');
|
|
@@ -21515,6 +21524,7 @@ exports.convertRemainingAccounts = convertRemainingAccounts;
|
|
|
21515
21524
|
exports.count = count;
|
|
21516
21525
|
exports.createSessionWithPrivy = createSessionWithPrivy;
|
|
21517
21526
|
exports.createSessionWithSignature = createSessionWithSignature;
|
|
21527
|
+
exports.deserializeTransaction = deserializeTransaction;
|
|
21518
21528
|
exports.genAuthNonce = genAuthNonce;
|
|
21519
21529
|
exports.genSolanaMessage = genSolanaMessage;
|
|
21520
21530
|
exports.get = get;
|
|
@@ -21550,4 +21560,4 @@ exports.signSessionCreateMessage = signSessionCreateMessage;
|
|
|
21550
21560
|
exports.signTransaction = signTransaction;
|
|
21551
21561
|
exports.subscribe = subscribe;
|
|
21552
21562
|
exports.useAuth = useAuth;
|
|
21553
|
-
//# sourceMappingURL=index-
|
|
21563
|
+
//# sourceMappingURL=index-BrlvWT1Q.js.map
|