@orderly.network/trading 2.8.13 → 2.8.14
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.js +35 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
package/dist/index.mjs
CHANGED
|
@@ -4266,8 +4266,8 @@ var init_switchLayout = __esm({
|
|
|
4266
4266
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gapY: 2, mt: 5, itemAlign: "start", children: [
|
|
4267
4267
|
/* @__PURE__ */ jsx(Text, { size: "xs", intensity: 98, children: String(t("trading.layout.advanced")) }),
|
|
4268
4268
|
/* @__PURE__ */ jsxs(Flex, { gapX: 6, children: [
|
|
4269
|
-
renderItem("
|
|
4270
|
-
renderItem("
|
|
4269
|
+
renderItem("left"),
|
|
4270
|
+
renderItem("right")
|
|
4271
4271
|
] })
|
|
4272
4272
|
] }),
|
|
4273
4273
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gapY: 2, mt: 5, itemAlign: "start", children: [
|
|
@@ -5270,45 +5270,55 @@ var init_orderBookAndEntry_ui = __esm({
|
|
|
5270
5270
|
resizeObserver.unobserve(div);
|
|
5271
5271
|
};
|
|
5272
5272
|
}, []);
|
|
5273
|
-
|
|
5273
|
+
const orderBookColumn = /* @__PURE__ */ jsx(
|
|
5274
|
+
"div",
|
|
5275
|
+
{
|
|
5276
|
+
className: "oui-rounded-xl oui-bg-base-9",
|
|
5277
|
+
style: { height: `${height + 16}px` },
|
|
5278
|
+
children: /* @__PURE__ */ jsx(React12.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
5279
|
+
LazyOrderBookWidget2,
|
|
5280
|
+
{
|
|
5281
|
+
symbol: props.symbol,
|
|
5282
|
+
height: height ? height - 44 : void 0
|
|
5283
|
+
}
|
|
5284
|
+
) })
|
|
5285
|
+
}
|
|
5286
|
+
);
|
|
5287
|
+
const orderEntryColumn = /* @__PURE__ */ jsx("div", { className: "oui-rounded-xl oui-bg-base-9 oui-p-2", children: /* @__PURE__ */ jsx(OrderEntryWidget, { symbol: props.symbol, containerRef: divRef }) });
|
|
5288
|
+
return /* @__PURE__ */ jsx(
|
|
5274
5289
|
"div",
|
|
5275
5290
|
{
|
|
5276
5291
|
className: cn(
|
|
5277
|
-
"oui-mx-1 oui-grid oui-
|
|
5292
|
+
"oui-mx-1 oui-grid oui-gap-1",
|
|
5293
|
+
props.layout === "right" ? "oui-grid-cols-[4fr,6fr]" : "oui-grid-cols-[6fr,4fr]",
|
|
5278
5294
|
props.className
|
|
5279
5295
|
),
|
|
5280
|
-
children: [
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
LazyOrderBookWidget2,
|
|
5288
|
-
{
|
|
5289
|
-
symbol: props.symbol,
|
|
5290
|
-
height: height ? height - 44 : void 0
|
|
5291
|
-
}
|
|
5292
|
-
) })
|
|
5293
|
-
}
|
|
5294
|
-
),
|
|
5295
|
-
/* @__PURE__ */ jsx("div", { className: "oui-rounded-xl oui-bg-base-9 oui-p-2", children: /* @__PURE__ */ jsx(OrderEntryWidget, { symbol: props.symbol, containerRef: divRef }) })
|
|
5296
|
-
]
|
|
5296
|
+
children: props.layout === "right" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5297
|
+
orderBookColumn,
|
|
5298
|
+
orderEntryColumn
|
|
5299
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5300
|
+
orderEntryColumn,
|
|
5301
|
+
orderBookColumn
|
|
5302
|
+
] })
|
|
5297
5303
|
}
|
|
5298
5304
|
);
|
|
5299
5305
|
};
|
|
5300
5306
|
}
|
|
5301
5307
|
});
|
|
5302
|
-
|
|
5303
|
-
// src/components/mobile/orderBookAndEntry/orderBookAndEntry.script.tsx
|
|
5304
|
-
var useOrderBookAndEntryScript;
|
|
5308
|
+
var ORDERLY_MWEB_ORDER_ENTRY_SIDE_MARKETS_LAYOUT, useOrderBookAndEntryScript;
|
|
5305
5309
|
var init_orderBookAndEntry_script = __esm({
|
|
5306
5310
|
"src/components/mobile/orderBookAndEntry/orderBookAndEntry.script.tsx"() {
|
|
5307
5311
|
init_tradingPageContext();
|
|
5312
|
+
ORDERLY_MWEB_ORDER_ENTRY_SIDE_MARKETS_LAYOUT = "orderly_mweb_order_entry_side_markets_layout";
|
|
5308
5313
|
useOrderBookAndEntryScript = () => {
|
|
5309
5314
|
const { symbol } = useTradingPageContext();
|
|
5315
|
+
const [layout] = useLocalStorage(
|
|
5316
|
+
ORDERLY_MWEB_ORDER_ENTRY_SIDE_MARKETS_LAYOUT,
|
|
5317
|
+
"right"
|
|
5318
|
+
);
|
|
5310
5319
|
return {
|
|
5311
|
-
symbol
|
|
5320
|
+
symbol,
|
|
5321
|
+
layout
|
|
5312
5322
|
};
|
|
5313
5323
|
};
|
|
5314
5324
|
}
|