@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
|
-
import { PublicKey, SystemProgram, TransactionInstruction, ComputeBudgetProgram, Keypair, VersionedTransaction, TransactionMessage,
|
|
2
|
+
import { PublicKey, SystemProgram, TransactionInstruction, ComputeBudgetProgram, Keypair, VersionedTransaction, TransactionMessage, Transaction, Connection } from '@solana/web3.js';
|
|
3
3
|
import * as anchor from '@coral-xyz/anchor';
|
|
4
4
|
import { Program } from '@coral-xyz/anchor';
|
|
5
5
|
import * as React$2 from 'react';
|
|
@@ -12741,6 +12741,16 @@ function useAuth() {
|
|
|
12741
12741
|
};
|
|
12742
12742
|
}
|
|
12743
12743
|
|
|
12744
|
+
async function deserializeTransaction(tx) {
|
|
12745
|
+
const buf = Buffer.isBuffer(tx) ? tx : Buffer.from(tx, 'base64');
|
|
12746
|
+
if ((buf[0] & 0x80) !== 0) {
|
|
12747
|
+
return VersionedTransaction.deserialize(buf);
|
|
12748
|
+
}
|
|
12749
|
+
else {
|
|
12750
|
+
return Transaction.from(buf);
|
|
12751
|
+
}
|
|
12752
|
+
}
|
|
12753
|
+
|
|
12744
12754
|
// Wrapper for getIdToken - passes isServer=false for client-side usage
|
|
12745
12755
|
async function getIdToken() {
|
|
12746
12756
|
return getIdToken$1(false);
|
|
@@ -15186,7 +15196,7 @@ async function loadDependencies() {
|
|
|
15186
15196
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
15187
15197
|
import('react'),
|
|
15188
15198
|
import('react-dom/client'),
|
|
15189
|
-
import('./index-
|
|
15199
|
+
import('./index-Dsh0H37n.esm.js')
|
|
15190
15200
|
]);
|
|
15191
15201
|
// Extract default export from ESM module namespace
|
|
15192
15202
|
// Dynamic import() returns { default: Module, ...exports }, not the module directly
|
|
@@ -19642,7 +19652,7 @@ if (typeof window !== 'undefined') {
|
|
|
19642
19652
|
privyImports = require('@privy-io/react-auth');
|
|
19643
19653
|
privySolana = require('@privy-io/react-auth/solana');
|
|
19644
19654
|
}
|
|
19645
|
-
const
|
|
19655
|
+
const getDefaultPrivyConfig = () => ({
|
|
19646
19656
|
appId: "cm4ve714908o27dk2yurpnfhd",
|
|
19647
19657
|
config: {
|
|
19648
19658
|
embeddedWallets: {
|
|
@@ -19655,14 +19665,13 @@ const defaultPrivyConfig = {
|
|
|
19655
19665
|
},
|
|
19656
19666
|
externalWallets: { solana: { connectors: privySolana.toSolanaWalletConnectors() } }
|
|
19657
19667
|
}
|
|
19658
|
-
};
|
|
19668
|
+
});
|
|
19659
19669
|
class PrivyWalletProvider {
|
|
19660
19670
|
constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
|
|
19661
19671
|
this.containerElement = null;
|
|
19662
19672
|
this.chainId = 'solana:mainnet';
|
|
19663
19673
|
this.root = null;
|
|
19664
19674
|
this.privyMethods = null;
|
|
19665
|
-
this.privyConfig = defaultPrivyConfig;
|
|
19666
19675
|
this.pendingLogin = null;
|
|
19667
19676
|
// This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion
|
|
19668
19677
|
this.pendingTransaction = null;
|
|
@@ -19682,7 +19691,7 @@ class PrivyWalletProvider {
|
|
|
19682
19691
|
this.containerElement = null;
|
|
19683
19692
|
this.root = null;
|
|
19684
19693
|
this.privyMethods = null;
|
|
19685
|
-
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig :
|
|
19694
|
+
this.privyConfig = privyConfig !== null && privyConfig !== void 0 ? privyConfig : getDefaultPrivyConfig();
|
|
19686
19695
|
// Only use the appName and appLogoUrl if no privyConfig is provided
|
|
19687
19696
|
if (privyConfig == null) {
|
|
19688
19697
|
if (appName != null && appName != '') {
|
|
@@ -19694,7 +19703,7 @@ class PrivyWalletProvider {
|
|
|
19694
19703
|
}
|
|
19695
19704
|
// Ensure externalWallets connectors are always configured — required for
|
|
19696
19705
|
// useWallets().ready to resolve even when no browser extension is present
|
|
19697
|
-
if (!this.privyConfig.config.externalWallets) {
|
|
19706
|
+
if (!this.privyConfig.config.externalWallets && privySolana) {
|
|
19698
19707
|
this.privyConfig.config.externalWallets = {
|
|
19699
19708
|
solana: { connectors: privySolana.toSolanaWalletConnectors() }
|
|
19700
19709
|
};
|
|
@@ -20543,7 +20552,7 @@ async function loadMwaProtocol() {
|
|
|
20543
20552
|
return mwaProtocolLoadPromise;
|
|
20544
20553
|
mwaProtocolLoadPromise = (async () => {
|
|
20545
20554
|
try {
|
|
20546
|
-
mwaProtocolModule = await import('./index.browser
|
|
20555
|
+
mwaProtocolModule = await import('./index.browser--rDwfvXH.esm.js');
|
|
20547
20556
|
}
|
|
20548
20557
|
catch (e) {
|
|
20549
20558
|
console.warn('[SolanaMobileWallet] @solana-mobile/mobile-wallet-adapter-protocol-web3js not installed. Install it to enable Seeker wallet support.');
|
|
@@ -20565,7 +20574,7 @@ async function registerMobileWalletAdapter(config) {
|
|
|
20565
20574
|
if (typeof window === 'undefined')
|
|
20566
20575
|
return;
|
|
20567
20576
|
try {
|
|
20568
|
-
const walletStandardMobile = await import('./index.browser-
|
|
20577
|
+
const walletStandardMobile = await import('./index.browser-CSTWylhG.esm.js');
|
|
20569
20578
|
const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);
|
|
20570
20579
|
if (!registerMwa) {
|
|
20571
20580
|
console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');
|
|
@@ -21473,5 +21482,5 @@ class PrivyExpoProvider {
|
|
|
21473
21482
|
}
|
|
21474
21483
|
}
|
|
21475
21484
|
|
|
21476
|
-
export {
|
|
21477
|
-
//# sourceMappingURL=index-
|
|
21485
|
+
export { getCachedData as $, subscribe as A, useAuth as B, deserializeTransaction as C, getIdToken as D, setPlatform as E, getPlatform as F, PrivyWalletProvider as G, DEFAULT_TEST_ADDRESS as H, isMobileWalletAvailable as I, registerMobileWalletAdapter as J, PrivyExpoProvider as K, InsufficientBalanceError as L, MockAuthProvider as M, ServerSessionManager as N, OffchainAuthProvider as O, PhantomWalletProvider as P, buildSetDocumentsTransaction as Q, ReactNativeSessionManager as R, SolanaMobileWalletProvider as S, clearCache as T, closeAllSubscriptions as U, convertRemainingAccounts as V, WebSessionManager as W, createSessionWithPrivy as X, createSessionWithSignature as Y, genAuthNonce as Z, genSolanaMessage as _, bs58 as a, reconnectWithNewAuth as a0, refreshSession as a1, signSessionCreateMessage as a2, bufferExports as b, getCurrentUser as c, onAuthLoadingChanged as d, getAuthLoading as e, logout as f, getDefaultExportFromCjs$1 as g, getConfig as h, init as i, getAuthProvider as j, get as k, login as l, setMany as m, setFile as n, onAuthStateChanged as o, getFiles as p, runQueryMany as q, runQuery as r, set as s, runExpression as t, runExpressionMany as u, signMessage as v, signTransaction as w, signAndSubmitTransaction as x, count as y, aggregate as z };
|
|
21486
|
+
//# sourceMappingURL=index-C5Cnn7Hq.esm.js.map
|