@forgecharts/sdk 1.3.13 → 1.4.0
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/index.js
CHANGED
|
@@ -22955,7 +22955,10 @@ var ChartCanvas = forwardRef(
|
|
|
22955
22955
|
const order = chart.getTradingOverlayStore()?.getOrders().find((o) => o.id === orderId);
|
|
22956
22956
|
const isBracketLeg = order?.role === "take_profit" || order?.role === "stop_loss";
|
|
22957
22957
|
if (isBracketLeg) {
|
|
22958
|
-
if (!canUseBracketOrders())
|
|
22958
|
+
if (!canUseBracketOrders()) {
|
|
22959
|
+
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.");
|
|
22960
|
+
return;
|
|
22961
|
+
}
|
|
22959
22962
|
void bridge.onBracketAdjustIntent?.({
|
|
22960
22963
|
type: "bracket_adjust",
|
|
22961
22964
|
entryOrderId: order?.groupId ?? orderId,
|
|
@@ -22964,7 +22967,10 @@ var ChartCanvas = forwardRef(
|
|
|
22964
22967
|
timestamp: Date.now()
|
|
22965
22968
|
});
|
|
22966
22969
|
} else {
|
|
22967
|
-
if (!canUseDraggableOrders())
|
|
22970
|
+
if (!canUseDraggableOrders()) {
|
|
22971
|
+
console.warn("[ForgeCharts] Order drag ignored \u2014 the `draggableOrders` feature is not enabled on the active license, so no modify intent was dispatched.");
|
|
22972
|
+
return;
|
|
22973
|
+
}
|
|
22968
22974
|
void bridge.onModifyOrderIntent?.({
|
|
22969
22975
|
type: "modify",
|
|
22970
22976
|
orderId,
|
|
@@ -22980,7 +22986,11 @@ var ChartCanvas = forwardRef(
|
|
|
22980
22986
|
return;
|
|
22981
22987
|
}
|
|
22982
22988
|
const bridge = tradingBridgeRef.current;
|
|
22983
|
-
if (!bridge
|
|
22989
|
+
if (!bridge) return;
|
|
22990
|
+
if (!canUseBracketOrders()) {
|
|
22991
|
+
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.");
|
|
22992
|
+
return;
|
|
22993
|
+
}
|
|
22984
22994
|
void bridge.onBracketAdjustIntent?.({
|
|
22985
22995
|
type: "bracket_adjust",
|
|
22986
22996
|
entryOrderId,
|