@dogeos/dogeos-sdk 3.0.13-beta.0 → 3.0.13-beta.1

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.
@@ -1,4 +1,4 @@
1
- import { G as Ct, H as Z, I as Ie, d as q, J as Ee, e as Mt, K as Mn, p as Ae, N as Fn, O as Dn, Q as Rn, a as P, R as le, T as On, U as In, V as Ne, W as H, X as Ft, b as Y, Y as En, Z as Nn, f as ne, w as Dt, B as ue, n as I, c as se, _ as ce, $ as Kn, h as Bn, r as Rt, a0 as Ke, a1 as Ln, x as kn, a2 as _n, j as O, a3 as Ot, a4 as It, a5 as Et, a6 as He, a7 as Nt, E as Gn, a8 as Un, a9 as $n, aa as qe, ab as jn, ac as Wn, ad as zn, ae as Hn, af as qn, ag as Yn, ah as Xn, ai as Zn, aj as Jn, ak as Qn, al as es } from "./index-DLBiNCEM.js";
1
+ import { G as Ct, H as Z, I as Ie, d as q, J as Ee, e as Mt, K as Mn, p as Ae, N as Fn, O as Dn, Q as Rn, a as P, R as le, T as On, U as In, V as Ne, W as H, X as Ft, b as Y, Y as En, Z as Nn, f as ne, w as Dt, B as ue, n as I, c as se, _ as ce, $ as Kn, h as Bn, r as Rt, a0 as Ke, a1 as Ln, x as kn, a2 as _n, j as O, a3 as Ot, a4 as It, a5 as Et, a6 as He, a7 as Nt, E as Gn, a8 as Un, a9 as $n, aa as qe, ab as jn, ac as Wn, ad as zn, ae as Hn, af as qn, ag as Yn, ah as Xn, ai as Zn, aj as Jn, ak as Qn, al as es } from "./index-hq2nsTgC.js";
2
2
  import { Fragment as ts } from "react";
3
3
  function Kt(t, e) {
4
4
  if (!Array.isArray(e))
@@ -11,10 +11,10 @@
11
11
  }
12
12
  })();
13
13
 
14
- import { f as T, a as R, c as O, b as Ot, i as F, p as z, d as le, n as M, P as he, e as Ft, L as ce, S as ue, g as de, m as Nt, h as Gt, r as Wt, j as me, s as $, k as H, l as et } from "./index-DLBiNCEM.js";
15
- import { A as Zi, q as Ki, M as Ji, z as Qi, y as ts, w as es, v as is, u as ss, C as os, E as ns, t as as, o as rs, D as ls, x as hs, F as cs, B as us } from "./index-DLBiNCEM.js";
16
- import { i as fe, e as _t, p as pe, a as b, s as ge, m as ye, b as v, c as J, d as y, f as ve, g as xe, h as Pe, j as zt, k as it, l as $t, n as Te, F as Ht, o as st, q as De, r as ot, t as Xt, u as Se, S as Ee, v as Ae, w as V, x as N, y as G, z as nt, A as Re, B as Le, C as Ce, D as B, E as je, G as Ve } from "./features-animation-B5P3qL6l.js";
17
- import { K as ms, N as fs, V as ps, a4 as gs, H as ys, a2 as vs, P as xs, Q as Ps, R as Ts, T as Ds, U as Ss, W as Es, J as As, _ as Rs, X as Ls, Y as Cs, Z as js, M as Vs, a1 as Bs, a3 as Ms, $ as ws, O as ks, a0 as bs, L as Us, I as Is } from "./features-animation-B5P3qL6l.js";
14
+ import { f as T, a as R, c as O, b as Ot, i as F, p as z, d as le, n as M, P as he, e as Ft, L as ce, S as ue, g as de, m as Nt, h as Gt, r as Wt, j as me, s as $, k as H, l as et } from "./index-hq2nsTgC.js";
15
+ import { A as Zi, q as Ki, M as Ji, z as Qi, y as ts, w as es, v as is, u as ss, C as os, E as ns, t as as, o as rs, D as ls, x as hs, F as cs, B as us } from "./index-hq2nsTgC.js";
16
+ import { i as fe, e as _t, p as pe, a as b, s as ge, m as ye, b as v, c as J, d as y, f as ve, g as xe, h as Pe, j as zt, k as it, l as $t, n as Te, F as Ht, o as st, q as De, r as ot, t as Xt, u as Se, S as Ee, v as Ae, w as V, x as N, y as G, z as nt, A as Re, B as Le, C as Ce, D as B, E as je, G as Ve } from "./features-animation-Qpi9d20_.js";
17
+ import { K as ms, N as fs, V as ps, a4 as gs, H as ys, a2 as vs, P as xs, Q as Ps, R as Ts, T as Ds, U as Ss, W as Es, J as As, _ as Rs, X as Ls, Y as Cs, Z as js, M as Vs, a1 as Bs, a3 as Ms, $ as ws, O as ks, a0 as bs, L as Us, I as Is } from "./features-animation-Qpi9d20_.js";
18
18
  import { jsx as Be } from "react/jsx-runtime";
19
19
  import { useContext as Q, useId as Me, useEffect as we, useCallback as ke, Component as be } from "react";
20
20
  const at = (t, e) => Math.abs(t - e);
@@ -11,7 +11,7 @@
11
11
  }
12
12
  })();
13
13
 
14
- import { G as a } from "./features-animation-B5P3qL6l.js";
14
+ import { G as a } from "./features-animation-Qpi9d20_.js";
15
15
  var t = a;
16
16
  export {
17
17
  t as default
@@ -20604,7 +20604,7 @@ function s2(e, t) {
20604
20604
  })
20605
20605
  };
20606
20606
  }
20607
- var DA = () => import("./index-DrHcr1tD.js").then((e) => e.default), r5 = (e) => {
20607
+ var DA = () => import("./index-CHC7QcBF.js").then((e) => e.default), r5 = (e) => {
20608
20608
  const { ripples: t = [], motionProps: r, color: n = "currentColor", style: a, onClear: o } = e;
20609
20609
  return /* @__PURE__ */ b(qt, { children: t.map((i) => {
20610
20610
  const s = gd(0.01 * i.size, 0.2, i.size > 100 ? 0.75 : 0.5);
@@ -22671,7 +22671,7 @@ function Jc() {
22671
22671
  height: pr && pr?.height || window.innerHeight
22672
22672
  };
22673
22673
  }
22674
- var Uc = () => import("./index-DrHcr1tD.js").then((e) => e.default), A5 = (e) => {
22674
+ var Uc = () => import("./index-CHC7QcBF.js").then((e) => e.default), A5 = (e) => {
22675
22675
  const { as: t, children: r, role: n = "dialog", ...a } = e, {
22676
22676
  Component: o,
22677
22677
  domRef: i,
@@ -29039,7 +29039,7 @@ function gP(e) {
29039
29039
  isLoading: te
29040
29040
  };
29041
29041
  }
29042
- var hP = () => import("./src-UW24ZMRV-BdqBy3qR.js").then((e) => e.default), r9 = (e) => {
29042
+ var hP = () => import("./src-UW24ZMRV-j-e0IbBp.js").then((e) => e.default), r9 = (e) => {
29043
29043
  const { ripples: t = [], motionProps: r, color: n = "currentColor", style: a, onClear: o } = e;
29044
29044
  return /* @__PURE__ */ b(qt, { children: t.map((i) => {
29045
29045
  const s = gd(0.01 * i.size, 0.2, i.size > 100 ? 0.75 : 0.5);
@@ -29590,7 +29590,7 @@ class WP {
29590
29590
  this.startTime = null, this.remaining = r, this.callback = t;
29591
29591
  }
29592
29592
  }
29593
- var FP = () => import("./index-DcxyaROk.js").then((e) => e.domMax), Za = null, OP = () => (Za || (Za = new LP({
29593
+ var FP = () => import("./index-55IZJJ5L.js").then((e) => e.domMax), Za = null, OP = () => (Za || (Za = new LP({
29594
29594
  maxVisibleToasts: 1 / 0
29595
29595
  })), Za), jP = ({
29596
29596
  placement: e = "bottom-right",
@@ -30495,7 +30495,11 @@ function _P(e) {
30495
30495
  }
30496
30496
  const u9 = _t(void 0);
30497
30497
  function eE({ children: e, defaultTheme: t = "light", forcedTheme: r }) {
30498
- const [n, a] = re(r || t), o = K(
30498
+ const [n, a] = re(r || t);
30499
+ oe(() => {
30500
+ !r && t !== n && a(t);
30501
+ }, [t, r, n]);
30502
+ const o = K(
30499
30503
  (s) => {
30500
30504
  r || a(s);
30501
30505
  },
@@ -33411,7 +33415,7 @@ const c0 = (e, t, r = "Wallet is performing an action, please wait...") => {
33411
33415
  const { chainType: s, chainId: l } = v2(), c = Number(BigInt(l || "0").toString()), u = j(() => {
33412
33416
  const m = s?.toLowerCase() === e?.toLowerCase();
33413
33417
  return s === "evm" ? m && c === t?.id : m;
33414
- }, [t?.id, c, e, s]), d = j(() => i?.providers?.[e]?.provider, [i, e]), f = j(() => u ? /* @__PURE__ */ b("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ b(c9, { className: "size-3", color: "white" }) }) : n ? /* @__PURE__ */ b(
33418
+ }, [t?.id, c, e, s]), d = j(() => i?.connectors?.[e]?.provider, [i, e]), f = j(() => u ? /* @__PURE__ */ b("div", { className: "size-5 bg-[#079555] rounded-full flex items-center justify-center", children: /* @__PURE__ */ b(c9, { className: "size-3", color: "white" }) }) : n ? /* @__PURE__ */ b(
33415
33419
  hr,
33416
33420
  {
33417
33421
  size: "sm",
@@ -34785,10 +34789,7 @@ const RI = new q9(), xB = ({ children: e, config: t }) => {
34785
34789
  const r = k9(), n = j(() => {
34786
34790
  const s = t || wr, l = {
34787
34791
  basicLogins: s?.login?.basicLogins || wr.login?.basicLogins || ["email", "externalWallets"],
34788
- socialLogins: s.login?.socialLogins || wr.login?.socialLogins || [
34789
- { type: "google" },
34790
- { type: "x" }
34791
- ]
34792
+ socialLogins: s.login?.socialLogins || wr.login?.socialLogins || [{ type: "google" }, { type: "x" }]
34792
34793
  }, c = l.socialLogins?.find((p) => p.type === "google"), u = l.socialLogins?.find((p) => p.type === "x"), d = {
34793
34794
  projectId: s.walletConnectProjectId || ll.projectId,
34794
34795
  metadata: {
@@ -34806,7 +34807,7 @@ const RI = new q9(), xB = ({ children: e, config: t }) => {
34806
34807
  embeddedWalletConfig: {
34807
34808
  ...Zo,
34808
34809
  stage: s.embeddedWalletConfig?.stage || Zo.stage,
34809
- clientId: wr.clientId,
34810
+ clientId: s?.clientId || wr.clientId,
34810
34811
  googleClientId: c?.clientId || Zo.googleClientId,
34811
34812
  xClientId: u?.clientId || Zo.xClientId
34812
34813
  },
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@
11
11
  }
12
12
  })();
13
13
 
14
- import { am as n, an as s, ao as t, as as o, at as c, ap as r, ar as C, aq as l } from "./index-DLBiNCEM.js";
14
+ import { am as n, an as s, ao as t, as as o, at as c, ap as r, ar as C, aq as l } from "./index-hq2nsTgC.js";
15
15
  export {
16
16
  n as ChainTypeEnum,
17
17
  s as WalletConnectEmbed,
@@ -0,0 +1,5 @@
1
+ import { G as a } from "./features-animation-Qpi9d20_.js";
2
+ var r = a;
3
+ export {
4
+ r as default
5
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dogeos/dogeos-sdk",
3
3
  "private": false,
4
- "version": "3.0.13-beta.0",
4
+ "version": "3.0.13-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -26,8 +26,8 @@
26
26
  "qr-code-styling": "^1.9.2",
27
27
  "qrcode": "^1.5.4",
28
28
  "viem": "2.38.2",
29
- "@tomo-inc/embedded-wallet-providers": "0.0.17",
30
- "@tomo-inc/wallet-adaptor-base": "0.0.19",
29
+ "@tomo-inc/embedded-wallet-providers": "0.0.18",
30
+ "@tomo-inc/wallet-adaptor-base": "0.0.20",
31
31
  "@tomo-inc/tomo-ui": "0.0.11"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,5 +0,0 @@
1
- import { G as a } from "./features-animation-B5P3qL6l.js";
2
- var r = a;
3
- export {
4
- r as default
5
- };