@bounded-sh/client 0.0.53 → 0.0.55
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/builds/apps.d.ts +22 -0
- package/dist/{email-auth-provider-BGc8H93l.mjs → email-auth-provider-BKl9GgHV.mjs} +2 -2
- package/dist/{email-auth-provider-CD7YIGxe.mjs.map → email-auth-provider-BKl9GgHV.mjs.map} +1 -1
- package/dist/{email-auth-provider-BZJ9EcnE.js → email-auth-provider-BaZceaov.js} +2 -2
- package/dist/{email-auth-provider-BZJ9EcnE.js.map → email-auth-provider-BaZceaov.js.map} +1 -1
- package/dist/{email-auth-provider-ChDGkDyY.js → email-auth-provider-lVwM8vRR.js} +2 -2
- package/dist/{email-auth-provider-ChDGkDyY.js.map → email-auth-provider-lVwM8vRR.js.map} +1 -1
- package/dist/{email-auth-provider-CD7YIGxe.mjs → email-auth-provider-yBbGzH2e.mjs} +2 -2
- package/dist/{email-auth-provider-BGc8H93l.mjs.map → email-auth-provider-yBbGzH2e.mjs.map} +1 -1
- package/dist/{guest-auth-provider-DZQWJu59.mjs → guest-auth-provider-BnugW3TI.mjs} +2 -2
- package/dist/{guest-auth-provider-DZQWJu59.mjs.map → guest-auth-provider-BnugW3TI.mjs.map} +1 -1
- package/dist/{guest-auth-provider-B2CPHhym.js → guest-auth-provider-DTKczntw.js} +2 -2
- package/dist/{guest-auth-provider-B2CPHhym.js.map → guest-auth-provider-DTKczntw.js.map} +1 -1
- package/dist/{guest-auth-provider-BkkSRli_.mjs → guest-auth-provider-Dgs8zcnC.mjs} +2 -2
- package/dist/{guest-auth-provider-BkkSRli_.mjs.map → guest-auth-provider-Dgs8zcnC.mjs.map} +1 -1
- package/dist/{guest-auth-provider-C7u3RFEX.js → guest-auth-provider-DhN9PoAi.js} +2 -2
- package/dist/{guest-auth-provider-C7u3RFEX.js.map → guest-auth-provider-DhN9PoAi.js.map} +1 -1
- package/dist/{index-CK36YlGT.js → index-CXVwyR6_.js} +28 -8
- package/dist/{index-CK36YlGT.js.map → index-CXVwyR6_.js.map} +1 -1
- package/dist/{index-DuaMs1q-.mjs → index-DkdIADby.mjs} +28 -8
- package/dist/{index-DuaMs1q-.mjs.map → index-DkdIADby.mjs.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{index.native-DoWvYWaz.js → index.native-CouprxZp.js} +28 -8
- package/dist/{index.native-DoWvYWaz.js.map → index.native-CouprxZp.js.map} +1 -1
- package/dist/{index.native-C5SoJAZn.mjs → index.native-aSo8M0A8.mjs} +28 -8
- package/dist/{index.native-C5SoJAZn.mjs.map → index.native-aSo8M0A8.mjs.map} +1 -1
- package/dist/index.native.d.ts +2 -0
- package/dist/index.native.js +9 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +2 -2
- package/dist/{injected-evm-wallet-provider-bbFMPrsJ.mjs → injected-evm-wallet-provider-BgiFW_kf.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-bbFMPrsJ.mjs.map → injected-evm-wallet-provider-BgiFW_kf.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-9ephHduG.js → injected-evm-wallet-provider-CiCeS1n2.js} +2 -2
- package/dist/{injected-evm-wallet-provider-9ephHduG.js.map → injected-evm-wallet-provider-CiCeS1n2.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-GANZNy2j.js → injected-evm-wallet-provider-CtrS-gLC.js} +2 -2
- package/dist/{injected-evm-wallet-provider-GANZNy2j.js.map → injected-evm-wallet-provider-CtrS-gLC.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-CMZE-rJ7.mjs → injected-evm-wallet-provider-D7fd42En.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-CMZE-rJ7.mjs.map → injected-evm-wallet-provider-D7fd42En.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-DGN0kuf_.mjs → injected-wallet-provider-BhpwmpgW.mjs} +2 -2
- package/dist/{injected-wallet-provider-DGN0kuf_.mjs.map → injected-wallet-provider-BhpwmpgW.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-CABVyh7K.js → injected-wallet-provider-Bic6GpDr.js} +2 -2
- package/dist/{injected-wallet-provider-CABVyh7K.js.map → injected-wallet-provider-Bic6GpDr.js.map} +1 -1
- package/dist/{injected-wallet-provider-BHBiq-r2.mjs → injected-wallet-provider-CRG9TaA9.mjs} +2 -2
- package/dist/{injected-wallet-provider-BHBiq-r2.mjs.map → injected-wallet-provider-CRG9TaA9.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-C_EmEki7.js → injected-wallet-provider-CST-B9EE.js} +2 -2
- package/dist/{injected-wallet-provider-C_EmEki7.js.map → injected-wallet-provider-CST-B9EE.js.map} +1 -1
- package/package.json +2 -2
|
@@ -4443,7 +4443,7 @@ async function getAuthProvider(config) {
|
|
|
4443
4443
|
// manager as legacy email sessions. Human login should be started
|
|
4444
4444
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4445
4445
|
// logout surface for those sessions.
|
|
4446
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
4446
|
+
currentAuthProvider = new (await import('./email-auth-provider-BKl9GgHV.mjs')).EmailAuthProvider();
|
|
4447
4447
|
break;
|
|
4448
4448
|
case "wallet":
|
|
4449
4449
|
case "phantom": {
|
|
@@ -4462,7 +4462,7 @@ async function getAuthProvider(config) {
|
|
|
4462
4462
|
if (!isWalletLoginEnabled(config)) {
|
|
4463
4463
|
throw walletLoginNotEnabledError(authMethod);
|
|
4464
4464
|
}
|
|
4465
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
4465
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-CRG9TaA9.mjs');
|
|
4466
4466
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4467
4467
|
break;
|
|
4468
4468
|
}
|
|
@@ -4475,7 +4475,7 @@ async function getAuthProvider(config) {
|
|
|
4475
4475
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4476
4476
|
// to point at a specific wallet or set chainId/domain.
|
|
4477
4477
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4478
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
4478
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-BgiFW_kf.mjs');
|
|
4479
4479
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4480
4480
|
break;
|
|
4481
4481
|
}
|
|
@@ -4503,7 +4503,7 @@ async function getAuthProvider(config) {
|
|
|
4503
4503
|
break;
|
|
4504
4504
|
case "guest":
|
|
4505
4505
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4506
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
4506
|
+
currentAuthProvider = new (await import('./guest-auth-provider-Dgs8zcnC.mjs')).GuestAuthProvider();
|
|
4507
4507
|
break;
|
|
4508
4508
|
}
|
|
4509
4509
|
if (!currentAuthProvider) {
|
|
@@ -4559,7 +4559,7 @@ async function signInAnonymously() {
|
|
|
4559
4559
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4560
4560
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4561
4561
|
// so bundle-splitting can see it.
|
|
4562
|
-
const provider = new (await import('./guest-auth-provider-
|
|
4562
|
+
const provider = new (await import('./guest-auth-provider-Dgs8zcnC.mjs')).GuestAuthProvider();
|
|
4563
4563
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4564
4564
|
const commit = (user) => {
|
|
4565
4565
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -5613,7 +5613,27 @@ async function create(options = {}) {
|
|
|
5613
5613
|
method: 'POST',
|
|
5614
5614
|
body,
|
|
5615
5615
|
});
|
|
5616
|
-
return Object.assign(Object.assign({ appId: app.appId }, (typeof app.slug === 'string' && app.slug ? { slug: app.slug } : {})), { url: app.url });
|
|
5616
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ appId: app.appId }, (typeof app.slug === 'string' && app.slug ? { slug: app.slug } : {})), { url: app.url }), (typeof app.prompt === 'string' && app.prompt ? { prompt: app.prompt } : {})), (typeof app.handoff === 'string' && app.handoff ? { handoff: app.handoff } : {}));
|
|
5617
|
+
}
|
|
5618
|
+
/**
|
|
5619
|
+
* F-1200: build the create-flow redirect the owner is sent to after `create()`, with the
|
|
5620
|
+
* prompt and handoff carried in the URL FRAGMENT (never the query - fragments never reach
|
|
5621
|
+
* servers, logs, or Referer). Encoding is byte-exact so the widget's `URLSearchParams`
|
|
5622
|
+
* parse + `.trim()` reproduces the SAME prompt string dev-api hashed into the handoff;
|
|
5623
|
+
* getting this wrong would make the widget reject a genuine token and degrade to prefill.
|
|
5624
|
+
* Callers (bounded.sh, oapps.fun) should use this instead of hand-building the URL.
|
|
5625
|
+
*
|
|
5626
|
+
* Returns `${url}#bounded_prompt=<prompt>` with no `&bounded_handoff=` when the server
|
|
5627
|
+
* minted no handoff (HANDOFF_SECRET unset) - the widget then prefills without auto-running.
|
|
5628
|
+
*/
|
|
5629
|
+
function buildCreateRedirectUrl(app) {
|
|
5630
|
+
const base = app.url;
|
|
5631
|
+
const prompt = typeof app.prompt === 'string' ? app.prompt.trim() : '';
|
|
5632
|
+
if (!prompt)
|
|
5633
|
+
return base;
|
|
5634
|
+
const params = `bounded_prompt=${encodeURIComponent(prompt)}`
|
|
5635
|
+
+ (app.handoff ? `&bounded_handoff=${encodeURIComponent(app.handoff)}` : '');
|
|
5636
|
+
return `${base}#${params}`;
|
|
5617
5637
|
}
|
|
5618
5638
|
async function list() {
|
|
5619
5639
|
// This legacy-compatible action shape is also used by oapps.fun listMyApps.
|
|
@@ -5646,7 +5666,7 @@ async function list() {
|
|
|
5646
5666
|
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost) —
|
|
5647
5667
|
* dev-api CORS blocks calls from generated-app origins. Server-side callers unaffected.
|
|
5648
5668
|
*/
|
|
5649
|
-
const apps = { create, list };
|
|
5669
|
+
const apps = { create, list, buildCreateRedirectUrl };
|
|
5650
5670
|
|
|
5651
5671
|
async function deserializeTransaction(tx) {
|
|
5652
5672
|
// Literal specifier so bundlers can code-split the lazy chunk.
|
|
@@ -6044,4 +6064,4 @@ class PrivyExpoProvider {
|
|
|
6044
6064
|
}
|
|
6045
6065
|
|
|
6046
6066
|
export { useAuth as A, useBuildRun as B, apps as C, deserializeTransaction as D, EMBEDDED_WALLET_UNSUPPORTED as E, getIdToken as F, setPlatform as G, builds as H, BuildsApiError as I, PARK_REASONS as J, FAILURE_REASONS as K, BUILD_REVIEW_CAPABILITY_SCHEMA as L, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as M, NON_TERMINAL_STATES as N, OffchainAuthProvider as O, PrivyExpoProvider as P, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as Q, RUN_STATES as R, TERMINAL_STATES as T, hasEmbeddedEvmWallet as a, embeddedSignAndSubmit as b, setAuthLoading as c, bufferExports as d, embeddedRunEvmTransaction as e, bs58 as f, getPlatform as g, hasEmbeddedWallet as h, confirmAndCheckTransaction as i, init as j, getCurrentUser as k, onAuthLoadingChanged as l, getAuthLoading as m, normalizeSolanaRpcUrl as n, onAuthStateChanged as o, login as p, logout as q, resolveSolanaRpcUrl as r, setCurrentUser as s, getAuthProvider as t, signInAnonymously as u, loginWithPrivy as v, loginWithRedirect as w, completeLoginFromRedirect as x, loginWithPopup as y, completeLoginInPopup as z };
|
|
6047
|
-
//# sourceMappingURL=index.native-
|
|
6067
|
+
//# sourceMappingURL=index.native-aSo8M0A8.mjs.map
|