@xyo-network/react-sentinel 2.57.0 → 2.57.1

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 (61) hide show
  1. package/dist/cjs/hooks/index.js +0 -2
  2. package/dist/cjs/hooks/index.js.map +1 -1
  3. package/dist/cjs/hooks/node/index.js +0 -2
  4. package/dist/cjs/hooks/node/index.js.map +1 -1
  5. package/dist/cjs/hooks/node/useSentinelFromNode.js +9 -1
  6. package/dist/cjs/hooks/node/useSentinelFromNode.js.map +1 -1
  7. package/dist/cjs/hooks/node/useSentinelsFromNode.js +21 -1
  8. package/dist/cjs/hooks/node/useSentinelsFromNode.js.map +1 -1
  9. package/dist/docs.json +4423 -0
  10. package/dist/esm/hooks/index.js +0 -2
  11. package/dist/esm/hooks/index.js.map +1 -1
  12. package/dist/esm/hooks/node/index.js +0 -2
  13. package/dist/esm/hooks/node/index.js.map +1 -1
  14. package/dist/esm/hooks/node/useSentinelFromNode.js +9 -1
  15. package/dist/esm/hooks/node/useSentinelFromNode.js.map +1 -1
  16. package/dist/esm/hooks/node/useSentinelsFromNode.js +21 -1
  17. package/dist/esm/hooks/node/useSentinelsFromNode.js.map +1 -1
  18. package/dist/types/contexts/Provider.d.ts +2 -2
  19. package/dist/types/contexts/Provider.d.ts.map +1 -1
  20. package/dist/types/hooks/index.d.ts +0 -2
  21. package/dist/types/hooks/index.d.ts.map +1 -1
  22. package/dist/types/hooks/node/index.d.ts +0 -2
  23. package/dist/types/hooks/node/index.d.ts.map +1 -1
  24. package/dist/types/hooks/node/useSentinelFromNode.d.ts +3 -58
  25. package/dist/types/hooks/node/useSentinelFromNode.d.ts.map +1 -1
  26. package/dist/types/hooks/node/useSentinelsFromNode.d.ts +4 -59
  27. package/dist/types/hooks/node/useSentinelsFromNode.d.ts.map +1 -1
  28. package/package.json +15 -16
  29. package/src/contexts/Provider.tsx +2 -2
  30. package/src/hooks/index.ts +0 -2
  31. package/src/hooks/node/index.ts +0 -2
  32. package/src/hooks/node/useSentinelFromNode.tsx +13 -5
  33. package/src/hooks/node/useSentinelsFromNode.tsx +25 -5
  34. package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js +0 -7
  35. package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js.map +0 -1
  36. package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js +0 -7
  37. package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js.map +0 -1
  38. package/dist/cjs/hooks/useWrappedSentinel.js +0 -7
  39. package/dist/cjs/hooks/useWrappedSentinel.js.map +0 -1
  40. package/dist/cjs/hooks/useWrappedSentinels.js +0 -7
  41. package/dist/cjs/hooks/useWrappedSentinels.js.map +0 -1
  42. package/dist/esm/hooks/node/useWrappedSentinelFromNode.js +0 -4
  43. package/dist/esm/hooks/node/useWrappedSentinelFromNode.js.map +0 -1
  44. package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js +0 -4
  45. package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js.map +0 -1
  46. package/dist/esm/hooks/useWrappedSentinel.js +0 -4
  47. package/dist/esm/hooks/useWrappedSentinel.js.map +0 -1
  48. package/dist/esm/hooks/useWrappedSentinels.js +0 -4
  49. package/dist/esm/hooks/useWrappedSentinels.js.map +0 -1
  50. package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts +0 -58
  51. package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts.map +0 -1
  52. package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts +0 -58
  53. package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts.map +0 -1
  54. package/dist/types/hooks/useWrappedSentinel.d.ts +0 -113
  55. package/dist/types/hooks/useWrappedSentinel.d.ts.map +0 -1
  56. package/dist/types/hooks/useWrappedSentinels.d.ts +0 -113
  57. package/dist/types/hooks/useWrappedSentinels.d.ts.map +0 -1
  58. package/src/hooks/node/useWrappedSentinelFromNode.tsx +0 -4
  59. package/src/hooks/node/useWrappedSentinelsFromNode.tsx +0 -4
  60. package/src/hooks/useWrappedSentinel.tsx +0 -4
  61. package/src/hooks/useWrappedSentinels.tsx +0 -4
@@ -1,113 +0,0 @@
1
- import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinel: (module?: import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
- readonly name?: string | undefined;
5
- readonly paging?: Record<string, {
6
- size?: number | undefined;
7
- }> | undefined;
8
- readonly schema: string;
9
- readonly security?: {
10
- readonly allowAnonymous?: boolean | undefined;
11
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
12
- readonly disallowed?: Record<string, string[]> | undefined;
13
- } | undefined;
14
- readonly storeQueries?: boolean | undefined;
15
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
17
- readonly name?: string | undefined;
18
- readonly paging?: Record<string, {
19
- size?: number | undefined;
20
- }> | undefined;
21
- readonly schema: "network.xyo.sentinel.config";
22
- readonly security?: {
23
- readonly allowAnonymous?: boolean | undefined;
24
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
25
- readonly disallowed?: Record<string, string[]> | undefined;
26
- } | undefined;
27
- readonly storeQueries?: boolean | undefined;
28
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
29
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
30
- readonly name?: string | undefined;
31
- readonly paging?: Record<string, {
32
- size?: number | undefined;
33
- }> | undefined;
34
- readonly schema: string;
35
- readonly security?: {
36
- readonly allowAnonymous?: boolean | undefined;
37
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
38
- readonly disallowed?: Record<string, string[]> | undefined;
39
- } | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- } & Omit<{
42
- archivists?: string[] | undefined;
43
- schema: string;
44
- }, "schema"> & {
45
- schema: string;
46
- } & {
47
- schema: "network.xyo.sentinel.config";
48
- witnesses?: string[] | undefined;
49
- } & {
50
- schema: string;
51
- }, "schema"> & {
52
- schema: "network.xyo.sentinel.config";
53
- }, "schema"> & {
54
- schema: string;
55
- }, "schema"> & {
56
- schema: string;
57
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData> | null | undefined, account?: import("@xyo-network/account-model").AccountInstance | null | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
58
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
59
- readonly name?: string | undefined;
60
- readonly paging?: Record<string, {
61
- size?: number | undefined;
62
- }> | undefined;
63
- readonly schema: string;
64
- readonly security?: {
65
- readonly allowAnonymous?: boolean | undefined;
66
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
67
- readonly disallowed?: Record<string, string[]> | undefined;
68
- } | undefined;
69
- readonly storeQueries?: boolean | undefined;
70
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
71
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
72
- readonly name?: string | undefined;
73
- readonly paging?: Record<string, {
74
- size?: number | undefined;
75
- }> | undefined;
76
- readonly schema: "network.xyo.sentinel.config";
77
- readonly security?: {
78
- readonly allowAnonymous?: boolean | undefined;
79
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
80
- readonly disallowed?: Record<string, string[]> | undefined;
81
- } | undefined;
82
- readonly storeQueries?: boolean | undefined;
83
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
84
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
85
- readonly name?: string | undefined;
86
- readonly paging?: Record<string, {
87
- size?: number | undefined;
88
- }> | undefined;
89
- readonly schema: string;
90
- readonly security?: {
91
- readonly allowAnonymous?: boolean | undefined;
92
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
93
- readonly disallowed?: Record<string, string[]> | undefined;
94
- } | undefined;
95
- readonly storeQueries?: boolean | undefined;
96
- } & Omit<{
97
- archivists?: string[] | undefined;
98
- schema: string;
99
- }, "schema"> & {
100
- schema: string;
101
- } & {
102
- schema: "network.xyo.sentinel.config";
103
- witnesses?: string[] | undefined;
104
- } & {
105
- schema: string;
106
- }, "schema"> & {
107
- schema: "network.xyo.sentinel.config";
108
- }, "schema"> & {
109
- schema: string;
110
- }, "schema"> & {
111
- schema: string;
112
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>> | undefined, Error | undefined];
113
- //# sourceMappingURL=useWrappedSentinel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinel.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wGAAmD,CAAA"}
@@ -1,113 +0,0 @@
1
- import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinels: (modules?: import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
- readonly name?: string | undefined;
5
- readonly paging?: Record<string, {
6
- size?: number | undefined;
7
- }> | undefined;
8
- readonly schema: string;
9
- readonly security?: {
10
- readonly allowAnonymous?: boolean | undefined;
11
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
12
- readonly disallowed?: Record<string, string[]> | undefined;
13
- } | undefined;
14
- readonly storeQueries?: boolean | undefined;
15
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
17
- readonly name?: string | undefined;
18
- readonly paging?: Record<string, {
19
- size?: number | undefined;
20
- }> | undefined;
21
- readonly schema: "network.xyo.sentinel.config";
22
- readonly security?: {
23
- readonly allowAnonymous?: boolean | undefined;
24
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
25
- readonly disallowed?: Record<string, string[]> | undefined;
26
- } | undefined;
27
- readonly storeQueries?: boolean | undefined;
28
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
29
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
30
- readonly name?: string | undefined;
31
- readonly paging?: Record<string, {
32
- size?: number | undefined;
33
- }> | undefined;
34
- readonly schema: string;
35
- readonly security?: {
36
- readonly allowAnonymous?: boolean | undefined;
37
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
38
- readonly disallowed?: Record<string, string[]> | undefined;
39
- } | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- } & Omit<{
42
- archivists?: string[] | undefined;
43
- schema: string;
44
- }, "schema"> & {
45
- schema: string;
46
- } & {
47
- schema: "network.xyo.sentinel.config";
48
- witnesses?: string[] | undefined;
49
- } & {
50
- schema: string;
51
- }, "schema"> & {
52
- schema: "network.xyo.sentinel.config";
53
- }, "schema"> & {
54
- schema: string;
55
- }, "schema"> & {
56
- schema: string;
57
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>[] | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
58
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
59
- readonly name?: string | undefined;
60
- readonly paging?: Record<string, {
61
- size?: number | undefined;
62
- }> | undefined;
63
- readonly schema: string;
64
- readonly security?: {
65
- readonly allowAnonymous?: boolean | undefined;
66
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
67
- readonly disallowed?: Record<string, string[]> | undefined;
68
- } | undefined;
69
- readonly storeQueries?: boolean | undefined;
70
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
71
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
72
- readonly name?: string | undefined;
73
- readonly paging?: Record<string, {
74
- size?: number | undefined;
75
- }> | undefined;
76
- readonly schema: "network.xyo.sentinel.config";
77
- readonly security?: {
78
- readonly allowAnonymous?: boolean | undefined;
79
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
80
- readonly disallowed?: Record<string, string[]> | undefined;
81
- } | undefined;
82
- readonly storeQueries?: boolean | undefined;
83
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
84
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
85
- readonly name?: string | undefined;
86
- readonly paging?: Record<string, {
87
- size?: number | undefined;
88
- }> | undefined;
89
- readonly schema: string;
90
- readonly security?: {
91
- readonly allowAnonymous?: boolean | undefined;
92
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
93
- readonly disallowed?: Record<string, string[]> | undefined;
94
- } | undefined;
95
- readonly storeQueries?: boolean | undefined;
96
- } & Omit<{
97
- archivists?: string[] | undefined;
98
- schema: string;
99
- }, "schema"> & {
100
- schema: string;
101
- } & {
102
- schema: "network.xyo.sentinel.config";
103
- witnesses?: string[] | undefined;
104
- } & {
105
- schema: string;
106
- }, "schema"> & {
107
- schema: "network.xyo.sentinel.config";
108
- }, "schema"> & {
109
- schema: string;
110
- }, "schema"> & {
111
- schema: string;
112
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>>[] | undefined, Error | undefined];
113
- //# sourceMappingURL=useWrappedSentinels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinels.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinels.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0GAAoD,CAAA"}
@@ -1,4 +0,0 @@
1
- import { WrappedModuleFromNodeHookFactory } from '@xyo-network/react-node'
2
- import { SentinelWrapper } from '@xyo-network/sentinel'
3
-
4
- export const useWrappedSentinelFromNode = WrappedModuleFromNodeHookFactory.create(SentinelWrapper, 'useWrappedSentinelFromNode')
@@ -1,4 +0,0 @@
1
- import { WrappedModulesFromNodeHookFactory } from '@xyo-network/react-node'
2
- import { SentinelWrapper } from '@xyo-network/sentinel'
3
-
4
- export const useWrappedSentinelsFromNode = WrappedModulesFromNodeHookFactory.create(SentinelWrapper, 'useWrappedSentinelsFromNode')
@@ -1,4 +0,0 @@
1
- import { WrappedModuleHookFactory } from '@xyo-network/react-module'
2
- import { SentinelWrapper } from '@xyo-network/sentinel'
3
-
4
- export const useWrappedSentinel = WrappedModuleHookFactory.create(SentinelWrapper)
@@ -1,4 +0,0 @@
1
- import { WrappedModulesHookFactory } from '@xyo-network/react-module'
2
- import { SentinelWrapper } from '@xyo-network/sentinel'
3
-
4
- export const useWrappedSentinels = WrappedModulesHookFactory.create(SentinelWrapper)