@xyo-network/react-sentinel 6.1.4 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +4 -116
- package/package.json +28 -28
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,116 +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 _xylabs_react_shared from '@xylabs/react-shared';
|
|
9
|
-
import { ContextExState } from '@xylabs/react-shared';
|
|
10
|
-
import { Enum, EnumValue } from '@xylabs/enum';
|
|
11
|
-
import { ArchivistModuleInstance } from '@xyo-network/archivist-model';
|
|
12
|
-
import * as _xyo_network_boundwitness_model from '@xyo-network/boundwitness-model';
|
|
13
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
14
|
-
import { WitnessModule, WitnessInstance } from '@xyo-network/witness-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 { ModuleFromNodeConfig, WeakModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
19
|
-
|
|
20
|
-
type SentinelCardProps = CardProps & ModuleRenderProps<SentinelInstance> & {
|
|
21
|
-
inPayloads?: Payload[];
|
|
22
|
-
};
|
|
23
|
-
declare const SentinelCard: React__default.FC<SentinelCardProps>;
|
|
24
|
-
|
|
25
|
-
type SentinelCardContentProps = ModuleRenderProps<SentinelInstance> & CardContentProps & {
|
|
26
|
-
report?: Payload[];
|
|
27
|
-
};
|
|
28
|
-
declare const SentinelCardContent: React__default.FC<SentinelCardContentProps>;
|
|
29
|
-
|
|
30
|
-
declare const SentinelCardHeader: React__default.FC<ModuleRenderProps<SentinelInstance> & CardHeaderProps>;
|
|
31
|
-
|
|
32
|
-
declare const SentinelReportStatus: Enum<{
|
|
33
|
-
Idle: "idle";
|
|
34
|
-
Queued: "queued";
|
|
35
|
-
Started: "started";
|
|
36
|
-
Succeeded: "succeeded";
|
|
37
|
-
Failed: "failed";
|
|
38
|
-
}>;
|
|
39
|
-
type SentinelReportStatus = EnumValue<typeof SentinelReportStatus>;
|
|
40
|
-
interface SentinelWitnessReportProgress {
|
|
41
|
-
status: SentinelReportStatus;
|
|
42
|
-
witness: WitnessModule;
|
|
43
|
-
}
|
|
44
|
-
interface SentinelArchivistApiReportProgress {
|
|
45
|
-
archivist: ArchivistModuleInstance;
|
|
46
|
-
status: SentinelReportStatus;
|
|
47
|
-
}
|
|
48
|
-
interface SentinelReportProgress {
|
|
49
|
-
archivists?: Record<string, SentinelArchivistApiReportProgress>;
|
|
50
|
-
witnesses?: Record<string, SentinelWitnessReportProgress>;
|
|
51
|
-
}
|
|
52
|
-
type SentinelContextState = ContextExState<{
|
|
53
|
-
history?: BoundWitness[];
|
|
54
|
-
progress?: SentinelReportProgress;
|
|
55
|
-
reportingErrors?: Error[];
|
|
56
|
-
sentinel?: SentinelModule;
|
|
57
|
-
status?: SentinelReportStatus;
|
|
58
|
-
}>;
|
|
59
|
-
|
|
60
|
-
declare const SentinelContext: React.Context<({
|
|
61
|
-
history?: _xyo_network_boundwitness_model.BoundWitness[];
|
|
62
|
-
progress?: SentinelReportProgress;
|
|
63
|
-
reportingErrors?: Error[];
|
|
64
|
-
sentinel?: _xyo_network_sentinel_model.SentinelModule;
|
|
65
|
-
status?: SentinelReportStatus;
|
|
66
|
-
} & {
|
|
67
|
-
provided: true;
|
|
68
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
69
|
-
history?: _xyo_network_boundwitness_model.BoundWitness[];
|
|
70
|
-
progress?: SentinelReportProgress;
|
|
71
|
-
reportingErrors?: Error[];
|
|
72
|
-
sentinel?: _xyo_network_sentinel_model.SentinelModule;
|
|
73
|
-
status?: SentinelReportStatus;
|
|
74
|
-
}>, never> & {
|
|
75
|
-
provided: false;
|
|
76
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
77
|
-
history?: _xyo_network_boundwitness_model.BoundWitness[];
|
|
78
|
-
progress?: SentinelReportProgress;
|
|
79
|
-
reportingErrors?: Error[];
|
|
80
|
-
sentinel?: _xyo_network_sentinel_model.SentinelModule;
|
|
81
|
-
status?: SentinelReportStatus;
|
|
82
|
-
}>, never> & {
|
|
83
|
-
provided: false;
|
|
84
|
-
})>;
|
|
85
|
-
|
|
86
|
-
interface SentinelProviderProps {
|
|
87
|
-
/** Account used by the sentinel for signing */
|
|
88
|
-
account: AccountInstance;
|
|
89
|
-
/** @deprecated - sentinel no longer uses archive but relies on an archivist */
|
|
90
|
-
archive?: string;
|
|
91
|
-
archivist?: string;
|
|
92
|
-
ids?: ModuleIdentifier[];
|
|
93
|
-
name?: string;
|
|
94
|
-
required?: boolean;
|
|
95
|
-
witnesses?: WitnessInstance[];
|
|
96
|
-
}
|
|
97
|
-
declare const SentinelProvider: React__default.FC<PropsWithChildren<SentinelProviderProps>>;
|
|
98
|
-
|
|
99
|
-
declare const useSentinelContext: () => {
|
|
100
|
-
history: _xyo_network_boundwitness_model.BoundWitness[] | undefined;
|
|
101
|
-
progress: SentinelReportProgress | undefined;
|
|
102
|
-
reportingErrors: Error[] | undefined;
|
|
103
|
-
sentinel: _xyo_network_sentinel_model.SentinelModule<_xyo_network_sentinel_model.SentinelParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_sentinel_model.SentinelConfig>>, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig>>, _xyo_network_module_model.ModuleEventData<object>>>> | undefined;
|
|
104
|
-
status: SentinelReportStatus | undefined;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
declare const useSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: ModuleFromNodeConfig) => [SentinelInstance | undefined, Error | undefined];
|
|
108
|
-
|
|
109
|
-
declare const useSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [SentinelInstance[] | null | undefined, Error | undefined];
|
|
110
|
-
|
|
111
|
-
declare const useWeakSentinelFromNode: (nameOrAddressOrInstance?: string | SentinelInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<SentinelInstance> | undefined, Error | undefined];
|
|
112
|
-
|
|
113
|
-
declare const useWeakSentinelsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<SentinelInstance>[] | null | undefined, Error | undefined];
|
|
114
|
-
|
|
115
|
-
export { SentinelCard, SentinelCardContent, SentinelCardHeader, SentinelContext, SentinelProvider, SentinelReportStatus, useSentinelContext, useSentinelFromNode, useSentinelsFromNode, useWeakSentinelFromNode, useWeakSentinelsFromNode };
|
|
116
|
-
export type { SentinelArchivistApiReportProgress, SentinelCardContentProps, SentinelCardProps, SentinelContextState, SentinelProviderProps, SentinelReportProgress, SentinelWitnessReportProgress };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './contexts/index.ts';
|
|
3
|
+
export * from './hooks/index.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-sentinel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/enum": "^4.
|
|
43
|
-
"@xylabs/exists": "^4.
|
|
44
|
-
"@xylabs/react-async-effect": "^6.
|
|
45
|
-
"@xylabs/react-button": "^6.
|
|
46
|
-
"@xylabs/react-flexbox": "^6.
|
|
47
|
-
"@xylabs/react-promise": "^6.
|
|
48
|
-
"@xylabs/react-shared": "^6.
|
|
49
|
-
"@xyo-network/account-model": "^4.
|
|
50
|
-
"@xyo-network/archivist-model": "^4.
|
|
51
|
-
"@xyo-network/boundwitness-model": "^4.
|
|
52
|
-
"@xyo-network/module-model": "^4.
|
|
53
|
-
"@xyo-network/payload-model": "^4.
|
|
54
|
-
"@xyo-network/react-module": "^6.
|
|
55
|
-
"@xyo-network/react-node": "^6.
|
|
56
|
-
"@xyo-network/react-payload-raw-info": "^6.
|
|
57
|
-
"@xyo-network/react-witness": "^6.
|
|
58
|
-
"@xyo-network/sentinel-memory": "^4.
|
|
59
|
-
"@xyo-network/sentinel-model": "^4.
|
|
60
|
-
"@xyo-network/witness-model": "^4.
|
|
42
|
+
"@xylabs/enum": "^4.15.0",
|
|
43
|
+
"@xylabs/exists": "^4.15.0",
|
|
44
|
+
"@xylabs/react-async-effect": "^6.4.0",
|
|
45
|
+
"@xylabs/react-button": "^6.4.0",
|
|
46
|
+
"@xylabs/react-flexbox": "^6.4.0",
|
|
47
|
+
"@xylabs/react-promise": "^6.4.0",
|
|
48
|
+
"@xylabs/react-shared": "^6.4.0",
|
|
49
|
+
"@xyo-network/account-model": "^4.3.0",
|
|
50
|
+
"@xyo-network/archivist-model": "^4.3.0",
|
|
51
|
+
"@xyo-network/boundwitness-model": "^4.3.0",
|
|
52
|
+
"@xyo-network/module-model": "^4.3.0",
|
|
53
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
54
|
+
"@xyo-network/react-module": "^6.2.0",
|
|
55
|
+
"@xyo-network/react-node": "^6.2.0",
|
|
56
|
+
"@xyo-network/react-payload-raw-info": "^6.2.0",
|
|
57
|
+
"@xyo-network/react-witness": "^6.2.0",
|
|
58
|
+
"@xyo-network/sentinel-memory": "^4.3.0",
|
|
59
|
+
"@xyo-network/sentinel-model": "^4.3.0",
|
|
60
|
+
"@xyo-network/witness-model": "^4.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@emotion/react": "^11.14.0",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"@mui/material": "^7.2.0",
|
|
67
67
|
"@storybook/react-vite": "^9.0.18",
|
|
68
68
|
"@types/react": "^19.1.8",
|
|
69
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
70
|
-
"@xylabs/tsconfig-react": "
|
|
71
|
-
"@xyo-network/account": "^4.
|
|
69
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
70
|
+
"@xylabs/tsconfig-react": "^7.0.1",
|
|
71
|
+
"@xyo-network/account": "^4.3.0",
|
|
72
72
|
"@xyo-network/evm-call-witness": "^4.1.1",
|
|
73
|
-
"@xyo-network/manifest": "^4.
|
|
74
|
-
"@xyo-network/module-factory-locator": "^4.
|
|
75
|
-
"@xyo-network/wallet": "^4.
|
|
73
|
+
"@xyo-network/manifest": "^4.3.0",
|
|
74
|
+
"@xyo-network/module-factory-locator": "^4.3.0",
|
|
75
|
+
"@xyo-network/wallet": "^4.3.0",
|
|
76
76
|
"ethers": "^6.15.0",
|
|
77
|
-
"react": "^19.1.
|
|
78
|
-
"react-dom": "^19.1.
|
|
77
|
+
"react": "^19.1.1",
|
|
78
|
+
"react-dom": "^19.1.1",
|
|
79
79
|
"storybook": "^9.0.18",
|
|
80
80
|
"typescript": "^5.8.3"
|
|
81
81
|
},
|