@xyo-network/react-module 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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Diviner/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Card/Diviner/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;AAI1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,QAAA,MAAM,cAAc,EAA+C,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA;AA2B3F,QAAA,MAAM,YAAY;;sYAAoB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,eAAe,cAAc,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
6
|
-
|
|
7
|
-
type ModuleRenderProps<T extends ModuleInstance = ModuleInstance> = {
|
|
8
|
-
address?: string;
|
|
9
|
-
mod?: T;
|
|
10
|
-
name?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
declare const DivinerCard: React.FC<CardProps & ModuleRenderProps<DivinerInstance>>;
|
|
14
|
-
|
|
15
|
-
declare const DivinerCardContent: React.FC<ModuleRenderProps<DivinerInstance> & CardContentProps>;
|
|
16
|
-
|
|
17
|
-
declare const DivinerCardHeader: React.FC<ModuleRenderProps<DivinerInstance> & CardHeaderProps>;
|
|
18
|
-
|
|
19
|
-
declare const ModuleCard: React.FC<CardProps & ModuleRenderProps>;
|
|
20
|
-
|
|
21
|
-
declare const ModuleCardActions: React.FC<CardActionsProps & ModuleRenderProps>;
|
|
22
|
-
|
|
23
|
-
declare const ModuleCardContent: React.FC<ModuleRenderProps & CardContentProps>;
|
|
24
|
-
|
|
25
|
-
declare const ModuleCardHeader: React.FC<ModuleRenderProps & CardHeaderProps>;
|
|
26
|
-
|
|
27
|
-
declare const ModuleDetailsBox: React.FC<ModuleRenderProps & FlexBoxProps>;
|
|
28
|
-
|
|
29
|
-
declare const ModuleTableCell: React.FC<ModuleRenderProps & TableCellProps>;
|
|
30
|
-
|
|
31
|
-
type RefreshCallback = () => number;
|
|
32
|
-
type DisableCallback = () => void;
|
|
33
|
-
declare const useRefresh: () => [number, RefreshCallback, DisableCallback];
|
|
34
|
-
|
|
35
|
-
export { DivinerCard, DivinerCardContent, DivinerCardHeader, ModuleCard, ModuleCardActions, ModuleCardContent, ModuleCardHeader, ModuleDetailsBox, ModuleTableCell, useRefresh };
|
|
36
|
-
export type { DisableCallback, ModuleRenderProps, RefreshCallback };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './hooks/index.ts';
|
|
3
|
+
export * from './ModuleRenderProps.tsx';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-module",
|
|
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,30 +39,31 @@
|
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/eth-address": "^4.
|
|
43
|
-
"@xylabs/react-button": "^6.
|
|
44
|
-
"@xylabs/react-crypto": "^6.
|
|
45
|
-
"@xylabs/react-flexbox": "^6.
|
|
46
|
-
"@xylabs/react-promise": "^6.
|
|
47
|
-
"@xyo-network/diviner-model": "^4.
|
|
48
|
-
"@xyo-network/module-model": "^4.
|
|
49
|
-
"@xyo-network/react-shared": "^6.
|
|
42
|
+
"@xylabs/eth-address": "^4.15.0",
|
|
43
|
+
"@xylabs/react-button": "^6.4.0",
|
|
44
|
+
"@xylabs/react-crypto": "^6.4.0",
|
|
45
|
+
"@xylabs/react-flexbox": "^6.4.0",
|
|
46
|
+
"@xylabs/react-promise": "^6.4.0",
|
|
47
|
+
"@xyo-network/diviner-model": "^4.3.0",
|
|
48
|
+
"@xyo-network/module-model": "^4.3.0",
|
|
49
|
+
"@xyo-network/react-shared": "^6.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@mui/icons-material": "^7.2.0",
|
|
53
53
|
"@mui/material": "^7.2.0",
|
|
54
54
|
"@storybook/react-vite": "^9.0.18",
|
|
55
55
|
"@types/react": "^19.1.8",
|
|
56
|
-
"@xylabs/
|
|
57
|
-
"@xylabs/
|
|
58
|
-
"@xylabs/
|
|
59
|
-
"@
|
|
60
|
-
"@xyo-network/archivist
|
|
56
|
+
"@xylabs/hex": "^4.15.0",
|
|
57
|
+
"@xylabs/react-async-effect": "^6.4.0",
|
|
58
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
59
|
+
"@xylabs/tsconfig-react": "^7.0.1",
|
|
60
|
+
"@xyo-network/archivist": "^4.3.0",
|
|
61
|
+
"@xyo-network/archivist-memory": "^4.3.0",
|
|
61
62
|
"@xyo-network/crypto-asset-plugin": "^4.1.1",
|
|
62
|
-
"@xyo-network/diviner-address-history": "^4.
|
|
63
|
-
"@xyo-network/node-memory": "^4.
|
|
64
|
-
"react": "^19.1.
|
|
65
|
-
"react-dom": "^19.1.
|
|
63
|
+
"@xyo-network/diviner-address-history": "^4.3.0",
|
|
64
|
+
"@xyo-network/node-memory": "^4.3.0",
|
|
65
|
+
"react": "^19.1.1",
|
|
66
|
+
"react-dom": "^19.1.1",
|
|
66
67
|
"storybook": "^9.0.18",
|
|
67
68
|
"typescript": "^5.8.3"
|
|
68
69
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
2
|
+
import type { Address } from '@xylabs/hex'
|
|
2
3
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
3
4
|
import { AddressHistoryDiviner, AddressHistoryDivinerConfigSchema } from '@xyo-network/diviner-address-history'
|
|
4
5
|
import type { DivinerInstance } from '@xyo-network/diviner-model'
|
|
@@ -17,7 +18,7 @@ const Template: StoryFn<typeof DivinerCard> = () => {
|
|
|
17
18
|
if (!mod) {
|
|
18
19
|
const newModule = (await AddressHistoryDiviner.create({
|
|
19
20
|
config: {
|
|
20
|
-
address: '',
|
|
21
|
+
address: '' as Address,
|
|
21
22
|
name: 'AddressHistoryDiviner',
|
|
22
23
|
schema: AddressHistoryDivinerConfigSchema,
|
|
23
24
|
},
|