@seamapi/react 1.16.2 → 1.17.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/elements.js CHANGED
@@ -8077,7 +8077,7 @@ const mm = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
8077
8077
  const n = globalThis.document.createElement("link");
8078
8078
  n.rel = "stylesheet", n.type = "text/css", n.href = mm, globalThis.document.head.appendChild(n);
8079
8079
  }, [t]);
8080
- }, NE = "1.16.2", HE = "https://react.seam.co", DE = ({
8080
+ }, NE = "1.17.0", HE = "https://react.seam.co", DE = ({
8081
8081
  disabled: t = !1,
8082
8082
  unminified: e = !1
8083
8083
  }) => {
@@ -22676,7 +22676,7 @@ var G2 = class extends Error {
22676
22676
  actionAttempt: n
22677
22677
  };
22678
22678
  }
22679
- }, Z2 = "6.2.0", Uy = (t) => {
22679
+ }, Z2 = "6.3.0", Uy = (t) => {
22680
22680
  var e, n, r, i, o, s, l, c, a;
22681
22681
  const u = {
22682
22682
  apiKey: (r = (n = (e = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : e.env) == null ? void 0 : n.SEAM_API_KEY) != null ? r : void 0,
@@ -24372,18 +24372,17 @@ function oT({
24372
24372
  } = {}) {
24373
24373
  const { isLoading: e, mutate: n } = iT({
24374
24374
  willNavigateToWebview: !0
24375
- }), r = window.location.href, i = k.useCallback(() => {
24375
+ }), r = k.useCallback(() => {
24376
+ var i;
24376
24377
  n({
24377
- accepted_providers: [],
24378
- custom_redirect_url: r,
24379
- custom_redirect_failure_url: r
24378
+ custom_redirect_url: (i = globalThis.location) == null ? void 0 : i.href
24380
24379
  });
24381
- }, [n, r]);
24380
+ }, [n]);
24382
24381
  return /* @__PURE__ */ v.jsx(
24383
24382
  jo,
24384
24383
  {
24385
24384
  size: "small",
24386
- onClick: i,
24385
+ onClick: r,
24387
24386
  className: t,
24388
24387
  disabled: e,
24389
24388
  children: aT.connectAccount