@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
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type { GetOptions as TarobaseGetOptions } from "@pooflabs/core";
|
|
|
6
6
|
export { subscribe } from "@pooflabs/core";
|
|
7
7
|
export * from "@pooflabs/core";
|
|
8
8
|
export { useAuth } from "./auth/hooks/useAuth";
|
|
9
|
+
export { deserializeTransaction } from "./auth/providers/sol/sol-utils";
|
|
9
10
|
export { getIdToken } from "./utils";
|
|
10
11
|
export { setPlatform, getPlatform } from "./platform";
|
|
11
12
|
export type { PlatformAdapter, StorageAdapter } from "./platform";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { H as DEFAULT_TEST_ADDRESS, L as InsufficientBalanceError, M as MockAuthProvider, O as OffchainAuthProvider, P as PhantomWalletProvider, K as PrivyExpoProvider, G as PrivyWalletProvider, R as ReactNativeSessionManager, N as ServerSessionManager, S as SolanaMobileWalletProvider, W as WebSessionManager, z as aggregate, Q as buildSetDocumentsTransaction, T as clearCache, U as closeAllSubscriptions, V as convertRemainingAccounts, y as count, X as createSessionWithPrivy, Y as createSessionWithSignature, C as deserializeTransaction, Z as genAuthNonce, _ as genSolanaMessage, k as get, e as getAuthLoading, j as getAuthProvider, $ as getCachedData, h as getConfig, c as getCurrentUser, p as getFiles, D as getIdToken, F as getPlatform, i as init, I as isMobileWalletAvailable, l as login, f as logout, d as onAuthLoadingChanged, o as onAuthStateChanged, a0 as reconnectWithNewAuth, a1 as refreshSession, J as registerMobileWalletAdapter, t as runExpression, u as runExpressionMany, r as runQuery, q as runQueryMany, s as set, n as setFile, m as setMany, E as setPlatform, x as signAndSubmitTransaction, v as signMessage, a2 as signSessionCreateMessage, w as signTransaction, A as subscribe, B as useAuth } from './index-C5Cnn7Hq.esm.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import '@solana/web3.js';
|
|
4
4
|
import '@coral-xyz/anchor';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BrlvWT1Q.js');
|
|
4
4
|
require('axios');
|
|
5
5
|
require('@solana/web3.js');
|
|
6
6
|
require('@coral-xyz/anchor');
|
|
@@ -27,6 +27,7 @@ exports.convertRemainingAccounts = index.convertRemainingAccounts;
|
|
|
27
27
|
exports.count = index.count;
|
|
28
28
|
exports.createSessionWithPrivy = index.createSessionWithPrivy;
|
|
29
29
|
exports.createSessionWithSignature = index.createSessionWithSignature;
|
|
30
|
+
exports.deserializeTransaction = index.deserializeTransaction;
|
|
30
31
|
exports.genAuthNonce = index.genAuthNonce;
|
|
31
32
|
exports.genSolanaMessage = index.genSolanaMessage;
|
|
32
33
|
exports.get = index.get;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12407,15 +12407,15 @@ function clearIncompatibleSession() {
|
|
|
12407
12407
|
// Lazy loaders for web-only providers.
|
|
12408
12408
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
12409
12409
|
async function loadPrivyWalletProvider() {
|
|
12410
|
-
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-
|
|
12410
|
+
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-CrRfcONv.js'); });
|
|
12411
12411
|
return mod.PrivyWalletProvider;
|
|
12412
12412
|
}
|
|
12413
12413
|
async function loadPhantomWalletProvider() {
|
|
12414
|
-
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-
|
|
12414
|
+
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-DrNrxSUL.js'); });
|
|
12415
12415
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
12416
12416
|
}
|
|
12417
12417
|
async function loadSolanaMobileWalletProvider() {
|
|
12418
|
-
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-
|
|
12418
|
+
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-QcGazewW.js'); });
|
|
12419
12419
|
return mod.SolanaMobileWalletProvider;
|
|
12420
12420
|
}
|
|
12421
12421
|
async function hotSwapToPrivyProvider(config) {
|
|
@@ -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);
|
|
@@ -13307,6 +13317,7 @@ exports.convertRemainingAccounts = convertRemainingAccounts;
|
|
|
13307
13317
|
exports.count = count;
|
|
13308
13318
|
exports.createSessionWithPrivy = createSessionWithPrivy;
|
|
13309
13319
|
exports.createSessionWithSignature = createSessionWithSignature;
|
|
13320
|
+
exports.deserializeTransaction = deserializeTransaction;
|
|
13310
13321
|
exports.detectAndroid = detectAndroid;
|
|
13311
13322
|
exports.detectMobile = detectMobile;
|
|
13312
13323
|
exports.genAuthNonce = genAuthNonce;
|
|
@@ -13345,4 +13356,4 @@ exports.signSessionCreateMessage = signSessionCreateMessage;
|
|
|
13345
13356
|
exports.signTransaction = signTransaction;
|
|
13346
13357
|
exports.subscribe = subscribe;
|
|
13347
13358
|
exports.useAuth = useAuth;
|
|
13348
|
-
//# sourceMappingURL=index.native-
|
|
13359
|
+
//# sourceMappingURL=index.native-CkUXrvPQ.js.map
|