acttrader-charts 1.0.10 → 1.0.12

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.
@@ -534,8 +534,20 @@ interface ChartConfig {
534
534
  */
535
535
  onSymbolClick?: (symbol: string) => void;
536
536
  padding?: Partial<Padding>;
537
+ /**
538
+ * @deprecated DraftOrderQtyInput has been removed. This value is stored
539
+ * internally and used as the submitted lot size, but no qty input is shown.
540
+ * Minimum (and default) lot size for draft order submission. Default: `1`.
541
+ */
542
+ minLots?: number;
537
543
  /** Called when user submits an order via the floating trade button */
538
544
  onOrderSubmit?: (order: OrderSubmit) => void;
545
+ /**
546
+ * @deprecated DraftOrderQtyInput has been removed. This callback is accepted
547
+ * for backward compatibility but will never fire — there is no qty input to change.
548
+ * Use external state to track lot size.
549
+ */
550
+ onLotsChange?: (lots: number) => void;
539
551
  /** @deprecated Use onLevelEdit which delivers all changes in one event. */
540
552
  onLevelDragEnd?: (payload: {
541
553
  label: string;
@@ -742,6 +754,11 @@ interface ChartConfig {
742
754
  * Default: `false` — the toggle is hidden.
743
755
  */
744
756
  enableThemeToggle?: boolean;
757
+ /**
758
+ * @deprecated DraftOrderQtyInput has been removed. This option is a no-op.
759
+ * Accepted for backward compatibility only.
760
+ */
761
+ hideQtyButton?: boolean;
745
762
  }
746
763
  interface IndicatorResult {
747
764
  index: number;
@@ -947,6 +964,13 @@ type ChartEventMap = {
947
964
  bracketType?: 'stopLoss' | 'takeProfit';
948
965
  isFullscreen: boolean;
949
966
  };
967
+ /** Emitted at the instant a bracket (SL/TP) drag begins — before any movement.
968
+ * Native layers listen to this to suppress tap-outside dismiss while dragging. */
969
+ tradeLevelDragStart: {
970
+ label: string;
971
+ bracketType: 'stopLoss' | 'takeProfit';
972
+ isFullscreen: boolean;
973
+ };
950
974
  /** Emitted when chart's ✓ button confirms an edit (including draft orders). External panel listens to reset/close itself. */
951
975
  tradeLevelConfirmed: {
952
976
  label: string;
@@ -534,8 +534,20 @@ interface ChartConfig {
534
534
  */
535
535
  onSymbolClick?: (symbol: string) => void;
536
536
  padding?: Partial<Padding>;
537
+ /**
538
+ * @deprecated DraftOrderQtyInput has been removed. This value is stored
539
+ * internally and used as the submitted lot size, but no qty input is shown.
540
+ * Minimum (and default) lot size for draft order submission. Default: `1`.
541
+ */
542
+ minLots?: number;
537
543
  /** Called when user submits an order via the floating trade button */
538
544
  onOrderSubmit?: (order: OrderSubmit) => void;
545
+ /**
546
+ * @deprecated DraftOrderQtyInput has been removed. This callback is accepted
547
+ * for backward compatibility but will never fire — there is no qty input to change.
548
+ * Use external state to track lot size.
549
+ */
550
+ onLotsChange?: (lots: number) => void;
539
551
  /** @deprecated Use onLevelEdit which delivers all changes in one event. */
540
552
  onLevelDragEnd?: (payload: {
541
553
  label: string;
@@ -742,6 +754,11 @@ interface ChartConfig {
742
754
  * Default: `false` — the toggle is hidden.
743
755
  */
744
756
  enableThemeToggle?: boolean;
757
+ /**
758
+ * @deprecated DraftOrderQtyInput has been removed. This option is a no-op.
759
+ * Accepted for backward compatibility only.
760
+ */
761
+ hideQtyButton?: boolean;
745
762
  }
746
763
  interface IndicatorResult {
747
764
  index: number;
@@ -947,6 +964,13 @@ type ChartEventMap = {
947
964
  bracketType?: 'stopLoss' | 'takeProfit';
948
965
  isFullscreen: boolean;
949
966
  };
967
+ /** Emitted at the instant a bracket (SL/TP) drag begins — before any movement.
968
+ * Native layers listen to this to suppress tap-outside dismiss while dragging. */
969
+ tradeLevelDragStart: {
970
+ label: string;
971
+ bracketType: 'stopLoss' | 'takeProfit';
972
+ isFullscreen: boolean;
973
+ };
950
974
  /** Emitted when chart's ✓ button confirms an edit (including draft orders). External panel listens to reset/close itself. */
951
975
  tradeLevelConfirmed: {
952
976
  label: string;