@xyo-network/react-sentinel 4.4.9 → 4.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/Card/Card.d.ts +10 -0
- package/dist/browser/components/Card/Card.d.ts.map +1 -0
- package/dist/browser/components/Card/CardActions.d.ts +9 -0
- package/dist/browser/components/Card/CardActions.d.ts.map +1 -0
- package/dist/browser/components/Card/CardContent.d.ts +10 -0
- package/dist/browser/components/Card/CardContent.d.ts.map +1 -0
- package/dist/browser/components/Card/CardHeader.d.ts +6 -0
- package/dist/browser/components/Card/CardHeader.d.ts.map +1 -0
- package/dist/browser/components/Card/index.d.ts +4 -0
- package/dist/browser/components/Card/index.d.ts.map +1 -0
- package/dist/browser/components/Card/manifest.d.ts +2 -0
- package/dist/browser/components/Card/manifest.d.ts.map +1 -0
- package/dist/browser/components/index.d.ts +2 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/contexts/Context.d.ts +3 -0
- package/dist/browser/contexts/Context.d.ts.map +1 -0
- package/dist/browser/contexts/Provider.d.ts +18 -0
- package/dist/browser/contexts/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/State.d.ts +34 -0
- package/dist/browser/contexts/State.d.ts.map +1 -0
- package/dist/browser/contexts/index.d.ts +5 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/contexts/use.d.ts +28 -0
- package/dist/browser/contexts/use.d.ts.map +1 -0
- package/dist/browser/hooks/index.d.ts +2 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/node/index.d.ts +5 -0
- package/dist/browser/hooks/node/index.d.ts.map +1 -0
- package/dist/browser/hooks/node/useSentinelFromNode.d.ts +4 -0
- package/dist/browser/hooks/node/useSentinelFromNode.d.ts.map +1 -0
- package/dist/browser/hooks/node/useSentinelsFromNode.d.ts +5 -0
- package/dist/browser/hooks/node/useSentinelsFromNode.d.ts.map +1 -0
- package/dist/browser/hooks/node/useWeakSentinelFromNode.d.ts +4 -0
- package/dist/browser/hooks/node/useWeakSentinelFromNode.d.ts.map +1 -0
- package/dist/browser/hooks/node/useWeakSentinelsFromNode.d.ts +5 -0
- package/dist/browser/hooks/node/useWeakSentinelsFromNode.d.ts.map +1 -0
- package/dist/browser/index.d.ts +4 -110
- package/dist/browser/index.d.ts.map +1 -0
- package/package.json +29 -29
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CardProps } from '@mui/material';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import type { ModuleRenderProps } from '@xyo-network/react-module';
|
|
4
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export type SentinelCardProps = CardProps & ModuleRenderProps<SentinelInstance> & {
|
|
7
|
+
inPayloads?: Payload[];
|
|
8
|
+
};
|
|
9
|
+
export declare const SentinelCard: React.FC<SentinelCardProps>;
|
|
10
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +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,GACvC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IACpC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CAAA;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiBpD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CardActionsProps } from '@mui/material';
|
|
2
|
+
import type { ModuleRenderProps } from '@xyo-network/react-module';
|
|
3
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export type SentinelCardActionsProps = ModuleRenderProps<SentinelInstance> & CardActionsProps & {
|
|
6
|
+
onReport?: (mod?: SentinelInstance) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const SentinelCardActions: React.FC<SentinelCardActionsProps>;
|
|
9
|
+
//# sourceMappingURL=CardActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,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,GACxE,gBAAgB,GAAG;IACjB,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CardContentProps } from '@mui/material';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import type { ModuleRenderProps } from '@xyo-network/react-module';
|
|
4
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export type SentinelCardContentProps = ModuleRenderProps<SentinelInstance> & CardContentProps & {
|
|
7
|
+
report?: Payload[];
|
|
8
|
+
};
|
|
9
|
+
export declare const SentinelCardContent: React.FC<SentinelCardContentProps>;
|
|
10
|
+
//# sourceMappingURL=CardContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,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,GACxE,gBAAgB,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;CACnB,CAAA;AAEH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAalE,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CardHeaderProps } from '@mui/material';
|
|
2
|
+
import type { ModuleRenderProps } from '@xyo-network/react-module';
|
|
3
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export declare const SentinelCardHeader: React.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps>;
|
|
6
|
+
//# sourceMappingURL=CardHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,eAAO,MAAM,eAAe,oGAA0C,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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';
|
|
4
|
+
import type { PropsWithChildren } from 'react';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface SentinelProviderProps {
|
|
7
|
+
/** Account used by the sentinel for signing */
|
|
8
|
+
account: AccountInstance;
|
|
9
|
+
/** @deprecated - sentinel no longer uses archive but relies on an archivist */
|
|
10
|
+
archive?: string;
|
|
11
|
+
archivist?: string;
|
|
12
|
+
ids?: ModuleIdentifier[];
|
|
13
|
+
name?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
witnesses?: WitnessInstance[];
|
|
16
|
+
}
|
|
17
|
+
export declare const SentinelProvider: React.FC<PropsWithChildren<SentinelProviderProps>>;
|
|
18
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAEA,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,KAEN,MAAM,OAAO,CAAA;AAMd,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,CA4G/E,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { EnumValue } from '@xylabs/enum';
|
|
2
|
+
import { Enum } from '@xylabs/enum';
|
|
3
|
+
import type { ArchivistModuleInstance } from '@xyo-network/archivist-model';
|
|
4
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
+
import type { SentinelModule } from '@xyo-network/sentinel-model';
|
|
6
|
+
import type { WitnessModule } from '@xyo-network/witness-model';
|
|
7
|
+
export declare const SentinelReportStatus: Enum<{
|
|
8
|
+
Idle: "idle";
|
|
9
|
+
Queued: "queued";
|
|
10
|
+
Started: "started";
|
|
11
|
+
Succeeded: "succeeded";
|
|
12
|
+
Failed: "failed";
|
|
13
|
+
}>;
|
|
14
|
+
export type SentinelReportStatus = EnumValue<typeof SentinelReportStatus>;
|
|
15
|
+
export interface SentinelWitnessReportProgress {
|
|
16
|
+
status: SentinelReportStatus;
|
|
17
|
+
witness: WitnessModule;
|
|
18
|
+
}
|
|
19
|
+
export interface SentinelArchivistApiReportProgress {
|
|
20
|
+
archivist: ArchivistModuleInstance;
|
|
21
|
+
status: SentinelReportStatus;
|
|
22
|
+
}
|
|
23
|
+
export interface SentinelReportProgress {
|
|
24
|
+
archivists?: Record<string, SentinelArchivistApiReportProgress>;
|
|
25
|
+
witnesses?: Record<string, SentinelWitnessReportProgress>;
|
|
26
|
+
}
|
|
27
|
+
export interface SentinelContextState {
|
|
28
|
+
history?: BoundWitness[];
|
|
29
|
+
progress?: SentinelReportProgress;
|
|
30
|
+
reportingErrors?: Error[];
|
|
31
|
+
sentinel?: SentinelModule;
|
|
32
|
+
status?: SentinelReportStatus;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/contexts/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,eAAO,MAAM,oBAAoB;;;;;;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,WAAW,oBAAoB;IACnC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const useSentinelContext: () => {
|
|
2
|
+
history: import("@xyo-network/boundwitness-model").BoundWitness[] | undefined;
|
|
3
|
+
progress: import("./State.ts").SentinelReportProgress | undefined;
|
|
4
|
+
reportingErrors: Error[] | undefined;
|
|
5
|
+
sentinel: import("@xyo-network/sentinel-model").SentinelModule<import("@xylabs/object").BaseParamsFields & {
|
|
6
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
7
|
+
addToResolvers?: boolean;
|
|
8
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
9
|
+
allowNameResolution?: boolean;
|
|
10
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/sentinel-model").SentinelConfig>;
|
|
11
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
12
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
13
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
14
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
15
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
16
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
17
|
+
addToResolvers?: boolean;
|
|
18
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
19
|
+
allowNameResolution?: boolean;
|
|
20
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
21
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
22
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
23
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
24
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
25
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>> | undefined;
|
|
26
|
+
status: import("./State.ts").SentinelReportStatus | undefined;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=use.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;CAO9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
2
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
3
|
+
export declare const useSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: ModuleFromNodeConfig) => [SentinelInstance | undefined, Error | undefined];
|
|
4
|
+
//# sourceMappingURL=useSentinelFromNode.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
3
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
4
|
+
export declare const useSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [SentinelInstance[] | null | undefined, Error | undefined];
|
|
5
|
+
//# sourceMappingURL=useSentinelsFromNode.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WeakModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
2
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
3
|
+
export declare const useWeakSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<SentinelInstance> | undefined, Error | undefined];
|
|
4
|
+
//# sourceMappingURL=useWeakSentinelFromNode.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
3
|
+
import type { SentinelInstance } from '@xyo-network/sentinel-model';
|
|
4
|
+
export declare const useWeakSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined];
|
|
5
|
+
//# sourceMappingURL=useWeakSentinelsFromNode.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,110 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { SentinelInstance, SentinelModule } from '@xyo-network/sentinel-model';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import React__default, { PropsWithChildren } from 'react';
|
|
8
|
-
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
9
|
-
import { Enum, EnumValue } from '@xylabs/enum';
|
|
10
|
-
import { ArchivistModuleInstance } from '@xyo-network/archivist-model';
|
|
11
|
-
import * as _xyo_network_boundwitness_model from '@xyo-network/boundwitness-model';
|
|
12
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
13
|
-
import { WitnessModule, WitnessInstance } from '@xyo-network/witness-model';
|
|
14
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
15
|
-
import { AccountInstance } from '@xyo-network/account-model';
|
|
16
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
17
|
-
import { ModuleIdentifier } from '@xyo-network/module-model';
|
|
18
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
19
|
-
import { ModuleFromNodeConfig, WeakModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
20
|
-
|
|
21
|
-
type SentinelCardProps = CardProps & ModuleRenderProps<SentinelInstance> & {
|
|
22
|
-
inPayloads?: Payload[];
|
|
23
|
-
};
|
|
24
|
-
declare const SentinelCard: React__default.FC<SentinelCardProps>;
|
|
25
|
-
|
|
26
|
-
type SentinelCardContentProps = ModuleRenderProps<SentinelInstance> & CardContentProps & {
|
|
27
|
-
report?: Payload[];
|
|
28
|
-
};
|
|
29
|
-
declare const SentinelCardContent: React__default.FC<SentinelCardContentProps>;
|
|
30
|
-
|
|
31
|
-
declare const SentinelCardHeader: React__default.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps>;
|
|
32
|
-
|
|
33
|
-
declare const SentinelReportStatus: Enum<{
|
|
34
|
-
Idle: "idle";
|
|
35
|
-
Queued: "queued";
|
|
36
|
-
Started: "started";
|
|
37
|
-
Succeeded: "succeeded";
|
|
38
|
-
Failed: "failed";
|
|
39
|
-
}>;
|
|
40
|
-
type SentinelReportStatus = EnumValue<typeof SentinelReportStatus>;
|
|
41
|
-
interface SentinelWitnessReportProgress {
|
|
42
|
-
status: SentinelReportStatus;
|
|
43
|
-
witness: WitnessModule;
|
|
44
|
-
}
|
|
45
|
-
interface SentinelArchivistApiReportProgress {
|
|
46
|
-
archivist: ArchivistModuleInstance;
|
|
47
|
-
status: SentinelReportStatus;
|
|
48
|
-
}
|
|
49
|
-
interface SentinelReportProgress {
|
|
50
|
-
archivists?: Record<string, SentinelArchivistApiReportProgress>;
|
|
51
|
-
witnesses?: Record<string, SentinelWitnessReportProgress>;
|
|
52
|
-
}
|
|
53
|
-
interface SentinelContextState {
|
|
54
|
-
history?: BoundWitness[];
|
|
55
|
-
progress?: SentinelReportProgress;
|
|
56
|
-
reportingErrors?: Error[];
|
|
57
|
-
sentinel?: SentinelModule;
|
|
58
|
-
status?: SentinelReportStatus;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
declare const SentinelContext: React.Context<SentinelContextState & _xyo_network_react_shared.ContextExState>;
|
|
62
|
-
|
|
63
|
-
interface SentinelProviderProps {
|
|
64
|
-
account: AccountInstance;
|
|
65
|
-
archive?: string;
|
|
66
|
-
archivist?: string;
|
|
67
|
-
ids?: ModuleIdentifier[];
|
|
68
|
-
name?: string;
|
|
69
|
-
required?: boolean;
|
|
70
|
-
witnesses?: WitnessInstance[];
|
|
71
|
-
}
|
|
72
|
-
declare const SentinelProvider: React__default.FC<PropsWithChildren<SentinelProviderProps>>;
|
|
73
|
-
|
|
74
|
-
declare const useSentinelContext: () => {
|
|
75
|
-
history: _xyo_network_boundwitness_model.BoundWitness[] | undefined;
|
|
76
|
-
progress: SentinelReportProgress | undefined;
|
|
77
|
-
reportingErrors: Error[] | undefined;
|
|
78
|
-
sentinel: _xyo_network_sentinel_model.SentinelModule<_xylabs_object.BaseParamsFields & {
|
|
79
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
80
|
-
addToResolvers?: boolean;
|
|
81
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
82
|
-
allowNameResolution?: boolean;
|
|
83
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_sentinel_model.SentinelConfig<void, void>>;
|
|
84
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
85
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
86
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
87
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
88
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
89
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
90
|
-
addToResolvers?: boolean;
|
|
91
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
92
|
-
allowNameResolution?: boolean;
|
|
93
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
94
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
95
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
96
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
97
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
98
|
-
}, _xyo_network_module_model.ModuleEventData<object>>>> | undefined;
|
|
99
|
-
status: SentinelReportStatus | undefined;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
declare const useSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: ModuleFromNodeConfig) => [SentinelInstance | undefined, Error | undefined];
|
|
103
|
-
|
|
104
|
-
declare const useSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [SentinelInstance[] | null | undefined, Error | undefined];
|
|
105
|
-
|
|
106
|
-
declare const useWeakSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<SentinelInstance> | undefined, Error | undefined];
|
|
107
|
-
|
|
108
|
-
declare const useWeakSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined];
|
|
109
|
-
|
|
110
|
-
export { type SentinelArchivistApiReportProgress, SentinelCard, SentinelCardContent, type SentinelCardContentProps, SentinelCardHeader, type SentinelCardProps, SentinelContext, type SentinelContextState, SentinelProvider, type SentinelProviderProps, type SentinelReportProgress, SentinelReportStatus, type SentinelWitnessReportProgress, useSentinelContext, useSentinelFromNode, useSentinelsFromNode, useWeakSentinelFromNode, useWeakSentinelsFromNode };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './contexts/index.ts';
|
|
3
|
+
export * from './hooks/index.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-sentinel",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/enum": "^4.5.
|
|
47
|
-
"@xylabs/exists": "^4.5.
|
|
48
|
-
"@xylabs/react-async-effect": "^5.3.
|
|
49
|
-
"@xylabs/react-button": "^5.3.
|
|
50
|
-
"@xylabs/react-flexbox": "^5.3.
|
|
51
|
-
"@xylabs/react-promise": "^5.3.
|
|
52
|
-
"@xyo-network/account-model": "^3.9.
|
|
53
|
-
"@xyo-network/archivist-model": "^3.9.
|
|
54
|
-
"@xyo-network/boundwitness-model": "^3.9.
|
|
55
|
-
"@xyo-network/module-model": "^3.9.
|
|
56
|
-
"@xyo-network/payload-model": "^3.9.
|
|
57
|
-
"@xyo-network/react-module": "^4.4.
|
|
58
|
-
"@xyo-network/react-node": "^4.4.
|
|
59
|
-
"@xyo-network/react-payload-raw-info": "^4.4.
|
|
60
|
-
"@xyo-network/react-shared": "^4.4.
|
|
61
|
-
"@xyo-network/react-witness": "^4.4.
|
|
62
|
-
"@xyo-network/sentinel-memory": "^3.9.
|
|
63
|
-
"@xyo-network/sentinel-model": "^3.9.
|
|
64
|
-
"@xyo-network/witness-model": "^3.9.
|
|
46
|
+
"@xylabs/enum": "^4.5.6",
|
|
47
|
+
"@xylabs/exists": "^4.5.6",
|
|
48
|
+
"@xylabs/react-async-effect": "^5.3.25",
|
|
49
|
+
"@xylabs/react-button": "^5.3.25",
|
|
50
|
+
"@xylabs/react-flexbox": "^5.3.25",
|
|
51
|
+
"@xylabs/react-promise": "^5.3.25",
|
|
52
|
+
"@xyo-network/account-model": "^3.9.25",
|
|
53
|
+
"@xyo-network/archivist-model": "^3.9.25",
|
|
54
|
+
"@xyo-network/boundwitness-model": "^3.9.25",
|
|
55
|
+
"@xyo-network/module-model": "^3.9.25",
|
|
56
|
+
"@xyo-network/payload-model": "^3.9.25",
|
|
57
|
+
"@xyo-network/react-module": "^4.4.11",
|
|
58
|
+
"@xyo-network/react-node": "^4.4.11",
|
|
59
|
+
"@xyo-network/react-payload-raw-info": "^4.4.11",
|
|
60
|
+
"@xyo-network/react-shared": "^4.4.11",
|
|
61
|
+
"@xyo-network/react-witness": "^4.4.11",
|
|
62
|
+
"@xyo-network/sentinel-memory": "^3.9.25",
|
|
63
|
+
"@xyo-network/sentinel-model": "^3.9.25",
|
|
64
|
+
"@xyo-network/witness-model": "^3.9.25"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@emotion/react": "^11.14.0",
|
|
@@ -69,18 +69,18 @@
|
|
|
69
69
|
"@mui/icons-material": "^6.4.6",
|
|
70
70
|
"@mui/material": "^6.4.6",
|
|
71
71
|
"@mui/styles": "^6.4.6",
|
|
72
|
-
"@storybook/react": "^8.6.
|
|
73
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
74
|
-
"@xylabs/tsconfig-react": "^5.0.
|
|
75
|
-
"@xyo-network/account": "^3.9.
|
|
76
|
-
"@xyo-network/evm-call-witness": "^3.4.
|
|
77
|
-
"@xyo-network/manifest": "^3.9.
|
|
78
|
-
"@xyo-network/module-factory-locator": "^3.9.
|
|
72
|
+
"@storybook/react": "^8.6.3",
|
|
73
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
74
|
+
"@xylabs/tsconfig-react": "^5.0.39",
|
|
75
|
+
"@xyo-network/account": "^3.9.25",
|
|
76
|
+
"@xyo-network/evm-call-witness": "^3.4.3",
|
|
77
|
+
"@xyo-network/manifest": "^3.9.25",
|
|
78
|
+
"@xyo-network/module-factory-locator": "^3.9.25",
|
|
79
79
|
"ethers": "^6.13.5",
|
|
80
80
|
"react": "^18.3.1",
|
|
81
81
|
"react-dom": "^18.3.1",
|
|
82
|
-
"storybook": "^8.6.
|
|
83
|
-
"typescript": "^5.
|
|
82
|
+
"storybook": "^8.6.3",
|
|
83
|
+
"typescript": "^5.8.2"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@emotion/react": "^11",
|