@pooflabs/web 0.0.92 → 0.0.93
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/index.d.ts +7 -0
- package/dist/auth/providers/offchain-auth-provider.d.ts +1 -0
- package/dist/auth/providers/privy-wallet-provider.d.ts +7 -0
- package/dist/{index-dEUHmDSl.esm.js → index-BJhw8pOb.esm.js} +2 -2
- package/dist/{index-dEUHmDSl.esm.js.map → index-BJhw8pOb.esm.js.map} +1 -1
- package/dist/index-BQN3A4SI.esm.js +6 -0
- package/dist/index-BQN3A4SI.esm.js.map +1 -0
- package/dist/{index-GeHpO_Ud.js → index-BRKarMUo.js} +54 -5
- package/dist/index-BRKarMUo.js.map +1 -0
- package/dist/{index-m53xb2JA.js → index-Baq-MUI8.js} +3 -3
- package/dist/{index-m53xb2JA.js.map → index-Baq-MUI8.js.map} +1 -1
- package/dist/{index-vi52dsn6.js → index-CDoDnDyA.js} +2 -2
- package/dist/{index-vi52dsn6.js.map → index-CDoDnDyA.js.map} +1 -1
- package/dist/{index-6iINLG88.esm.js → index-DbX66ch3.esm.js} +53 -6
- package/dist/index-DbX66ch3.esm.js.map +1 -0
- package/dist/{index-eFFOC8cE.js → index-Dw03bD6R.js} +2 -2
- package/dist/index-Dw03bD6R.js.map +1 -0
- package/dist/{index-Dg3y_pRI.esm.js → index-beZzBYpc.esm.js} +3 -3
- package/dist/{index-Dg3y_pRI.esm.js.map → index-beZzBYpc.esm.js.map} +1 -1
- package/dist/{index.browser-wZkBhwtI.esm.js → index.browser-BSQvgdMT.esm.js} +2 -2
- package/dist/{index.browser-wZkBhwtI.esm.js.map → index.browser-BSQvgdMT.esm.js.map} +1 -1
- package/dist/{index.browser-B1Zbn8LC.js → index.browser-Bmi3o9v0.js} +2 -2
- package/dist/{index.browser-B1Zbn8LC.js.map → index.browser-Bmi3o9v0.js.map} +1 -1
- package/dist/{index.browser-D6XPhu6r.js → index.browser-CI4TkG8U.js} +2 -2
- package/dist/{index.browser-D6XPhu6r.js.map → index.browser-CI4TkG8U.js.map} +1 -1
- package/dist/{index.browser-RwalL3F4.esm.js → index.browser-D15wyxan.esm.js} +2 -2
- package/dist/{index.browser-RwalL3F4.esm.js.map → index.browser-D15wyxan.esm.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/{index.native-Dd783Qva.esm.js → index.native-0P9dPMFG.esm.js} +18 -5
- package/dist/index.native-0P9dPMFG.esm.js.map +1 -0
- package/dist/{index.native-Bjx72Wnj.js → index.native-DIXtlrL_.js} +18 -5
- package/dist/index.native-DIXtlrL_.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-Dloixy8s.esm.js → phantom-wallet-provider-44BDf-tk.esm.js} +4 -4
- package/dist/{phantom-wallet-provider-Dloixy8s.esm.js.map → phantom-wallet-provider-44BDf-tk.esm.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DUVViY9g.js → phantom-wallet-provider-DV12qfW6.js} +4 -4
- package/dist/{phantom-wallet-provider-DUVViY9g.js.map → phantom-wallet-provider-DV12qfW6.js.map} +1 -1
- package/dist/{privy-wallet-provider-CEdQMBT2.js → privy-wallet-provider-CQnyjLEI.js} +22 -3
- package/dist/{privy-wallet-provider-CEdQMBT2.js.map → privy-wallet-provider-CQnyjLEI.js.map} +1 -1
- package/dist/{privy-wallet-provider-BQbIRyXF.esm.js → privy-wallet-provider-CzoLQPiq.esm.js} +22 -3
- package/dist/{privy-wallet-provider-BQbIRyXF.esm.js.map → privy-wallet-provider-CzoLQPiq.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-ARvDWjP7.esm.js → solana-mobile-wallet-provider-BbvaCCuE.esm.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-ARvDWjP7.esm.js.map → solana-mobile-wallet-provider-BbvaCCuE.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-CgQWQ7Sk.js → solana-mobile-wallet-provider-BmXTQow5.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-CgQWQ7Sk.js.map → solana-mobile-wallet-provider-BmXTQow5.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-6iINLG88.esm.js.map +0 -1
- package/dist/index-CWD6VMLX.esm.js +0 -6
- package/dist/index-CWD6VMLX.esm.js.map +0 -1
- package/dist/index-GeHpO_Ud.js.map +0 -1
- package/dist/index-eFFOC8cE.js.map +0 -1
- package/dist/index.native-Bjx72Wnj.js.map +0 -1
- package/dist/index.native-Dd783Qva.esm.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { init, getCurrentUser, onAuthStateChanged, onAuthLoadingChanged, getAuthLoading, login, logout, } from "./global";
|
|
2
2
|
export type { LoginOptions } from "./global";
|
|
3
3
|
export { getConfig } from "@pooflabs/core";
|
|
4
|
-
export { getAuthProvider } from "./auth";
|
|
4
|
+
export { getAuthProvider, getCurrentAuthMethod, exportWallet } from "./auth";
|
|
5
5
|
export { get, set, setMany, setFile, getFiles, runQuery, runQueryMany, runExpression, runExpressionMany, signMessage, signTransaction, signAndSubmitTransaction, count, aggregate, GetOptions, SetOptions, CountOptions, AggregateOptions, AggregateOperation, AggregateResult, } from "@pooflabs/core";
|
|
6
6
|
export type { GetOptions as TarobaseGetOptions } from "@pooflabs/core";
|
|
7
7
|
export { subscribe } from "@pooflabs/core";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { J as DEFAULT_TEST_ADDRESS, Q as InsufficientBalanceError, M as MockAuthProvider, O as OffchainAuthProvider, P as PhantomWalletProvider, N as PrivyExpoProvider, I as PrivyWalletProvider, R as ReactNativeSessionManager, T as RealtimeStore, U as ServerSessionManager, S as SolanaMobileWalletProvider, W as WebSessionManager, B as aggregate, V as buildSetDocumentsTransaction, X as clearCache, Y as closeAllSubscriptions, Z as convertRemainingAccounts, A as count, _ as createSessionWithPrivy, $ as createSessionWithSignature, E as deserializeTransaction, m as exportWallet, a0 as genAuthNonce, a1 as genSolanaMessage, n as get, e as getAuthLoading, j as getAuthProvider, a2 as getCachedData, h as getConfig, k as getCurrentAuthMethod, c as getCurrentUser, r as getFiles, F as getIdToken, a3 as getMany, H as getPlatform, a4 as getRealtimeStore, a5 as hasActiveConnection, i as init, K as isMobileWalletAvailable, l as login, f as logout, d as onAuthLoadingChanged, o as onAuthStateChanged, a6 as reconnectWithNewAuth, a7 as refreshSession, L as registerMobileWalletAdapter, a8 as resetRealtimeStore, v as runExpression, w as runExpressionMany, t as runQuery, u as runQueryMany, s as set, q as setFile, p as setMany, G as setPlatform, z as signAndSubmitTransaction, x as signMessage, a9 as signSessionCreateMessage, y as signTransaction, C as subscribe, D as useAuth, aa as wsDelete, ab as wsGet, ac as wsGetMany, ad as wsQuery, ae as wsSet } from './index-DbX66ch3.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-BRKarMUo.js');
|
|
4
4
|
require('axios');
|
|
5
5
|
require('@solana/web3.js');
|
|
6
6
|
require('@coral-xyz/anchor');
|
|
@@ -29,6 +29,7 @@ exports.count = index.count;
|
|
|
29
29
|
exports.createSessionWithPrivy = index.createSessionWithPrivy;
|
|
30
30
|
exports.createSessionWithSignature = index.createSessionWithSignature;
|
|
31
31
|
exports.deserializeTransaction = index.deserializeTransaction;
|
|
32
|
+
exports.exportWallet = index.exportWallet;
|
|
32
33
|
exports.genAuthNonce = index.genAuthNonce;
|
|
33
34
|
exports.genSolanaMessage = index.genSolanaMessage;
|
|
34
35
|
exports.get = index.get;
|
|
@@ -36,6 +37,7 @@ exports.getAuthLoading = index.getAuthLoading;
|
|
|
36
37
|
exports.getAuthProvider = index.getAuthProvider;
|
|
37
38
|
exports.getCachedData = index.getCachedData;
|
|
38
39
|
exports.getConfig = index.getConfig;
|
|
40
|
+
exports.getCurrentAuthMethod = index.getCurrentAuthMethod;
|
|
39
41
|
exports.getCurrentUser = index.getCurrentUser;
|
|
40
42
|
exports.getFiles = index.getFiles;
|
|
41
43
|
exports.getIdToken = index.getIdToken;
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13142,6 +13142,15 @@ class OffchainAuthProvider {
|
|
|
13142
13142
|
async getNativeMethods() {
|
|
13143
13143
|
return this.wrappedProvider.getNativeMethods();
|
|
13144
13144
|
}
|
|
13145
|
+
// Forward wallet export to the wrapped provider (only Privy embedded wallets
|
|
13146
|
+
// implement it). Duck-typed so wrappers around non-embedded providers throw
|
|
13147
|
+
// a clear error rather than a "not a function" crash.
|
|
13148
|
+
async exportWallet(address) {
|
|
13149
|
+
if (typeof this.wrappedProvider.exportWallet !== 'function') {
|
|
13150
|
+
throw new Error('Wallet export is not available for this wallet.');
|
|
13151
|
+
}
|
|
13152
|
+
await this.wrappedProvider.exportWallet(address);
|
|
13153
|
+
}
|
|
13145
13154
|
// ============ signMessage delegates to wrapped provider ============
|
|
13146
13155
|
async signMessage(message) {
|
|
13147
13156
|
// Delegate to wrapped provider for real wallet signing
|
|
@@ -13869,15 +13878,15 @@ function clearIncompatibleSession() {
|
|
|
13869
13878
|
// Lazy loaders for web-only providers.
|
|
13870
13879
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
13871
13880
|
async function loadPrivyWalletProvider() {
|
|
13872
|
-
const mod = await import('./privy-wallet-provider-
|
|
13881
|
+
const mod = await import('./privy-wallet-provider-CzoLQPiq.esm.js');
|
|
13873
13882
|
return mod.PrivyWalletProvider;
|
|
13874
13883
|
}
|
|
13875
13884
|
async function loadPhantomWalletProvider() {
|
|
13876
|
-
const mod = await import('./phantom-wallet-provider-
|
|
13885
|
+
const mod = await import('./phantom-wallet-provider-44BDf-tk.esm.js');
|
|
13877
13886
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
13878
13887
|
}
|
|
13879
13888
|
async function loadSolanaMobileWalletProvider() {
|
|
13880
|
-
const mod = await import('./solana-mobile-wallet-provider-
|
|
13889
|
+
const mod = await import('./solana-mobile-wallet-provider-BbvaCCuE.esm.js');
|
|
13881
13890
|
return mod.SolanaMobileWalletProvider;
|
|
13882
13891
|
}
|
|
13883
13892
|
async function hotSwapToPrivyProvider(config) {
|
|
@@ -14112,7 +14121,11 @@ async function login$1(options) {
|
|
|
14112
14121
|
return null;
|
|
14113
14122
|
}
|
|
14114
14123
|
function getCurrentAuthMethod() {
|
|
14115
|
-
|
|
14124
|
+
// Fall back to the persisted login method so consumers (e.g. a "show export
|
|
14125
|
+
// wallet" gate) get the correct value synchronously on reload, before init()
|
|
14126
|
+
// has rebuilt the in-memory provider. The stored value is cleared on logout,
|
|
14127
|
+
// so a logged-out user still yields null.
|
|
14128
|
+
return currentAuthMethod !== null && currentAuthMethod !== void 0 ? currentAuthMethod : getStoredAuthMethod();
|
|
14116
14129
|
}
|
|
14117
14130
|
async function logout$1() {
|
|
14118
14131
|
if (!currentAuthProvider) {
|
|
@@ -17289,4 +17302,4 @@ class PrivyExpoProvider {
|
|
|
17289
17302
|
}
|
|
17290
17303
|
|
|
17291
17304
|
export { RealtimeStore as $, get as A, set as B, setMany as C, setFile as D, getFiles as E, runQuery as F, runQueryMany as G, runExpression as H, runExpressionMany as I, signMessage as J, signTransaction as K, signAndSubmitTransaction as L, count as M, aggregate as N, subscribe as O, useAuth as P, deserializeTransaction as Q, getIdToken as R, SOLANA_MAINNET_RPC_URL as S, setPlatform as T, MockAuthProvider as U, DEFAULT_TEST_ADDRESS as V, WebSessionManager as W, OffchainAuthProvider as X, PrivyExpoProvider as Y, InsufficientBalanceError as Z, ReactNativeSessionManager as _, SOLANA_DEVNET_RPC_URL as a, ServerSessionManager as a0, clearCache as a1, closeAllSubscriptions as a2, getCachedData as a3, getMany as a4, getRealtimeStore as a5, hasActiveConnection as a6, reconnectWithNewAuth as a7, refreshSession as a8, resetRealtimeStore as a9, signSessionCreateMessage as aa, wsDelete as ab, wsGet as ac, wsGetMany as ad, wsQuery as ae, wsSet as af, index as ag, buildSetDocumentsTransaction as b, convertRemainingAccounts as c, base58 as d, confirmAndCheckTransaction as e, createSessionWithPrivy as f, getPlatform as g, SURFNET_RPC_URL$1 as h, detectMobile as i, detectAndroid as j, setAuthLoading as k, genAuthNonce as l, genSolanaMessage as m, createSessionWithSignature as n, getDefaultExportFromCjs$1 as o, init as p, getCurrentUser as q, requireBuffer as r, setCurrentUser as s, onAuthStateChanged as t, onAuthLoadingChanged as u, getAuthLoading as v, login as w, logout as x, getConfig as y, getAuthProvider as z };
|
|
17292
|
-
//# sourceMappingURL=index.native-
|
|
17305
|
+
//# sourceMappingURL=index.native-0P9dPMFG.esm.js.map
|