@ensofinance/checkout-widget 0.0.2 → 0.0.3

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.
@@ -16,10 +16,11 @@ var uu = (t, e, n, r) => ({
16
16
  import { jsxs as de, jsx as D, Fragment as Cr } from "react/jsx-runtime";
17
17
  import * as Ye from "react";
18
18
  import Su, { forwardRef as ht, useContext as Qi, createContext as gy, useMemo as et, memo as JT, createElement as uh, Children as my, isValidElement as yy, cloneElement as $E, useRef as Fn, useLayoutEffect as ZT, useEffect as pt, useState as Ue, useCallback as jr, useId as HE, useSyncExternalStore as eP, Fragment as tP } from "react";
19
- import { useAccount as Xn, useBalance as nP, useReadContract as WE, useSendCalls as rP, useCapabilities as iP, useWalletClient as oP, useChainId as GE, useSwitchChain as jE, useWaitForTransactionReceipt as KE, useSignMessage as sP } from "wagmi";
20
- import aP, { flushSync as by, createPortal as lP } from "react-dom";
21
- import cP from "react-dom/server";
19
+ import { useAccount as Xn, useBalance as nP, useReadContract as WE, useWalletClient as rP, useChainId as GE, useSwitchChain as jE, useWaitForTransactionReceipt as KE, useSignMessage as iP } from "wagmi";
20
+ import oP, { flushSync as by, createPortal as sP } from "react-dom";
21
+ import aP from "react-dom/server";
22
22
  import { useQuery as Za, useQueryClient as qE } from "@tanstack/react-query";
23
+ import { useSendCalls as lP, useCapabilities as cP } from "wagmi/experimental";
23
24
  function YE(t) {
24
25
  var e = /* @__PURE__ */ Object.create(null);
25
26
  return function(n) {
@@ -2475,7 +2476,7 @@ const Gg = (t) => {
2475
2476
  return t.has(r) || t.set(r, Gg(r)), t.get(r);
2476
2477
  }
2477
2478
  });
2478
- }, Xi = _N(), [Bq, TA] = Zc({
2479
+ }, Xi = _N(), [Mq, TA] = Zc({
2479
2480
  name: "LocaleContext",
2480
2481
  hookName: "useLocaleContext",
2481
2482
  providerName: "<LocaleProvider />",
@@ -5736,7 +5737,7 @@ Ne()([
5736
5737
  "required",
5737
5738
  "value"
5738
5739
  ]);
5739
- const P6 = dS.extendWith("group"), [Mq, R6] = Zc({
5740
+ const P6 = dS.extendWith("group"), [Lq, R6] = Zc({
5740
5741
  name: "FieldContext",
5741
5742
  hookName: "useFieldContext",
5742
5743
  providerName: "<FieldProvider />",
@@ -8964,7 +8965,7 @@ const S8 = (t) => {
8964
8965
  });
8965
8966
  }, [t.container]), o || n) return /* @__PURE__ */ D(Cr, { children: e });
8966
8967
  const a = r != null ? r : k8(s);
8967
- return /* @__PURE__ */ D(Cr, { children: my.map(e, (c) => lP(c, a)) });
8968
+ return /* @__PURE__ */ D(Cr, { children: my.map(e, (c) => sP(c, a)) });
8968
8969
  }, k8 = (t) => {
8969
8970
  const e = t == null ? void 0 : t(), n = e.getRootNode();
8970
8971
  return Lc(n) ? n : qr(e).body;
@@ -22062,7 +22063,7 @@ var b1;
22062
22063
  function _V() {
22063
22064
  if (b1) return gf;
22064
22065
  b1 = 1, Object.defineProperty(gf, "__esModule", { value: !0 });
22065
- var t = Su, e = PV, n = RV, r = aP, i = cP, o = /* @__PURE__ */ FV();
22066
+ var t = Su, e = PV, n = RV, r = oP, i = aP, o = /* @__PURE__ */ FV();
22066
22067
  function s(f) {
22067
22068
  return f && typeof f == "object" && "default" in f ? f : { default: f };
22068
22069
  }
@@ -25150,7 +25151,7 @@ const B1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
25150
25151
  chainId: e,
25151
25152
  calls: n
25152
25153
  }) => {
25153
- const { sendCalls: r } = rP(), { data: i } = iP(), o = !1, s = oP();
25154
+ const { sendCalls: r } = lP(), { data: i } = cP(), o = !1, s = rP();
25154
25155
  console.log(i, o);
25155
25156
  const a = jr(
25156
25157
  async (c, u) => {
@@ -52271,7 +52272,7 @@ const tm = ({
52271
52272
  setStep: t,
52272
52273
  setUserOp: e
52273
52274
  }) => {
52274
- const { chainIdIn: n } = yi(), { routeLoading: r, usdAmountIn: i, routeData: o } = iu(), { signMessageAsync: s } = sP(), { address: a } = Xn(), [l, c] = Ue(!1), u = async () => {
52275
+ const { chainIdIn: n } = yi(), { routeLoading: r, usdAmountIn: i, routeData: o } = iu(), { signMessageAsync: s } = iP(), { address: a } = Xn(), [l, c] = Ue(!1), u = async () => {
52275
52276
  if (!o || o != null && o.error) {
52276
52277
  console.error("No valid router data available");
52277
52278
  return;
@@ -52871,7 +52872,7 @@ const tm = ({
52871
52872
  ] }) })
52872
52873
  }
52873
52874
  );
52874
- }, Hq = ({
52875
+ }, Wq = ({
52875
52876
  config: t,
52876
52877
  setIsActive: e,
52877
52878
  isActive: n,
@@ -52884,6 +52885,6 @@ const tm = ({
52884
52885
  };
52885
52886
  export {
52886
52887
  kq as Checkout,
52887
- Hq as CheckoutModal
52888
+ Wq as CheckoutModal
52888
52889
  };
52889
52890
  //# sourceMappingURL=checkout-widget.es.js.map