@iccandle/vuejs-widget 0.1.3 → 0.1.5
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.ts +26 -0
- package/dist/widget-iccandle.cjs +4 -4
- package/dist/widget-iccandle.js +1035 -774
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,12 +27,18 @@ declare type __VLS_Props = {
|
|
|
27
27
|
language?: WidgetLanguage;
|
|
28
28
|
onCloseResult?: () => void;
|
|
29
29
|
iframeLoaded?: boolean;
|
|
30
|
+
/** Results iframe beside the chart; receives `open-pricing` postMessages. */
|
|
31
|
+
resultIframeRef?: {
|
|
32
|
+
current: HTMLIFrameElement | null;
|
|
33
|
+
} | null;
|
|
30
34
|
/** Show the Scan action inside the popup. Defaults to `true`. */
|
|
31
35
|
isShowScanButton?: boolean;
|
|
32
36
|
/** Show the Pattern Tracker action inside the popup. Defaults to `true`. */
|
|
33
37
|
isShowTrackerButton?: boolean;
|
|
34
38
|
/** Show the scanner popup at all. Defaults to `true`. */
|
|
35
39
|
isShowScannerPopup?: boolean;
|
|
40
|
+
/** Chart resolutions allowed for pattern date-range drawing. */
|
|
41
|
+
availableIntervals?: string[];
|
|
36
42
|
};
|
|
37
43
|
|
|
38
44
|
declare function __VLS_template(): {
|
|
@@ -62,6 +68,20 @@ export declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Pro
|
|
|
62
68
|
|
|
63
69
|
export declare const handleResultIframeLoad: (iframe: HTMLIFrameElement | null) => void;
|
|
64
70
|
|
|
71
|
+
export declare const OPEN_PRICING_MESSAGE_TYPE = "open-pricing";
|
|
72
|
+
|
|
73
|
+
export declare type OpenPricingMessage = {
|
|
74
|
+
type: typeof OPEN_PRICING_MESSAGE_TYPE;
|
|
75
|
+
theme?: "light" | "dark";
|
|
76
|
+
language?: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export declare function postOpenPricingToEmbed(iframe: HTMLIFrameElement | null | undefined, options?: Pick<OpenPricingMessage, "theme" | "language">): boolean;
|
|
80
|
+
|
|
81
|
+
export declare function postOpenPricingToParent(options?: Pick<OpenPricingMessage, "theme" | "language">): boolean;
|
|
82
|
+
|
|
83
|
+
export declare function postOpenPricingToWindow(target: Window, options?: Pick<OpenPricingMessage, "theme" | "language">): void;
|
|
84
|
+
|
|
65
85
|
declare const WIDGET_LANGUAGES: readonly ["en", "zh", "vi", "th", "ko", "ja", "mn", "ru"];
|
|
66
86
|
|
|
67
87
|
export declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
|
|
@@ -88,12 +108,18 @@ export declare type WidgetIccandleProps = {
|
|
|
88
108
|
language?: WidgetLanguage;
|
|
89
109
|
onCloseResult?: () => void;
|
|
90
110
|
iframeLoaded?: boolean;
|
|
111
|
+
/** Results iframe beside the chart; receives `open-pricing` postMessages. */
|
|
112
|
+
resultIframeRef?: {
|
|
113
|
+
current: HTMLIFrameElement | null;
|
|
114
|
+
} | null;
|
|
91
115
|
/** Show the Scan action inside the popup. Defaults to `true`. */
|
|
92
116
|
isShowScanButton?: boolean;
|
|
93
117
|
/** Show the Pattern Tracker action inside the popup. Defaults to `true`. */
|
|
94
118
|
isShowTrackerButton?: boolean;
|
|
95
119
|
/** Show the scanner popup at all. Defaults to `true`. */
|
|
96
120
|
isShowScannerPopup?: boolean;
|
|
121
|
+
/** Chart resolutions allowed for pattern date-range drawing. */
|
|
122
|
+
availableIntervals?: string[];
|
|
97
123
|
};
|
|
98
124
|
|
|
99
125
|
export declare type WidgetLanguage = (typeof WIDGET_LANGUAGES)[number];
|