@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.
@@ -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" && !!window.Telegram?.WebApp && window.Telegram?.WebApp?.platform !== "unknown";
3769
- console.log();
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-IktEMotK.js");
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-DuPQ_srt.js.map
26568
+ //# sourceMappingURL=index-CcMa0AVe.js.map