@xyo-network/react-sentinel 7.6.2 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAGlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GACtE,gBAAgB,GAAG;IACnB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;CACnB,CAAA;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAalE,CAAA"}
1
+ {"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAGlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GACtE,gBAAgB,GAAG;IACnB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;CACnB,CAAA;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAmBlE,CAAA"}
@@ -26,10 +26,20 @@ var SentinelCardContent = ({
26
26
  mod,
27
27
  ...props
28
28
  }) => {
29
- return /* @__PURE__ */ jsx2(ModuleCardContent, { mod, ...props, children: /* @__PURE__ */ jsxs(FlexGrowRow, { flexWrap: "wrap", justifyContent: "start", gap: 2, children: [
30
- report ? /* @__PURE__ */ jsx2(JsonViewerEx, { value: report }) : null,
31
- children
32
- ] }) });
29
+ return /* @__PURE__ */ jsx2(ModuleCardContent, { mod, ...props, children: /* @__PURE__ */ jsxs(
30
+ FlexGrowRow,
31
+ {
32
+ sx: {
33
+ flexWrap: "wrap",
34
+ justifyContent: "start",
35
+ gap: 2
36
+ },
37
+ children: [
38
+ report ? /* @__PURE__ */ jsx2(JsonViewerEx, { value: report }) : null,
39
+ children
40
+ ]
41
+ }
42
+ ) });
33
43
  };
34
44
 
35
45
  // src/components/Card/CardHeader.tsx
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Card/Card.tsx","../../src/components/Card/CardActions.tsx","../../src/components/Card/CardContent.tsx","../../src/components/Card/CardHeader.tsx","../../src/contexts/Context.ts","../../src/contexts/Provider.tsx","../../src/contexts/State.ts","../../src/contexts/use.ts","../../src/hooks/node/useSentinelFromNode.tsx","../../src/hooks/node/useSentinelsFromNode.tsx","../../src/hooks/node/useWeakSentinelFromNode.tsx","../../src/hooks/node/useWeakSentinelsFromNode.tsx"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React, { useState } from 'react'\n\nimport { SentinelCardActions } from './CardActions.tsx'\nimport { SentinelCardContent } from './CardContent.tsx'\nimport { SentinelCardHeader } from './CardHeader.tsx'\n\nexport type SentinelCardProps = CardProps\n & ModuleRenderProps<SentinelInstance> & {\n inPayloads?: Payload[]\n }\n\nexport const SentinelCard: React.FC<SentinelCardProps> = ({\n children, inPayloads, mod, ...props\n}) => {\n const [retry, setRetry] = useState(-1)\n const [report] = usePromise(async () => {\n if (retry >= 0) {\n return await mod?.report(inPayloads)\n }\n }, [mod, retry, inPayloads])\n return (\n <Card {...props}>\n <SentinelCardHeader mod={mod} />\n <SentinelCardContent mod={mod} report={report} />\n {children}\n <SentinelCardActions mod={mod} onReport={() => setRetry(retry + 1)} />\n </Card>\n )\n}\n","import type { CardActionsProps } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardActions } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport type SentinelCardActionsProps = ModuleRenderProps<SentinelInstance>\n & CardActionsProps & {\n onReport?: (mod?: SentinelInstance) => void\n }\n\nexport const SentinelCardActions: React.FC<SentinelCardActionsProps> = ({\n onReport, mod, ...props\n}) => {\n return (\n <ModuleCardActions mod={mod} {...props}>\n <ButtonEx onClick={() => onReport?.(mod)} size=\"small\" variant=\"outlined\">\n Report\n </ButtonEx>\n </ModuleCardActions>\n )\n}\n","import type { CardContentProps } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardContent } from '@xyo-network/react-module'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport type SentinelCardContentProps = ModuleRenderProps<SentinelInstance>\n & CardContentProps & {\n report?: Payload[]\n }\n\nexport const SentinelCardContent: React.FC<SentinelCardContentProps> = ({\n children, report, mod, ...props\n}) => {\n return (\n <ModuleCardContent mod={mod} {...props}>\n <FlexGrowRow flexWrap=\"wrap\" justifyContent=\"start\" gap={2}>\n {report\n ? <JsonViewerEx value={report} />\n : null}\n {children}\n </FlexGrowRow>\n </ModuleCardContent>\n )\n}\n","import type { CardHeaderProps } from '@mui/material'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardHeader } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport const SentinelCardHeader: React.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps> = ({\n title, mod, ...props\n}) => {\n return <ModuleCardHeader mod={mod} title={title ?? mod?.config.name ?? 'Sentinel'} {...props} />\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { SentinelContextState } from './State.ts'\n\nexport const SentinelContext = createContextEx<SentinelContextState>()\n","import { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { useWitnessesFromNode } from '@xyo-network/react-witness'\nimport { MemorySentinel } from '@xyo-network/sentinel-memory'\nimport type { SentinelConfig } from '@xyo-network/sentinel-model'\nimport { SentinelConfigSchema } from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\nimport { asWitnessInstance } from '@xyo-network/witness-model'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { SentinelContext } from './Context.ts'\nimport type { SentinelContextState, SentinelReportProgress } from './State.ts'\nimport { SentinelReportStatus } from './State.ts'\n\nexport interface SentinelProviderProps {\n /** Account used by the sentinel for signing */\n account: AccountInstance\n /** @deprecated - sentinel no longer uses archive but relies on an archivist */\n archive?: string\n archivist?: string\n ids?: ModuleIdentifier[]\n name?: string\n required?: boolean\n witnesses?: WitnessInstance[]\n}\n\nexport const SentinelProvider: React.FC<PropsWithChildren<SentinelProviderProps>> = ({\n account, archivist, children, ids, name, required = false,\n}) => {\n const [sentinel, setSentinel] = useState<MemorySentinel>()\n const [history, setHistory] = useState<BoundWitness[]>()\n const [progress, setProgress] = useState<SentinelReportProgress>({})\n const [status, setStatus] = useState<SentinelReportStatus>(SentinelReportStatus.Idle)\n const [reportingErrors, setReportingErrors] = useState<Error[]>()\n const [witnesses] = useWitnessesFromNode(ids)\n\n useAsyncEffect(\n\n async (mounted) => {\n const sentinel = await MemorySentinel.create({\n account,\n config: {\n archivists: archivist ? [archivist] : undefined,\n name,\n\n schema: SentinelConfigSchema,\n synchronous: true,\n\n tasks: witnesses?.map(mod => ({ mod: mod.address })),\n } as SentinelConfig,\n })\n const offCallbacks: (() => void)[] = [\n sentinel.on('reportEnd', ({ mod, outPayloads }) => {\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses: progress.witnesses,\n })\n setStatus(outPayloads?.length ? SentinelReportStatus.Succeeded : SentinelReportStatus.Failed)\n setReportingErrors([new Error(`Witness failed [${mod?.config?.name ?? mod.address}]`)])\n }\n }),\n sentinel.on('reportStart', () => {\n if (mounted()) {\n setProgress({ archivists: {}, witnesses: {} })\n setStatus(SentinelReportStatus.Started)\n }\n }),\n ]\n if (witnesses)\n for (const witness of witnesses) {\n offCallbacks.push(\n witness.on('observeEnd', ({ mod, outPayloads }) => {\n const witnesses = progress.witnesses ?? {}\n witnesses[witness.address] = {\n status: outPayloads?.length ? SentinelReportStatus.Succeeded : SentinelReportStatus.Failed,\n witness: asWitnessInstance(mod, () => `Module is not a witness [${mod.id}]`, { required: true }),\n }\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses,\n })\n }\n }),\n witness.on('observeStart', ({ mod }) => {\n const witnesses = progress.witnesses ?? {}\n witnesses[witness.address] = {\n status: SentinelReportStatus.Started,\n witness: asWitnessInstance(mod, () => `Module is not a witness [${mod.id}]`, { required: true }),\n }\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses,\n })\n }\n }),\n )\n }\n setSentinel(sentinel as MemorySentinel)\n setHistory(sentinel?.history as BoundWitness[])\n return () => {\n // unsubscribe from events\n for (const callback of offCallbacks) {\n callback()\n }\n }\n },\n\n [account, archivist, witnesses],\n )\n\n const value: SentinelContextState = useMemo(() => ({\n history, progress, provided: true, reportingErrors, sentinel, status,\n }), [history, progress, reportingErrors, sentinel, status])\n\n return !required || sentinel\n\n ? (\n <SentinelContext value={value}>\n {children}\n </SentinelContext>\n )\n : null\n}\n","import type { ContextExState } from '@xylabs/react-shared'\nimport type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\nimport type { ArchivistModuleInstance } from '@xyo-network/archivist-model'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport type { SentinelModule } from '@xyo-network/sentinel-model'\nimport type { WitnessModule } from '@xyo-network/witness-model'\n\nexport const SentinelReportStatus = Enum({\n Idle: 'idle',\n Queued: 'queued',\n Started: 'started',\n Succeeded: 'succeeded',\n Failed: 'failed',\n})\n\nexport type SentinelReportStatus = EnumValue<typeof SentinelReportStatus>\n\nexport interface SentinelWitnessReportProgress {\n status: SentinelReportStatus\n witness: WitnessModule\n}\n\nexport interface SentinelArchivistApiReportProgress {\n archivist: ArchivistModuleInstance\n status: SentinelReportStatus\n}\n\nexport interface SentinelReportProgress {\n archivists?: Record<string, SentinelArchivistApiReportProgress>\n witnesses?: Record<string, SentinelWitnessReportProgress>\n}\n\nexport type SentinelContextState = ContextExState<{\n history?: BoundWitness[]\n progress?: SentinelReportProgress\n reportingErrors?: Error[]\n sentinel?: SentinelModule\n status?: SentinelReportStatus\n}>\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { SentinelContext } from './Context.ts'\n\nexport const useSentinelContext = () => {\n const {\n sentinel, history, progress, reportingErrors, status,\n } = useContextEx(SentinelContext, 'Sentinel')\n return {\n history, progress, reportingErrors, sentinel, status,\n }\n}\n","import type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useModuleFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { asSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useSentinelFromNode = (\n nameOrAddressOrInstance?: string | SentinelInstance,\n config?: ModuleFromNodeConfig,\n): [SentinelInstance | undefined, Error | undefined] => {\n const [mod, error] = useModuleFromNode(nameOrAddressOrInstance, config)\n const instance = asSentinelInstance(mod)\n if (mod && !instance) {\n const error = new Error(`Resolved module is not a SentinelInstance [${mod.config?.schema}:${mod.config?.name}:${mod.address}]`)\n console.error(error.message)\n return [undefined, error]\n }\n return [instance, error]\n}\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useModulesFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { isSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useSentinelsFromNode = (\n ids?: ModuleIdentifier[],\n config?: ModuleFromNodeConfig,\n): [SentinelInstance[] | null | undefined, Error | undefined] => {\n const [modules, error] = useModulesFromNode(ids, config)\n if (error) {\n return [null, error]\n }\n return modules\n ? [\n // eslint-disable-next-line unicorn/no-array-reduce\n modules.reduce<SentinelInstance[]>((prev, mod) => {\n if (isSentinelInstance(mod)) {\n prev.push(mod)\n }\n return prev\n }, []),\n undefined,\n ]\n : [modules, error]\n}\n","import type { WeakModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useWeakModuleFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { isSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useWeakSentinelFromNode = (\n nameOrAddressOrInstance?: string | SentinelInstance,\n config?: WeakModuleFromNodeConfig,\n): [WeakRef<SentinelInstance> | undefined, Error | undefined] => {\n return useWeakModuleFromNode<SentinelInstance>(nameOrAddressOrInstance, { identity: isSentinelInstance, ...config })\n}\n","import { exists } from '@xylabs/sdk-js'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useWeakModulesFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { asSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useWeakSentinelsFromNode = (\n ids?: ModuleIdentifier[],\n config?: ModuleFromNodeConfig,\n): [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined] => {\n const [modules, error] = useWeakModulesFromNode(ids, config)\n if (error) {\n return [null, error]\n }\n return [\n modules\n ?.map((mod) => {\n const instance = asSentinelInstance(mod?.deref())\n if (instance) {\n return new WeakRef(instance)\n }\n })\n .filter(exists) ?? [],\n undefined,\n ]\n}\n"],"mappings":";AACA,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAI3B,SAAgB,gBAAgB;;;ACLhC,SAAS,gBAAgB;AAEzB,SAAS,yBAAyB;AAc5B;AALC,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EAAU;AAAA,EAAK,GAAG;AACpB,MAAM;AACJ,SACE,oBAAC,qBAAkB,KAAW,GAAG,OAC/B,8BAAC,YAAS,SAAS,MAAM,WAAW,GAAG,GAAG,MAAK,SAAQ,SAAQ,YAAW,oBAE1E,GACF;AAEJ;;;ACrBA,SAAS,mBAAmB;AAG5B,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAcvB,SAEM,OAAAA,MAFN;AALC,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAK,GAAG;AAC5B,MAAM;AACJ,SACE,gBAAAA,KAAC,qBAAkB,KAAW,GAAG,OAC/B,+BAAC,eAAY,UAAS,QAAO,gBAAe,SAAQ,KAAK,GACtD;AAAA,aACG,gBAAAA,KAAC,gBAAa,OAAO,QAAQ,IAC7B;AAAA,IACH;AAAA,KACH,GACF;AAEJ;;;ACzBA,SAAS,wBAAwB;AAOxB,gBAAAC,YAAA;AAHF,IAAM,qBAAsF,CAAC;AAAA,EAClG;AAAA,EAAO;AAAA,EAAK,GAAG;AACjB,MAAM;AACJ,SA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B;AAEvC,SAAS,sBAAAC,2BAA0B;AAE5B,IAAM,2BAA2B,CACtC,KACA,WACwE;AACxE,QAAM,CAAC,SAAS,KAAK,IAAI,uBAAuB,KAAK,MAAM;AAC3D,MAAI,OAAO;AACT,WAAO,CAAC,MAAM,KAAK;AAAA,EACrB;AACA,SAAO;AAAA,IACL,SACI,IAAI,CAAC,QAAQ;AACb,YAAM,WAAWA,oBAAmB,KAAK,MAAM,CAAC;AAChD,UAAI,UAAU;AACZ,eAAO,IAAI,QAAQ,QAAQ;AAAA,MAC7B;AAAA,IACF,CAAC,EACA,OAAO,MAAM,KAAK,CAAC;AAAA,IACtB;AAAA,EACF;AACF;","names":["jsx","jsx","jsx","jsxs","useState","jsx","useState","sentinel","witnesses","error","isSentinelInstance","asSentinelInstance"]}
1
+ {"version":3,"sources":["../../src/components/Card/Card.tsx","../../src/components/Card/CardActions.tsx","../../src/components/Card/CardContent.tsx","../../src/components/Card/CardHeader.tsx","../../src/contexts/Context.ts","../../src/contexts/Provider.tsx","../../src/contexts/State.ts","../../src/contexts/use.ts","../../src/hooks/node/useSentinelFromNode.tsx","../../src/hooks/node/useSentinelsFromNode.tsx","../../src/hooks/node/useWeakSentinelFromNode.tsx","../../src/hooks/node/useWeakSentinelsFromNode.tsx"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React, { useState } from 'react'\n\nimport { SentinelCardActions } from './CardActions.tsx'\nimport { SentinelCardContent } from './CardContent.tsx'\nimport { SentinelCardHeader } from './CardHeader.tsx'\n\nexport type SentinelCardProps = CardProps\n & ModuleRenderProps<SentinelInstance> & {\n inPayloads?: Payload[]\n }\n\nexport const SentinelCard: React.FC<SentinelCardProps> = ({\n children, inPayloads, mod, ...props\n}) => {\n const [retry, setRetry] = useState(-1)\n const [report] = usePromise(async () => {\n if (retry >= 0) {\n return await mod?.report(inPayloads)\n }\n }, [mod, retry, inPayloads])\n return (\n <Card {...props}>\n <SentinelCardHeader mod={mod} />\n <SentinelCardContent mod={mod} report={report} />\n {children}\n <SentinelCardActions mod={mod} onReport={() => setRetry(retry + 1)} />\n </Card>\n )\n}\n","import type { CardActionsProps } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardActions } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport type SentinelCardActionsProps = ModuleRenderProps<SentinelInstance>\n & CardActionsProps & {\n onReport?: (mod?: SentinelInstance) => void\n }\n\nexport const SentinelCardActions: React.FC<SentinelCardActionsProps> = ({\n onReport, mod, ...props\n}) => {\n return (\n <ModuleCardActions mod={mod} {...props}>\n <ButtonEx onClick={() => onReport?.(mod)} size=\"small\" variant=\"outlined\">\n Report\n </ButtonEx>\n </ModuleCardActions>\n )\n}\n","import type { CardContentProps } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardContent } from '@xyo-network/react-module'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport type SentinelCardContentProps = ModuleRenderProps<SentinelInstance>\n & CardContentProps & {\n report?: Payload[]\n }\n\nexport const SentinelCardContent: React.FC<SentinelCardContentProps> = ({\n children, report, mod, ...props\n}) => {\n return (\n <ModuleCardContent mod={mod} {...props}>\n <FlexGrowRow\n sx={{\n flexWrap: 'wrap',\n justifyContent: 'start',\n gap: 2,\n }}\n >\n {report\n ? <JsonViewerEx value={report} />\n : null}\n {children}\n </FlexGrowRow>\n </ModuleCardContent>\n )\n}\n","import type { CardHeaderProps } from '@mui/material'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardHeader } from '@xyo-network/react-module'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport React from 'react'\n\nexport const SentinelCardHeader: React.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps> = ({\n title, mod, ...props\n}) => {\n return <ModuleCardHeader mod={mod} title={title ?? mod?.config.name ?? 'Sentinel'} {...props} />\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { SentinelContextState } from './State.ts'\n\nexport const SentinelContext = createContextEx<SentinelContextState>()\n","import { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { useWitnessesFromNode } from '@xyo-network/react-witness'\nimport { MemorySentinel } from '@xyo-network/sentinel-memory'\nimport type { SentinelConfig } from '@xyo-network/sentinel-model'\nimport { SentinelConfigSchema } from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\nimport { asWitnessInstance } from '@xyo-network/witness-model'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { SentinelContext } from './Context.ts'\nimport type { SentinelContextState, SentinelReportProgress } from './State.ts'\nimport { SentinelReportStatus } from './State.ts'\n\nexport interface SentinelProviderProps {\n /** Account used by the sentinel for signing */\n account: AccountInstance\n /** @deprecated - sentinel no longer uses archive but relies on an archivist */\n archive?: string\n archivist?: string\n ids?: ModuleIdentifier[]\n name?: string\n required?: boolean\n witnesses?: WitnessInstance[]\n}\n\nexport const SentinelProvider: React.FC<PropsWithChildren<SentinelProviderProps>> = ({\n account, archivist, children, ids, name, required = false,\n}) => {\n const [sentinel, setSentinel] = useState<MemorySentinel>()\n const [history, setHistory] = useState<BoundWitness[]>()\n const [progress, setProgress] = useState<SentinelReportProgress>({})\n const [status, setStatus] = useState<SentinelReportStatus>(SentinelReportStatus.Idle)\n const [reportingErrors, setReportingErrors] = useState<Error[]>()\n const [witnesses] = useWitnessesFromNode(ids)\n\n useAsyncEffect(\n\n async (mounted) => {\n const sentinel = await MemorySentinel.create({\n account,\n config: {\n archivists: archivist ? [archivist] : undefined,\n name,\n\n schema: SentinelConfigSchema,\n synchronous: true,\n\n tasks: witnesses?.map(mod => ({ mod: mod.address })),\n } as SentinelConfig,\n })\n const offCallbacks: (() => void)[] = [\n sentinel.on('reportEnd', ({ mod, outPayloads }) => {\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses: progress.witnesses,\n })\n setStatus(outPayloads?.length ? SentinelReportStatus.Succeeded : SentinelReportStatus.Failed)\n setReportingErrors([new Error(`Witness failed [${mod?.config?.name ?? mod.address}]`)])\n }\n }),\n sentinel.on('reportStart', () => {\n if (mounted()) {\n setProgress({ archivists: {}, witnesses: {} })\n setStatus(SentinelReportStatus.Started)\n }\n }),\n ]\n if (witnesses)\n for (const witness of witnesses) {\n offCallbacks.push(\n witness.on('observeEnd', ({ mod, outPayloads }) => {\n const witnesses = progress.witnesses ?? {}\n witnesses[witness.address] = {\n status: outPayloads?.length ? SentinelReportStatus.Succeeded : SentinelReportStatus.Failed,\n witness: asWitnessInstance(mod, () => `Module is not a witness [${mod.id}]`, { required: true }),\n }\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses,\n })\n }\n }),\n witness.on('observeStart', ({ mod }) => {\n const witnesses = progress.witnesses ?? {}\n witnesses[witness.address] = {\n status: SentinelReportStatus.Started,\n witness: asWitnessInstance(mod, () => `Module is not a witness [${mod.id}]`, { required: true }),\n }\n if (mounted()) {\n setProgress({\n archivists: progress.archivists,\n witnesses,\n })\n }\n }),\n )\n }\n setSentinel(sentinel as MemorySentinel)\n setHistory(sentinel?.history as BoundWitness[])\n return () => {\n // unsubscribe from events\n for (const callback of offCallbacks) {\n callback()\n }\n }\n },\n\n [account, archivist, witnesses],\n )\n\n const value: SentinelContextState = useMemo(() => ({\n history, progress, provided: true, reportingErrors, sentinel, status,\n }), [history, progress, reportingErrors, sentinel, status])\n\n return !required || sentinel\n\n ? (\n <SentinelContext value={value}>\n {children}\n </SentinelContext>\n )\n : null\n}\n","import type { ContextExState } from '@xylabs/react-shared'\nimport type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\nimport type { ArchivistModuleInstance } from '@xyo-network/archivist-model'\nimport type { BoundWitness } from '@xyo-network/boundwitness-model'\nimport type { SentinelModule } from '@xyo-network/sentinel-model'\nimport type { WitnessModule } from '@xyo-network/witness-model'\n\nexport const SentinelReportStatus = Enum({\n Idle: 'idle',\n Queued: 'queued',\n Started: 'started',\n Succeeded: 'succeeded',\n Failed: 'failed',\n})\n\nexport type SentinelReportStatus = EnumValue<typeof SentinelReportStatus>\n\nexport interface SentinelWitnessReportProgress {\n status: SentinelReportStatus\n witness: WitnessModule\n}\n\nexport interface SentinelArchivistApiReportProgress {\n archivist: ArchivistModuleInstance\n status: SentinelReportStatus\n}\n\nexport interface SentinelReportProgress {\n archivists?: Record<string, SentinelArchivistApiReportProgress>\n witnesses?: Record<string, SentinelWitnessReportProgress>\n}\n\nexport type SentinelContextState = ContextExState<{\n history?: BoundWitness[]\n progress?: SentinelReportProgress\n reportingErrors?: Error[]\n sentinel?: SentinelModule\n status?: SentinelReportStatus\n}>\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { SentinelContext } from './Context.ts'\n\nexport const useSentinelContext = () => {\n const {\n sentinel, history, progress, reportingErrors, status,\n } = useContextEx(SentinelContext, 'Sentinel')\n return {\n history, progress, reportingErrors, sentinel, status,\n }\n}\n","import type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useModuleFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { asSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useSentinelFromNode = (\n nameOrAddressOrInstance?: string | SentinelInstance,\n config?: ModuleFromNodeConfig,\n): [SentinelInstance | undefined, Error | undefined] => {\n const [mod, error] = useModuleFromNode(nameOrAddressOrInstance, config)\n const instance = asSentinelInstance(mod)\n if (mod && !instance) {\n const error = new Error(`Resolved module is not a SentinelInstance [${mod.config?.schema}:${mod.config?.name}:${mod.address}]`)\n console.error(error.message)\n return [undefined, error]\n }\n return [instance, error]\n}\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useModulesFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { isSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useSentinelsFromNode = (\n ids?: ModuleIdentifier[],\n config?: ModuleFromNodeConfig,\n): [SentinelInstance[] | null | undefined, Error | undefined] => {\n const [modules, error] = useModulesFromNode(ids, config)\n if (error) {\n return [null, error]\n }\n return modules\n ? [\n // eslint-disable-next-line unicorn/no-array-reduce\n modules.reduce<SentinelInstance[]>((prev, mod) => {\n if (isSentinelInstance(mod)) {\n prev.push(mod)\n }\n return prev\n }, []),\n undefined,\n ]\n : [modules, error]\n}\n","import type { WeakModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useWeakModuleFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { isSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useWeakSentinelFromNode = (\n nameOrAddressOrInstance?: string | SentinelInstance,\n config?: WeakModuleFromNodeConfig,\n): [WeakRef<SentinelInstance> | undefined, Error | undefined] => {\n return useWeakModuleFromNode<SentinelInstance>(nameOrAddressOrInstance, { identity: isSentinelInstance, ...config })\n}\n","import { exists } from '@xylabs/sdk-js'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useWeakModulesFromNode } from '@xyo-network/react-node'\nimport type { SentinelInstance } from '@xyo-network/sentinel-model'\nimport { asSentinelInstance } from '@xyo-network/sentinel-model'\n\nexport const useWeakSentinelsFromNode = (\n ids?: ModuleIdentifier[],\n config?: ModuleFromNodeConfig,\n): [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined] => {\n const [modules, error] = useWeakModulesFromNode(ids, config)\n if (error) {\n return [null, error]\n }\n return [\n modules\n ?.map((mod) => {\n const instance = asSentinelInstance(mod?.deref())\n if (instance) {\n return new WeakRef(instance)\n }\n })\n .filter(exists) ?? [],\n undefined,\n ]\n}\n"],"mappings":";AACA,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAI3B,SAAgB,gBAAgB;;;ACLhC,SAAS,gBAAgB;AAEzB,SAAS,yBAAyB;AAc5B;AALC,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EAAU;AAAA,EAAK,GAAG;AACpB,MAAM;AACJ,SACE,oBAAC,qBAAkB,KAAW,GAAG,OAC/B,8BAAC,YAAS,SAAS,MAAM,WAAW,GAAG,GAAG,MAAK,SAAQ,SAAQ,YAAW,oBAE1E,GACF;AAEJ;;;ACrBA,SAAS,mBAAmB;AAG5B,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAcvB,SAQM,OAAAA,MARN;AALC,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAK,GAAG;AAC5B,MAAM;AACJ,SACE,gBAAAA,KAAC,qBAAkB,KAAW,GAAG,OAC/B;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,gBAAgB;AAAA,QAChB,KAAK;AAAA,MACP;AAAA,MAEC;AAAA,iBACG,gBAAAA,KAAC,gBAAa,OAAO,QAAQ,IAC7B;AAAA,QACH;AAAA;AAAA;AAAA,EACH,GACF;AAEJ;;;AC/BA,SAAS,wBAAwB;AAOxB,gBAAAC,YAAA;AAHF,IAAM,qBAAsF,CAAC;AAAA,EAClG;AAAA,EAAO;AAAA,EAAK,GAAG;AACjB,MAAM;AACJ,SAAO,gBAA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,SAAS,sBAAAC,2BAA0B;AAE5B,IAAM,2BAA2B,CACtC,KACA,WACwE;AACxE,QAAM,CAAC,SAAS,KAAK,IAAI,uBAAuB,KAAK,MAAM;AAC3D,MAAI,OAAO;AACT,WAAO,CAAC,MAAM,KAAK;AAAA,EACrB;AACA,SAAO;AAAA,IACL,SACI,IAAI,CAAC,QAAQ;AACb,YAAM,WAAWA,oBAAmB,KAAK,MAAM,CAAC;AAChD,UAAI,UAAU;AACZ,eAAO,IAAI,QAAQ,QAAQ;AAAA,MAC7B;AAAA,IACF,CAAC,EACA,OAAO,MAAM,KAAK,CAAC;AAAA,IACtB;AAAA,EACF;AACF;","names":["jsx","jsx","jsx","jsxs","useState","jsx","useState","sentinel","witnesses","error","isSentinelInstance","asSentinelInstance"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-sentinel",
3
- "version": "7.6.2",
3
+ "version": "8.0.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -41,19 +41,19 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@xyo-network/react-node": "~7.6.2",
45
- "@xyo-network/react-payload-raw-info": "~7.6.2",
46
- "@xyo-network/react-witness": "~7.6.2",
47
- "@xyo-network/react-module": "~7.6.2"
44
+ "@xyo-network/react-module": "~8.0.0",
45
+ "@xyo-network/react-payload-raw-info": "~8.0.0",
46
+ "@xyo-network/react-witness": "~8.0.0",
47
+ "@xyo-network/react-node": "~8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@bitauth/libauth": "~3.0.0",
51
51
  "@emotion/react": "^11.14.0",
52
52
  "@emotion/styled": "^11.14.1",
53
- "@mui/icons-material": "^7.3.10",
54
- "@mui/material": "^7.3.10",
55
- "@mui/system": "^7.3.10",
56
- "@mui/x-tree-view": "~8.27.2",
53
+ "@mui/icons-material": "~9.0",
54
+ "@mui/material": "~9.0",
55
+ "@mui/system": "~9.0",
56
+ "@mui/x-tree-view": "~9.1",
57
57
  "@opentelemetry/api": "^1.9.1",
58
58
  "@opentelemetry/sdk-trace-base": "^2.7.1",
59
59
  "@react-spring/web": "~10.0.3",
@@ -62,51 +62,51 @@
62
62
  "@storybook/react-vite": "~10.3.6",
63
63
  "@textea/json-viewer": "~4.0.1",
64
64
  "@types/react": "^19.2.14",
65
- "@xylabs/pixel": "~5.1.1",
66
- "@xylabs/react-async-effect": "~7.2.3",
67
- "@xylabs/react-button": "~7.2.3",
68
- "@xylabs/react-crypto": "~7.2.3",
69
- "@xylabs/react-flexbox": "~7.2.3",
70
- "@xylabs/react-hooks": "~7.2.3",
71
- "@xylabs/react-link": "~7.2.3",
72
- "@xylabs/react-promise": "~7.2.3",
73
- "@xylabs/react-shared": "~7.2.3",
74
- "@xylabs/react-theme": "~7.2.3",
75
- "@xylabs/sdk-js": "^5.1.1",
76
- "@xylabs/threads": "~5.1.1",
77
- "@xylabs/toolchain": "~7.13.7",
78
- "@xylabs/tsconfig": "^7.13.7",
79
- "@xylabs/tsconfig-dom": "^7.13.7",
80
- "@xylabs/tsconfig-react": "~7.13.7",
81
- "@xyo-network/account": "~5.6.1",
82
- "@xyo-network/account-model": "^5.6.2",
83
- "@xyo-network/archivist-model": "^5.6.3",
84
- "@xyo-network/boundwitness-builder": "^5.6.1",
85
- "@xyo-network/boundwitness-model": "^5.6.2",
86
- "@xyo-network/boundwitness-validator": "^5.6.1",
87
- "@xyo-network/boundwitness-wrapper": "~5.6.1",
88
- "@xyo-network/config-payload-plugin": "~5.6.2",
89
- "@xyo-network/diviner-abstract": "^5.6.3",
90
- "@xyo-network/diviner-model": "^5.6.3",
91
- "@xyo-network/evm-call-witness": "~5.5.1",
92
- "@xyo-network/manifest": "~5.6.1",
93
- "@xyo-network/manifest-model": "~5.6.2",
94
- "@xyo-network/module-abstract": "^5.6.3",
95
- "@xyo-network/module-factory-locator": "~5.6.3",
96
- "@xyo-network/module-model": "^5.6.3",
97
- "@xyo-network/node-memory": "~5.6.3",
98
- "@xyo-network/node-model": "^5.6.3",
65
+ "@xylabs/pixel": "~5.1.2",
66
+ "@xylabs/react-async-effect": "~8.0",
67
+ "@xylabs/react-button": "~8.0",
68
+ "@xylabs/react-crypto": "~8.0",
69
+ "@xylabs/react-flexbox": "~8.0",
70
+ "@xylabs/react-hooks": "~8.0",
71
+ "@xylabs/react-link": "~8.0",
72
+ "@xylabs/react-promise": "~8.0",
73
+ "@xylabs/react-shared": "~8.0",
74
+ "@xylabs/react-theme": "~8.0",
75
+ "@xylabs/sdk-js": "^5.1.2",
76
+ "@xylabs/threads": "~5.1.2",
77
+ "@xylabs/toolchain": "~7.13.22",
78
+ "@xylabs/tsconfig": "^7.13.22",
79
+ "@xylabs/tsconfig-dom": "^7.13.22",
80
+ "@xylabs/tsconfig-react": "~7.13.22",
81
+ "@xyo-network/account": "~5.6.2",
82
+ "@xyo-network/account-model": "^5.6.3",
83
+ "@xyo-network/archivist-model": "^5.6.4",
84
+ "@xyo-network/boundwitness-builder": "^5.6.2",
85
+ "@xyo-network/boundwitness-model": "^5.6.3",
86
+ "@xyo-network/boundwitness-validator": "^5.6.2",
87
+ "@xyo-network/boundwitness-wrapper": "~5.6.2",
88
+ "@xyo-network/config-payload-plugin": "~5.6.3",
89
+ "@xyo-network/diviner-abstract": "^5.6.4",
90
+ "@xyo-network/diviner-model": "^5.6.4",
91
+ "@xyo-network/evm-call-witness": "~5.5.2",
92
+ "@xyo-network/manifest": "~5.6.2",
93
+ "@xyo-network/manifest-model": "~5.6.3",
94
+ "@xyo-network/manifest-wrapper": "~5.6.2",
95
+ "@xyo-network/module-factory-locator": "~5.6.4",
96
+ "@xyo-network/module-model": "^5.6.4",
97
+ "@xyo-network/node-memory": "~5.6.4",
98
+ "@xyo-network/node-model": "^5.6.4",
99
99
  "@xyo-network/open-zeppelin-typechain": "^4.1.3",
100
- "@xyo-network/payload-builder": "^5.6.1",
101
- "@xyo-network/payload-model": "^5.6.2",
102
- "@xyo-network/payload-wrapper": "~5.6.1",
103
- "@xyo-network/query-payload-plugin": "~5.6.2",
104
- "@xyo-network/sentinel-memory": "^5.6.3",
105
- "@xyo-network/sentinel-model": "^5.6.3",
106
- "@xyo-network/wallet": "~5.6.1",
107
- "@xyo-network/wallet-model": "^5.6.2",
108
- "@xyo-network/witness-evm-abstract": "^5.6.3",
109
- "@xyo-network/witness-model": "^5.6.3",
100
+ "@xyo-network/payload-builder": "^5.6.2",
101
+ "@xyo-network/payload-model": "^5.6.3",
102
+ "@xyo-network/payload-wrapper": "~5.6.2",
103
+ "@xyo-network/query-payload-plugin": "~5.6.3",
104
+ "@xyo-network/sentinel-memory": "^5.6.4",
105
+ "@xyo-network/sentinel-model": "^5.6.4",
106
+ "@xyo-network/wallet": "~5.6.2",
107
+ "@xyo-network/wallet-model": "^5.6.3",
108
+ "@xyo-network/witness-evm-abstract": "^5.6.4",
109
+ "@xyo-network/witness-model": "^5.6.4",
110
110
  "async-mutex": "^0.5.0",
111
111
  "bn.js": "^5.2.3",
112
112
  "bowser": "^2.14.1",
@@ -124,91 +124,91 @@
124
124
  "observable-fns": "~0.6.1",
125
125
  "pako": "^2.1.0",
126
126
  "query-string": "~9.3.1",
127
- "react": "^19.2.5",
128
- "react-dom": "^19.2.5",
129
- "react-is": "^19.2.5",
127
+ "react": "^19.2.6",
128
+ "react-dom": "^19.2.6",
129
+ "react-is": "^19.2.6",
130
130
  "react-router-dom": "^7.15.0",
131
131
  "recharts": "~3.8.1",
132
132
  "spark-md5": "~3.0.2",
133
133
  "storybook": "^10.3.6",
134
134
  "typescript": "^5.9.3",
135
- "viem": "~2.48.8",
136
- "vite": "^8.0.10",
135
+ "viem": "~2.48.11",
136
+ "vite": "^8.0.11",
137
137
  "wasm-feature-detect": "~1.8.0",
138
138
  "zod": "^4.4.3"
139
139
  },
140
140
  "peerDependencies": {
141
- "@bitauth/libauth": ">=3.0.0 <3.1",
142
- "@emotion/react": ">=11.14.0 <12",
143
- "@emotion/styled": ">=11.14.1 <12",
144
- "@mui/icons-material": ">=7.3.10 <8",
145
- "@mui/material": ">=7.3.10 <8",
146
- "@mui/system": ">=7.3.10 <8",
147
- "@mui/x-tree-view": ">=8.27.2 <8.28",
148
- "@opentelemetry/api": ">=1.9.1 <2",
149
- "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
150
- "@react-spring/web": ">=10.0.3 <10.1",
151
- "@scure/base": ">=2.2.0 <2.3",
152
- "@textea/json-viewer": ">=4.0.1 <4.1",
153
- "@xylabs/pixel": ">=5.1.1 <5.2",
154
- "@xylabs/react-async-effect": ">=7.2.3 <7.3",
155
- "@xylabs/react-button": ">=7.2.3 <7.3",
156
- "@xylabs/react-crypto": ">=7.2.3 <7.3",
157
- "@xylabs/react-flexbox": ">=7.2.3 <7.3",
158
- "@xylabs/react-hooks": ">=7.2.3 <7.3",
159
- "@xylabs/react-link": ">=7.2.3 <7.3",
160
- "@xylabs/react-promise": ">=7.2.3 <7.3",
161
- "@xylabs/react-shared": ">=7.2.3 <7.3",
162
- "@xylabs/react-theme": ">=7.2.3 <7.3",
163
- "@xylabs/sdk-js": ">=5.1.1 <6",
164
- "@xylabs/threads": ">=5.1.1 <5.2",
165
- "@xyo-network/account": ">=5.6.1 <5.7",
166
- "@xyo-network/account-model": ">=5.6.2 <6",
167
- "@xyo-network/archivist-model": ">=5.6.3 <6",
168
- "@xyo-network/boundwitness-builder": ">=5.6.1 <6",
169
- "@xyo-network/boundwitness-model": ">=5.6.2 <6",
170
- "@xyo-network/boundwitness-validator": ">=5.6.1 <6",
171
- "@xyo-network/boundwitness-wrapper": ">=5.6.1 <5.7",
172
- "@xyo-network/config-payload-plugin": ">=5.6.2 <5.7",
173
- "@xyo-network/diviner-model": ">=5.6.3 <6",
174
- "@xyo-network/manifest-model": ">=5.6.2 <5.7",
175
- "@xyo-network/module-abstract": ">=5.6.3 <6",
176
- "@xyo-network/module-model": ">=5.6.3 <6",
177
- "@xyo-network/node-memory": ">=5.6.3 <5.7",
178
- "@xyo-network/node-model": ">=5.6.3 <6",
179
- "@xyo-network/payload-builder": ">=5.6.1 <6",
180
- "@xyo-network/payload-model": ">=5.6.2 <6",
181
- "@xyo-network/payload-wrapper": ">=5.6.1 <5.7",
182
- "@xyo-network/query-payload-plugin": ">=5.6.2 <5.7",
183
- "@xyo-network/sentinel-memory": ">=5.6.3 <6",
184
- "@xyo-network/sentinel-model": ">=5.6.3 <6",
185
- "@xyo-network/wallet-model": ">=5.6.2 <6",
186
- "@xyo-network/witness-model": ">=5.6.3 <6",
187
- "async-mutex": ">=0.5.0 <1",
188
- "bn.js": ">=5.2.3 <6",
189
- "bowser": ">=2.14.1 <3",
190
- "buffer": ">=6.0.3 <7",
191
- "chalk": ">=5.6.2 <6",
192
- "debug": ">=4.4.3 <4.5",
193
- "ethers": ">=6.16.0 <7",
194
- "fast-deep-equal": ">=3.1.3 <3.2",
195
- "hash-wasm": ">=4.12.0 <4.13",
196
- "js-cookie": ">=3.0.5 <3.1",
197
- "lru-cache": ">=11.3.6 <12",
198
- "md5": ">=2.3.0 <2.4",
199
- "mixpanel-browser": ">=2.78.0 <2.79",
200
- "observable-fns": ">=0.6.1 <0.7",
201
- "pako": ">=2.1.0 <3",
202
- "query-string": ">=9.3.1 <9.4",
203
- "react": ">=19.2.5 <20",
204
- "react-dom": ">=19.2.5 <20",
205
- "react-is": ">=19.2.5 <20",
206
- "react-router-dom": ">=7.15.0 <8",
207
- "recharts": ">=3.8.1 <3.9",
208
- "spark-md5": ">=3.0.2 <3.1",
209
- "viem": ">=2.48.8 <2.49",
210
- "wasm-feature-detect": ">=1.8.0 <1.9",
211
- "zod": ">=4.4.3 <5"
141
+ "@bitauth/libauth": "~3.0",
142
+ "@emotion/react": "^11.14",
143
+ "@emotion/styled": "^11.14",
144
+ "@mui/icons-material": "~9.0",
145
+ "@mui/material": "~9.0",
146
+ "@mui/system": "~9.0",
147
+ "@mui/x-tree-view": "~9.1",
148
+ "@opentelemetry/api": "^1.9",
149
+ "@opentelemetry/sdk-trace-base": "^2.7",
150
+ "@react-spring/web": "~10.0",
151
+ "@scure/base": "~2.2",
152
+ "@textea/json-viewer": "~4.0",
153
+ "@xylabs/pixel": "~5.1",
154
+ "@xylabs/react-async-effect": "~8.0",
155
+ "@xylabs/react-button": "~8.0",
156
+ "@xylabs/react-crypto": "~8.0",
157
+ "@xylabs/react-flexbox": "~8.0",
158
+ "@xylabs/react-hooks": "~8.0",
159
+ "@xylabs/react-link": "~8.0",
160
+ "@xylabs/react-promise": "~8.0",
161
+ "@xylabs/react-shared": "~8.0",
162
+ "@xylabs/react-theme": "~8.0",
163
+ "@xylabs/sdk-js": "^5.1",
164
+ "@xylabs/threads": "~5.1",
165
+ "@xyo-network/account": "~5.6",
166
+ "@xyo-network/account-model": "^5.6",
167
+ "@xyo-network/archivist-model": "^5.6",
168
+ "@xyo-network/boundwitness-builder": "^5.6",
169
+ "@xyo-network/boundwitness-model": "^5.6",
170
+ "@xyo-network/boundwitness-validator": "^5.6",
171
+ "@xyo-network/boundwitness-wrapper": "~5.6",
172
+ "@xyo-network/config-payload-plugin": "~5.6",
173
+ "@xyo-network/diviner-model": "^5.6",
174
+ "@xyo-network/manifest-model": "~5.6",
175
+ "@xyo-network/module-model": "^5.6",
176
+ "@xyo-network/node-memory": "~5.6",
177
+ "@xyo-network/node-model": "^5.6",
178
+ "@xyo-network/payload-builder": "^5.6",
179
+ "@xyo-network/payload-model": "^5.6",
180
+ "@xyo-network/payload-wrapper": "~5.6",
181
+ "@xyo-network/query-payload-plugin": "~5.6",
182
+ "@xyo-network/sentinel-memory": "^5.6",
183
+ "@xyo-network/sentinel-model": "^5.6",
184
+ "@xyo-network/wallet-model": "^5.6",
185
+ "@xyo-network/witness-model": "^5.6",
186
+ "async-mutex": "^0.5",
187
+ "bn.js": "^5.2",
188
+ "bowser": "^2.14",
189
+ "buffer": "^6.0",
190
+ "chalk": "^5.6",
191
+ "debug": "~4.4",
192
+ "ethers": "^6.16",
193
+ "fast-deep-equal": "~3.1",
194
+ "hash-wasm": "~4.12",
195
+ "js-cookie": "~3.0",
196
+ "lru-cache": "^11.3",
197
+ "md5": "~2.3",
198
+ "mixpanel-browser": "~2.78",
199
+ "observable-fns": "~0.6",
200
+ "pako": "^2.1",
201
+ "query-string": "~9.3",
202
+ "react": "^19.2",
203
+ "react-dom": "^19.2",
204
+ "react-is": "^19.2",
205
+ "react-router-dom": "^7.15",
206
+ "recharts": "~3.8",
207
+ "spark-md5": "~3.0",
208
+ "typescript": "^5.9",
209
+ "viem": "~2.48",
210
+ "wasm-feature-detect": "~1.8",
211
+ "zod": "^4.4"
212
212
  },
213
213
  "peerDependenciesMeta": {
214
214
  "ethers": {