@orderly.network/ui-order-entry 2.11.0 → 3.0.0-beta.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.
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -84,6 +84,10 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
|
|
|
84
84
|
resetErrors: () => void;
|
|
85
85
|
resetMetaState: () => void;
|
|
86
86
|
maxQty: number;
|
|
87
|
+
maxQtys: {
|
|
88
|
+
maxBuy: number;
|
|
89
|
+
maxSell: number;
|
|
90
|
+
};
|
|
87
91
|
estLiqPrice: number | null;
|
|
88
92
|
currentPosition: number;
|
|
89
93
|
estLiqPriceDistance: number | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
|
|
|
84
84
|
resetErrors: () => void;
|
|
85
85
|
resetMetaState: () => void;
|
|
86
86
|
maxQty: number;
|
|
87
|
+
maxQtys: {
|
|
88
|
+
maxBuy: number;
|
|
89
|
+
maxSell: number;
|
|
90
|
+
};
|
|
87
91
|
estLiqPrice: number | null;
|
|
88
92
|
currentPosition: number;
|
|
89
93
|
estLiqPriceDistance: number | null;
|
package/dist/index.js
CHANGED
|
@@ -6128,10 +6128,14 @@ var useOrderEntryScript = (inputs) => {
|
|
|
6128
6128
|
currentFocusInput
|
|
6129
6129
|
};
|
|
6130
6130
|
};
|
|
6131
|
+
var InjectableOrderEntry = ui.injectable(
|
|
6132
|
+
OrderEntry,
|
|
6133
|
+
"OrderEntry"
|
|
6134
|
+
);
|
|
6131
6135
|
var OrderEntryWidget = (props) => {
|
|
6132
6136
|
const state = useOrderEntryScript(props);
|
|
6133
6137
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6134
|
-
|
|
6138
|
+
InjectableOrderEntry,
|
|
6135
6139
|
{
|
|
6136
6140
|
...state,
|
|
6137
6141
|
containerRef: props.containerRef,
|