@multiversx/sdk-dapp-liquidity 1.1.6 → 1.1.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.
package/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/multiversx/mx-sdk-dapp-liquidity#readme",
30
30
  "license": "MIT",
31
- "version": "1.1.6",
31
+ "version": "1.1.7",
32
32
  "main": "index.js",
33
33
  "module": "index.mjs",
34
34
  "types": "index.d.ts",
@@ -18,7 +18,14 @@ const AccountAddress = ({
18
18
  "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]",
19
19
  className
20
20
  ),
21
- children: heroTag && showTag ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-truncate liq-text-left liq-text-neutral-100 uppercase", children: heroTag }) : /* @__PURE__ */ jsxRuntime.jsx(reactjs_components_TrimAddress_TrimAddress.TrimAddress, { address })
21
+ children: heroTag && showTag ? /* @__PURE__ */ jsxRuntime.jsx(
22
+ "div",
23
+ {
24
+ className: "liq-truncate liq-text-left liq-text-neutral-100 uppercase",
25
+ "data-testid": "mx-address",
26
+ children: heroTag
27
+ }
28
+ ) : /* @__PURE__ */ jsxRuntime.jsx(reactjs_components_TrimAddress_TrimAddress.TrimAddress, { address, "data-testid": "mx-address" })
22
29
  }
23
30
  );
24
31
  };
@@ -15,7 +15,14 @@ const AccountAddress = ({
15
15
  "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]",
16
16
  className
17
17
  ),
18
- children: heroTag && showTag ? /* @__PURE__ */ jsx("div", { className: "liq-truncate liq-text-left liq-text-neutral-100 uppercase", children: heroTag }) : /* @__PURE__ */ jsx(TrimAddress, { address })
18
+ children: heroTag && showTag ? /* @__PURE__ */ jsx(
19
+ "div",
20
+ {
21
+ className: "liq-truncate liq-text-left liq-text-neutral-100 uppercase",
22
+ "data-testid": "mx-address",
23
+ children: heroTag
24
+ }
25
+ ) : /* @__PURE__ */ jsx(TrimAddress, { address, "data-testid": "mx-address" })
19
26
  }
20
27
  );
21
28
  };
@@ -50,7 +50,13 @@ const BridgeAccountDisplay = ({
50
50
  target: "_blank",
51
51
  showExternalIcon: false,
52
52
  className: "!liq-relative",
53
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]", children: /* @__PURE__ */ jsxRuntime.jsx(reactjs_components_TrimAddress_TrimAddress.TrimAddress, { address: account.address }) })
53
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]", children: /* @__PURE__ */ jsxRuntime.jsx(
54
+ reactjs_components_TrimAddress_TrimAddress.TrimAddress,
55
+ {
56
+ address: account.address,
57
+ "data-testid": "evm-address"
58
+ }
59
+ ) })
54
60
  }
55
61
  ),
56
62
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -47,7 +47,13 @@ const BridgeAccountDisplay = ({
47
47
  target: "_blank",
48
48
  showExternalIcon: false,
49
49
  className: "!liq-relative",
50
- children: /* @__PURE__ */ jsx("div", { className: "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]", children: /* @__PURE__ */ jsx(TrimAddress, { address: account.address }) })
50
+ children: /* @__PURE__ */ jsx("div", { className: "liq-flex liq-min-w-0 liq-flex-grow liq-overflow-hidden liq-leading-none liq-max-w-[10rem]", children: /* @__PURE__ */ jsx(
51
+ TrimAddress,
52
+ {
53
+ address: account.address,
54
+ "data-testid": "evm-address"
55
+ }
56
+ ) })
51
57
  }
52
58
  ),
53
59
  /* @__PURE__ */ jsx(
@@ -3,6 +3,7 @@ interface WalletTruncateProps {
3
3
  startLength?: number;
4
4
  endLength?: number;
5
5
  className?: string;
6
+ 'data-testid'?: string;
6
7
  }
7
- export declare const TrimAddress: ({ address, startLength, endLength, className }: WalletTruncateProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const TrimAddress: ({ "data-testid": dataTestId, address, startLength, endLength, className }: WalletTruncateProps) => import("react/jsx-runtime").JSX.Element | null;
8
9
  export {};
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const TrimAddress = ({
6
+ "data-testid": dataTestId,
6
7
  address,
7
8
  startLength = 4,
8
9
  endLength = 5,
@@ -14,6 +15,7 @@ const TrimAddress = ({
14
15
  return /* @__PURE__ */ jsxRuntime.jsxs(
15
16
  "div",
16
17
  {
18
+ "data-testid": dataTestId,
17
19
  className: `liq-truncate liq-text-left liq-text-neutral-100 uppercase liq-flex liq-gap-1 ${className}`,
18
20
  children: [
19
21
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: address.slice(0, startLength) }),
@@ -1,5 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  const TrimAddress = ({
3
+ "data-testid": dataTestId,
3
4
  address,
4
5
  startLength = 4,
5
6
  endLength = 5,
@@ -11,6 +12,7 @@ const TrimAddress = ({
11
12
  return /* @__PURE__ */ jsxs(
12
13
  "div",
13
14
  {
15
+ "data-testid": dataTestId,
14
16
  className: `liq-truncate liq-text-left liq-text-neutral-100 uppercase liq-flex liq-gap-1 ${className}`,
15
17
  children: [
16
18
  /* @__PURE__ */ jsx("span", { children: address.slice(0, startLength) }),