@bounded-sh/client 0.0.57 → 0.0.58

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.
Files changed (25) hide show
  1. package/dist/{email-auth-provider-8k8iBIQL.js → email-auth-provider-BHtR1H_E.js} +2 -2
  2. package/dist/{email-auth-provider-8k8iBIQL.js.map → email-auth-provider-BHtR1H_E.js.map} +1 -1
  3. package/dist/{email-auth-provider-Bmah1GWS.mjs → email-auth-provider-CX7foEhA.mjs} +2 -2
  4. package/dist/{email-auth-provider-Bmah1GWS.mjs.map → email-auth-provider-CX7foEhA.mjs.map} +1 -1
  5. package/dist/{guest-auth-provider-BjfjrpdW.js → guest-auth-provider-BPXDJoEQ.js} +2 -2
  6. package/dist/{guest-auth-provider-BjfjrpdW.js.map → guest-auth-provider-BPXDJoEQ.js.map} +1 -1
  7. package/dist/{guest-auth-provider-D6h4eAtx.mjs → guest-auth-provider-DJmuReVa.mjs} +2 -2
  8. package/dist/{guest-auth-provider-D6h4eAtx.mjs.map → guest-auth-provider-DJmuReVa.mjs.map} +1 -1
  9. package/dist/{index-C7rOe6B2.mjs → index-DWodlTFG.mjs} +15 -12
  10. package/dist/index-DWodlTFG.mjs.map +1 -0
  11. package/dist/{index-CnObYQhV.js → index-MKE9tHpl.js} +15 -12
  12. package/dist/index-MKE9tHpl.js.map +1 -0
  13. package/dist/index.js +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/{injected-evm-wallet-provider-CcwS6p3o.js → injected-evm-wallet-provider-BOPzdm7E.js} +2 -2
  16. package/dist/{injected-evm-wallet-provider-CcwS6p3o.js.map → injected-evm-wallet-provider-BOPzdm7E.js.map} +1 -1
  17. package/dist/{injected-evm-wallet-provider-DIWeWiAN.mjs → injected-evm-wallet-provider-CnJRLE8P.mjs} +2 -2
  18. package/dist/{injected-evm-wallet-provider-DIWeWiAN.mjs.map → injected-evm-wallet-provider-CnJRLE8P.mjs.map} +1 -1
  19. package/dist/{injected-wallet-provider-B_jQFifE.js → injected-wallet-provider-BUvN5Y6_.js} +2 -2
  20. package/dist/{injected-wallet-provider-B_jQFifE.js.map → injected-wallet-provider-BUvN5Y6_.js.map} +1 -1
  21. package/dist/{injected-wallet-provider-CFnqSsHy.mjs → injected-wallet-provider-Dg3MieTq.mjs} +2 -2
  22. package/dist/{injected-wallet-provider-CFnqSsHy.mjs.map → injected-wallet-provider-Dg3MieTq.mjs.map} +1 -1
  23. package/package.json +2 -2
  24. package/dist/index-C7rOe6B2.mjs.map +0 -1
  25. package/dist/index-CnObYQhV.js.map +0 -1
@@ -4531,7 +4531,7 @@ async function getAuthProvider(config) {
4531
4531
  // manager as legacy email sessions. Human login should be started
4532
4532
  // with loginWithRedirect(); this provider is kept as the restore and
4533
4533
  // logout surface for those sessions.
4534
- currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-8k8iBIQL.js'); })).EmailAuthProvider();
4534
+ currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-BHtR1H_E.js'); })).EmailAuthProvider();
4535
4535
  break;
4536
4536
  case "wallet":
4537
4537
  case "phantom": {
@@ -4550,7 +4550,7 @@ async function getAuthProvider(config) {
4550
4550
  if (!isWalletLoginEnabled(config)) {
4551
4551
  throw walletLoginNotEnabledError(authMethod);
4552
4552
  }
4553
- const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-B_jQFifE.js'); });
4553
+ const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-BUvN5Y6_.js'); });
4554
4554
  currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
4555
4555
  break;
4556
4556
  }
@@ -4563,7 +4563,7 @@ async function getAuthProvider(config) {
4563
4563
  // Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
4564
4564
  // to point at a specific wallet or set chainId/domain.
4565
4565
  const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
4566
- const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-CcwS6p3o.js'); });
4566
+ const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-BOPzdm7E.js'); });
4567
4567
  currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
4568
4568
  break;
4569
4569
  }
@@ -4591,7 +4591,7 @@ async function getAuthProvider(config) {
4591
4591
  break;
4592
4592
  case "guest":
4593
4593
  // Anonymous auth: a device-local ed25519 keypair signs the challenge.
4594
- currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BjfjrpdW.js'); })).GuestAuthProvider();
4594
+ currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BPXDJoEQ.js'); })).GuestAuthProvider();
4595
4595
  break;
4596
4596
  }
4597
4597
  if (!currentAuthProvider) {
@@ -4647,7 +4647,7 @@ async function signInAnonymously() {
4647
4647
  // Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
4648
4648
  // the main bundle for data-only apps. Specifier is a static string literal
4649
4649
  // so bundle-splitting can see it.
4650
- const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BjfjrpdW.js'); })).GuestAuthProvider();
4650
+ const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BPXDJoEQ.js'); })).GuestAuthProvider();
4651
4651
  setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
4652
4652
  const commit = (user) => {
4653
4653
  // No await/interleaving inside this block: provider/method/config/marker
@@ -4798,7 +4798,7 @@ async function loginWithWallet(options) {
4798
4798
  ? Object.assign(Object.assign({}, base), { getProvider: options.getProvider }) : base;
4799
4799
  const rpcUrl = normalizeSolanaRpcUrl(cfg.rpcUrl);
4800
4800
  const network = getConfiguredSolanaNetwork(cfg);
4801
- const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-B_jQFifE.js'); });
4801
+ const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-BUvN5Y6_.js'); });
4802
4802
  let provider = new InjectedWalletProvider(injectedConfig, rpcUrl, network);
4803
4803
  if (coreConfig.chain === 'offchain')
4804
4804
  provider = new OffchainAuthProvider(provider);
@@ -5956,7 +5956,7 @@ function el(tag, cls, text) {
5956
5956
  * run first; call from a user gesture so social/wallet popups are allowed.
5957
5957
  */
5958
5958
  async function openBoundedWidget(opts = {}) {
5959
- var _a, _b, _c, _d;
5959
+ var _a, _b, _c, _d, _e, _f, _g, _h;
5960
5960
  if (!hasDOM$2()) {
5961
5961
  throw new Error("openBoundedWidget is web-only - on React Native use loginWithRedirect()");
5962
5962
  }
@@ -5975,6 +5975,10 @@ async function openBoundedWidget(opts = {}) {
5975
5975
  ? false
5976
5976
  : ((_c = opts.wallet) !== null && _c !== void 0 ? _c : (wallets.length > 0 || authApi.isWalletLoginEnabled(initCfg)));
5977
5977
  const authMode = (_d = opts.authMode) !== null && _d !== void 0 ? _d : authApi.resolveAuthMode(initCfg);
5978
+ // Widget text: per-call options win, then init() loginWidget config, then the
5979
+ // defaults ("Sign in" / the Bounded subline; "" suppresses the subline).
5980
+ const title = (_e = opts.title) !== null && _e !== void 0 ? _e : (_f = initCfg.loginWidget) === null || _f === void 0 ? void 0 : _f.title;
5981
+ const subtitle = (_g = opts.subtitle) !== null && _g !== void 0 ? _g : (_h = initCfg.loginWidget) === null || _h === void 0 ? void 0 : _h.subtitle;
5978
5982
  ensureFonts();
5979
5983
  const m = getModal();
5980
5984
  return new Promise((resolve, reject) => {
@@ -5998,7 +6002,6 @@ async function openBoundedWidget(opts = {}) {
5998
6002
  const style = el("style");
5999
6003
  style.textContent = CARD_CSS;
6000
6004
  const renderChoose = () => {
6001
- var _a, _b;
6002
6005
  const card = el("div", "c");
6003
6006
  card.appendChild(style.cloneNode(true));
6004
6007
  const x = el("button", "x", "Close");
@@ -6006,9 +6009,9 @@ async function openBoundedWidget(opts = {}) {
6006
6009
  x.setAttribute("aria-label", "Close");
6007
6010
  x.addEventListener("click", cancel);
6008
6011
  card.appendChild(x);
6009
- card.appendChild(el("h1", undefined, (_a = opts.title) !== null && _a !== void 0 ? _a : "Sign in"));
6010
- if (opts.subtitle !== "") {
6011
- card.appendChild(el("p", "sub", (_b = opts.subtitle) !== null && _b !== void 0 ? _b : "One account and wallet across every Bounded app."));
6012
+ card.appendChild(el("h1", undefined, title !== null && title !== void 0 ? title : "Sign in"));
6013
+ if (subtitle !== "") {
6014
+ card.appendChild(el("p", "sub", subtitle !== null && subtitle !== void 0 ? subtitle : "One account and wallet across every Bounded app."));
6012
6015
  }
6013
6016
  const status = el("div", "status");
6014
6017
  const setErr = (msg) => {
@@ -7859,4 +7862,4 @@ exports.startTurnkeyEmailLogin = startTurnkeyEmailLogin;
7859
7862
  exports.useAuth = useAuth;
7860
7863
  exports.useBuildRun = useBuildRun;
7861
7864
  exports.useQuery = useQuery;
7862
- //# sourceMappingURL=index-CnObYQhV.js.map
7865
+ //# sourceMappingURL=index-MKE9tHpl.js.map