@xyo-network/react-sentinel 2.56.5 → 2.56.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  import { useModuleFromNode } from '@xyo-network/react-node';
2
- export const useSentinelFromNode = (nameOrAddressOrFilter, logger) => useModuleFromNode(nameOrAddressOrFilter, logger);
2
+ export const useSentinelFromNode = (nameOrAddress, up = false, logger) => useModuleFromNode(nameOrAddress, up, logger);
3
3
  //# sourceMappingURL=useSentinelFromNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAG3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,qBAA6C,EAAE,MAAe,EAAE,EAAE,CACpG,iBAAiB,CAAiB,qBAAqB,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"useSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAG3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAsB,EAAE,EAAE,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE,CACzF,iBAAiB,CAAiB,aAAa,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { useModulesFromNode } from '@xyo-network/react-node';
2
- export const useSentinelsFromNode = (filter, logger) => useModulesFromNode(filter, logger);
2
+ export const useSentinelsFromNode = (filter, up = false, logger) => useModulesFromNode(filter, up, logger);
3
3
  //# sourceMappingURL=useSentinelsFromNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAG5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAqB,EAAE,MAAe,EAAE,EAAE,CAAC,kBAAkB,CAAiB,MAAM,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"useSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAG5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAqB,EAAE,EAAE,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE,CAAC,kBAAkB,CAAiB,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA"}
@@ -1,8 +1,7 @@
1
1
  import { Logger } from '@xyo-network/core';
2
- import { ModuleFilter } from '@xyo-network/module';
3
2
  import { SentinelModule } from '@xyo-network/sentinel';
4
- export declare const useSentinelFromNode: (nameOrAddressOrFilter?: string | ModuleFilter, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
3
+ export declare const useSentinelFromNode: (nameOrAddress?: string, up?: boolean, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
6
5
  readonly name?: string | undefined;
7
6
  readonly paging?: Record<string, {
8
7
  size?: number | undefined;
@@ -10,12 +9,12 @@ export declare const useSentinelFromNode: (nameOrAddressOrFilter?: string | Modu
10
9
  readonly schema: string;
11
10
  readonly security?: {
12
11
  readonly allowAnonymous?: boolean | undefined;
13
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
12
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
14
13
  readonly disallowed?: Record<string, string[]> | undefined;
15
14
  } | undefined;
16
15
  readonly storeQueries?: boolean | undefined;
17
16
  } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
17
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
19
18
  readonly name?: string | undefined;
20
19
  readonly paging?: Record<string, {
21
20
  size?: number | undefined;
@@ -23,12 +22,12 @@ export declare const useSentinelFromNode: (nameOrAddressOrFilter?: string | Modu
23
22
  readonly schema: "network.xyo.sentinel.config";
24
23
  readonly security?: {
25
24
  readonly allowAnonymous?: boolean | undefined;
26
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
25
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
27
26
  readonly disallowed?: Record<string, string[]> | undefined;
28
27
  } | undefined;
29
28
  readonly storeQueries?: boolean | undefined;
30
29
  } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
31
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
30
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
32
31
  readonly name?: string | undefined;
33
32
  readonly paging?: Record<string, {
34
33
  size?: number | undefined;
@@ -36,7 +35,7 @@ export declare const useSentinelFromNode: (nameOrAddressOrFilter?: string | Modu
36
35
  readonly schema: string;
37
36
  readonly security?: {
38
37
  readonly allowAnonymous?: boolean | undefined;
39
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
38
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
40
39
  readonly disallowed?: Record<string, string[]> | undefined;
41
40
  } | undefined;
42
41
  readonly storeQueries?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,mBAAmB,2BAA4B,MAAM,GAAG,YAAY,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHAChC,CAAA"}
1
+ {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,mBAAmB,mBAAoB,MAAM,yBAAuB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yHACzB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { Logger } from '@xyo-network/core';
2
2
  import { ModuleFilter } from '@xyo-network/module';
3
3
  import { SentinelModule } from '@xyo-network/sentinel';
4
- export declare const useSentinelsFromNode: (filter?: ModuleFilter, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
+ export declare const useSentinelsFromNode: (filter?: ModuleFilter, up?: boolean, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
5
  readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
6
6
  readonly name?: string | undefined;
7
7
  readonly paging?: Record<string, {
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,oBAAoB,YAAa,YAAY,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2HAAuD,CAAA"}
1
+ {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,oBAAoB,YAAa,YAAY,yBAAuB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2HAA2D,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinelFromNode: (nameOrAddress?: string | undefined, wallet?: import("@xyo-network/wallet-model").WalletInstance | 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 & {
2
+ export declare const useWrappedSentinelFromNode: (nameOrAddress?: string | undefined, wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined, up?: boolean | 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 & {
3
3
  readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
4
  readonly name?: string | undefined;
5
5
  readonly paging?: Record<string, {
@@ -1,5 +1,5 @@
1
1
  import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinelsFromNode: (account?: import("@xyo-network/wallet-model").WalletInstance | 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 & {
2
+ export declare const useWrappedSentinelsFromNode: (account?: import("@xyo-network/wallet-model").WalletInstance | undefined, up?: boolean | 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 & {
3
3
  readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
4
  readonly name?: string | undefined;
5
5
  readonly paging?: Record<string, {
package/package.json CHANGED
@@ -17,10 +17,10 @@
17
17
  "@xyo-network/boundwitness-model": "^2.64.3",
18
18
  "@xyo-network/core": "^2.64.3",
19
19
  "@xyo-network/module": "^2.64.3",
20
- "@xyo-network/react-module": "^2.56.5",
21
- "@xyo-network/react-node": "^2.56.5",
22
- "@xyo-network/react-shared": "^2.56.5",
23
- "@xyo-network/react-witness": "^2.56.5",
20
+ "@xyo-network/react-module": "^2.56.7",
21
+ "@xyo-network/react-node": "^2.56.7",
22
+ "@xyo-network/react-shared": "^2.56.7",
23
+ "@xyo-network/react-witness": "^2.56.7",
24
24
  "@xyo-network/sentinel": "^2.64.3",
25
25
  "@xyo-network/witness": "^2.64.3"
26
26
  },
@@ -81,5 +81,5 @@
81
81
  },
82
82
  "sideEffects": false,
83
83
  "types": "dist/types/index.d.ts",
84
- "version": "2.56.5"
84
+ "version": "2.56.7"
85
85
  }
@@ -1,7 +1,6 @@
1
1
  import { Logger } from '@xyo-network/core'
2
- import { ModuleFilter } from '@xyo-network/module'
3
2
  import { useModuleFromNode } from '@xyo-network/react-node'
4
3
  import { SentinelModule } from '@xyo-network/sentinel'
5
4
 
6
- export const useSentinelFromNode = (nameOrAddressOrFilter?: string | ModuleFilter, logger?: Logger) =>
7
- useModuleFromNode<SentinelModule>(nameOrAddressOrFilter, logger)
5
+ export const useSentinelFromNode = (nameOrAddress?: string, up = false, logger?: Logger) =>
6
+ useModuleFromNode<SentinelModule>(nameOrAddress, up, logger)
@@ -3,4 +3,4 @@ import { ModuleFilter } from '@xyo-network/module'
3
3
  import { useModulesFromNode } from '@xyo-network/react-node'
4
4
  import { SentinelModule } from '@xyo-network/sentinel'
5
5
 
6
- export const useSentinelsFromNode = (filter?: ModuleFilter, logger?: Logger) => useModulesFromNode<SentinelModule>(filter, logger)
6
+ export const useSentinelsFromNode = (filter?: ModuleFilter, up = false, logger?: Logger) => useModulesFromNode<SentinelModule>(filter, up, logger)