@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/index.js
CHANGED
|
@@ -30925,6 +30925,8 @@ function ChartWorkspace({
|
|
|
30925
30925
|
tradingOverlayStore
|
|
30926
30926
|
}) {
|
|
30927
30927
|
const capabilities = useChartCapabilities();
|
|
30928
|
+
const dataBlocked = useLicenseDataBlocked();
|
|
30929
|
+
useHostLicense(hostApiUrl, getAuthToken);
|
|
30928
30930
|
const autoTrading = tradingBridge !== void 0;
|
|
30929
30931
|
const [autoOrderEntryOpen, setAutoOrderEntryOpen] = React11.useState(false);
|
|
30930
30932
|
const [autoTradingPanelOpen, setAutoTradingPanelOpen] = React11.useState(false);
|
|
@@ -31074,25 +31076,7 @@ function ChartWorkspace({
|
|
|
31074
31076
|
}
|
|
31075
31077
|
),
|
|
31076
31078
|
/* @__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: [
|
|
31077
|
-
|
|
31078
|
-
position: "absolute",
|
|
31079
|
-
inset: 0,
|
|
31080
|
-
zIndex: 100,
|
|
31081
|
-
background: "rgba(0,0,0,0.6)",
|
|
31082
|
-
backdropFilter: "blur(4px)",
|
|
31083
|
-
display: "flex",
|
|
31084
|
-
flexDirection: "column",
|
|
31085
|
-
alignItems: "center",
|
|
31086
|
-
justifyContent: "center",
|
|
31087
|
-
gap: 12
|
|
31088
|
-
}, children: [
|
|
31089
|
-
/* @__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: [
|
|
31090
|
-
/* @__PURE__ */ jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2" }),
|
|
31091
|
-
/* @__PURE__ */ jsx("path", { d: "M7 11V7a5 5 0 0110 0v4" })
|
|
31092
|
-
] }),
|
|
31093
|
-
/* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 700, fontSize: 18, letterSpacing: "0.01em" }, children: "Unlicensed" }),
|
|
31094
|
-
/* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.65)", fontSize: 13 }, children: "Please activate your license in the admin studio" })
|
|
31095
|
-
] }),
|
|
31079
|
+
(dataBlocked || isLicensed === false) && /* @__PURE__ */ jsx(LicenseRequiredOverlay, {}),
|
|
31096
31080
|
/* @__PURE__ */ jsx("div", { style: { position: "relative", flex: 1, minWidth: 0, minHeight: 0 }, children: chartSlots }),
|
|
31097
31081
|
autoTrading && !onToggleOrderEntry && effOrderEntryOpen && capabilities.orderEntry && tradingBridge && /* @__PURE__ */ jsx(
|
|
31098
31082
|
OrderTicket,
|