@iccandle/reactjs-widget 0.1.10 → 0.1.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,16 +14334,19 @@ type WidgetIccandleChartRefs = {
14334
14334
  generatedCandlesBackgroundStudyIdRef: RefObject<EntityId | null>;
14335
14335
  generatedCandlesStudyIdRef: RefObject<EntityId | null>;
14336
14336
  };
14337
- declare const WidgetIccandle: ({ chartWidget, children, theme, language, onCloseResult, iframeLoaded, }: WidgetIccandleProps) => react_jsx_runtime.JSX.Element;
14337
+ declare const WidgetIccandle: ({ chartWidget, children, theme, language, submitCallback, onCloseResult, iframeLoaded, }: WidgetIccandleProps) => react_jsx_runtime.JSX.Element;
14338
14338
  type WidgetIccandleProps = {
14339
14339
  chartWidget: IChartingLibraryWidget | null;
14340
14340
  children: ReactNode | ((chartRefs: WidgetIccandleChartRefs) => ReactNode);
14341
+ submitCallback: (iframeSrc: string) => void;
14341
14342
  theme?: "light" | "dark" | "system";
14342
14343
  language?: WidgetLanguage$1;
14343
14344
  onCloseResult?: () => void;
14344
14345
  iframeLoaded?: boolean;
14345
14346
  };
14346
14347
 
14348
+ declare const handleResultIframeLoad: (iframe: HTMLIFrameElement | null) => void;
14349
+
14347
14350
  declare const WIDGET_LANGUAGES: readonly ["en", "zh", "vi", "th", "ko", "ja", "mn", "ru"];
14348
14351
  type WidgetLanguage = (typeof WIDGET_LANGUAGES)[number];
14349
14352
 
@@ -14353,5 +14356,7 @@ declare function withPlayChart<A extends unknown[]>(factory: (...args: A) => IBa
14353
14356
  type GeneratedCandlesTheme = "light" | "dark";
14354
14357
  declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Promise<readonly CustomIndicator[]>;
14355
14358
 
14356
- export { WidgetIccandle, getCustomIndicators, withPlayChart };
14359
+ declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
14360
+
14361
+ export { WIDGET_RESULT_URL, WidgetIccandle, getCustomIndicators, handleResultIframeLoad, withPlayChart };
14357
14362
  export type { GeneratedCandlesTheme, WidgetIccandleProps, WidgetLanguage };