@rash2x/bridge-widget 0.6.43 → 0.6.45
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-DnmdzSj9.js → index-B5httmag.js} +2 -2
- package/dist/{index-DnmdzSj9.js.map → index-B5httmag.js.map} +1 -1
- package/dist/{index-Ccca0yyI.cjs → index-CIai7CQu.cjs} +2 -2
- package/dist/{index-Ccca0yyI.cjs.map → index-CIai7CQu.cjs.map} +1 -1
- package/dist/{index-Cqs3pq51.cjs → index-D4qTzY3O.cjs} +25 -5
- package/dist/index-D4qTzY3O.cjs.map +1 -0
- package/dist/{index-B6AZb_BQ.js → index-HW3pzGO_.js} +26 -6
- package/dist/index-HW3pzGO_.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-B6AZb_BQ.js.map +0 -1
- package/dist/index-Cqs3pq51.cjs.map +0 -1
|
@@ -26,6 +26,7 @@ const tooltip = require("@/components/ui/tooltip");
|
|
|
26
26
|
const alert = require("@/components/ui/alert");
|
|
27
27
|
const sonner = require("sonner");
|
|
28
28
|
const badge = require("@/components/ui/badge");
|
|
29
|
+
const reactDialog = require("@radix-ui/react-dialog");
|
|
29
30
|
const viem = require("viem");
|
|
30
31
|
const tronwalletAdapters = require("@tronweb3/tronwallet-adapters");
|
|
31
32
|
const tronweb = require("tronweb");
|
|
@@ -4418,7 +4419,7 @@ const ProgressStep = ({
|
|
|
4418
4419
|
title: t2("transaction.steps.completed")
|
|
4419
4420
|
}
|
|
4420
4421
|
];
|
|
4421
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex relative flex-col gap-6 flex-1 items-center justify-start text-center bg-background noise p-10
|
|
4422
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex relative flex-col gap-6 flex-1 items-center justify-start text-center bg-background noise p-10", children: [
|
|
4422
4423
|
icon,
|
|
4423
4424
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2 pb-2 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.inProgress") }) }),
|
|
4424
4425
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
@@ -4440,6 +4441,25 @@ const ProgressStep = ({
|
|
|
4440
4441
|
] })
|
|
4441
4442
|
] }) });
|
|
4442
4443
|
};
|
|
4444
|
+
const FailedStep = ({
|
|
4445
|
+
icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircleIcon, { className: "w-16 h-16" })
|
|
4446
|
+
}) => {
|
|
4447
|
+
const { current, reset } = useTransactionStore();
|
|
4448
|
+
const { t: t2 } = useBridgeTranslation();
|
|
4449
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { showCloseButton: true, className: "overflow-hidden md:max-w-[420px] p-0", children: [
|
|
4450
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center noise p-10 pb-0", children: [
|
|
4451
|
+
icon,
|
|
4452
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pb-2 text-center", children: [
|
|
4453
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.failed") }),
|
|
4454
|
+
current?.errorCode && /* @__PURE__ */ jsxRuntime.jsx(reactDialog.DialogDescription, { children: t2(
|
|
4455
|
+
`errors.${current.errorCode}`,
|
|
4456
|
+
current.errorParams || {}
|
|
4457
|
+
) })
|
|
4458
|
+
] })
|
|
4459
|
+
] }),
|
|
4460
|
+
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogFooter, { className: "px-10 pb-10", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { variant: "outline", className: "w-full min-w-40", onClick: reset, children: t2("common.close") }) })
|
|
4461
|
+
] });
|
|
4462
|
+
};
|
|
4443
4463
|
const EXPLORER_CONFIGS = {
|
|
4444
4464
|
// TON
|
|
4445
4465
|
ton: {
|
|
@@ -4664,7 +4684,7 @@ const ConfirmStep = ({
|
|
|
4664
4684
|
}) => {
|
|
4665
4685
|
const { t: t2 } = useBridgeTranslation();
|
|
4666
4686
|
const { formatTime } = useCountdown(90);
|
|
4667
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center noise p-10
|
|
4687
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center noise p-10", children: [
|
|
4668
4688
|
icon,
|
|
4669
4689
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pb-2 text-center", children: [
|
|
4670
4690
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.confirm") }),
|
|
@@ -4690,7 +4710,7 @@ const StatusStepsDialog = ({
|
|
|
4690
4710
|
step = /* @__PURE__ */ jsxRuntime.jsx(SuccessStep, { icon: icons?.success });
|
|
4691
4711
|
}
|
|
4692
4712
|
if (status === "failed") {
|
|
4693
|
-
step = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4713
|
+
step = /* @__PURE__ */ jsxRuntime.jsx(FailedStep, { icon: icons?.failed });
|
|
4694
4714
|
}
|
|
4695
4715
|
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: true, onOpenChange: () => reset(), children: step });
|
|
4696
4716
|
};
|
|
@@ -25946,7 +25966,7 @@ class WalletConnectModal {
|
|
|
25946
25966
|
}
|
|
25947
25967
|
async initUi() {
|
|
25948
25968
|
if (typeof window !== "undefined") {
|
|
25949
|
-
await Promise.resolve().then(() => require("./index-
|
|
25969
|
+
await Promise.resolve().then(() => require("./index-CIai7CQu.cjs"));
|
|
25950
25970
|
const modal = document.createElement("wcm-modal");
|
|
25951
25971
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25952
25972
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26703,4 +26723,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
26703
26723
|
exports.useSwapModel = useSwapModel;
|
|
26704
26724
|
exports.useTokensStore = useTokensStore;
|
|
26705
26725
|
exports.useTransactionStore = useTransactionStore;
|
|
26706
|
-
//# sourceMappingURL=index-
|
|
26726
|
+
//# sourceMappingURL=index-D4qTzY3O.cjs.map
|