@xyo-network/react-module 2.64.0-rc.3 → 2.64.0-rc.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/ModuleRenderProps.d.mts.map +1 -0
- package/dist/browser/ModuleRenderProps.d.ts.map +1 -0
- package/dist/browser/ModuleRenderProps.js +1 -0
- package/dist/browser/ModuleRenderProps.js.map +1 -0
- package/dist/browser/components/Card/Diviner/Card.d.mts.map +1 -0
- package/dist/browser/components/Card/Diviner/Card.d.ts.map +1 -0
- package/dist/browser/components/Card/Diviner/Card.js +17 -0
- package/dist/browser/components/Card/Diviner/Card.js.map +1 -0
- package/dist/browser/components/Card/Diviner/Card.stories.js +37 -0
- package/dist/browser/components/Card/Diviner/Card.stories.js.map +1 -0
- package/dist/browser/components/Card/Diviner/CardActions.d.mts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardActions.d.ts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardActions.js +9 -0
- package/dist/browser/components/Card/Diviner/CardActions.js.map +1 -0
- package/dist/browser/components/Card/Diviner/CardContent.d.mts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardContent.d.ts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardContent.js +9 -0
- package/dist/browser/components/Card/Diviner/CardContent.js.map +1 -0
- package/dist/browser/components/Card/Diviner/CardHeader.d.mts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardHeader.d.ts.map +1 -0
- package/dist/browser/components/Card/Diviner/CardHeader.js +9 -0
- package/dist/browser/components/Card/Diviner/CardHeader.js.map +1 -0
- package/dist/browser/components/Card/Diviner/index.d.mts.map +1 -0
- package/dist/browser/components/Card/Diviner/index.d.ts.map +1 -0
- package/dist/browser/components/Card/Diviner/index.js +4 -0
- package/dist/browser/components/Card/Diviner/index.js.map +1 -0
- package/dist/browser/components/Card/Module/Card.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/Card.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/Card.js +16 -0
- package/dist/browser/components/Card/Module/Card.js.map +1 -0
- package/dist/browser/components/Card/Module/Card.stories.js +43 -0
- package/dist/browser/components/Card/Module/Card.stories.js.map +1 -0
- package/dist/browser/components/Card/Module/CardActions.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/CardActions.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/CardActions.js +22 -0
- package/dist/browser/components/Card/Module/CardActions.js.map +1 -0
- package/dist/browser/components/Card/Module/CardContent.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/CardContent.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/CardContent.js +9 -0
- package/dist/browser/components/Card/Module/CardContent.js.map +1 -0
- package/dist/browser/components/Card/Module/CardHeader.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/CardHeader.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/CardHeader.js +24 -0
- package/dist/browser/components/Card/Module/CardHeader.js.map +1 -0
- package/dist/browser/components/Card/Module/components/DiscoverDialog.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/components/DiscoverDialog.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/components/DiscoverDialog.js +24 -0
- package/dist/browser/components/Card/Module/components/DiscoverDialog.js.map +1 -0
- package/dist/browser/components/Card/Module/components/index.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/components/index.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/components/index.js +2 -0
- package/dist/browser/components/Card/Module/components/index.js.map +1 -0
- package/dist/browser/components/Card/Module/index.d.mts.map +1 -0
- package/dist/browser/components/Card/Module/index.d.ts.map +1 -0
- package/dist/browser/components/Card/Module/index.js +5 -0
- package/dist/browser/components/Card/Module/index.js.map +1 -0
- package/dist/browser/components/Card/index.d.mts.map +1 -0
- package/dist/browser/components/Card/index.d.ts.map +1 -0
- package/dist/browser/components/Card/index.js +3 -0
- package/dist/browser/components/Card/index.js.map +1 -0
- package/dist/browser/components/DetailsBox.d.mts.map +1 -0
- package/dist/browser/components/DetailsBox.d.ts.map +1 -0
- package/dist/browser/components/DetailsBox.js +30 -0
- package/dist/browser/components/DetailsBox.js.map +1 -0
- package/dist/browser/components/DetailsBox.stories.js +74 -0
- package/dist/browser/components/DetailsBox.stories.js.map +1 -0
- package/dist/browser/components/TableCell.d.mts.map +1 -0
- package/dist/browser/components/TableCell.d.ts.map +1 -0
- package/dist/browser/components/TableCell.js +14 -0
- package/dist/browser/components/TableCell.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +4 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/browser/hooks/index.d.mts.map +1 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/index.js +2 -0
- package/dist/browser/hooks/index.js.map +1 -0
- package/dist/browser/hooks/useRefresh.d.mts.map +1 -0
- package/dist/browser/hooks/useRefresh.d.ts.map +1 -0
- package/dist/browser/hooks/useRefresh.js +17 -0
- package/dist/browser/hooks/useRefresh.js.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/ModuleRenderProps.d.mts +7 -0
- package/dist/node/ModuleRenderProps.d.mts.map +1 -0
- package/dist/node/ModuleRenderProps.d.ts +7 -0
- package/dist/node/ModuleRenderProps.d.ts.map +1 -0
- package/dist/node/ModuleRenderProps.js +17 -0
- package/dist/node/ModuleRenderProps.js.map +1 -0
- package/dist/node/ModuleRenderProps.mjs +1 -0
- package/dist/node/ModuleRenderProps.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/Card.d.mts +6 -0
- package/dist/node/components/Card/Diviner/Card.d.mts.map +1 -0
- package/dist/node/components/Card/Diviner/Card.d.ts +6 -0
- package/dist/node/components/Card/Diviner/Card.d.ts.map +1 -0
- package/dist/node/components/Card/Diviner/Card.js +41 -0
- package/dist/node/components/Card/Diviner/Card.js.map +1 -0
- package/dist/node/components/Card/Diviner/Card.mjs +17 -0
- package/dist/node/components/Card/Diviner/Card.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/Card.stories.js +61 -0
- package/dist/node/components/Card/Diviner/Card.stories.js.map +1 -0
- package/dist/node/components/Card/Diviner/Card.stories.mjs +37 -0
- package/dist/node/components/Card/Diviner/Card.stories.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/CardActions.d.mts +6 -0
- package/dist/node/components/Card/Diviner/CardActions.d.mts.map +1 -0
- package/dist/node/components/Card/Diviner/CardActions.d.ts +6 -0
- package/dist/node/components/Card/Diviner/CardActions.d.ts.map +1 -0
- package/dist/node/components/Card/Diviner/CardActions.js +33 -0
- package/dist/node/components/Card/Diviner/CardActions.js.map +1 -0
- package/dist/node/components/Card/Diviner/CardActions.mjs +9 -0
- package/dist/node/components/Card/Diviner/CardActions.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/CardContent.d.mts +6 -0
- package/dist/node/components/Card/Diviner/CardContent.d.mts.map +1 -0
- package/dist/node/components/Card/Diviner/CardContent.d.ts +6 -0
- package/dist/node/components/Card/Diviner/CardContent.d.ts.map +1 -0
- package/dist/node/components/Card/Diviner/CardContent.js +33 -0
- package/dist/node/components/Card/Diviner/CardContent.js.map +1 -0
- package/dist/node/components/Card/Diviner/CardContent.mjs +9 -0
- package/dist/node/components/Card/Diviner/CardContent.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/CardHeader.d.mts +6 -0
- package/dist/node/components/Card/Diviner/CardHeader.d.mts.map +1 -0
- package/dist/node/components/Card/Diviner/CardHeader.d.ts +6 -0
- package/dist/node/components/Card/Diviner/CardHeader.d.ts.map +1 -0
- package/dist/node/components/Card/Diviner/CardHeader.js +33 -0
- package/dist/node/components/Card/Diviner/CardHeader.js.map +1 -0
- package/dist/node/components/Card/Diviner/CardHeader.mjs +9 -0
- package/dist/node/components/Card/Diviner/CardHeader.mjs.map +1 -0
- package/dist/node/components/Card/Diviner/index.d.mts +4 -0
- package/dist/node/components/Card/Diviner/index.d.mts.map +1 -0
- package/dist/node/components/Card/Diviner/index.d.ts +4 -0
- package/dist/node/components/Card/Diviner/index.d.ts.map +1 -0
- package/dist/node/components/Card/Diviner/index.js +27 -0
- package/dist/node/components/Card/Diviner/index.js.map +1 -0
- package/dist/node/components/Card/Diviner/index.mjs +4 -0
- package/dist/node/components/Card/Diviner/index.mjs.map +1 -0
- package/dist/node/components/Card/Module/Card.d.mts +5 -0
- package/dist/node/components/Card/Module/Card.d.mts.map +1 -0
- package/dist/node/components/Card/Module/Card.d.ts +5 -0
- package/dist/node/components/Card/Module/Card.d.ts.map +1 -0
- package/dist/node/components/Card/Module/Card.js +40 -0
- package/dist/node/components/Card/Module/Card.js.map +1 -0
- package/dist/node/components/Card/Module/Card.mjs +16 -0
- package/dist/node/components/Card/Module/Card.mjs.map +1 -0
- package/dist/node/components/Card/Module/Card.stories.js +67 -0
- package/dist/node/components/Card/Module/Card.stories.js.map +1 -0
- package/dist/node/components/Card/Module/Card.stories.mjs +43 -0
- package/dist/node/components/Card/Module/Card.stories.mjs.map +1 -0
- package/dist/node/components/Card/Module/CardActions.d.mts +5 -0
- package/dist/node/components/Card/Module/CardActions.d.mts.map +1 -0
- package/dist/node/components/Card/Module/CardActions.d.ts +5 -0
- package/dist/node/components/Card/Module/CardActions.d.ts.map +1 -0
- package/dist/node/components/Card/Module/CardActions.js +46 -0
- package/dist/node/components/Card/Module/CardActions.js.map +1 -0
- package/dist/node/components/Card/Module/CardActions.mjs +22 -0
- package/dist/node/components/Card/Module/CardActions.mjs.map +1 -0
- package/dist/node/components/Card/Module/CardContent.d.mts +5 -0
- package/dist/node/components/Card/Module/CardContent.d.mts.map +1 -0
- package/dist/node/components/Card/Module/CardContent.d.ts +5 -0
- package/dist/node/components/Card/Module/CardContent.d.ts.map +1 -0
- package/dist/node/components/Card/Module/CardContent.js +33 -0
- package/dist/node/components/Card/Module/CardContent.js.map +1 -0
- package/dist/node/components/Card/Module/CardContent.mjs +9 -0
- package/dist/node/components/Card/Module/CardContent.mjs.map +1 -0
- package/dist/node/components/Card/Module/CardHeader.d.mts +5 -0
- package/dist/node/components/Card/Module/CardHeader.d.mts.map +1 -0
- package/dist/node/components/Card/Module/CardHeader.d.ts +5 -0
- package/dist/node/components/Card/Module/CardHeader.d.ts.map +1 -0
- package/dist/node/components/Card/Module/CardHeader.js +48 -0
- package/dist/node/components/Card/Module/CardHeader.js.map +1 -0
- package/dist/node/components/Card/Module/CardHeader.mjs +24 -0
- package/dist/node/components/Card/Module/CardHeader.mjs.map +1 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.d.mts +9 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.d.mts.map +1 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.d.ts +9 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.d.ts.map +1 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.js +48 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.js.map +1 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.mjs +24 -0
- package/dist/node/components/Card/Module/components/DiscoverDialog.mjs.map +1 -0
- package/dist/node/components/Card/Module/components/index.d.mts +2 -0
- package/dist/node/components/Card/Module/components/index.d.mts.map +1 -0
- package/dist/node/components/Card/Module/components/index.d.ts +2 -0
- package/dist/node/components/Card/Module/components/index.d.ts.map +1 -0
- package/dist/node/components/Card/Module/components/index.js +23 -0
- package/dist/node/components/Card/Module/components/index.js.map +1 -0
- package/dist/node/components/Card/Module/components/index.mjs +2 -0
- package/dist/node/components/Card/Module/components/index.mjs.map +1 -0
- package/dist/node/components/Card/Module/index.d.mts +5 -0
- package/dist/node/components/Card/Module/index.d.mts.map +1 -0
- package/dist/node/components/Card/Module/index.d.ts +5 -0
- package/dist/node/components/Card/Module/index.d.ts.map +1 -0
- package/dist/node/components/Card/Module/index.js +29 -0
- package/dist/node/components/Card/Module/index.js.map +1 -0
- package/dist/node/components/Card/Module/index.mjs +5 -0
- package/dist/node/components/Card/Module/index.mjs.map +1 -0
- package/dist/node/components/Card/index.d.mts +3 -0
- package/dist/node/components/Card/index.d.mts.map +1 -0
- package/dist/node/components/Card/index.d.ts +3 -0
- package/dist/node/components/Card/index.d.ts.map +1 -0
- package/dist/node/components/Card/index.js +25 -0
- package/dist/node/components/Card/index.js.map +1 -0
- package/dist/node/components/Card/index.mjs +3 -0
- package/dist/node/components/Card/index.mjs.map +1 -0
- package/dist/node/components/DetailsBox.d.mts +5 -0
- package/dist/node/components/DetailsBox.d.mts.map +1 -0
- package/dist/node/components/DetailsBox.d.ts +5 -0
- package/dist/node/components/DetailsBox.d.ts.map +1 -0
- package/dist/node/components/DetailsBox.js +54 -0
- package/dist/node/components/DetailsBox.js.map +1 -0
- package/dist/node/components/DetailsBox.mjs +30 -0
- package/dist/node/components/DetailsBox.mjs.map +1 -0
- package/dist/node/components/DetailsBox.stories.js +100 -0
- package/dist/node/components/DetailsBox.stories.js.map +1 -0
- package/dist/node/components/DetailsBox.stories.mjs +74 -0
- package/dist/node/components/DetailsBox.stories.mjs.map +1 -0
- package/dist/node/components/TableCell.d.mts +5 -0
- package/dist/node/components/TableCell.d.mts.map +1 -0
- package/dist/node/components/TableCell.d.ts +5 -0
- package/dist/node/components/TableCell.d.ts.map +1 -0
- package/dist/node/components/TableCell.js +38 -0
- package/dist/node/components/TableCell.js.map +1 -0
- package/dist/node/components/TableCell.mjs +14 -0
- package/dist/node/components/TableCell.mjs.map +1 -0
- package/dist/node/components/index.d.mts +4 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +4 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +27 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +4 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/hooks/index.d.mts +2 -0
- package/dist/node/hooks/index.d.mts.map +1 -0
- package/dist/node/hooks/index.d.ts +2 -0
- package/dist/node/hooks/index.d.ts.map +1 -0
- package/dist/node/hooks/index.js +23 -0
- package/dist/node/hooks/index.js.map +1 -0
- package/dist/node/hooks/index.mjs +2 -0
- package/dist/node/hooks/index.mjs.map +1 -0
- package/dist/node/hooks/useRefresh.d.mts +4 -0
- package/dist/node/hooks/useRefresh.d.mts.map +1 -0
- package/dist/node/hooks/useRefresh.d.ts +4 -0
- package/dist/node/hooks/useRefresh.d.ts.map +1 -0
- package/dist/node/hooks/useRefresh.js +41 -0
- package/dist/node/hooks/useRefresh.js.map +1 -0
- package/dist/node/hooks/useRefresh.mjs +17 -0
- package/dist/node/hooks/useRefresh.mjs.map +1 -0
- package/dist/node/index.d.mts +4 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +27 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +29 -29
- package/dist/ModuleRenderProps.d.mts.map +0 -1
- package/dist/ModuleRenderProps.d.ts.map +0 -1
- package/dist/components/Card/Diviner/Card.d.mts.map +0 -1
- package/dist/components/Card/Diviner/Card.d.ts.map +0 -1
- package/dist/components/Card/Diviner/Card.stories.d.mts +0 -105
- package/dist/components/Card/Diviner/Card.stories.d.mts.map +0 -1
- package/dist/components/Card/Diviner/Card.stories.d.ts +0 -105
- package/dist/components/Card/Diviner/Card.stories.d.ts.map +0 -1
- package/dist/components/Card/Diviner/CardActions.d.mts.map +0 -1
- package/dist/components/Card/Diviner/CardActions.d.ts.map +0 -1
- package/dist/components/Card/Diviner/CardContent.d.mts.map +0 -1
- package/dist/components/Card/Diviner/CardContent.d.ts.map +0 -1
- package/dist/components/Card/Diviner/CardHeader.d.mts.map +0 -1
- package/dist/components/Card/Diviner/CardHeader.d.ts.map +0 -1
- package/dist/components/Card/Diviner/index.d.mts.map +0 -1
- package/dist/components/Card/Diviner/index.d.ts.map +0 -1
- package/dist/components/Card/Module/Card.d.mts.map +0 -1
- package/dist/components/Card/Module/Card.d.ts.map +0 -1
- package/dist/components/Card/Module/Card.stories.d.mts +0 -100
- package/dist/components/Card/Module/Card.stories.d.mts.map +0 -1
- package/dist/components/Card/Module/Card.stories.d.ts +0 -100
- package/dist/components/Card/Module/Card.stories.d.ts.map +0 -1
- package/dist/components/Card/Module/CardActions.d.mts.map +0 -1
- package/dist/components/Card/Module/CardActions.d.ts.map +0 -1
- package/dist/components/Card/Module/CardContent.d.mts.map +0 -1
- package/dist/components/Card/Module/CardContent.d.ts.map +0 -1
- package/dist/components/Card/Module/CardHeader.d.mts.map +0 -1
- package/dist/components/Card/Module/CardHeader.d.ts.map +0 -1
- package/dist/components/Card/Module/components/DiscoverDialog.d.mts.map +0 -1
- package/dist/components/Card/Module/components/DiscoverDialog.d.ts.map +0 -1
- package/dist/components/Card/Module/components/index.d.mts.map +0 -1
- package/dist/components/Card/Module/components/index.d.ts.map +0 -1
- package/dist/components/Card/Module/index.d.mts.map +0 -1
- package/dist/components/Card/Module/index.d.ts.map +0 -1
- package/dist/components/Card/index.d.mts.map +0 -1
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/DetailsBox.d.mts.map +0 -1
- package/dist/components/DetailsBox.d.ts.map +0 -1
- package/dist/components/DetailsBox.stories.d.mts +0 -179
- package/dist/components/DetailsBox.stories.d.mts.map +0 -1
- package/dist/components/DetailsBox.stories.d.ts +0 -179
- package/dist/components/DetailsBox.stories.d.ts.map +0 -1
- package/dist/components/TableCell.d.mts.map +0 -1
- package/dist/components/TableCell.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/hooks/index.d.mts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useRefresh.d.mts.map +0 -1
- package/dist/hooks/useRefresh.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -214
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -178
- package/dist/index.mjs.map +0 -1
- /package/dist/{ModuleRenderProps.d.mts → browser/ModuleRenderProps.d.mts} +0 -0
- /package/dist/{ModuleRenderProps.d.ts → browser/ModuleRenderProps.d.ts} +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/Card.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/Card.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardActions.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardActions.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardContent.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardContent.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardHeader.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/CardHeader.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Diviner/index.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/Card.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/Card.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardActions.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardActions.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardContent.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardContent.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardHeader.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/CardHeader.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/components/DiscoverDialog.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/components/DiscoverDialog.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/components/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/components/index.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/Module/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Module/index.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/index.d.ts +0 -0
- /package/dist/{components → browser/components}/DetailsBox.d.mts +0 -0
- /package/dist/{components → browser/components}/DetailsBox.d.ts +0 -0
- /package/dist/{components → browser/components}/TableCell.d.mts +0 -0
- /package/dist/{components → browser/components}/TableCell.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/index.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/useRefresh.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/useRefresh.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var DiscoverDialog_exports = {};
|
|
20
|
+
__export(DiscoverDialog_exports, {
|
|
21
|
+
DiscoverDialog: () => DiscoverDialog
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(DiscoverDialog_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_material = require("@mui/material");
|
|
26
|
+
var import_react_promise = require("@xylabs/react-promise");
|
|
27
|
+
const DiscoverDialog = ({ module: module2, setOpen, ...props }) => {
|
|
28
|
+
const [discoverPayloads] = (0, import_react_promise.usePromise)(async () => {
|
|
29
|
+
return await module2?.discover();
|
|
30
|
+
}, [module2]);
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Dialog, { ...props, children: [
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogTitle, { children: [
|
|
33
|
+
"Supported Queries for ",
|
|
34
|
+
module2?.config.name || module2?.address
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Divider, {}),
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Paper, { sx: { p: 1 }, children: [
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogContentText, { children: "All modules share a set of base queries along with ones specific to the module." }),
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: JSON.stringify(discoverPayloads, null, 2) })
|
|
40
|
+
] }) }),
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { onClick: () => setOpen?.(false), variant: "outlined", children: "Close" }) })
|
|
42
|
+
] });
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
DiscoverDialog
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=DiscoverDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Card/Module/components/DiscoverDialog.tsx"],"sourcesContent":["import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogProps, DialogTitle, Divider, Paper } from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport { ModuleInstance } from '@xyo-network/module'\nimport { Dispatch, SetStateAction } from 'react'\n\nexport interface DiscoverDialogProps extends DialogProps {\n module?: 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> = ({ module, setOpen, ...props }) => {\n const [discoverPayloads] = usePromise(async () => {\n return await module?.discover()\n }, [module])\n\n return (\n <Dialog {...props}>\n <DialogTitle>Supported Queries for {module?.config.name || module?.address}</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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBM;AAnBN,sBAA0H;AAC1H,2BAA2B;AAWpB,MAAM,iBAAgD,CAAC,EAAE,QAAAA,SAAQ,SAAS,GAAG,MAAM,MAAM;AAC9F,QAAM,CAAC,gBAAgB,QAAI,iCAAW,YAAY;AAChD,WAAO,MAAMA,SAAQ,SAAS;AAAA,EAChC,GAAG,CAACA,OAAM,CAAC;AAEX,SACE,6CAAC,0BAAQ,GAAG,OACV;AAAA,iDAAC,+BAAY;AAAA;AAAA,MAAuBA,SAAQ,OAAO,QAAQA,SAAQ;AAAA,OAAQ;AAAA,IAC3E,4CAAC,2BAAQ;AAAA,IACT,4CAAC,iCACC,uDAAC,yBAAM,IAAI,EAAE,GAAG,EAAE,GAChB;AAAA,kDAAC,qCAAkB,6FAA+E;AAAA,MAClG,4CAAC,SAAK,eAAK,UAAU,kBAAkB,MAAM,CAAC,GAAE;AAAA,OAClD,GACF;AAAA,IACA,4CAAC,iCACC,sDAAC,0BAAO,SAAS,MAAM,UAAU,KAAK,GAAG,SAAS,YAAY,mBAE9D,GACF;AAAA,KACF;AAEJ;","names":["module"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Paper } from "@mui/material";
|
|
3
|
+
import { usePromise } from "@xylabs/react-promise";
|
|
4
|
+
const DiscoverDialog = ({ module, setOpen, ...props }) => {
|
|
5
|
+
const [discoverPayloads] = usePromise(async () => {
|
|
6
|
+
return await module?.discover();
|
|
7
|
+
}, [module]);
|
|
8
|
+
return /* @__PURE__ */ jsxs(Dialog, { ...props, children: [
|
|
9
|
+
/* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
10
|
+
"Supported Queries for ",
|
|
11
|
+
module?.config.name || module?.address
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
14
|
+
/* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsxs(Paper, { sx: { p: 1 }, children: [
|
|
15
|
+
/* @__PURE__ */ jsx(DialogContentText, { children: "All modules share a set of base queries along with ones specific to the module." }),
|
|
16
|
+
/* @__PURE__ */ jsx("pre", { children: JSON.stringify(discoverPayloads, null, 2) })
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: () => setOpen?.(false), variant: "outlined", children: "Close" }) })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
DiscoverDialog
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=DiscoverDialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Card/Module/components/DiscoverDialog.tsx"],"sourcesContent":["import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogProps, DialogTitle, Divider, Paper } from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport { ModuleInstance } from '@xyo-network/module'\nimport { Dispatch, SetStateAction } from 'react'\n\nexport interface DiscoverDialogProps extends DialogProps {\n module?: 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> = ({ module, setOpen, ...props }) => {\n const [discoverPayloads] = usePromise(async () => {\n return await module?.discover()\n }, [module])\n\n return (\n <Dialog {...props}>\n <DialogTitle>Supported Queries for {module?.config.name || module?.address}</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"],"mappings":"AAmBM,SACA,KADA;AAnBN,SAAS,QAAQ,QAAQ,eAAe,eAAe,mBAAgC,aAAa,SAAS,aAAa;AAC1H,SAAS,kBAAkB;AAWpB,MAAM,iBAAgD,CAAC,EAAE,QAAQ,SAAS,GAAG,MAAM,MAAM;AAC9F,QAAM,CAAC,gBAAgB,IAAI,WAAW,YAAY;AAChD,WAAO,MAAM,QAAQ,SAAS;AAAA,EAChC,GAAG,CAAC,MAAM,CAAC;AAEX,SACE,qBAAC,UAAQ,GAAG,OACV;AAAA,yBAAC,eAAY;AAAA;AAAA,MAAuB,QAAQ,OAAO,QAAQ,QAAQ;AAAA,OAAQ;AAAA,IAC3E,oBAAC,WAAQ;AAAA,IACT,oBAAC,iBACC,+BAAC,SAAM,IAAI,EAAE,GAAG,EAAE,GAChB;AAAA,0BAAC,qBAAkB,6FAA+E;AAAA,MAClG,oBAAC,SAAK,eAAK,UAAU,kBAAkB,MAAM,CAAC,GAAE;AAAA,OAClD,GACF;AAAA,IACA,oBAAC,iBACC,8BAAC,UAAO,SAAS,MAAM,UAAU,KAAK,GAAG,SAAS,YAAY,mBAE9D,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Card/Module/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Card/Module/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./DiscoverDialog"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./DiscoverDialog")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Card/Module/components/index.ts"],"sourcesContent":["export * from './DiscoverDialog'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,6BAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Card/Module/components/index.ts"],"sourcesContent":["export * from './DiscoverDialog'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Module/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var Module_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(Module_exports);
|
|
18
|
+
__reExport(Module_exports, require("./Card"), module.exports);
|
|
19
|
+
__reExport(Module_exports, require("./CardActions"), module.exports);
|
|
20
|
+
__reExport(Module_exports, require("./CardContent"), module.exports);
|
|
21
|
+
__reExport(Module_exports, require("./CardHeader"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./Card"),
|
|
25
|
+
...require("./CardActions"),
|
|
26
|
+
...require("./CardContent"),
|
|
27
|
+
...require("./CardHeader")
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/Module/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './CardActions'\nexport * from './CardContent'\nexport * from './CardHeader'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,mBAAd;AACA,2BAAc,0BADd;AAEA,2BAAc,0BAFd;AAGA,2BAAc,yBAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/Module/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './CardActions'\nexport * from './CardContent'\nexport * from './CardHeader'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var Card_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(Card_exports);
|
|
18
|
+
__reExport(Card_exports, require("./Diviner"), module.exports);
|
|
19
|
+
__reExport(Card_exports, require("./Module"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./Diviner"),
|
|
23
|
+
...require("./Module")
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Diviner'\nexport * from './Module'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,sBAAd;AACA,yBAAc,qBADd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Diviner'\nexport * from './Module'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { ModuleRenderProps } from '../ModuleRenderProps';
|
|
4
|
+
export declare const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps>;
|
|
5
|
+
//# sourceMappingURL=DetailsBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsBox.d.ts","sourceRoot":"","sources":["../../../src/components/DetailsBox.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAKtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAMxD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,CA0BvE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { ModuleRenderProps } from '../ModuleRenderProps';
|
|
4
|
+
export declare const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps>;
|
|
5
|
+
//# sourceMappingURL=DetailsBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsBox.d.ts","sourceRoot":"","sources":["../../../src/components/DetailsBox.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAoB,MAAM,uBAAuB,CAAA;AAKtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAMxD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,CA0BvE,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var DetailsBox_exports = {};
|
|
20
|
+
__export(DetailsBox_exports, {
|
|
21
|
+
ModuleDetailsBox: () => ModuleDetailsBox
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(DetailsBox_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_eth_address = require("@xylabs/eth-address");
|
|
26
|
+
var import_react_button = require("@xylabs/react-button");
|
|
27
|
+
var import_react_crypto = require("@xylabs/react-crypto");
|
|
28
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
29
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
30
|
+
var import_react = require("react");
|
|
31
|
+
const getModuleIcon = (moduleType, module2) => {
|
|
32
|
+
return module2?.queries.find((query) => query.startsWith(`network.xyo.query.${moduleType}`)) ? (0, import_react_shared.findNetworkComponent)(moduleType)?.icon() : null;
|
|
33
|
+
};
|
|
34
|
+
const ModuleDetailsBox = ({ children, module: module2, ...props }) => {
|
|
35
|
+
const [showQueries, setShowQueries] = (0, import_react.useState)(false);
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexCol, { ...props, children: [
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { children: [
|
|
38
|
+
module2 ? ["sentinel", "bridge", "archivist", "diviner", "node"].map((moduleType) => {
|
|
39
|
+
const icon = getModuleIcon(moduleType, module2);
|
|
40
|
+
return icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { onClick: () => setShowQueries(!showQueries), children: icon }, moduleType) : null;
|
|
41
|
+
}) : null,
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_crypto.EthAccountBox, { address: import_eth_address.EthAddress.fromString(module2?.address) })
|
|
43
|
+
] }),
|
|
44
|
+
showQueries ? module2?.queries.map((query) => {
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { children: query }, query);
|
|
46
|
+
}) : null,
|
|
47
|
+
children
|
|
48
|
+
] });
|
|
49
|
+
};
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
ModuleDetailsBox
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=DetailsBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DetailsBox.tsx"],"sourcesContent":["import { EthAddress } from '@xylabs/eth-address'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { Module } from '@xyo-network/module'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\nimport { useState } from 'react'\n\nimport { ModuleRenderProps } from '../ModuleRenderProps'\n\nconst getModuleIcon = (moduleType: string, module: Module) => {\n return module?.queries.find((query) => query.startsWith(`network.xyo.query.${moduleType}`)) ? findNetworkComponent(moduleType)?.icon() : null\n}\n\nexport const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps> = ({ children, module, ...props }) => {\n const [showQueries, setShowQueries] = useState(false)\n return (\n <FlexCol {...props}>\n <FlexRow>\n {module\n ? ['sentinel', 'bridge', 'archivist', 'diviner', 'node'].map((moduleType) => {\n const icon = getModuleIcon(moduleType, module)\n return icon ? (\n <ButtonEx onClick={() => setShowQueries(!showQueries)} key={moduleType}>\n {icon}\n </ButtonEx>\n ) : null\n })\n : null}\n <EthAccountBox address={EthAddress.fromString(module?.address)} />\n </FlexRow>\n\n {showQueries\n ? module?.queries.map((query) => {\n return <FlexRow key={query}>{query}</FlexRow>\n })\n : null}\n {children}\n </FlexCol>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBM;AAlBN,yBAA2B;AAC3B,0BAAyB;AACzB,0BAA8B;AAC9B,2BAA+C;AAE/C,0BAAqC;AACrC,mBAAyB;AAIzB,MAAM,gBAAgB,CAAC,YAAoBA,YAAmB;AAC5D,SAAOA,SAAQ,QAAQ,KAAK,CAAC,UAAU,MAAM,WAAW,qBAAqB,UAAU,EAAE,CAAC,QAAI,0CAAqB,UAAU,GAAG,KAAK,IAAI;AAC3I;AAEO,MAAM,mBAA+D,CAAC,EAAE,UAAU,QAAAA,SAAQ,GAAG,MAAM,MAAM;AAC9G,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,KAAK;AACpD,SACE,6CAAC,gCAAS,GAAG,OACX;AAAA,iDAAC,gCACE;AAAA,MAAAA,UACG,CAAC,YAAY,UAAU,aAAa,WAAW,MAAM,EAAE,IAAI,CAAC,eAAe;AACzE,cAAM,OAAO,cAAc,YAAYA,OAAM;AAC7C,eAAO,OACL,4CAAC,gCAAS,SAAS,MAAM,eAAe,CAAC,WAAW,GACjD,kBADyD,UAE5D,IACE;AAAA,MACN,CAAC,IACD;AAAA,MACJ,4CAAC,qCAAc,SAAS,8BAAW,WAAWA,SAAQ,OAAO,GAAG;AAAA,OAClE;AAAA,IAEC,cACGA,SAAQ,QAAQ,IAAI,CAAC,UAAU;AAC7B,aAAO,4CAAC,gCAAqB,mBAAR,KAAc;AAAA,IACrC,CAAC,IACD;AAAA,IACH;AAAA,KACH;AAEJ;","names":["module"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { EthAddress } from "@xylabs/eth-address";
|
|
3
|
+
import { ButtonEx } from "@xylabs/react-button";
|
|
4
|
+
import { EthAccountBox } from "@xylabs/react-crypto";
|
|
5
|
+
import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
|
|
6
|
+
import { findNetworkComponent } from "@xyo-network/react-shared";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
const getModuleIcon = (moduleType, module) => {
|
|
9
|
+
return module?.queries.find((query) => query.startsWith(`network.xyo.query.${moduleType}`)) ? findNetworkComponent(moduleType)?.icon() : null;
|
|
10
|
+
};
|
|
11
|
+
const ModuleDetailsBox = ({ children, module, ...props }) => {
|
|
12
|
+
const [showQueries, setShowQueries] = useState(false);
|
|
13
|
+
return /* @__PURE__ */ jsxs(FlexCol, { ...props, children: [
|
|
14
|
+
/* @__PURE__ */ jsxs(FlexRow, { children: [
|
|
15
|
+
module ? ["sentinel", "bridge", "archivist", "diviner", "node"].map((moduleType) => {
|
|
16
|
+
const icon = getModuleIcon(moduleType, module);
|
|
17
|
+
return icon ? /* @__PURE__ */ jsx(ButtonEx, { onClick: () => setShowQueries(!showQueries), children: icon }, moduleType) : null;
|
|
18
|
+
}) : null,
|
|
19
|
+
/* @__PURE__ */ jsx(EthAccountBox, { address: EthAddress.fromString(module?.address) })
|
|
20
|
+
] }),
|
|
21
|
+
showQueries ? module?.queries.map((query) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(FlexRow, { children: query }, query);
|
|
23
|
+
}) : null,
|
|
24
|
+
children
|
|
25
|
+
] });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
ModuleDetailsBox
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=DetailsBox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DetailsBox.tsx"],"sourcesContent":["import { EthAddress } from '@xylabs/eth-address'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { EthAccountBox } from '@xylabs/react-crypto'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { Module } from '@xyo-network/module'\nimport { findNetworkComponent } from '@xyo-network/react-shared'\nimport { useState } from 'react'\n\nimport { ModuleRenderProps } from '../ModuleRenderProps'\n\nconst getModuleIcon = (moduleType: string, module: Module) => {\n return module?.queries.find((query) => query.startsWith(`network.xyo.query.${moduleType}`)) ? findNetworkComponent(moduleType)?.icon() : null\n}\n\nexport const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps> = ({ children, module, ...props }) => {\n const [showQueries, setShowQueries] = useState(false)\n return (\n <FlexCol {...props}>\n <FlexRow>\n {module\n ? ['sentinel', 'bridge', 'archivist', 'diviner', 'node'].map((moduleType) => {\n const icon = getModuleIcon(moduleType, module)\n return icon ? (\n <ButtonEx onClick={() => setShowQueries(!showQueries)} key={moduleType}>\n {icon}\n </ButtonEx>\n ) : null\n })\n : null}\n <EthAccountBox address={EthAddress.fromString(module?.address)} />\n </FlexRow>\n\n {showQueries\n ? module?.queries.map((query) => {\n return <FlexRow key={query}>{query}</FlexRow>\n })\n : null}\n {children}\n </FlexCol>\n )\n}\n"],"mappings":"AAkBM,SAKU,KALV;AAlBN,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAuB,SAAS,eAAe;AAE/C,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAIzB,MAAM,gBAAgB,CAAC,YAAoB,WAAmB;AAC5D,SAAO,QAAQ,QAAQ,KAAK,CAAC,UAAU,MAAM,WAAW,qBAAqB,UAAU,EAAE,CAAC,IAAI,qBAAqB,UAAU,GAAG,KAAK,IAAI;AAC3I;AAEO,MAAM,mBAA+D,CAAC,EAAE,UAAU,QAAQ,GAAG,MAAM,MAAM;AAC9G,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,KAAK;AACpD,SACE,qBAAC,WAAS,GAAG,OACX;AAAA,yBAAC,WACE;AAAA,eACG,CAAC,YAAY,UAAU,aAAa,WAAW,MAAM,EAAE,IAAI,CAAC,eAAe;AACzE,cAAM,OAAO,cAAc,YAAY,MAAM;AAC7C,eAAO,OACL,oBAAC,YAAS,SAAS,MAAM,eAAe,CAAC,WAAW,GACjD,kBADyD,UAE5D,IACE;AAAA,MACN,CAAC,IACD;AAAA,MACJ,oBAAC,iBAAc,SAAS,WAAW,WAAW,QAAQ,OAAO,GAAG;AAAA,OAClE;AAAA,IAEC,cACG,QAAQ,QAAQ,IAAI,CAAC,UAAU;AAC7B,aAAO,oBAAC,WAAqB,mBAAR,KAAc;AAAA,IACrC,CAAC,IACD;AAAA,IACH;AAAA,KACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var DetailsBox_stories_exports = {};
|
|
20
|
+
__export(DetailsBox_stories_exports, {
|
|
21
|
+
ArchivistDetails: () => ArchivistDetails,
|
|
22
|
+
DivinerDetails: () => DivinerDetails,
|
|
23
|
+
NodeDetails: () => NodeDetails,
|
|
24
|
+
default: () => DetailsBox_stories_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(DetailsBox_stories_exports);
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
29
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
30
|
+
var import_archivist = require("@xyo-network/archivist");
|
|
31
|
+
var import_crypto_asset_plugin = require("@xyo-network/crypto-asset-plugin");
|
|
32
|
+
var import_node_memory = require("@xyo-network/node-memory");
|
|
33
|
+
var import_react2 = require("react");
|
|
34
|
+
var import_DetailsBox = require("./DetailsBox");
|
|
35
|
+
const StorybookEntry = {
|
|
36
|
+
argTypes: {},
|
|
37
|
+
component: import_DetailsBox.ModuleDetailsBox,
|
|
38
|
+
parameters: {
|
|
39
|
+
docs: {
|
|
40
|
+
page: null
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
title: "modules/module/DetailsBox"
|
|
44
|
+
};
|
|
45
|
+
const NodeTemplate = (args) => {
|
|
46
|
+
const [node, setNode] = (0, import_react2.useState)();
|
|
47
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
48
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
|
+
async (mounted) => {
|
|
50
|
+
const node2 = await import_node_memory.MemoryNode.create();
|
|
51
|
+
if (mounted()) {
|
|
52
|
+
setNode(node2);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
[]
|
|
56
|
+
);
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DetailsBox.ModuleDetailsBox, { module: node, ...args }) });
|
|
58
|
+
};
|
|
59
|
+
const NodeDetails = NodeTemplate.bind({});
|
|
60
|
+
NodeDetails.args = {};
|
|
61
|
+
const ArchivistTemplate = (args) => {
|
|
62
|
+
const [archivist, setArchivist] = (0, import_react2.useState)();
|
|
63
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
64
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
+
async (mounted) => {
|
|
66
|
+
const archivist2 = await import_archivist.MemoryArchivist.create();
|
|
67
|
+
if (mounted()) {
|
|
68
|
+
setArchivist(archivist2);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[]
|
|
72
|
+
);
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DetailsBox.ModuleDetailsBox, { module: archivist, ...args }) });
|
|
74
|
+
};
|
|
75
|
+
const ArchivistDetails = ArchivistTemplate.bind({});
|
|
76
|
+
ArchivistDetails.args = {};
|
|
77
|
+
const DivinerTemplate = (args) => {
|
|
78
|
+
const [diviner, setDiviner] = (0, import_react2.useState)();
|
|
79
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
80
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
|
+
async (mounted) => {
|
|
82
|
+
const diviner2 = await import_crypto_asset_plugin.CryptoMarketAssetDiviner.create();
|
|
83
|
+
if (mounted()) {
|
|
84
|
+
setDiviner(diviner2);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
[]
|
|
88
|
+
);
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DetailsBox.ModuleDetailsBox, { module: diviner, ...args }) });
|
|
90
|
+
};
|
|
91
|
+
const DivinerDetails = DivinerTemplate.bind({});
|
|
92
|
+
DivinerDetails.args = {};
|
|
93
|
+
var DetailsBox_stories_default = StorybookEntry;
|
|
94
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
95
|
+
0 && (module.exports = {
|
|
96
|
+
ArchivistDetails,
|
|
97
|
+
DivinerDetails,
|
|
98
|
+
NodeDetails
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=DetailsBox.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DetailsBox.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport { MemoryArchivist } from '@xyo-network/archivist'\nimport { CryptoMarketAssetDiviner } from '@xyo-network/crypto-asset-plugin'\nimport { DivinerInstance } from '@xyo-network/diviner'\nimport { MemoryNode } from '@xyo-network/node-memory'\nimport { useState } from 'react'\n\nimport { ModuleDetailsBox } from './DetailsBox'\n\nconst StorybookEntry = {\n argTypes: {},\n component: ModuleDetailsBox,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'modules/module/DetailsBox',\n} as Meta<typeof ModuleDetailsBox>\n\nconst NodeTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [node, setNode] = useState<MemoryNode>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const node = await MemoryNode.create()\n if (mounted()) {\n setNode(node)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={node} {...args} />\n </FlexCol>\n )\n}\n\nconst NodeDetails = NodeTemplate.bind({})\nNodeDetails.args = {}\n\nconst ArchivistTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [archivist, setArchivist] = useState<MemoryArchivist>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const archivist = await MemoryArchivist.create()\n if (mounted()) {\n setArchivist(archivist)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={archivist} {...args} />\n </FlexCol>\n )\n}\n\nconst ArchivistDetails = ArchivistTemplate.bind({})\nArchivistDetails.args = {}\n\nconst DivinerTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [diviner, setDiviner] = useState<DivinerInstance>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const diviner = await CryptoMarketAssetDiviner.create()\n if (mounted()) {\n setDiviner(diviner)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={diviner} {...args} />\n </FlexCol>\n )\n}\n\nconst DivinerDetails = DivinerTemplate.bind({})\nDivinerDetails.args = {}\n\nexport { ArchivistDetails, DivinerDetails, NodeDetails }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoCM;AAnCN,gCAA+B;AAC/B,2BAAwB;AACxB,uBAAgC;AAChC,iCAAyC;AAEzC,yBAA2B;AAC3B,IAAAA,gBAAyB;AAEzB,wBAAiC;AAEjC,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,eAAiD,CAAC,SAAS;AAC/D,QAAM,CAAC,MAAM,OAAO,QAAI,wBAAqB;AAC7C;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMC,QAAO,MAAM,8BAAW,OAAO;AACrC,UAAI,QAAQ,GAAG;AACb,gBAAQA,KAAI;AAAA,MACd;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,4CAAC,gCAAQ,WAAU,QAAO,YAAW,WACnC,sDAAC,sCAAiB,QAAQ,MAAO,GAAG,MAAM,GAC5C;AAEJ;AAEA,MAAM,cAAc,aAAa,KAAK,CAAC,CAAC;AACxC,YAAY,OAAO,CAAC;AAEpB,MAAM,oBAAsD,CAAC,SAAS;AACpE,QAAM,CAAC,WAAW,YAAY,QAAI,wBAA0B;AAC5D;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMC,aAAY,MAAM,iCAAgB,OAAO;AAC/C,UAAI,QAAQ,GAAG;AACb,qBAAaA,UAAS;AAAA,MACxB;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,4CAAC,gCAAQ,WAAU,QAAO,YAAW,WACnC,sDAAC,sCAAiB,QAAQ,WAAY,GAAG,MAAM,GACjD;AAEJ;AAEA,MAAM,mBAAmB,kBAAkB,KAAK,CAAC,CAAC;AAClD,iBAAiB,OAAO,CAAC;AAEzB,MAAM,kBAAoD,CAAC,SAAS;AAClE,QAAM,CAAC,SAAS,UAAU,QAAI,wBAA0B;AACxD;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMC,WAAU,MAAM,oDAAyB,OAAO;AACtD,UAAI,QAAQ,GAAG;AACb,mBAAWA,QAAO;AAAA,MACpB;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,4CAAC,gCAAQ,WAAU,QAAO,YAAW,WACnC,sDAAC,sCAAiB,QAAQ,SAAU,GAAG,MAAM,GAC/C;AAEJ;AAEA,MAAM,iBAAiB,gBAAgB,KAAK,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC;AAKvB,IAAO,6BAAQ;","names":["import_react","node","archivist","diviner"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
3
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
|
4
|
+
import { MemoryArchivist } from "@xyo-network/archivist";
|
|
5
|
+
import { CryptoMarketAssetDiviner } from "@xyo-network/crypto-asset-plugin";
|
|
6
|
+
import { MemoryNode } from "@xyo-network/node-memory";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { ModuleDetailsBox } from "./DetailsBox";
|
|
9
|
+
const StorybookEntry = {
|
|
10
|
+
argTypes: {},
|
|
11
|
+
component: ModuleDetailsBox,
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
page: null
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
title: "modules/module/DetailsBox"
|
|
18
|
+
};
|
|
19
|
+
const NodeTemplate = (args) => {
|
|
20
|
+
const [node, setNode] = useState();
|
|
21
|
+
useAsyncEffect(
|
|
22
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
|
+
async (mounted) => {
|
|
24
|
+
const node2 = await MemoryNode.create();
|
|
25
|
+
if (mounted()) {
|
|
26
|
+
setNode(node2);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
[]
|
|
30
|
+
);
|
|
31
|
+
return /* @__PURE__ */ jsx(FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ jsx(ModuleDetailsBox, { module: node, ...args }) });
|
|
32
|
+
};
|
|
33
|
+
const NodeDetails = NodeTemplate.bind({});
|
|
34
|
+
NodeDetails.args = {};
|
|
35
|
+
const ArchivistTemplate = (args) => {
|
|
36
|
+
const [archivist, setArchivist] = useState();
|
|
37
|
+
useAsyncEffect(
|
|
38
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39
|
+
async (mounted) => {
|
|
40
|
+
const archivist2 = await MemoryArchivist.create();
|
|
41
|
+
if (mounted()) {
|
|
42
|
+
setArchivist(archivist2);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
[]
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ jsx(FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ jsx(ModuleDetailsBox, { module: archivist, ...args }) });
|
|
48
|
+
};
|
|
49
|
+
const ArchivistDetails = ArchivistTemplate.bind({});
|
|
50
|
+
ArchivistDetails.args = {};
|
|
51
|
+
const DivinerTemplate = (args) => {
|
|
52
|
+
const [diviner, setDiviner] = useState();
|
|
53
|
+
useAsyncEffect(
|
|
54
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
55
|
+
async (mounted) => {
|
|
56
|
+
const diviner2 = await CryptoMarketAssetDiviner.create();
|
|
57
|
+
if (mounted()) {
|
|
58
|
+
setDiviner(diviner2);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[]
|
|
62
|
+
);
|
|
63
|
+
return /* @__PURE__ */ jsx(FlexCol, { minHeight: "80vh", alignItems: "stretch", children: /* @__PURE__ */ jsx(ModuleDetailsBox, { module: diviner, ...args }) });
|
|
64
|
+
};
|
|
65
|
+
const DivinerDetails = DivinerTemplate.bind({});
|
|
66
|
+
DivinerDetails.args = {};
|
|
67
|
+
var DetailsBox_stories_default = StorybookEntry;
|
|
68
|
+
export {
|
|
69
|
+
ArchivistDetails,
|
|
70
|
+
DivinerDetails,
|
|
71
|
+
NodeDetails,
|
|
72
|
+
DetailsBox_stories_default as default
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=DetailsBox.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DetailsBox.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport { MemoryArchivist } from '@xyo-network/archivist'\nimport { CryptoMarketAssetDiviner } from '@xyo-network/crypto-asset-plugin'\nimport { DivinerInstance } from '@xyo-network/diviner'\nimport { MemoryNode } from '@xyo-network/node-memory'\nimport { useState } from 'react'\n\nimport { ModuleDetailsBox } from './DetailsBox'\n\nconst StorybookEntry = {\n argTypes: {},\n component: ModuleDetailsBox,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'modules/module/DetailsBox',\n} as Meta<typeof ModuleDetailsBox>\n\nconst NodeTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [node, setNode] = useState<MemoryNode>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const node = await MemoryNode.create()\n if (mounted()) {\n setNode(node)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={node} {...args} />\n </FlexCol>\n )\n}\n\nconst NodeDetails = NodeTemplate.bind({})\nNodeDetails.args = {}\n\nconst ArchivistTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [archivist, setArchivist] = useState<MemoryArchivist>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const archivist = await MemoryArchivist.create()\n if (mounted()) {\n setArchivist(archivist)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={archivist} {...args} />\n </FlexCol>\n )\n}\n\nconst ArchivistDetails = ArchivistTemplate.bind({})\nArchivistDetails.args = {}\n\nconst DivinerTemplate: StoryFn<typeof ModuleDetailsBox> = (args) => {\n const [diviner, setDiviner] = useState<DivinerInstance>()\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const diviner = await CryptoMarketAssetDiviner.create()\n if (mounted()) {\n setDiviner(diviner)\n }\n },\n [],\n )\n return (\n <FlexCol minHeight=\"80vh\" alignItems=\"stretch\">\n <ModuleDetailsBox module={diviner} {...args} />\n </FlexCol>\n )\n}\n\nconst DivinerDetails = DivinerTemplate.bind({})\nDivinerDetails.args = {}\n\nexport { ArchivistDetails, DivinerDetails, NodeDetails }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAoCM;AAnCN,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,gCAAgC;AAEzC,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAEzB,SAAS,wBAAwB;AAEjC,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,eAAiD,CAAC,SAAS;AAC/D,QAAM,CAAC,MAAM,OAAO,IAAI,SAAqB;AAC7C;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMA,QAAO,MAAM,WAAW,OAAO;AACrC,UAAI,QAAQ,GAAG;AACb,gBAAQA,KAAI;AAAA,MACd;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,oBAAC,WAAQ,WAAU,QAAO,YAAW,WACnC,8BAAC,oBAAiB,QAAQ,MAAO,GAAG,MAAM,GAC5C;AAEJ;AAEA,MAAM,cAAc,aAAa,KAAK,CAAC,CAAC;AACxC,YAAY,OAAO,CAAC;AAEpB,MAAM,oBAAsD,CAAC,SAAS;AACpE,QAAM,CAAC,WAAW,YAAY,IAAI,SAA0B;AAC5D;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMC,aAAY,MAAM,gBAAgB,OAAO;AAC/C,UAAI,QAAQ,GAAG;AACb,qBAAaA,UAAS;AAAA,MACxB;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,oBAAC,WAAQ,WAAU,QAAO,YAAW,WACnC,8BAAC,oBAAiB,QAAQ,WAAY,GAAG,MAAM,GACjD;AAEJ;AAEA,MAAM,mBAAmB,kBAAkB,KAAK,CAAC,CAAC;AAClD,iBAAiB,OAAO,CAAC;AAEzB,MAAM,kBAAoD,CAAC,SAAS;AAClE,QAAM,CAAC,SAAS,UAAU,IAAI,SAA0B;AACxD;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMC,WAAU,MAAM,yBAAyB,OAAO;AACtD,UAAI,QAAQ,GAAG;AACb,mBAAWA,QAAO;AAAA,MACpB;AAAA,IACF;AAAA,IACA,CAAC;AAAA,EACH;AACA,SACE,oBAAC,WAAQ,WAAU,QAAO,YAAW,WACnC,8BAAC,oBAAiB,QAAQ,SAAU,GAAG,MAAM,GAC/C;AAEJ;AAEA,MAAM,iBAAiB,gBAAgB,KAAK,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC;AAKvB,IAAO,6BAAQ;","names":["node","archivist","diviner"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/TableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,eAAe,CAAA;AAIzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,cAAc,CAOxE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/TableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,eAAe,CAAA;AAIzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,cAAc,CAOxE,CAAA"}
|