@iccandle/reactjs-widget 0.2.36 → 0.2.37
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/widget-iccandle.cjs +17 -17
- package/dist/widget-iccandle.d.ts +18 -2
- package/dist/widget-iccandle.js +2283 -2229
- package/package.json +1 -1
|
@@ -14369,6 +14369,20 @@ type WidgetIccandleProps = {
|
|
|
14369
14369
|
|
|
14370
14370
|
declare const handleResultIframeLoad: (iframe: HTMLIFrameElement | null) => void;
|
|
14371
14371
|
|
|
14372
|
+
type ICCandleAuth = {
|
|
14373
|
+
/** Live embed session mirrored on the host via `iccandle_token`. */
|
|
14374
|
+
isAuthenticated: boolean;
|
|
14375
|
+
idToken: string | null;
|
|
14376
|
+
};
|
|
14377
|
+
/**
|
|
14378
|
+
* Host-side view of whether the results iframe is already signed in.
|
|
14379
|
+
*
|
|
14380
|
+
* The embed posts `auth.signIn` / `auth.signOut` after its NextAuth session
|
|
14381
|
+
* changes. Use this to skip minting a new easy-auth user when a session
|
|
14382
|
+
* already exists.
|
|
14383
|
+
*/
|
|
14384
|
+
declare function useICCandleAuth(): ICCandleAuth;
|
|
14385
|
+
|
|
14372
14386
|
declare const WIDGET_LANGUAGES: readonly ["en", "zh", "vi", "th", "ko", "ja", "mn", "ru"];
|
|
14373
14387
|
type WidgetLanguage = (typeof WIDGET_LANGUAGES)[number];
|
|
14374
14388
|
|
|
@@ -14379,6 +14393,8 @@ type GeneratedCandlesTheme = "light" | "dark";
|
|
|
14379
14393
|
declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Promise<readonly CustomIndicator[]>;
|
|
14380
14394
|
|
|
14381
14395
|
declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
|
|
14396
|
+
/** Host-side copy of the embed session id token. Set by `auth.signIn`. */
|
|
14397
|
+
declare const ICCANDLE_TOKEN_KEY = "iccandle_token";
|
|
14382
14398
|
|
|
14383
|
-
export { WIDGET_RESULT_URL, WidgetIccandle, getCustomIndicators, handleResultIframeLoad, withPlayChart };
|
|
14384
|
-
export type { GeneratedCandlesTheme, WidgetChartMaskColors, WidgetIccandleProps, WidgetLanguage };
|
|
14399
|
+
export { ICCANDLE_TOKEN_KEY, WIDGET_RESULT_URL, WidgetIccandle, getCustomIndicators, handleResultIframeLoad, useICCandleAuth, withPlayChart };
|
|
14400
|
+
export type { GeneratedCandlesTheme, ICCandleAuth, WidgetChartMaskColors, WidgetIccandleProps, WidgetLanguage };
|