@xyo-network/react-module 7.6.2 → 8.0.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/CardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAIrD,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,
|
|
1
|
+
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/CardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAIrD,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"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -66,12 +66,31 @@ var ModuleCardActions = ({
|
|
|
66
66
|
},
|
|
67
67
|
...props,
|
|
68
68
|
children: [
|
|
69
|
-
/* @__PURE__ */ jsxs2(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
/* @__PURE__ */ jsxs2(
|
|
70
|
+
FlexRow,
|
|
71
|
+
{
|
|
72
|
+
sx: {
|
|
73
|
+
justifyContent: "space-between",
|
|
74
|
+
gap: 1,
|
|
75
|
+
alignItems: "center"
|
|
76
|
+
},
|
|
77
|
+
children: [
|
|
78
|
+
mod ? /* @__PURE__ */ jsx2(Chip, { label: config?.schema, size: "small" }) : null,
|
|
79
|
+
children,
|
|
80
|
+
/* @__PURE__ */ jsx2(ButtonEx, { onClick: () => setDiscoverDialogOpen(true), size: "small", variant: "outlined", children: "Discover" })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ jsx2(
|
|
85
|
+
DiscoverDialog,
|
|
86
|
+
{
|
|
87
|
+
fullWidth: true,
|
|
88
|
+
mod,
|
|
89
|
+
open: discoverDialogOpen,
|
|
90
|
+
setOpen: setDiscoverDialogOpen,
|
|
91
|
+
sx: { maxWidth: "md" }
|
|
92
|
+
}
|
|
93
|
+
)
|
|
75
94
|
]
|
|
76
95
|
}
|
|
77
96
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/diviner-model'\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 type { CardActionsProps } from '@mui/material'\nimport { CardActions, Chip } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexRow } from '@xylabs/react-flexbox'\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 justifyContent=\"space-between\" gap={1} alignItems=\"center\">\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 fullWidth maxWidth=\"md\" mod={mod} open={discoverDialogOpen} setOpen={setDiscoverDialogOpen} />\n </CardActions>\n )\n}\n","import type { DialogProps } from '@mui/material'\nimport {\n Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Paper,\n} from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport type { ModuleInstance } from '@xyo-network/module-model'\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 type { Module } from '@xyo-network/module-model'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\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/diviner-model'\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/diviner-model'\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 { ButtonEx } from '@xylabs/react-button'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { EthAddressWrapper } from '@xylabs/sdk-js'\nimport type { Module } from '@xyo-network/module-model'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\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 type { TableCellProps } from '@mui/material'\nimport { TableCell } from '@mui/material'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport { EthAddressWrapper } from '@xylabs/sdk-js'\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"],"mappings":";AACA,SAAS,QAAAA,aAAY;;;ACArB,SAAS,YAAY;;;ACArB,SAAS,aAAa,YAAY;AAClC,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAgB,gBAAgB;;;ACHhC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAe;AAAA,EAAe;AAAA,EAAmB;AAAA,EAAa;AAAA,EAAS;AAAA,OAClF;AACP,SAAS,kBAAkB;AAqBrB,SAIA,KAJA;AATC,IAAM,iBAAgD,CAAC;AAAA,EAC5D;AAAA,EAAK;AAAA,EAAS,GAAG;AACnB,MAAM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ButtonEx","FlexRow","findNetworkComponent","useState","jsx","jsxs","EthAccountBox","EthAddressWrapper","jsx","jsxs","useState"]}
|
|
1
|
+
{"version":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"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { DivinerInstance } from '@xyo-network/diviner-model'\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 type { CardActionsProps } from '@mui/material'\nimport { CardActions, Chip } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexRow } from '@xylabs/react-flexbox'\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 type { DialogProps } from '@mui/material'\nimport {\n Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Paper,\n} from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport type { ModuleInstance } from '@xyo-network/module-model'\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 type { Module } from '@xyo-network/module-model'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\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/diviner-model'\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/diviner-model'\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 { ButtonEx } from '@xylabs/react-button'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { EthAddressWrapper } from '@xylabs/sdk-js'\nimport type { Module } from '@xyo-network/module-model'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\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 type { TableCellProps } from '@mui/material'\nimport { TableCell } from '@mui/material'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport { EthAddressWrapper } from '@xylabs/sdk-js'\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"],"mappings":";AACA,SAAS,QAAAA,aAAY;;;ACArB,SAAS,YAAY;;;ACArB,SAAS,aAAa,YAAY;AAClC,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAgB,gBAAgB;;;ACHhC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAe;AAAA,EAAe;AAAA,EAAmB;AAAA,EAAa;AAAA,EAAS;AAAA,OAClF;AACP,SAAS,kBAAkB;AAqBrB,SAIA,KAJA;AATC,IAAM,iBAAgD,CAAC;AAAA,EAC5D;AAAA,EAAK;AAAA,EAAS,GAAG;AACnB,MAAM;AACJ,QAAM,CAAC,gBAAgB,IAAI,WAAW,YAAY;AAChD,WAAO,MAAM,KAAK,MAAM;AAAA,EAC1B,GAAG,CAAC,GAAG,CAAC;AAER,SACE,qBAAC,UAAQ,GAAG,OACV;AAAA,yBAAC,eAAY;AAAA;AAAA,MAEV,KAAK,OAAO,QAAQ,KAAK;AAAA,OAC5B;AAAA,IACA,oBAAC,WAAQ;AAAA,IACT,oBAAC,iBACC,+BAAC,SAAM,IAAI,EAAE,GAAG,EAAE,GAChB;AAAA,0BAAC,qBAAkB,6FAA+E;AAAA,MAClG,oBAAC,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S,SAAS,MAAM,eAAe,CAAC,WAAW,GACjD,kBADyD,UAE5D,IAEF;AAAA,MACN,CAAC,IACD;AAAA,MACJ,gBAAAI,KAAC,iBAAc,SAAS,kBAAkB,WAAW,KAAK,OAAO,GAAG;AAAA,OACtE;AAAA,IAEC,cACG,KAAK,QAAQ,IAAI,CAAC,UAAU;AAC1B,aAAO,gBAAAA,KAACH,UAAA,EAAqB,mBAAR,KAAc;AAAA,IACrC,CAAC,IACD;AAAA,IACH;AAAA,KACH;AAEJ;;;AC5CA,SAAS,iBAAiB;AAC1B,SAAS,iBAAAK,sBAAqB;AAC9B,SAAS,qBAAAC,0BAAyB;AAS9B,SACE,OAAAC,OADF,QAAAC,aAAA;AAJG,IAAM,kBAAgE,CAAC;AAAA,EAC5E;AAAA,EAAU;AAAA,EAAK,GAAG;AACpB,MAAM;AACJ,SACE,gBAAAA,MAAC,aAAW,GAAG,OACb;AAAA,oBAAAD,MAACF,gBAAA,EAAc,SAASC,mBAAkB,WAAW,KAAK,OAAO,GAAG;AAAA,IACnE;AAAA,KACH;AAEJ;;;ACjBA,SAAS,YAAAG,iBAAgB;AAKlB,IAAM,aAAa,MAAkD;AAC1E,QAAM,CAAC,OAAO,QAAQ,IAAIA,UAAS,CAAC;AACpC,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;","names":["Card","jsx","jsxs","jsx","React","jsx","jsx","jsxs","jsx","jsx","jsx","jsxs","Card","ButtonEx","FlexRow","findNetworkComponent","useState","jsx","jsxs","EthAccountBox","EthAddressWrapper","jsx","jsxs","useState"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-module",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-shared": "~
|
|
44
|
+
"@xyo-network/react-shared": "~8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@bitauth/libauth": "~3.0.0",
|
|
48
48
|
"@metamask/providers": "^22.1.1",
|
|
49
|
-
"@mui/icons-material": "
|
|
50
|
-
"@mui/material": "
|
|
49
|
+
"@mui/icons-material": "~9.0",
|
|
50
|
+
"@mui/material": "~9.0",
|
|
51
51
|
"@opentelemetry/api": "^1.9.1",
|
|
52
52
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
53
53
|
"@react-spring/web": "~10.0.3",
|
|
@@ -55,51 +55,51 @@
|
|
|
55
55
|
"@scure/bip39": "~2.2.0",
|
|
56
56
|
"@storybook/react-vite": "~10.3.6",
|
|
57
57
|
"@types/react": "^19.2.14",
|
|
58
|
-
"@xylabs/geo": "^5.1.
|
|
59
|
-
"@xylabs/pixel": "~5.1.
|
|
60
|
-
"@xylabs/react-async-effect": "~
|
|
61
|
-
"@xylabs/react-button": "~
|
|
62
|
-
"@xylabs/react-crypto": "~
|
|
63
|
-
"@xylabs/react-flexbox": "~
|
|
64
|
-
"@xylabs/react-hooks": "~
|
|
65
|
-
"@xylabs/react-link": "~
|
|
66
|
-
"@xylabs/react-promise": "~
|
|
67
|
-
"@xylabs/react-shared": "~
|
|
68
|
-
"@xylabs/react-theme": "~
|
|
69
|
-
"@xylabs/sdk-js": "^5.1.
|
|
70
|
-
"@xylabs/threads": "~5.1.
|
|
71
|
-
"@xylabs/toolchain": "~7.13.
|
|
72
|
-
"@xylabs/tsconfig": "^7.13.
|
|
73
|
-
"@xylabs/tsconfig-dom": "^7.13.
|
|
74
|
-
"@xylabs/tsconfig-react": "~7.13.
|
|
75
|
-
"@xyo-network/account": "~5.6.
|
|
76
|
-
"@xyo-network/account-model": "^5.6.
|
|
77
|
-
"@xyo-network/api": "~5.6.
|
|
78
|
-
"@xyo-network/api-models": "~5.6.
|
|
79
|
-
"@xyo-network/archivist": "~5.6.
|
|
80
|
-
"@xyo-network/archivist-memory": "~5.6.
|
|
81
|
-
"@xyo-network/boundwitness-builder": "^5.6.
|
|
82
|
-
"@xyo-network/boundwitness-model": "^5.6.
|
|
83
|
-
"@xyo-network/boundwitness-validator": "^5.6.
|
|
84
|
-
"@xyo-network/boundwitness-wrapper": "~5.6.
|
|
85
|
-
"@xyo-network/config-payload-plugin": "~5.6.
|
|
86
|
-
"@xyo-network/crypto-asset-plugin": "~5.5.
|
|
87
|
-
"@xyo-network/diviner-abstract": "^5.6.
|
|
88
|
-
"@xyo-network/diviner-address-history": "~5.6.
|
|
89
|
-
"@xyo-network/diviner-model": "^5.6.
|
|
90
|
-
"@xyo-network/huri": "^5.6.
|
|
91
|
-
"@xyo-network/manifest-model": "~5.6.
|
|
92
|
-
"@xyo-network/module-model": "^5.6.
|
|
93
|
-
"@xyo-network/node-memory": "~5.6.
|
|
94
|
-
"@xyo-network/payload-builder": "^5.6.
|
|
95
|
-
"@xyo-network/payload-model": "^5.6.
|
|
96
|
-
"@xyo-network/payload-plugin": "^5.6.
|
|
97
|
-
"@xyo-network/payload-wrapper": "~5.6.
|
|
98
|
-
"@xyo-network/query-payload-plugin": "~5.6.
|
|
99
|
-
"@xyo-network/sdk-js": "^5.6.
|
|
100
|
-
"@xyo-network/sdk-protocol-js": "~5.6.
|
|
101
|
-
"@xyo-network/wallet": "~5.6.
|
|
102
|
-
"@xyo-network/wallet-model": "^5.6.
|
|
58
|
+
"@xylabs/geo": "^5.1.2",
|
|
59
|
+
"@xylabs/pixel": "~5.1.2",
|
|
60
|
+
"@xylabs/react-async-effect": "~8.0.0",
|
|
61
|
+
"@xylabs/react-button": "~8.0",
|
|
62
|
+
"@xylabs/react-crypto": "~8.0",
|
|
63
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
64
|
+
"@xylabs/react-hooks": "~8.0",
|
|
65
|
+
"@xylabs/react-link": "~8.0",
|
|
66
|
+
"@xylabs/react-promise": "~8.0",
|
|
67
|
+
"@xylabs/react-shared": "~8.0",
|
|
68
|
+
"@xylabs/react-theme": "~8.0",
|
|
69
|
+
"@xylabs/sdk-js": "^5.1.2",
|
|
70
|
+
"@xylabs/threads": "~5.1.2",
|
|
71
|
+
"@xylabs/toolchain": "~7.13.22",
|
|
72
|
+
"@xylabs/tsconfig": "^7.13.22",
|
|
73
|
+
"@xylabs/tsconfig-dom": "^7.13.22",
|
|
74
|
+
"@xylabs/tsconfig-react": "~7.13.22",
|
|
75
|
+
"@xyo-network/account": "~5.6.2",
|
|
76
|
+
"@xyo-network/account-model": "^5.6.3",
|
|
77
|
+
"@xyo-network/api": "~5.6.2",
|
|
78
|
+
"@xyo-network/api-models": "~5.6.3",
|
|
79
|
+
"@xyo-network/archivist": "~5.6.4",
|
|
80
|
+
"@xyo-network/archivist-memory": "~5.6.4",
|
|
81
|
+
"@xyo-network/boundwitness-builder": "^5.6.2",
|
|
82
|
+
"@xyo-network/boundwitness-model": "^5.6.3",
|
|
83
|
+
"@xyo-network/boundwitness-validator": "^5.6.2",
|
|
84
|
+
"@xyo-network/boundwitness-wrapper": "~5.6.2",
|
|
85
|
+
"@xyo-network/config-payload-plugin": "~5.6.3",
|
|
86
|
+
"@xyo-network/crypto-asset-plugin": "~5.5.2",
|
|
87
|
+
"@xyo-network/diviner-abstract": "^5.6.4",
|
|
88
|
+
"@xyo-network/diviner-address-history": "~5.6.4",
|
|
89
|
+
"@xyo-network/diviner-model": "^5.6.4",
|
|
90
|
+
"@xyo-network/huri": "^5.6.2",
|
|
91
|
+
"@xyo-network/manifest-model": "~5.6.3",
|
|
92
|
+
"@xyo-network/module-model": "^5.6.4",
|
|
93
|
+
"@xyo-network/node-memory": "~5.6.4",
|
|
94
|
+
"@xyo-network/payload-builder": "^5.6.2",
|
|
95
|
+
"@xyo-network/payload-model": "^5.6.3",
|
|
96
|
+
"@xyo-network/payload-plugin": "^5.6.3",
|
|
97
|
+
"@xyo-network/payload-wrapper": "~5.6.2",
|
|
98
|
+
"@xyo-network/query-payload-plugin": "~5.6.3",
|
|
99
|
+
"@xyo-network/sdk-js": "^5.6.4",
|
|
100
|
+
"@xyo-network/sdk-protocol-js": "~5.6.3",
|
|
101
|
+
"@xyo-network/wallet": "~5.6.2",
|
|
102
|
+
"@xyo-network/wallet-model": "^5.6.3",
|
|
103
103
|
"ajv": "^8.20.0",
|
|
104
104
|
"async-mutex": "^0.5.0",
|
|
105
105
|
"bn.js": "^5.2.3",
|
|
@@ -120,73 +120,74 @@
|
|
|
120
120
|
"observable-fns": "~0.6.1",
|
|
121
121
|
"pako": "^2.1.0",
|
|
122
122
|
"query-string": "~9.3.1",
|
|
123
|
-
"react": "^19.2.
|
|
124
|
-
"react-dom": "^19.2.
|
|
125
|
-
"react-is": "^19.2.
|
|
123
|
+
"react": "^19.2.6",
|
|
124
|
+
"react-dom": "^19.2.6",
|
|
125
|
+
"react-is": "^19.2.6",
|
|
126
126
|
"react-router-dom": "^7.15.0",
|
|
127
127
|
"recharts": "~3.8.1",
|
|
128
128
|
"spark-md5": "~3.0.2",
|
|
129
129
|
"store2": "~2.14.4",
|
|
130
130
|
"storybook": "^10.3.6",
|
|
131
131
|
"typescript": "^5.9.3",
|
|
132
|
-
"viem": "~2.48.
|
|
133
|
-
"vite": "^8.0.
|
|
132
|
+
"viem": "~2.48.11",
|
|
133
|
+
"vite": "^8.0.11",
|
|
134
134
|
"wasm-feature-detect": "~1.8.0",
|
|
135
135
|
"webextension-polyfill": "^0.12.0",
|
|
136
136
|
"zod": "^4.4.3"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
139
|
-
"@bitauth/libauth": "
|
|
140
|
-
"@mui/icons-material": "
|
|
141
|
-
"@mui/material": "
|
|
142
|
-
"@opentelemetry/api": "
|
|
143
|
-
"@opentelemetry/sdk-trace-base": "
|
|
144
|
-
"@react-spring/web": "
|
|
145
|
-
"@scure/base": "
|
|
146
|
-
"@xylabs/pixel": "
|
|
147
|
-
"@xylabs/react-button": "
|
|
148
|
-
"@xylabs/react-crypto": "
|
|
149
|
-
"@xylabs/react-flexbox": "
|
|
150
|
-
"@xylabs/react-hooks": "
|
|
151
|
-
"@xylabs/react-link": "
|
|
152
|
-
"@xylabs/react-promise": "
|
|
153
|
-
"@xylabs/react-shared": "
|
|
154
|
-
"@xylabs/react-theme": "
|
|
155
|
-
"@xylabs/sdk-js": "
|
|
156
|
-
"@xylabs/threads": "
|
|
157
|
-
"@xyo-network/account-model": "
|
|
158
|
-
"@xyo-network/boundwitness-model": "
|
|
159
|
-
"@xyo-network/boundwitness-validator": "
|
|
160
|
-
"@xyo-network/diviner-model": "
|
|
161
|
-
"@xyo-network/manifest-model": "
|
|
162
|
-
"@xyo-network/module-model": "
|
|
163
|
-
"@xyo-network/payload-builder": "
|
|
164
|
-
"@xyo-network/payload-model": "
|
|
165
|
-
"async-mutex": "
|
|
166
|
-
"bn.js": "
|
|
167
|
-
"bowser": "
|
|
168
|
-
"buffer": "
|
|
169
|
-
"chalk": "
|
|
170
|
-
"debug": "
|
|
171
|
-
"ethers": "
|
|
172
|
-
"fast-deep-equal": "
|
|
173
|
-
"hash-wasm": "
|
|
174
|
-
"js-cookie": "
|
|
175
|
-
"lru-cache": "
|
|
176
|
-
"md5": "
|
|
177
|
-
"mixpanel-browser": "
|
|
178
|
-
"observable-fns": "
|
|
179
|
-
"pako": "
|
|
180
|
-
"query-string": "
|
|
181
|
-
"react": "
|
|
182
|
-
"react-dom": "
|
|
183
|
-
"react-is": "
|
|
184
|
-
"react-router-dom": "
|
|
185
|
-
"recharts": "
|
|
186
|
-
"spark-md5": "
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
139
|
+
"@bitauth/libauth": "~3.0",
|
|
140
|
+
"@mui/icons-material": "~9.0",
|
|
141
|
+
"@mui/material": "~9.0",
|
|
142
|
+
"@opentelemetry/api": "^1.9",
|
|
143
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
144
|
+
"@react-spring/web": "~10.0",
|
|
145
|
+
"@scure/base": "~2.2",
|
|
146
|
+
"@xylabs/pixel": "~5.1",
|
|
147
|
+
"@xylabs/react-button": "~8.0",
|
|
148
|
+
"@xylabs/react-crypto": "~8.0",
|
|
149
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
150
|
+
"@xylabs/react-hooks": "~8.0",
|
|
151
|
+
"@xylabs/react-link": "~8.0",
|
|
152
|
+
"@xylabs/react-promise": "~8.0",
|
|
153
|
+
"@xylabs/react-shared": "~8.0",
|
|
154
|
+
"@xylabs/react-theme": "~8.0",
|
|
155
|
+
"@xylabs/sdk-js": "^5.1",
|
|
156
|
+
"@xylabs/threads": "~5.1",
|
|
157
|
+
"@xyo-network/account-model": "^5.6",
|
|
158
|
+
"@xyo-network/boundwitness-model": "^5.6",
|
|
159
|
+
"@xyo-network/boundwitness-validator": "^5.6",
|
|
160
|
+
"@xyo-network/diviner-model": "^5.6",
|
|
161
|
+
"@xyo-network/manifest-model": "~5.6",
|
|
162
|
+
"@xyo-network/module-model": "^5.6",
|
|
163
|
+
"@xyo-network/payload-builder": "^5.6",
|
|
164
|
+
"@xyo-network/payload-model": "^5.6",
|
|
165
|
+
"async-mutex": "^0.5",
|
|
166
|
+
"bn.js": "^5.2",
|
|
167
|
+
"bowser": "^2.14",
|
|
168
|
+
"buffer": "^6.0",
|
|
169
|
+
"chalk": "^5.6",
|
|
170
|
+
"debug": "~4.4",
|
|
171
|
+
"ethers": "^6.16",
|
|
172
|
+
"fast-deep-equal": "~3.1",
|
|
173
|
+
"hash-wasm": "~4.12",
|
|
174
|
+
"js-cookie": "~3.0",
|
|
175
|
+
"lru-cache": "^11.3",
|
|
176
|
+
"md5": "~2.3",
|
|
177
|
+
"mixpanel-browser": "~2.78",
|
|
178
|
+
"observable-fns": "~0.6",
|
|
179
|
+
"pako": "^2.1",
|
|
180
|
+
"query-string": "~9.3",
|
|
181
|
+
"react": "^19.2",
|
|
182
|
+
"react-dom": "^19.2",
|
|
183
|
+
"react-is": "^19.2",
|
|
184
|
+
"react-router-dom": "^7.15",
|
|
185
|
+
"recharts": "~3.8",
|
|
186
|
+
"spark-md5": "~3.0",
|
|
187
|
+
"typescript": "^5.9",
|
|
188
|
+
"viem": "~2.48",
|
|
189
|
+
"wasm-feature-detect": "~1.8",
|
|
190
|
+
"zod": "^4.4"
|
|
190
191
|
},
|
|
191
192
|
"publishConfig": {
|
|
192
193
|
"access": "public"
|