@forgecharts/sdk 1.3.13 → 1.4.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.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.js +13 -3
- package/dist/internal.js.map +1 -1
- package/dist/react/canvas/ChartCanvas.d.ts.map +1 -1
- package/dist/react/index.js +13 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/internal.js +13 -3
- package/dist/react/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.js
CHANGED
|
@@ -22965,7 +22965,10 @@ var ChartCanvas = forwardRef(
|
|
|
22965
22965
|
const order = chart.getTradingOverlayStore()?.getOrders().find((o) => o.id === orderId);
|
|
22966
22966
|
const isBracketLeg = order?.role === "take_profit" || order?.role === "stop_loss";
|
|
22967
22967
|
if (isBracketLeg) {
|
|
22968
|
-
if (!canUseBracketOrders())
|
|
22968
|
+
if (!canUseBracketOrders()) {
|
|
22969
|
+
console.warn("[ForgeCharts] TP/SL drag ignored \u2014 the `bracketOrders` feature is not enabled on the active license, so no bracket_adjust intent was dispatched.");
|
|
22970
|
+
return;
|
|
22971
|
+
}
|
|
22969
22972
|
void bridge.onBracketAdjustIntent?.({
|
|
22970
22973
|
type: "bracket_adjust",
|
|
22971
22974
|
entryOrderId: order?.groupId ?? orderId,
|
|
@@ -22974,7 +22977,10 @@ var ChartCanvas = forwardRef(
|
|
|
22974
22977
|
timestamp: Date.now()
|
|
22975
22978
|
});
|
|
22976
22979
|
} else {
|
|
22977
|
-
if (!canUseDraggableOrders())
|
|
22980
|
+
if (!canUseDraggableOrders()) {
|
|
22981
|
+
console.warn("[ForgeCharts] Order drag ignored \u2014 the `draggableOrders` feature is not enabled on the active license, so no modify intent was dispatched.");
|
|
22982
|
+
return;
|
|
22983
|
+
}
|
|
22978
22984
|
void bridge.onModifyOrderIntent?.({
|
|
22979
22985
|
type: "modify",
|
|
22980
22986
|
orderId,
|
|
@@ -22990,7 +22996,11 @@ var ChartCanvas = forwardRef(
|
|
|
22990
22996
|
return;
|
|
22991
22997
|
}
|
|
22992
22998
|
const bridge = tradingBridgeRef.current;
|
|
22993
|
-
if (!bridge
|
|
22999
|
+
if (!bridge) return;
|
|
23000
|
+
if (!canUseBracketOrders()) {
|
|
23001
|
+
console.warn("[ForgeCharts] TP/SL pill drag ignored \u2014 the `bracketOrders` feature is not enabled on the active license, so no bracket_adjust intent was dispatched.");
|
|
23002
|
+
return;
|
|
23003
|
+
}
|
|
22994
23004
|
void bridge.onBracketAdjustIntent?.({
|
|
22995
23005
|
type: "bracket_adjust",
|
|
22996
23006
|
entryOrderId,
|