@xyo-network/react-archivist 2.64.0-rc.3 → 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/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,66 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "@mui/material";
|
|
3
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
4
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
|
5
|
+
import { Account } from "@xyo-network/account";
|
|
6
|
+
import { ArchivistInsertQuerySchema, MemoryArchivist, MemoryArchivistConfigSchema } from "@xyo-network/archivist";
|
|
7
|
+
import { QueryBoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
import { ArchivistCard } from "./Card";
|
|
10
|
+
const StorybookEntry = {
|
|
11
|
+
component: ArchivistCard,
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
page: null
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
title: "modules/archivist/ArchivistCard"
|
|
18
|
+
};
|
|
19
|
+
const insertPayload = async (archivist) => {
|
|
20
|
+
if (archivist) {
|
|
21
|
+
const payload = { schema: "network.xyo.payload", timestamp: Date.now() };
|
|
22
|
+
const insertQuery = { schema: ArchivistInsertQuerySchema };
|
|
23
|
+
const account = await Account.randomSync();
|
|
24
|
+
const builder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).payloads([insertQuery, payload]).witness(account).query(insertQuery);
|
|
25
|
+
const [insertQueryBoundWitness, payloads] = await builder.build();
|
|
26
|
+
await archivist.insert([insertQueryBoundWitness, ...payloads]);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const clearArchivist = async (archivist) => {
|
|
30
|
+
await archivist?.clear?.();
|
|
31
|
+
};
|
|
32
|
+
const Template = () => {
|
|
33
|
+
const [module, setModule] = useState();
|
|
34
|
+
useAsyncEffect(
|
|
35
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36
|
+
async (mounted) => {
|
|
37
|
+
if (!module) {
|
|
38
|
+
const newParentModule = await MemoryArchivist.create();
|
|
39
|
+
const newModule = await MemoryArchivist.create({
|
|
40
|
+
config: {
|
|
41
|
+
name: "MemoryArchivist",
|
|
42
|
+
parents: { commit: [newParentModule.address], read: [newParentModule.address], write: [newParentModule.address] },
|
|
43
|
+
schema: MemoryArchivistConfigSchema
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
await insertPayload(newModule);
|
|
47
|
+
if (mounted()) {
|
|
48
|
+
setModule(newModule);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
[module]
|
|
53
|
+
);
|
|
54
|
+
return /* @__PURE__ */ jsxs(FlexCol, { gap: 2, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(ArchivistCard, { module }),
|
|
56
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => insertPayload(module), variant: "contained", children: "Insert Into Archivist" }),
|
|
57
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => clearArchivist(module), variant: "contained", children: "Clear Archivist" })
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
const SingleModule = Template.bind({});
|
|
61
|
+
var Card_stories_default = StorybookEntry;
|
|
62
|
+
export {
|
|
63
|
+
SingleModule,
|
|
64
|
+
Card_stories_default as default
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=Card.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/Card.stories.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { Meta, StoryFn } from '@storybook/react'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport { Account } from '@xyo-network/account'\nimport { ArchivistInsertQuerySchema, ArchivistInstance, MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist'\nimport { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'\nimport { useState } from 'react'\n\nimport { ArchivistCard } from './Card'\n\nconst StorybookEntry = {\n component: ArchivistCard,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'modules/archivist/ArchivistCard',\n} as Meta<typeof ArchivistCard>\n\nconst insertPayload = async (archivist?: ArchivistInstance) => {\n if (archivist) {\n const payload = { schema: 'network.xyo.payload', timestamp: Date.now() }\n const insertQuery = { schema: ArchivistInsertQuerySchema }\n const account = await Account.randomSync()\n const builder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).payloads([insertQuery, payload]).witness(account).query(insertQuery)\n const [insertQueryBoundWitness, payloads] = await builder.build()\n await archivist.insert([insertQueryBoundWitness, ...payloads])\n }\n}\n\nconst clearArchivist = async (archivist?: ArchivistInstance) => {\n await archivist?.clear?.()\n}\n\nconst Template: StoryFn<typeof ArchivistCard> = () => {\n const [module, setModule] = useState<ArchivistInstance>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (!module) {\n const newParentModule = await MemoryArchivist.create()\n const newModule = await MemoryArchivist.create({\n config: {\n name: 'MemoryArchivist',\n parents: { commit: [newParentModule.address], read: [newParentModule.address], write: [newParentModule.address] },\n schema: MemoryArchivistConfigSchema,\n },\n })\n await insertPayload(newModule)\n if (mounted()) {\n setModule(newModule)\n }\n }\n },\n [module],\n )\n\n return (\n <FlexCol gap={2}>\n <ArchivistCard module={module} />\n <Button onClick={() => insertPayload(module)} variant={'contained'}>\n Insert Into Archivist\n </Button>\n <Button onClick={() => clearArchivist(module)} variant={'contained'}>\n Clear Archivist\n </Button>\n </FlexCol>\n )\n}\n\nconst SingleModule = Template.bind({})\n\nexport { SingleModule }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AA6DI,SACE,KADF;AA7DJ,SAAS,cAAc;AAEvB,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,4BAA+C,iBAAiB,mCAAmC;AAC5G,SAAS,gCAAgC;AACzC,SAAS,gBAAgB;AAEzB,SAAS,qBAAqB;AAE9B,MAAM,iBAAiB;AAAA,EACrB,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,gBAAgB,OAAO,cAAkC;AAC7D,MAAI,WAAW;AACb,UAAM,UAAU,EAAE,QAAQ,uBAAuB,WAAW,KAAK,IAAI,EAAE;AACvE,UAAM,cAAc,EAAE,QAAQ,2BAA2B;AACzD,UAAM,UAAU,MAAM,QAAQ,WAAW;AACzC,UAAM,UAAU,IAAI,yBAAyB,EAAE,gBAAgB,KAAK,CAAC,EAAE,SAAS,CAAC,aAAa,OAAO,CAAC,EAAE,QAAQ,OAAO,EAAE,MAAM,WAAW;AAC1I,UAAM,CAAC,yBAAyB,QAAQ,IAAI,MAAM,QAAQ,MAAM;AAChE,UAAM,UAAU,OAAO,CAAC,yBAAyB,GAAG,QAAQ,CAAC;AAAA,EAC/D;AACF;AAEA,MAAM,iBAAiB,OAAO,cAAkC;AAC9D,QAAM,WAAW,QAAQ;AAC3B;AAEA,MAAM,WAA0C,MAAM;AACpD,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA4B;AAExD;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,CAAC,QAAQ;AACX,cAAM,kBAAkB,MAAM,gBAAgB,OAAO;AACrD,cAAM,YAAY,MAAM,gBAAgB,OAAO;AAAA,UAC7C,QAAQ;AAAA,YACN,MAAM;AAAA,YACN,SAAS,EAAE,QAAQ,CAAC,gBAAgB,OAAO,GAAG,MAAM,CAAC,gBAAgB,OAAO,GAAG,OAAO,CAAC,gBAAgB,OAAO,EAAE;AAAA,YAChH,QAAQ;AAAA,UACV;AAAA,QACF,CAAC;AACD,cAAM,cAAc,SAAS;AAC7B,YAAI,QAAQ,GAAG;AACb,oBAAU,SAAS;AAAA,QACrB;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,MAAM;AAAA,EACT;AAEA,SACE,qBAAC,WAAQ,KAAK,GACZ;AAAA,wBAAC,iBAAc,QAAgB;AAAA,IAC/B,oBAAC,UAAO,SAAS,MAAM,cAAc,MAAM,GAAG,SAAS,aAAa,mCAEpE;AAAA,IACA,oBAAC,UAAO,SAAS,MAAM,eAAe,MAAM,GAAG,SAAS,aAAa,6BAErE;AAAA,KACF;AAEJ;AAEA,MAAM,eAAe,SAAS,KAAK,CAAC,CAAC;AAKrC,IAAO,uBAAQ;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardActionsProps } from '@mui/material';
|
|
3
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
4
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
5
|
+
export declare const ArchivistCardActions: React.FC<ModuleRenderProps<ArchivistInstance> & CardActionsProps>;
|
|
6
|
+
//# sourceMappingURL=CardActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAqB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,gBAAgB,CAElG,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardActionsProps } from '@mui/material';
|
|
3
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
4
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
5
|
+
export declare const ArchivistCardActions: React.FC<ModuleRenderProps<ArchivistInstance> & CardActionsProps>;
|
|
6
|
+
//# sourceMappingURL=CardActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAqB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,gBAAgB,CAElG,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 CardActions_exports = {};
|
|
20
|
+
__export(CardActions_exports, {
|
|
21
|
+
ArchivistCardActions: () => ArchivistCardActions
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(CardActions_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react_module = require("@xyo-network/react-module");
|
|
26
|
+
const ArchivistCardActions = (props) => {
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_module.ModuleCardActions, { ...props });
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
ArchivistCardActions
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=CardActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardActions.tsx"],"sourcesContent":["import { CardActionsProps } from '@mui/material'\nimport { ArchivistInstance } from '@xyo-network/archivist'\nimport { ModuleCardActions, ModuleRenderProps } from '@xyo-network/react-module'\n\nexport const ArchivistCardActions: React.FC<ModuleRenderProps<ArchivistInstance> & CardActionsProps> = (props) => {\n return <ModuleCardActions {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKS;AAHT,0BAAqD;AAE9C,MAAM,uBAA0F,CAAC,UAAU;AAChH,SAAO,4CAAC,yCAAmB,GAAG,OAAO;AACvC;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ModuleCardActions } from "@xyo-network/react-module";
|
|
3
|
+
const ArchivistCardActions = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(ModuleCardActions, { ...props });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
ArchivistCardActions
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=CardActions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardActions.tsx"],"sourcesContent":["import { CardActionsProps } from '@mui/material'\nimport { ArchivistInstance } from '@xyo-network/archivist'\nimport { ModuleCardActions, ModuleRenderProps } from '@xyo-network/react-module'\n\nexport const ArchivistCardActions: React.FC<ModuleRenderProps<ArchivistInstance> & CardActionsProps> = (props) => {\n return <ModuleCardActions {...props} />\n}\n"],"mappings":"AAKS;AAHT,SAAS,yBAA4C;AAE9C,MAAM,uBAA0F,CAAC,UAAU;AAChH,SAAO,oBAAC,qBAAmB,GAAG,OAAO;AACvC;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardContentProps } from '@mui/material';
|
|
2
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
3
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps>;
|
|
6
|
+
//# sourceMappingURL=CardContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGhD,OAAO,EAAmB,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE3E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,gBAAgB,CA4BlG,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardContentProps } from '@mui/material';
|
|
2
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
3
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps>;
|
|
6
|
+
//# sourceMappingURL=CardContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGhD,OAAO,EAAmB,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE3E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,gBAAgB,CA4BlG,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 CardContent_exports = {};
|
|
20
|
+
__export(CardContent_exports, {
|
|
21
|
+
ArchivistCardContent: () => ArchivistCardContent
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(CardContent_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
26
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
27
|
+
var import_module = require("@xyo-network/module");
|
|
28
|
+
var import_react_module = require("@xyo-network/react-module");
|
|
29
|
+
var import_react_wallet = require("@xyo-network/react-wallet");
|
|
30
|
+
var import_react = require("react");
|
|
31
|
+
var import_components = require("./components");
|
|
32
|
+
const ArchivistCardContent = ({ children, module: module2, ...props }) => {
|
|
33
|
+
const [config, setConfig] = (0, import_react.useState)();
|
|
34
|
+
const [wallet] = (0, import_react_wallet.useWallet)();
|
|
35
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
36
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
|
+
async (mounted) => {
|
|
38
|
+
if (wallet && module2) {
|
|
39
|
+
const wrapper = import_module.ModuleWrapper.wrap(module2, wallet);
|
|
40
|
+
const payloads = await wrapper?.discover();
|
|
41
|
+
if (mounted()) {
|
|
42
|
+
setConfig(payloads?.[0]);
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
setConfig(void 0);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
[module2, wallet]
|
|
49
|
+
);
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_module.ModuleCardContent, { module: module2, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexGrowRow, { flexWrap: "wrap", justifyContent: "start", gap: 2, children: [
|
|
51
|
+
children,
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.ArchivistParents, { config })
|
|
53
|
+
] }) });
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
ArchivistCardContent
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=CardContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardContent.tsx"],"sourcesContent":["import { CardContentProps } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { ArchivistConfig, ArchivistInstance } from '@xyo-network/archivist'\nimport { ModuleWrapper } from '@xyo-network/module'\nimport { ModuleCardContent, ModuleRenderProps } from '@xyo-network/react-module'\nimport { useWallet } from '@xyo-network/react-wallet'\nimport React, { useState } from 'react'\n\nimport { ArchivistParents } from './components'\n\nexport const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps> = ({ children, module, ...props }) => {\n const [config, setConfig] = useState<ArchivistConfig>()\n const [wallet] = useWallet()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (wallet && module) {\n const wrapper = ModuleWrapper.wrap(module, wallet)\n const payloads = await wrapper?.discover()\n if (mounted()) {\n setConfig(payloads?.[0] as ArchivistConfig)\n }\n } else {\n setConfig(undefined)\n }\n },\n [module, wallet],\n )\n\n return (\n <ModuleCardContent module={module} {...props}>\n <FlexGrowRow flexWrap=\"wrap\" justifyContent=\"start\" gap={2}>\n {children}\n <ArchivistParents config={config} />\n </FlexGrowRow>\n </ModuleCardContent>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCM;AAhCN,gCAA+B;AAC/B,2BAA4B;AAE5B,oBAA8B;AAC9B,0BAAqD;AACrD,0BAA0B;AAC1B,mBAAgC;AAEhC,wBAAiC;AAE1B,MAAM,uBAA0F,CAAC,EAAE,UAAU,QAAAA,SAAQ,GAAG,MAAM,MAAM;AACzI,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAA0B;AACtD,QAAM,CAAC,MAAM,QAAI,+BAAU;AAE3B;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,UAAUA,SAAQ;AACpB,cAAM,UAAU,4BAAc,KAAKA,SAAQ,MAAM;AACjD,cAAM,WAAW,MAAM,SAAS,SAAS;AACzC,YAAI,QAAQ,GAAG;AACb,oBAAU,WAAW,CAAC,CAAoB;AAAA,QAC5C;AAAA,MACF,OAAO;AACL,kBAAU,MAAS;AAAA,MACrB;AAAA,IACF;AAAA,IACA,CAACA,SAAQ,MAAM;AAAA,EACjB;AAEA,SACE,4CAAC,yCAAkB,QAAQA,SAAS,GAAG,OACrC,uDAAC,oCAAY,UAAS,QAAO,gBAAe,SAAQ,KAAK,GACtD;AAAA;AAAA,IACD,4CAAC,sCAAiB,QAAgB;AAAA,KACpC,GACF;AAEJ;","names":["module"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
3
|
+
import { FlexGrowRow } from "@xylabs/react-flexbox";
|
|
4
|
+
import { ModuleWrapper } from "@xyo-network/module";
|
|
5
|
+
import { ModuleCardContent } from "@xyo-network/react-module";
|
|
6
|
+
import { useWallet } from "@xyo-network/react-wallet";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { ArchivistParents } from "./components";
|
|
9
|
+
const ArchivistCardContent = ({ children, module, ...props }) => {
|
|
10
|
+
const [config, setConfig] = useState();
|
|
11
|
+
const [wallet] = useWallet();
|
|
12
|
+
useAsyncEffect(
|
|
13
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14
|
+
async (mounted) => {
|
|
15
|
+
if (wallet && module) {
|
|
16
|
+
const wrapper = ModuleWrapper.wrap(module, wallet);
|
|
17
|
+
const payloads = await wrapper?.discover();
|
|
18
|
+
if (mounted()) {
|
|
19
|
+
setConfig(payloads?.[0]);
|
|
20
|
+
}
|
|
21
|
+
} else {
|
|
22
|
+
setConfig(void 0);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
[module, wallet]
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ jsx(ModuleCardContent, { module, ...props, children: /* @__PURE__ */ jsxs(FlexGrowRow, { flexWrap: "wrap", justifyContent: "start", gap: 2, children: [
|
|
28
|
+
children,
|
|
29
|
+
/* @__PURE__ */ jsx(ArchivistParents, { config })
|
|
30
|
+
] }) });
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
ArchivistCardContent
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=CardContent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardContent.tsx"],"sourcesContent":["import { CardContentProps } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { ArchivistConfig, ArchivistInstance } from '@xyo-network/archivist'\nimport { ModuleWrapper } from '@xyo-network/module'\nimport { ModuleCardContent, ModuleRenderProps } from '@xyo-network/react-module'\nimport { useWallet } from '@xyo-network/react-wallet'\nimport React, { useState } from 'react'\n\nimport { ArchivistParents } from './components'\n\nexport const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps> = ({ children, module, ...props }) => {\n const [config, setConfig] = useState<ArchivistConfig>()\n const [wallet] = useWallet()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (wallet && module) {\n const wrapper = ModuleWrapper.wrap(module, wallet)\n const payloads = await wrapper?.discover()\n if (mounted()) {\n setConfig(payloads?.[0] as ArchivistConfig)\n }\n } else {\n setConfig(undefined)\n }\n },\n [module, wallet],\n )\n\n return (\n <ModuleCardContent module={module} {...props}>\n <FlexGrowRow flexWrap=\"wrap\" justifyContent=\"start\" gap={2}>\n {children}\n <ArchivistParents config={config} />\n </FlexGrowRow>\n </ModuleCardContent>\n )\n}\n"],"mappings":"AAiCM,SAEE,KAFF;AAhCN,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAE5B,SAAS,qBAAqB;AAC9B,SAAS,yBAA4C;AACrD,SAAS,iBAAiB;AAC1B,SAAgB,gBAAgB;AAEhC,SAAS,wBAAwB;AAE1B,MAAM,uBAA0F,CAAC,EAAE,UAAU,QAAQ,GAAG,MAAM,MAAM;AACzI,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA0B;AACtD,QAAM,CAAC,MAAM,IAAI,UAAU;AAE3B;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,UAAU,QAAQ;AACpB,cAAM,UAAU,cAAc,KAAK,QAAQ,MAAM;AACjD,cAAM,WAAW,MAAM,SAAS,SAAS;AACzC,YAAI,QAAQ,GAAG;AACb,oBAAU,WAAW,CAAC,CAAoB;AAAA,QAC5C;AAAA,MACF,OAAO;AACL,kBAAU,MAAS;AAAA,MACrB;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,MAAM;AAAA,EACjB;AAEA,SACE,oBAAC,qBAAkB,QAAiB,GAAG,OACrC,+BAAC,eAAY,UAAS,QAAO,gBAAe,SAAQ,KAAK,GACtD;AAAA;AAAA,IACD,oBAAC,oBAAiB,QAAgB;AAAA,KACpC,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardHeaderProps } from '@mui/material';
|
|
3
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
4
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
5
|
+
export declare const ArchivistCardHeader: React.FC<ModuleRenderProps<ArchivistInstance> & CardHeaderProps>;
|
|
6
|
+
//# sourceMappingURL=CardHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAA+B,MAAM,wBAAwB,CAAA;AACvF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAc/E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAGhG,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardHeaderProps } from '@mui/material';
|
|
3
|
+
import { ArchivistInstance } from '@xyo-network/archivist';
|
|
4
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
5
|
+
export declare const ArchivistCardHeader: React.FC<ModuleRenderProps<ArchivistInstance> & CardHeaderProps>;
|
|
6
|
+
//# sourceMappingURL=CardHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAA+B,MAAM,wBAAwB,CAAA;AACvF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAc/E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAGhG,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CardHeader_exports = {};
|
|
20
|
+
__export(CardHeader_exports, {
|
|
21
|
+
ArchivistCardHeader: () => ArchivistCardHeader
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(CardHeader_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_archivist = require("@xyo-network/archivist");
|
|
26
|
+
var import_react_module = require("@xyo-network/react-module");
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_components = require("./components");
|
|
29
|
+
const ArchivistStats = (archivist) => {
|
|
30
|
+
switch (archivist?.config.schema) {
|
|
31
|
+
case import_archivist.MemoryArchivistConfigSchema:
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.MemoryArchivistsStats, { archivist });
|
|
33
|
+
default:
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const ArchivistCardHeader = ({ title, module: module2, ...props }) => {
|
|
38
|
+
const Stats = (0, import_react.useMemo)(() => ArchivistStats(module2), [module2]);
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_module.ModuleCardHeader, { module: module2, title: title ?? module2?.config.name ?? "Archivist", action: Stats, ...props });
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
ArchivistCardHeader
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=CardHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardHeader.tsx"],"sourcesContent":["import { CardHeaderProps } from '@mui/material'\nimport { ArchivistInstance, MemoryArchivistConfigSchema } from '@xyo-network/archivist'\nimport { ModuleCardHeader, ModuleRenderProps } from '@xyo-network/react-module'\nimport { useMemo } from 'react'\n\nimport { MemoryArchivistsStats } from './components'\n\nconst ArchivistStats = (archivist?: ArchivistInstance) => {\n switch (archivist?.config.schema) {\n case MemoryArchivistConfigSchema:\n return <MemoryArchivistsStats archivist={archivist} />\n default:\n return <></>\n }\n}\n\nexport const ArchivistCardHeader: React.FC<ModuleRenderProps<ArchivistInstance> & CardHeaderProps> = ({ title, module, ...props }) => {\n const Stats = useMemo(() => ArchivistStats(module), [module])\n return <ModuleCardHeader module={module} title={title ?? module?.config.name ?? 'Archivist'} action={Stats} {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUa;AATb,uBAA+D;AAC/D,0BAAoD;AACpD,mBAAwB;AAExB,wBAAsC;AAEtC,MAAM,iBAAiB,CAAC,cAAkC;AACxD,UAAQ,WAAW,OAAO,QAAQ;AAAA,IAChC,KAAK;AACH,aAAO,4CAAC,2CAAsB,WAAsB;AAAA,IACtD;AACE,aAAO,2EAAE;AAAA,EACb;AACF;AAEO,MAAM,sBAAwF,CAAC,EAAE,OAAO,QAAAA,SAAQ,GAAG,MAAM,MAAM;AACpI,QAAM,YAAQ,sBAAQ,MAAM,eAAeA,OAAM,GAAG,CAACA,OAAM,CAAC;AAC5D,SAAO,4CAAC,wCAAiB,QAAQA,SAAQ,OAAO,SAASA,SAAQ,OAAO,QAAQ,aAAa,QAAQ,OAAQ,GAAG,OAAO;AACzH;","names":["module"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MemoryArchivistConfigSchema } from "@xyo-network/archivist";
|
|
3
|
+
import { ModuleCardHeader } from "@xyo-network/react-module";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
|
+
import { MemoryArchivistsStats } from "./components";
|
|
6
|
+
const ArchivistStats = (archivist) => {
|
|
7
|
+
switch (archivist?.config.schema) {
|
|
8
|
+
case MemoryArchivistConfigSchema:
|
|
9
|
+
return /* @__PURE__ */ jsx(MemoryArchivistsStats, { archivist });
|
|
10
|
+
default:
|
|
11
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const ArchivistCardHeader = ({ title, module, ...props }) => {
|
|
15
|
+
const Stats = useMemo(() => ArchivistStats(module), [module]);
|
|
16
|
+
return /* @__PURE__ */ jsx(ModuleCardHeader, { module, title: title ?? module?.config.name ?? "Archivist", action: Stats, ...props });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
ArchivistCardHeader
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=CardHeader.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Card/CardHeader.tsx"],"sourcesContent":["import { CardHeaderProps } from '@mui/material'\nimport { ArchivistInstance, MemoryArchivistConfigSchema } from '@xyo-network/archivist'\nimport { ModuleCardHeader, ModuleRenderProps } from '@xyo-network/react-module'\nimport { useMemo } from 'react'\n\nimport { MemoryArchivistsStats } from './components'\n\nconst ArchivistStats = (archivist?: ArchivistInstance) => {\n switch (archivist?.config.schema) {\n case MemoryArchivistConfigSchema:\n return <MemoryArchivistsStats archivist={archivist} />\n default:\n return <></>\n }\n}\n\nexport const ArchivistCardHeader: React.FC<ModuleRenderProps<ArchivistInstance> & CardHeaderProps> = ({ title, module, ...props }) => {\n const Stats = useMemo(() => ArchivistStats(module), [module])\n return <ModuleCardHeader module={module} title={title ?? module?.config.name ?? 'Archivist'} action={Stats} {...props} />\n}\n"],"mappings":"AAUa,SAEA,UAFA;AATb,SAA4B,mCAAmC;AAC/D,SAAS,wBAA2C;AACpD,SAAS,eAAe;AAExB,SAAS,6BAA6B;AAEtC,MAAM,iBAAiB,CAAC,cAAkC;AACxD,UAAQ,WAAW,OAAO,QAAQ;AAAA,IAChC,KAAK;AACH,aAAO,oBAAC,yBAAsB,WAAsB;AAAA,IACtD;AACE,aAAO,gCAAE;AAAA,EACb;AACF;AAEO,MAAM,sBAAwF,CAAC,EAAE,OAAO,QAAQ,GAAG,MAAM,MAAM;AACpI,QAAM,QAAQ,QAAQ,MAAM,eAAe,MAAM,GAAG,CAAC,MAAM,CAAC;AAC5D,SAAO,oBAAC,oBAAiB,QAAgB,OAAO,SAAS,QAAQ,OAAO,QAAQ,aAAa,QAAQ,OAAQ,GAAG,OAAO;AACzH;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ArchivistTypeProps {
|
|
3
|
+
archivistType?: 'Commit' | 'Read' | 'Write';
|
|
4
|
+
parentArchivists?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const ArchivistParent: React.FC<ArchivistTypeProps>;
|
|
7
|
+
//# sourceMappingURL=ArchivistParent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistParent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/ArchivistParent.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC3C,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAexD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ArchivistTypeProps {
|
|
3
|
+
archivistType?: 'Commit' | 'Read' | 'Write';
|
|
4
|
+
parentArchivists?: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const ArchivistParent: React.FC<ArchivistTypeProps>;
|
|
7
|
+
//# sourceMappingURL=ArchivistParent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistParent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/ArchivistParent.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC3C,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAexD,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ArchivistParent_exports = {};
|
|
20
|
+
__export(ArchivistParent_exports, {
|
|
21
|
+
ArchivistParent: () => ArchivistParent
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(ArchivistParent_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_material = require("@mui/material");
|
|
26
|
+
const ArchivistParent = ({ archivistType, parentArchivists }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: parentArchivists?.map((address) => {
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.ListItem, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { variant: "subtitle2", children: [
|
|
28
|
+
archivistType,
|
|
29
|
+
":",
|
|
30
|
+
" ",
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", sx: { ml: 0.5 }, children: address })
|
|
32
|
+
] }) }, address);
|
|
33
|
+
}) });
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
ArchivistParent
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=ArchivistParent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/ArchivistParent.tsx"],"sourcesContent":["import { ListItem, Typography } from '@mui/material'\n\nexport interface ArchivistTypeProps {\n archivistType?: 'Commit' | 'Read' | 'Write'\n parentArchivists?: string[]\n}\n\nexport const ArchivistParent: React.FC<ArchivistTypeProps> = ({ archivistType, parentArchivists }) => (\n <>\n {parentArchivists?.map((address) => {\n return (\n <ListItem key={address}>\n <Typography variant=\"subtitle2\">\n {archivistType}:{' '}\n <Typography variant={'caption'} sx={{ ml: 0.5 }}>\n {address}\n </Typography>\n </Typography>\n </ListItem>\n )\n })}\n </>\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE;AARF,sBAAqC;AAO9B,MAAM,kBAAgD,CAAC,EAAE,eAAe,iBAAiB,MAC9F,2EACG,4BAAkB,IAAI,CAAC,YAAY;AAClC,SACE,4CAAC,4BACC,uDAAC,8BAAW,SAAQ,aACjB;AAAA;AAAA,IAAc;AAAA,IAAE;AAAA,IACjB,4CAAC,8BAAW,SAAS,WAAW,IAAI,EAAE,IAAI,IAAI,GAC3C,mBACH;AAAA,KACF,KANa,OAOf;AAEJ,CAAC,GACH;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ListItem, Typography } from "@mui/material";
|
|
3
|
+
const ArchivistParent = ({ archivistType, parentArchivists }) => /* @__PURE__ */ jsx(Fragment, { children: parentArchivists?.map((address) => {
|
|
4
|
+
return /* @__PURE__ */ jsx(ListItem, { children: /* @__PURE__ */ jsxs(Typography, { variant: "subtitle2", children: [
|
|
5
|
+
archivistType,
|
|
6
|
+
":",
|
|
7
|
+
" ",
|
|
8
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", sx: { ml: 0.5 }, children: address })
|
|
9
|
+
] }) }, address);
|
|
10
|
+
}) });
|
|
11
|
+
export {
|
|
12
|
+
ArchivistParent
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=ArchivistParent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/ArchivistParent.tsx"],"sourcesContent":["import { ListItem, Typography } from '@mui/material'\n\nexport interface ArchivistTypeProps {\n archivistType?: 'Commit' | 'Read' | 'Write'\n parentArchivists?: string[]\n}\n\nexport const ArchivistParent: React.FC<ArchivistTypeProps> = ({ archivistType, parentArchivists }) => (\n <>\n {parentArchivists?.map((address) => {\n return (\n <ListItem key={address}>\n <Typography variant=\"subtitle2\">\n {archivistType}:{' '}\n <Typography variant={'caption'} sx={{ ml: 0.5 }}>\n {address}\n </Typography>\n </Typography>\n </ListItem>\n )\n })}\n </>\n)\n"],"mappings":"AAQE,mBAMU,KAFF,YAJR;AARF,SAAS,UAAU,kBAAkB;AAO9B,MAAM,kBAAgD,CAAC,EAAE,eAAe,iBAAiB,MAC9F,gCACG,4BAAkB,IAAI,CAAC,YAAY;AAClC,SACE,oBAAC,YACC,+BAAC,cAAW,SAAQ,aACjB;AAAA;AAAA,IAAc;AAAA,IAAE;AAAA,IACjB,oBAAC,cAAW,SAAS,WAAW,IAAI,EAAE,IAAI,IAAI,GAC3C,mBACH;AAAA,KACF,KANa,OAOf;AAEJ,CAAC,GACH;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { ArchivistConfig } from '@xyo-network/archivist';
|
|
4
|
+
export interface ArchivistParentsProps extends FlexBoxProps {
|
|
5
|
+
config?: ArchivistConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArchivistParents: React.FC<ArchivistParentsProps>;
|
|
8
|
+
//# sourceMappingURL=ArchivistParents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistParents.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/ArchivistParents.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { ArchivistConfig } from '@xyo-network/archivist';
|
|
4
|
+
export interface ArchivistParentsProps extends FlexBoxProps {
|
|
5
|
+
config?: ArchivistConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArchivistParents: React.FC<ArchivistParentsProps>;
|
|
8
|
+
//# sourceMappingURL=ArchivistParents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistParents.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/components/ArchivistParents.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ArchivistParents_exports = {};
|
|
20
|
+
__export(ArchivistParents_exports, {
|
|
21
|
+
ArchivistParents: () => ArchivistParents
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(ArchivistParents_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_icons_material = require("@mui/icons-material");
|
|
26
|
+
var import_material = require("@mui/material");
|
|
27
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
28
|
+
var import_react = require("react");
|
|
29
|
+
var import_ArchivistParent = require("./ArchivistParent");
|
|
30
|
+
const ArchivistParents = ({ config, ...props }) => {
|
|
31
|
+
const [parentArchivistCollapse, setParentArchivistCollapse] = (0, import_react.useState)(false);
|
|
32
|
+
const { commit, read, write } = config?.parents ?? {};
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: commit || read || write ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexCol, { alignItems: "start", ...props, children: [
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { onClick: () => setParentArchivistCollapse(!parentArchivistCollapse), children: [
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "subtitle2", sx: { cursor: "pointer", display: "inline-block" }, children: "Parents" }),
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.IconButton, { size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.ArrowRightRounded, { sx: { rotate: parentArchivistCollapse ? "90deg" : "0deg", transition: "all .25s" } }) })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: parentArchivistCollapse, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Paper, { elevation: 2, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.List, { children: [
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ArchivistParent.ArchivistParent, { archivistType: "Commit", parentArchivists: commit }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ArchivistParent.ArchivistParent, { archivistType: "Read", parentArchivists: read }),
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ArchivistParent.ArchivistParent, { archivistType: "Write", parentArchivists: write })
|
|
42
|
+
] }) }) })
|
|
43
|
+
] }) : null });
|
|
44
|
+
};
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
ArchivistParents
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=ArchivistParents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/ArchivistParents.tsx"],"sourcesContent":["import { ArrowRightRounded as ArrowRightRoundedIcon } from '@mui/icons-material'\nimport { Collapse, IconButton, List, Paper, Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { ArchivistConfig } from '@xyo-network/archivist'\nimport { useState } from 'react'\n\nimport { ArchivistParent } from './ArchivistParent'\n\nexport interface ArchivistParentsProps extends FlexBoxProps {\n config?: ArchivistConfig\n}\n\nexport const ArchivistParents: React.FC<ArchivistParentsProps> = ({ config, ...props }) => {\n const [parentArchivistCollapse, setParentArchivistCollapse] = useState(false)\n\n const { commit, read, write } = config?.parents ?? {}\n\n return (\n <>\n {commit || read || write ? (\n <FlexCol alignItems=\"start\" {...props}>\n <span onClick={() => setParentArchivistCollapse(!parentArchivistCollapse)}>\n <Typography variant=\"subtitle2\" sx={{ cursor: 'pointer', display: 'inline-block' }}>\n Parents\n </Typography>\n <IconButton size=\"small\">\n <ArrowRightRoundedIcon sx={{ rotate: parentArchivistCollapse ? '90deg' : '0deg', transition: 'all .25s' }} />\n </IconButton>\n </span>\n <Collapse in={parentArchivistCollapse}>\n <Paper elevation={2}>\n <List>\n <ArchivistParent archivistType=\"Commit\" parentArchivists={commit} />\n <ArchivistParent archivistType=\"Read\" parentArchivists={read} />\n <ArchivistParent archivistType=\"Write\" parentArchivists={write} />\n </List>\n </Paper>\n </Collapse>\n </FlexCol>\n ) : null}\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBI;AAlBJ,4BAA2D;AAC3D,sBAA8D;AAC9D,2BAAsC;AAEtC,mBAAyB;AAEzB,6BAAgC;AAMzB,MAAM,mBAAoD,CAAC,EAAE,QAAQ,GAAG,MAAM,MAAM;AACzF,QAAM,CAAC,yBAAyB,0BAA0B,QAAI,uBAAS,KAAK;AAE5E,QAAM,EAAE,QAAQ,MAAM,MAAM,IAAI,QAAQ,WAAW,CAAC;AAEpD,SACE,2EACG,oBAAU,QAAQ,QACjB,6CAAC,gCAAQ,YAAW,SAAS,GAAG,OAC9B;AAAA,iDAAC,UAAK,SAAS,MAAM,2BAA2B,CAAC,uBAAuB,GACtE;AAAA,kDAAC,8BAAW,SAAQ,aAAY,IAAI,EAAE,QAAQ,WAAW,SAAS,eAAe,GAAG,qBAEpF;AAAA,MACA,4CAAC,8BAAW,MAAK,SACf,sDAAC,sBAAAA,mBAAA,EAAsB,IAAI,EAAE,QAAQ,0BAA0B,UAAU,QAAQ,YAAY,WAAW,GAAG,GAC7G;AAAA,OACF;AAAA,IACA,4CAAC,4BAAS,IAAI,yBACZ,sDAAC,yBAAM,WAAW,GAChB,uDAAC,wBACC;AAAA,kDAAC,0CAAgB,eAAc,UAAS,kBAAkB,QAAQ;AAAA,MAClE,4CAAC,0CAAgB,eAAc,QAAO,kBAAkB,MAAM;AAAA,MAC9D,4CAAC,0CAAgB,eAAc,SAAQ,kBAAkB,OAAO;AAAA,OAClE,GACF,GACF;AAAA,KACF,IACE,MACN;AAEJ;","names":["ArrowRightRoundedIcon"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowRightRounded as ArrowRightRoundedIcon } from "@mui/icons-material";
|
|
3
|
+
import { Collapse, IconButton, List, Paper, Typography } from "@mui/material";
|
|
4
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { ArchivistParent } from "./ArchivistParent";
|
|
7
|
+
const ArchivistParents = ({ config, ...props }) => {
|
|
8
|
+
const [parentArchivistCollapse, setParentArchivistCollapse] = useState(false);
|
|
9
|
+
const { commit, read, write } = config?.parents ?? {};
|
|
10
|
+
return /* @__PURE__ */ jsx(Fragment, { children: commit || read || write ? /* @__PURE__ */ jsxs(FlexCol, { alignItems: "start", ...props, children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("span", { onClick: () => setParentArchivistCollapse(!parentArchivistCollapse), children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", sx: { cursor: "pointer", display: "inline-block" }, children: "Parents" }),
|
|
13
|
+
/* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(ArrowRightRoundedIcon, { sx: { rotate: parentArchivistCollapse ? "90deg" : "0deg", transition: "all .25s" } }) })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ jsx(Collapse, { in: parentArchivistCollapse, children: /* @__PURE__ */ jsx(Paper, { elevation: 2, children: /* @__PURE__ */ jsxs(List, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx(ArchivistParent, { archivistType: "Commit", parentArchivists: commit }),
|
|
17
|
+
/* @__PURE__ */ jsx(ArchivistParent, { archivistType: "Read", parentArchivists: read }),
|
|
18
|
+
/* @__PURE__ */ jsx(ArchivistParent, { archivistType: "Write", parentArchivists: write })
|
|
19
|
+
] }) }) })
|
|
20
|
+
] }) : null });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
ArchivistParents
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=ArchivistParents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Card/components/ArchivistParents.tsx"],"sourcesContent":["import { ArrowRightRounded as ArrowRightRoundedIcon } from '@mui/icons-material'\nimport { Collapse, IconButton, List, Paper, Typography } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { ArchivistConfig } from '@xyo-network/archivist'\nimport { useState } from 'react'\n\nimport { ArchivistParent } from './ArchivistParent'\n\nexport interface ArchivistParentsProps extends FlexBoxProps {\n config?: ArchivistConfig\n}\n\nexport const ArchivistParents: React.FC<ArchivistParentsProps> = ({ config, ...props }) => {\n const [parentArchivistCollapse, setParentArchivistCollapse] = useState(false)\n\n const { commit, read, write } = config?.parents ?? {}\n\n return (\n <>\n {commit || read || write ? (\n <FlexCol alignItems=\"start\" {...props}>\n <span onClick={() => setParentArchivistCollapse(!parentArchivistCollapse)}>\n <Typography variant=\"subtitle2\" sx={{ cursor: 'pointer', display: 'inline-block' }}>\n Parents\n </Typography>\n <IconButton size=\"small\">\n <ArrowRightRoundedIcon sx={{ rotate: parentArchivistCollapse ? '90deg' : '0deg', transition: 'all .25s' }} />\n </IconButton>\n </span>\n <Collapse in={parentArchivistCollapse}>\n <Paper elevation={2}>\n <List>\n <ArchivistParent archivistType=\"Commit\" parentArchivists={commit} />\n <ArchivistParent archivistType=\"Read\" parentArchivists={read} />\n <ArchivistParent archivistType=\"Write\" parentArchivists={write} />\n </List>\n </Paper>\n </Collapse>\n </FlexCol>\n ) : null}\n </>\n )\n}\n"],"mappings":"AAkBI,mBAIQ,KADF,YAHN;AAlBJ,SAAS,qBAAqB,6BAA6B;AAC3D,SAAS,UAAU,YAAY,MAAM,OAAO,kBAAkB;AAC9D,SAAuB,eAAe;AAEtC,SAAS,gBAAgB;AAEzB,SAAS,uBAAuB;AAMzB,MAAM,mBAAoD,CAAC,EAAE,QAAQ,GAAG,MAAM,MAAM;AACzF,QAAM,CAAC,yBAAyB,0BAA0B,IAAI,SAAS,KAAK;AAE5E,QAAM,EAAE,QAAQ,MAAM,MAAM,IAAI,QAAQ,WAAW,CAAC;AAEpD,SACE,gCACG,oBAAU,QAAQ,QACjB,qBAAC,WAAQ,YAAW,SAAS,GAAG,OAC9B;AAAA,yBAAC,UAAK,SAAS,MAAM,2BAA2B,CAAC,uBAAuB,GACtE;AAAA,0BAAC,cAAW,SAAQ,aAAY,IAAI,EAAE,QAAQ,WAAW,SAAS,eAAe,GAAG,qBAEpF;AAAA,MACA,oBAAC,cAAW,MAAK,SACf,8BAAC,yBAAsB,IAAI,EAAE,QAAQ,0BAA0B,UAAU,QAAQ,YAAY,WAAW,GAAG,GAC7G;AAAA,OACF;AAAA,IACA,oBAAC,YAAS,IAAI,yBACZ,8BAAC,SAAM,WAAW,GAChB,+BAAC,QACC;AAAA,0BAAC,mBAAgB,eAAc,UAAS,kBAAkB,QAAQ;AAAA,MAClE,oBAAC,mBAAgB,eAAc,QAAO,kBAAkB,MAAM;AAAA,MAC9D,oBAAC,mBAAgB,eAAc,SAAQ,kBAAkB,OAAO;AAAA,OAClE,GACF,GACF;AAAA,KACF,IACE,MACN;AAEJ;","names":[]}
|