@bounded-sh/client 0.0.97 → 0.0.98
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-DbBN1MXS.mjs → email-auth-provider-DF7Urh8i.mjs} +2 -2
- package/dist/{email-auth-provider-DbBN1MXS.mjs.map → email-auth-provider-DF7Urh8i.mjs.map} +1 -1
- package/dist/{email-auth-provider-SqE5H8jv.js → email-auth-provider-DxB_pJKO.js} +2 -2
- package/dist/{email-auth-provider-SqE5H8jv.js.map → email-auth-provider-DxB_pJKO.js.map} +1 -1
- package/dist/{guest-auth-provider-JE0zdREA.js → guest-auth-provider-B9C3Iub_.js} +2 -2
- package/dist/{guest-auth-provider-JE0zdREA.js.map → guest-auth-provider-B9C3Iub_.js.map} +1 -1
- package/dist/{guest-auth-provider-KCalcsKu.mjs → guest-auth-provider-DVw-tITC.mjs} +2 -2
- package/dist/{guest-auth-provider-KCalcsKu.mjs.map → guest-auth-provider-DVw-tITC.mjs.map} +1 -1
- package/dist/{index-Bb7I-AoO.js → index-CYdYsf8s.js} +22 -14
- package/dist/index-CYdYsf8s.js.map +1 -0
- package/dist/{index-C01Q7k1A.mjs → index-Cflemdaf.mjs} +22 -14
- package/dist/index-Cflemdaf.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-ZrxW8UES.js → injected-evm-wallet-provider-Bv8VLuB1.js} +2 -2
- package/dist/{injected-evm-wallet-provider-ZrxW8UES.js.map → injected-evm-wallet-provider-Bv8VLuB1.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DIMM0HdQ.mjs → injected-evm-wallet-provider-CMqUqqxN.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DIMM0HdQ.mjs.map → injected-evm-wallet-provider-CMqUqqxN.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-CDl-az6P.js → injected-wallet-provider-BDt4CN0b.js} +2 -2
- package/dist/{injected-wallet-provider-CDl-az6P.js.map → injected-wallet-provider-BDt4CN0b.js.map} +1 -1
- package/dist/{injected-wallet-provider-DCaT1pKl.mjs → injected-wallet-provider-Dlo96aV9.mjs} +2 -2
- package/dist/{injected-wallet-provider-DCaT1pKl.mjs.map → injected-wallet-provider-Dlo96aV9.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-Bb7I-AoO.js.map +0 -1
- package/dist/index-C01Q7k1A.mjs.map +0 -1
|
@@ -5828,7 +5828,7 @@ async function getAuthProvider(config) {
|
|
|
5828
5828
|
// manager as legacy email sessions. Human login should be started
|
|
5829
5829
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
5830
5830
|
// logout surface for those sessions.
|
|
5831
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
5831
|
+
currentAuthProvider = new (await import('./email-auth-provider-DF7Urh8i.mjs')).EmailAuthProvider();
|
|
5832
5832
|
break;
|
|
5833
5833
|
case "phantom": {
|
|
5834
5834
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -5870,7 +5870,7 @@ async function getAuthProvider(config) {
|
|
|
5870
5870
|
// (bounded-login-widget.ts), so registration never counts as
|
|
5871
5871
|
// evidence the user has a wallet.
|
|
5872
5872
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
5873
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
5873
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-Dlo96aV9.mjs');
|
|
5874
5874
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
5875
5875
|
break;
|
|
5876
5876
|
}
|
|
@@ -5883,7 +5883,7 @@ async function getAuthProvider(config) {
|
|
|
5883
5883
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
5884
5884
|
// to point at a specific wallet or set chainId/domain.
|
|
5885
5885
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
5886
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
5886
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-CMqUqqxN.mjs');
|
|
5887
5887
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
5888
5888
|
break;
|
|
5889
5889
|
}
|
|
@@ -5908,7 +5908,7 @@ async function getAuthProvider(config) {
|
|
|
5908
5908
|
break;
|
|
5909
5909
|
case "guest":
|
|
5910
5910
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
5911
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
5911
|
+
currentAuthProvider = new (await import('./guest-auth-provider-DVw-tITC.mjs')).GuestAuthProvider();
|
|
5912
5912
|
break;
|
|
5913
5913
|
}
|
|
5914
5914
|
if (!currentAuthProvider) {
|
|
@@ -5970,7 +5970,7 @@ async function signInAnonymously() {
|
|
|
5970
5970
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
5971
5971
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
5972
5972
|
// so bundle-splitting can see it.
|
|
5973
|
-
const provider = new (await import('./guest-auth-provider-
|
|
5973
|
+
const provider = new (await import('./guest-auth-provider-DVw-tITC.mjs')).GuestAuthProvider();
|
|
5974
5974
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
5975
5975
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
5976
5976
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6141,7 +6141,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6141
6141
|
if (!sharedWalletReady) {
|
|
6142
6142
|
sharedWalletReady = (async () => {
|
|
6143
6143
|
await getConfig();
|
|
6144
|
-
await import('./injected-wallet-provider-
|
|
6144
|
+
await import('./injected-wallet-provider-Dlo96aV9.mjs');
|
|
6145
6145
|
})().catch((error) => {
|
|
6146
6146
|
sharedWalletReady = null;
|
|
6147
6147
|
throw error;
|
|
@@ -6244,7 +6244,7 @@ async function loginWithWallet(options) {
|
|
|
6244
6244
|
await ensureSharedWalletLoginReady();
|
|
6245
6245
|
else
|
|
6246
6246
|
await ensureWalletLoginReady();
|
|
6247
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
6247
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-Dlo96aV9.mjs');
|
|
6248
6248
|
// Keep the RAW wallet provider: the offchain wrapper forwards only a fixed
|
|
6249
6249
|
// set of methods, so cleanup below must speak to the provider that actually
|
|
6250
6250
|
// holds the config rather than to whatever is wrapping it.
|
|
@@ -7545,6 +7545,12 @@ function runOtpFrame(run) {
|
|
|
7545
7545
|
const d = event.data;
|
|
7546
7546
|
if (!d || typeof d !== 'object')
|
|
7547
7547
|
return;
|
|
7548
|
+
if (d.type === 'bounded:otp:resize') {
|
|
7549
|
+
if (typeof d.height === 'number' && Number.isFinite(d.height) && d.height > 0) {
|
|
7550
|
+
run.iframe.style.height = `${Math.max(140, Math.min(680, Math.ceil(d.height)))}px`;
|
|
7551
|
+
}
|
|
7552
|
+
return;
|
|
7553
|
+
}
|
|
7548
7554
|
if (d.type === 'bounded:otp:ready') {
|
|
7549
7555
|
if (started)
|
|
7550
7556
|
return;
|
|
@@ -7594,8 +7600,7 @@ function runOtpFrame(run) {
|
|
|
7594
7600
|
reject(new Error(String((d && d.error) || 'Invalid or expired code.')));
|
|
7595
7601
|
return;
|
|
7596
7602
|
}
|
|
7597
|
-
// 'bounded:otp:
|
|
7598
|
-
// frame from resize, but login does not depend on them.
|
|
7603
|
+
// 'bounded:otp:registered' is advisory; login does not depend on it.
|
|
7599
7604
|
};
|
|
7600
7605
|
const post = (msg) => {
|
|
7601
7606
|
var _a;
|
|
@@ -8084,6 +8089,7 @@ async function prepareAndOpen(opts, pending) {
|
|
|
8084
8089
|
m.onBackdrop = cancel;
|
|
8085
8090
|
const style = el("style");
|
|
8086
8091
|
style.textContent = CARD_CSS;
|
|
8092
|
+
let emailDraft = "";
|
|
8087
8093
|
const renderChoose = () => {
|
|
8088
8094
|
const card = el("div", "c");
|
|
8089
8095
|
card.appendChild(style.cloneNode(true));
|
|
@@ -8118,6 +8124,8 @@ async function prepareAndOpen(opts, pending) {
|
|
|
8118
8124
|
input.autocomplete = "email";
|
|
8119
8125
|
input.placeholder = "you@example.com";
|
|
8120
8126
|
input.required = true;
|
|
8127
|
+
input.value = emailDraft;
|
|
8128
|
+
input.addEventListener("input", () => { emailDraft = input.value; });
|
|
8121
8129
|
const submit = el("button", "btn primary");
|
|
8122
8130
|
submit.type = "submit";
|
|
8123
8131
|
submit.textContent = "Continue";
|
|
@@ -8126,6 +8134,7 @@ async function prepareAndOpen(opts, pending) {
|
|
|
8126
8134
|
e.preventDefault();
|
|
8127
8135
|
if (!input.value)
|
|
8128
8136
|
return;
|
|
8137
|
+
emailDraft = input.value;
|
|
8129
8138
|
// Starting another lane takes the card from a wallet attempt still
|
|
8130
8139
|
// preparing, and this lane holds the lock until its own request
|
|
8131
8140
|
// settles - otherwise a failed email login would keep every other lane
|
|
@@ -8155,6 +8164,7 @@ async function prepareAndOpen(opts, pending) {
|
|
|
8155
8164
|
setBusy(submit, "Opening secure sign-in\u2026");
|
|
8156
8165
|
const emailOpts = {
|
|
8157
8166
|
provider: "email",
|
|
8167
|
+
prompt: "login",
|
|
8158
8168
|
loginHint: input.value,
|
|
8159
8169
|
redirectUri: opts.redirectUri,
|
|
8160
8170
|
};
|
|
@@ -8436,13 +8446,11 @@ async function prepareAndOpen(opts, pending) {
|
|
|
8436
8446
|
const back = el("button", "back", "\u2190 Back");
|
|
8437
8447
|
back.type = "button";
|
|
8438
8448
|
card.appendChild(back);
|
|
8439
|
-
card.appendChild(el("h1", undefined, "Enter your code"));
|
|
8440
|
-
card.appendChild(el("p", "sub", `We sent a 6-digit code to ${handle.email}.`));
|
|
8441
8449
|
const status = el("div", "status");
|
|
8442
8450
|
const setErr = (msg) => { status.textContent = msg; status.classList.add("err"); };
|
|
8443
8451
|
// The Bounded-origin OTP frame. Its route restricts frame-ancestors to this exact origin, so
|
|
8444
|
-
// only this app may embed it; the code + the P-256 key never leave it into this realm.
|
|
8445
|
-
//
|
|
8452
|
+
// only this app may embed it; the code + the P-256 key never leave it into this realm.
|
|
8453
|
+
// Its trusted resize messages fit the heading, input, and any error copy.
|
|
8446
8454
|
const frame = document.createElement("iframe");
|
|
8447
8455
|
frame.setAttribute("title", "Enter your code");
|
|
8448
8456
|
frame.style.cssText = "width:100%;height:210px;border:0;background:transparent;color-scheme:dark";
|
|
@@ -10112,4 +10120,4 @@ function defaultInjectedEvmProvider() {
|
|
|
10112
10120
|
}
|
|
10113
10121
|
|
|
10114
10122
|
export { OffchainAuthProvider as $, getAuthProvider as A, signInAnonymously as B, loginWithPrivy as C, loginWithWallet as D, ensureWalletLoginReady as E, ensureSharedWalletLoginReady as F, preloadWalletLogin as G, loginWithRedirect as H, completeLoginFromRedirect as I, loginWithPopup as J, completeLoginInPopup as K, openBoundedWidget as L, ensureSignedIn as M, useAuth as N, useQuery as O, useBuildRun as P, apps as Q, signSolanaMessageViaTurnkey as R, getOrCreateTurnkeyWallet as S, openTurnkeyKeyExport as T, startTurnkeyEmailLogin as U, getIdToken as V, WalletConfigError as W, onramp as X, onrampQuote as Y, onrampStatus as Z, setPlatform as _, signMessageWithTurnkey as a, PrivyExpoProvider as a0, requestEip6963Providers as a1, builds as a2, BuildsApiError as a3, NON_TERMINAL_STATES as a4, TERMINAL_STATES as a5, RUN_STATES as a6, PARK_REASONS as a7, FAILURE_REASONS as a8, BUILD_REVIEW_CAPABILITY_SCHEMA as a9, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as aa, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as ab, signTransactionWithTurnkey as b, signTransactionV1WithTurnkey as c, signAndSubmitTransactionWithTurnkey as d, bs58 as e, defaultInjectedProvider as f, getPlatform as g, hasTurnkeyWallet as h, firstStandardWalletProvider as i, setAuthLoading as j, bufferExports as k, setStoredAuthMethod as l, confirmAndCheckTransaction as m, normalizeSolanaRpcUrl as n, defaultInjectedEvmProvider as o, init as p, getCurrentUser as q, resolveSolanaRpcUrl as r, setCurrentUser as s, transactionHasSignature as t, onAuthStateChanged as u, onAuthLoadingChanged as v, getAuthLoading as w, waitForAuthReady as x, login as y, logout as z };
|
|
10115
|
-
//# sourceMappingURL=index-
|
|
10123
|
+
//# sourceMappingURL=index-Cflemdaf.mjs.map
|