@dubsdotapp/expo 0.2.11 → 0.2.13

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/index.d.mts CHANGED
@@ -304,6 +304,7 @@ interface UiConfig {
304
304
  accentColor?: string;
305
305
  appIcon?: string;
306
306
  appName?: string;
307
+ appUrl?: string;
307
308
  tagline?: string;
308
309
  }
309
310
 
package/dist/index.d.ts CHANGED
@@ -304,6 +304,7 @@ interface UiConfig {
304
304
  accentColor?: string;
305
305
  appIcon?: string;
306
306
  appName?: string;
307
+ appUrl?: string;
307
308
  tagline?: string;
308
309
  }
309
310
 
package/dist/index.js CHANGED
@@ -888,14 +888,14 @@ var PhantomDeeplinkAdapter = class {
888
888
  const requestId = nextRequestId();
889
889
  const redirectLink = `${this.config.redirectUri}/${requestId}`;
890
890
  console.log(TAG2, `connect() requestId=${requestId} redirectLink=${redirectLink}`);
891
+ const appUrl = this.config.appUrl || this.config.redirectUri;
892
+ console.log(TAG2, "Using app_url:", appUrl);
891
893
  const params = new URLSearchParams({
892
894
  dapp_encryption_public_key: dappPubBase58,
893
895
  cluster: this.config.cluster || "mainnet-beta",
894
- redirect_link: redirectLink
896
+ redirect_link: redirectLink,
897
+ app_url: appUrl
895
898
  });
896
- if (this.config.appUrl) {
897
- params.set("app_url", this.config.appUrl);
898
- }
899
899
  const url = `https://phantom.app/ul/v1/connect?${params.toString()}`;
900
900
  console.log(TAG2, "Opening Phantom connect deeplink...");
901
901
  const response = await this.handler.send(url, requestId, this.timeout);
@@ -2462,7 +2462,7 @@ function DubsProvider({
2462
2462
  appIcon: uiConfig.appIcon,
2463
2463
  tagline: uiConfig.tagline,
2464
2464
  redirectUri,
2465
- appUrl,
2465
+ appUrl: appUrl || uiConfig.appUrl,
2466
2466
  children: (adapter) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2467
2467
  ManagedInner,
2468
2468
  {