@xyo-network/react-wallet 2.25.28 → 2.25.31

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.
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WalletAccountDetails = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
6
  const sdk_js_1 = require("@xylabs/sdk-js");
8
7
  const sdk_react_1 = require("@xylabs/sdk-react");
9
8
  const react_network_1 = require("@xyo-network/react-network");
@@ -14,7 +13,7 @@ const WalletAccountDetails = (_a) => {
14
13
  const { account = accountProp } = (0, contexts_1.useAccount)();
15
14
  const { network } = (0, react_network_1.useNetwork)();
16
15
  const exploreAddressUrl = `${exploreUrl}/recent?account=${account === null || account === void 0 ? void 0 : account.addressValue.hex}&network=${(_b = network === null || network === void 0 ? void 0 : network.name) !== null && _b !== void 0 ? _b : 'main'}`;
17
- return ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexCol, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(sdk_react_1.EthAccountButton, { address: sdk_js_1.EthAddress.fromString(account === null || account === void 0 ? void 0 : account.addressValue.hex) }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ spacing: 1, direction: "row" }, { children: [(0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Tokens", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.tokens`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "NFTs", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.nfts`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Signatures", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signatures`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Signins", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signins`, target: "_blank" })] }))] })));
16
+ return ((0, jsx_runtime_1.jsxs)(sdk_react_1.FlexCol, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(sdk_react_1.EthAccountButton, { address: sdk_js_1.EthAddress.fromString(account === null || account === void 0 ? void 0 : account.addressValue.hex) }), (0, jsx_runtime_1.jsxs)(sdk_react_1.FlexRow, Object.assign({ gap: 1 }, { children: [(0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Tokens", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.tokens`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "NFTs", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.nfts`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Signatures", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signatures`, target: "_blank" }), (0, jsx_runtime_1.jsx)(sdk_react_1.NumberStatus, { rounded: true, title: "Signins", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signins`, target: "_blank" })] }))] })));
18
17
  };
19
18
  exports.WalletAccountDetails = WalletAccountDetails;
20
19
  //# sourceMappingURL=WalletAccountDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WalletAccountDetails.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountDetails/WalletAccountDetails.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAqC;AACrC,2CAA2C;AAC3C,iDAAyF;AAEzF,8DAAuD;AAEvD,6CAA2C;AAOpC,MAAM,oBAAoB,GAAwC,CAAC,EAA8E,EAAE,EAAE;;QAAlF,EAAE,UAAU,GAAG,6BAA6B,EAAE,OAAO,EAAE,WAAW,OAAY,EAAP,KAAK,sBAA5E,yBAA8E,CAAF;IACpJ,MAAM,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,IAA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AAE,EAAE,GAAG,iBAAiB,wCAAwC,EAAE,MAAM,EAAC,QAAQ,GAAG,EACvI,uBAAC,wBAAY,IAAC,OAAO,QAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,iBAAiB,qCAAqC,EAAE,MAAM,EAAC,QAAQ,GAAG,KACzH,KACF,CACX,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,oBAAoB,wBAgBhC"}
package/dist/docs.json CHANGED
@@ -228,7 +228,7 @@
228
228
  "sources": [
229
229
  {
230
230
  "fileName": "packages/wallet/src/components/WalletAccountDetails/WalletAccountDetails.tsx",
231
- "line": 10,
231
+ "line": 9,
232
232
  "character": 2
233
233
  }
234
234
  ],
@@ -6765,7 +6765,7 @@
6765
6765
  "sources": [
6766
6766
  {
6767
6767
  "fileName": "packages/wallet/src/components/WalletAccountDetails/WalletAccountDetails.tsx",
6768
- "line": 11,
6768
+ "line": 10,
6769
6769
  "character": 2
6770
6770
  }
6771
6771
  ],
@@ -25007,7 +25007,7 @@
25007
25007
  "sources": [
25008
25008
  {
25009
25009
  "fileName": "packages/wallet/src/components/WalletAccountDetails/WalletAccountDetails.tsx",
25010
- "line": 9,
25010
+ "line": 8,
25011
25011
  "character": 17
25012
25012
  }
25013
25013
  ],
@@ -61542,7 +61542,7 @@
61542
61542
  "sources": [
61543
61543
  {
61544
61544
  "fileName": "packages/wallet/src/components/WalletAccountDetails/WalletAccountDetails.tsx",
61545
- "line": 14,
61545
+ "line": 13,
61546
61546
  "character": 13
61547
61547
  }
61548
61548
  ],
@@ -1,13 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Stack } from '@mui/material';
3
2
  import { EthAddress } from '@xylabs/sdk-js';
4
- import { EthAccountButton, FlexCol, NumberStatus } from '@xylabs/sdk-react';
3
+ import { EthAccountButton, FlexCol, FlexRow, NumberStatus } from '@xylabs/sdk-react';
5
4
  import { useNetwork } from '@xyo-network/react-network';
6
5
  import { useAccount } from '../../contexts';
7
6
  export const WalletAccountDetails = ({ exploreUrl = 'https://explore.xyo.network', account: accountProp, ...props }) => {
8
7
  const { account = accountProp } = useAccount();
9
8
  const { network } = useNetwork();
10
9
  const exploreAddressUrl = `${exploreUrl}/recent?account=${account?.addressValue.hex}&network=${network?.name ?? 'main'}`;
11
- return (_jsxs(FlexCol, { ...props, children: [_jsx(EthAccountButton, { address: EthAddress.fromString(account?.addressValue.hex) }), _jsxs(Stack, { spacing: 1, direction: "row", children: [_jsx(NumberStatus, { rounded: true, title: "Tokens", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.tokens`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "NFTs", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.nfts`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "Signatures", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signatures`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "Signins", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signins`, target: "_blank" })] })] }));
10
+ return (_jsxs(FlexCol, { ...props, children: [_jsx(EthAccountButton, { address: EthAddress.fromString(account?.addressValue.hex) }), _jsxs(FlexRow, { gap: 1, children: [_jsx(NumberStatus, { rounded: true, title: "Tokens", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.tokens`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "NFTs", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.nfts`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "Signatures", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signatures`, target: "_blank" }), _jsx(NumberStatus, { rounded: true, title: "Signins", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signins`, target: "_blank" })] })] }));
12
11
  };
13
12
  //# sourceMappingURL=WalletAccountDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WalletAccountDetails.js","sourceR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,MAAC,OAAO,IAAC,GAAG,EAAE,CAAC,aACb,KAAC,YAAY,IAAC,OAAO,QAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,iBAAiB,oCAAoC,EAAE,MAAM,EAAC,QAAQ,GAAG,EAC/H,KAAC,YAAY,IAAC,OAAO,QAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,iBAAiB,kCAAkC,EAAE,MAAM,EAAC,QAAQ,GAAG,EAC3H,KAAC,YAAY,IAAC,OAAO,QAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,iBAAiB,wCAAwC,EAAE,MAAM,EAAC,QAAQ,GAAG,EACvI,KAAC,YAAY,IAAC,OAAO,QAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,iBAAiB,qCAAqC,EAAE,MAAM,EAAC,QAAQ,GAAG,IACzH,IACF,CACX,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -12,19 +12,19 @@
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.9.0",
14
14
  "@emotion/styled": "^11.8.1",
15
- "@mui/material": "^5.8.1",
15
+ "@mui/material": "^5.8.2",
16
16
  "@xylabs/sdk-js": "^2.5.5",
17
17
  "@xylabs/sdk-react": "^2.12.10",
18
18
  "@xyo-network/core": "^2.20.38",
19
- "@xyo-network/react-network": "^2.25.28",
20
- "@xyo-network/react-shared": "^2.25.28",
21
- "@xyo-network/react-theme": "^2.25.28",
19
+ "@xyo-network/react-network": "^2.25.31",
20
+ "@xyo-network/react-shared": "^2.25.31",
21
+ "@xyo-network/react-theme": "^2.25.31",
22
22
  "lodash": "^4.17.21",
23
23
  "react": "^18.1.0",
24
24
  "react-dom": "^18.1.0",
25
25
  "react-router-dom": "^6.3.0",
26
26
  "tslib": "^2.4.0",
27
- "typedoc": "^0.22.15"
27
+ "typedoc": "^0.22.16"
28
28
  },
29
29
  "description": "Common React library for all XYO projects that use React",
30
30
  "devDependencies": {
@@ -103,6 +103,6 @@
103
103
  },
104
104
  "sideEffects": false,
105
105
  "types": "dist/esm/index.d.ts",
106
- "version": "2.25.28",
106
+ "version": "2.25.31",
107
107
  "packageManager": "yarn@3.1.1"
108
108
  }
@@ -1,6 +1,5 @@
1
- import { Stack } from '@mui/material'
2
1
  import { EthAddress } from '@xylabs/sdk-js'
3
- import { EthAccountButton, FlexBoxProps, FlexCol, NumberStatus } from '@xylabs/sdk-react'
2
+ import { EthAccountButton, FlexBoxProps, FlexCol, FlexRow, NumberStatus } from '@xylabs/sdk-react'
4
3
  import { XyoAccount } from '@xyo-network/core'
5
4
  import { useNetwork } from '@xyo-network/react-network'
6
5
 
@@ -19,12 +18,12 @@ export const WalletAccountDetails: React.FC<WalletAccountDetailsProps> = ({ expl
19
18
  return (
20
19
  <FlexCol {...props}>
21
20
  <EthAccountButton address={EthAddress.fromString(account?.addressValue.hex)} />
22
- <Stack spacing={1} direction="row">
21
+ <FlexRow gap={1}>
23
22
  <NumberStatus rounded title="Tokens" value={0} to={`${exploreAddressUrl}&schema=network.xyo.account.tokens`} target="_blank" />
24
23
  <NumberStatus rounded title="NFTs" value={0} to={`${exploreAddressUrl}&schema=network.xyo.account.nfts`} target="_blank" />
25
24
  <NumberStatus rounded title="Signatures" value={0} to={`${exploreAddressUrl}&schema=network.xyo.account.signatures`} target="_blank" />
26
25
  <NumberStatus rounded title="Signins" value={0} to={`${exploreAddressUrl}&schema=network.xyo.account.signins`} target="_blank" />
27
- </Stack>
26
+ </FlexRow>
28
27
  </FlexCol>
29
28
  )
30
29
  }