@rash2x/bridge-widget 0.6.68 → 0.6.69
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-D3Rdww1n.cjs → index-BdIFtxSM.cjs} +32 -3
- package/dist/index-BdIFtxSM.cjs.map +1 -0
- package/dist/{index-qL-cBcPF.js → index-CkDt6lc8.js} +2 -2
- package/dist/{index-qL-cBcPF.js.map → index-CkDt6lc8.js.map} +1 -1
- package/dist/{index-BwdYKUP-.js → index-DV105AWa.js} +32 -3
- package/dist/index-DV105AWa.js.map +1 -0
- package/dist/{index-DNsYRKu0.cjs → index-Qp6MEGwg.cjs} +2 -2
- package/dist/{index-DNsYRKu0.cjs.map → index-Qp6MEGwg.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BwdYKUP-.js.map +0 -1
- package/dist/index-D3Rdww1n.cjs.map +0 -1
|
@@ -4244,7 +4244,36 @@ const CircleLinedIcon = (props) => {
|
|
|
4244
4244
|
const DevStatusControls = () => {
|
|
4245
4245
|
const { current, updateStatus, setSrcHash, setError } = useTransactionStore();
|
|
4246
4246
|
if (!current) return null;
|
|
4247
|
-
|
|
4247
|
+
const statuses = [
|
|
4248
|
+
"executing",
|
|
4249
|
+
"approving",
|
|
4250
|
+
"processing",
|
|
4251
|
+
"completed",
|
|
4252
|
+
"failed"
|
|
4253
|
+
];
|
|
4254
|
+
const handleStatusChange = (status) => {
|
|
4255
|
+
if (status === "failed") {
|
|
4256
|
+
setError("UNKNOWN_ERROR", { message: "Test error message" });
|
|
4257
|
+
} else {
|
|
4258
|
+
updateStatus(status);
|
|
4259
|
+
}
|
|
4260
|
+
if ((status === "processing" || status === "completed" || status === "failed") && !current.srcTxHash) {
|
|
4261
|
+
setSrcHash(
|
|
4262
|
+
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
|
|
4263
|
+
);
|
|
4264
|
+
}
|
|
4265
|
+
};
|
|
4266
|
+
return /* @__PURE__ */ jsx("div", { className: "fixed bottom-0 left-4 z-100", children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: statuses.map((status) => /* @__PURE__ */ jsx(
|
|
4267
|
+
Button,
|
|
4268
|
+
{
|
|
4269
|
+
size: "sm",
|
|
4270
|
+
variant: current.status === status ? "default" : "outline",
|
|
4271
|
+
onClick: () => handleStatusChange(status),
|
|
4272
|
+
className: "text-xs h-7 px-2",
|
|
4273
|
+
children: status
|
|
4274
|
+
},
|
|
4275
|
+
status
|
|
4276
|
+
)) }) });
|
|
4248
4277
|
};
|
|
4249
4278
|
const ProgressStep = ({
|
|
4250
4279
|
icon = /* @__PURE__ */ jsx(Loader2, { className: "w-16 h-16 animate-spin" }),
|
|
@@ -25826,7 +25855,7 @@ class WalletConnectModal {
|
|
|
25826
25855
|
}
|
|
25827
25856
|
async initUi() {
|
|
25828
25857
|
if (typeof window !== "undefined") {
|
|
25829
|
-
await import("./index-
|
|
25858
|
+
await import("./index-CkDt6lc8.js");
|
|
25830
25859
|
const modal = document.createElement("wcm-modal");
|
|
25831
25860
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25832
25861
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26595,4 +26624,4 @@ export {
|
|
|
26595
26624
|
getQuoteFees as y,
|
|
26596
26625
|
calculateMinReceived as z
|
|
26597
26626
|
};
|
|
26598
|
-
//# sourceMappingURL=index-
|
|
26627
|
+
//# sourceMappingURL=index-DV105AWa.js.map
|