@orbs-network/spot-react 1.1.17 → 1.1.19

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 { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-BcSkV2cF.js";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-CPm0Hz26.js";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -3246,7 +3246,7 @@ const Ib = async ({
3246
3246
  }) => (await Promise.all([
3247
3247
  s ? Ib({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
3248
3248
  kb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
3249
- ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Mb = "1.1.17", Rb = {
3249
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Mb = "1.1.19", Rb = {
3250
3250
  version: Mb
3251
3251
  }, od = (e) => {
3252
3252
  let t;
@@ -9499,7 +9499,7 @@ async function yi(e, t) {
9499
9499
  });
9500
9500
  return Q === "0x" ? { data: void 0 } : { data: Q };
9501
9501
  } catch (F) {
9502
- const P = H5(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-DlC79THP.js");
9502
+ const P = H5(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-P5VEDV5T.js");
9503
9503
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === L && E)
9504
9504
  return { data: await M(e, { data: P, to: E }) };
9505
9505
  throw C && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new y2({ factory: f }) : lu(F, {
@@ -18915,8 +18915,8 @@ const ch = () => {
18915
18915
  srcToken: t,
18916
18916
  dstToken: n,
18917
18917
  onSubmit: a,
18918
- onSwapSuccess: s,
18919
- onSwapFailed: i,
18918
+ resetState: s,
18919
+ resetCurrentSwap: i,
18920
18920
  isLoading: (e == null ? void 0 : e.status) === Ht.LOADING,
18921
18921
  isSuccess: (e == null ? void 0 : e.status) === Ht.SUCCESS,
18922
18922
  isFailed: (e == null ? void 0 : e.status) === Ht.FAILED,
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -12,8 +12,8 @@ export declare const useSubmitOrderPanel: () => {
12
12
  srcToken: import('..').Token | undefined;
13
13
  dstToken: import('..').Token | undefined;
14
14
  onSubmit: () => Promise<import('../../../spot-ui/src/index.ts').Order>;
15
- onSwapSuccess: () => void;
16
- onSwapFailed: () => void;
15
+ resetState: () => void;
16
+ resetCurrentSwap: () => void;
17
17
  isLoading: boolean;
18
18
  isSuccess: boolean;
19
19
  isFailed: boolean;
@@ -1,4 +1,4 @@
1
- import { J as e, Z as r, V as t, U as i, I as o, M as n, N as u, L as d, K as O, Q as l, o as R, O as S, p, P as T, W as _, G as g, S as E, _ as A, Y as I, X as P, T as m, v as U, a3 as L, A as B, q as y, a9 as W, t as k, x as w, C as x, E as C, D, a6 as M, y as c, r as h, F, z as N, a2 as v, a4 as Q, a5 as b, R as f, a1 as j, a8 as q, a7 as z, w as G, a0 as H, $ as V, j as J, h as K, k as X, m as Y, u as Z, n as $ } from "./index-BcSkV2cF.js";
1
+ import { J as e, Z as r, V as t, U as i, I as o, M as n, N as u, L as d, K as O, Q as l, o as R, O as S, p, P as T, W as _, G as g, S as E, _ as A, Y as I, X as P, T as m, v as U, a3 as L, A as B, q as y, a9 as W, t as k, x as w, C as x, E as C, D, a6 as M, y as c, r as h, F, z as N, a2 as v, a4 as Q, a5 as b, R as f, a1 as j, a8 as q, a7 as z, w as G, a0 as H, $ as V, j as J, h as K, k as X, m as Y, u as Z, n as $ } from "./index-CPm0Hz26.js";
2
2
  export {
3
3
  e as DISCLAIMER_URL,
4
4
  r as Disclaimer,