@pooflabs/web 0.0.92-rc1 → 0.0.92
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/{index-DOAgc25g.esm.js → index-6iINLG88.esm.js} +20 -17
- package/dist/index-6iINLG88.esm.js.map +1 -0
- package/dist/index-CWD6VMLX.esm.js +6 -0
- package/dist/index-CWD6VMLX.esm.js.map +1 -0
- package/dist/{index-8ttHwD7w.esm.js → index-Dg3y_pRI.esm.js} +3 -3
- package/dist/{index-8ttHwD7w.esm.js.map → index-Dg3y_pRI.esm.js.map} +1 -1
- package/dist/{index-Qooqzt4n.js → index-GeHpO_Ud.js} +20 -17
- package/dist/index-GeHpO_Ud.js.map +1 -0
- package/dist/{index-B8EmyNEY.esm.js → index-dEUHmDSl.esm.js} +2 -2
- package/dist/{index-B8EmyNEY.esm.js.map → index-dEUHmDSl.esm.js.map} +1 -1
- package/dist/{index-Db6dsdHn.js → index-eFFOC8cE.js} +2 -2
- package/dist/index-eFFOC8cE.js.map +1 -0
- package/dist/{index-DYlgQ5eM.js → index-m53xb2JA.js} +3 -3
- package/dist/{index-DYlgQ5eM.js.map → index-m53xb2JA.js.map} +1 -1
- package/dist/{index-YWtjwOnI.js → index-vi52dsn6.js} +2 -2
- package/dist/{index-YWtjwOnI.js.map → index-vi52dsn6.js.map} +1 -1
- package/dist/{index.browser-DC1jUfJf.js → index.browser-B1Zbn8LC.js} +2 -2
- package/dist/{index.browser-DC1jUfJf.js.map → index.browser-B1Zbn8LC.js.map} +1 -1
- package/dist/{index.browser-BtqDgoVf.js → index.browser-D6XPhu6r.js} +2 -2
- package/dist/{index.browser-BtqDgoVf.js.map → index.browser-D6XPhu6r.js.map} +1 -1
- package/dist/{index.browser-BAtXWf8k.esm.js → index.browser-RwalL3F4.esm.js} +2 -2
- package/dist/{index.browser-BAtXWf8k.esm.js.map → index.browser-RwalL3F4.esm.js.map} +1 -1
- package/dist/{index.browser-Cmz2nG0U.esm.js → index.browser-wZkBhwtI.esm.js} +2 -2
- package/dist/{index.browser-Cmz2nG0U.esm.js.map → index.browser-wZkBhwtI.esm.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.native-DoznXdQe.js → index.native-Bjx72Wnj.js} +5 -11
- package/dist/index.native-Bjx72Wnj.js.map +1 -0
- package/dist/{index.native-BbmtowC0.esm.js → index.native-Dd783Qva.esm.js} +5 -11
- package/dist/index.native-Dd783Qva.esm.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-CNrBhCG1.js → phantom-wallet-provider-DUVViY9g.js} +4 -4
- package/dist/{phantom-wallet-provider-CNrBhCG1.js.map → phantom-wallet-provider-DUVViY9g.js.map} +1 -1
- package/dist/{phantom-wallet-provider-BZwDaCQQ.esm.js → phantom-wallet-provider-Dloixy8s.esm.js} +4 -4
- package/dist/{phantom-wallet-provider-BZwDaCQQ.esm.js.map → phantom-wallet-provider-Dloixy8s.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-CFa78z1Z.esm.js → privy-wallet-provider-BQbIRyXF.esm.js} +18 -9
- package/dist/{privy-wallet-provider-CFa78z1Z.esm.js.map → privy-wallet-provider-BQbIRyXF.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-BjiWbKiy.js → privy-wallet-provider-CEdQMBT2.js} +18 -9
- package/dist/{privy-wallet-provider-BjiWbKiy.js.map → privy-wallet-provider-CEdQMBT2.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-P6brXW6S.esm.js → solana-mobile-wallet-provider-ARvDWjP7.esm.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-P6brXW6S.esm.js.map → solana-mobile-wallet-provider-ARvDWjP7.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-yETC7TqO.js → solana-mobile-wallet-provider-CgQWQ7Sk.js} +4 -4
- package/dist/{solana-mobile-wallet-provider-yETC7TqO.js.map → solana-mobile-wallet-provider-CgQWQ7Sk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B41m9KgX.esm.js +0 -6
- package/dist/index-B41m9KgX.esm.js.map +0 -1
- package/dist/index-DOAgc25g.esm.js.map +0 -1
- package/dist/index-Db6dsdHn.js.map +0 -1
- package/dist/index-Qooqzt4n.js.map +0 -1
- package/dist/index.native-BbmtowC0.esm.js.map +0 -1
- package/dist/index.native-DoznXdQe.js.map +0 -1
|
@@ -13892,13 +13892,7 @@ async function hotSwapToPrivyProvider(config) {
|
|
|
13892
13892
|
solana: {
|
|
13893
13893
|
createOnLogin: 'users-without-wallets'
|
|
13894
13894
|
}
|
|
13895
|
-
}, appearance: Object.assign(Object.assign({}, (_f = (_e = config.privyConfig) === null || _e === void 0 ? void 0 : _e.config) === null || _f === void 0 ? void 0 : _f.appearance), { walletChainType: 'solana-only', showWalletLoginFirst: false, theme: 'dark', walletList: [] })
|
|
13896
|
-
// Explicitly empty external wallets — social-only mode. Setting the
|
|
13897
|
-
// key (with an empty connectors array) keeps useWallets().ready able to
|
|
13898
|
-
// resolve while suppressing the wallet picker, AND prevents the
|
|
13899
|
-
// PrivyWalletProvider constructor from re-injecting the full Solana
|
|
13900
|
-
// connector set when externalWallets is absent (see privy-wallet-provider.ts).
|
|
13901
|
-
externalWallets: { solana: { connectors: [] } } })
|
|
13895
|
+
}, appearance: Object.assign(Object.assign({}, (_f = (_e = config.privyConfig) === null || _e === void 0 ? void 0 : _e.config) === null || _f === void 0 ? void 0 : _f.appearance), { walletChainType: 'solana-only', showWalletLoginFirst: false, theme: 'dark', walletList: [] }) })
|
|
13902
13896
|
};
|
|
13903
13897
|
const privyProvider = new PrivyWalletProvider((_g = config.name) !== null && _g !== void 0 ? _g : null, (_h = config.logoUrl) !== null && _h !== void 0 ? _h : null, fallbackPrivyConfig, rpcUrl);
|
|
13904
13898
|
let provider = privyProvider;
|
|
@@ -16805,7 +16799,7 @@ async function loadDependencies() {
|
|
|
16805
16799
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
16806
16800
|
import('react'),
|
|
16807
16801
|
import('react-dom/client'),
|
|
16808
|
-
import('./index-
|
|
16802
|
+
import('./index-dEUHmDSl.esm.js')
|
|
16809
16803
|
]);
|
|
16810
16804
|
// Extract default export from ESM module namespace
|
|
16811
16805
|
// Dynamic import() returns { default: Module, ...exports }, not the module directly
|
|
@@ -21642,6 +21636,7 @@ const getDefaultPrivyConfig = () => ({
|
|
|
21642
21636
|
});
|
|
21643
21637
|
class PrivyWalletProvider {
|
|
21644
21638
|
constructor(appName, appLogoUrl, privyConfig, networkUrl = null) {
|
|
21639
|
+
var _a, _b;
|
|
21645
21640
|
this.containerElement = null;
|
|
21646
21641
|
this.chainId = 'solana:mainnet';
|
|
21647
21642
|
this.root = null;
|
|
@@ -21675,12 +21670,20 @@ class PrivyWalletProvider {
|
|
|
21675
21670
|
this.privyConfig.config.appearance.logo = appLogoUrl;
|
|
21676
21671
|
}
|
|
21677
21672
|
}
|
|
21678
|
-
// Ensure externalWallets
|
|
21679
|
-
//
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21673
|
+
// Ensure externalWallets.solana.connectors is a VALID Privy connector registry.
|
|
21674
|
+
// Privy (@privy-io/react-auth) calls connectors.onMount() during mount, so a
|
|
21675
|
+
// MISSING key OR an array (the common `connectors: []` mistake, e.g. in
|
|
21676
|
+
// social-only configs) crashes with
|
|
21677
|
+
// "externalWallets.solana.connectors.onMount is not a function". Normalize both
|
|
21678
|
+
// cases to a real toSolanaWalletConnectors() registry. This does NOT force a
|
|
21679
|
+
// wallet picker — the modal's visible login methods are controlled by
|
|
21680
|
+
// loginMethods; connectors only need to be present for useWallets().ready.
|
|
21681
|
+
if (privySolana) {
|
|
21682
|
+
const ew = this.privyConfig.config.externalWallets;
|
|
21683
|
+
const connectors = (_a = ew === null || ew === void 0 ? void 0 : ew.solana) === null || _a === void 0 ? void 0 : _a.connectors;
|
|
21684
|
+
if (!ew || !connectors || Array.isArray(connectors)) {
|
|
21685
|
+
this.privyConfig.config.externalWallets = Object.assign(Object.assign({}, (ew !== null && ew !== void 0 ? ew : {})), { solana: Object.assign(Object.assign({}, ((_b = ew === null || ew === void 0 ? void 0 : ew.solana) !== null && _b !== void 0 ? _b : {})), { connectors: privySolana.toSolanaWalletConnectors() }) });
|
|
21686
|
+
}
|
|
21684
21687
|
}
|
|
21685
21688
|
// Add Solana RPC configuration for v3
|
|
21686
21689
|
let devnetUrl = SOLANA_DEVNET_RPC_URL;
|
|
@@ -23028,7 +23031,7 @@ async function registerMobileWalletAdapter(config) {
|
|
|
23028
23031
|
if (typeof window === 'undefined')
|
|
23029
23032
|
return;
|
|
23030
23033
|
try {
|
|
23031
|
-
const walletStandardMobile = await import('./index.browser-
|
|
23034
|
+
const walletStandardMobile = await import('./index.browser-RwalL3F4.esm.js');
|
|
23032
23035
|
const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);
|
|
23033
23036
|
if (!registerMwa) {
|
|
23034
23037
|
console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');
|
|
@@ -23167,7 +23170,7 @@ class SolanaMobileWalletProvider {
|
|
|
23167
23170
|
async ensureWallet() {
|
|
23168
23171
|
if (this.wallet)
|
|
23169
23172
|
return this.wallet;
|
|
23170
|
-
const mod = await import('./index.browser-
|
|
23173
|
+
const mod = await import('./index.browser-RwalL3F4.esm.js');
|
|
23171
23174
|
const chain = mapChainToWalletStandard(this.cluster);
|
|
23172
23175
|
this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({
|
|
23173
23176
|
appIdentity: this.appIdentity,
|
|
@@ -24360,4 +24363,4 @@ class PrivyExpoProvider {
|
|
|
24360
24363
|
}
|
|
24361
24364
|
|
|
24362
24365
|
export { genSolanaMessage 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, RealtimeStore as N, OffchainAuthProvider as O, PhantomWalletProvider as P, ServerSessionManager as Q, ReactNativeSessionManager as R, SolanaMobileWalletProvider as S, buildSetDocumentsTransaction as T, clearCache as U, closeAllSubscriptions as V, WebSessionManager as W, convertRemainingAccounts as X, createSessionWithPrivy as Y, createSessionWithSignature as Z, genAuthNonce as _, base58 as a, getCachedData as a0, getMany as a1, getRealtimeStore as a2, hasActiveConnection as a3, reconnectWithNewAuth as a4, refreshSession as a5, resetRealtimeStore as a6, signSessionCreateMessage as a7, wsDelete as a8, wsGet as a9, wsGetMany as aa, wsQuery as ab, wsSet as ac, 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 };
|
|
24363
|
-
//# sourceMappingURL=index-
|
|
24366
|
+
//# sourceMappingURL=index-6iINLG88.esm.js.map
|