@orbs-network/spot-react 1.0.2 → 1.1.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.
Files changed (27) hide show
  1. package/dist/{ccip-BktNSwP8.js → ccip-Iir5d-bD.js} +1 -1
  2. package/dist/{index-Ij0jPMOb.js → index-vqnb3pZa.js} +4937 -4947
  3. package/dist/spot-react/package.json.d.ts +1 -1
  4. package/dist/spot-react/src/hooks/order-hooks.d.ts +7 -1
  5. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
  6. package/dist/spot-react/src/hooks/use-duration.d.ts +0 -2
  7. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -1
  8. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +0 -2
  9. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -1
  10. package/dist/spot-react/src/hooks/use-history-order.d.ts +4 -8
  11. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -1
  12. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -1
  13. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +0 -1
  14. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +1 -1
  15. package/dist/spot-react/src/hooks/use-limit-price.d.ts +0 -2
  16. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
  17. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +0 -1
  18. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +1 -1
  19. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +0 -1
  20. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +1 -1
  21. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +0 -1
  22. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
  23. package/dist/spot-react.js +1 -1
  24. package/dist/spot-react.umd.cjs +45 -45
  25. package/dist/spot-ui/src/lib/types.d.ts +16 -17
  26. package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
  27. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -7,7 +7,13 @@ export declare const useOrderLimitPrice: (srcToken?: Token, dstToken?: Token, or
7
7
  export declare const useOrderTriggerPriceRate: (srcToken?: Token, dstToken?: Token, order?: Order) => string | undefined;
8
8
  export declare const useOrderAvgExecutionPrice: (srcToken?: Token, dstToken?: Token, order?: Order) => string | undefined;
9
9
  export declare const useOrderHistoryPanel: () => {
10
- orders: Order[];
10
+ orders: {
11
+ all: Order[];
12
+ open: Order[];
13
+ completed: Order[];
14
+ cancelled: Order[];
15
+ expired: Order[];
16
+ };
11
17
  isLoading: boolean;
12
18
  isRefetching: boolean;
13
19
  refetchOrders: () => Promise<Order[] | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"order-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/order-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEL,SAAS,EAIV,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC,eAAO,MAAM,YAAY,iBAoBxB,CAAC;AAWF,eAAO,MAAM,cAAc,gBAKf,KAAK,SAShB,CAAC;AAwCF,eAAO,MAAM,cAAc,sEAmC1B,CAAC;AAIF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAUd,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAMd,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAWd,CAAC;AAIF,eAAO,MAAM,oBAAoB;;;;;CAmBhC,CAAC"}
1
+ {"version":3,"file":"order-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/order-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEL,SAAS,EAIV,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,eAAO,MAAM,YAAY,iBAoBxB,CAAC;AAgBF,eAAO,MAAM,cAAc,gBAKf,KAAK,SAShB,CAAC;AAsCF,eAAO,MAAM,cAAc,sEAmC1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAUd,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAMd,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,WAAW,KAAK,EAChB,WAAW,KAAK,EAChB,QAAQ,KAAK,uBAWd,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAwBhC,CAAC"}
@@ -5,7 +5,6 @@ export declare const useDuration: () => {
5
5
  error: {
6
6
  type: InputErrors;
7
7
  value: number;
8
- message: string;
9
8
  args: {
10
9
  duration: string;
11
10
  };
@@ -20,7 +19,6 @@ export declare const useDurationPanel: () => {
20
19
  error: {
21
20
  type: InputErrors;
22
21
  value: number;
23
- message: string;
24
22
  args: {
25
23
  duration: string;
26
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-duration.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-duration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiC7I,eAAO,MAAM,WAAW;;iCAWqB,YAAY;;;;;;;;;CAMxD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;8BARgB,YAAY;;2BAY7C,MAAM;yBAOP,QAAQ;;;;;;;;;CAclB,CAAC"}
1
+ {"version":3,"file":"use-duration.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-duration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiC7I,eAAO,MAAM,WAAW;;iCAWqB,YAAY;;;;;;;;CAMxD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;8BARgB,YAAY;;2BAY7C,MAAM;yBAOP,QAAQ;;;;;;;;CAclB,CAAC"}
@@ -6,7 +6,6 @@ export declare const useFillDelay: () => {
6
6
  error: {
7
7
  type: InputErrors;
8
8
  value: number;
9
- message: string;
10
9
  args: {
11
10
  fillDelay: string;
12
11
  };
@@ -22,7 +21,6 @@ export declare const useFillDelayPanel: () => {
22
21
  error: {
23
22
  type: InputErrors;
24
23
  value: number;
25
- message: string;
26
24
  args: {
27
25
  fillDelay: string;
28
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-fill-delay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-fill-delay.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIzG,OAAO,EAAE,WAAW,EAAmB,MAAM,IAAI,CAAC;AAkBlD,eAAO,MAAM,YAAY;;+BASkB,YAAY;;;;;;;;;;CAOtD,CAAC;AAEF,eAAO,MAAM,iBAAiB;2BAEc,MAAM;yBACR,QAAQ;+BAZP,YAAY;;;;;;;;;;;CAsBtD,CAAC"}
1
+ {"version":3,"file":"use-fill-delay.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-fill-delay.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIzG,OAAO,EAAE,WAAW,EAAmB,MAAM,IAAI,CAAC;AAkBlD,eAAO,MAAM,YAAY;;+BASkB,YAAY;;;;;;;;;CAOtD,CAAC;AAEF,eAAO,MAAM,iBAAiB;2BAEc,MAAM;yBACR,QAAQ;+BAZP,YAAY;;;;;;;;;;CAsBtD,CAAC"}
@@ -22,28 +22,24 @@ export declare const useDerivedHistoryOrder: (order: Order, srcToken?: Token, ds
22
22
  recipient: string;
23
23
  srcAmount: string;
24
24
  srcAmountUI: string;
25
- srcAmountUsd: string;
26
- dstAmount: string;
27
- dstAmountUI: string;
28
- dstAmountUsd: string;
29
25
  limitPrice: string;
30
26
  limitPriceUI: string;
31
- limitPriceUsd: string;
32
27
  sizePerTrade: string;
33
28
  sizePerTradeUI: string;
34
29
  minDestAmountPerTrade: string;
35
30
  minDestAmountPerTradeUI: string;
36
31
  dstMinAmount: string;
37
32
  dstMinAmountUI: string;
38
- dstMinAmountUsd: string;
39
33
  triggerPrice: string;
40
34
  triggerPriceUI: string;
41
35
  id: string;
42
36
  amountInFilled: string;
37
+ amountInFilledUI: string;
43
38
  amountOutFilled: string;
44
- amountOutFilledToken: Token | undefined;
39
+ amountOutFilledUI: string;
45
40
  progress: number;
46
- executionPrice: string | undefined;
41
+ executionPrice: string;
42
+ executionPriceUI: string | undefined;
47
43
  version: number;
48
44
  } | undefined;
49
45
  //# sourceMappingURL=use-history-order.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-history-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-history-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEN,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA6BjC,eAAO,MAAM,sBAAsB,GACjC,OAAO,KAAK,EACZ,WAAW,KAAK,EAChB,WAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2EjB,CAAC"}
1
+ {"version":3,"file":"use-history-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-history-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEN,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA6BjC,eAAO,MAAM,sBAAsB,GACjC,OAAO,KAAK,EACZ,WAAW,KAAK,EAChB,WAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4EjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-input-errors.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-input-errors.ts"],"names":[],"mappings":"AAyBA,wBAAgB,cAAc,2DAuD7B"}
1
+ {"version":3,"file":"use-input-errors.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-input-errors.ts"],"names":[],"mappings":"AAwBA,wBAAgB,cAAc,2DAsD7B"}
@@ -4,7 +4,6 @@ export declare const useLimitPricePanel: () => {
4
4
  amountPerChunkUsd: string;
5
5
  error: {
6
6
  type: import('../../../spot-ui/src/index.ts').InputErrors;
7
- message: string;
8
7
  value: string;
9
8
  } | undefined;
10
9
  onChange: (typed?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-limit-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price-panel.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAmC5B,CAAC"}
1
+ {"version":3,"file":"use-limit-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price-panel.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAmC5B,CAAC"}
@@ -1,13 +1,11 @@
1
1
  import { InputErrors } from '../../../spot-ui/src/index.ts';
2
2
  export declare const useLimitPriceError: (limitPriceWei?: string) => {
3
3
  type: InputErrors;
4
- message: string;
5
4
  value: string;
6
5
  } | undefined;
7
6
  export declare const useLimitPrice: () => {
8
7
  error: {
9
8
  type: InputErrors;
10
- message: string;
11
9
  value: string;
12
10
  } | undefined;
13
11
  amountWei: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-limit-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price.ts"],"names":[],"mappings":"AAQA,OAAO,EAA4D,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG9G,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,MAAM;;;;aAkCxD,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAiCzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAqB/B,CAAC"}
1
+ {"version":3,"file":"use-limit-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price.ts"],"names":[],"mappings":"AAQA,OAAO,EAA4D,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG9G,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,MAAM;;;aA+BxD,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAiCzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAqB/B,CAAC"}
@@ -25,7 +25,6 @@ export declare const useSubmitOrderPanel: () => {
25
25
  };
26
26
  export declare const useSubmitOrderButton: () => {
27
27
  disabled: boolean;
28
- text: string;
29
28
  loading: boolean;
30
29
  };
31
30
  //# sourceMappingURL=use-submit-order-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CA0B/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;CA6ChC,CAAC"}
1
+ {"version":3,"file":"use-submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CA0B/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;CAsChC,CAAC"}
@@ -5,7 +5,6 @@ export declare const useTriggerPricePanel: () => {
5
5
  error: {
6
6
  type: import('../../../spot-ui/src/index.ts').InputErrors;
7
7
  value: string;
8
- message: string;
9
8
  } | undefined;
10
9
  onChange: (typed?: string) => void;
11
10
  onPercentageChange: (percent?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-trigger-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price-panel.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC"}
1
+ {"version":3,"file":"use-trigger-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price-panel.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CAkC9B,CAAC"}
@@ -8,7 +8,6 @@ export declare const useTriggerPrice: () => {
8
8
  error: {
9
9
  type: InputErrors;
10
10
  value: string;
11
- message: string;
12
11
  } | undefined;
13
12
  pricePerChunkWei: string | undefined;
14
13
  pricePerChunkUI: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-trigger-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2E,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAuC7H,eAAO,MAAM,wBAAwB,GAAI,eAAe,MAAM;;;;CAiB7D,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAsC3B,CAAC"}
1
+ {"version":3,"file":"use-trigger-price.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2E,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAoC7H,eAAO,MAAM,wBAAwB,GAAI,eAAe,MAAM;;;;CAiB7D,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAsC3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { D as e, a8 as r, af as t, ae as i, V as u, O as n, ab as o, aa as d, a9 as l, ac as O, Q as P, P as S, R as T, U as m, ag as p, a7 as R, S as g, aj as A, ai as E, ah as _, T as I, Z as D, ao as U, a2 as c, W as y, au as C, Y as L, $ as B, a3 as k, a5 as F, a4 as M, ar as b, a0 as h, X as W, a6 as w, a1 as x, an as N, ap as v, aq as f, ad as j, am as q, at as H, as as Q, _ as z, al as G, ak as V, w as J, I as K, E as X, z as Y, L as Z, J as $, A as aa, y as sa, q as ea, m as ra, h as ta, K as ia, j as ua, G as na, t as oa, r as da, k as la, M as Oa, o as Pa, v as Sa, F as Ta, x as ma, C as pa, p as Ra, N as ga, u as Aa, n as Ea } from "./index-Ij0jPMOb.js";
1
+ import { D as e, a8 as r, af as t, ae as i, V as u, O as n, ab as o, aa as d, a9 as l, ac as O, Q as P, P as S, R as T, U as m, ag as p, a7 as R, S as g, aj as A, ai as E, ah as _, T as I, Z as D, ao as U, a2 as c, W as y, au as C, Y as L, $ as B, a3 as k, a5 as F, a4 as M, ar as b, a0 as h, X as W, a6 as w, a1 as x, an as N, ap as v, aq as f, ad as j, am as q, at as H, as as Q, _ as z, al as G, ak as V, w as J, I as K, E as X, z as Y, L as Z, J as $, A as aa, y as sa, q as ea, m as ra, h as ta, K as ia, j as ua, G as na, t as oa, r as da, k as la, M as Oa, o as Pa, v as Sa, F as Ta, x as ma, C as pa, p as Ra, N as ga, u as Aa, n as Ea } from "./index-vqnb3pZa.js";
2
2
  export {
3
3
  e as DEFAULT_DURATIONS,
4
4
  r as DISCLAIMER_URL,