@iccandle/reactjs-widget 0.2.10 → 0.2.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.
@@ -14334,7 +14334,7 @@ type WidgetIccandleChartRefs = {
14334
14334
  generatedCandlesBackgroundStudyIdRef: RefObject<EntityId | null>;
14335
14335
  generatedCandlesStudyIdRef: RefObject<EntityId | null>;
14336
14336
  };
14337
- declare const WidgetIccandle: ({ chartWidget, children, theme, language, submitCallback, onCloseResult, iframeLoaded, isShowScanButton, isShowTrackerButton, isShowScannerPopup, availableIntervals, }: WidgetIccandleProps) => react_jsx_runtime.JSX.Element;
14337
+ declare const WidgetIccandle: ({ chartWidget, children, theme, language, submitCallback, onCloseResult, iframeLoaded, resultIframeRef, isShowScanButton, isShowTrackerButton, isShowScannerPopup, availableIntervals, }: WidgetIccandleProps) => react_jsx_runtime.JSX.Element;
14338
14338
  type WidgetIccandleProps = {
14339
14339
  chartWidget: IChartingLibraryWidget | null;
14340
14340
  children: ReactNode | ((chartRefs: WidgetIccandleChartRefs) => ReactNode);
@@ -14343,6 +14343,8 @@ type WidgetIccandleProps = {
14343
14343
  language?: WidgetLanguage$1;
14344
14344
  onCloseResult?: () => void;
14345
14345
  iframeLoaded?: boolean;
14346
+ /** Results iframe beside the chart; receives `open-pricing` postMessages. */
14347
+ resultIframeRef?: RefObject<HTMLIFrameElement | null>;
14346
14348
  /** Show the Scan action inside the popup. Defaults to `true`. */
14347
14349
  isShowScanButton?: boolean;
14348
14350
  /** Show the Pattern Tracker action inside the popup. Defaults to `true`. */
@@ -14364,7 +14366,7 @@ declare function withPlayChart<A extends unknown[]>(factory: (...args: A) => IBa
14364
14366
  type GeneratedCandlesTheme = "light" | "dark";
14365
14367
  declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Promise<readonly CustomIndicator[]>;
14366
14368
 
14367
- declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
14369
+ declare const WIDGET_RESULT_URL = "http://localhost:3000";
14368
14370
 
14369
14371
  export { WIDGET_RESULT_URL, WidgetIccandle, getCustomIndicators, handleResultIframeLoad, withPlayChart };
14370
14372
  export type { GeneratedCandlesTheme, WidgetIccandleProps, WidgetLanguage };