react-klinecharts-ui 0.6.0 → 1.0.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.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { Dispatch, RefObject, ReactNode, ReactElement } from 'react';
3
- import { Period, SymbolInfo, KLineData, Chart, DeepPartial, Styles, OverlayTemplate, YAxisOverride, HotkeyTemplate, Hotkey, XAxisOverride, DataLoader, IndicatorTemplate } from 'react-klinecharts';
4
- export { Hotkey, HotkeyActionParams, HotkeyTemplate, XAxisOverride, YAxisOverride } from 'react-klinecharts';
3
+ import { Period, SymbolInfo, KLineData, Chart, DeepPartial, Styles, OverlayTemplate, YAxisOverride, HotkeyTemplate, Hotkey, XAxisOverride, DataLoader, IndicatorTemplate } from 'klinecharts';
4
+ export { Hotkey, HotkeyActionParams, HotkeyTemplate, XAxisOverride, YAxisOverride } from 'klinecharts';
5
5
  import { AlertLineExtendData, OrderLineExtendData } from './extensions.cjs';
6
6
  export { DepthOverlayExtendData, DepthOverlayRow, OrderLineFontStyle, OrderLineLabelStyle, OrderLineLineStyle, OrderLineMarkStyle, OrderLinePadding, alertLine, depthOverlay, indicators, orderLine, overlays, registerExtensions } from './extensions.cjs';
7
7
 
@@ -206,6 +206,17 @@ type KlinechartsUIAction = {
206
206
  } | {
207
207
  type: "SET_ALERTS";
208
208
  alerts: Alert[];
209
+ } | {
210
+ type: "ADD_ALERT";
211
+ alert: Alert;
212
+ } | {
213
+ type: "REMOVE_ALERT";
214
+ id: string;
215
+ } | {
216
+ type: "CLEAR_ALERTS";
217
+ } | {
218
+ type: "MARK_ALERT_TRIGGERED";
219
+ ids: string[];
209
220
  } | {
210
221
  type: "SET_MEASURE";
211
222
  measure: Partial<MeasureState>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { Dispatch, RefObject, ReactNode, ReactElement } from 'react';
3
- import { Period, SymbolInfo, KLineData, Chart, DeepPartial, Styles, OverlayTemplate, YAxisOverride, HotkeyTemplate, Hotkey, XAxisOverride, DataLoader, IndicatorTemplate } from 'react-klinecharts';
4
- export { Hotkey, HotkeyActionParams, HotkeyTemplate, XAxisOverride, YAxisOverride } from 'react-klinecharts';
3
+ import { Period, SymbolInfo, KLineData, Chart, DeepPartial, Styles, OverlayTemplate, YAxisOverride, HotkeyTemplate, Hotkey, XAxisOverride, DataLoader, IndicatorTemplate } from 'klinecharts';
4
+ export { Hotkey, HotkeyActionParams, HotkeyTemplate, XAxisOverride, YAxisOverride } from 'klinecharts';
5
5
  import { AlertLineExtendData, OrderLineExtendData } from './extensions.js';
6
6
  export { DepthOverlayExtendData, DepthOverlayRow, OrderLineFontStyle, OrderLineLabelStyle, OrderLineLineStyle, OrderLineMarkStyle, OrderLinePadding, alertLine, depthOverlay, indicators, orderLine, overlays, registerExtensions } from './extensions.js';
7
7
 
@@ -206,6 +206,17 @@ type KlinechartsUIAction = {
206
206
  } | {
207
207
  type: "SET_ALERTS";
208
208
  alerts: Alert[];
209
+ } | {
210
+ type: "ADD_ALERT";
211
+ alert: Alert;
212
+ } | {
213
+ type: "REMOVE_ALERT";
214
+ id: string;
215
+ } | {
216
+ type: "CLEAR_ALERTS";
217
+ } | {
218
+ type: "MARK_ALERT_TRIGGERED";
219
+ ids: string[];
209
220
  } | {
210
221
  type: "SET_MEASURE";
211
222
  measure: Partial<MeasureState>;