@bounded-sh/client 0.0.115 → 0.0.117-sync.0
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
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { am as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, al as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, ak as BUILD_REVIEW_CAPABILITY_SCHEMA, ad as BuildsApiError, aj as FAILURE_REASONS, af as NON_TERMINAL_STATES, a7 as OffchainAuthProvider, ai as PARK_REASONS, a8 as PrivyExpoProvider, ah as RUN_STATES, ag as TERMINAL_STATES, a5 as VenueEscrowError, W as WalletConfigError, R as apps, ac as builds, J as completeLoginFromRedirect, aa as connectBroadcast, ab as connectServiceSession, p as defaultInjectedEvmProvider, f as defaultInjectedProvider, a3 as disputeVenueEscrow, G as ensureSharedWalletLoginReady, N as ensureSignedIn, F as ensureWalletLoginReady, a2 as fundVenueEscrow, x as getAuthLoading, B as getAuthProvider, u as getCurrentUser, _ as getIdToken, K as getLoginReturnError, U as getOrCreateTurnkeyWallet, g as getPlatform, Y as getTurnkeyWalletRecoveryUrl, X as getTurnkeyWalletSessionState, a4 as getVenueEscrow, q as init, z as login, L as loginWithPopup, D as loginWithPrivy, I as loginWithRedirect, E as loginWithWallet, A as logout, ae as mediaAgentTools, w as onAuthLoadingChanged, v as onAuthStateChanged, $ as onramp, a0 as onrampQuote, a1 as onrampStatus, M as openBoundedWidget, V as openTurnkeyKeyExport, H as preloadWalletLogin, a9 as requestEip6963Providers, a6 as setPlatform, C as signInAnonymously, T as signSolanaMessageViaTurnkey, Z as startTurnkeyEmailLogin, k as supportsWalletSignIn, O as useAuth, Q as useBuildRun, P as useQuery, y as waitForAuthReady } from './index-
|
|
1
|
+
export { am as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, al as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, ak as BUILD_REVIEW_CAPABILITY_SCHEMA, ad as BuildsApiError, aj as FAILURE_REASONS, af as NON_TERMINAL_STATES, a7 as OffchainAuthProvider, ai as PARK_REASONS, a8 as PrivyExpoProvider, ah as RUN_STATES, ag as TERMINAL_STATES, a5 as VenueEscrowError, W as WalletConfigError, R as apps, ac as builds, J as completeLoginFromRedirect, aa as connectBroadcast, ab as connectServiceSession, p as defaultInjectedEvmProvider, f as defaultInjectedProvider, a3 as disputeVenueEscrow, G as ensureSharedWalletLoginReady, N as ensureSignedIn, F as ensureWalletLoginReady, a2 as fundVenueEscrow, x as getAuthLoading, B as getAuthProvider, u as getCurrentUser, _ as getIdToken, K as getLoginReturnError, U as getOrCreateTurnkeyWallet, g as getPlatform, Y as getTurnkeyWalletRecoveryUrl, X as getTurnkeyWalletSessionState, a4 as getVenueEscrow, q as init, z as login, L as loginWithPopup, D as loginWithPrivy, I as loginWithRedirect, E as loginWithWallet, A as logout, ae as mediaAgentTools, w as onAuthLoadingChanged, v as onAuthStateChanged, $ as onramp, a0 as onrampQuote, a1 as onrampStatus, M as openBoundedWidget, V as openTurnkeyKeyExport, H as preloadWalletLogin, a9 as requestEip6963Providers, a6 as setPlatform, C as signInAnonymously, T as signSolanaMessageViaTurnkey, Z as startTurnkeyEmailLogin, k as supportsWalletSignIn, O as useAuth, Q as useBuildRun, P as useQuery, y as waitForAuthReady } from './index-BmBLsYn2.mjs';
|
|
2
2
|
export * from '@bounded-sh/core';
|
|
3
3
|
export { AppTokenExchangeError, BoundedDeclineError, DECLINE_EVENT_NAME, RATE_LIMIT_EVENT_NAME, ScopedClientReadOnlyError, aggregate, clearAppTokenCache, count, createAppTokenAuthHeaders, createClient, deriveDecline, dispatchDeclineEvent, dispatchRateLimitEvent, docId, exchangeAppToken, get, getConfig, getFiles, getMany, queryAggregate, reconcileSetResult, runExpression, runExpressionMany, runQuery, runQueryMany, search, set, setFile, setMany, signAndSubmitTransaction, signMessage, signTransaction, subscribe, waitForSetResult } from '@bounded-sh/core';
|
|
4
4
|
import 'react';
|
|
@@ -6089,7 +6089,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6089
6089
|
// manager as legacy email sessions. Human login should be started
|
|
6090
6090
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
6091
6091
|
// logout surface for those sessions.
|
|
6092
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
6092
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-3tuw_aDK.js'); })).EmailAuthProvider();
|
|
6093
6093
|
break;
|
|
6094
6094
|
case "phantom": {
|
|
6095
6095
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -6131,7 +6131,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6131
6131
|
// (bounded-login-widget.ts), so registration never counts as
|
|
6132
6132
|
// evidence the user has a wallet.
|
|
6133
6133
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
6134
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6134
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-BqYJQDGu.js'); });
|
|
6135
6135
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
6136
6136
|
break;
|
|
6137
6137
|
}
|
|
@@ -6144,7 +6144,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6144
6144
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
6145
6145
|
// to point at a specific wallet or set chainId/domain.
|
|
6146
6146
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
6147
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
6147
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-CUNTCT-a.js'); });
|
|
6148
6148
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
6149
6149
|
break;
|
|
6150
6150
|
}
|
|
@@ -6169,7 +6169,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6169
6169
|
break;
|
|
6170
6170
|
case "guest":
|
|
6171
6171
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
6172
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6172
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-_jdqZKUo.js'); })).GuestAuthProvider();
|
|
6173
6173
|
break;
|
|
6174
6174
|
}
|
|
6175
6175
|
if (!currentAuthProvider) {
|
|
@@ -6231,7 +6231,7 @@ async function signInAnonymously() {
|
|
|
6231
6231
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
6232
6232
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
6233
6233
|
// so bundle-splitting can see it.
|
|
6234
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6234
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-_jdqZKUo.js'); })).GuestAuthProvider();
|
|
6235
6235
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
6236
6236
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
6237
6237
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6402,7 +6402,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6402
6402
|
if (!sharedWalletReady) {
|
|
6403
6403
|
sharedWalletReady = (async () => {
|
|
6404
6404
|
await core.getConfig();
|
|
6405
|
-
await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6405
|
+
await Promise.resolve().then(function () { return require('./injected-wallet-provider-BqYJQDGu.js'); });
|
|
6406
6406
|
})().catch((error) => {
|
|
6407
6407
|
sharedWalletReady = null;
|
|
6408
6408
|
throw error;
|
|
@@ -6713,6 +6713,14 @@ function registerStorageBridge() {
|
|
|
6713
6713
|
return;
|
|
6714
6714
|
void syncStoredSession().catch((error) => console.warn('Bounded session synchronization failed:', error));
|
|
6715
6715
|
});
|
|
6716
|
+
// `storage` fires only in other tabs. Another SDK copy in THIS tab (the hosted widget beside
|
|
6717
|
+
// the app, or the app beside the widget) announces its sign-in and sign-out on the session
|
|
6718
|
+
// channel instead; the nudge carries no authority, the record is re-read the same way.
|
|
6719
|
+
core.onSessionChange(() => {
|
|
6720
|
+
if (!initializedConfig)
|
|
6721
|
+
return;
|
|
6722
|
+
void syncStoredSession().catch((error) => console.warn('Bounded session synchronization failed:', error));
|
|
6723
|
+
});
|
|
6716
6724
|
}
|
|
6717
6725
|
function sameSessionIdentity(next, previous) {
|
|
6718
6726
|
if (!next || !previous)
|
|
@@ -8958,4 +8966,4 @@ exports.useBuildRun = useBuildRun;
|
|
|
8958
8966
|
exports.useQuery = useQuery;
|
|
8959
8967
|
exports.waitForAuthReady = waitForAuthReady;
|
|
8960
8968
|
exports.walletStandardFeatureName = walletStandardFeatureName;
|
|
8961
|
-
//# sourceMappingURL=index.native-
|
|
8969
|
+
//# sourceMappingURL=index.native-CMNMw3Pe.js.map
|