@orderly.network/ui-order-entry 2.7.4-alpha.1 → 2.8.0-alpha.0

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/index.d.mts CHANGED
@@ -10,20 +10,22 @@ declare enum InputType {
10
10
  PRICE = 1,// price input focus
11
11
  TRIGGER_PRICE = 2,// trigger price input focus
12
12
  QUANTITY = 3,// quantity input focus
13
- TOTAL = 4,// total input focus
13
+ QUANTITY_SLIDER = 4,// quantity slider input focus
14
+ TOTAL = 5,// total input focus
15
+ MARGIN = 6,// margin input focus
14
16
  /**
15
17
  * Scaled order
16
18
  */
17
- START_PRICE = 5,// scaled order start price input focus
18
- END_PRICE = 6,// scaled order end price input focus
19
- TOTAL_ORDERS = 7,// scaled order total orders input focus
20
- SKEW = 8,// scaled order skew input focus
19
+ START_PRICE = 7,// scaled order start price input focus
20
+ END_PRICE = 8,// scaled order end price input focus
21
+ TOTAL_ORDERS = 9,// scaled order total orders input focus
22
+ SKEW = 10,// scaled order skew input focus
21
23
  /**
22
24
  * Trailing stop
23
25
  */
24
- ACTIVATED_PRICE = 9,// trailing stop activated price input focus
25
- CALLBACK_VALUE = 10,// trailing stop callback value input focus
26
- CALLBACK_RATE = 11
26
+ ACTIVATED_PRICE = 11,// trailing stop activated price input focus
27
+ CALLBACK_VALUE = 12,// trailing stop callback value input focus
28
+ CALLBACK_RATE = 13
27
29
  }
28
30
 
29
31
  declare enum BBOStatus {
@@ -48,7 +50,6 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
48
50
  currentLeverage: number | null;
49
51
  tpslSwitch: any;
50
52
  setTpslSwitch: (state: boolean) => void;
51
- setMaxQty: () => void;
52
53
  symbolInfo: _orderly_network_types.API.SymbolExt;
53
54
  onFocus: (this: unknown, type: InputType) => (_: react.FocusEvent) => void;
54
55
  onBlur: (this: unknown, type: InputType) => (_: react.FocusEvent) => void;
@@ -57,6 +58,7 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
57
58
  priceInputContainerWidth: number;
58
59
  triggerPriceInputRef: react.MutableRefObject<HTMLInputElement | null>;
59
60
  activatedPriceInputRef: react.MutableRefObject<HTMLInputElement | null>;
61
+ lastQuantityInputType: react.MutableRefObject<InputType>;
60
62
  canTrade: boolean;
61
63
  bboStatus: BBOStatus;
62
64
  bboType: any;
@@ -135,6 +137,8 @@ declare const AdditionalInfo: FC<AdditionalInfoProps>;
135
137
 
136
138
  declare const LTVRiskTooltipWidget: react__default.FC;
137
139
 
138
- declare const FeesWidget: react__default.FC;
140
+ declare const FeesWidget: react__default.FC<{
141
+ symbol: string;
142
+ }>;
139
143
 
140
144
  export { AdditionalInfo, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, useOrderEntryScript };
package/dist/index.d.ts CHANGED
@@ -10,20 +10,22 @@ declare enum InputType {
10
10
  PRICE = 1,// price input focus
11
11
  TRIGGER_PRICE = 2,// trigger price input focus
12
12
  QUANTITY = 3,// quantity input focus
13
- TOTAL = 4,// total input focus
13
+ QUANTITY_SLIDER = 4,// quantity slider input focus
14
+ TOTAL = 5,// total input focus
15
+ MARGIN = 6,// margin input focus
14
16
  /**
15
17
  * Scaled order
16
18
  */
17
- START_PRICE = 5,// scaled order start price input focus
18
- END_PRICE = 6,// scaled order end price input focus
19
- TOTAL_ORDERS = 7,// scaled order total orders input focus
20
- SKEW = 8,// scaled order skew input focus
19
+ START_PRICE = 7,// scaled order start price input focus
20
+ END_PRICE = 8,// scaled order end price input focus
21
+ TOTAL_ORDERS = 9,// scaled order total orders input focus
22
+ SKEW = 10,// scaled order skew input focus
21
23
  /**
22
24
  * Trailing stop
23
25
  */
24
- ACTIVATED_PRICE = 9,// trailing stop activated price input focus
25
- CALLBACK_VALUE = 10,// trailing stop callback value input focus
26
- CALLBACK_RATE = 11
26
+ ACTIVATED_PRICE = 11,// trailing stop activated price input focus
27
+ CALLBACK_VALUE = 12,// trailing stop callback value input focus
28
+ CALLBACK_RATE = 13
27
29
  }
28
30
 
29
31
  declare enum BBOStatus {
@@ -48,7 +50,6 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
48
50
  currentLeverage: number | null;
49
51
  tpslSwitch: any;
50
52
  setTpslSwitch: (state: boolean) => void;
51
- setMaxQty: () => void;
52
53
  symbolInfo: _orderly_network_types.API.SymbolExt;
53
54
  onFocus: (this: unknown, type: InputType) => (_: react.FocusEvent) => void;
54
55
  onBlur: (this: unknown, type: InputType) => (_: react.FocusEvent) => void;
@@ -57,6 +58,7 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
57
58
  priceInputContainerWidth: number;
58
59
  triggerPriceInputRef: react.MutableRefObject<HTMLInputElement | null>;
59
60
  activatedPriceInputRef: react.MutableRefObject<HTMLInputElement | null>;
61
+ lastQuantityInputType: react.MutableRefObject<InputType>;
60
62
  canTrade: boolean;
61
63
  bboStatus: BBOStatus;
62
64
  bboType: any;
@@ -135,6 +137,8 @@ declare const AdditionalInfo: FC<AdditionalInfoProps>;
135
137
 
136
138
  declare const LTVRiskTooltipWidget: react__default.FC;
137
139
 
138
- declare const FeesWidget: react__default.FC;
140
+ declare const FeesWidget: react__default.FC<{
141
+ symbol: string;
142
+ }>;
139
143
 
140
144
  export { AdditionalInfo, FeesWidget, LTVRiskTooltipWidget, OrderConfirmDialog, OrderEntry, OrderEntryWidget, useOrderEntryScript };