@iccandle/vuejs-widget 0.2.1 → 0.2.3
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 +33 -2
- package/dist/widget-iccandle.cjs +3 -3
- package/dist/widget-iccandle.js +991 -833
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Bar } from './tradingview-types/charting_library';
|
|
2
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
3
3
|
import { ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { ComputedRef } from 'vue';
|
|
4
5
|
import { CustomIndicator } from '.././tradingview-types/charting_library';
|
|
5
6
|
import { DefineComponent } from 'vue';
|
|
6
7
|
import { EntityId } from './tradingview-types/charting_library';
|
|
7
8
|
import { IBasicDataFeed } from './tradingview-types/charting_library';
|
|
8
9
|
import { IChartingLibraryWidget } from './tradingview-types/charting_library';
|
|
9
10
|
import { PublicProps } from 'vue';
|
|
11
|
+
import { Ref } from 'vue';
|
|
10
12
|
|
|
11
13
|
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
12
14
|
chartRefs: WidgetIccandleChartRefs;
|
|
@@ -39,7 +41,11 @@ declare type __VLS_Props = {
|
|
|
39
41
|
isShowTrackerButton?: boolean;
|
|
40
42
|
/** Show the scanner popup at all. Defaults to `true`. */
|
|
41
43
|
isShowScannerPopup?: boolean;
|
|
42
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Chart resolutions where the scanner popup is shown.
|
|
46
|
+
* If set, the popup is hidden when the chart interval is outside this list.
|
|
47
|
+
* Also used to gate pattern date-range drawing.
|
|
48
|
+
*/
|
|
43
49
|
availableIntervals?: string[];
|
|
44
50
|
/** Called when the user clicks Scan in the scanner popup. */
|
|
45
51
|
onScanClick?: () => void;
|
|
@@ -75,6 +81,15 @@ export declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Pro
|
|
|
75
81
|
|
|
76
82
|
export declare const handleResultIframeLoad: (iframe: HTMLIFrameElement | null) => void;
|
|
77
83
|
|
|
84
|
+
/** Host-side copy of the embed session id token. Set by `auth.signIn`. */
|
|
85
|
+
export declare const ICCANDLE_TOKEN_KEY = "iccandle_token";
|
|
86
|
+
|
|
87
|
+
export declare type ICCandleAuth = {
|
|
88
|
+
/** Live embed session mirrored on the host via `iccandle_token`. */
|
|
89
|
+
isAuthenticated: boolean;
|
|
90
|
+
idToken: string | null;
|
|
91
|
+
};
|
|
92
|
+
|
|
78
93
|
export declare const OPEN_PRICING_MESSAGE_TYPE = "open-pricing";
|
|
79
94
|
|
|
80
95
|
export declare type OpenPricingMessage = {
|
|
@@ -107,6 +122,18 @@ export declare type SelectorScanMessage = {
|
|
|
107
122
|
url: string;
|
|
108
123
|
};
|
|
109
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Host-side view of whether the results iframe is already signed in.
|
|
127
|
+
*
|
|
128
|
+
* The embed posts `auth.signIn` / `auth.signOut` after its NextAuth session
|
|
129
|
+
* changes. Use this to skip minting a new easy-auth user when a session
|
|
130
|
+
* already exists.
|
|
131
|
+
*/
|
|
132
|
+
export declare function useICCandleAuth(): {
|
|
133
|
+
isAuthenticated: ComputedRef<boolean>;
|
|
134
|
+
idToken: Ref<string | null, string | null>;
|
|
135
|
+
};
|
|
136
|
+
|
|
110
137
|
declare const WIDGET_LANGUAGES: readonly ["en", "zh", "vi", "th", "ko", "ja", "mn", "ru"];
|
|
111
138
|
|
|
112
139
|
export declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
|
|
@@ -150,7 +177,11 @@ export declare type WidgetIccandleProps = {
|
|
|
150
177
|
isShowTrackerButton?: boolean;
|
|
151
178
|
/** Show the scanner popup at all. Defaults to `true`. */
|
|
152
179
|
isShowScannerPopup?: boolean;
|
|
153
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Chart resolutions where the scanner popup is shown.
|
|
182
|
+
* If set, the popup is hidden when the chart interval is outside this list.
|
|
183
|
+
* Also used to gate pattern date-range drawing.
|
|
184
|
+
*/
|
|
154
185
|
availableIntervals?: string[];
|
|
155
186
|
/** Called when the user clicks Scan in the scanner popup. */
|
|
156
187
|
onScanClick?: () => void;
|