@xyo-network/react-archivist 2.49.0 → 2.49.2

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,33 +1,3 @@
1
1
  import { ArchivistWrapper } from '@xyo-network/archivist';
2
- export declare const useArchivist: (nameOrAddress?: string | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- name?: string | undefined;
4
- paging?: Record<string, {
5
- size?: number | undefined;
6
- }> | undefined;
7
- schema: string;
8
- security?: {
9
- allowAnonymous?: boolean | undefined;
10
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
11
- disallowed?: Record<string, string[]> | undefined;
12
- } | undefined;
13
- storeQueries?: boolean | undefined;
14
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
- name?: string | undefined;
16
- paging?: Record<string, {
17
- size?: number | undefined;
18
- }> | undefined;
19
- schema: "network.xyo.archivist.config";
20
- security?: {
21
- allowAnonymous?: boolean | undefined;
22
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
23
- disallowed?: Record<string, string[]> | undefined;
24
- } | undefined;
25
- storeQueries?: boolean | undefined;
26
- } & Omit<{
27
- parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
28
- schema: "network.xyo.archivist.config";
29
- storeParentReads?: boolean | undefined;
30
- } & Omit<undefined, "schema">, "schema">, "schema"> & {
31
- schema: string;
32
- }, "schema">, undefined>, import("@xyo-network/archivist").ArchivistModuleEventData>> | undefined, Error | undefined];
2
+ export declare const useArchivist: (nameOrAddress?: string | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule> | undefined, Error | undefined];
33
3
  //# sourceMappingURL=useArchivist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArchivist.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivist.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qHAA6D,CAAA"}
1
+ {"version":3,"file":"useArchivist.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivist.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,YAAY,kRAA6D,CAAA"}
@@ -6,37 +6,7 @@ export declare const useArchivistStates: <T extends import("@xyo-network/payload
6
6
  } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
7
7
  schema: string;
8
8
  }>() => {
9
- archivist: ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
- name?: string | undefined;
11
- paging?: Record<string, {
12
- size?: number | undefined;
13
- }> | undefined;
14
- schema: string;
15
- security?: {
16
- allowAnonymous?: boolean | undefined;
17
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
18
- disallowed?: Record<string, string[]> | undefined;
19
- } | undefined;
20
- storeQueries?: boolean | undefined;
21
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
22
- name?: string | undefined;
23
- paging?: Record<string, {
24
- size?: number | undefined;
25
- }> | undefined;
26
- schema: "network.xyo.archivist.config";
27
- security?: {
28
- allowAnonymous?: boolean | undefined;
29
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
30
- disallowed?: Record<string, string[]> | undefined;
31
- } | undefined;
32
- storeQueries?: boolean | undefined;
33
- } & Omit<{
34
- parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
35
- schema: "network.xyo.archivist.config";
36
- storeParentReads?: boolean | undefined;
37
- } & Omit<undefined, "schema">, "schema">, "schema"> & {
38
- schema: string;
39
- }, "schema">, undefined>, import("@xyo-network/archivist").ArchivistModuleEventData>> | undefined;
9
+ archivist: ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule> | undefined;
40
10
  error: Error | undefined;
41
11
  payloads: T[] | undefined;
42
12
  refresh: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useArchivistStates.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivistStates.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAMzD,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CAAA;AAExC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB9B,CAAA"}
1
+ {"version":3,"file":"useArchivistStates.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivistStates.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAMzD,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CAAA;AAExC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAgB9B,CAAA"}
@@ -1,33 +1,3 @@
1
1
  import { ArchivistWrapper } from '@xyo-network/archivist';
2
- export declare const useArchivists: (account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- name?: string | undefined;
4
- paging?: Record<string, {
5
- size?: number | undefined;
6
- }> | undefined;
7
- schema: string;
8
- security?: {
9
- allowAnonymous?: boolean | undefined;
10
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
11
- disallowed?: Record<string, string[]> | undefined;
12
- } | undefined;
13
- storeQueries?: boolean | undefined;
14
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
- name?: string | undefined;
16
- paging?: Record<string, {
17
- size?: number | undefined;
18
- }> | undefined;
19
- schema: "network.xyo.archivist.config";
20
- security?: {
21
- allowAnonymous?: boolean | undefined;
22
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
23
- disallowed?: Record<string, string[]> | undefined;
24
- } | undefined;
25
- storeQueries?: boolean | undefined;
26
- } & Omit<{
27
- parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
28
- schema: "network.xyo.archivist.config";
29
- storeParentReads?: boolean | undefined;
30
- } & Omit<undefined, "schema">, "schema">, "schema"> & {
31
- schema: string;
32
- }, "schema">, undefined>, import("@xyo-network/archivist").ArchivistModuleEventData>>[] | undefined, Error | undefined];
2
+ export declare const useArchivists: (account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule>[] | undefined, Error | undefined];
33
3
  //# sourceMappingURL=useArchivists.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useArchivists.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivists.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAA+D,CAAA"}
1
+ {"version":3,"file":"useArchivists.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivists.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,aAAa,gPAA+D,CAAA"}
package/package.json CHANGED
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/eth-address": "^2.7.6",
14
- "@xylabs/react-button": "^2.17.1",
15
- "@xylabs/react-crypto": "^2.17.1",
16
- "@xylabs/react-flexbox": "^2.17.1",
17
- "@xyo-network/react-module": "^2.49.0",
18
- "@xyo-network/react-node": "^2.49.0"
14
+ "@xylabs/react-button": "^2.17.2",
15
+ "@xylabs/react-crypto": "^2.17.2",
16
+ "@xylabs/react-flexbox": "^2.17.2",
17
+ "@xyo-network/react-module": "^2.49.2",
18
+ "@xyo-network/react-node": "^2.49.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@mui/icons-material": "^5",
@@ -29,16 +29,15 @@
29
29
  "description": "Common React library for all XYO projects that use React",
30
30
  "devDependencies": {
31
31
  "@storybook/react": "^7.0.7",
32
- "@xylabs/react-async-effect": "^2.17.1",
33
- "@xylabs/ts-scripts-yarn3": "^2.16.5",
34
- "@xylabs/tsconfig-react": "^2.16.5",
32
+ "@xylabs/react-async-effect": "^2.17.2",
33
+ "@xylabs/ts-scripts-yarn3": "^2.17.6",
34
+ "@xylabs/tsconfig-react": "^2.17.5",
35
35
  "@xyo-network/archivist": "^2.56.0",
36
36
  "@xyo-network/archivist-wrapper": "^2.56.0",
37
37
  "@xyo-network/module": "^2.56.0",
38
38
  "@xyo-network/payload-model": "^2.56.0",
39
- "@xyo-network/react-storybook": "^2.49.0",
40
- "require-from-string": "^2.0.2",
41
- "typescript": "^4.9.5"
39
+ "@xyo-network/react-storybook": "^2.49.2",
40
+ "typescript": "^5.0.4"
42
41
  },
43
42
  "browser": "dist/esm/index.js",
44
43
  "docs": "dist/docs.json",
@@ -82,5 +81,5 @@
82
81
  },
83
82
  "sideEffects": false,
84
83
  "types": "dist/types/index.d.ts",
85
- "version": "2.49.0"
84
+ "version": "2.49.2"
86
85
  }