@orbs-network/spot-react 1.1.28 → 1.1.30

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,6 +1,6 @@
1
1
  declare const _default: {
2
2
  "name": "@orbs-network/spot-react",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "Spot React Components - React components for Spot SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/spot-react.umd.cjs",
@@ -1,8 +1,9 @@
1
- import { Order } from '../../../spot-ui/src/index.ts';
1
+ import { Order, OrderFill } from '../../../spot-ui/src/index.ts';
2
2
  import { Token } from '../types';
3
3
  export declare const useDerivedHistoryOrder: (order: Order, srcToken?: Token, dstToken?: Token) => {
4
4
  original: Order;
5
5
  fills: {
6
+ rawFill: OrderFill;
6
7
  srcToken: Token;
7
8
  dstToken: Token;
8
9
  srcAmount: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4EjB,CAAC"}
1
+ {"version":3,"file":"use-history-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-history-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EACL,SAAS,EACV,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA8BjC,eAAO,MAAM,sBAAsB,GACjC,OAAO,KAAK,EACZ,WAAW,KAAK,EAChB,WAAW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4EjB,CAAC"}
@@ -7,12 +7,10 @@ export declare const useInputWithPercentage: ({ typedValue, tokenDecimals, initi
7
7
  setPercentage: (percentage?: string | null) => void;
8
8
  }) => {
9
9
  amount: string;
10
- amountUI: string;
10
+ typedValue: string | undefined;
11
11
  selectedPercentage: string;
12
12
  onChange: (typed?: string) => void;
13
13
  onPercentageChange: (percent?: string) => void;
14
- isInverted: boolean | undefined;
15
- usd: string;
16
14
  isTypedValue: boolean;
17
15
  };
18
16
  //# sourceMappingURL=use-input-with-percentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-input-with-percentage.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-input-with-percentage.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB,GAAI,mFAOpC;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;;;;uBAuBY,MAAM;mCAQJ,MAAM;;;;CAoDpB,CAAC"}
1
+ {"version":3,"file":"use-input-with-percentage.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-input-with-percentage.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,GAAI,mFAOpC;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,aAAa,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;;;;uBAsBY,MAAM;mCAQJ,MAAM;;CAgCpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-limit-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price-panel.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CA+B5B,CAAC"}
1
+ {"version":3,"file":"use-limit-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-limit-price-panel.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;CAwC5B,CAAC"}
@@ -4,17 +4,17 @@ export declare const useLimitPriceError: (limitPriceWei?: string) => {
4
4
  value: string;
5
5
  } | undefined;
6
6
  export declare const useLimitPrice: () => {
7
+ amountUI: string;
8
+ usd: string;
7
9
  error: {
8
10
  type: InputErrors;
9
11
  value: string;
10
12
  } | undefined;
11
13
  amount: string;
12
- amountUI: string;
14
+ typedValue: string | undefined;
13
15
  selectedPercentage: string;
14
16
  onChange: (typed?: string) => void;
15
17
  onPercentageChange: (percent?: string) => void;
16
- isInverted: boolean | undefined;
17
- usd: string;
18
18
  isTypedValue: boolean;
19
19
  };
20
20
  export declare const useLimitPriceToggle: () => {
@@ -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;;;aA+BxD,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;AAI9G,eAAO,MAAM,kBAAkB,GAAI,gBAAgB,MAAM;;;aA+BxD,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAqCzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAqB/B,CAAC"}
@@ -5,4 +5,17 @@ export declare const usePricePanel: () => {
5
5
  toToken: import('..').Token | undefined;
6
6
  isMarketPrice: boolean | undefined;
7
7
  };
8
+ export declare const usePricePanelAmount: ({ amount, typedValue, amountDecimals, invertedAmountDecimals, amountUsd, invertedAmountUsd, isInverted, }: {
9
+ amount?: string;
10
+ typedValue?: string;
11
+ amountDecimals?: number;
12
+ invertedAmountDecimals?: number;
13
+ amountUsd?: string;
14
+ invertedAmountUsd?: string;
15
+ isInverted?: boolean;
16
+ }) => {
17
+ amount: string;
18
+ amountUI: string;
19
+ usd: string;
20
+ };
8
21
  //# sourceMappingURL=use-price-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-price-panel.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;CAwBzB,CAAC"}
1
+ {"version":3,"file":"use-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-price-panel.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa;;;;;;CA0BzB,CAAC;AAOF,eAAO,MAAM,mBAAmB,GAAI,2GAQjC;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;CA8BA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-trigger-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price-panel.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CA8B9B,CAAC"}
1
+ {"version":3,"file":"use-trigger-price-panel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-trigger-price-panel.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAuC9B,CAAC"}
@@ -5,6 +5,8 @@ export declare const useTriggerAmountPerChunk: (triggerPrice?: string) => {
5
5
  usd: string;
6
6
  };
7
7
  export declare const useTriggerPrice: () => {
8
+ amountUI: string;
9
+ usd: string;
8
10
  error: {
9
11
  type: InputErrors;
10
12
  value: string;
@@ -13,12 +15,10 @@ export declare const useTriggerPrice: () => {
13
15
  pricePerChunkUI: string;
14
16
  pricePerChunkUsd: string;
15
17
  amount: string;
16
- amountUI: string;
18
+ typedValue: string | undefined;
17
19
  selectedPercentage: string;
18
20
  onChange: (typed?: string) => void;
19
21
  onPercentageChange: (percent?: string) => void;
20
- isInverted: boolean | undefined;
21
- usd: string;
22
22
  isTypedValue: boolean;
23
23
  };
24
24
  //# sourceMappingURL=use-trigger-price.d.ts.map
@@ -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;AAoC7H,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;;;;;;;;;;;;;;;;CA0C3B,CAAC"}