@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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-D3Rdww1n.cjs");
3
+ const index = require("./index-BdIFtxSM.cjs");
4
4
  exports.DEFAULT_SLIPPAGE_BPS = index.DEFAULT_SLIPPAGE_BPS;
5
5
  exports.EvaaBridge = index.EvaaBridge;
6
6
  exports.RoutePriority = index.RoutePriority;
@@ -1,4 +1,4 @@
1
- import { L, d, f, e, D, Q, H, z, W, U, w, s, v, r, p, q, G, Z, a5, $, a2, x, A, y, a0, B, _, a3, a4, S, a1, P, I, V, Y, a6, J, K, X, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-BwdYKUP-.js";
1
+ import { L, d, f, e, D, Q, H, z, W, U, w, s, v, r, p, q, G, Z, a5, $, a2, x, A, y, a0, B, _, a3, a4, S, a1, P, I, V, Y, a6, J, K, X, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-DV105AWa.js";
2
2
  export {
3
3
  L as DEFAULT_SLIPPAGE_BPS,
4
4
  d as EvaaBridge,
@@ -4245,7 +4245,36 @@ const CircleLinedIcon = (props) => {
4245
4245
  const DevStatusControls = () => {
4246
4246
  const { current, updateStatus, setSrcHash, setError } = useTransactionStore();
4247
4247
  if (!current) return null;
4248
- return null;
4248
+ const statuses = [
4249
+ "executing",
4250
+ "approving",
4251
+ "processing",
4252
+ "completed",
4253
+ "failed"
4254
+ ];
4255
+ const handleStatusChange = (status) => {
4256
+ if (status === "failed") {
4257
+ setError("UNKNOWN_ERROR", { message: "Test error message" });
4258
+ } else {
4259
+ updateStatus(status);
4260
+ }
4261
+ if ((status === "processing" || status === "completed" || status === "failed") && !current.srcTxHash) {
4262
+ setSrcHash(
4263
+ "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
4264
+ );
4265
+ }
4266
+ };
4267
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 left-4 z-100", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1", children: statuses.map((status) => /* @__PURE__ */ jsxRuntime.jsx(
4268
+ button.Button,
4269
+ {
4270
+ size: "sm",
4271
+ variant: current.status === status ? "default" : "outline",
4272
+ onClick: () => handleStatusChange(status),
4273
+ className: "text-xs h-7 px-2",
4274
+ children: status
4275
+ },
4276
+ status
4277
+ )) }) });
4249
4278
  };
4250
4279
  const ProgressStep = ({
4251
4280
  icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "w-16 h-16 animate-spin" }),
@@ -25827,7 +25856,7 @@ class WalletConnectModal {
25827
25856
  }
25828
25857
  async initUi() {
25829
25858
  if (typeof window !== "undefined") {
25830
- await Promise.resolve().then(() => require("./index-DNsYRKu0.cjs"));
25859
+ await Promise.resolve().then(() => require("./index-Qp6MEGwg.cjs"));
25831
25860
  const modal = document.createElement("wcm-modal");
25832
25861
  document.body.insertAdjacentElement("beforeend", modal);
25833
25862
  OptionsCtrl.setIsUiLoaded(true);
@@ -26594,4 +26623,4 @@ exports.useSettingsStore = useSettingsStore;
26594
26623
  exports.useSwapModel = useSwapModel;
26595
26624
  exports.useTokensStore = useTokensStore;
26596
26625
  exports.useTransactionStore = useTransactionStore;
26597
- //# sourceMappingURL=index-D3Rdww1n.cjs.map
26626
+ //# sourceMappingURL=index-BdIFtxSM.cjs.map