@forgecharts/sdk 1.5.12 → 1.5.13
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/react/internal.js
CHANGED
|
@@ -31150,6 +31150,8 @@ function ChartWorkspace({
|
|
|
31150
31150
|
tradingOverlayStore
|
|
31151
31151
|
}) {
|
|
31152
31152
|
const capabilities = useChartCapabilities();
|
|
31153
|
+
const dataBlocked = useLicenseDataBlocked();
|
|
31154
|
+
useHostLicense(hostApiUrl, getAuthToken);
|
|
31153
31155
|
const autoTrading = tradingBridge !== void 0;
|
|
31154
31156
|
const [autoOrderEntryOpen, setAutoOrderEntryOpen] = React11.useState(false);
|
|
31155
31157
|
const [autoTradingPanelOpen, setAutoTradingPanelOpen] = React11.useState(false);
|
|
@@ -31299,25 +31301,7 @@ function ChartWorkspace({
|
|
|
31299
31301
|
}
|
|
31300
31302
|
),
|
|
31301
31303
|
/* @__PURE__ */ jsx("div", { style: { flex: 1, display: "flex", gap: 4, minHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsxs("div", { style: { position: "relative", flex: 1, display: "flex", gap: 4, minWidth: 0, minHeight: 0 }, children: [
|
|
31302
|
-
|
|
31303
|
-
position: "absolute",
|
|
31304
|
-
inset: 0,
|
|
31305
|
-
zIndex: 100,
|
|
31306
|
-
background: "rgba(0,0,0,0.6)",
|
|
31307
|
-
backdropFilter: "blur(4px)",
|
|
31308
|
-
display: "flex",
|
|
31309
|
-
flexDirection: "column",
|
|
31310
|
-
alignItems: "center",
|
|
31311
|
-
justifyContent: "center",
|
|
31312
|
-
gap: 12
|
|
31313
|
-
}, children: [
|
|
31314
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "40", height: "40", fill: "none", stroke: "rgba(255,255,255,0.7)", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
31315
|
-
/* @__PURE__ */ jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2" }),
|
|
31316
|
-
/* @__PURE__ */ jsx("path", { d: "M7 11V7a5 5 0 0110 0v4" })
|
|
31317
|
-
] }),
|
|
31318
|
-
/* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 700, fontSize: 18, letterSpacing: "0.01em" }, children: "Unlicensed" }),
|
|
31319
|
-
/* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.65)", fontSize: 13 }, children: "Please activate your license in the admin studio" })
|
|
31320
|
-
] }),
|
|
31304
|
+
(dataBlocked || isLicensed === false) && /* @__PURE__ */ jsx(LicenseRequiredOverlay, {}),
|
|
31321
31305
|
/* @__PURE__ */ jsx("div", { style: { position: "relative", flex: 1, minWidth: 0, minHeight: 0 }, children: chartSlots }),
|
|
31322
31306
|
autoTrading && !onToggleOrderEntry && effOrderEntryOpen && capabilities.orderEntry && tradingBridge && /* @__PURE__ */ jsx(
|
|
31323
31307
|
OrderTicket,
|