@xyo-network/react-payload-details 10.0.3 → 10.0.5
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.d.ts +1 -1
- package/dist/browser/components/Details/Details.d.ts.map +1 -1
- package/dist/browser/components/Details/HashSourceDetails.d.ts +1 -1
- package/dist/browser/components/Details/HashSourceDetails.d.ts.map +1 -1
- package/dist/browser/index.mjs +11 -11
- package/dist/browser/index.mjs.map +3 -3
- package/package.json +87 -105
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,CAAA;AAC9C,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AAEnD,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmBxD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@
|
|
1
|
+
import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
|
|
2
2
|
import type { Payload } from '@xyo-network/sdk';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export interface PayloadHashSourceDetailsProps extends FlexBoxProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashSourceDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/HashSourceDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HashSourceDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/HashSourceDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AASjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAiE5E,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// src/components/Details/DataDetails.tsx
|
|
2
|
+
import { forget } from "@ariestools/sdk";
|
|
3
|
+
import { ButtonEx } from "@ariestools/sdk-react/button";
|
|
2
4
|
import { ContentCopy as ContentCopyIcon2, Visibility as VisibilityIcon } from "@mui/icons-material";
|
|
3
5
|
import {
|
|
4
6
|
Dialog,
|
|
@@ -6,26 +8,24 @@ import {
|
|
|
6
8
|
DialogContent,
|
|
7
9
|
DialogTitle
|
|
8
10
|
} from "@mui/material";
|
|
9
|
-
import { ButtonEx } from "@xylabs/react-button";
|
|
10
|
-
import { forget } from "@xylabs/sdk";
|
|
11
11
|
import { Property } from "@xyo-network/react-property";
|
|
12
12
|
import { usePayloadHash } from "@xyo-network/react-shared";
|
|
13
13
|
import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/sdk";
|
|
14
14
|
import { useState } from "react";
|
|
15
15
|
|
|
16
16
|
// src/components/Details/HashSourceDetails.tsx
|
|
17
|
+
import {
|
|
18
|
+
FlexCol,
|
|
19
|
+
FlexGrowRow,
|
|
20
|
+
FlexRow
|
|
21
|
+
} from "@ariestools/sdk-react/flexbox";
|
|
22
|
+
import { QuickTipButton } from "@ariestools/sdk-react/quick-tip-button";
|
|
17
23
|
import { ContentCopy as ContentCopyIcon } from "@mui/icons-material";
|
|
18
24
|
import {
|
|
19
25
|
IconButton,
|
|
20
26
|
Typography,
|
|
21
27
|
useTheme
|
|
22
28
|
} from "@mui/material";
|
|
23
|
-
import {
|
|
24
|
-
FlexCol,
|
|
25
|
-
FlexGrowRow,
|
|
26
|
-
FlexRow
|
|
27
|
-
} from "@xylabs/react-flexbox";
|
|
28
|
-
import { QuickTipButton } from "@xylabs/react-quick-tip-button";
|
|
29
29
|
import { PayloadBuilder } from "@xyo-network/sdk";
|
|
30
30
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
31
31
|
var PayloadHashSourceDetails = ({
|
|
@@ -166,7 +166,7 @@ var PayloadDataDetails = ({
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// src/components/Details/Details.tsx
|
|
169
|
-
import { FlexCol as FlexCol3 } from "@
|
|
169
|
+
import { FlexCol as FlexCol3 } from "@ariestools/sdk-react/flexbox";
|
|
170
170
|
|
|
171
171
|
// src/components/Details/JsonDetails.tsx
|
|
172
172
|
import {
|
|
@@ -214,9 +214,9 @@ var PayloadJsonDetails = ({
|
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
// src/components/Details/ValidationDetails/ValidationDetails.tsx
|
|
217
|
+
import { FlexCol as FlexCol2 } from "@ariestools/sdk-react/flexbox";
|
|
218
|
+
import { usePromise } from "@ariestools/sdk-react/promise";
|
|
217
219
|
import { Typography as Typography2 } from "@mui/material";
|
|
218
|
-
import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
|
|
219
|
-
import { usePromise } from "@xylabs/react-promise";
|
|
220
220
|
import { Property as Property2, PropertyGroup as PropertyGroup2 } from "@xyo-network/react-property";
|
|
221
221
|
import { SchemaProperty } from "@xyo-network/react-schema";
|
|
222
222
|
import { PayloadValidator } from "@xyo-network/sdk";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/Details/DataDetails.tsx", "../../src/components/Details/HashSourceDetails.tsx", "../../src/components/Details/Details.tsx", "../../src/components/Details/JsonDetails.tsx", "../../src/components/Details/ValidationDetails/ValidationDetails.tsx"],
|
|
4
|
-
"sourcesContent": ["import { ContentCopy as ContentCopyIcon, Visibility as VisibilityIcon } from '@mui/icons-material'\nimport {\n Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport
|
|
5
|
-
"mappings": ";AAAA,SAAS,eAAeA,kBAAiB,cAAc,sBAAsB;AAC7E;AAAA,EACE;AAAA,EAAQ;AAAA,EAAe;AAAA,EAAe;AAAA,OACjC;
|
|
6
|
-
"names": ["ContentCopyIcon", "PayloadBuilder", "jsx", "jsxs", "PayloadBuilder", "ContentCopyIcon", "FlexCol", "useTheme", "jsx", "
|
|
4
|
+
"sourcesContent": ["import { forget } from '@ariestools/sdk'\nimport { ButtonEx } from '@ariestools/sdk-react/button'\nimport { ContentCopy as ContentCopyIcon, Visibility as VisibilityIcon } from '@mui/icons-material'\nimport {\n Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport type { PropertyAction, PropertyProps } from '@xyo-network/react-property'\nimport { Property } from '@xyo-network/react-property'\nimport type { SizeProp } from '@xyo-network/react-shared'\nimport { usePayloadHash } from '@xyo-network/react-shared'\nimport type { Payload } from '@xyo-network/sdk'\nimport { PayloadBuilder } from '@xyo-network/sdk'\nimport React, { useState } from 'react'\n\nimport { PayloadHashSourceDetails } from './HashSourceDetails.tsx'\n\nexport type PayloadDataDetailsProps = PropertyProps & {\n badge?: boolean\n payload?: Payload\n size?: SizeProp\n}\n\nexport const PayloadDataDetails: React.FC<PayloadDataDetailsProps> = ({\n size, badge, payload, ...props\n}) => {\n const payloadString = payload ? JSON.stringify(PayloadBuilder.hashableFields(payload), null, 2) : ''\n\n const [viewSourceOpen, setViewSourceOpen] = useState(false)\n const hash = usePayloadHash(payload)\n\n let elevation = 2\n if (props.paper) {\n elevation += props.elevation ?? 0\n }\n\n const actions: PropertyAction[] = [\n {\n icon: <VisibilityIcon />,\n name: 'View',\n onClick: () => setViewSourceOpen(true),\n },\n {\n icon: <ContentCopyIcon />,\n name: 'Copy',\n onClick: () => forget(navigator.clipboard.writeText(hash ?? '')),\n },\n ]\n\n const onCopy = () => {\n forget(navigator.clipboard.writeText(payloadString))\n }\n\n return (\n <>\n <Property\n titleProps={{ elevation }}\n badge={badge}\n size={size}\n actions={actions}\n title=\"Payload Hash\"\n value={hash ?? '<Unknown>'}\n tip=\"This is the payload hash\"\n {...props}\n />\n <Dialog open={viewSourceOpen} onClose={() => setViewSourceOpen(false)}>\n <DialogTitle>Hash Source</DialogTitle>\n <DialogContent>\n <PayloadHashSourceDetails noTitle payload={payload} />\n </DialogContent>\n <DialogActions>\n <ButtonEx\n onClick={onCopy}\n sx={{ color: 'secondary' }}\n >\n Copy\n </ButtonEx>\n <ButtonEx\n onClick={() => setViewSourceOpen(false)}\n sx={{ color: 'secondary' }}\n >\n Close\n </ButtonEx>\n </DialogActions>\n </Dialog>\n </>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport {\n FlexCol, FlexGrowRow, FlexRow,\n} from '@ariestools/sdk-react/flexbox'\nimport { QuickTipButton } from '@ariestools/sdk-react/quick-tip-button'\nimport { ContentCopy as ContentCopyIcon } from '@mui/icons-material'\nimport {\n IconButton, Typography, useTheme,\n} from '@mui/material'\nimport type { Payload } from '@xyo-network/sdk'\nimport { PayloadBuilder } from '@xyo-network/sdk'\nimport React from 'react'\n\nexport interface PayloadHashSourceDetailsProps extends FlexBoxProps {\n noTitle?: boolean\n payload?: Payload\n}\n\nexport const PayloadHashSourceDetails: React.FC<PayloadHashSourceDetailsProps> = ({\n noTitle = false, payload, ...props\n}) => {\n const theme = useTheme()\n const payloadString = payload ? JSON.stringify(PayloadBuilder.hashableFields(payload), null, 2) : ''\n\n return (\n <FlexCol\n {...props}\n sx={[{ alignItems: 'stretch' }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {noTitle\n ? null\n : (\n <FlexRow\n sx={{\n margin: 1,\n justifyContent: 'flex-start',\n }}\n >\n <Typography>Hash Source</Typography>\n <QuickTipButton title=\"Hash Source\">The actual string used to generate the hash (SHA256)</QuickTipButton>\n </FlexRow>\n )}\n <FlexRow>\n <FlexGrowRow\n background\n sx={{\n border: 1,\n borderColor: theme.vars.palette.divider,\n justifyContent: 'start',\n }}\n >\n <Typography\n variant=\"body1\"\n sx={{\n padding: 2,\n fontFamily: 'monospace',\n overflowWrap: 'break-word',\n wordBreak: 'break-all',\n }}\n >\n {payloadString}\n </Typography>\n </FlexGrowRow>\n <IconButton>\n <ContentCopyIcon />\n </IconButton>\n </FlexRow>\n {noTitle\n ? (\n <FlexRow\n sx={{\n margin: 1,\n justifyContent: 'flex-start',\n }}\n >\n <Typography variant=\"body2\">\n The actual string used to generate the hash (SHA256). This can be used to validate the hash manually.\n </Typography>\n </FlexRow>\n )\n : null}\n </FlexCol>\n )\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexCol } from '@ariestools/sdk-react/flexbox'\nimport type { Payload } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport { PayloadDataDetails } from './DataDetails.tsx'\nimport { PayloadJsonDetails } from './JsonDetails.tsx'\nimport { PayloadValidationDetails } from './ValidationDetails/index.ts'\n\nexport type WithPaper<T> = T & { paper: true }\nexport type WithoutPaper<T> = T & { paper?: false }\n\nexport type PayloadDetailsProps = FlexBoxProps & {\n paper?: boolean\n payload?: Payload\n}\n\nexport const PayloadDetails: React.FC<PayloadDetailsProps> = ({\n paper, payload, ...props\n}) => {\n return (\n <FlexCol\n {...props}\n sx={[{\n gap: 1,\n justifyContent: 'flex-start',\n alignItems: 'stretch',\n marginTop: 2,\n marginBottom: 8,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <PayloadDataDetails paper={paper} size=\"large\" badge payload={payload} />\n <PayloadValidationDetails paper={paper} value={payload} />\n <PayloadJsonDetails paper={paper} payload={payload} />\n </FlexCol>\n )\n}\n\nPayloadDetails.displayName = 'PayloadDetails'\n", "import {\n Paper, useMediaQuery, useTheme,\n} from '@mui/material'\nimport type { JsonViewerExProps } from '@xyo-network/react-payload-raw-info'\nimport { JsonViewerEx } from '@xyo-network/react-payload-raw-info'\nimport type { PropertyGroupProps } from '@xyo-network/react-property'\nimport { PropertyGroup } from '@xyo-network/react-property'\nimport type { Payload } from '@xyo-network/sdk'\nimport React from 'react'\n\nexport type PayloadJsonDetailsProps = PropertyGroupProps & {\n jsonViewProps?: JsonViewerExProps\n payload?: Payload\n}\n\nexport const PayloadJsonDetails: React.FC<PayloadJsonDetailsProps> = ({\n jsonViewProps, payload, ...props\n}) => {\n const { breakpoints } = useTheme()\n const belowSm = useMediaQuery(breakpoints.down('sm'))\n\n let elevation = 2\n if (props.paper) {\n elevation += props.elevation ?? 0\n }\n\n return (\n <PropertyGroup titleProps={{ elevation }} title=\"JSON\" tip=\"The raw JSON of the payload\" {...props}>\n <Paper\n square\n variant=\"elevation\"\n style={{\n overflow: 'hidden', padding: '16px', width: '100%',\n }}\n >\n <JsonViewerEx\n groupArraysAfterLength={20}\n style={{ overflow: 'hidden' }}\n value={payload}\n enableClipboard\n collapseStringsAfterLength={belowSm ? 24 : 32}\n {...jsonViewProps}\n />\n </Paper>\n </PropertyGroup>\n )\n}\n", "import { FlexCol } from '@ariestools/sdk-react/flexbox'\nimport { usePromise } from '@ariestools/sdk-react/promise'\nimport { Typography } from '@mui/material'\nimport { Property, PropertyGroup } from '@xyo-network/react-property'\nimport { SchemaProperty } from '@xyo-network/react-schema'\nimport { PayloadValidator } from '@xyo-network/sdk'\nimport React from 'react'\n\nimport type { PayloadValidationDetailsProps } from './ValidationDetailsProps.ts'\n\nexport const PayloadValidationDetails: React.FC<PayloadValidationDetailsProps> = ({\n skipBody = false, value, ...props\n}) => {\n const [validateErrors] = usePromise(async () => (value ? await new PayloadValidator(value).validate() : undefined), [value])\n\n const bodyErrors = skipBody ? [] : (validateErrors ?? [])\n const errors: Error[] = [...bodyErrors]\n\n let elevation = 2\n if (props.paper) {\n elevation += props.elevation ?? 0\n }\n\n return (\n <PropertyGroup titleProps={{ elevation }} title=\"Validation\" tip=\"The results from validating the payload\" {...props}>\n <Property\n titleProps={{ elevation }}\n title=\"Valid\"\n value={errors.length === 0 ? 'True' : 'False'}\n tip={\n errors.length > 0\n ? (\n <FlexCol>\n {errors.map((error) => {\n return <Typography key={error.message}>{error.toString()}</Typography>\n })}\n </FlexCol>\n )\n : <Typography>No Errors</Typography>\n }\n sx={{ flexGrow: 1 }}\n />\n {value?.schema && (\n <SchemaProperty\n titleProps={{ elevation }}\n value={value.schema}\n sx={{ flexGrow: 1 }}\n />\n )}\n </PropertyGroup>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAeA,kBAAiB,cAAc,sBAAsB;AAC7E;AAAA,EACE;AAAA,EAAQ;AAAA,EAAe;AAAA,EAAe;AAAA,OACjC;AAEP,SAAS,gBAAgB;AAEzB,SAAS,sBAAsB;AAE/B,SAAS,kBAAAC,uBAAsB;AAC/B,SAAgB,gBAAgB;;;ACXhC;AAAA,EACE;AAAA,EAAS;AAAA,EAAa;AAAA,OACjB;AACP,SAAS,sBAAsB;AAC/B,SAAS,eAAe,uBAAuB;AAC/C;AAAA,EACE;AAAA,EAAY;AAAA,EAAY;AAAA,OACnB;AAEP,SAAS,sBAAsB;AAsBnB,SAME,KANF;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CAAC;AAAA,EAC5D;AAAA,EAAO;AAAA,EAAS,GAAG;AACrB,MAAM;AACJ,SACE,gBAAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ,IAAI,CAAC;AAAA,QACH,KAAK;AAAA,QACL,gBAAgB;AAAA,QAChB,YAAY;AAAA,QACZ,WAAW;AAAA,QACX,cAAc;AAAA,MAChB,GAAG,GAAI,MAAM,QAAQ,MAAM,EAAE,IAAI,MAAM,KAAK,CAAC,MAAM,EAAE,CAAE;AAAA,MAEvD;AAAA,wBAAAF,KAAC,sBAAmB,OAAc,MAAK,SAAQ,OAAK,MAAC,SAAkB;AAAA,QACvE,gBAAAA,KAAC,4BAAyB,OAAc,OAAO,SAAS;AAAA,QACxD,gBAAAA,KAAC,sBAAmB,OAAc,SAAkB;AAAA;AAAA;AAAA,EACtD;AAEJ;AAEA,eAAe,cAAc;",
|
|
6
|
+
"names": ["ContentCopyIcon", "PayloadBuilder", "jsx", "jsxs", "PayloadBuilder", "ContentCopyIcon", "FlexCol", "useTheme", "jsx", "FlexCol", "Typography", "Property", "PropertyGroup", "jsx", "jsxs", "jsx", "jsxs", "FlexCol"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-details",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,130 +41,112 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-
|
|
45
|
-
"@xyo-network/react-
|
|
46
|
-
"@xyo-network/react-
|
|
47
|
-
"@xyo-network/react-
|
|
44
|
+
"@xyo-network/react-payload-raw-info": "~10.0.5",
|
|
45
|
+
"@xyo-network/react-property": "~10.0.5",
|
|
46
|
+
"@xyo-network/react-schema": "~10.0.5",
|
|
47
|
+
"@xyo-network/react-shared": "~10.0.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@ariestools/eth-address": "~8.0.2",
|
|
51
|
+
"@ariestools/pixel": "~8.0.2",
|
|
52
|
+
"@ariestools/sdk": "~8.0.2",
|
|
53
|
+
"@ariestools/sdk-react": "~11.0.0",
|
|
54
|
+
"@ariestools/threads": "~8.0.2",
|
|
50
55
|
"@bitauth/libauth": "~3.0.0",
|
|
51
|
-
"@
|
|
52
|
-
"@mui/material": "
|
|
53
|
-
"@mui/
|
|
54
|
-
"@mui/
|
|
56
|
+
"@metamask/providers": "~22.1.1",
|
|
57
|
+
"@mui/icons-material": "~9.2.0",
|
|
58
|
+
"@mui/material": "~9.2.0",
|
|
59
|
+
"@mui/system": "~9.2.0",
|
|
60
|
+
"@mui/x-tree-view": "~9.8.0",
|
|
55
61
|
"@noble/post-quantum": "~0.6.1",
|
|
56
|
-
"@opentelemetry/api": "
|
|
57
|
-
"@opentelemetry/sdk-trace-base": "
|
|
62
|
+
"@opentelemetry/api": "~1.9.1",
|
|
63
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
58
64
|
"@react-spring/web": "~10.1.2",
|
|
59
65
|
"@scure/base": "~2.2.0",
|
|
60
66
|
"@scure/bip39": "~2.2.0",
|
|
61
67
|
"@storybook/react-vite": "~10.4.6",
|
|
62
|
-
"@types/react": "
|
|
63
|
-
"@xylabs/
|
|
64
|
-
"@xylabs/
|
|
65
|
-
"@xylabs/
|
|
66
|
-
"@xylabs/react
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@xylabs/react-hooks": "~10.0",
|
|
70
|
-
"@xylabs/react-identicon": "~10.0",
|
|
71
|
-
"@xylabs/react-link": "~10.0",
|
|
72
|
-
"@xylabs/react-promise": "~10.0",
|
|
73
|
-
"@xylabs/react-quick-tip-button": "~10.0",
|
|
74
|
-
"@xylabs/react-select": "~10.0",
|
|
75
|
-
"@xylabs/react-shared": "~10.0",
|
|
76
|
-
"@xylabs/react-theme": "~10.0",
|
|
77
|
-
"@xylabs/sdk": "^7.0.1",
|
|
78
|
-
"@xylabs/sdk-react": "~10.0",
|
|
79
|
-
"@xylabs/threads": "^7.0.1",
|
|
80
|
-
"@xylabs/toolchain": "~8.5.3",
|
|
81
|
-
"@xylabs/tsconfig": "^8.5.3",
|
|
82
|
-
"@xylabs/tsconfig-dom": "^8.5.3",
|
|
83
|
-
"@xylabs/tsconfig-react": "~8.5.3",
|
|
84
|
-
"@xyo-network/diviner-schema-list": "^7.0.3",
|
|
85
|
-
"@xyo-network/diviner-schema-stats": "^7.0.3",
|
|
68
|
+
"@types/react": "~19.2.17",
|
|
69
|
+
"@xylabs/toolchain": "~8.6.6",
|
|
70
|
+
"@xylabs/tsconfig": "~8.6.6",
|
|
71
|
+
"@xylabs/tsconfig-dom": "~8.6.6",
|
|
72
|
+
"@xylabs/tsconfig-react": "~8.6.6",
|
|
73
|
+
"@xyo-network/diviner-schema-list": "~7.0.9",
|
|
74
|
+
"@xyo-network/diviner-schema-stats": "~7.0.9",
|
|
86
75
|
"@xyo-network/node-core-types": "~4.2.2",
|
|
87
|
-
"@xyo-network/sdk": "
|
|
88
|
-
"@xyo-network/sdk-protocol": "
|
|
76
|
+
"@xyo-network/sdk": "~7.0.9",
|
|
77
|
+
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
89
78
|
"@xyo-network/typeof": "~5.3.30",
|
|
79
|
+
"ajv": "~8.20.0",
|
|
80
|
+
"async-mutex": "~0.5.0",
|
|
81
|
+
"clsx": "~2.1.1",
|
|
82
|
+
"debug": "~4.4.3",
|
|
83
|
+
"eslint": "~10.6.0",
|
|
84
|
+
"ethers": "~6.17.0",
|
|
85
|
+
"hash-wasm": "~4.12.0",
|
|
86
|
+
"idb": "~8.0.3",
|
|
87
|
+
"lru-cache": "~11.5.1",
|
|
88
|
+
"md5": "~2.3.0",
|
|
89
|
+
"numeral": "~2.0.6",
|
|
90
|
+
"observable-fns": "~0.6.1",
|
|
91
|
+
"query-string": "~9.4.1",
|
|
92
|
+
"react": "~19.2.7",
|
|
93
|
+
"react-dom": "~19.2.7",
|
|
94
|
+
"react-router-dom": "~7.18.1",
|
|
95
|
+
"rollbar": "~3.1.0",
|
|
96
|
+
"storybook": "~10.4.6",
|
|
97
|
+
"typescript": "~6.0.3",
|
|
98
|
+
"viem": "~2.54.3",
|
|
99
|
+
"vite": "~8.1.3",
|
|
100
|
+
"webextension-polyfill": "~0.12.0",
|
|
101
|
+
"zod": "~4.4.3",
|
|
102
|
+
"zustand": "~5.0.14",
|
|
103
|
+
"@xyo-network/react-storybook": "~10.0.5"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"@ariestools/eth-address": "^8.0.2",
|
|
107
|
+
"@ariestools/pixel": "^8.0.2",
|
|
108
|
+
"@ariestools/sdk": "^8.0.2",
|
|
109
|
+
"@ariestools/sdk-react": "^11.0.0",
|
|
110
|
+
"@ariestools/threads": "^8.0.2",
|
|
111
|
+
"@bitauth/libauth": "^3.0.0",
|
|
112
|
+
"@metamask/providers": "^22.1.1",
|
|
113
|
+
"@mui/icons-material": "^9.2.0",
|
|
114
|
+
"@mui/material": "^9.2.0",
|
|
115
|
+
"@mui/system": "^9.2.0",
|
|
116
|
+
"@mui/x-tree-view": "^9.8.0",
|
|
117
|
+
"@noble/post-quantum": "^0.6.1",
|
|
118
|
+
"@opentelemetry/api": "^1.9.1",
|
|
119
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
120
|
+
"@react-spring/web": "^10.1.2",
|
|
121
|
+
"@scure/base": "^2.2.0",
|
|
122
|
+
"@scure/bip39": "^2.2.0",
|
|
123
|
+
"@types/react": "^19.2.17",
|
|
124
|
+
"@xyo-network/diviner-schema-list": "^7.0.9",
|
|
125
|
+
"@xyo-network/diviner-schema-stats": "^7.0.9",
|
|
126
|
+
"@xyo-network/node-core-types": "^4.2.2",
|
|
127
|
+
"@xyo-network/sdk": "^7.0.9",
|
|
128
|
+
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
129
|
+
"@xyo-network/typeof": "^5.3.30",
|
|
90
130
|
"ajv": "^8.20.0",
|
|
91
131
|
"async-mutex": "^0.5.0",
|
|
92
|
-
"clsx": "
|
|
132
|
+
"clsx": "^2.1.1",
|
|
93
133
|
"debug": "^4.4.3",
|
|
94
|
-
"eslint": "^10.6.0",
|
|
95
134
|
"ethers": "^6.17.0",
|
|
96
|
-
"hash-wasm": "
|
|
135
|
+
"hash-wasm": "^4.12.0",
|
|
97
136
|
"idb": "^8.0.3",
|
|
98
137
|
"lru-cache": "^11.5.1",
|
|
99
|
-
"md5": "
|
|
100
|
-
"numeral": "
|
|
138
|
+
"md5": "^2.3.0",
|
|
139
|
+
"numeral": "^2.0.6",
|
|
101
140
|
"observable-fns": "^0.6.1",
|
|
102
|
-
"query-string": "
|
|
141
|
+
"query-string": "^9.4.1",
|
|
103
142
|
"react": "^19.2.7",
|
|
104
143
|
"react-dom": "^19.2.7",
|
|
105
|
-
"react-router-dom": "^7.18.
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"vite": "^8.1.0",
|
|
144
|
+
"react-router-dom": "^7.18.1",
|
|
145
|
+
"rollbar": "^3.1.0",
|
|
146
|
+
"viem": "^2.54.3",
|
|
147
|
+
"webextension-polyfill": "^0.12.0",
|
|
110
148
|
"zod": "^4.4.3",
|
|
111
|
-
"zustand": "
|
|
112
|
-
"@xyo-network/react-storybook": "~10.0.3"
|
|
113
|
-
},
|
|
114
|
-
"peerDependencies": {
|
|
115
|
-
"@bitauth/libauth": "~3.0",
|
|
116
|
-
"@mui/icons-material": "^9.0",
|
|
117
|
-
"@mui/material": "^9.0",
|
|
118
|
-
"@mui/system": "^9.0",
|
|
119
|
-
"@mui/x-tree-view": "~9.7",
|
|
120
|
-
"@noble/post-quantum": "~0.6.1",
|
|
121
|
-
"@opentelemetry/api": "^1.9",
|
|
122
|
-
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
123
|
-
"@react-spring/web": "~10.1",
|
|
124
|
-
"@scure/base": "~2.2",
|
|
125
|
-
"@scure/bip39": "~2.2",
|
|
126
|
-
"@types/react": "^19.2",
|
|
127
|
-
"@xylabs/eth-address": "^7.0",
|
|
128
|
-
"@xylabs/geo": "^7.0",
|
|
129
|
-
"@xylabs/pixel": "^7.0",
|
|
130
|
-
"@xylabs/react-async-effect": "^10.0",
|
|
131
|
-
"@xylabs/react-button": "^10.0",
|
|
132
|
-
"@xylabs/react-flexbox": "^10.0",
|
|
133
|
-
"@xylabs/react-hooks": "^10.0",
|
|
134
|
-
"@xylabs/react-identicon": "^10.0",
|
|
135
|
-
"@xylabs/react-link": "^10.0",
|
|
136
|
-
"@xylabs/react-promise": "^10.0",
|
|
137
|
-
"@xylabs/react-quick-tip-button": "^10.0",
|
|
138
|
-
"@xylabs/react-select": "^10.0",
|
|
139
|
-
"@xylabs/react-shared": "^10.0",
|
|
140
|
-
"@xylabs/react-theme": "^10.0",
|
|
141
|
-
"@xylabs/sdk": "^7.0",
|
|
142
|
-
"@xylabs/sdk-react": "^10.0",
|
|
143
|
-
"@xylabs/threads": "^7.0",
|
|
144
|
-
"@xyo-network/diviner-schema-list": "^7.0",
|
|
145
|
-
"@xyo-network/diviner-schema-stats": "^7.0",
|
|
146
|
-
"@xyo-network/node-core-types": "~4.2",
|
|
147
|
-
"@xyo-network/sdk": "*",
|
|
148
|
-
"@xyo-network/sdk-protocol": "^7.0",
|
|
149
|
-
"@xyo-network/typeof": "~5.3",
|
|
150
|
-
"ajv": "^8.20",
|
|
151
|
-
"async-mutex": "^0.5",
|
|
152
|
-
"clsx": "~2.1",
|
|
153
|
-
"debug": "^4.4",
|
|
154
|
-
"ethers": "^6.16",
|
|
155
|
-
"hash-wasm": "~4.12",
|
|
156
|
-
"idb": "^8.0",
|
|
157
|
-
"lru-cache": "^11.3",
|
|
158
|
-
"md5": "~2.3",
|
|
159
|
-
"numeral": "~2.0",
|
|
160
|
-
"observable-fns": "~0.6",
|
|
161
|
-
"query-string": "~9.4",
|
|
162
|
-
"react": "^19.2",
|
|
163
|
-
"react-dom": "^19.2",
|
|
164
|
-
"react-router-dom": "^7.15",
|
|
165
|
-
"viem": "^2.48",
|
|
166
|
-
"zod": "^4.4",
|
|
167
|
-
"zustand": "~5.0"
|
|
149
|
+
"zustand": "^5.0.14"
|
|
168
150
|
},
|
|
169
151
|
"publishConfig": {
|
|
170
152
|
"access": "public"
|