@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.
@@ -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
- return null;
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-qL-cBcPF.js");
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-BwdYKUP-.js.map
26627
+ //# sourceMappingURL=index-DV105AWa.js.map