@iccandle/reactjs-widget 0.2.6 → 0.2.8
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.
|
@@ -14362,7 +14362,7 @@ declare function withPlayChart<A extends unknown[]>(factory: (...args: A) => IBa
|
|
|
14362
14362
|
type GeneratedCandlesTheme = "light" | "dark";
|
|
14363
14363
|
declare const getCustomIndicators: (theme?: GeneratedCandlesTheme) => Promise<readonly CustomIndicator[]>;
|
|
14364
14364
|
|
|
14365
|
-
declare const WIDGET_RESULT_URL = "
|
|
14365
|
+
declare const WIDGET_RESULT_URL = "https://embed-iccandle-app.iccandle.ai";
|
|
14366
14366
|
|
|
14367
14367
|
export { WIDGET_RESULT_URL, WidgetIccandle, getCustomIndicators, handleResultIframeLoad, withPlayChart };
|
|
14368
14368
|
export type { GeneratedCandlesTheme, WidgetIccandleProps, WidgetLanguage };
|
package/dist/widget-iccandle.js
CHANGED
|
@@ -4630,7 +4630,7 @@ const {
|
|
|
4630
4630
|
formToJSON: cP,
|
|
4631
4631
|
getAdapter: uP,
|
|
4632
4632
|
mergeConfig: dP
|
|
4633
|
-
} = Be, so = "An unknown error occurred", Li = "
|
|
4633
|
+
} = Be, so = "An unknown error occurred", Li = "https://embed-iccandle-app.iccandle.ai", Gn = "tv:clicked-news-event", pi = "tv:selected-news-events", Wt = 100, jh = 100, qs = (e) => e === "1" ? 120 : e === "5" ? 480 : e === "1D" ? 20 * 3600 : parseInt(e, 10) * 60, xt = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 : parseInt(e, 10) * 60, Uh = [
|
|
4634
4634
|
"en",
|
|
4635
4635
|
"zh",
|
|
4636
4636
|
"vi",
|
|
@@ -16824,23 +16824,23 @@ const mP = ({
|
|
|
16824
16824
|
}, fP = (e) => {
|
|
16825
16825
|
const t = e?.contentWindow;
|
|
16826
16826
|
if (!t || !e?.src) return;
|
|
16827
|
-
const n = new URL(e.src).origin
|
|
16828
|
-
if (t.postMessage(
|
|
16827
|
+
const n = new URL(e.src).origin, i = () => t.postMessage(
|
|
16829
16828
|
JSON.stringify({
|
|
16830
16829
|
type: "parent-origin",
|
|
16831
16830
|
origin: window.location.origin
|
|
16832
16831
|
}),
|
|
16833
16832
|
n
|
|
16834
|
-
)
|
|
16835
|
-
|
|
16833
|
+
);
|
|
16834
|
+
if ([0, 300, 1e3, 2500].forEach((a) => window.setTimeout(i, a)), new URLSearchParams(window.location.search).get("payment") === "success") {
|
|
16835
|
+
const a = () => t.postMessage(
|
|
16836
16836
|
JSON.stringify({ type: "payment-success" }),
|
|
16837
16837
|
n
|
|
16838
16838
|
);
|
|
16839
|
-
[0, 600, 1500].forEach((
|
|
16840
|
-
const
|
|
16839
|
+
[0, 600, 1500].forEach((s) => window.setTimeout(a, s));
|
|
16840
|
+
const o = new URL(window.location.href);
|
|
16841
16841
|
["payment", "session_id", "lookup_key"].forEach(
|
|
16842
|
-
(
|
|
16843
|
-
), window.history.replaceState({}, "",
|
|
16842
|
+
(s) => o.searchParams.delete(s)
|
|
16843
|
+
), window.history.replaceState({}, "", o);
|
|
16844
16844
|
}
|
|
16845
16845
|
};
|
|
16846
16846
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iccandle/reactjs-widget",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
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",
|