@dhedge/trading-widget 3.18.1 → 3.18.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/trading-widget",
3
- "version": "3.18.1",
3
+ "version": "3.18.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,5 +11,5 @@ export declare const useValidDepositButton: () => {
11
11
  confirmHighSlippage: () => void;
12
12
  slippageToBeUsed: number;
13
13
  maintenance: boolean | undefined;
14
- isBatchContractWritesSupported: boolean;
14
+ isBatchContractWritesTrading: boolean;
15
15
  };
@@ -1,3 +1,4 @@
1
+ import type { ChangeEvent } from 'react';
1
2
  import type { ThemeType } from 'trading-widget/types';
2
3
  export interface WidgetInputProps {
3
4
  label: string;
@@ -22,5 +23,5 @@ export declare const useWidgetInput: ({ displayCalculatedValue, assetInput, asse
22
23
  autoFocus: boolean;
23
24
  onContainerClick: () => void;
24
25
  onMaxBalanceClick: () => void;
25
- onInputChange: (_formatted: string, raw: string) => void;
26
+ onInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
26
27
  };