@rash2x/bridge-widget 0.5.5 → 0.5.7
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-Du3Jvj8-.cjs → index-AFLl3rO6.cjs} +2 -2
- package/dist/{index-Du3Jvj8-.cjs.map → index-AFLl3rO6.cjs.map} +1 -1
- package/dist/{index-IktEMotK.js → index-CN5iTjTf.js} +2 -2
- package/dist/{index-IktEMotK.js.map → index-CN5iTjTf.js.map} +1 -1
- package/dist/{index-DuPQ_srt.js → index-CcMa0AVe.js} +5 -5
- package/dist/index-CcMa0AVe.js.map +1 -0
- package/dist/{index-DxLEQnH4.cjs → index-D9tX8340.cjs} +5 -5
- package/dist/index-D9tX8340.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/index-DuPQ_srt.js.map +0 -1
- package/dist/index-DxLEQnH4.cjs.map +0 -1
|
@@ -3765,8 +3765,8 @@ function useSilentValidations(amountString) {
|
|
|
3765
3765
|
function useTelegramRestriction() {
|
|
3766
3766
|
const { fromChain, toChain } = useChainsStore();
|
|
3767
3767
|
const restriction = useMemo(() => {
|
|
3768
|
-
const isTelegramEnv = typeof window !== "undefined" &&
|
|
3769
|
-
|
|
3768
|
+
const isTelegramEnv = typeof window !== "undefined" && /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
3769
|
+
typeof window.TelegramWebviewProxy?.postEvent === "function";
|
|
3770
3770
|
if (!isTelegramEnv) {
|
|
3771
3771
|
return { isRestricted: false, isTelegramEnv: false };
|
|
3772
3772
|
}
|
|
@@ -3885,7 +3885,7 @@ const MainButton = () => {
|
|
|
3885
3885
|
};
|
|
3886
3886
|
const disabled = isBusy || status === "loading" || !isTelegramRestricted && !missingSrc && !missingDst && (amountNum <= 0 || isBalanceLoading || hasInsufficientBalance || hasAmountTooLarge || !gas.hasEnoughGas || noRoute || !isValidForTransfer);
|
|
3887
3887
|
return /* @__PURE__ */ jsxs("div", { className: "pt-4 space-y-4", children: [
|
|
3888
|
-
isTelegramRestricted && /* @__PURE__ */ jsx(Alert, { variant: "warning", className: "mt-2 text-sm font-medium text-center", children: /* @__PURE__ */ jsx(AlertDescription, { children: t2("telegram.restrictionMessage") }) }),
|
|
3888
|
+
isTelegramRestricted && /* @__PURE__ */ jsx(Alert, { variant: "warning", className: "mt-2 text-sm font-medium text-center", children: /* @__PURE__ */ jsx(AlertDescription, { className: "leading-snug tracking-wide", children: t2("telegram.restrictionMessage") }) }),
|
|
3889
3889
|
/* @__PURE__ */ jsx(
|
|
3890
3890
|
Button,
|
|
3891
3891
|
{
|
|
@@ -25808,7 +25808,7 @@ class WalletConnectModal {
|
|
|
25808
25808
|
}
|
|
25809
25809
|
async initUi() {
|
|
25810
25810
|
if (typeof window !== "undefined") {
|
|
25811
|
-
await import("./index-
|
|
25811
|
+
await import("./index-CN5iTjTf.js");
|
|
25812
25812
|
const modal = document.createElement("wcm-modal");
|
|
25813
25813
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25814
25814
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26565,4 +26565,4 @@ export {
|
|
|
26565
26565
|
calculateMinReceived as y,
|
|
26566
26566
|
estimateTonNetworkFee as z
|
|
26567
26567
|
};
|
|
26568
|
-
//# sourceMappingURL=index-
|
|
26568
|
+
//# sourceMappingURL=index-CcMa0AVe.js.map
|