@xyo-network/react-archivist 2.64.0-rc.2 → 2.64.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/Card/Card.d.mts.map +1 -0
- package/dist/browser/components/Card/Card.d.ts.map +1 -0
- package/dist/browser/components/Card/Card.js +17 -0
- package/dist/browser/components/Card/Card.js.map +1 -0
- package/dist/browser/components/Card/Card.stories.js +66 -0
- package/dist/browser/components/Card/Card.stories.js.map +1 -0
- package/dist/browser/components/Card/CardActions.d.mts.map +1 -0
- package/dist/browser/components/Card/CardActions.d.ts.map +1 -0
- package/dist/browser/components/Card/CardActions.js +9 -0
- package/dist/browser/components/Card/CardActions.js.map +1 -0
- package/dist/browser/components/Card/CardContent.d.mts.map +1 -0
- package/dist/browser/components/Card/CardContent.d.ts.map +1 -0
- package/dist/browser/components/Card/CardContent.js +35 -0
- package/dist/browser/components/Card/CardContent.js.map +1 -0
- package/dist/browser/components/Card/CardHeader.d.mts.map +1 -0
- package/dist/browser/components/Card/CardHeader.d.ts.map +1 -0
- package/dist/browser/components/Card/CardHeader.js +21 -0
- package/dist/browser/components/Card/CardHeader.js.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.d.mts.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.d.ts.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.js +14 -0
- package/dist/browser/components/Card/components/ArchivistParent.js.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.d.mts.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.d.ts.map +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.js +25 -0
- package/dist/browser/components/Card/components/ArchivistParents.js.map +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.mts.map +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.ts.map +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.js +17 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.js.map +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.stories.js +32 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.stories.js.map +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.js +69 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.js.map +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.stories.js +52 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.stories.js.map +1 -0
- package/dist/browser/components/Card/components/Stats/index.d.mts.map +1 -0
- package/dist/browser/components/Card/components/Stats/index.d.ts.map +1 -0
- package/dist/browser/components/Card/components/Stats/index.js +3 -0
- package/dist/browser/components/Card/components/Stats/index.js.map +1 -0
- package/dist/browser/components/Card/components/index.d.mts.map +1 -0
- package/dist/browser/components/Card/components/index.d.ts.map +1 -0
- package/dist/browser/components/Card/components/index.js +4 -0
- package/dist/browser/components/Card/components/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 +4 -0
- package/dist/browser/components/Card/index.js.map +1 -0
- package/dist/browser/components/Details/Details.d.mts.map +1 -0
- package/dist/browser/components/Details/Details.d.ts.map +1 -0
- package/dist/browser/components/Details/Details.js +63 -0
- package/dist/browser/components/Details/Details.js.map +1 -0
- package/dist/browser/components/Details/Details.stories.js +57 -0
- package/dist/browser/components/Details/Details.stories.js.map +1 -0
- package/dist/browser/components/Details/index.d.mts.map +1 -0
- package/dist/browser/components/Details/index.d.ts.map +1 -0
- package/dist/browser/components/Details/index.js +2 -0
- package/dist/browser/components/Details/index.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 +3 -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 +3 -0
- package/dist/browser/hooks/index.js.map +1 -0
- package/dist/browser/hooks/node/index.d.mts.map +1 -0
- package/dist/browser/hooks/node/index.d.ts.map +1 -0
- package/dist/browser/hooks/node/index.js +3 -0
- package/dist/browser/hooks/node/index.js.map +1 -0
- package/dist/browser/hooks/node/useArchivistFromNode.d.mts.map +1 -0
- package/dist/browser/hooks/node/useArchivistFromNode.d.ts.map +1 -0
- package/dist/browser/hooks/node/useArchivistFromNode.js +16 -0
- package/dist/browser/hooks/node/useArchivistFromNode.js.map +1 -0
- package/dist/browser/hooks/node/useArchivistsFromNode.d.mts.map +1 -0
- package/dist/browser/hooks/node/useArchivistsFromNode.d.ts.map +1 -0
- package/dist/browser/hooks/node/useArchivistsFromNode.js +25 -0
- package/dist/browser/hooks/node/useArchivistsFromNode.js.map +1 -0
- package/dist/browser/hooks/queries/index.d.mts.map +1 -0
- package/dist/browser/hooks/queries/index.d.ts.map +1 -0
- package/dist/browser/hooks/queries/index.js +3 -0
- package/dist/browser/hooks/queries/index.js.map +1 -0
- package/dist/browser/hooks/queries/useArchivistAll.d.mts.map +1 -0
- package/dist/browser/hooks/queries/useArchivistAll.d.ts.map +1 -0
- package/dist/browser/hooks/queries/useArchivistAll.js +22 -0
- package/dist/browser/hooks/queries/useArchivistAll.js.map +1 -0
- package/dist/browser/hooks/queries/useArchivistGet.d.mts.map +1 -0
- package/dist/browser/hooks/queries/useArchivistGet.d.ts.map +1 -0
- package/dist/browser/hooks/queries/useArchivistGet.js +15 -0
- package/dist/browser/hooks/queries/useArchivistGet.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 +3 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/components/Card/Card.d.mts +6 -0
- package/dist/node/components/Card/Card.d.mts.map +1 -0
- package/dist/node/components/Card/Card.d.ts +6 -0
- package/dist/node/components/Card/Card.d.ts.map +1 -0
- package/dist/node/components/Card/Card.js +41 -0
- package/dist/node/components/Card/Card.js.map +1 -0
- package/dist/node/components/Card/Card.mjs +17 -0
- package/dist/node/components/Card/Card.mjs.map +1 -0
- package/dist/node/components/Card/Card.stories.js +90 -0
- package/dist/node/components/Card/Card.stories.js.map +1 -0
- package/dist/node/components/Card/Card.stories.mjs +66 -0
- package/dist/node/components/Card/Card.stories.mjs.map +1 -0
- package/dist/node/components/Card/CardActions.d.mts +6 -0
- package/dist/node/components/Card/CardActions.d.mts.map +1 -0
- package/dist/node/components/Card/CardActions.d.ts +6 -0
- package/dist/node/components/Card/CardActions.d.ts.map +1 -0
- package/dist/node/components/Card/CardActions.js +33 -0
- package/dist/node/components/Card/CardActions.js.map +1 -0
- package/dist/node/components/Card/CardActions.mjs +9 -0
- package/dist/node/components/Card/CardActions.mjs.map +1 -0
- package/dist/node/components/Card/CardContent.d.mts +6 -0
- package/dist/node/components/Card/CardContent.d.mts.map +1 -0
- package/dist/node/components/Card/CardContent.d.ts +6 -0
- package/dist/node/components/Card/CardContent.d.ts.map +1 -0
- package/dist/node/components/Card/CardContent.js +59 -0
- package/dist/node/components/Card/CardContent.js.map +1 -0
- package/dist/node/components/Card/CardContent.mjs +35 -0
- package/dist/node/components/Card/CardContent.mjs.map +1 -0
- package/dist/node/components/Card/CardHeader.d.mts +6 -0
- package/dist/node/components/Card/CardHeader.d.mts.map +1 -0
- package/dist/node/components/Card/CardHeader.d.ts +6 -0
- package/dist/node/components/Card/CardHeader.d.ts.map +1 -0
- package/dist/node/components/Card/CardHeader.js +45 -0
- package/dist/node/components/Card/CardHeader.js.map +1 -0
- package/dist/node/components/Card/CardHeader.mjs +21 -0
- package/dist/node/components/Card/CardHeader.mjs.map +1 -0
- package/dist/node/components/Card/components/ArchivistParent.d.mts +7 -0
- package/dist/node/components/Card/components/ArchivistParent.d.mts.map +1 -0
- package/dist/node/components/Card/components/ArchivistParent.d.ts +7 -0
- package/dist/node/components/Card/components/ArchivistParent.d.ts.map +1 -0
- package/dist/node/components/Card/components/ArchivistParent.js +38 -0
- package/dist/node/components/Card/components/ArchivistParent.js.map +1 -0
- package/dist/node/components/Card/components/ArchivistParent.mjs +14 -0
- package/dist/node/components/Card/components/ArchivistParent.mjs.map +1 -0
- package/dist/node/components/Card/components/ArchivistParents.d.mts +8 -0
- package/dist/node/components/Card/components/ArchivistParents.d.mts.map +1 -0
- package/dist/node/components/Card/components/ArchivistParents.d.ts +8 -0
- package/dist/node/components/Card/components/ArchivistParents.d.ts.map +1 -0
- package/dist/node/components/Card/components/ArchivistParents.js +49 -0
- package/dist/node/components/Card/components/ArchivistParents.js.map +1 -0
- package/dist/node/components/Card/components/ArchivistParents.mjs +25 -0
- package/dist/node/components/Card/components/ArchivistParents.mjs.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.mts +10 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.mts.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.ts +10 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.ts.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.js +41 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.js.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.mjs +17 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.mjs.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.stories.js +57 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.stories.js.map +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.stories.mjs +32 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.stories.mjs.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.mts +7 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.ts +7 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.js +93 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.js.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.mjs +69 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.mjs.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.stories.js +76 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.stories.js.map +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.stories.mjs +52 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.stories.mjs.map +1 -0
- package/dist/node/components/Card/components/Stats/index.d.mts +3 -0
- package/dist/node/components/Card/components/Stats/index.d.mts.map +1 -0
- package/dist/node/components/Card/components/Stats/index.d.ts +3 -0
- package/dist/node/components/Card/components/Stats/index.d.ts.map +1 -0
- package/dist/node/components/Card/components/Stats/index.js +25 -0
- package/dist/node/components/Card/components/Stats/index.js.map +1 -0
- package/dist/node/components/Card/components/Stats/index.mjs +3 -0
- package/dist/node/components/Card/components/Stats/index.mjs.map +1 -0
- package/dist/node/components/Card/components/index.d.mts +4 -0
- package/dist/node/components/Card/components/index.d.mts.map +1 -0
- package/dist/node/components/Card/components/index.d.ts +4 -0
- package/dist/node/components/Card/components/index.d.ts.map +1 -0
- package/dist/node/components/Card/components/index.js +27 -0
- package/dist/node/components/Card/components/index.js.map +1 -0
- package/dist/node/components/Card/components/index.mjs +4 -0
- package/dist/node/components/Card/components/index.mjs.map +1 -0
- package/dist/node/components/Card/index.d.mts +4 -0
- package/dist/node/components/Card/index.d.mts.map +1 -0
- package/dist/node/components/Card/index.d.ts +4 -0
- package/dist/node/components/Card/index.d.ts.map +1 -0
- package/dist/node/components/Card/index.js +27 -0
- package/dist/node/components/Card/index.js.map +1 -0
- package/dist/node/components/Card/index.mjs +4 -0
- package/dist/node/components/Card/index.mjs.map +1 -0
- package/dist/node/components/Details/Details.d.mts +7 -0
- package/dist/node/components/Details/Details.d.mts.map +1 -0
- package/dist/node/components/Details/Details.d.ts +7 -0
- package/dist/node/components/Details/Details.d.ts.map +1 -0
- package/dist/node/components/Details/Details.js +87 -0
- package/dist/node/components/Details/Details.js.map +1 -0
- package/dist/node/components/Details/Details.mjs +63 -0
- package/dist/node/components/Details/Details.mjs.map +1 -0
- package/dist/node/components/Details/Details.stories.js +83 -0
- package/dist/node/components/Details/Details.stories.js.map +1 -0
- package/dist/node/components/Details/Details.stories.mjs +57 -0
- package/dist/node/components/Details/Details.stories.mjs.map +1 -0
- package/dist/node/components/Details/index.d.mts +2 -0
- package/dist/node/components/Details/index.d.mts.map +1 -0
- package/dist/node/components/Details/index.d.ts +2 -0
- package/dist/node/components/Details/index.d.ts.map +1 -0
- package/dist/node/components/Details/index.js +23 -0
- package/dist/node/components/Details/index.js.map +1 -0
- package/dist/node/components/Details/index.mjs +2 -0
- package/dist/node/components/Details/index.mjs.map +1 -0
- package/dist/node/components/index.d.mts +3 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +3 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +25 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +3 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/hooks/index.d.mts +3 -0
- package/dist/node/hooks/index.d.mts.map +1 -0
- package/dist/node/hooks/index.d.ts +3 -0
- package/dist/node/hooks/index.d.ts.map +1 -0
- package/dist/node/hooks/index.js +25 -0
- package/dist/node/hooks/index.js.map +1 -0
- package/dist/node/hooks/index.mjs +3 -0
- package/dist/node/hooks/index.mjs.map +1 -0
- package/dist/node/hooks/node/index.d.mts +3 -0
- package/dist/node/hooks/node/index.d.mts.map +1 -0
- package/dist/node/hooks/node/index.d.ts +3 -0
- package/dist/node/hooks/node/index.d.ts.map +1 -0
- package/dist/node/hooks/node/index.js +25 -0
- package/dist/node/hooks/node/index.js.map +1 -0
- package/dist/node/hooks/node/index.mjs +3 -0
- package/dist/node/hooks/node/index.mjs.map +1 -0
- package/dist/node/hooks/node/useArchivistFromNode.d.mts +4 -0
- package/dist/node/hooks/node/useArchivistFromNode.d.mts.map +1 -0
- package/dist/node/hooks/node/useArchivistFromNode.d.ts +4 -0
- package/dist/node/hooks/node/useArchivistFromNode.d.ts.map +1 -0
- package/dist/node/hooks/node/useArchivistFromNode.js +40 -0
- package/dist/node/hooks/node/useArchivistFromNode.js.map +1 -0
- package/dist/node/hooks/node/useArchivistFromNode.mjs +16 -0
- package/dist/node/hooks/node/useArchivistFromNode.mjs.map +1 -0
- package/dist/node/hooks/node/useArchivistsFromNode.d.mts +5 -0
- package/dist/node/hooks/node/useArchivistsFromNode.d.mts.map +1 -0
- package/dist/node/hooks/node/useArchivistsFromNode.d.ts +5 -0
- package/dist/node/hooks/node/useArchivistsFromNode.d.ts.map +1 -0
- package/dist/node/hooks/node/useArchivistsFromNode.js +49 -0
- package/dist/node/hooks/node/useArchivistsFromNode.js.map +1 -0
- package/dist/node/hooks/node/useArchivistsFromNode.mjs +25 -0
- package/dist/node/hooks/node/useArchivistsFromNode.mjs.map +1 -0
- package/dist/node/hooks/queries/index.d.mts +3 -0
- package/dist/node/hooks/queries/index.d.mts.map +1 -0
- package/dist/node/hooks/queries/index.d.ts +3 -0
- package/dist/node/hooks/queries/index.d.ts.map +1 -0
- package/dist/node/hooks/queries/index.js +25 -0
- package/dist/node/hooks/queries/index.js.map +1 -0
- package/dist/node/hooks/queries/index.mjs +3 -0
- package/dist/node/hooks/queries/index.mjs.map +1 -0
- package/dist/node/hooks/queries/useArchivistAll.d.mts +5 -0
- package/dist/node/hooks/queries/useArchivistAll.d.mts.map +1 -0
- package/dist/node/hooks/queries/useArchivistAll.d.ts +5 -0
- package/dist/node/hooks/queries/useArchivistAll.d.ts.map +1 -0
- package/dist/node/hooks/queries/useArchivistAll.js +46 -0
- package/dist/node/hooks/queries/useArchivistAll.js.map +1 -0
- package/dist/node/hooks/queries/useArchivistAll.mjs +22 -0
- package/dist/node/hooks/queries/useArchivistAll.mjs.map +1 -0
- package/dist/node/hooks/queries/useArchivistGet.d.mts +8 -0
- package/dist/node/hooks/queries/useArchivistGet.d.mts.map +1 -0
- package/dist/node/hooks/queries/useArchivistGet.d.ts +8 -0
- package/dist/node/hooks/queries/useArchivistGet.d.ts.map +1 -0
- package/dist/node/hooks/queries/useArchivistGet.js +39 -0
- package/dist/node/hooks/queries/useArchivistGet.js.map +1 -0
- package/dist/node/hooks/queries/useArchivistGet.mjs +15 -0
- package/dist/node/hooks/queries/useArchivistGet.mjs.map +1 -0
- package/dist/node/index.d.mts +3 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +25 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +3 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +32 -32
- package/src/components/Card/components/Stats/ArchivistStats.tsx +2 -2
- package/dist/components/Card/Card.d.mts.map +0 -1
- package/dist/components/Card/Card.d.ts.map +0 -1
- package/dist/components/Card/Card.stories.d.mts +0 -109
- package/dist/components/Card/Card.stories.d.mts.map +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -109
- package/dist/components/Card/Card.stories.d.ts.map +0 -1
- package/dist/components/Card/CardActions.d.mts.map +0 -1
- package/dist/components/Card/CardActions.d.ts.map +0 -1
- package/dist/components/Card/CardContent.d.mts.map +0 -1
- package/dist/components/Card/CardContent.d.ts.map +0 -1
- package/dist/components/Card/CardHeader.d.mts.map +0 -1
- package/dist/components/Card/CardHeader.d.ts.map +0 -1
- package/dist/components/Card/components/ArchivistParent.d.mts.map +0 -1
- package/dist/components/Card/components/ArchivistParent.d.ts.map +0 -1
- package/dist/components/Card/components/ArchivistParents.d.mts.map +0 -1
- package/dist/components/Card/components/ArchivistParents.d.ts.map +0 -1
- package/dist/components/Card/components/Stats/ArchivistStats.d.mts.map +0 -1
- package/dist/components/Card/components/Stats/ArchivistStats.d.ts.map +0 -1
- package/dist/components/Card/components/Stats/ArchivistStats.stories.d.mts +0 -6
- package/dist/components/Card/components/Stats/ArchivistStats.stories.d.mts.map +0 -1
- package/dist/components/Card/components/Stats/ArchivistStats.stories.d.ts +0 -6
- package/dist/components/Card/components/Stats/ArchivistStats.stories.d.ts.map +0 -1
- package/dist/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +0 -1
- package/dist/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +0 -1
- package/dist/components/Card/components/Stats/MemoryArchivistStats.stories.d.mts +0 -5
- package/dist/components/Card/components/Stats/MemoryArchivistStats.stories.d.mts.map +0 -1
- package/dist/components/Card/components/Stats/MemoryArchivistStats.stories.d.ts +0 -5
- package/dist/components/Card/components/Stats/MemoryArchivistStats.stories.d.ts.map +0 -1
- package/dist/components/Card/components/Stats/index.d.mts.map +0 -1
- package/dist/components/Card/components/Stats/index.d.ts.map +0 -1
- package/dist/components/Card/components/index.d.mts.map +0 -1
- package/dist/components/Card/components/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/Details/Details.d.mts.map +0 -1
- package/dist/components/Details/Details.d.ts.map +0 -1
- package/dist/components/Details/Details.stories.d.mts +0 -8
- package/dist/components/Details/Details.stories.d.mts.map +0 -1
- package/dist/components/Details/Details.stories.d.ts +0 -8
- package/dist/components/Details/Details.stories.d.ts.map +0 -1
- package/dist/components/Details/index.d.mts.map +0 -1
- package/dist/components/Details/index.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/node/index.d.mts.map +0 -1
- package/dist/hooks/node/index.d.ts.map +0 -1
- package/dist/hooks/node/useArchivistFromNode.d.mts.map +0 -1
- package/dist/hooks/node/useArchivistFromNode.d.ts.map +0 -1
- package/dist/hooks/node/useArchivistsFromNode.d.mts.map +0 -1
- package/dist/hooks/node/useArchivistsFromNode.d.ts.map +0 -1
- package/dist/hooks/queries/index.d.mts.map +0 -1
- package/dist/hooks/queries/index.d.ts.map +0 -1
- package/dist/hooks/queries/useArchivistAll.d.mts.map +0 -1
- package/dist/hooks/queries/useArchivistAll.d.ts.map +0 -1
- package/dist/hooks/queries/useArchivistGet.d.mts.map +0 -1
- package/dist/hooks/queries/useArchivistGet.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 -59229
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -59240
- package/dist/index.mjs.map +0 -1
- /package/dist/{components → browser/components}/Card/Card.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/Card.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/CardActions.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/CardActions.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/CardContent.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/CardContent.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/CardHeader.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/CardHeader.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/ArchivistParent.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/ArchivistParent.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/ArchivistParents.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/ArchivistParents.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/ArchivistStats.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/ArchivistStats.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/MemoryArchivistStats.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/MemoryArchivistStats.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/Stats/index.d.ts +0 -0
- /package/dist/{components → browser/components}/Card/components/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Card/components/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}/Details/Details.d.mts +0 -0
- /package/dist/{components → browser/components}/Details/Details.d.ts +0 -0
- /package/dist/{components → browser/components}/Details/index.d.mts +0 -0
- /package/dist/{components → browser/components}/Details/index.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}/node/index.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/node/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/node/useArchivistFromNode.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/node/useArchivistFromNode.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/node/useArchivistsFromNode.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/node/useArchivistsFromNode.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/index.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/index.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/useArchivistAll.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/useArchivistAll.d.ts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/useArchivistGet.d.mts +0 -0
- /package/dist/{hooks → browser/hooks}/queries/useArchivistGet.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 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/Card/components/Stats/index.ts"],"sourcesContent":["export * from './ArchivistStats'\nexport * from './MemoryArchivistStats'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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("./ArchivistParent"), module.exports);
|
|
19
|
+
__reExport(components_exports, require("./ArchivistParents"), module.exports);
|
|
20
|
+
__reExport(components_exports, require("./Stats"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./ArchivistParent"),
|
|
24
|
+
...require("./ArchivistParents"),
|
|
25
|
+
...require("./Stats")
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/index.ts"],"sourcesContent":["export * from './ArchivistParent'\nexport * from './ArchivistParents'\nexport * from './Stats'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,8BAAd;AACA,+BAAc,+BADd;AAEA,+BAAc,oBAFd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/index.ts"],"sourcesContent":["export * from './ArchivistParent'\nexport * from './ArchivistParents'\nexport * from './Stats'\n"],"mappings":"AAAA,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,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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("./Card"), module.exports);
|
|
19
|
+
__reExport(Card_exports, require("./CardContent"), module.exports);
|
|
20
|
+
__reExport(Card_exports, require("./CardHeader"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./Card"),
|
|
24
|
+
...require("./CardContent"),
|
|
25
|
+
...require("./CardHeader")
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './CardContent'\nexport * from './CardHeader'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,mBAAd;AACA,yBAAc,0BADd;AAEA,yBAAc,yBAFd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './CardContent'\nexport * from './CardHeader'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
export interface ArchivistDetails extends FlexBoxProps {
|
|
4
|
+
address?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ArchivistDetails: React.FC<ArchivistDetails>;
|
|
7
|
+
//# sourceMappingURL=Details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAc7D,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoDvD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
export interface ArchivistDetails extends FlexBoxProps {
|
|
4
|
+
address?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ArchivistDetails: React.FC<ArchivistDetails>;
|
|
7
|
+
//# sourceMappingURL=Details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAc7D,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoDvD,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 Details_exports = {};
|
|
20
|
+
__export(Details_exports, {
|
|
21
|
+
ArchivistDetails: () => ArchivistDetails
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Details_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_material = require("@mui/material");
|
|
26
|
+
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
27
|
+
var import_react_button = require("@xylabs/react-button");
|
|
28
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
29
|
+
var import_archivist = require("@xyo-network/archivist");
|
|
30
|
+
var import_boundwitness_builder = require("@xyo-network/boundwitness-builder");
|
|
31
|
+
var import_react = require("react");
|
|
32
|
+
var import_hooks = require("../../hooks");
|
|
33
|
+
const testQueryCommit = { schema: import_archivist.ArchivistCommitQuerySchema };
|
|
34
|
+
const testQueryCommitBoundWitnessBuilder = new import_boundwitness_builder.QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit);
|
|
35
|
+
const testQueryClear = { schema: import_archivist.ArchivistClearQuerySchema };
|
|
36
|
+
const testQueryClearBoundWitnessBuilder = new import_boundwitness_builder.QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear);
|
|
37
|
+
const ArchivistDetails = ({ address, ...props }) => {
|
|
38
|
+
const [archivist] = (0, import_hooks.useArchivistFromNode)(address);
|
|
39
|
+
const [payloads, setPayloads] = (0, import_react.useState)();
|
|
40
|
+
const [refresh, setRefresh] = (0, import_react.useState)(0);
|
|
41
|
+
const [queryableCommit, setQueryableCommit] = (0, import_react.useState)(false);
|
|
42
|
+
const [queryableClear, setQueryableClear] = (0, import_react.useState)(false);
|
|
43
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
44
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
|
+
async () => {
|
|
46
|
+
if (archivist) {
|
|
47
|
+
const [commitBW] = await testQueryCommitBoundWitnessBuilder.build();
|
|
48
|
+
const [clearBW] = await testQueryClearBoundWitnessBuilder.build();
|
|
49
|
+
setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]));
|
|
50
|
+
setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]));
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
[archivist]
|
|
54
|
+
);
|
|
55
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
56
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
57
|
+
async (mounted) => {
|
|
58
|
+
const payloads2 = await archivist?.all?.();
|
|
59
|
+
if (mounted()) {
|
|
60
|
+
setPayloads(payloads2);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
[archivist, refresh]
|
|
64
|
+
);
|
|
65
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexCol, { ...props, children: [
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { children: `Payloads: ${payloads ? payloads.length : "-"}` }),
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.ButtonGroup, { children: [
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { disabled: payloads?.length === 0 || !archivist || !queryableCommit, onClick: () => archivist?.commit?.(), children: "Commit" }),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { disabled: !archivist || !queryableClear, onClick: () => archivist?.clear?.(), children: "Clear" }),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
+
import_react_button.ButtonEx,
|
|
72
|
+
{
|
|
73
|
+
disabled: !archivist,
|
|
74
|
+
onClick: () => {
|
|
75
|
+
setRefresh(refresh + 1);
|
|
76
|
+
},
|
|
77
|
+
children: "Refresh"
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
] });
|
|
82
|
+
};
|
|
83
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
+
0 && (module.exports = {
|
|
85
|
+
ArchivistDetails
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=Details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/Details.tsx"],"sourcesContent":["import { ButtonGroup, Typography } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { ArchivistClearQuerySchema, ArchivistCommitQuerySchema } from '@xyo-network/archivist'\nimport { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { useState } from 'react'\n\nimport { useArchivistFromNode } from '../../hooks'\n\nconst testQueryCommit = { schema: ArchivistCommitQuerySchema }\nconst testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit)\n\nconst testQueryClear = { schema: ArchivistClearQuerySchema }\nconst testQueryClearBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear)\n\nexport interface ArchivistDetails extends FlexBoxProps {\n address?: string\n}\n\nexport const ArchivistDetails: React.FC<ArchivistDetails> = ({ address, ...props }) => {\n const [archivist] = useArchivistFromNode(address)\n const [payloads, setPayloads] = useState<Payload[]>()\n const [refresh, setRefresh] = useState(0)\n const [queryableCommit, setQueryableCommit] = useState(false)\n const [queryableClear, setQueryableClear] = useState(false)\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n if (archivist) {\n const [commitBW] = await testQueryCommitBoundWitnessBuilder.build()\n const [clearBW] = await testQueryClearBoundWitnessBuilder.build()\n setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]))\n setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]))\n }\n },\n [archivist],\n )\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const payloads = await archivist?.all?.()\n if (mounted()) {\n setPayloads(payloads)\n }\n },\n [archivist, refresh],\n )\n\n return (\n <FlexCol {...props}>\n <Typography>{`Payloads: ${payloads ? payloads.length : '-'}`}</Typography>\n <ButtonGroup>\n <ButtonEx disabled={payloads?.length === 0 || !archivist || !queryableCommit} onClick={() => archivist?.commit?.()}>\n Commit\n </ButtonEx>\n <ButtonEx disabled={!archivist || !queryableClear} onClick={() => archivist?.clear?.()}>\n Clear\n </ButtonEx>\n <ButtonEx\n disabled={!archivist}\n onClick={() => {\n setRefresh(refresh + 1)\n }}\n >\n Refresh\n </ButtonEx>\n </ButtonGroup>\n </FlexCol>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDM;AAtDN,sBAAwC;AACxC,gCAA+B;AAC/B,0BAAyB;AACzB,2BAAsC;AACtC,uBAAsE;AACtE,kCAAyC;AAEzC,mBAAyB;AAEzB,mBAAqC;AAErC,MAAM,kBAAkB,EAAE,QAAQ,4CAA2B;AAC7D,MAAM,qCAAqC,IAAI,qDAAyB,EAAE,gBAAgB,KAAK,CAAC,EAAE,MAAM,eAAe;AAEvH,MAAM,iBAAiB,EAAE,QAAQ,2CAA0B;AAC3D,MAAM,oCAAoC,IAAI,qDAAyB,EAAE,gBAAgB,KAAK,CAAC,EAAE,MAAM,cAAc;AAM9G,MAAM,mBAA+C,CAAC,EAAE,SAAS,GAAG,MAAM,MAAM;AACrF,QAAM,CAAC,SAAS,QAAI,mCAAqB,OAAO;AAChD,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAoB;AACpD,QAAM,CAAC,SAAS,UAAU,QAAI,uBAAS,CAAC;AACxC,QAAM,CAAC,iBAAiB,kBAAkB,QAAI,uBAAS,KAAK;AAC5D,QAAM,CAAC,gBAAgB,iBAAiB,QAAI,uBAAS,KAAK;AAE1D;AAAA;AAAA,IAEE,YAAY;AACV,UAAI,WAAW;AACb,cAAM,CAAC,QAAQ,IAAI,MAAM,mCAAmC,MAAM;AAClE,cAAM,CAAC,OAAO,IAAI,MAAM,kCAAkC,MAAM;AAChE,2BAAmB,MAAM,WAAW,UAAU,UAAU,CAAC,eAAe,CAAC,CAAC;AAC1E,0BAAkB,MAAM,WAAW,UAAU,SAAS,CAAC,cAAc,CAAC,CAAC;AAAA,MACzE;AAAA,IACF;AAAA,IACA,CAAC,SAAS;AAAA,EACZ;AAEA;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMA,YAAW,MAAM,WAAW,MAAM;AACxC,UAAI,QAAQ,GAAG;AACb,oBAAYA,SAAQ;AAAA,MACtB;AAAA,IACF;AAAA,IACA,CAAC,WAAW,OAAO;AAAA,EACrB;AAEA,SACE,6CAAC,gCAAS,GAAG,OACX;AAAA,gDAAC,8BAAY,uBAAa,WAAW,SAAS,SAAS,GAAG,IAAG;AAAA,IAC7D,6CAAC,+BACC;AAAA,kDAAC,gCAAS,UAAU,UAAU,WAAW,KAAK,CAAC,aAAa,CAAC,iBAAiB,SAAS,MAAM,WAAW,SAAS,GAAG,oBAEpH;AAAA,MACA,4CAAC,gCAAS,UAAU,CAAC,aAAa,CAAC,gBAAgB,SAAS,MAAM,WAAW,QAAQ,GAAG,mBAExF;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,UAAU,CAAC;AAAA,UACX,SAAS,MAAM;AACb,uBAAW,UAAU,CAAC;AAAA,UACxB;AAAA,UACD;AAAA;AAAA,MAED;AAAA,OACF;AAAA,KACF;AAEJ;","names":["payloads"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup, Typography } from "@mui/material";
|
|
3
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
4
|
+
import { ButtonEx } from "@xylabs/react-button";
|
|
5
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
|
6
|
+
import { ArchivistClearQuerySchema, ArchivistCommitQuerySchema } from "@xyo-network/archivist";
|
|
7
|
+
import { QueryBoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { useArchivistFromNode } from "../../hooks";
|
|
10
|
+
const testQueryCommit = { schema: ArchivistCommitQuerySchema };
|
|
11
|
+
const testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit);
|
|
12
|
+
const testQueryClear = { schema: ArchivistClearQuerySchema };
|
|
13
|
+
const testQueryClearBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear);
|
|
14
|
+
const ArchivistDetails = ({ address, ...props }) => {
|
|
15
|
+
const [archivist] = useArchivistFromNode(address);
|
|
16
|
+
const [payloads, setPayloads] = useState();
|
|
17
|
+
const [refresh, setRefresh] = useState(0);
|
|
18
|
+
const [queryableCommit, setQueryableCommit] = useState(false);
|
|
19
|
+
const [queryableClear, setQueryableClear] = useState(false);
|
|
20
|
+
useAsyncEffect(
|
|
21
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
22
|
+
async () => {
|
|
23
|
+
if (archivist) {
|
|
24
|
+
const [commitBW] = await testQueryCommitBoundWitnessBuilder.build();
|
|
25
|
+
const [clearBW] = await testQueryClearBoundWitnessBuilder.build();
|
|
26
|
+
setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]));
|
|
27
|
+
setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]));
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
[archivist]
|
|
31
|
+
);
|
|
32
|
+
useAsyncEffect(
|
|
33
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34
|
+
async (mounted) => {
|
|
35
|
+
const payloads2 = await archivist?.all?.();
|
|
36
|
+
if (mounted()) {
|
|
37
|
+
setPayloads(payloads2);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
[archivist, refresh]
|
|
41
|
+
);
|
|
42
|
+
return /* @__PURE__ */ jsxs(FlexCol, { ...props, children: [
|
|
43
|
+
/* @__PURE__ */ jsx(Typography, { children: `Payloads: ${payloads ? payloads.length : "-"}` }),
|
|
44
|
+
/* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(ButtonEx, { disabled: payloads?.length === 0 || !archivist || !queryableCommit, onClick: () => archivist?.commit?.(), children: "Commit" }),
|
|
46
|
+
/* @__PURE__ */ jsx(ButtonEx, { disabled: !archivist || !queryableClear, onClick: () => archivist?.clear?.(), children: "Clear" }),
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
ButtonEx,
|
|
49
|
+
{
|
|
50
|
+
disabled: !archivist,
|
|
51
|
+
onClick: () => {
|
|
52
|
+
setRefresh(refresh + 1);
|
|
53
|
+
},
|
|
54
|
+
children: "Refresh"
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] })
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
ArchivistDetails
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=Details.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/Details.tsx"],"sourcesContent":["import { ButtonGroup, Typography } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { ArchivistClearQuerySchema, ArchivistCommitQuerySchema } from '@xyo-network/archivist'\nimport { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'\nimport { Payload } from '@xyo-network/payload-model'\nimport { useState } from 'react'\n\nimport { useArchivistFromNode } from '../../hooks'\n\nconst testQueryCommit = { schema: ArchivistCommitQuerySchema }\nconst testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit)\n\nconst testQueryClear = { schema: ArchivistClearQuerySchema }\nconst testQueryClearBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear)\n\nexport interface ArchivistDetails extends FlexBoxProps {\n address?: string\n}\n\nexport const ArchivistDetails: React.FC<ArchivistDetails> = ({ address, ...props }) => {\n const [archivist] = useArchivistFromNode(address)\n const [payloads, setPayloads] = useState<Payload[]>()\n const [refresh, setRefresh] = useState(0)\n const [queryableCommit, setQueryableCommit] = useState(false)\n const [queryableClear, setQueryableClear] = useState(false)\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n if (archivist) {\n const [commitBW] = await testQueryCommitBoundWitnessBuilder.build()\n const [clearBW] = await testQueryClearBoundWitnessBuilder.build()\n setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]))\n setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]))\n }\n },\n [archivist],\n )\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n const payloads = await archivist?.all?.()\n if (mounted()) {\n setPayloads(payloads)\n }\n },\n [archivist, refresh],\n )\n\n return (\n <FlexCol {...props}>\n <Typography>{`Payloads: ${payloads ? payloads.length : '-'}`}</Typography>\n <ButtonGroup>\n <ButtonEx disabled={payloads?.length === 0 || !archivist || !queryableCommit} onClick={() => archivist?.commit?.()}>\n Commit\n </ButtonEx>\n <ButtonEx disabled={!archivist || !queryableClear} onClick={() => archivist?.clear?.()}>\n Clear\n </ButtonEx>\n <ButtonEx\n disabled={!archivist}\n onClick={() => {\n setRefresh(refresh + 1)\n }}\n >\n Refresh\n </ButtonEx>\n </ButtonGroup>\n </FlexCol>\n )\n}\n"],"mappings":"AAsDM,cACA,YADA;AAtDN,SAAS,aAAa,kBAAkB;AACxC,SAAS,sBAAsB;AAC/B,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AACtC,SAAS,2BAA2B,kCAAkC;AACtE,SAAS,gCAAgC;AAEzC,SAAS,gBAAgB;AAEzB,SAAS,4BAA4B;AAErC,MAAM,kBAAkB,EAAE,QAAQ,2BAA2B;AAC7D,MAAM,qCAAqC,IAAI,yBAAyB,EAAE,gBAAgB,KAAK,CAAC,EAAE,MAAM,eAAe;AAEvH,MAAM,iBAAiB,EAAE,QAAQ,0BAA0B;AAC3D,MAAM,oCAAoC,IAAI,yBAAyB,EAAE,gBAAgB,KAAK,CAAC,EAAE,MAAM,cAAc;AAM9G,MAAM,mBAA+C,CAAC,EAAE,SAAS,GAAG,MAAM,MAAM;AACrF,QAAM,CAAC,SAAS,IAAI,qBAAqB,OAAO;AAChD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAoB;AACpD,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,CAAC;AACxC,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,SAAS,KAAK;AAC5D,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAE1D;AAAA;AAAA,IAEE,YAAY;AACV,UAAI,WAAW;AACb,cAAM,CAAC,QAAQ,IAAI,MAAM,mCAAmC,MAAM;AAClE,cAAM,CAAC,OAAO,IAAI,MAAM,kCAAkC,MAAM;AAChE,2BAAmB,MAAM,WAAW,UAAU,UAAU,CAAC,eAAe,CAAC,CAAC;AAC1E,0BAAkB,MAAM,WAAW,UAAU,SAAS,CAAC,cAAc,CAAC,CAAC;AAAA,MACzE;AAAA,IACF;AAAA,IACA,CAAC,SAAS;AAAA,EACZ;AAEA;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,YAAMA,YAAW,MAAM,WAAW,MAAM;AACxC,UAAI,QAAQ,GAAG;AACb,oBAAYA,SAAQ;AAAA,MACtB;AAAA,IACF;AAAA,IACA,CAAC,WAAW,OAAO;AAAA,EACrB;AAEA,SACE,qBAAC,WAAS,GAAG,OACX;AAAA,wBAAC,cAAY,uBAAa,WAAW,SAAS,SAAS,GAAG,IAAG;AAAA,IAC7D,qBAAC,eACC;AAAA,0BAAC,YAAS,UAAU,UAAU,WAAW,KAAK,CAAC,aAAa,CAAC,iBAAiB,SAAS,MAAM,WAAW,SAAS,GAAG,oBAEpH;AAAA,MACA,oBAAC,YAAS,UAAU,CAAC,aAAa,CAAC,gBAAgB,SAAS,MAAM,WAAW,QAAQ,GAAG,mBAExF;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,UAAU,CAAC;AAAA,UACX,SAAS,MAAM;AACb,uBAAW,UAAU,CAAC;AAAA,UACxB;AAAA,UACD;AAAA;AAAA,MAED;AAAA,OACF;AAAA,KACF;AAEJ;","names":["payloads"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 Details_stories_exports = {};
|
|
20
|
+
__export(Details_stories_exports, {
|
|
21
|
+
WithData: () => WithData,
|
|
22
|
+
WithNoArchivist: () => WithNoArchivist,
|
|
23
|
+
WithNoData: () => WithNoData,
|
|
24
|
+
default: () => Details_stories_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Details_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_node = require("@xyo-network/react-node");
|
|
30
|
+
var import_react_storybook = require("@xyo-network/react-storybook");
|
|
31
|
+
var import_react2 = require("react");
|
|
32
|
+
var import_hooks = require("../../hooks");
|
|
33
|
+
var import_Details = require("./Details");
|
|
34
|
+
const StorybookEntry = {
|
|
35
|
+
argTypes: {},
|
|
36
|
+
component: import_Details.ArchivistDetails,
|
|
37
|
+
parameters: {
|
|
38
|
+
docs: {
|
|
39
|
+
page: null
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
title: "modules/archivist/Details"
|
|
43
|
+
};
|
|
44
|
+
const TemplateInner = (args) => {
|
|
45
|
+
const [archivist] = (0, import_hooks.useArchivistFromNode)();
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Details.ArchivistDetails, { address: archivist?.address, ...args });
|
|
47
|
+
};
|
|
48
|
+
const TemplateInnerWithData = (args) => {
|
|
49
|
+
const [archivist] = (0, import_hooks.useArchivistFromNode)();
|
|
50
|
+
const [archivistWithData, setArchivistWithData] = (0, import_react2.useState)();
|
|
51
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
52
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
|
+
async (mounted) => {
|
|
54
|
+
if (archivist) {
|
|
55
|
+
await archivist.insert([{ schema: "network.xyo.test" }]);
|
|
56
|
+
if (mounted()) {
|
|
57
|
+
setArchivistWithData(archivist);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
[archivist]
|
|
62
|
+
);
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Details.ArchivistDetails, { address: archivistWithData?.address, ...args });
|
|
64
|
+
};
|
|
65
|
+
const TemplateWithNoData = (args) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_node.NodeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateInner, { ...args }) });
|
|
66
|
+
const TemplateWithData = (args) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_node.NodeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateInnerWithData, { ...args }) });
|
|
67
|
+
const WithNoArchivist = TemplateInner.bind({});
|
|
68
|
+
WithNoArchivist.args = {};
|
|
69
|
+
WithNoArchivist.decorators = [import_react_storybook.useAppThemeDecorator];
|
|
70
|
+
const WithNoData = TemplateWithNoData.bind({});
|
|
71
|
+
TemplateWithNoData.args = {};
|
|
72
|
+
TemplateWithNoData.decorators = [import_react_storybook.useAppThemeDecorator];
|
|
73
|
+
const WithData = TemplateWithData.bind({});
|
|
74
|
+
TemplateWithData.args = {};
|
|
75
|
+
TemplateWithData.decorators = [import_react_storybook.useAppThemeDecorator];
|
|
76
|
+
var Details_stories_default = StorybookEntry;
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
WithData,
|
|
80
|
+
WithNoArchivist,
|
|
81
|
+
WithNoData
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=Details.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/Details.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { ArchivistModule } from '@xyo-network/archivist'\nimport { NodeProvider } from '@xyo-network/react-node'\nimport { useAppThemeDecorator } from '@xyo-network/react-storybook'\nimport { useState } from 'react'\n\nimport { useArchivistFromNode } from '../../hooks'\nimport { ArchivistDetails } from './Details'\n\nconst StorybookEntry = {\n argTypes: {},\n component: ArchivistDetails,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'modules/archivist/Details',\n} as Meta<typeof ArchivistDetails>\n\nconst TemplateInner: StoryFn<typeof ArchivistDetails> = (args) => {\n const [archivist] = useArchivistFromNode()\n\n return <ArchivistDetails address={archivist?.address} {...args}></ArchivistDetails>\n}\n\nconst TemplateInnerWithData: StoryFn<typeof ArchivistDetails> = (args) => {\n const [archivist] = useArchivistFromNode()\n const [archivistWithData, setArchivistWithData] = useState<ArchivistModule>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (archivist) {\n await archivist.insert([{ schema: 'network.xyo.test' }])\n if (mounted()) {\n setArchivistWithData(archivist)\n }\n }\n },\n [archivist],\n )\n\n return <ArchivistDetails address={archivistWithData?.address} {...args}></ArchivistDetails>\n}\n\nconst TemplateWithNoData: StoryFn<typeof ArchivistDetails> = (args) => (\n <NodeProvider>\n <TemplateInner {...args}></TemplateInner>\n </NodeProvider>\n)\n\nconst TemplateWithData: StoryFn<typeof ArchivistDetails> = (args) => (\n <NodeProvider>\n <TemplateInnerWithData {...args}></TemplateInnerWithData>\n </NodeProvider>\n)\n\nconst WithNoArchivist = TemplateInner.bind({})\nWithNoArchivist.args = {}\nWithNoArchivist.decorators = [useAppThemeDecorator]\n\nconst WithNoData = TemplateWithNoData.bind({})\nTemplateWithNoData.args = {}\nTemplateWithNoData.decorators = [useAppThemeDecorator]\n\nconst WithData = TemplateWithData.bind({})\nTemplateWithData.args = {}\nTemplateWithData.decorators = [useAppThemeDecorator]\n\nexport { WithData, WithNoArchivist, WithNoData }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBS;AAvBT,gCAA+B;AAE/B,wBAA6B;AAC7B,6BAAqC;AACrC,IAAAA,gBAAyB;AAEzB,mBAAqC;AACrC,qBAAiC;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,gBAAkD,CAAC,SAAS;AAChE,QAAM,CAAC,SAAS,QAAI,mCAAqB;AAEzC,SAAO,4CAAC,mCAAiB,SAAS,WAAW,SAAU,GAAG,MAAM;AAClE;AAEA,MAAM,wBAA0D,CAAC,SAAS;AACxE,QAAM,CAAC,SAAS,QAAI,mCAAqB;AACzC,QAAM,CAAC,mBAAmB,oBAAoB,QAAI,wBAA0B;AAE5E;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,WAAW;AACb,cAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,mBAAmB,CAAC,CAAC;AACvD,YAAI,QAAQ,GAAG;AACb,+BAAqB,SAAS;AAAA,QAChC;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,SAAS;AAAA,EACZ;AAEA,SAAO,4CAAC,mCAAiB,SAAS,mBAAmB,SAAU,GAAG,MAAM;AAC1E;AAEA,MAAM,qBAAuD,CAAC,SAC5D,4CAAC,kCACC,sDAAC,iBAAe,GAAG,MAAM,GAC3B;AAGF,MAAM,mBAAqD,CAAC,SAC1D,4CAAC,kCACC,sDAAC,yBAAuB,GAAG,MAAM,GACnC;AAGF,MAAM,kBAAkB,cAAc,KAAK,CAAC,CAAC;AAC7C,gBAAgB,OAAO,CAAC;AACxB,gBAAgB,aAAa,CAAC,2CAAoB;AAElD,MAAM,aAAa,mBAAmB,KAAK,CAAC,CAAC;AAC7C,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,aAAa,CAAC,2CAAoB;AAErD,MAAM,WAAW,iBAAiB,KAAK,CAAC,CAAC;AACzC,iBAAiB,OAAO,CAAC;AACzB,iBAAiB,aAAa,CAAC,2CAAoB;AAKnD,IAAO,0BAAQ;","names":["import_react"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
3
|
+
import { NodeProvider } from "@xyo-network/react-node";
|
|
4
|
+
import { useAppThemeDecorator } from "@xyo-network/react-storybook";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { useArchivistFromNode } from "../../hooks";
|
|
7
|
+
import { ArchivistDetails } from "./Details";
|
|
8
|
+
const StorybookEntry = {
|
|
9
|
+
argTypes: {},
|
|
10
|
+
component: ArchivistDetails,
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
page: null
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
title: "modules/archivist/Details"
|
|
17
|
+
};
|
|
18
|
+
const TemplateInner = (args) => {
|
|
19
|
+
const [archivist] = useArchivistFromNode();
|
|
20
|
+
return /* @__PURE__ */ jsx(ArchivistDetails, { address: archivist?.address, ...args });
|
|
21
|
+
};
|
|
22
|
+
const TemplateInnerWithData = (args) => {
|
|
23
|
+
const [archivist] = useArchivistFromNode();
|
|
24
|
+
const [archivistWithData, setArchivistWithData] = useState();
|
|
25
|
+
useAsyncEffect(
|
|
26
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
27
|
+
async (mounted) => {
|
|
28
|
+
if (archivist) {
|
|
29
|
+
await archivist.insert([{ schema: "network.xyo.test" }]);
|
|
30
|
+
if (mounted()) {
|
|
31
|
+
setArchivistWithData(archivist);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
[archivist]
|
|
36
|
+
);
|
|
37
|
+
return /* @__PURE__ */ jsx(ArchivistDetails, { address: archivistWithData?.address, ...args });
|
|
38
|
+
};
|
|
39
|
+
const TemplateWithNoData = (args) => /* @__PURE__ */ jsx(NodeProvider, { children: /* @__PURE__ */ jsx(TemplateInner, { ...args }) });
|
|
40
|
+
const TemplateWithData = (args) => /* @__PURE__ */ jsx(NodeProvider, { children: /* @__PURE__ */ jsx(TemplateInnerWithData, { ...args }) });
|
|
41
|
+
const WithNoArchivist = TemplateInner.bind({});
|
|
42
|
+
WithNoArchivist.args = {};
|
|
43
|
+
WithNoArchivist.decorators = [useAppThemeDecorator];
|
|
44
|
+
const WithNoData = TemplateWithNoData.bind({});
|
|
45
|
+
TemplateWithNoData.args = {};
|
|
46
|
+
TemplateWithNoData.decorators = [useAppThemeDecorator];
|
|
47
|
+
const WithData = TemplateWithData.bind({});
|
|
48
|
+
TemplateWithData.args = {};
|
|
49
|
+
TemplateWithData.decorators = [useAppThemeDecorator];
|
|
50
|
+
var Details_stories_default = StorybookEntry;
|
|
51
|
+
export {
|
|
52
|
+
WithData,
|
|
53
|
+
WithNoArchivist,
|
|
54
|
+
WithNoData,
|
|
55
|
+
Details_stories_default as default
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=Details.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/Details.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { ArchivistModule } from '@xyo-network/archivist'\nimport { NodeProvider } from '@xyo-network/react-node'\nimport { useAppThemeDecorator } from '@xyo-network/react-storybook'\nimport { useState } from 'react'\n\nimport { useArchivistFromNode } from '../../hooks'\nimport { ArchivistDetails } from './Details'\n\nconst StorybookEntry = {\n argTypes: {},\n component: ArchivistDetails,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'modules/archivist/Details',\n} as Meta<typeof ArchivistDetails>\n\nconst TemplateInner: StoryFn<typeof ArchivistDetails> = (args) => {\n const [archivist] = useArchivistFromNode()\n\n return <ArchivistDetails address={archivist?.address} {...args}></ArchivistDetails>\n}\n\nconst TemplateInnerWithData: StoryFn<typeof ArchivistDetails> = (args) => {\n const [archivist] = useArchivistFromNode()\n const [archivistWithData, setArchivistWithData] = useState<ArchivistModule>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (archivist) {\n await archivist.insert([{ schema: 'network.xyo.test' }])\n if (mounted()) {\n setArchivistWithData(archivist)\n }\n }\n },\n [archivist],\n )\n\n return <ArchivistDetails address={archivistWithData?.address} {...args}></ArchivistDetails>\n}\n\nconst TemplateWithNoData: StoryFn<typeof ArchivistDetails> = (args) => (\n <NodeProvider>\n <TemplateInner {...args}></TemplateInner>\n </NodeProvider>\n)\n\nconst TemplateWithData: StoryFn<typeof ArchivistDetails> = (args) => (\n <NodeProvider>\n <TemplateInnerWithData {...args}></TemplateInnerWithData>\n </NodeProvider>\n)\n\nconst WithNoArchivist = TemplateInner.bind({})\nWithNoArchivist.args = {}\nWithNoArchivist.decorators = [useAppThemeDecorator]\n\nconst WithNoData = TemplateWithNoData.bind({})\nTemplateWithNoData.args = {}\nTemplateWithNoData.decorators = [useAppThemeDecorator]\n\nconst WithData = TemplateWithData.bind({})\nTemplateWithData.args = {}\nTemplateWithData.decorators = [useAppThemeDecorator]\n\nexport { WithData, WithNoArchivist, WithNoData }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAwBS;AAvBT,SAAS,sBAAsB;AAE/B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,SAAS,gBAAgB;AAEzB,SAAS,4BAA4B;AACrC,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,gBAAkD,CAAC,SAAS;AAChE,QAAM,CAAC,SAAS,IAAI,qBAAqB;AAEzC,SAAO,oBAAC,oBAAiB,SAAS,WAAW,SAAU,GAAG,MAAM;AAClE;AAEA,MAAM,wBAA0D,CAAC,SAAS;AACxE,QAAM,CAAC,SAAS,IAAI,qBAAqB;AACzC,QAAM,CAAC,mBAAmB,oBAAoB,IAAI,SAA0B;AAE5E;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,WAAW;AACb,cAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,mBAAmB,CAAC,CAAC;AACvD,YAAI,QAAQ,GAAG;AACb,+BAAqB,SAAS;AAAA,QAChC;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,SAAS;AAAA,EACZ;AAEA,SAAO,oBAAC,oBAAiB,SAAS,mBAAmB,SAAU,GAAG,MAAM;AAC1E;AAEA,MAAM,qBAAuD,CAAC,SAC5D,oBAAC,gBACC,8BAAC,iBAAe,GAAG,MAAM,GAC3B;AAGF,MAAM,mBAAqD,CAAC,SAC1D,oBAAC,gBACC,8BAAC,yBAAuB,GAAG,MAAM,GACnC;AAGF,MAAM,kBAAkB,cAAc,KAAK,CAAC,CAAC;AAC7C,gBAAgB,OAAO,CAAC;AACxB,gBAAgB,aAAa,CAAC,oBAAoB;AAElD,MAAM,aAAa,mBAAmB,KAAK,CAAC,CAAC;AAC7C,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,aAAa,CAAC,oBAAoB;AAErD,MAAM,WAAW,iBAAiB,KAAK,CAAC,CAAC;AACzC,iBAAiB,OAAO,CAAC;AACzB,iBAAiB,aAAa,CAAC,oBAAoB;AAKnD,IAAO,0BAAQ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,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 Details_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(Details_exports);
|
|
18
|
+
__reExport(Details_exports, require("./Details"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./Details")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/index.ts"],"sourcesContent":["export * from './Details'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,sBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Details/index.ts"],"sourcesContent":["export * from './Details'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,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 components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./Card"), module.exports);
|
|
19
|
+
__reExport(components_exports, require("./Details"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("./Card"),
|
|
23
|
+
...require("./Details")
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './Details'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,mBAAd;AACA,+BAAc,sBADd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './Card'\nexport * from './Details'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA"}
|