@bounded-sh/client 0.0.115 → 0.0.116
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/{email-auth-provider-CwG04f4u.js → email-auth-provider-3tuw_aDK.js} +2 -2
- package/dist/{email-auth-provider-CwG04f4u.js.map → email-auth-provider-3tuw_aDK.js.map} +1 -1
- package/dist/{email-auth-provider-CPHrcy_b.js → email-auth-provider-BFOw9iI9.js} +2 -2
- package/dist/{email-auth-provider-CPHrcy_b.js.map → email-auth-provider-BFOw9iI9.js.map} +1 -1
- package/dist/{email-auth-provider-CODHCC3h.mjs → email-auth-provider-C5bYKzpN.mjs} +2 -2
- package/dist/{email-auth-provider-ByNBWdfi.mjs.map → email-auth-provider-C5bYKzpN.mjs.map} +1 -1
- package/dist/{email-auth-provider-ByNBWdfi.mjs → email-auth-provider-CmbRj-_I.mjs} +2 -2
- package/dist/{email-auth-provider-CODHCC3h.mjs.map → email-auth-provider-CmbRj-_I.mjs.map} +1 -1
- package/dist/{guest-auth-provider-CGN4k_LG.mjs → guest-auth-provider-Bvoaq-zC.mjs} +2 -2
- package/dist/{guest-auth-provider-PfOp_Yzj.mjs.map → guest-auth-provider-Bvoaq-zC.mjs.map} +1 -1
- package/dist/{guest-auth-provider-PfOp_Yzj.mjs → guest-auth-provider-CsM_SuGH.mjs} +2 -2
- package/dist/{guest-auth-provider-CGN4k_LG.mjs.map → guest-auth-provider-CsM_SuGH.mjs.map} +1 -1
- package/dist/{guest-auth-provider-d6dk97x6.js → guest-auth-provider-DJD3zkBU.js} +2 -2
- package/dist/{guest-auth-provider-d6dk97x6.js.map → guest-auth-provider-DJD3zkBU.js.map} +1 -1
- package/dist/{guest-auth-provider-3rfSwq3f.js → guest-auth-provider-_jdqZKUo.js} +2 -2
- package/dist/{guest-auth-provider-3rfSwq3f.js.map → guest-auth-provider-_jdqZKUo.js.map} +1 -1
- package/dist/{index-C63ceG_z.mjs → index-BmBLsYn2.mjs} +17 -9
- package/dist/index-BmBLsYn2.mjs.map +1 -0
- package/dist/{index-nU0ZSfWs.js → index-C2xAP67N.js} +16 -8
- package/dist/index-C2xAP67N.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-BBLBnqal.js → index.native-CMNMw3Pe.js} +15 -7
- package/dist/index.native-CMNMw3Pe.js.map +1 -0
- package/dist/{index.native-DLAEWwuZ.mjs → index.native-DfDVa7MG.mjs} +16 -8
- package/dist/index.native-DfDVa7MG.mjs.map +1 -0
- package/dist/index.native.js +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-C4vNOS4P.mjs → injected-evm-wallet-provider-B2xteR2I.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-C4vNOS4P.mjs.map → injected-evm-wallet-provider-B2xteR2I.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-D1JA3cL4.js → injected-evm-wallet-provider-CL_FBjLe.js} +2 -2
- package/dist/{injected-evm-wallet-provider-D1JA3cL4.js.map → injected-evm-wallet-provider-CL_FBjLe.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-C6KC7pJ6.js → injected-evm-wallet-provider-CUNTCT-a.js} +2 -2
- package/dist/{injected-evm-wallet-provider-C6KC7pJ6.js.map → injected-evm-wallet-provider-CUNTCT-a.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-D7rOyYdr.mjs → injected-evm-wallet-provider-E7eCpvLr.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-D7rOyYdr.mjs.map → injected-evm-wallet-provider-E7eCpvLr.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-BXFicWTx.js → injected-wallet-provider-Bc_xtyRd.js} +2 -2
- package/dist/{injected-wallet-provider-BXFicWTx.js.map → injected-wallet-provider-Bc_xtyRd.js.map} +1 -1
- package/dist/{injected-wallet-provider-DruiX7GK.mjs → injected-wallet-provider-BoRoxrEl.mjs} +2 -2
- package/dist/{injected-wallet-provider-DruiX7GK.mjs.map → injected-wallet-provider-BoRoxrEl.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-BvlKZoVJ.js → injected-wallet-provider-BqYJQDGu.js} +2 -2
- package/dist/{injected-wallet-provider-BvlKZoVJ.js.map → injected-wallet-provider-BqYJQDGu.js.map} +1 -1
- package/dist/{injected-wallet-provider-BLRrB2rb.mjs → injected-wallet-provider-DwozZ926.mjs} +2 -2
- package/dist/{injected-wallet-provider-BLRrB2rb.mjs.map → injected-wallet-provider-DwozZ926.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-C63ceG_z.mjs.map +0 -1
- package/dist/index-nU0ZSfWs.js.map +0 -1
- package/dist/index.native-BBLBnqal.js.map +0 -1
- package/dist/index.native-DLAEWwuZ.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getConfig, getActiveSessionManager, WebSessionManager, ReactNativeSessionManager, revokeSession, reconnectWithNewAuth, init as init$1, deriveUserIdentityFromIdToken, onSessionCleared, subscribe, getFreshAuthToken, getSessionGeneration, getIdToken as getIdToken$1, genAuthNonce, genSolanaMessage, createSessionWithSignature } from '@bounded-sh/core';
|
|
1
|
+
import { getConfig, getActiveSessionManager, WebSessionManager, ReactNativeSessionManager, revokeSession, reconnectWithNewAuth, init as init$1, deriveUserIdentityFromIdToken, onSessionCleared, onSessionChange, subscribe, getFreshAuthToken, getSessionGeneration, getIdToken as getIdToken$1, genAuthNonce, genSolanaMessage, createSessionWithSignature } from '@bounded-sh/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
function walletContextFromClaims(claims, baseUrl, expectedAppId, tenantOrigin) {
|
|
@@ -6068,7 +6068,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6068
6068
|
// manager as legacy email sessions. Human login should be started
|
|
6069
6069
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
6070
6070
|
// logout surface for those sessions.
|
|
6071
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
6071
|
+
currentAuthProvider = new (await import('./email-auth-provider-C5bYKzpN.mjs')).EmailAuthProvider();
|
|
6072
6072
|
break;
|
|
6073
6073
|
case "phantom": {
|
|
6074
6074
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -6110,7 +6110,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6110
6110
|
// (bounded-login-widget.ts), so registration never counts as
|
|
6111
6111
|
// evidence the user has a wallet.
|
|
6112
6112
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
6113
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
6113
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-BoRoxrEl.mjs');
|
|
6114
6114
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
6115
6115
|
break;
|
|
6116
6116
|
}
|
|
@@ -6123,7 +6123,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6123
6123
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
6124
6124
|
// to point at a specific wallet or set chainId/domain.
|
|
6125
6125
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
6126
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
6126
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-E7eCpvLr.mjs');
|
|
6127
6127
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
6128
6128
|
break;
|
|
6129
6129
|
}
|
|
@@ -6148,7 +6148,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6148
6148
|
break;
|
|
6149
6149
|
case "guest":
|
|
6150
6150
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
6151
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
6151
|
+
currentAuthProvider = new (await import('./guest-auth-provider-CsM_SuGH.mjs')).GuestAuthProvider();
|
|
6152
6152
|
break;
|
|
6153
6153
|
}
|
|
6154
6154
|
if (!currentAuthProvider) {
|
|
@@ -6210,7 +6210,7 @@ async function signInAnonymously() {
|
|
|
6210
6210
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
6211
6211
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
6212
6212
|
// so bundle-splitting can see it.
|
|
6213
|
-
const provider = new (await import('./guest-auth-provider-
|
|
6213
|
+
const provider = new (await import('./guest-auth-provider-CsM_SuGH.mjs')).GuestAuthProvider();
|
|
6214
6214
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
6215
6215
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
6216
6216
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6381,7 +6381,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6381
6381
|
if (!sharedWalletReady) {
|
|
6382
6382
|
sharedWalletReady = (async () => {
|
|
6383
6383
|
await getConfig();
|
|
6384
|
-
await import('./injected-wallet-provider-
|
|
6384
|
+
await import('./injected-wallet-provider-BoRoxrEl.mjs');
|
|
6385
6385
|
})().catch((error) => {
|
|
6386
6386
|
sharedWalletReady = null;
|
|
6387
6387
|
throw error;
|
|
@@ -6692,6 +6692,14 @@ function registerStorageBridge() {
|
|
|
6692
6692
|
return;
|
|
6693
6693
|
void syncStoredSession().catch((error) => console.warn('Bounded session synchronization failed:', error));
|
|
6694
6694
|
});
|
|
6695
|
+
// `storage` fires only in other tabs. Another SDK copy in THIS tab (the hosted widget beside
|
|
6696
|
+
// the app, or the app beside the widget) announces its sign-in and sign-out on the session
|
|
6697
|
+
// channel instead; the nudge carries no authority, the record is re-read the same way.
|
|
6698
|
+
onSessionChange(() => {
|
|
6699
|
+
if (!initializedConfig)
|
|
6700
|
+
return;
|
|
6701
|
+
void syncStoredSession().catch((error) => console.warn('Bounded session synchronization failed:', error));
|
|
6702
|
+
});
|
|
6695
6703
|
}
|
|
6696
6704
|
function sameSessionIdentity(next, previous) {
|
|
6697
6705
|
if (!next || !previous)
|
|
@@ -8880,4 +8888,4 @@ class PrivyExpoProvider {
|
|
|
8880
8888
|
}
|
|
8881
8889
|
|
|
8882
8890
|
export { PARK_REASONS as $, waitForAuthReady as A, login as B, logout as C, getAuthProvider as D, signInAnonymously as E, loginWithPrivy as F, loginWithRedirect as G, completeLoginFromRedirect as H, getLoginReturnError as I, loginWithPopup as J, useAuth as K, useQuery as L, useBuildRun as M, apps as N, getIdToken as O, onramp as P, onrampQuote as Q, onrampStatus as R, setPlatform as S, OffchainAuthProvider as T, PrivyExpoProvider as U, builds as V, BuildsApiError as W, mediaAgentTools as X, NON_TERMINAL_STATES as Y, TERMINAL_STATES as Z, RUN_STATES as _, signMessageWithTurnkey as a, FAILURE_REASONS as a0, BUILD_REVIEW_CAPABILITY_SCHEMA as a1, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as a2, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as a3, signTransactionWithTurnkey as b, signTransactionV1WithTurnkey as c, signAndSubmitTransactionWithTurnkey as d, bs58 as e, getWallets as f, getPlatform as g, hasTurnkeyWallet as h, solanaMobileWalletLeavesPage as i, solanaMobileWalletAnswersSignInFromCache as j, isSolanaMobileWallet as k, setAuthLoading as l, bufferExports as m, normalizeSolanaRpcUrl as n, setStoredAuthMethod as o, confirmAndCheckTransaction as p, resolveSolanaRpcUrl as q, resolveSolanaWalletStandardChain as r, setCurrentUser as s, transactionHasSignature as t, init as u, getCurrentUser as v, walletStandardFeatureName as w, onAuthStateChanged as x, onAuthLoadingChanged as y, getAuthLoading as z };
|
|
8883
|
-
//# sourceMappingURL=index.native-
|
|
8891
|
+
//# sourceMappingURL=index.native-DfDVa7MG.mjs.map
|