@xyo-network/xl1-react-client-sdk 2.0.8 → 2.0.10
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/browser/client/components/connected/ConnectAccountsStack.d.ts +2 -2
- package/dist/browser/client/components/connected/ConnectAccountsStack.d.ts.map +1 -1
- package/dist/browser/client/components/connected/hooks/useConnectAccount.d.ts +1 -1
- package/dist/browser/client/index.mjs +1 -2
- package/dist/browser/client/index.mjs.map +2 -2
- package/dist/browser/index.mjs +4 -4
- package/dist/browser/index.mjs.map +2 -2
- package/dist/browser/shared/components/stack/LabelValueStack.d.ts.map +1 -1
- package/dist/browser/shared/index.mjs +3 -2
- package/dist/browser/shared/index.mjs.map +2 -2
- package/package.json +16 -14
package/dist/browser/index.mjs
CHANGED
|
@@ -362,8 +362,7 @@ import { isDefined as isDefined4, isUndefined as isUndefined3 } from "@xylabs/sd
|
|
|
362
362
|
import { useEffect as useEffect3 } from "react";
|
|
363
363
|
|
|
364
364
|
// src/client/components/connected/hooks/useConnectAccount.ts
|
|
365
|
-
import { asAddress } from "@xylabs/sdk-js";
|
|
366
|
-
import { assertEx } from "@xylabs/sdk-js";
|
|
365
|
+
import { asAddress, assertEx } from "@xylabs/sdk-js";
|
|
367
366
|
import { MainNetwork } from "@xyo-network/xl1-sdk";
|
|
368
367
|
import { useCallback as useCallback2, useState as useState3 } from "react";
|
|
369
368
|
var useConnectAccount = (gatewayName = MainNetwork.id, timeout) => {
|
|
@@ -1980,7 +1979,8 @@ import {
|
|
|
1980
1979
|
Typography as Typography14,
|
|
1981
1980
|
useTheme as useTheme3
|
|
1982
1981
|
} from "@mui/material";
|
|
1983
|
-
import { ellipsize
|
|
1982
|
+
import { ellipsize } from "@xylabs/sdk-js";
|
|
1983
|
+
import { isXyoAddress } from "@xyo-network/address";
|
|
1984
1984
|
import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1985
1985
|
var LabelValueStack = ({
|
|
1986
1986
|
labels,
|
|
@@ -1989,7 +1989,7 @@ var LabelValueStack = ({
|
|
|
1989
1989
|
}) => {
|
|
1990
1990
|
const theme = useTheme3();
|
|
1991
1991
|
const formattedValue = (value) => {
|
|
1992
|
-
if (
|
|
1992
|
+
if (isXyoAddress(value)) {
|
|
1993
1993
|
return ellipsize(value, 8);
|
|
1994
1994
|
}
|
|
1995
1995
|
return value;
|