@orbs-network/spot-react 1.1.15 → 1.1.16

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-DaTZVxOT.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-l4gCjUFb.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;
@@ -1189,7 +1189,7 @@ const ge = "0x0000000000000000000000000000000000000000", He = {
1189
1189
  }, p1 = "https://order-sink-dev.orbs.network", f1 = "https://order-sink.orbs.network", m1 = "https://order-sink-v2.orbs.network", vl = Cl.version.split(".")[0], Vp = (e) => {
1190
1190
  const t = Number(vl) >= 2;
1191
1191
  return e ? p1 : t ? m1 : f1;
1192
- }, gc = 300 * 1e3, _o = 365 * 24 * 60 * 60 * 1e3, td = 300 * 1e3, h1 = new Date(
1192
+ }, gc = 300 * 1e3, _o = 1440 * 60 * 60 * 1e3, td = 300 * 1e3, h1 = new Date(
1193
1193
  gc
1194
1194
  ).getMinutes(), Ri = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, kt = "https://hub.orbs.network/api/apikey/subgraphs/id", b1 = {
1195
1195
  [He.eth.id]: `${kt}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
@@ -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.15", Rb = {
3249
+ ]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Mb = "1.1.16", 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-Dnxpt2Dp.js");
9502
+ const P = H5(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-BCkIDgv2.js");
9503
9503
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === L && C)
9504
9504
  return { data: await M(e, { data: P, to: C }) };
9505
9505
  throw v && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new y2({ factory: f }) : lu(F, {
@@ -19184,10 +19184,10 @@ const ch = () => {
19184
19184
  }, uh = kl(null), gE = ({
19185
19185
  children: e
19186
19186
  }) => {
19187
- const t = tw(), n = aw(), r = rw(), s = dw(), a = pw(), o = Bi(), i = fw(), c = mw(), l = qm(), d = uE(), p = hE(), f = sE(), m = lE(), y = bE(), x = xE(), S = oh(), B = ch(), k = lh(), U = W(
19187
+ const t = tw(), n = aw(), r = rw(), s = dw(), a = pw(), o = Bi(), i = fw(), c = mw(), l = qm(), d = uE(), p = hE(), f = sE(), m = lE(), y = bE(), x = xE(), S = oh(), B = ch(), k = lh(), { module: U } = J(), C = W(
19188
19188
  () => ({ cancelOrder: x, signOrder: S, submitOrder: B, refetchUntilStatusSynced: k }),
19189
19189
  [x, S, B, k]
19190
- ), C = {
19190
+ ), D = {
19191
19191
  tradesAmountPanel: t,
19192
19192
  durationPanel: n,
19193
19193
  fillDelayPanel: r,
@@ -19202,9 +19202,10 @@ const ch = () => {
19202
19202
  orderHistoryPanel: f,
19203
19203
  orderExecutionPanel: m,
19204
19204
  supportedChains: y,
19205
- mutations: U
19205
+ mutations: C,
19206
+ module: U
19206
19207
  };
19207
- return /* @__PURE__ */ Bt(uh.Provider, { value: C, children: e });
19208
+ return /* @__PURE__ */ Bt(uh.Provider, { value: D, children: e });
19208
19209
  }, wO = () => {
19209
19210
  const e = jp(uh);
19210
19211
  if (e === null)
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -14,6 +14,7 @@ import { useOrderHistoryPanel } from './order-hooks';
14
14
  import { usePartnerChains } from './use-partner-chains';
15
15
  import { useCancelOrderMutation, useCancelOrderRefetchUntilStatusSynced } from './use-cancel-order';
16
16
  import { useSignOrder, useSubmitOrderMutation } from './use-submit-order';
17
+ import { Module } from '../../../spot-ui/src/index.ts';
17
18
  type SpotData = {
18
19
  tradesAmountPanel: ReturnType<typeof useTradesPanel>;
19
20
  durationPanel: ReturnType<typeof useDurationPanel>;
@@ -29,6 +30,7 @@ type SpotData = {
29
30
  orderExecutionPanel: ReturnType<typeof useSubmitOrderPanel>;
30
31
  derivedFormData: ReturnType<typeof useFormData>;
31
32
  supportedChains: ReturnType<typeof usePartnerChains>;
33
+ module: Module;
32
34
  mutations: {
33
35
  cancelOrder: ReturnType<typeof useCancelOrderMutation>;
34
36
  signOrder: ReturnType<typeof useSignOrder>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-spot.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-spot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAA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AC,OAAO,gBAAgB,CAAC,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE;QACT,WAAW,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;QACvD,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;QAC3C,WAAW,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;QACvD,wBAAwB,EAAE,UAAU,CAClC,OAAO,sCAAsC,CAC9C,CAAC;KACH,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,eAE9B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAsDA,CAAC;AAEF,eAAO,MAAM,OAAO,gBAMnB,CAAC"}
@@ -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-DaTZVxOT.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-l4gCjUFb.js";
2
2
  export {
3
3
  e as DISCLAIMER_URL,
4
4
  r as Disclaimer,