@xyo-network/react-payload-details 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/Details/Details.stories.d.ts +38 -0
- package/dist/browser/components/Details/Details.stories.d.ts.map +1 -0
- package/dist/browser/components/Details/ValidationDetails/ValidationDetails.stories.d.ts +9 -0
- package/dist/browser/components/Details/ValidationDetails/ValidationDetails.stories.d.ts.map +1 -0
- package/dist/browser/index.d.ts +41 -0
- package/package.json +21 -20
- package/dist/types/index.d.ts +0 -2
- /package/dist/{types → browser}/components/Details/DataDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/DataDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/Details.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/Details.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/HashSourceDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/HashSourceDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/JsonDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/JsonDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetails.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetailsProps.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetailsProps.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/index.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/ValidationDetails/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/Details/index.d.ts +0 -0
- /package/dist/{types → browser}/components/Details/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}/index.d.ts.map +0 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
2
|
+
import { PayloadDetails } from './Details.tsx';
|
3
|
+
declare const StorybookEntry: Meta<typeof PayloadDetails>;
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
5
|
+
paper?: boolean;
|
6
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
7
|
+
}>;
|
8
|
+
declare const WithSample: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
9
|
+
paper?: boolean;
|
10
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
11
|
+
}>;
|
12
|
+
declare const WithBuilderSample: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
13
|
+
paper?: boolean;
|
14
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
15
|
+
}>;
|
16
|
+
declare const WithArchiveLink: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
17
|
+
paper?: boolean;
|
18
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
19
|
+
}>;
|
20
|
+
declare const DefaultPaper: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
21
|
+
paper?: boolean;
|
22
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
23
|
+
}>;
|
24
|
+
declare const WithSamplePaper: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
25
|
+
paper?: boolean;
|
26
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
27
|
+
}>;
|
28
|
+
declare const WithBuilderSamplePaper: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
29
|
+
paper?: boolean;
|
30
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
31
|
+
}>;
|
32
|
+
declare const WithArchiveLinkPaper: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("@xylabs/react-flexbox").BusyBoxProps & {
|
33
|
+
paper?: boolean;
|
34
|
+
payload?: import("@xyo-network/payload-model").Payload;
|
35
|
+
}>;
|
36
|
+
export { Default, DefaultPaper, WithArchiveLink, WithArchiveLinkPaper, WithBuilderSample, WithBuilderSamplePaper, WithSample, WithSamplePaper, };
|
37
|
+
export default StorybookEntry;
|
38
|
+
//# sourceMappingURL=Details.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Details.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;AAO1D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,QAAA,MAAM,cAAc,EAKf,IAAI,CAAC,OAAO,cAAc,CAAC,CAAA;AAWhC,QAAA,MAAM,OAAO;;;EAAoB,CAAA;AAGjC,QAAA,MAAM,UAAU;;;EAAoB,CAAA;AAGpC,QAAA,MAAM,iBAAiB;;;EAAoB,CAAA;AAG3C,QAAA,MAAM,eAAe;;;EAAoB,CAAA;AAGzC,QAAA,MAAM,YAAY;;;EAAoB,CAAA;AAGtC,QAAA,MAAM,eAAe;;;EAAoB,CAAA;AAGzC,QAAA,MAAM,sBAAsB;;;EAAoB,CAAA;AAGhD,QAAA,MAAM,oBAAoB;;;EAAoB,CAAA;AAG9C,OAAO,EACL,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,UAAU,EAAE,eAAe,GACrI,CAAA;AAED,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
2
|
+
import type { PayloadValidationDetailsProps } from './ValidationDetailsProps.ts';
|
3
|
+
declare const StorybookEntry: Meta;
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, PayloadValidationDetailsProps>;
|
5
|
+
declare const WithErrorsInToolTip: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, PayloadValidationDetailsProps>;
|
6
|
+
declare const SkipBody: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, PayloadValidationDetailsProps>;
|
7
|
+
export { Default, SkipBody, WithErrorsInToolTip, };
|
8
|
+
export default StorybookEntry;
|
9
|
+
//# sourceMappingURL=ValidationDetails.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValidationDetails.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/ValidationDetails/ValidationDetails.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;AAQ1D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAEhF,QAAA,MAAM,cAAc,EAAE,IAMrB,CAAA;AAQD,QAAA,MAAM,OAAO,iIAAoB,CAAA;AAGjC,QAAA,MAAM,mBAAmB,iIAAoB,CAAA;AAW7C,QAAA,MAAM,QAAQ,iIAAoB,CAAA;AAYlC,OAAO,EACL,OAAO,EAAE,QAAQ,EAAE,mBAAmB,GACvC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
2
|
+
import { PropertyProps, PropertyGroupProps } from '@xyo-network/react-property';
|
3
|
+
import { SizeProp } from '@xyo-network/react-shared';
|
4
|
+
import React from 'react';
|
5
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
6
|
+
import { JsonViewerExProps } from '@xyo-network/react-payload-raw-info';
|
7
|
+
|
8
|
+
type PayloadDataDetailsProps = PropertyProps & {
|
9
|
+
badge?: boolean;
|
10
|
+
payload?: Payload;
|
11
|
+
size?: SizeProp;
|
12
|
+
};
|
13
|
+
declare const PayloadDataDetails: React.FC<PayloadDataDetailsProps>;
|
14
|
+
|
15
|
+
type WithPaper<T> = T & {
|
16
|
+
paper: true;
|
17
|
+
};
|
18
|
+
type WithoutPaper<T> = T & {
|
19
|
+
paper?: false;
|
20
|
+
};
|
21
|
+
type PayloadDetailsProps = FlexBoxProps & {
|
22
|
+
paper?: boolean;
|
23
|
+
payload?: Payload;
|
24
|
+
};
|
25
|
+
declare const PayloadDetails: React.FC<PayloadDetailsProps>;
|
26
|
+
|
27
|
+
type PayloadJsonDetailsProps = PropertyGroupProps & {
|
28
|
+
jsonViewProps?: JsonViewerExProps;
|
29
|
+
payload?: Payload;
|
30
|
+
};
|
31
|
+
declare const PayloadJsonDetails: React.FC<PayloadJsonDetailsProps>;
|
32
|
+
|
33
|
+
type PayloadValidationDetailsProps = PropertyGroupProps & {
|
34
|
+
skipBody?: boolean;
|
35
|
+
value?: Payload;
|
36
|
+
};
|
37
|
+
|
38
|
+
declare const PayloadValidationDetails: React.FC<PayloadValidationDetailsProps>;
|
39
|
+
|
40
|
+
export { PayloadDataDetails, PayloadDetails, PayloadJsonDetails, PayloadValidationDetails };
|
41
|
+
export type { PayloadDataDetailsProps, PayloadDetailsProps, PayloadJsonDetailsProps, PayloadValidationDetailsProps, WithPaper, WithoutPaper };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xyo-network/react-payload-details",
|
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,43 +28,44 @@
|
|
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/forget": "^4.
|
43
|
-
"@xylabs/react-button": "^6.3.
|
44
|
-
"@xylabs/react-flexbox": "^6.3.
|
45
|
-
"@xylabs/react-promise": "^6.3.
|
46
|
-
"@xylabs/react-quick-tip-button": "^6.3.
|
47
|
-
"@xyo-network/payload-builder": "^4.
|
48
|
-
"@xyo-network/payload-model": "^4.
|
49
|
-
"@xyo-network/payload-validator": "^4.
|
50
|
-
"@xyo-network/react-payload-raw-info": "^6.
|
51
|
-
"@xyo-network/react-property": "^6.
|
52
|
-
"@xyo-network/react-schema": "^6.
|
53
|
-
"@xyo-network/react-shared": "^6.
|
42
|
+
"@xylabs/forget": "^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
|
+
"@xylabs/react-quick-tip-button": "^6.3.10",
|
47
|
+
"@xyo-network/payload-builder": "^4.1.1",
|
48
|
+
"@xyo-network/payload-model": "^4.1.1",
|
49
|
+
"@xyo-network/payload-validator": "^4.1.1",
|
50
|
+
"@xyo-network/react-payload-raw-info": "^6.1.0",
|
51
|
+
"@xyo-network/react-property": "^6.1.0",
|
52
|
+
"@xyo-network/react-schema": "^6.1.0",
|
53
|
+
"@xyo-network/react-shared": "^6.1.0"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@emotion/react": "^11.14.0",
|
57
57
|
"@emotion/styled": "^11.14.1",
|
58
58
|
"@mui/icons-material": "^7.2.0",
|
59
59
|
"@mui/material": "^7.2.0",
|
60
|
+
"@storybook/react-vite": "^9.0.16",
|
60
61
|
"@types/react": "^19.1.8",
|
61
|
-
"@xylabs/ts-scripts-yarn3": "
|
62
|
-
"@xylabs/tsconfig-react": "
|
63
|
-
"@xyo-network/react-storybook": "^6.
|
62
|
+
"@xylabs/ts-scripts-yarn3": "next",
|
63
|
+
"@xylabs/tsconfig-react": "next",
|
64
|
+
"@xyo-network/react-storybook": "^6.1.0",
|
64
65
|
"react": "^19.1.0",
|
65
66
|
"react-dom": "^19.1.0",
|
66
67
|
"react-router-dom": "^7.6.3",
|
67
|
-
"storybook": "^9.0.
|
68
|
+
"storybook": "^9.0.16",
|
68
69
|
"typescript": "^5.8.3"
|
69
70
|
},
|
70
71
|
"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
|
/package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetails.d.ts.map
RENAMED
File without changes
|
/package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetailsProps.d.ts
RENAMED
File without changes
|
/package/dist/{types → browser}/components/Details/ValidationDetails/ValidationDetailsProps.d.ts.map
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|