@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.
@@ -22902,7 +22902,10 @@ var ChartCanvas = forwardRef(
22902
22902
  const order = chart.getTradingOverlayStore()?.getOrders().find((o) => o.id === orderId);
22903
22903
  const isBracketLeg = order?.role === "take_profit" || order?.role === "stop_loss";
22904
22904
  if (isBracketLeg) {
22905
- if (!canUseBracketOrders()) return;
22905
+ if (!canUseBracketOrders()) {
22906
+ 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.");
22907
+ return;
22908
+ }
22906
22909
  void bridge.onBracketAdjustIntent?.({
22907
22910
  type: "bracket_adjust",
22908
22911
  entryOrderId: order?.groupId ?? orderId,
@@ -22911,7 +22914,10 @@ var ChartCanvas = forwardRef(
22911
22914
  timestamp: Date.now()
22912
22915
  });
22913
22916
  } else {
22914
- if (!canUseDraggableOrders()) return;
22917
+ if (!canUseDraggableOrders()) {
22918
+ console.warn("[ForgeCharts] Order drag ignored \u2014 the `draggableOrders` feature is not enabled on the active license, so no modify intent was dispatched.");
22919
+ return;
22920
+ }
22915
22921
  void bridge.onModifyOrderIntent?.({
22916
22922
  type: "modify",
22917
22923
  orderId,
@@ -22927,7 +22933,11 @@ var ChartCanvas = forwardRef(
22927
22933
  return;
22928
22934
  }
22929
22935
  const bridge = tradingBridgeRef.current;
22930
- if (!bridge || !canUseBracketOrders()) return;
22936
+ if (!bridge) return;
22937
+ if (!canUseBracketOrders()) {
22938
+ 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.");
22939
+ return;
22940
+ }
22931
22941
  void bridge.onBracketAdjustIntent?.({
22932
22942
  type: "bracket_adjust",
22933
22943
  entryOrderId,