@xyo-network/react-module 10.0.3 → 10.0.5
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/components/Card/Module/CardActions.d.ts.map +1 -1
- package/dist/browser/components/Card/Module/components/DiscoverDialog.d.ts.map +1 -1
- package/dist/browser/components/DetailsBox.d.ts +1 -1
- package/dist/browser/components/DetailsBox.d.ts.map +1 -1
- package/dist/browser/components/TableCell.d.ts.map +1 -1
- package/dist/browser/index.mjs +9 -9
- package/dist/browser/index.mjs.map +2 -2
- package/package.json +75 -79
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/CardActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/CardActions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,GAAG,iBAAiB,CAsC5E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscoverDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Card/Module/components/DiscoverDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DiscoverDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Card/Module/components/DiscoverDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAIhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;CAC5C;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2BxD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@
|
|
1
|
+
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ModuleRenderProps } from '../ModuleRenderProps.tsx';
|
|
4
4
|
export declare const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsBox.d.ts","sourceRoot":"","sources":["../../../src/components/DetailsBox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DetailsBox.d.ts","sourceRoot":"","sources":["../../../src/components/DetailsBox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAMjE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,CA8BvE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/TableCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/TableCell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,cAAc,CASxE,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -5,12 +5,13 @@ import { Card as Card2 } from "@mui/material";
|
|
|
5
5
|
import { Card } from "@mui/material";
|
|
6
6
|
|
|
7
7
|
// src/components/Card/Module/CardActions.tsx
|
|
8
|
+
import { ButtonEx } from "@ariestools/sdk-react/button";
|
|
9
|
+
import { FlexRow } from "@ariestools/sdk-react/flexbox";
|
|
8
10
|
import { CardActions, Chip } from "@mui/material";
|
|
9
|
-
import { ButtonEx } from "@xylabs/react-button";
|
|
10
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
|
11
11
|
import { useState } from "react";
|
|
12
12
|
|
|
13
13
|
// src/components/Card/Module/components/DiscoverDialog.tsx
|
|
14
|
+
import { usePromise } from "@ariestools/sdk-react/promise";
|
|
14
15
|
import {
|
|
15
16
|
Button,
|
|
16
17
|
Dialog,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
Divider,
|
|
22
23
|
Paper
|
|
23
24
|
} from "@mui/material";
|
|
24
|
-
import { usePromise } from "@xylabs/react-promise";
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
26
|
var DiscoverDialog = ({
|
|
27
27
|
mod,
|
|
@@ -175,10 +175,10 @@ var DivinerCard = ({
|
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
// src/components/DetailsBox.tsx
|
|
178
|
-
import { EthAddressWrapper } from "@
|
|
179
|
-
import { ButtonEx as ButtonEx2 } from "@
|
|
180
|
-
import { EthAccountBox } from "@
|
|
181
|
-
import { FlexCol, FlexRow as FlexRow2 } from "@
|
|
178
|
+
import { EthAddressWrapper } from "@ariestools/eth-address";
|
|
179
|
+
import { ButtonEx as ButtonEx2 } from "@ariestools/sdk-react/button";
|
|
180
|
+
import { EthAccountBox } from "@ariestools/sdk-react/crypto";
|
|
181
|
+
import { FlexCol, FlexRow as FlexRow2 } from "@ariestools/sdk-react/flexbox";
|
|
182
182
|
import { findNetworkComponent as findNetworkComponent2 } from "@xyo-network/react-shared";
|
|
183
183
|
import { useState as useState2 } from "react";
|
|
184
184
|
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
@@ -207,9 +207,9 @@ var ModuleDetailsBox = ({
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
// src/components/TableCell.tsx
|
|
210
|
+
import { EthAddressWrapper as EthAddressWrapper2 } from "@ariestools/eth-address";
|
|
211
|
+
import { EthAccountBox as EthAccountBox2 } from "@ariestools/sdk-react/crypto";
|
|
210
212
|
import { TableCell } from "@mui/material";
|
|
211
|
-
import { EthAddressWrapper as EthAddressWrapper2 } from "@xylabs/eth-address";
|
|
212
|
-
import { EthAccountBox as EthAccountBox2 } from "@xylabs/react-crypto";
|
|
213
213
|
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
214
214
|
var ModuleTableCell = ({
|
|
215
215
|
children,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/Card/Diviner/Card.tsx", "../../src/components/Card/Module/Card.tsx", "../../src/components/Card/Module/CardActions.tsx", "../../src/components/Card/Module/components/DiscoverDialog.tsx", "../../src/components/Card/Module/CardContent.tsx", "../../src/components/Card/Module/CardHeader.tsx", "../../src/components/Card/Diviner/CardContent.tsx", "../../src/components/Card/Diviner/CardHeader.tsx", "../../src/components/DetailsBox.tsx", "../../src/components/TableCell.tsx", "../../src/hooks/useRefresh.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardActions } from '../Module/index.ts'\nimport { DivinerCardContent } from './CardContent.tsx'\nimport { DivinerCardHeader } from './CardHeader.tsx'\n\nexport const DivinerCard: React.FC<CardProps & ModuleRenderProps<DivinerInstance>> = ({\n children, mod, ...props\n}) => {\n return (\n <Card {...props}>\n <DivinerCardHeader mod={mod} />\n <DivinerCardContent mod={mod} />\n {children}\n <ModuleCardActions mod={mod} />\n </Card>\n )\n}\n", "import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardActions } from './CardActions.tsx'\nimport { ModuleCardContent } from './CardContent.tsx'\nimport { ModuleCardHeader } from './CardHeader.tsx'\n\nexport const ModuleCard: React.FC<CardProps & ModuleRenderProps> = ({ mod, ...props }) => {\n return (\n <Card {...props}>\n <ModuleCardHeader mod={mod} />\n <ModuleCardContent mod={mod} />\n <ModuleCardActions mod={mod} />\n </Card>\n )\n}\n", "import
|
|
5
|
-
"mappings": ";AACA,SAAS,QAAAA,aAAY;;;ACArB,SAAS,YAAY;;;
|
|
4
|
+
"sourcesContent": ["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardActions } from '../Module/index.ts'\nimport { DivinerCardContent } from './CardContent.tsx'\nimport { DivinerCardHeader } from './CardHeader.tsx'\n\nexport const DivinerCard: React.FC<CardProps & ModuleRenderProps<DivinerInstance>> = ({\n children, mod, ...props\n}) => {\n return (\n <Card {...props}>\n <DivinerCardHeader mod={mod} />\n <DivinerCardContent mod={mod} />\n {children}\n <ModuleCardActions mod={mod} />\n </Card>\n )\n}\n", "import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardActions } from './CardActions.tsx'\nimport { ModuleCardContent } from './CardContent.tsx'\nimport { ModuleCardHeader } from './CardHeader.tsx'\n\nexport const ModuleCard: React.FC<CardProps & ModuleRenderProps> = ({ mod, ...props }) => {\n return (\n <Card {...props}>\n <ModuleCardHeader mod={mod} />\n <ModuleCardContent mod={mod} />\n <ModuleCardActions mod={mod} />\n </Card>\n )\n}\n", "import { ButtonEx } from '@ariestools/sdk-react/button'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport type { CardActionsProps } from '@mui/material'\nimport { CardActions, Chip } from '@mui/material'\nimport React, { useState } from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { DiscoverDialog } from './components/index.ts'\n\nexport const ModuleCardActions: React.FC<CardActionsProps & ModuleRenderProps> = ({\n children, mod, sx, ...props\n}) => {\n const [discoverDialogOpen, setDiscoverDialogOpen] = useState(false)\n\n const config = mod?.config\n\n return (\n <CardActions\n sx={{\n alignItems: 'stretch', flexDirection: 'column', ml: 1, ...sx,\n }}\n {...props}\n >\n <FlexRow\n sx={{\n justifyContent: 'space-between',\n gap: 1,\n alignItems: 'center',\n }}\n >\n {mod\n ? <Chip label={config?.schema} size=\"small\" />\n : null}\n {children}\n <ButtonEx onClick={() => setDiscoverDialogOpen(true)} size=\"small\" variant=\"outlined\">\n Discover\n </ButtonEx>\n </FlexRow>\n <DiscoverDialog\n fullWidth\n mod={mod}\n open={discoverDialogOpen}\n setOpen={setDiscoverDialogOpen}\n sx={{ maxWidth: 'md' }}\n />\n </CardActions>\n )\n}\n", "import { usePromise } from '@ariestools/sdk-react/promise'\nimport type { DialogProps } from '@mui/material'\nimport {\n Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Paper,\n} from '@mui/material'\nimport type { ModuleInstance } from '@xyo-network/sdk'\nimport type { Dispatch, SetStateAction } from 'react'\nimport React from 'react'\n\nexport interface DiscoverDialogProps extends DialogProps {\n mod?: ModuleInstance\n setOpen?: Dispatch<SetStateAction<boolean>>\n}\n\n// Add a dialogue title and quick tip to show description of discover query\n\nexport const DiscoverDialog: React.FC<DiscoverDialogProps> = ({\n mod, setOpen, ...props\n}) => {\n const [discoverPayloads] = usePromise(async () => {\n return await mod?.state()\n }, [mod])\n\n return (\n <Dialog {...props}>\n <DialogTitle>\n Supported Queries for\n {mod?.config.name || mod?.address}\n </DialogTitle>\n <Divider />\n <DialogContent>\n <Paper sx={{ p: 1 }}>\n <DialogContentText>All modules share a set of base queries along with ones specific to the module.</DialogContentText>\n <pre>{JSON.stringify(discoverPayloads, null, 2)}</pre>\n </Paper>\n </DialogContent>\n <DialogActions>\n <Button onClick={() => setOpen?.(false)} variant=\"outlined\">\n Close\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n", "import type { CardContentProps } from '@mui/material'\nimport { CardContent } from '@mui/material'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\n\nexport const ModuleCardContent: React.FC<ModuleRenderProps & CardContentProps> = ({ children, ...props }) => {\n return <CardContent {...props}>{children}</CardContent>\n}\n", "import type { CardHeaderProps } from '@mui/material'\nimport { CardHeader } from '@mui/material'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\nimport type { Module } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\n\nconst moduleTypes = ['sentinel', 'bridge', 'archivist', 'diviner', 'node', 'witness']\n\nconst getModuleIcons = (moduleType: string, mod: Module) => {\n return mod?.queries.find(query => query.startsWith(`network.xyo.query.${moduleType}`)) ? findNetworkComponent(moduleType)?.icon : null\n}\n\nexport const ModuleCardHeader: React.FC<ModuleRenderProps & CardHeaderProps> = ({\n subheader, avatar, title, mod, ...props\n}) => {\n return (\n <CardHeader\n title={title ?? mod?.config.name ?? 'Module'}\n subheader={subheader ?? mod?.address}\n avatar={\n avatar ?? (\n <>\n {mod\n ? moduleTypes.map((moduleType) => {\n const renderIcon = getModuleIcons(moduleType, mod)\n return renderIcon\n ? (\n <React.Fragment key={moduleType}>\n {renderIcon({ fontSize: 'large', color: 'primary' })}\n </React.Fragment>\n )\n : null\n })\n : null}\n </>\n )\n }\n {...props}\n />\n )\n}\n", "import type { CardContentProps } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardContent } from '../Module/index.ts'\n\nexport const DivinerCardContent: React.FC<ModuleRenderProps<DivinerInstance> & CardContentProps> = ({ children, ...props }) => {\n return <ModuleCardContent {...props}>{children}</ModuleCardContent>\n}\n", "import type { CardHeaderProps } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../../../ModuleRenderProps.tsx'\nimport { ModuleCardHeader } from '../Module/index.ts'\n\nexport const DivinerCardHeader: React.FC<ModuleRenderProps<DivinerInstance> & CardHeaderProps> = ({\n title, mod, ...props\n}) => {\n return <ModuleCardHeader mod={mod} title={title ?? mod?.config.name ?? 'Diviner'} {...props} />\n}\n", "import { EthAddressWrapper } from '@ariestools/eth-address'\nimport { ButtonEx } from '@ariestools/sdk-react/button'\nimport { EthAccountBox } from '@ariestools/sdk-react/crypto'\nimport type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexCol, FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\nimport type { Module } from '@xyo-network/sdk'\nimport React, { useState } from 'react'\n\nimport type { ModuleRenderProps } from '../ModuleRenderProps.tsx'\n\nconst getModuleIcon = (moduleType: string, mod: Module) => {\n return mod?.queries.find(query => query.startsWith(`network.xyo.query.${moduleType}`)) ? findNetworkComponent(moduleType)?.icon() : null\n}\n\nexport const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps> = ({\n children, mod, ...props\n}) => {\n const [showQueries, setShowQueries] = useState(false)\n return (\n <FlexCol {...props}>\n <FlexRow>\n {mod\n ? ['sentinel', 'bridge', 'archivist', 'diviner', 'node'].map((moduleType) => {\n const icon = getModuleIcon(moduleType, mod)\n return icon\n ? (\n <ButtonEx onClick={() => setShowQueries(!showQueries)} key={moduleType}>\n {icon}\n </ButtonEx>\n )\n : null\n })\n : null}\n <EthAccountBox address={EthAddressWrapper.fromString(mod?.address)} />\n </FlexRow>\n\n {showQueries\n ? mod?.queries.map((query) => {\n return <FlexRow key={query}>{query}</FlexRow>\n })\n : null}\n {children}\n </FlexCol>\n )\n}\n", "import { EthAddressWrapper } from '@ariestools/eth-address'\nimport { EthAccountBox } from '@ariestools/sdk-react/crypto'\nimport type { TableCellProps } from '@mui/material'\nimport { TableCell } from '@mui/material'\nimport React from 'react'\n\nimport type { ModuleRenderProps } from '../ModuleRenderProps.tsx'\n\nexport const ModuleTableCell: React.FC<ModuleRenderProps & TableCellProps> = ({\n children, mod, ...props\n}) => {\n return (\n <TableCell {...props}>\n <EthAccountBox address={EthAddressWrapper.fromString(mod?.address)} />\n {children}\n </TableCell>\n )\n}\n", "import { useState } from 'react'\n\nexport type RefreshCallback = () => number\nexport type DisableCallback = () => void\n\nexport const useRefresh = (): [number, RefreshCallback, DisableCallback] => {\n const [count, setCount] = useState(1)\n return [\n count,\n () => {\n const newCount = count + 1\n setCount(newCount)\n return newCount\n },\n () => setCount(0),\n ]\n}\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,QAAAA,aAAY;;;ACArB,SAAS,YAAY;;;ACDrB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AAExB,SAAS,aAAa,YAAY;AAClC,SAAgB,gBAAgB;;;ACJhC,SAAS,kBAAkB;AAE3B;AAAA,EACE;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAe;AAAA,EAAe;AAAA,EAAmB;AAAA,EAAa;AAAA,EAAS;AAAA,OAClF;AAqBD,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ACpC,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AACJ,YAAM,WAAW,QAAQ;AACzB,eAAS,QAAQ;AACjB,aAAO;AAAA,IACT;AAAA,IACA,MAAM,SAAS,CAAC;AAAA,EAClB;AACF;",
|
|
6
6
|
"names": ["Card", "jsx", "jsxs", "jsx", "React", "jsx", "jsx", "jsxs", "jsx", "jsx", "jsx", "jsxs", "Card", "ButtonEx", "FlexRow", "findNetworkComponent", "useState", "jsx", "jsxs", "EthAddressWrapper", "EthAccountBox", "jsx", "jsxs", "useState"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-module",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,101 +41,97 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-shared": "~10.0.
|
|
44
|
+
"@xyo-network/react-shared": "~10.0.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@ariestools/eth-address": "~8.0.2",
|
|
48
|
+
"@ariestools/pixel": "~8.0.2",
|
|
49
|
+
"@ariestools/sdk": "~8.0.2",
|
|
50
|
+
"@ariestools/sdk-react": "~11.0.0",
|
|
51
|
+
"@ariestools/threads": "~8.0.2",
|
|
47
52
|
"@bitauth/libauth": "~3.0.0",
|
|
48
|
-
"@
|
|
49
|
-
"@mui/material": "
|
|
53
|
+
"@metamask/providers": "~22.1.1",
|
|
54
|
+
"@mui/icons-material": "~9.2.0",
|
|
55
|
+
"@mui/material": "~9.2.0",
|
|
50
56
|
"@noble/post-quantum": "~0.6.1",
|
|
51
|
-
"@opentelemetry/api": "
|
|
52
|
-
"@opentelemetry/sdk-trace-base": "
|
|
57
|
+
"@opentelemetry/api": "~1.9.1",
|
|
58
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
53
59
|
"@react-spring/web": "~10.1.2",
|
|
54
60
|
"@scure/base": "~2.2.0",
|
|
55
61
|
"@scure/bip39": "~2.2.0",
|
|
56
62
|
"@storybook/react-vite": "~10.4.6",
|
|
57
|
-
"@types/react": "
|
|
58
|
-
"@xylabs/
|
|
59
|
-
"@xylabs/
|
|
60
|
-
"@xylabs/
|
|
61
|
-
"@xylabs/react
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
63
|
+
"@types/react": "~19.2.17",
|
|
64
|
+
"@xylabs/toolchain": "~8.6.6",
|
|
65
|
+
"@xylabs/tsconfig": "~8.6.6",
|
|
66
|
+
"@xylabs/tsconfig-dom": "~8.6.6",
|
|
67
|
+
"@xylabs/tsconfig-react": "~8.6.6",
|
|
68
|
+
"@xyo-network/crypto-asset-plugin": "~7.0.3",
|
|
69
|
+
"@xyo-network/diviner-address-history": "~7.0.9",
|
|
70
|
+
"@xyo-network/sdk": "~7.0.9",
|
|
71
|
+
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
72
|
+
"ajv": "~8.20.0",
|
|
73
|
+
"async-mutex": "~0.5.0",
|
|
74
|
+
"clsx": "~2.1.1",
|
|
75
|
+
"debug": "~4.4.3",
|
|
76
|
+
"eslint": "~10.6.0",
|
|
77
|
+
"ethers": "~6.17.0",
|
|
78
|
+
"hash-wasm": "~4.12.0",
|
|
79
|
+
"idb": "~8.0.3",
|
|
80
|
+
"lru-cache": "~11.5.1",
|
|
81
|
+
"md5": "~2.3.0",
|
|
82
|
+
"numeral": "~2.0.6",
|
|
83
|
+
"observable-fns": "~0.6.1",
|
|
84
|
+
"query-string": "~9.4.1",
|
|
85
|
+
"react": "~19.2.7",
|
|
86
|
+
"react-dom": "~19.2.7",
|
|
87
|
+
"react-router-dom": "~7.18.1",
|
|
88
|
+
"rollbar": "~3.1.0",
|
|
89
|
+
"storybook": "~10.4.6",
|
|
90
|
+
"typescript": "~6.0.3",
|
|
91
|
+
"viem": "~2.54.3",
|
|
92
|
+
"vite": "~8.1.3",
|
|
93
|
+
"webextension-polyfill": "~0.12.0",
|
|
94
|
+
"zod": "~4.4.3",
|
|
95
|
+
"zustand": "~5.0.14"
|
|
96
|
+
},
|
|
97
|
+
"peerDependencies": {
|
|
98
|
+
"@ariestools/eth-address": "^8.0.2",
|
|
99
|
+
"@ariestools/pixel": "^8.0.2",
|
|
100
|
+
"@ariestools/sdk": "^8.0.2",
|
|
101
|
+
"@ariestools/sdk-react": "^11.0.0",
|
|
102
|
+
"@ariestools/threads": "^8.0.2",
|
|
103
|
+
"@bitauth/libauth": "^3.0.0",
|
|
104
|
+
"@metamask/providers": "^22.1.1",
|
|
105
|
+
"@mui/icons-material": "^9.2.0",
|
|
106
|
+
"@mui/material": "^9.2.0",
|
|
107
|
+
"@noble/post-quantum": "^0.6.1",
|
|
108
|
+
"@opentelemetry/api": "^1.9.1",
|
|
109
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
110
|
+
"@react-spring/web": "^10.1.2",
|
|
111
|
+
"@scure/base": "^2.2.0",
|
|
112
|
+
"@scure/bip39": "^2.2.0",
|
|
113
|
+
"@xyo-network/sdk": "^7.0.9",
|
|
114
|
+
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
80
115
|
"ajv": "^8.20.0",
|
|
81
116
|
"async-mutex": "^0.5.0",
|
|
117
|
+
"clsx": "^2.1.1",
|
|
82
118
|
"debug": "^4.4.3",
|
|
83
|
-
"eslint": "^10.6.0",
|
|
84
119
|
"ethers": "^6.17.0",
|
|
85
|
-
"hash-wasm": "
|
|
120
|
+
"hash-wasm": "^4.12.0",
|
|
86
121
|
"idb": "^8.0.3",
|
|
87
122
|
"lru-cache": "^11.5.1",
|
|
88
|
-
"md5": "
|
|
123
|
+
"md5": "^2.3.0",
|
|
124
|
+
"numeral": "^2.0.6",
|
|
89
125
|
"observable-fns": "^0.6.1",
|
|
90
|
-
"query-string": "
|
|
126
|
+
"query-string": "^9.4.1",
|
|
91
127
|
"react": "^19.2.7",
|
|
92
128
|
"react-dom": "^19.2.7",
|
|
93
|
-
"react-router-dom": "^7.18.
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
},
|
|
100
|
-
"peerDependencies": {
|
|
101
|
-
"@bitauth/libauth": "~3.0",
|
|
102
|
-
"@mui/icons-material": "^9.0",
|
|
103
|
-
"@mui/material": "^9.0",
|
|
104
|
-
"@noble/post-quantum": "~0.6.1",
|
|
105
|
-
"@opentelemetry/api": "^1.9",
|
|
106
|
-
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
107
|
-
"@react-spring/web": "~10.1",
|
|
108
|
-
"@scure/base": "~2.2",
|
|
109
|
-
"@scure/bip39": "~2.2",
|
|
110
|
-
"@xylabs/eth-address": "^7.0",
|
|
111
|
-
"@xylabs/geo": "^7.0",
|
|
112
|
-
"@xylabs/pixel": "^7.0",
|
|
113
|
-
"@xylabs/react-button": "^10.0",
|
|
114
|
-
"@xylabs/react-crypto": "^10.0",
|
|
115
|
-
"@xylabs/react-flexbox": "^10.0",
|
|
116
|
-
"@xylabs/react-hooks": "^10.0",
|
|
117
|
-
"@xylabs/react-link": "^10.0",
|
|
118
|
-
"@xylabs/react-promise": "^10.0",
|
|
119
|
-
"@xylabs/react-shared": "^10.0",
|
|
120
|
-
"@xylabs/react-theme": "^10.0",
|
|
121
|
-
"@xylabs/sdk": "^7.0",
|
|
122
|
-
"@xylabs/threads": "^7.0",
|
|
123
|
-
"@xyo-network/sdk": "*",
|
|
124
|
-
"ajv": "^8.20",
|
|
125
|
-
"async-mutex": "^0.5",
|
|
126
|
-
"debug": "^4.4",
|
|
127
|
-
"ethers": "^6.16",
|
|
128
|
-
"hash-wasm": "~4.12",
|
|
129
|
-
"idb": "^8.0",
|
|
130
|
-
"lru-cache": "^11.3",
|
|
131
|
-
"md5": "~2.3",
|
|
132
|
-
"observable-fns": "^0.6",
|
|
133
|
-
"query-string": "~9.4",
|
|
134
|
-
"react": "^19.2",
|
|
135
|
-
"react-dom": "^19.2",
|
|
136
|
-
"react-router-dom": "^7.15",
|
|
137
|
-
"viem": "^2.48",
|
|
138
|
-
"zod": "^4.4"
|
|
129
|
+
"react-router-dom": "^7.18.1",
|
|
130
|
+
"rollbar": "^3.1.0",
|
|
131
|
+
"viem": "^2.54.3",
|
|
132
|
+
"webextension-polyfill": "^0.12.0",
|
|
133
|
+
"zod": "^4.4.3",
|
|
134
|
+
"zustand": "^5.0.14"
|
|
139
135
|
},
|
|
140
136
|
"publishConfig": {
|
|
141
137
|
"access": "public"
|