@xyo-network/react-archivist 2.81.9 → 2.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/Card/Card.d.cts +1 -0
- package/dist/browser/components/Card/Card.d.cts.map +1 -1
- package/dist/browser/components/Card/Card.d.mts +1 -0
- package/dist/browser/components/Card/Card.d.mts.map +1 -1
- package/dist/browser/components/Card/Card.d.ts +1 -0
- package/dist/browser/components/Card/Card.d.ts.map +1 -1
- package/dist/browser/components/Card/CardActions.d.cts +1 -0
- package/dist/browser/components/Card/CardActions.d.cts.map +1 -1
- package/dist/browser/components/Card/CardActions.d.mts +1 -0
- package/dist/browser/components/Card/CardActions.d.mts.map +1 -1
- package/dist/browser/components/Card/CardActions.d.ts +1 -0
- package/dist/browser/components/Card/CardActions.d.ts.map +1 -1
- package/dist/browser/components/Card/CardContent.d.cts.map +1 -1
- package/dist/browser/components/Card/CardContent.d.mts.map +1 -1
- package/dist/browser/components/Card/CardContent.d.ts.map +1 -1
- package/dist/browser/components/Card/CardHeader.d.cts +1 -0
- package/dist/browser/components/Card/CardHeader.d.cts.map +1 -1
- package/dist/browser/components/Card/CardHeader.d.mts +1 -0
- package/dist/browser/components/Card/CardHeader.d.mts.map +1 -1
- package/dist/browser/components/Card/CardHeader.d.ts +1 -0
- package/dist/browser/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParent.d.cts +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.d.cts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParent.d.mts +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.d.mts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParent.d.ts +1 -0
- package/dist/browser/components/Card/components/ArchivistParent.d.ts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParents.d.cts +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.d.cts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParents.d.mts +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.d.mts.map +1 -1
- package/dist/browser/components/Card/components/ArchivistParents.d.ts +1 -0
- package/dist/browser/components/Card/components/ArchivistParents.d.ts.map +1 -1
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.cts +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.cts.map +1 -1
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.mts +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.mts.map +1 -1
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.ts +1 -0
- package/dist/browser/components/Card/components/Stats/ArchivistStats.d.ts.map +1 -1
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.cts +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.cts.map +1 -1
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.mts +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +1 -1
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.ts +1 -0
- package/dist/browser/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +1 -1
- package/dist/browser/components/Card/components/Stats/index.d.cts +2 -2
- package/dist/browser/components/Card/components/Stats/index.d.cts.map +1 -1
- package/dist/browser/components/Card/components/Stats/index.d.mts +2 -2
- package/dist/browser/components/Card/components/Stats/index.d.mts.map +1 -1
- package/dist/browser/components/Card/components/Stats/index.d.ts +2 -2
- package/dist/browser/components/Card/components/Stats/index.d.ts.map +1 -1
- package/dist/browser/components/Card/components/index.d.cts +3 -3
- package/dist/browser/components/Card/components/index.d.cts.map +1 -1
- package/dist/browser/components/Card/components/index.d.mts +3 -3
- package/dist/browser/components/Card/components/index.d.mts.map +1 -1
- package/dist/browser/components/Card/components/index.d.ts +3 -3
- package/dist/browser/components/Card/components/index.d.ts.map +1 -1
- package/dist/browser/components/Card/index.d.cts +3 -3
- package/dist/browser/components/Card/index.d.cts.map +1 -1
- package/dist/browser/components/Card/index.d.mts +3 -3
- package/dist/browser/components/Card/index.d.mts.map +1 -1
- package/dist/browser/components/Card/index.d.ts +3 -3
- package/dist/browser/components/Card/index.d.ts.map +1 -1
- package/dist/browser/components/Details/Details.d.cts +1 -0
- package/dist/browser/components/Details/Details.d.cts.map +1 -1
- package/dist/browser/components/Details/Details.d.mts +1 -0
- package/dist/browser/components/Details/Details.d.mts.map +1 -1
- package/dist/browser/components/Details/Details.d.ts +1 -0
- package/dist/browser/components/Details/Details.d.ts.map +1 -1
- package/dist/browser/components/Details/index.d.cts +1 -1
- package/dist/browser/components/Details/index.d.cts.map +1 -1
- package/dist/browser/components/Details/index.d.mts +1 -1
- package/dist/browser/components/Details/index.d.mts.map +1 -1
- package/dist/browser/components/Details/index.d.ts +1 -1
- package/dist/browser/components/Details/index.d.ts.map +1 -1
- package/dist/browser/components/index.d.cts +2 -2
- package/dist/browser/components/index.d.mts +2 -2
- package/dist/browser/components/index.d.ts +2 -2
- package/dist/browser/hooks/index.d.cts +2 -2
- package/dist/browser/hooks/index.d.mts +2 -2
- package/dist/browser/hooks/index.d.ts +2 -2
- package/dist/browser/hooks/node/index.d.cts +4 -4
- package/dist/browser/hooks/node/index.d.cts.map +1 -1
- package/dist/browser/hooks/node/index.d.mts +4 -4
- package/dist/browser/hooks/node/index.d.mts.map +1 -1
- package/dist/browser/hooks/node/index.d.ts +4 -4
- package/dist/browser/hooks/node/index.d.ts.map +1 -1
- package/dist/browser/hooks/node/useArchivistFromNode.d.cts.map +1 -1
- package/dist/browser/hooks/node/useArchivistFromNode.d.mts.map +1 -1
- package/dist/browser/hooks/node/useArchivistFromNode.d.ts.map +1 -1
- package/dist/browser/hooks/node/useArchivistsFromNode.d.cts.map +1 -1
- package/dist/browser/hooks/node/useArchivistsFromNode.d.mts.map +1 -1
- package/dist/browser/hooks/node/useArchivistsFromNode.d.ts.map +1 -1
- package/dist/browser/hooks/queries/index.d.cts +4 -4
- package/dist/browser/hooks/queries/index.d.cts.map +1 -1
- package/dist/browser/hooks/queries/index.d.mts +4 -4
- package/dist/browser/hooks/queries/index.d.mts.map +1 -1
- package/dist/browser/hooks/queries/index.d.ts +4 -4
- package/dist/browser/hooks/queries/index.d.ts.map +1 -1
- package/dist/browser/index.cjs +328 -206
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +2 -2
- package/dist/browser/index.d.mts +2 -2
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.mjs +505 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/neutral/components/Card/Card.d.cts +1 -0
- package/dist/neutral/components/Card/Card.d.cts.map +1 -1
- package/dist/neutral/components/Card/Card.d.mts +1 -0
- package/dist/neutral/components/Card/Card.d.mts.map +1 -1
- package/dist/neutral/components/Card/Card.d.ts +1 -0
- package/dist/neutral/components/Card/Card.d.ts.map +1 -1
- package/dist/neutral/components/Card/CardActions.d.cts +1 -0
- package/dist/neutral/components/Card/CardActions.d.cts.map +1 -1
- package/dist/neutral/components/Card/CardActions.d.mts +1 -0
- package/dist/neutral/components/Card/CardActions.d.mts.map +1 -1
- package/dist/neutral/components/Card/CardActions.d.ts +1 -0
- package/dist/neutral/components/Card/CardActions.d.ts.map +1 -1
- package/dist/neutral/components/Card/CardContent.d.cts.map +1 -1
- package/dist/neutral/components/Card/CardContent.d.mts.map +1 -1
- package/dist/neutral/components/Card/CardContent.d.ts.map +1 -1
- package/dist/neutral/components/Card/CardHeader.d.cts +1 -0
- package/dist/neutral/components/Card/CardHeader.d.cts.map +1 -1
- package/dist/neutral/components/Card/CardHeader.d.mts +1 -0
- package/dist/neutral/components/Card/CardHeader.d.mts.map +1 -1
- package/dist/neutral/components/Card/CardHeader.d.ts +1 -0
- package/dist/neutral/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParent.d.cts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParent.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParent.d.mts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParent.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParent.d.ts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParent.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParents.d.cts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParents.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParents.d.mts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParents.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/ArchivistParents.d.ts +1 -0
- package/dist/neutral/components/Card/components/ArchivistParents.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.cts +1 -0
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.mts +1 -0
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.ts +1 -0
- package/dist/neutral/components/Card/components/Stats/ArchivistStats.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.cts +1 -0
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.mts +1 -0
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.ts +1 -0
- package/dist/neutral/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/index.d.cts +2 -2
- package/dist/neutral/components/Card/components/Stats/index.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/index.d.mts +2 -2
- package/dist/neutral/components/Card/components/Stats/index.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/Stats/index.d.ts +2 -2
- package/dist/neutral/components/Card/components/Stats/index.d.ts.map +1 -1
- package/dist/neutral/components/Card/components/index.d.cts +3 -3
- package/dist/neutral/components/Card/components/index.d.cts.map +1 -1
- package/dist/neutral/components/Card/components/index.d.mts +3 -3
- package/dist/neutral/components/Card/components/index.d.mts.map +1 -1
- package/dist/neutral/components/Card/components/index.d.ts +3 -3
- package/dist/neutral/components/Card/components/index.d.ts.map +1 -1
- package/dist/neutral/components/Card/index.d.cts +3 -3
- package/dist/neutral/components/Card/index.d.cts.map +1 -1
- package/dist/neutral/components/Card/index.d.mts +3 -3
- package/dist/neutral/components/Card/index.d.mts.map +1 -1
- package/dist/neutral/components/Card/index.d.ts +3 -3
- package/dist/neutral/components/Card/index.d.ts.map +1 -1
- package/dist/neutral/components/Details/Details.d.cts +1 -0
- package/dist/neutral/components/Details/Details.d.cts.map +1 -1
- package/dist/neutral/components/Details/Details.d.mts +1 -0
- package/dist/neutral/components/Details/Details.d.mts.map +1 -1
- package/dist/neutral/components/Details/Details.d.ts +1 -0
- package/dist/neutral/components/Details/Details.d.ts.map +1 -1
- package/dist/neutral/components/Details/index.d.cts +1 -1
- package/dist/neutral/components/Details/index.d.cts.map +1 -1
- package/dist/neutral/components/Details/index.d.mts +1 -1
- package/dist/neutral/components/Details/index.d.mts.map +1 -1
- package/dist/neutral/components/Details/index.d.ts +1 -1
- package/dist/neutral/components/Details/index.d.ts.map +1 -1
- package/dist/neutral/components/index.d.cts +2 -2
- package/dist/neutral/components/index.d.mts +2 -2
- package/dist/neutral/components/index.d.ts +2 -2
- package/dist/neutral/hooks/index.d.cts +2 -2
- package/dist/neutral/hooks/index.d.mts +2 -2
- package/dist/neutral/hooks/index.d.ts +2 -2
- package/dist/neutral/hooks/node/index.d.cts +4 -4
- package/dist/neutral/hooks/node/index.d.cts.map +1 -1
- package/dist/neutral/hooks/node/index.d.mts +4 -4
- package/dist/neutral/hooks/node/index.d.mts.map +1 -1
- package/dist/neutral/hooks/node/index.d.ts +4 -4
- package/dist/neutral/hooks/node/index.d.ts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistFromNode.d.cts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistFromNode.d.mts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistFromNode.d.ts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistsFromNode.d.cts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistsFromNode.d.mts.map +1 -1
- package/dist/neutral/hooks/node/useArchivistsFromNode.d.ts.map +1 -1
- package/dist/neutral/hooks/queries/index.d.cts +4 -4
- package/dist/neutral/hooks/queries/index.d.cts.map +1 -1
- package/dist/neutral/hooks/queries/index.d.mts +4 -4
- package/dist/neutral/hooks/queries/index.d.mts.map +1 -1
- package/dist/neutral/hooks/queries/index.d.ts +4 -4
- package/dist/neutral/hooks/queries/index.d.ts.map +1 -1
- package/dist/neutral/index.cjs +328 -206
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +2 -2
- package/dist/neutral/index.d.mts +2 -2
- package/dist/neutral/index.d.ts +2 -2
- package/dist/neutral/index.mjs +505 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/node/components/Card/Card.d.cts +1 -0
- package/dist/node/components/Card/Card.d.cts.map +1 -1
- package/dist/node/components/Card/Card.d.mts +1 -0
- package/dist/node/components/Card/Card.d.mts.map +1 -1
- package/dist/node/components/Card/Card.d.ts +1 -0
- package/dist/node/components/Card/Card.d.ts.map +1 -1
- package/dist/node/components/Card/CardActions.d.cts +1 -0
- package/dist/node/components/Card/CardActions.d.cts.map +1 -1
- package/dist/node/components/Card/CardActions.d.mts +1 -0
- package/dist/node/components/Card/CardActions.d.mts.map +1 -1
- package/dist/node/components/Card/CardActions.d.ts +1 -0
- package/dist/node/components/Card/CardActions.d.ts.map +1 -1
- package/dist/node/components/Card/CardContent.d.cts.map +1 -1
- package/dist/node/components/Card/CardContent.d.mts.map +1 -1
- package/dist/node/components/Card/CardContent.d.ts.map +1 -1
- package/dist/node/components/Card/CardHeader.d.cts +1 -0
- package/dist/node/components/Card/CardHeader.d.cts.map +1 -1
- package/dist/node/components/Card/CardHeader.d.mts +1 -0
- package/dist/node/components/Card/CardHeader.d.mts.map +1 -1
- package/dist/node/components/Card/CardHeader.d.ts +1 -0
- package/dist/node/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParent.d.cts +1 -0
- package/dist/node/components/Card/components/ArchivistParent.d.cts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParent.d.mts +1 -0
- package/dist/node/components/Card/components/ArchivistParent.d.mts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParent.d.ts +1 -0
- package/dist/node/components/Card/components/ArchivistParent.d.ts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParents.d.cts +1 -0
- package/dist/node/components/Card/components/ArchivistParents.d.cts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParents.d.mts +1 -0
- package/dist/node/components/Card/components/ArchivistParents.d.mts.map +1 -1
- package/dist/node/components/Card/components/ArchivistParents.d.ts +1 -0
- package/dist/node/components/Card/components/ArchivistParents.d.ts.map +1 -1
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.cts +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.cts.map +1 -1
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.mts +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.mts.map +1 -1
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.ts +1 -0
- package/dist/node/components/Card/components/Stats/ArchivistStats.d.ts.map +1 -1
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.cts +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.cts.map +1 -1
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.mts +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.mts.map +1 -1
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.ts +1 -0
- package/dist/node/components/Card/components/Stats/MemoryArchivistStats.d.ts.map +1 -1
- package/dist/node/components/Card/components/Stats/index.d.cts +2 -2
- package/dist/node/components/Card/components/Stats/index.d.cts.map +1 -1
- package/dist/node/components/Card/components/Stats/index.d.mts +2 -2
- package/dist/node/components/Card/components/Stats/index.d.mts.map +1 -1
- package/dist/node/components/Card/components/Stats/index.d.ts +2 -2
- package/dist/node/components/Card/components/Stats/index.d.ts.map +1 -1
- package/dist/node/components/Card/components/index.d.cts +3 -3
- package/dist/node/components/Card/components/index.d.cts.map +1 -1
- package/dist/node/components/Card/components/index.d.mts +3 -3
- package/dist/node/components/Card/components/index.d.mts.map +1 -1
- package/dist/node/components/Card/components/index.d.ts +3 -3
- package/dist/node/components/Card/components/index.d.ts.map +1 -1
- package/dist/node/components/Card/index.d.cts +3 -3
- package/dist/node/components/Card/index.d.cts.map +1 -1
- package/dist/node/components/Card/index.d.mts +3 -3
- package/dist/node/components/Card/index.d.mts.map +1 -1
- package/dist/node/components/Card/index.d.ts +3 -3
- package/dist/node/components/Card/index.d.ts.map +1 -1
- package/dist/node/components/Details/Details.d.cts +1 -0
- package/dist/node/components/Details/Details.d.cts.map +1 -1
- package/dist/node/components/Details/Details.d.mts +1 -0
- package/dist/node/components/Details/Details.d.mts.map +1 -1
- package/dist/node/components/Details/Details.d.ts +1 -0
- package/dist/node/components/Details/Details.d.ts.map +1 -1
- package/dist/node/components/Details/index.d.cts +1 -1
- package/dist/node/components/Details/index.d.cts.map +1 -1
- package/dist/node/components/Details/index.d.mts +1 -1
- package/dist/node/components/Details/index.d.mts.map +1 -1
- package/dist/node/components/Details/index.d.ts +1 -1
- package/dist/node/components/Details/index.d.ts.map +1 -1
- package/dist/node/components/index.d.cts +2 -2
- package/dist/node/components/index.d.mts +2 -2
- package/dist/node/components/index.d.ts +2 -2
- package/dist/node/hooks/index.d.cts +2 -2
- package/dist/node/hooks/index.d.mts +2 -2
- package/dist/node/hooks/index.d.ts +2 -2
- package/dist/node/hooks/node/index.d.cts +4 -4
- package/dist/node/hooks/node/index.d.cts.map +1 -1
- package/dist/node/hooks/node/index.d.mts +4 -4
- package/dist/node/hooks/node/index.d.mts.map +1 -1
- package/dist/node/hooks/node/index.d.ts +4 -4
- package/dist/node/hooks/node/index.d.ts.map +1 -1
- package/dist/node/hooks/node/useArchivistFromNode.d.cts.map +1 -1
- package/dist/node/hooks/node/useArchivistFromNode.d.mts.map +1 -1
- package/dist/node/hooks/node/useArchivistFromNode.d.ts.map +1 -1
- package/dist/node/hooks/node/useArchivistsFromNode.d.cts.map +1 -1
- package/dist/node/hooks/node/useArchivistsFromNode.d.mts.map +1 -1
- package/dist/node/hooks/node/useArchivistsFromNode.d.ts.map +1 -1
- package/dist/node/hooks/queries/index.d.cts +4 -4
- package/dist/node/hooks/queries/index.d.cts.map +1 -1
- package/dist/node/hooks/queries/index.d.mts +4 -4
- package/dist/node/hooks/queries/index.d.mts.map +1 -1
- package/dist/node/hooks/queries/index.d.ts +4 -4
- package/dist/node/hooks/queries/index.d.ts.map +1 -1
- package/dist/node/index.cjs +334 -212
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.mts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.mjs +516 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +27 -27
- package/src/components/Card/Card.stories.tsx +4 -4
- package/src/components/Card/Card.tsx +3 -2
- package/src/components/Card/CardActions.tsx +1 -0
- package/src/components/Card/CardContent.tsx +1 -2
- package/src/components/Card/CardHeader.tsx +2 -2
- package/src/components/Card/components/ArchivistParent.tsx +5 -2
- package/src/components/Card/components/ArchivistParents.tsx +25 -23
- package/src/components/Card/components/Stats/ArchivistStats.stories.tsx +11 -11
- package/src/components/Card/components/Stats/ArchivistStats.tsx +38 -29
- package/src/components/Card/components/Stats/MemoryArchivistStats.stories.tsx +2 -4
- package/src/components/Card/components/Stats/MemoryArchivistStats.tsx +4 -5
- package/src/components/Card/components/Stats/index.ts +2 -2
- package/src/components/Card/components/index.ts +3 -3
- package/src/components/Card/index.ts +3 -3
- package/src/components/Details/Details.stories.tsx +5 -7
- package/src/components/Details/Details.tsx +2 -4
- package/src/components/Details/index.ts +1 -1
- package/src/components/index.ts +2 -2
- package/src/hooks/index.ts +2 -2
- package/src/hooks/node/index.ts +4 -4
- package/src/hooks/node/useArchivistFromNode.tsx +1 -3
- package/src/hooks/node/useArchivistsFromNode.tsx +3 -5
- package/src/hooks/queries/index.ts +4 -4
- package/src/index.ts +2 -2
- package/dist/browser/index.js +0 -391
- package/dist/browser/index.js.map +0 -1
- package/dist/neutral/index.js +0 -391
- package/dist/neutral/index.js.map +0 -1
- package/dist/node/index.js +0 -402
- package/dist/node/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/exists": "^3.6.
|
|
14
|
-
"@xylabs/hex": "^3.6.
|
|
15
|
-
"@xylabs/react-async-effect": "^3.4.
|
|
16
|
-
"@xylabs/react-button": "^3.4.
|
|
17
|
-
"@xylabs/react-flexbox": "^3.4.
|
|
18
|
-
"@xylabs/react-promise": "^3.4.
|
|
19
|
-
"@xyo-network/archivist-memory": "^2.
|
|
20
|
-
"@xyo-network/archivist-model": "^2.
|
|
21
|
-
"@xyo-network/boundwitness-builder": "^2.
|
|
22
|
-
"@xyo-network/boundwitness-model": "^2.
|
|
23
|
-
"@xyo-network/module-events": "^2.
|
|
24
|
-
"@xyo-network/module-model": "^2.
|
|
25
|
-
"@xyo-network/module-wrapper": "^2.
|
|
26
|
-
"@xyo-network/payload-model": "^2.
|
|
27
|
-
"@xyo-network/react-module": "^2.
|
|
28
|
-
"@xyo-network/react-node": "^2.
|
|
29
|
-
"@xyo-network/react-wallet": "^2.
|
|
13
|
+
"@xylabs/exists": "^3.6.12",
|
|
14
|
+
"@xylabs/hex": "^3.6.12",
|
|
15
|
+
"@xylabs/react-async-effect": "^3.4.2",
|
|
16
|
+
"@xylabs/react-button": "^3.4.2",
|
|
17
|
+
"@xylabs/react-flexbox": "^3.4.2",
|
|
18
|
+
"@xylabs/react-promise": "^3.4.2",
|
|
19
|
+
"@xyo-network/archivist-memory": "^2.111.3",
|
|
20
|
+
"@xyo-network/archivist-model": "^2.111.3",
|
|
21
|
+
"@xyo-network/boundwitness-builder": "^2.111.3",
|
|
22
|
+
"@xyo-network/boundwitness-model": "^2.111.3",
|
|
23
|
+
"@xyo-network/module-events": "^2.111.3",
|
|
24
|
+
"@xyo-network/module-model": "^2.111.3",
|
|
25
|
+
"@xyo-network/module-wrapper": "^2.111.3",
|
|
26
|
+
"@xyo-network/payload-model": "^2.111.3",
|
|
27
|
+
"@xyo-network/react-module": "^2.82.0",
|
|
28
|
+
"@xyo-network/react-node": "^2.82.0",
|
|
29
|
+
"@xyo-network/react-wallet": "^2.82.0",
|
|
30
30
|
"react-icons": "^5.2.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"description": "Common React library for all XYO projects that use React",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@storybook/react": "^
|
|
42
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
43
|
-
"@xylabs/tsconfig-react": "^3.
|
|
44
|
-
"@xyo-network/account": "^2.
|
|
45
|
-
"@xyo-network/node-memory": "^2.
|
|
41
|
+
"@storybook/react": "^8.2.7",
|
|
42
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.16",
|
|
43
|
+
"@xylabs/tsconfig-react": "^3.15.16",
|
|
44
|
+
"@xyo-network/account": "^2.111.3",
|
|
45
|
+
"@xyo-network/node-memory": "^2.111.3",
|
|
46
46
|
"typescript": "^5.5.4"
|
|
47
47
|
},
|
|
48
48
|
"docs": "dist/docs.json",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"node": {
|
|
52
52
|
"import": {
|
|
53
53
|
"types": "./dist/node/index.d.mts",
|
|
54
|
-
"default": "./dist/node/index.
|
|
54
|
+
"default": "./dist/node/index.mjs"
|
|
55
55
|
},
|
|
56
56
|
"require": {
|
|
57
57
|
"types": "./dist/node/index.d.cts",
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"browser": {
|
|
62
62
|
"import": {
|
|
63
63
|
"types": "./dist/browser/index.d.mts",
|
|
64
|
-
"default": "./dist/browser/index.
|
|
64
|
+
"default": "./dist/browser/index.mjs"
|
|
65
65
|
},
|
|
66
66
|
"require": {
|
|
67
67
|
"types": "./dist/browser/index.d.cts",
|
|
68
68
|
"default": "./dist/browser/index.cjs"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"default": "./dist/browser/index.
|
|
71
|
+
"default": "./dist/browser/index.mjs"
|
|
72
72
|
},
|
|
73
73
|
"./package.json": "./package.json"
|
|
74
74
|
},
|
|
75
75
|
"main": "dist/browser/index.cjs",
|
|
76
|
-
"module": "dist/browser/index.
|
|
76
|
+
"module": "dist/browser/index.mjs",
|
|
77
77
|
"homepage": "https://xyo.network",
|
|
78
78
|
"keywords": [
|
|
79
79
|
"xyo",
|
|
@@ -95,6 +95,6 @@
|
|
|
95
95
|
},
|
|
96
96
|
"sideEffects": false,
|
|
97
97
|
"types": "dist/browser/index.d.ts",
|
|
98
|
-
"version": "2.
|
|
98
|
+
"version": "2.82.0",
|
|
99
99
|
"type": "module"
|
|
100
100
|
}
|
|
@@ -7,8 +7,9 @@ import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archi
|
|
|
7
7
|
import { ArchivistInsertQuerySchema, ArchivistInstance } from '@xyo-network/archivist-model'
|
|
8
8
|
import { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
9
9
|
import { MemoryNode } from '@xyo-network/node-memory'
|
|
10
|
+
import React from 'react'
|
|
10
11
|
|
|
11
|
-
import { ArchivistCard } from './Card.
|
|
12
|
+
import { ArchivistCard } from './Card.tsx'
|
|
12
13
|
|
|
13
14
|
const StorybookEntry = {
|
|
14
15
|
component: ArchivistCard,
|
|
@@ -64,10 +65,10 @@ const Template: StoryFn<typeof ArchivistCard> = () => {
|
|
|
64
65
|
return (
|
|
65
66
|
<FlexCol gap={2}>
|
|
66
67
|
<ArchivistCard mod={mod} />
|
|
67
|
-
<Button onClick={() => insertPayload(mod)} variant=
|
|
68
|
+
<Button onClick={() => insertPayload(mod)} variant="contained">
|
|
68
69
|
Insert Into Archivist
|
|
69
70
|
</Button>
|
|
70
|
-
<Button onClick={() => clearArchivist(mod)} variant=
|
|
71
|
+
<Button onClick={() => clearArchivist(mod)} variant="contained">
|
|
71
72
|
Clear Archivist
|
|
72
73
|
</Button>
|
|
73
74
|
</FlexCol>
|
|
@@ -78,5 +79,4 @@ const SingleModule = Template.bind({})
|
|
|
78
79
|
|
|
79
80
|
export { SingleModule }
|
|
80
81
|
|
|
81
|
-
// eslint-disable-next-line import/no-default-export
|
|
82
82
|
export default StorybookEntry
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Card, CardProps } from '@mui/material'
|
|
2
2
|
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { ModuleCardActions, ModuleRenderProps } from '@xyo-network/react-module'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
|
|
5
|
-
import { ArchivistCardContent } from './CardContent.
|
|
6
|
-
import { ArchivistCardHeader } from './CardHeader.
|
|
6
|
+
import { ArchivistCardContent } from './CardContent.tsx'
|
|
7
|
+
import { ArchivistCardHeader } from './CardHeader.tsx'
|
|
7
8
|
|
|
8
9
|
export const ArchivistCard: React.FC<CardProps & ModuleRenderProps<ArchivistInstance>> = ({ children, mod, ...props }) => {
|
|
9
10
|
return (
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CardActionsProps } from '@mui/material'
|
|
2
2
|
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { ModuleCardActions, ModuleRenderProps } from '@xyo-network/react-module'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
|
|
5
6
|
export const ArchivistCardActions: React.FC<ModuleRenderProps<ArchivistInstance> & CardActionsProps> = (props) => {
|
|
6
7
|
return <ModuleCardActions {...props} />
|
|
@@ -7,14 +7,13 @@ import { ModuleCardContent, ModuleRenderProps } from '@xyo-network/react-module'
|
|
|
7
7
|
import { useWallet } from '@xyo-network/react-wallet'
|
|
8
8
|
import React, { useState } from 'react'
|
|
9
9
|
|
|
10
|
-
import { ArchivistParents } from './components/index.
|
|
10
|
+
import { ArchivistParents } from './components/index.ts'
|
|
11
11
|
|
|
12
12
|
export const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps> = ({ children, mod, ...props }) => {
|
|
13
13
|
const [config, setConfig] = useState<ArchivistConfig>()
|
|
14
14
|
const [wallet] = useWallet()
|
|
15
15
|
|
|
16
16
|
useAsyncEffect(
|
|
17
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18
17
|
async (mounted) => {
|
|
19
18
|
if (wallet && mod) {
|
|
20
19
|
const wrapper = ModuleWrapper.wrap(mod, wallet)
|
|
@@ -2,9 +2,9 @@ import { CardHeaderProps } from '@mui/material'
|
|
|
2
2
|
import { MemoryArchivistConfigSchema } from '@xyo-network/archivist-memory'
|
|
3
3
|
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
4
|
import { ModuleCardHeader, ModuleRenderProps } from '@xyo-network/react-module'
|
|
5
|
-
import { useMemo } from 'react'
|
|
5
|
+
import React, { useMemo } from 'react'
|
|
6
6
|
|
|
7
|
-
import { MemoryArchivistsStats } from './components/index.
|
|
7
|
+
import { MemoryArchivistsStats } from './components/index.ts'
|
|
8
8
|
|
|
9
9
|
const ArchivistStats = (archivist?: ArchivistInstance) => {
|
|
10
10
|
switch (archivist?.config.schema) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ListItem, Typography } from '@mui/material'
|
|
2
|
+
import React from 'react'
|
|
2
3
|
|
|
3
4
|
export interface ArchivistTypeProps {
|
|
4
5
|
archivistType?: 'Commit' | 'Read' | 'Write'
|
|
@@ -11,8 +12,10 @@ export const ArchivistParent: React.FC<ArchivistTypeProps> = ({ archivistType, p
|
|
|
11
12
|
return (
|
|
12
13
|
<ListItem key={address}>
|
|
13
14
|
<Typography variant="subtitle2">
|
|
14
|
-
{archivistType}
|
|
15
|
-
|
|
15
|
+
{archivistType}
|
|
16
|
+
:
|
|
17
|
+
{' '}
|
|
18
|
+
<Typography variant="caption" sx={{ ml: 0.5 }}>
|
|
16
19
|
{address}
|
|
17
20
|
</Typography>
|
|
18
21
|
</Typography>
|
|
@@ -2,9 +2,9 @@ import { ArrowRightRounded as ArrowRightRoundedIcon } from '@mui/icons-material'
|
|
|
2
2
|
import { Collapse, IconButton, List, Paper, Typography } from '@mui/material'
|
|
3
3
|
import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
|
|
4
4
|
import { ArchivistConfig } from '@xyo-network/archivist-model'
|
|
5
|
-
import { useState } from 'react'
|
|
5
|
+
import React, { useState } from 'react'
|
|
6
6
|
|
|
7
|
-
import { ArchivistParent } from './ArchivistParent.
|
|
7
|
+
import { ArchivistParent } from './ArchivistParent.tsx'
|
|
8
8
|
|
|
9
9
|
export interface ArchivistParentsProps extends FlexBoxProps {
|
|
10
10
|
config?: ArchivistConfig
|
|
@@ -17,27 +17,29 @@ export const ArchivistParents: React.FC<ArchivistParentsProps> = ({ config, ...p
|
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<>
|
|
20
|
-
{commit || read || write
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
{commit || read || write
|
|
21
|
+
? (
|
|
22
|
+
<FlexCol alignItems="start" {...props}>
|
|
23
|
+
<span onClick={() => setParentArchivistCollapse(!parentArchivistCollapse)}>
|
|
24
|
+
<Typography variant="subtitle2" sx={{ cursor: 'pointer', display: 'inline-block' }}>
|
|
25
|
+
Parents
|
|
26
|
+
</Typography>
|
|
27
|
+
<IconButton size="small">
|
|
28
|
+
<ArrowRightRoundedIcon sx={{ rotate: parentArchivistCollapse ? '90deg' : '0deg', transition: 'all .25s' }} />
|
|
29
|
+
</IconButton>
|
|
30
|
+
</span>
|
|
31
|
+
<Collapse in={parentArchivistCollapse}>
|
|
32
|
+
<Paper elevation={2}>
|
|
33
|
+
<List>
|
|
34
|
+
<ArchivistParent archivistType="Commit" parentArchivists={commit} />
|
|
35
|
+
<ArchivistParent archivistType="Read" parentArchivists={read} />
|
|
36
|
+
<ArchivistParent archivistType="Write" parentArchivists={write} />
|
|
37
|
+
</List>
|
|
38
|
+
</Paper>
|
|
39
|
+
</Collapse>
|
|
40
|
+
</FlexCol>
|
|
41
|
+
)
|
|
42
|
+
: null}
|
|
41
43
|
</>
|
|
42
44
|
)
|
|
43
45
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { usePromise } from '@xylabs/react-promise'
|
|
3
|
+
import React from 'react'
|
|
3
4
|
|
|
4
|
-
//import { Account } from '@xyo-network/account'
|
|
5
|
-
//import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
6
|
-
//import { Payload } from '@xyo-network/payload-model'
|
|
7
|
-
import { ArchivistStats } from './ArchivistStats.
|
|
5
|
+
// import { Account } from '@xyo-network/account'
|
|
6
|
+
// import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
7
|
+
// import { Payload } from '@xyo-network/payload-model'
|
|
8
|
+
import { ArchivistStats } from './ArchivistStats.tsx'
|
|
8
9
|
|
|
9
|
-
//const account = Account.randomSync()
|
|
10
|
-
//const payload = () => ({ schema: 'network.xyo.payload', timestamp: Date.now() })
|
|
11
|
-
//const boundWitness = async () => await new BoundWitnessBuilder().payload(payload()).signer(account).build()
|
|
10
|
+
// const account = Account.randomSync()
|
|
11
|
+
// const payload = () => ({ schema: 'network.xyo.payload', timestamp: Date.now() })
|
|
12
|
+
// const boundWitness = async () => await new BoundWitnessBuilder().payload(payload()).signer(account).build()
|
|
12
13
|
|
|
13
14
|
const StorybookEntry = {
|
|
14
15
|
component: ArchivistStats,
|
|
@@ -28,13 +29,12 @@ const Template: StoryFn<typeof ArchivistStats> = ({ boundWitnesses, ...props })
|
|
|
28
29
|
const Default = Template.bind({})
|
|
29
30
|
const WithStats = Template.bind({})
|
|
30
31
|
WithStats.args = {
|
|
31
|
-
//addresses: { [account.address]: 1 },
|
|
32
|
-
//boundWitnesses: [boundWitness() as unknown as Payload],
|
|
33
|
-
//payloads: [payload(), boundWitness() as unknown as Payload],
|
|
32
|
+
// addresses: { [account.address]: 1 },
|
|
33
|
+
// boundWitnesses: [boundWitness() as unknown as Payload],
|
|
34
|
+
// payloads: [payload(), boundWitness() as unknown as Payload],
|
|
34
35
|
schemas: { 'network.xyo.boundwitness': 1, 'network.xyo.payload': 1 },
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export { Default, WithStats }
|
|
38
39
|
|
|
39
|
-
// eslint-disable-next-line import/no-default-export
|
|
40
40
|
export default StorybookEntry
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Badge, Tooltip } from '@mui/material'
|
|
2
2
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
// eslint-disable-next-line import/no-internal-modules
|
|
5
6
|
import { BsFileEarmarkCode } from 'react-icons/bs'
|
|
6
7
|
// eslint-disable-next-line import/no-internal-modules
|
|
@@ -13,37 +14,45 @@ export interface ArchivistStatsProps {
|
|
|
13
14
|
schemas?: Record<string, number>
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
export const ArchivistStats: React.FC<ArchivistStatsProps> = ({ addresses
|
|
17
|
+
export const ArchivistStats: React.FC<ArchivistStatsProps> = ({ addresses, boundWitnesses, payloads, schemas }) => {
|
|
17
18
|
return (
|
|
18
19
|
<FlexRow gap={2} mr={0.5}>
|
|
19
|
-
{payloads?.length
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
{payloads?.length
|
|
21
|
+
? (
|
|
22
|
+
<Tooltip title="Payloads">
|
|
23
|
+
<Badge badgeContent={payloads?.length} color="primary">
|
|
24
|
+
<VscSymbolNamespace size={20} />
|
|
25
|
+
</Badge>
|
|
26
|
+
</Tooltip>
|
|
27
|
+
)
|
|
28
|
+
: null}
|
|
29
|
+
{boundWitnesses?.length
|
|
30
|
+
? (
|
|
31
|
+
<Tooltip title="Blocks">
|
|
32
|
+
<Badge badgeContent={boundWitnesses?.length} color="primary">
|
|
33
|
+
<VscSymbolMethod size={20} />
|
|
34
|
+
</Badge>
|
|
35
|
+
</Tooltip>
|
|
36
|
+
)
|
|
37
|
+
: null}
|
|
38
|
+
{Object.entries(schemas ?? {}).length > 0
|
|
39
|
+
? (
|
|
40
|
+
<Tooltip title="Schemas">
|
|
41
|
+
<Badge badgeContent={Object.entries(schemas ?? {}).length} color="primary">
|
|
42
|
+
<BsFileEarmarkCode size={20} />
|
|
43
|
+
</Badge>
|
|
44
|
+
</Tooltip>
|
|
45
|
+
)
|
|
46
|
+
: null}
|
|
47
|
+
{Object.entries(addresses ?? {}).length > 0
|
|
48
|
+
? (
|
|
49
|
+
<Tooltip title="Addresses">
|
|
50
|
+
<Badge badgeContent={Object.entries(addresses ?? {}).length} color="primary">
|
|
51
|
+
<VscOrganization size={20} />
|
|
52
|
+
</Badge>
|
|
53
|
+
</Tooltip>
|
|
54
|
+
)
|
|
55
|
+
: null}
|
|
47
56
|
</FlexRow>
|
|
48
57
|
)
|
|
49
58
|
}
|
|
@@ -5,9 +5,9 @@ import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archi
|
|
|
5
5
|
import { ArchivistInsertQuerySchema, ArchivistInstance } from '@xyo-network/archivist-model'
|
|
6
6
|
import { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
7
7
|
import { MemoryNode } from '@xyo-network/node-memory'
|
|
8
|
-
import { useState } from 'react'
|
|
8
|
+
import React, { useState } from 'react'
|
|
9
9
|
|
|
10
|
-
import { MemoryArchivistsStats } from './MemoryArchivistStats.
|
|
10
|
+
import { MemoryArchivistsStats } from './MemoryArchivistStats.tsx'
|
|
11
11
|
|
|
12
12
|
const StorybookEntry = {
|
|
13
13
|
component: MemoryArchivistsStats,
|
|
@@ -23,7 +23,6 @@ const Template: StoryFn<typeof MemoryArchivistsStats> = () => {
|
|
|
23
23
|
const [mod, setModule] = useState<ArchivistInstance>()
|
|
24
24
|
|
|
25
25
|
useAsyncEffect(
|
|
26
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
27
26
|
async () => {
|
|
28
27
|
if (!mod) {
|
|
29
28
|
const node = await MemoryNode.create()
|
|
@@ -58,5 +57,4 @@ const Default = Template.bind({})
|
|
|
58
57
|
|
|
59
58
|
export { Default }
|
|
60
59
|
|
|
61
|
-
// eslint-disable-next-line import/no-default-export
|
|
62
60
|
export default StorybookEntry
|
|
@@ -3,9 +3,9 @@ import { ArchivistAllQuerySchema, ArchivistInstance } from '@xyo-network/archivi
|
|
|
3
3
|
import { asBoundWitness, BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
4
4
|
import { EventUnsubscribeFunction } from '@xyo-network/module-events'
|
|
5
5
|
import { Payload } from '@xyo-network/payload-model'
|
|
6
|
-
import { useCallback, useEffect, useMemo, useState } from 'react'
|
|
6
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
|
7
7
|
|
|
8
|
-
import { ArchivistStats } from './ArchivistStats.
|
|
8
|
+
import { ArchivistStats } from './ArchivistStats.tsx'
|
|
9
9
|
|
|
10
10
|
export interface MemoryArchivistStatsProps {
|
|
11
11
|
archivist?: ArchivistInstance
|
|
@@ -40,7 +40,6 @@ export const MemoryArchivistsStats: React.FC<MemoryArchivistStatsProps> = ({ arc
|
|
|
40
40
|
}, [archivist, getAll])
|
|
41
41
|
|
|
42
42
|
useAsyncEffect(
|
|
43
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
43
|
async () => {
|
|
45
44
|
if (archivist?.queries.includes(ArchivistAllQuerySchema)) {
|
|
46
45
|
await getAll(archivist)
|
|
@@ -51,8 +50,8 @@ export const MemoryArchivistsStats: React.FC<MemoryArchivistStatsProps> = ({ arc
|
|
|
51
50
|
[archivist, getAll],
|
|
52
51
|
)
|
|
53
52
|
|
|
54
|
-
const payloads = useMemo(() => (all === null ? [] : all?.filter(
|
|
55
|
-
const boundWitnesses = useMemo(() => (all === null ? [] : all?.filter(
|
|
53
|
+
const payloads = useMemo(() => (all === null ? [] : all?.filter(payload => payload.schema !== BoundWitnessSchema)), [all])
|
|
54
|
+
const boundWitnesses = useMemo(() => (all === null ? [] : all?.filter(payload => payload.schema === BoundWitnessSchema)), [all])
|
|
56
55
|
const addresses = useMemo(
|
|
57
56
|
() =>
|
|
58
57
|
all?.reduce(
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ArchivistStats.
|
|
2
|
-
export * from './MemoryArchivistStats.
|
|
1
|
+
export * from './ArchivistStats.tsx'
|
|
2
|
+
export * from './MemoryArchivistStats.tsx'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './ArchivistParent.
|
|
2
|
-
export * from './ArchivistParents.
|
|
3
|
-
export * from './Stats/index.
|
|
1
|
+
export * from './ArchivistParent.tsx'
|
|
2
|
+
export * from './ArchivistParents.tsx'
|
|
3
|
+
export * from './Stats/index.ts'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Card.
|
|
2
|
-
export * from './CardContent.
|
|
3
|
-
export * from './CardHeader.
|
|
1
|
+
export * from './Card.tsx'
|
|
2
|
+
export * from './CardContent.tsx'
|
|
3
|
+
export * from './CardHeader.tsx'
|
|
@@ -2,10 +2,10 @@ import { Meta, StoryFn } from '@storybook/react'
|
|
|
2
2
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
3
3
|
import { ArchivistModule } from '@xyo-network/archivist-model'
|
|
4
4
|
import { NodeProvider } from '@xyo-network/react-node'
|
|
5
|
-
import { useState } from 'react'
|
|
5
|
+
import React, { useState } from 'react'
|
|
6
6
|
|
|
7
|
-
import { useWeakArchivistFromNode } from '../../hooks/index.
|
|
8
|
-
import { ArchivistDetails } from './Details.
|
|
7
|
+
import { useWeakArchivistFromNode } from '../../hooks/index.ts'
|
|
8
|
+
import { ArchivistDetails } from './Details.tsx'
|
|
9
9
|
|
|
10
10
|
const StorybookEntry = {
|
|
11
11
|
argTypes: {},
|
|
@@ -29,7 +29,6 @@ const TemplateInnerWithData: StoryFn<typeof ArchivistDetails> = (args) => {
|
|
|
29
29
|
const [archivistWithData, setArchivistWithData] = useState<ArchivistModule>()
|
|
30
30
|
|
|
31
31
|
useAsyncEffect(
|
|
32
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
33
32
|
async (mounted) => {
|
|
34
33
|
if (archivist?.deref()) {
|
|
35
34
|
await archivist.deref()?.insert([{ schema: 'network.xyo.test' }])
|
|
@@ -44,13 +43,13 @@ const TemplateInnerWithData: StoryFn<typeof ArchivistDetails> = (args) => {
|
|
|
44
43
|
return <ArchivistDetails address={archivistWithData?.address} {...args}></ArchivistDetails>
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
const TemplateWithNoData: StoryFn<typeof ArchivistDetails> =
|
|
46
|
+
const TemplateWithNoData: StoryFn<typeof ArchivistDetails> = args => (
|
|
48
47
|
<NodeProvider>
|
|
49
48
|
<TemplateInner {...args}></TemplateInner>
|
|
50
49
|
</NodeProvider>
|
|
51
50
|
)
|
|
52
51
|
|
|
53
|
-
const TemplateWithData: StoryFn<typeof ArchivistDetails> =
|
|
52
|
+
const TemplateWithData: StoryFn<typeof ArchivistDetails> = args => (
|
|
54
53
|
<NodeProvider>
|
|
55
54
|
<TemplateInnerWithData {...args}></TemplateInnerWithData>
|
|
56
55
|
</NodeProvider>
|
|
@@ -67,5 +66,4 @@ TemplateWithData.args = {}
|
|
|
67
66
|
|
|
68
67
|
export { WithData, WithNoArchivist, WithNoData }
|
|
69
68
|
|
|
70
|
-
// eslint-disable-next-line import/no-default-export
|
|
71
69
|
export default StorybookEntry
|
|
@@ -5,9 +5,9 @@ import { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'
|
|
|
5
5
|
import { ArchivistClearQuerySchema, ArchivistCommitQuerySchema } from '@xyo-network/archivist-model'
|
|
6
6
|
import { QueryBoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
|
|
7
7
|
import { Payload } from '@xyo-network/payload-model'
|
|
8
|
-
import { useState } from 'react'
|
|
8
|
+
import React, { useState } from 'react'
|
|
9
9
|
|
|
10
|
-
import { useWeakArchivistFromNode } from '../../hooks/index.
|
|
10
|
+
import { useWeakArchivistFromNode } from '../../hooks/index.ts'
|
|
11
11
|
|
|
12
12
|
const testQueryCommit = { schema: ArchivistCommitQuerySchema }
|
|
13
13
|
const testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder().query(testQueryCommit)
|
|
@@ -27,7 +27,6 @@ export const ArchivistDetails: React.FC<ArchivistDetails> = ({ address, ...props
|
|
|
27
27
|
const [queryableClear, setQueryableClear] = useState(false)
|
|
28
28
|
|
|
29
29
|
useAsyncEffect(
|
|
30
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
30
|
async () => {
|
|
32
31
|
const instance = archivist?.deref()
|
|
33
32
|
if (instance) {
|
|
@@ -41,7 +40,6 @@ export const ArchivistDetails: React.FC<ArchivistDetails> = ({ address, ...props
|
|
|
41
40
|
)
|
|
42
41
|
|
|
43
42
|
useAsyncEffect(
|
|
44
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
43
|
async (mounted) => {
|
|
46
44
|
const payloads = await archivist?.deref()?.all?.()
|
|
47
45
|
if (mounted()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Details.
|
|
1
|
+
export * from './Details.tsx'
|
package/src/components/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Card/index.
|
|
2
|
-
export * from './Details/index.
|
|
1
|
+
export * from './Card/index.ts'
|
|
2
|
+
export * from './Details/index.ts'
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './node/index.
|
|
2
|
-
export * from './queries/index.
|
|
1
|
+
export * from './node/index.ts'
|
|
2
|
+
export * from './queries/index.ts'
|
package/src/hooks/node/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './useArchivistFromNode.
|
|
2
|
-
export * from './useArchivistsFromNode.
|
|
3
|
-
export * from './useWeakArchivistFromNode.
|
|
4
|
-
export * from './useWeakArchivistsFromNode.
|
|
1
|
+
export * from './useArchivistFromNode.tsx'
|
|
2
|
+
export * from './useArchivistsFromNode.tsx'
|
|
3
|
+
export * from './useWeakArchivistFromNode.tsx'
|
|
4
|
+
export * from './useWeakArchivistsFromNode.tsx'
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
/* eslint-disable import/no-deprecated */
|
|
2
|
-
/* eslint-disable deprecation/deprecation */
|
|
3
1
|
import { ArchivistInstance, asArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
2
|
import { ModuleFromNodeConfig, useModuleFromNode } from '@xyo-network/react-node'
|
|
5
3
|
|
|
6
|
-
/** @deprecated use useWeakArchivistFromNode*/
|
|
4
|
+
/** @deprecated use useWeakArchivistFromNode */
|
|
7
5
|
export const useArchivistFromNode = (
|
|
8
6
|
nameOrAddressOrInstance?: string | ArchivistInstance,
|
|
9
7
|
config?: ModuleFromNodeConfig,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* eslint-disable import/no-deprecated */
|
|
2
|
-
/* eslint-disable deprecation/deprecation */
|
|
3
1
|
import { ArchivistInstance, isArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
2
|
import { ModuleFilter } from '@xyo-network/module-model'
|
|
5
3
|
import { ModuleFromNodeConfig, useModulesFromNode } from '@xyo-network/react-node'
|
|
6
4
|
|
|
7
|
-
/** @deprecated use useWeakArchivistsFromNode*/
|
|
5
|
+
/** @deprecated use useWeakArchivistsFromNode */
|
|
8
6
|
export const useArchivistsFromNode = (
|
|
9
7
|
filter?: ModuleFilter,
|
|
10
8
|
config?: ModuleFromNodeConfig,
|
|
@@ -13,8 +11,8 @@ export const useArchivistsFromNode = (
|
|
|
13
11
|
if (error) {
|
|
14
12
|
return [null, error]
|
|
15
13
|
}
|
|
16
|
-
return modules
|
|
17
|
-
|
|
14
|
+
return modules
|
|
15
|
+
? [
|
|
18
16
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
19
17
|
modules.reduce<ArchivistInstance[]>((prev, mod) => {
|
|
20
18
|
if (isArchivistInstance(mod)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './useArchivistAll.
|
|
2
|
-
export * from './useArchivistGet.
|
|
3
|
-
export * from './useWeakArchivistAll.
|
|
4
|
-
export * from './useWeakArchivistGet.
|
|
1
|
+
export * from './useArchivistAll.tsx'
|
|
2
|
+
export * from './useArchivistGet.tsx'
|
|
3
|
+
export * from './useWeakArchivistAll.tsx'
|
|
4
|
+
export * from './useWeakArchivistGet.tsx'
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './components/index.
|
|
2
|
-
export * from './hooks/index.
|
|
1
|
+
export * from './components/index.ts'
|
|
2
|
+
export * from './hooks/index.ts'
|