@xyo-network/react-sentinel 9.0.1 → 9.0.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.
Files changed (26) hide show
  1. package/dist/browser/components/Card/Card.d.ts +1 -2
  2. package/dist/browser/components/Card/Card.d.ts.map +1 -1
  3. package/dist/browser/components/Card/CardActions.d.ts +1 -1
  4. package/dist/browser/components/Card/CardActions.d.ts.map +1 -1
  5. package/dist/browser/components/Card/CardContent.d.ts +1 -2
  6. package/dist/browser/components/Card/CardContent.d.ts.map +1 -1
  7. package/dist/browser/components/Card/CardHeader.d.ts +1 -1
  8. package/dist/browser/components/Card/CardHeader.d.ts.map +1 -1
  9. package/dist/browser/contexts/Context.d.ts +6 -6
  10. package/dist/browser/contexts/Provider.d.ts +1 -3
  11. package/dist/browser/contexts/Provider.d.ts.map +1 -1
  12. package/dist/browser/contexts/State.d.ts +1 -4
  13. package/dist/browser/contexts/State.d.ts.map +1 -1
  14. package/dist/browser/contexts/use.d.ts +4 -8
  15. package/dist/browser/contexts/use.d.ts.map +1 -1
  16. package/dist/browser/hooks/node/useSentinelFromNode.d.ts +1 -1
  17. package/dist/browser/hooks/node/useSentinelFromNode.d.ts.map +1 -1
  18. package/dist/browser/hooks/node/useSentinelsFromNode.d.ts +1 -2
  19. package/dist/browser/hooks/node/useSentinelsFromNode.d.ts.map +1 -1
  20. package/dist/browser/hooks/node/useWeakSentinelFromNode.d.ts +1 -1
  21. package/dist/browser/hooks/node/useWeakSentinelFromNode.d.ts.map +1 -1
  22. package/dist/browser/hooks/node/useWeakSentinelsFromNode.d.ts +1 -2
  23. package/dist/browser/hooks/node/useWeakSentinelsFromNode.d.ts.map +1 -1
  24. package/dist/browser/index.mjs +9 -7
  25. package/dist/browser/index.mjs.map +2 -2
  26. package/package.json +27 -75
@@ -1,7 +1,6 @@
1
1
  import type { CardProps } from '@mui/material';
2
- import type { Payload } from '@xyo-network/payload-model';
3
2
  import type { ModuleRenderProps } from '@xyo-network/react-module';
4
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
3
+ import type { Payload, SentinelInstance } from '@xyo-network/sdk-js';
5
4
  import React from 'react';
6
5
  export type SentinelCardProps = CardProps & ModuleRenderProps<SentinelInstance> & {
7
6
  inPayloads?: Payload[];
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GACrC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IACtC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CAAA;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiBpD,CAAA"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GACrC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IACtC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CAAA;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiBpD,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { CardActionsProps } from '@mui/material';
2
2
  import type { ModuleRenderProps } from '@xyo-network/react-module';
3
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
3
+ import type { SentinelInstance } from '@xyo-network/sdk-js';
4
4
  import React from 'react';
5
5
  export type SentinelCardActionsProps = ModuleRenderProps<SentinelInstance> & CardActionsProps & {
6
6
  onReport?: (mod?: SentinelInstance) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,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,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAC5C,CAAA;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAUlE,CAAA"}
1
+ {"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GACtE,gBAAgB,GAAG;IACnB,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAA;CAC5C,CAAA;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAUlE,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import type { CardContentProps } from '@mui/material';
2
- import type { Payload } from '@xyo-network/payload-model';
3
2
  import type { ModuleRenderProps } from '@xyo-network/react-module';
4
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
3
+ import type { Payload, SentinelInstance } from '@xyo-network/sdk-js';
5
4
  import React from 'react';
6
5
  export type SentinelCardContentProps = ModuleRenderProps<SentinelInstance> & CardContentProps & {
7
6
  report?: Payload[];
@@ -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,CAmBlE,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,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAGlE,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpE,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"}
@@ -1,6 +1,6 @@
1
1
  import type { CardHeaderProps } from '@mui/material';
2
2
  import type { ModuleRenderProps } from '@xyo-network/react-module';
3
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
3
+ import type { SentinelInstance } from '@xyo-network/sdk-js';
4
4
  import React from 'react';
5
5
  export declare const SentinelCardHeader: React.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps>;
6
6
  //# sourceMappingURL=CardHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,eAAe,CAI9F,CAAA"}
1
+ {"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,eAAe,CAI9F,CAAA"}
@@ -1,24 +1,24 @@
1
1
  export declare const SentinelContext: import("react").Context<({
2
- history?: import("@xyo-network/boundwitness-model").BoundWitness[];
2
+ history?: import("@xyo-network/sdk-protocol-js").BoundWitness[];
3
3
  progress?: import("./State.ts").SentinelReportProgress;
4
4
  reportingErrors?: Error[];
5
- sentinel?: import("@xyo-network/sentinel-model").SentinelModule;
5
+ sentinel?: import("@xyo-network/sdk-js").SentinelModule;
6
6
  status?: import("./State.ts").SentinelReportStatus;
7
7
  } & {
8
8
  provided: true;
9
9
  }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
10
- history?: import("@xyo-network/boundwitness-model").BoundWitness[];
10
+ history?: import("@xyo-network/sdk-protocol-js").BoundWitness[];
11
11
  progress?: import("./State.ts").SentinelReportProgress;
12
12
  reportingErrors?: Error[];
13
- sentinel?: import("@xyo-network/sentinel-model").SentinelModule;
13
+ sentinel?: import("@xyo-network/sdk-js").SentinelModule;
14
14
  status?: import("./State.ts").SentinelReportStatus;
15
15
  }>, never> & {
16
16
  provided: false;
17
17
  }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
18
- history?: import("@xyo-network/boundwitness-model").BoundWitness[];
18
+ history?: import("@xyo-network/sdk-protocol-js").BoundWitness[];
19
19
  progress?: import("./State.ts").SentinelReportProgress;
20
20
  reportingErrors?: Error[];
21
- sentinel?: import("@xyo-network/sentinel-model").SentinelModule;
21
+ sentinel?: import("@xyo-network/sdk-js").SentinelModule;
22
22
  status?: import("./State.ts").SentinelReportStatus;
23
23
  }>, never> & {
24
24
  provided: false;
@@ -1,6 +1,4 @@
1
- import type { AccountInstance } from '@xyo-network/account-model';
2
- import type { ModuleIdentifier } from '@xyo-network/module-model';
3
- import type { WitnessInstance } from '@xyo-network/witness-model';
1
+ import type { AccountInstance, ModuleIdentifier, WitnessInstance } from '@xyo-network/sdk-js';
4
2
  import type { PropsWithChildren } from 'react';
5
3
  import React from 'react';
6
4
  export interface SentinelProviderProps {
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAKjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAMhD,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,eAAe,EAAE,CAAA;CAC9B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAmG/E,CAAA"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAAgB,gBAAgB,EAAkB,eAAe,EACjF,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAMhD,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,eAAe,EAAE,CAAA;CAC9B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAmG/E,CAAA"}
@@ -1,10 +1,7 @@
1
1
  import type { ContextExState } from '@xylabs/react-shared';
2
2
  import type { EnumValue } from '@xylabs/sdk-js';
3
3
  import { Enum } from '@xylabs/sdk-js';
4
- import type { ArchivistModuleInstance } from '@xyo-network/archivist-model';
5
- import type { BoundWitness } from '@xyo-network/boundwitness-model';
6
- import type { SentinelModule } from '@xyo-network/sentinel-model';
7
- import type { WitnessModule } from '@xyo-network/witness-model';
4
+ import type { ArchivistModuleInstance, BoundWitness, SentinelModule, WitnessModule } from '@xyo-network/sdk-js';
8
5
  export declare const SentinelReportStatus: Enum<{
9
6
  Idle: "idle";
10
7
  Queued: "queued";
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/contexts/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAA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BAAoB;;;;;;EAM/B,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEzE,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,oBAAoB,CAAA;IAC5B,OAAO,EAAE,aAAa,CAAA;CACvB;AAED,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAA;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAA;CAC1D;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;IAChD,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,sBAAsB,CAAA;IACjC,eAAe,CAAC,EAAE,KAAK,EAAE,CAAA;IACzB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,MAAM,CAAC,EAAE,oBAAoB,CAAA;CAC9B,CAAC,CAAA"}
@@ -3,20 +3,16 @@ export declare const useSentinelContext: () => {
3
3
  schema: "network.xyo.boundwitness" & {
4
4
  readonly __schema: true;
5
5
  };
6
- addresses: ((Lowercase<string> & {
7
- readonly __hex: true;
8
- } & {
9
- readonly __address: true;
10
- }) | (Lowercase<string> & {
6
+ addresses: (import("@xyo-network/sdk-protocol-js").XyoQuant1Address | (Lowercase<string> & {
11
7
  readonly __hex: true;
12
8
  } & {
13
9
  readonly __address: true;
14
10
  }))[];
15
11
  payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
16
- payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
12
+ payload_schemas: import("@xyo-network/sdk-protocol-js").BrandedSchema<string>[];
17
13
  previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
18
14
  $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
19
- $destination?: (Lowercase<string> & {
15
+ $destination?: import("@xyo-network/sdk-protocol-js").XyoQuant1Address | (Lowercase<string> & {
20
16
  readonly __hex: true;
21
17
  } & {
22
18
  readonly __address: true;
@@ -25,7 +21,7 @@ export declare const useSentinelContext: () => {
25
21
  }[] | undefined;
26
22
  progress: import("./State.ts").SentinelReportProgress | undefined;
27
23
  reportingErrors: Error[] | undefined;
28
- sentinel: import("@xyo-network/sentinel-model").SentinelModule<import("@xyo-network/sentinel-model").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/sentinel-model").SentinelConfig>>, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>> | undefined;
24
+ sentinel: import("@xyo-network/sdk-js").SentinelModule<import("@xyo-network/sdk-js").SentinelParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").SentinelConfig>>, import("@xyo-network/sdk-js").SentinelModuleEventData<import("@xyo-network/sdk-js").QueryableModule<import("@xyo-network/sdk-js").QueryableModuleParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").ModuleConfig>>, import("@xyo-network/sdk-js").ModuleEventData<object>>>> | undefined;
29
25
  status: import("./State.ts").SentinelReportStatus | undefined;
30
26
  };
31
27
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO9B,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAO9B,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
2
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
2
+ import type { SentinelInstance } from '@xyo-network/sdk-js';
3
3
  export declare const useSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: ModuleFromNodeConfig) => [SentinelInstance | undefined, Error | undefined];
4
4
  //# sourceMappingURL=useSentinelFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,eAAO,MAAM,mBAAmB,GAC9B,0BAA0B,MAAM,GAAG,gBAAgB,EACnD,SAAS,oBAAoB,KAC5B,CAAC,gBAAgB,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CASlD,CAAA"}
1
+ {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,eAAO,MAAM,mBAAmB,GAC9B,0BAA0B,MAAM,GAAG,gBAAgB,EACnD,SAAS,oBAAoB,KAC5B,CAAC,gBAAgB,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CASlD,CAAA"}
@@ -1,5 +1,4 @@
1
- import type { ModuleIdentifier } from '@xyo-network/module-model';
2
1
  import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
3
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
2
+ import type { ModuleIdentifier, SentinelInstance } from '@xyo-network/sdk-js';
4
3
  export declare const useSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [SentinelInstance[] | null | undefined, Error | undefined];
5
4
  //# sourceMappingURL=useSentinelsFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,eAAO,MAAM,oBAAoB,GAC/B,MAAM,gBAAgB,EAAE,EACxB,SAAS,oBAAoB,KAC5B,CAAC,gBAAgB,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAiB3D,CAAA"}
1
+ {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG7E,eAAO,MAAM,oBAAoB,GAC/B,MAAM,gBAAgB,EAAE,EACxB,SAAS,oBAAoB,KAC5B,CAAC,gBAAgB,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAiB3D,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { WeakModuleFromNodeConfig } from '@xyo-network/react-node';
2
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
2
+ import type { SentinelInstance } from '@xyo-network/sdk-js';
3
3
  export declare const useWeakSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<SentinelInstance> | undefined, Error | undefined];
4
4
  //# sourceMappingURL=useWeakSentinelFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWeakSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAEvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,eAAO,MAAM,uBAAuB,GAClC,0BAA0B,MAAM,GAAG,gBAAgB,EACnD,SAAS,wBAAwB,KAChC,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAE3D,CAAA"}
1
+ {"version":3,"file":"useWeakSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAEvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,eAAO,MAAM,uBAAuB,GAClC,0BAA0B,MAAM,GAAG,gBAAgB,EACnD,SAAS,wBAAwB,KAChC,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAE3D,CAAA"}
@@ -1,5 +1,4 @@
1
- import type { ModuleIdentifier } from '@xyo-network/module-model';
2
1
  import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
3
- import type { SentinelInstance } from '@xyo-network/sentinel-model';
2
+ import type { ModuleIdentifier, SentinelInstance } from '@xyo-network/sdk-js';
4
3
  export declare const useWeakSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined];
5
4
  //# sourceMappingURL=useWeakSentinelsFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWeakSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakSentinelsFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,eAAO,MAAM,wBAAwB,GACnC,MAAM,gBAAgB,EAAE,EACxB,SAAS,oBAAoB,KAC5B,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAgBpE,CAAA"}
1
+ {"version":3,"file":"useWeakSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakSentinelsFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG7E,eAAO,MAAM,wBAAwB,GACnC,MAAM,gBAAgB,EAAE,EACxB,SAAS,oBAAoB,KAC5B,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAgBpE,CAAA"}
@@ -82,9 +82,11 @@ var SentinelContext = createContextEx();
82
82
  // src/contexts/Provider.tsx
83
83
  import { useAsyncEffect } from "@xylabs/react-async-effect";
84
84
  import { useWitnessesFromNode } from "@xyo-network/react-witness";
85
- import { MemorySentinel } from "@xyo-network/sentinel-memory";
86
- import { SentinelConfigSchema } from "@xyo-network/sentinel-model";
87
- import { asWitnessInstance } from "@xyo-network/witness-model";
85
+ import {
86
+ asWitnessInstance,
87
+ MemorySentinel,
88
+ SentinelConfigSchema
89
+ } from "@xyo-network/sdk-js";
88
90
  import { useMemo, useState as useState2 } from "react";
89
91
 
90
92
  // src/contexts/State.ts
@@ -216,7 +218,7 @@ var useSentinelContext = () => {
216
218
 
217
219
  // src/hooks/node/useSentinelFromNode.tsx
218
220
  import { useModuleFromNode } from "@xyo-network/react-node";
219
- import { asSentinelInstance } from "@xyo-network/sentinel-model";
221
+ import { asSentinelInstance } from "@xyo-network/sdk-js";
220
222
  var useSentinelFromNode = (nameOrAddressOrInstance, config) => {
221
223
  const [mod, error] = useModuleFromNode(nameOrAddressOrInstance, config);
222
224
  const instance = asSentinelInstance(mod);
@@ -230,7 +232,7 @@ var useSentinelFromNode = (nameOrAddressOrInstance, config) => {
230
232
 
231
233
  // src/hooks/node/useSentinelsFromNode.tsx
232
234
  import { useModulesFromNode } from "@xyo-network/react-node";
233
- import { isSentinelInstance } from "@xyo-network/sentinel-model";
235
+ import { isSentinelInstance } from "@xyo-network/sdk-js";
234
236
  var useSentinelsFromNode = (ids, config) => {
235
237
  const [modules, error] = useModulesFromNode(ids, config);
236
238
  if (error) {
@@ -250,7 +252,7 @@ var useSentinelsFromNode = (ids, config) => {
250
252
 
251
253
  // src/hooks/node/useWeakSentinelFromNode.tsx
252
254
  import { useWeakModuleFromNode } from "@xyo-network/react-node";
253
- import { isSentinelInstance as isSentinelInstance2 } from "@xyo-network/sentinel-model";
255
+ import { isSentinelInstance as isSentinelInstance2 } from "@xyo-network/sdk-js";
254
256
  var useWeakSentinelFromNode = (nameOrAddressOrInstance, config) => {
255
257
  return useWeakModuleFromNode(nameOrAddressOrInstance, { identity: isSentinelInstance2, ...config });
256
258
  };
@@ -258,7 +260,7 @@ var useWeakSentinelFromNode = (nameOrAddressOrInstance, config) => {
258
260
  // src/hooks/node/useWeakSentinelsFromNode.tsx
259
261
  import { exists } from "@xylabs/sdk-js";
260
262
  import { useWeakModulesFromNode } from "@xyo-network/react-node";
261
- import { asSentinelInstance as asSentinelInstance2 } from "@xyo-network/sentinel-model";
263
+ import { asSentinelInstance as asSentinelInstance2 } from "@xyo-network/sdk-js";
262
264
  var useWeakSentinelsFromNode = (ids, config) => {
263
265
  const [modules, error] = useWeakModulesFromNode(ids, config);
264
266
  if (error) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
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"],
4
- "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"],
5
- "mappings": ";AACA,S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Q;AAAA,MAC7B;AAAA,IACF,CAAC,EACA,OAAO,MAAM,KAAK,CAAC;AAAA,IACtB;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { usePromise } from '@xylabs/react-promise'\nimport type { ModuleRenderProps } from '@xyo-network/react-module'\nimport type { Payload, SentinelInstance } from '@xyo-network/sdk-js'\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/sdk-js'\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 { ModuleRenderProps } from '@xyo-network/react-module'\nimport { ModuleCardContent } from '@xyo-network/react-module'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport type { Payload, SentinelInstance } from '@xyo-network/sdk-js'\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/sdk-js'\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 { useWitnessesFromNode } from '@xyo-network/react-witness'\nimport type {\n AccountInstance, BoundWitness, ModuleIdentifier, SentinelConfig, WitnessInstance,\n} from '@xyo-network/sdk-js'\nimport {\n asWitnessInstance, MemorySentinel, SentinelConfigSchema,\n} from '@xyo-network/sdk-js'\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)\n setHistory(sentinel?.history)\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 {\n ArchivistModuleInstance, BoundWitness, SentinelModule, WitnessModule,\n} from '@xyo-network/sdk-js'\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/sdk-js'\nimport { asSentinelInstance } from '@xyo-network/sdk-js'\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 { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useModulesFromNode } from '@xyo-network/react-node'\nimport type { ModuleIdentifier, SentinelInstance } from '@xyo-network/sdk-js'\nimport { isSentinelInstance } from '@xyo-network/sdk-js'\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/sdk-js'\nimport { isSentinelInstance } from '@xyo-network/sdk-js'\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 { ModuleFromNodeConfig } from '@xyo-network/react-node'\nimport { useWeakModulesFromNode } from '@xyo-network/react-node'\nimport type { ModuleIdentifier, SentinelInstance } from '@xyo-network/sdk-js'\nimport { asSentinelInstance } from '@xyo-network/sdk-js'\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"],
5
+ "mappings": ";AACA,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAG3B,SAAgB,gBAAgB;;;ACJhC,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;AAE5B,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,gBAAA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;;ACxBA,SAAS,6BAA6B;AAEtC,SAAS,sBAAAC,2BAA0B;AAE5B,IAAM,0BAA0B,CACrC,yBACA,WAC+D;AAC/D,SAAO,sBAAwC,yBAAyB,EAAE,UAAUA,qBAAoB,GAAG,OAAO,CAAC;AACrH;;;ACVA,SAAS,cAAc;AAEvB,SAAS,8BAA8B;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;",
6
6
  "names": ["jsx", "jsx", "jsx", "jsxs", "useState", "jsx", "useState", "sentinel", "witnesses", "error", "isSentinelInstance", "asSentinelInstance"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-sentinel",
3
- "version": "9.0.1",
3
+ "version": "9.0.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -41,10 +41,10 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@xyo-network/react-module": "~9.0.1",
45
- "@xyo-network/react-node": "~9.0.1",
46
- "@xyo-network/react-payload-raw-info": "~9.0.1",
47
- "@xyo-network/react-witness": "~9.0.1"
44
+ "@xyo-network/react-node": "~9.0.4",
45
+ "@xyo-network/react-payload-raw-info": "~9.0.4",
46
+ "@xyo-network/react-module": "~9.0.4",
47
+ "@xyo-network/react-witness": "~9.0.4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@bitauth/libauth": "~3.0.0",
@@ -59,10 +59,10 @@
59
59
  "@react-spring/web": "~10.1.0",
60
60
  "@scure/base": "~2.2.0",
61
61
  "@scure/bip39": "~2.2.0",
62
- "@storybook/react-vite": "~10.4.1",
63
- "@types/react": "^19.2.15",
64
- "@xylabs/geo": "^6.0.4",
65
- "@xylabs/pixel": "~6.0.4",
62
+ "@storybook/react-vite": "~10.4.2",
63
+ "@types/react": "^19.2.16",
64
+ "@xylabs/geo": "^6.0.7",
65
+ "@xylabs/pixel": "~6.0.7",
66
66
  "@xylabs/react-async-effect": "~9.0.2",
67
67
  "@xylabs/react-button": "~9.0.2",
68
68
  "@xylabs/react-crypto": "~9.0.2",
@@ -72,77 +72,44 @@
72
72
  "@xylabs/react-promise": "~9.0.2",
73
73
  "@xylabs/react-shared": "~9.0.2",
74
74
  "@xylabs/react-theme": "~9.0.2",
75
- "@xylabs/sdk-js": "^6.0.4",
75
+ "@xylabs/sdk-js": "^6.0.7",
76
76
  "@xylabs/sdk-react": "~9.0.2",
77
- "@xylabs/threads": "^6.0.4",
78
- "@xylabs/toolchain": "~8.1.8",
79
- "@xylabs/tsconfig": "^8.1.8",
80
- "@xylabs/tsconfig-dom": "^8.1.8",
81
- "@xylabs/tsconfig-react": "~8.1.8",
82
- "@xyo-network/account": "~6.0.5",
83
- "@xyo-network/account-model": "^6.0.5",
84
- "@xyo-network/api": "~6.0.5",
85
- "@xyo-network/api-models": "~6.0.5",
86
- "@xyo-network/archivist-model": "^6.0.1",
87
- "@xyo-network/boundwitness-builder": "^6.0.5",
88
- "@xyo-network/boundwitness-model": "^6.0.5",
89
- "@xyo-network/boundwitness-validator": "^6.0.5",
90
- "@xyo-network/boundwitness-wrapper": "~6.0.5",
91
- "@xyo-network/config-payload-plugin": "~6.0.5",
92
- "@xyo-network/diviner-model": "^6.0.1",
93
- "@xyo-network/evm-call-witness": "~6.0.1",
94
- "@xyo-network/huri": "^6.0.5",
95
- "@xyo-network/manifest": "~6.0.5",
96
- "@xyo-network/manifest-model": "~6.0.5",
97
- "@xyo-network/manifest-wrapper": "~6.0.1",
98
- "@xyo-network/module-factory-locator": "~6.0.1",
99
- "@xyo-network/module-model": "^6.0.1",
100
- "@xyo-network/node-memory": "~6.0.1",
101
- "@xyo-network/node-model": "^6.0.1",
77
+ "@xylabs/threads": "^6.0.7",
78
+ "@xylabs/toolchain": "~8.1.15",
79
+ "@xylabs/tsconfig": "^8.1.15",
80
+ "@xylabs/tsconfig-dom": "^8.1.15",
81
+ "@xylabs/tsconfig-react": "~8.1.15",
82
+ "@xyo-network/evm-call-witness": "~6.0.2",
102
83
  "@xyo-network/open-zeppelin-typechain": "^4.1.3",
103
- "@xyo-network/payload-builder": "^6.0.5",
104
- "@xyo-network/payload-model": "^6.0.5",
105
- "@xyo-network/payload-plugin": "^6.0.5",
106
- "@xyo-network/payload-wrapper": "~6.0.5",
107
- "@xyo-network/query-payload-plugin": "~6.0.5",
108
- "@xyo-network/sdk-js": "^6.0.1",
109
- "@xyo-network/sdk-protocol-js": "~6.0.5",
110
- "@xyo-network/sentinel-memory": "^6.0.1",
111
- "@xyo-network/sentinel-model": "^6.0.1",
112
- "@xyo-network/wallet": "~6.0.5",
113
- "@xyo-network/wallet-model": "^6.0.5",
114
- "@xyo-network/witness-evm-abstract": "~6.0.1",
115
- "@xyo-network/witness-model": "^6.0.1",
84
+ "@xyo-network/sdk-js": "^6.0.2",
85
+ "@xyo-network/sdk-protocol-js": "~6.0.7",
86
+ "@xyo-network/witness-evm-abstract": "~6.0.2",
116
87
  "ajv": "^8.20.0",
117
88
  "async-mutex": "^0.5.0",
118
89
  "bn.js": "^5.2.3",
119
90
  "bowser": "^2.14.1",
120
91
  "buffer": "^6.0.3",
121
- "chalk": "^5.6.2",
122
92
  "clsx": "~2.1.1",
123
93
  "debug": "~4.4.3",
124
94
  "eslint": "^10.4.1",
125
95
  "ethers": "^6.16.0",
126
96
  "hash-wasm": "~4.12.0",
127
97
  "idb": "^8.0.3",
128
- "lru-cache": "^11.3.6",
129
- "mapbox-gl": "^3.23.1",
98
+ "lru-cache": "^11.5.1",
130
99
  "md5": "~2.3.0",
131
- "mixpanel-browser": "~2.80",
100
+ "mixpanel-browser": "~2.80.0",
132
101
  "numeral": "~2.0.6",
133
102
  "observable-fns": "~0.6.1",
134
103
  "pako": "^2.1.0",
135
104
  "query-string": "~9.4.0",
136
- "react": "^19.2.6",
137
- "react-dom": "^19.2.6",
105
+ "react": "^19.2.7",
106
+ "react-dom": "^19.2.7",
138
107
  "react-router-dom": "^7.16.0",
139
108
  "spark-md5": "~3.0.2",
140
- "store2": "~2.14.4",
141
- "storybook": "^10.4.1",
109
+ "storybook": "^10.4.2",
142
110
  "typescript": "^6.0.3",
143
- "viem": "^2.51.3",
144
- "vite": "^8.0.14",
145
- "wasm-feature-detect": "~1.8.0",
111
+ "viem": "^2.52.0",
112
+ "vite": "^8.0.16",
146
113
  "webextension-polyfill": "^0.12.0",
147
114
  "zod": "^4.4.3",
148
115
  "zustand": "~5.0.14"
@@ -174,20 +141,8 @@
174
141
  "@xylabs/sdk-js": "^6.0",
175
142
  "@xylabs/sdk-react": "~9.0",
176
143
  "@xylabs/threads": "^6.0",
177
- "@xyo-network/account-model": "^6.0",
178
- "@xyo-network/archivist-model": "^6.0",
179
- "@xyo-network/boundwitness-model": "^6.0",
180
- "@xyo-network/boundwitness-validator": "^6.0",
181
- "@xyo-network/diviner-model": "^6.0",
182
- "@xyo-network/module-model": "^6.0",
183
- "@xyo-network/node-memory": "~6.0",
184
- "@xyo-network/node-model": "^6.0",
185
- "@xyo-network/payload-builder": "^6.0",
186
- "@xyo-network/payload-model": "^6.0",
144
+ "@xyo-network/sdk-js": "^6.0",
187
145
  "@xyo-network/sdk-protocol-js": "~6.0",
188
- "@xyo-network/sentinel-memory": "^6.0",
189
- "@xyo-network/sentinel-model": "^6.0",
190
- "@xyo-network/witness-model": "^6.0",
191
146
  "ajv": "^8.20",
192
147
  "async-mutex": "^0.5",
193
148
  "bn.js": "^5.2",
@@ -199,7 +154,6 @@
199
154
  "hash-wasm": "~4.12",
200
155
  "idb": "^8.0",
201
156
  "lru-cache": "^11.3",
202
- "mapbox-gl": "^3.23",
203
157
  "md5": "~2.3",
204
158
  "mixpanel-browser": "~2.80",
205
159
  "numeral": "~2.0",
@@ -210,9 +164,7 @@
210
164
  "react-dom": "^19.2",
211
165
  "react-router-dom": "^7.15",
212
166
  "spark-md5": "~3.0",
213
- "store2": "~2.14",
214
167
  "viem": "^2.48",
215
- "wasm-feature-detect": "~1.8",
216
168
  "webextension-polyfill": "^0.12",
217
169
  "zod": "^4.4",
218
170
  "zustand": "~5.0"