@xyo-network/react-witness 6.0.0 → 6.1.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.
- package/dist/browser/components/Card/Card.stories.d.ts +10 -0
- package/dist/browser/components/Card/Card.stories.d.ts.map +1 -0
- package/dist/browser/index.d.ts +27 -0
- package/package.json +18 -17
- package/dist/types/index.d.ts +0 -3
- /package/dist/{types → browser}/components/Card/Card.d.ts +0 -0
- /package/dist/{types → browser}/components/Card/Card.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Card/CardActions.d.ts +0 -0
- /package/dist/{types → browser}/components/Card/CardActions.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Card/CardContent.d.ts +0 -0
- /package/dist/{types → browser}/components/Card/CardContent.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Card/CardHeader.d.ts +0 -0
- /package/dist/{types → browser}/components/Card/CardHeader.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Card/index.d.ts +0 -0
- /package/dist/{types → browser}/components/Card/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/index.d.ts +0 -0
- /package/dist/{types → browser}/components/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/node/index.d.ts +0 -0
- /package/dist/{types → browser}/hooks/node/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/node/useWeakWitnessFromNode.d.ts +0 -0
- /package/dist/{types → browser}/hooks/node/useWeakWitnessFromNode.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/node/useWeakWitnessesFromNode.d.ts +0 -0
- /package/dist/{types → browser}/hooks/node/useWeakWitnessesFromNode.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/node/useWitnessFromNode.d.ts +0 -0
- /package/dist/{types → browser}/hooks/node/useWitnessFromNode.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/node/useWitnessesFromNode.d.ts +0 -0
- /package/dist/{types → browser}/hooks/node/useWitnessesFromNode.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WitnessCard } from './Card.tsx';
|
|
4
|
+
declare const StorybookEntry: Meta<typeof WitnessCard>;
|
|
5
|
+
declare const IdWitnessCard: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "classes" | "className" | "style" | "children" | "sx" | "variant" | "elevation" | "square" | "raised"> & {
|
|
6
|
+
component?: React.ElementType;
|
|
7
|
+
} & import("@xyo-network/react-module").ModuleRenderProps<import("@xyo-network/witness-model").WitnessInstance<import("@xyo-network/witness-model").WitnessParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/witness-model").WitnessConfig<void, void>>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("@xyo-network/witness-model").WitnessModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload>>>>;
|
|
8
|
+
export { IdWitnessCard };
|
|
9
|
+
export default StorybookEntry;
|
|
10
|
+
//# sourceMappingURL=Card.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;AAI1D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,QAAA,MAAM,cAAc,EAIf,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA;AAc7B,QAAA,MAAM,aAAa;;syBAA6B,CAAA;AAEhD,OAAO,EAAE,aAAa,EAAE,CAAA;AAExB,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CardProps, CardContentProps, CardHeaderProps } from '@mui/material';
|
|
2
|
+
import { ModuleRenderProps } from '@xyo-network/react-module';
|
|
3
|
+
import { WitnessInstance } from '@xyo-network/witness-model';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import { ModuleIdentifier } from '@xyo-network/module-model';
|
|
7
|
+
import { ModuleFromNodeConfig, WeakModuleFromNodeConfig } from '@xyo-network/react-node';
|
|
8
|
+
|
|
9
|
+
declare const WitnessCard: React.FC<CardProps & ModuleRenderProps<WitnessInstance>>;
|
|
10
|
+
|
|
11
|
+
type WitnessCardContentProps = ModuleRenderProps<WitnessInstance> & CardContentProps & {
|
|
12
|
+
observation?: Payload[];
|
|
13
|
+
};
|
|
14
|
+
declare const WitnessCardContent: React.FC<WitnessCardContentProps>;
|
|
15
|
+
|
|
16
|
+
declare const WitnessCardHeader: React.FC<ModuleRenderProps<WitnessInstance> & CardHeaderProps>;
|
|
17
|
+
|
|
18
|
+
declare const useWeakWitnessesFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WeakRef<WitnessInstance>[] | null | undefined, Error | undefined];
|
|
19
|
+
|
|
20
|
+
declare const useWeakWitnessFromNode: (nameOrAddressOrInstance?: string | WitnessInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<WitnessInstance> | undefined, Error | undefined];
|
|
21
|
+
|
|
22
|
+
declare const useWitnessesFromNode: (ids?: ModuleIdentifier[], config?: ModuleFromNodeConfig) => [WitnessInstance[] | null | undefined, Error | undefined];
|
|
23
|
+
|
|
24
|
+
declare const useWitnessFromNode: (nameOrAddressOrInstance?: string | WitnessInstance, config?: ModuleFromNodeConfig) => [WitnessInstance | undefined, Error | undefined];
|
|
25
|
+
|
|
26
|
+
export { WitnessCard, WitnessCardContent, WitnessCardHeader, useWeakWitnessFromNode, useWeakWitnessesFromNode, useWitnessFromNode, useWitnessesFromNode };
|
|
27
|
+
export type { WitnessCardContentProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-witness",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -28,40 +28,41 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"browser": {
|
|
31
|
-
"types": "./dist/
|
|
31
|
+
"types": "./dist/browser/index.d.ts",
|
|
32
32
|
"default": "./dist/browser/index.mjs"
|
|
33
33
|
},
|
|
34
|
-
"types": "./dist/
|
|
34
|
+
"types": "./dist/browser/index.d.ts",
|
|
35
35
|
"default": "./dist/browser/index.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/
|
|
40
|
+
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/exists": "^4.
|
|
43
|
-
"@xylabs/react-button": "^6.3.
|
|
44
|
-
"@xylabs/react-flexbox": "^6.3.
|
|
45
|
-
"@xylabs/react-promise": "^6.3.
|
|
46
|
-
"@xyo-network/module-model": "^4.
|
|
47
|
-
"@xyo-network/payload-model": "^4.
|
|
48
|
-
"@xyo-network/react-module": "^6.
|
|
49
|
-
"@xyo-network/react-node": "^6.
|
|
50
|
-
"@xyo-network/react-payload-raw-info": "^6.
|
|
51
|
-
"@xyo-network/witness-model": "^4.
|
|
42
|
+
"@xylabs/exists": "^4.13.15",
|
|
43
|
+
"@xylabs/react-button": "^6.3.10",
|
|
44
|
+
"@xylabs/react-flexbox": "^6.3.10",
|
|
45
|
+
"@xylabs/react-promise": "^6.3.10",
|
|
46
|
+
"@xyo-network/module-model": "^4.1.1",
|
|
47
|
+
"@xyo-network/payload-model": "^4.1.1",
|
|
48
|
+
"@xyo-network/react-module": "^6.1.0",
|
|
49
|
+
"@xyo-network/react-node": "^6.1.0",
|
|
50
|
+
"@xyo-network/react-payload-raw-info": "^6.1.0",
|
|
51
|
+
"@xyo-network/witness-model": "^4.1.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@emotion/react": "^11.14.0",
|
|
55
55
|
"@emotion/styled": "^11.14.1",
|
|
56
56
|
"@mui/icons-material": "^7.2.0",
|
|
57
57
|
"@mui/material": "^7.2.0",
|
|
58
|
+
"@storybook/react-vite": "^9.0.16",
|
|
58
59
|
"@types/react": "^19.1.8",
|
|
59
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
60
|
-
"@xylabs/tsconfig-react": "
|
|
60
|
+
"@xylabs/ts-scripts-yarn3": "next",
|
|
61
|
+
"@xylabs/tsconfig-react": "next",
|
|
61
62
|
"@xyo-network/id-plugin": "^4.0.0",
|
|
62
63
|
"react": "^19.1.0",
|
|
63
64
|
"react-dom": "^19.1.0",
|
|
64
|
-
"storybook": "^9.0.
|
|
65
|
+
"storybook": "^9.0.16",
|
|
65
66
|
"typescript": "^5.8.3"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|