@orbs-network/spot-react 1.1.29 → 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.
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +1 -3
- package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-limit-price.d.ts +3 -3
- package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-price-panel.d.ts +13 -0
- package/dist/spot-react/src/hooks/use-price-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trigger-price.d.ts +3 -3
- package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
- package/dist/spot-react.js +1818 -1780
- package/dist/spot-react.umd.cjs +9 -9
- package/dist/spot-ui/src/lib/types.d.ts +2 -1
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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":"
|
|
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;;;;;;;;;;;;;;;;;;;;
|
|
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
|
-
|
|
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;
|
|
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":"
|
|
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;;;;;;;;;;;;;;;;;;;;;
|
|
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
|
-
|
|
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;;;;;;;;;;;;;;;;
|
|
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"}
|