@orderly.network/trading 3.0.4-alpha.1 → 3.0.4-alpha.3
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 +127 -70
- package/dist/index.d.ts +127 -70
- package/dist/index.js +66 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -21
package/dist/index.js
CHANGED
|
@@ -2211,7 +2211,7 @@ var init_listBox_desktop = __esm({
|
|
|
2211
2211
|
};
|
|
2212
2212
|
}
|
|
2213
2213
|
});
|
|
2214
|
-
var DesktopAsks;
|
|
2214
|
+
var DesktopAsks, InjectableDesktopAsks;
|
|
2215
2215
|
var init_asks_desktop = __esm({
|
|
2216
2216
|
"src/components/desktop/orderBook/asks.desktop.tsx"() {
|
|
2217
2217
|
init_types();
|
|
@@ -2237,9 +2237,13 @@ var init_asks_desktop = __esm({
|
|
|
2237
2237
|
}
|
|
2238
2238
|
);
|
|
2239
2239
|
};
|
|
2240
|
+
InjectableDesktopAsks = ui.injectable(
|
|
2241
|
+
DesktopAsks,
|
|
2242
|
+
"OrderBook.Desktop.Asks"
|
|
2243
|
+
);
|
|
2240
2244
|
}
|
|
2241
2245
|
});
|
|
2242
|
-
var DesktopBids;
|
|
2246
|
+
var DesktopBids, InjectableDesktopBids;
|
|
2243
2247
|
var init_bids_desktop = __esm({
|
|
2244
2248
|
"src/components/desktop/orderBook/bids.desktop.tsx"() {
|
|
2245
2249
|
init_types();
|
|
@@ -2264,6 +2268,10 @@ var init_bids_desktop = __esm({
|
|
|
2264
2268
|
}
|
|
2265
2269
|
);
|
|
2266
2270
|
};
|
|
2271
|
+
InjectableDesktopBids = ui.injectable(
|
|
2272
|
+
DesktopBids,
|
|
2273
|
+
"OrderBook.Desktop.Bids"
|
|
2274
|
+
);
|
|
2267
2275
|
}
|
|
2268
2276
|
});
|
|
2269
2277
|
var BuySellRatioSettings, MoreIcon;
|
|
@@ -2927,7 +2935,14 @@ var init_index_desktop = __esm({
|
|
|
2927
2935
|
)
|
|
2928
2936
|
] }),
|
|
2929
2937
|
/* @__PURE__ */ jsxRuntime.jsx(DesktopHeader, { quote, base }),
|
|
2930
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2938
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2939
|
+
InjectableDesktopAsks,
|
|
2940
|
+
{
|
|
2941
|
+
data: [...props.asks],
|
|
2942
|
+
symbolInfo: props.symbolInfo,
|
|
2943
|
+
depth: props.activeDepth
|
|
2944
|
+
}
|
|
2945
|
+
),
|
|
2931
2946
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2932
2947
|
DesktopMarkPrice,
|
|
2933
2948
|
{
|
|
@@ -2938,7 +2953,14 @@ var init_index_desktop = __esm({
|
|
|
2938
2953
|
symbolInfo: props.symbolInfo
|
|
2939
2954
|
}
|
|
2940
2955
|
),
|
|
2941
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2956
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2957
|
+
InjectableDesktopBids,
|
|
2958
|
+
{
|
|
2959
|
+
data: [...props.bids],
|
|
2960
|
+
symbolInfo: props.symbolInfo,
|
|
2961
|
+
depth: props.activeDepth
|
|
2962
|
+
}
|
|
2963
|
+
),
|
|
2942
2964
|
showBuySellRatio && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2943
2965
|
exports.BuySellRatioBar,
|
|
2944
2966
|
{
|
|
@@ -6918,17 +6940,10 @@ var Account = (props) => {
|
|
|
6918
6940
|
}
|
|
6919
6941
|
);
|
|
6920
6942
|
};
|
|
6921
|
-
ui.
|
|
6922
|
-
name: "mobile-account-menu",
|
|
6923
|
-
scope: ["*"],
|
|
6924
|
-
positions: [ui.ExtensionPositionEnum.MobileAccountMenu],
|
|
6925
|
-
builder: useAccountScript,
|
|
6926
|
-
__isInternal: true
|
|
6927
|
-
})((props) => {
|
|
6928
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Account, { ...props });
|
|
6929
|
-
});
|
|
6943
|
+
var InjectableAccount = ui.injectable(Account, "Account.MobileAccountMenu");
|
|
6930
6944
|
var MobileAccountMenuExtension = () => {
|
|
6931
|
-
|
|
6945
|
+
const state = useAccountScript();
|
|
6946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InjectableAccount, { ...state });
|
|
6932
6947
|
};
|
|
6933
6948
|
|
|
6934
6949
|
// src/components/mobile/bottomNavBar/balance/balance.ui.tsx
|
|
@@ -8403,7 +8418,10 @@ var DesktopLayout4 = (props) => {
|
|
|
8403
8418
|
}
|
|
8404
8419
|
];
|
|
8405
8420
|
},
|
|
8406
|
-
sideEffects: ({
|
|
8421
|
+
sideEffects: ({
|
|
8422
|
+
active,
|
|
8423
|
+
dragOverlay
|
|
8424
|
+
}) => {
|
|
8407
8425
|
active.node.style.opacity = "0";
|
|
8408
8426
|
const innerElement = dragOverlay.node.querySelector(".inner-content");
|
|
8409
8427
|
if (innerElement) {
|
|
@@ -8476,11 +8494,9 @@ var DesktopLayout4 = (props) => {
|
|
|
8476
8494
|
const marketsWidget = /* @__PURE__ */ jsxRuntime.jsx(
|
|
8477
8495
|
markets.SideMarketsWidget,
|
|
8478
8496
|
{
|
|
8479
|
-
resizeable,
|
|
8480
|
-
panelSize,
|
|
8481
|
-
onPanelSizeChange,
|
|
8482
8497
|
symbol: props.symbol,
|
|
8483
|
-
onSymbolChange: props.onSymbolChange
|
|
8498
|
+
onSymbolChange: props.onSymbolChange,
|
|
8499
|
+
panelSize
|
|
8484
8500
|
}
|
|
8485
8501
|
);
|
|
8486
8502
|
const toggleButtoncls = ui.cn(
|
|
@@ -8522,13 +8538,13 @@ var DesktopLayout4 = (props) => {
|
|
|
8522
8538
|
height: "100%",
|
|
8523
8539
|
width: marketsWidth,
|
|
8524
8540
|
style: { minWidth: marketsWidth },
|
|
8525
|
-
className: "oui-trading-markets-container oui-transition-all oui-duration-150",
|
|
8541
|
+
className: "oui-trading-markets-container oui-min-h-0 oui-min-w-0 oui-max-w-full oui-transition-all oui-duration-150",
|
|
8526
8542
|
onTransitionEnd: () => setAnimating(false),
|
|
8527
8543
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8528
8544
|
ui.Flex,
|
|
8529
8545
|
{
|
|
8530
8546
|
id: "oui-side-markets",
|
|
8531
|
-
className: "oui-relative oui-font-semibold",
|
|
8547
|
+
className: "oui-relative oui-min-h-0 oui-min-w-0 oui-font-semibold",
|
|
8532
8548
|
direction: "column",
|
|
8533
8549
|
gapY: 5,
|
|
8534
8550
|
height: "100%",
|
|
@@ -8539,10 +8555,7 @@ var DesktopLayout4 = (props) => {
|
|
|
8539
8555
|
ui.Box,
|
|
8540
8556
|
{
|
|
8541
8557
|
width: "100%",
|
|
8542
|
-
className:
|
|
8543
|
-
panelSize === "large" && "oui-h-[calc(100%_-_56px)]",
|
|
8544
|
-
panelSize === "middle" && "oui-h-full"
|
|
8545
|
-
),
|
|
8558
|
+
className: "oui-min-h-0 oui-min-w-0 oui-max-w-full oui-flex-1 oui-overflow-hidden oui-rounded-b-2xl",
|
|
8546
8559
|
children: marketsWidget
|
|
8547
8560
|
}
|
|
8548
8561
|
)
|
|
@@ -8586,10 +8599,10 @@ var DesktopLayout4 = (props) => {
|
|
|
8586
8599
|
{
|
|
8587
8600
|
classNames: {
|
|
8588
8601
|
root: ui.cn(
|
|
8589
|
-
tradingViewFullScreen ? "!oui-absolute oui-
|
|
8602
|
+
tradingViewFullScreen ? "!oui-absolute oui-inset-0 oui-z-40 oui-bg-base-10" : "oui-z-1"
|
|
8590
8603
|
),
|
|
8591
8604
|
content: ui.cn(
|
|
8592
|
-
tradingViewFullScreen ? "oui-
|
|
8605
|
+
tradingViewFullScreen ? "oui-inset-3 oui-overflow-hidden oui-rounded-[16px] oui-bg-base-9" : ""
|
|
8593
8606
|
)
|
|
8594
8607
|
},
|
|
8595
8608
|
symbol: props.symbol,
|
|
@@ -8721,7 +8734,8 @@ var DesktopLayout4 = (props) => {
|
|
|
8721
8734
|
ui.Flex,
|
|
8722
8735
|
{
|
|
8723
8736
|
gap: 2,
|
|
8724
|
-
|
|
8737
|
+
itemAlign: "stretch",
|
|
8738
|
+
className: "oui-min-h-0 oui-flex-1 oui-overflow-hidden",
|
|
8725
8739
|
style: { minWidth: marketsWidth + tradingViewMinWidth + space },
|
|
8726
8740
|
children: [
|
|
8727
8741
|
marketLayout === "left" && marketsView,
|
|
@@ -8751,10 +8765,20 @@ var DesktopLayout4 = (props) => {
|
|
|
8751
8765
|
);
|
|
8752
8766
|
const renderTradingViewAndOrderbookView = () => {
|
|
8753
8767
|
if (max4XL && layout === "left") {
|
|
8754
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8768
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8769
|
+
ui.Flex,
|
|
8770
|
+
{
|
|
8771
|
+
gapX: 2,
|
|
8772
|
+
itemAlign: "stretch",
|
|
8773
|
+
className: "oui-min-h-0",
|
|
8774
|
+
style: { minHeight: orderbookMinHeight },
|
|
8775
|
+
height: "100%",
|
|
8776
|
+
children: [
|
|
8777
|
+
tradingViewAndOrderbookView,
|
|
8778
|
+
marketLayout === "left" && marketsView
|
|
8779
|
+
]
|
|
8780
|
+
}
|
|
8781
|
+
);
|
|
8758
8782
|
}
|
|
8759
8783
|
return tradingViewAndOrderbookView;
|
|
8760
8784
|
};
|
|
@@ -8883,6 +8907,7 @@ var DesktopLayout4 = (props) => {
|
|
|
8883
8907
|
pt: 3,
|
|
8884
8908
|
r: "2xl",
|
|
8885
8909
|
width: marketsWidth,
|
|
8910
|
+
className: "oui-overflow-hidden",
|
|
8886
8911
|
style: {
|
|
8887
8912
|
minHeight: tradindviewMinHeight + orderbookMinHeight + space,
|
|
8888
8913
|
maxHeight: tradindviewMaxHeight + orderbookMaxHeight + space
|
|
@@ -9060,8 +9085,9 @@ var DesktopLayout4 = (props) => {
|
|
|
9060
9085
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9061
9086
|
ui.Flex,
|
|
9062
9087
|
{
|
|
9088
|
+
itemAlign: "stretch",
|
|
9063
9089
|
className: ui.cn(
|
|
9064
|
-
"oui-flex-1 oui-overflow-hidden",
|
|
9090
|
+
"oui-min-h-0 oui-flex-1 oui-overflow-hidden",
|
|
9065
9091
|
layout === "left" && "oui-flex-row-reverse"
|
|
9066
9092
|
),
|
|
9067
9093
|
gap: 2,
|
|
@@ -9109,6 +9135,12 @@ var DesktopLayout4 = (props) => {
|
|
|
9109
9135
|
}
|
|
9110
9136
|
);
|
|
9111
9137
|
};
|
|
9138
|
+
|
|
9139
|
+
// src/pages/trading/trading.injectable.tsx
|
|
9140
|
+
var InjectableDesktopLayout = ui.injectable(
|
|
9141
|
+
DesktopLayout4,
|
|
9142
|
+
"Trading.Layout.Desktop"
|
|
9143
|
+
);
|
|
9112
9144
|
var Countdown = ({
|
|
9113
9145
|
timeInterval
|
|
9114
9146
|
}) => {
|
|
@@ -9371,7 +9403,7 @@ var Trading = (props) => {
|
|
|
9371
9403
|
return /* @__PURE__ */ jsxRuntime.jsx(MobileLayout4, { ...props });
|
|
9372
9404
|
}
|
|
9373
9405
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9374
|
-
|
|
9406
|
+
InjectableDesktopLayout,
|
|
9375
9407
|
{
|
|
9376
9408
|
className: "oui-h-[calc(100vh_-_48px_-_29px)] oui-bg-base-10",
|
|
9377
9409
|
...props
|