@xyo-network/react-archivist 6.1.3 → 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.
@@ -1,44 +1,3 @@
1
- import { CardProps, CardContentProps, CardHeaderProps } from '@mui/material';
2
- import { ArchivistInstance } from '@xyo-network/archivist-model';
3
- import * as _xyo_network_react_module from '@xyo-network/react-module';
4
- import { ModuleRenderProps, RefreshCallback } from '@xyo-network/react-module';
5
- import React from 'react';
6
- import { FlexBoxProps } from '@xylabs/react-flexbox';
7
- import { ModuleFromNodeConfig, WeakModuleFromNodeConfig } from '@xyo-network/react-node';
8
- import { ModuleIdentifier } from '@xyo-network/module-model';
9
- import * as _xylabs_react_promise from '@xylabs/react-promise';
10
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
11
- import { Payload } from '@xyo-network/payload-model';
12
- import { Hash } from '@xylabs/hex';
13
-
14
- declare const ArchivistCard: React.FC<CardProps & ModuleRenderProps<ArchivistInstance>>;
15
-
16
- declare const ArchivistCardContent: React.FC<ModuleRenderProps<ArchivistInstance> & CardContentProps>;
17
-
18
- declare const ArchivistCardHeader: React.FC<ModuleRenderProps<ArchivistInstance> & CardHeaderProps>;
19
-
20
- interface ArchivistDetailsProps extends FlexBoxProps {
21
- address?: string;
22
- }
23
- declare const ArchivistDetails: React.FC<ArchivistDetailsProps>;
24
-
25
- /** @deprecated use useWeakArchivistFromNode */
26
- declare const useArchivistFromNode: (nameOrAddressOrInstance?: string | ArchivistInstance, config?: ModuleFromNodeConfig) => [ArchivistInstance | undefined, Error | undefined];
27
-
28
- /** @deprecated use useWeakArchivistsFromNode */
29
- declare const useArchivistsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [ArchivistInstance[] | null | undefined, Error | undefined];
30
-
31
- declare const useWeakArchivistFromNode: (nameOrAddressOrInstance?: string | ArchivistInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<ArchivistInstance> | undefined, Error | undefined];
32
-
33
- declare const useWeakArchivistsFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<ArchivistInstance>[] | null | undefined, Error | undefined];
34
-
35
- declare const useArchivistAll: (archivist: ArchivistInstance) => (Error | _xyo_network_react_module.RefreshCallback | [_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.Payload>>[] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined] | undefined)[];
36
-
37
- declare const useArchivistGet: <T extends Payload = Payload>(archivist?: ArchivistInstance | null, hashes?: Hash[]) => [T[] | undefined, Error | undefined, RefreshCallback];
38
-
39
- declare const useWeakArchivistAll: (archivist: WeakRef<ArchivistInstance>) => (Error | _xyo_network_react_module.RefreshCallback | [_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.Payload>>[] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined] | undefined)[];
40
-
41
- declare const useWeakArchivistGet: <T extends Payload = Payload>(archivist?: WeakRef<ArchivistInstance> | null, hashes?: Hash[]) => [T[] | undefined, Error | undefined, RefreshCallback];
42
-
43
- export { ArchivistCard, ArchivistCardContent, ArchivistCardHeader, ArchivistDetails, useArchivistAll, useArchivistFromNode, useArchivistGet, useArchivistsFromNode, useWeakArchivistAll, useWeakArchivistFromNode, useWeakArchivistGet, useWeakArchivistsFromNode };
44
- export type { ArchivistDetailsProps };
1
+ export * from './components/index.ts';
2
+ export * from './hooks/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-archivist",
3
- "version": "6.1.3",
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,37 +39,37 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/exists": "^4.13.21",
43
- "@xylabs/hex": "^4.13.21",
44
- "@xylabs/react-async-effect": "^6.3.13",
45
- "@xylabs/react-button": "^6.3.13",
46
- "@xylabs/react-flexbox": "^6.3.13",
47
- "@xylabs/react-promise": "^6.3.13",
48
- "@xyo-network/archivist-memory": "^4.1.4",
49
- "@xyo-network/archivist-model": "^4.1.4",
50
- "@xyo-network/boundwitness-builder": "^4.1.4",
51
- "@xyo-network/boundwitness-model": "^4.1.4",
52
- "@xyo-network/module-model": "^4.1.4",
53
- "@xyo-network/module-wrapper": "^4.1.4",
54
- "@xyo-network/payload-model": "^4.1.4",
55
- "@xyo-network/react-module": "^6.1.3",
56
- "@xyo-network/react-node": "^6.1.3",
57
- "@xyo-network/react-wallet": "^6.1.3",
42
+ "@xylabs/exists": "^4.15.0",
43
+ "@xylabs/hex": "^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
+ "@xyo-network/archivist-memory": "^4.3.0",
49
+ "@xyo-network/archivist-model": "^4.3.0",
50
+ "@xyo-network/boundwitness-builder": "^4.3.0",
51
+ "@xyo-network/boundwitness-model": "^4.3.0",
52
+ "@xyo-network/module-model": "^4.3.0",
53
+ "@xyo-network/module-wrapper": "^4.3.0",
54
+ "@xyo-network/payload-model": "^4.3.0",
55
+ "@xyo-network/react-module": "^6.2.0",
56
+ "@xyo-network/react-node": "^6.2.0",
57
+ "@xyo-network/react-wallet": "^6.2.0",
58
58
  "react-icons": "^5.5.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@mui/icons-material": "^7.2.0",
62
62
  "@mui/material": "^7.2.0",
63
- "@storybook/react-vite": "^9.0.17",
63
+ "@storybook/react-vite": "^9.0.18",
64
64
  "@types/react": "^19.1.8",
65
- "@xylabs/events": "^4.13.21",
66
- "@xylabs/ts-scripts-yarn3": "next",
67
- "@xylabs/tsconfig-react": "next",
68
- "@xyo-network/account": "^4.1.4",
69
- "@xyo-network/node-memory": "^4.1.4",
70
- "react": "^19.1.0",
71
- "react-dom": "^19.1.0",
72
- "storybook": "^9.0.17",
65
+ "@xylabs/events": "^4.15.0",
66
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
67
+ "@xylabs/tsconfig-react": "^7.0.1",
68
+ "@xyo-network/account": "^4.3.0",
69
+ "@xyo-network/node-memory": "^4.3.0",
70
+ "react": "^19.1.1",
71
+ "react-dom": "^19.1.1",
72
+ "storybook": "^9.0.18",
73
73
  "typescript": "^5.8.3"
74
74
  },
75
75
  "peerDependencies": {