@iccandle/reactjs-widget 0.1.9 → 0.1.11
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 +11 -11
- package/dist/widget-iccandle.d.ts +2 -4
- package/dist/widget-iccandle.js +3 -3
- package/package.json +1 -1
|
@@ -14351,9 +14351,7 @@ declare function withPlayChart<T extends IBasicDataFeed>(datafeed: T): T;
|
|
|
14351
14351
|
declare function withPlayChart<A extends unknown[]>(factory: (...args: A) => IBasicDataFeed, ...args: A): IBasicDataFeed;
|
|
14352
14352
|
|
|
14353
14353
|
type GeneratedCandlesTheme = "light" | "dark";
|
|
14354
|
-
/** Pane-matching mask color so predicted bars hide the underlying series. */
|
|
14355
|
-
declare const getGeneratedCandlesMaskColor: (theme?: GeneratedCandlesTheme) => string;
|
|
14356
14354
|
declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Promise<readonly CustomIndicator[]>;
|
|
14357
14355
|
|
|
14358
|
-
export { WidgetIccandle, getCustomIndicators,
|
|
14359
|
-
export type { GeneratedCandlesTheme,
|
|
14356
|
+
export { WidgetIccandle, getCustomIndicators, withPlayChart };
|
|
14357
|
+
export type { GeneratedCandlesTheme, WidgetIccandleProps, WidgetLanguage };
|
package/dist/widget-iccandle.js
CHANGED
|
@@ -5248,12 +5248,13 @@ function Rg({
|
|
|
5248
5248
|
const B = JSON.parse(
|
|
5249
5249
|
localStorage.getItem("search-filter") || "{}"
|
|
5250
5250
|
), G = {
|
|
5251
|
+
// Current chart resolution
|
|
5252
|
+
reference_resolution: r,
|
|
5251
5253
|
// Search timeframe
|
|
5252
5254
|
resolution: o,
|
|
5253
5255
|
symbol: n,
|
|
5254
5256
|
end_timestamp: E,
|
|
5255
5257
|
start_timestamp: A,
|
|
5256
|
-
window_size: i,
|
|
5257
5258
|
top_k: B.top_k || 25,
|
|
5258
5259
|
analyze_window: B.probability || 0,
|
|
5259
5260
|
candle_id: Y?.id || ""
|
|
@@ -5265,7 +5266,7 @@ function Rg({
|
|
|
5265
5266
|
const te = B.period * 365.25 * 24 * 60 * 60, F = E - te;
|
|
5266
5267
|
G.filter || (G.filter = {}), G.filter.period = F;
|
|
5267
5268
|
}
|
|
5268
|
-
const W = `${un}/${m}?
|
|
5269
|
+
const W = `${un}/${m}?symbol=${G.symbol}&ref_res=${G.reference_resolution}&tk=${G.top_k}&res=${G.resolution}&cid=${G.candle_id}&from=${G.start_timestamp * 1e3}&to=${G.end_timestamp * 1e3}` + (G.filter?.symbols?.length ? `&fs=${G.filter.symbols}` : "") + (G.filter?.period != null ? `&period=${G.filter.period}` : "") + (f === "dark" ? "&theme=dark" : "&theme=light");
|
|
5269
5270
|
g(), t(W);
|
|
5270
5271
|
}, [
|
|
5271
5272
|
b,
|
|
@@ -15876,6 +15877,5 @@ const bx = Oc(function({
|
|
|
15876
15877
|
export {
|
|
15877
15878
|
Yx as WidgetIccandle,
|
|
15878
15879
|
zx as getCustomIndicators,
|
|
15879
|
-
bc as getGeneratedCandlesMaskColor,
|
|
15880
15880
|
Ux as withPlayChart
|
|
15881
15881
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iccandle/reactjs-widget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "React scanner overlay for TradingView Charting Library — ICCandle pattern search, remote theming, and plugin iframe integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "ICCandle",
|