@xyo-network/react-ethereum-gas-price-blocknative-plugin 10.0.2 → 10.0.3
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/index.mjs.map +1 -1
- package/package.json +59 -62
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/Card/Card.tsx", "../../src/components/Card/CardContent.tsx", "../../src/components/hooks/getBlocknativeTransformer.tsx", "../../src/components/Card/CardHeader.tsx", "../../src/components/lib/constants.ts", "../../src/components/Details/Box/BlocknativeGasPriceDetailsBox.tsx", "../../src/Plugin.ts"],
|
|
4
|
-
"sourcesContent": ["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nimport { BlocknativeGasPriceCardContent } from './CardContent.tsx'\nimport { BlocknativeGasPriceCardHeader } from './CardHeader.tsx'\n\nexport const BlocknativeGasPriceCard = ({\n ref, payload, ...props\n}: PayloadRenderProps & CardProps) => {\n return (\n <Card ref={ref} {...props}>\n <BlocknativeGasPriceCardHeader payload={payload} />\n <BlocknativeGasPriceCardContent payload={payload} />\n </Card>\n )\n}\n\nBlocknativeGasPriceCard.displayName = 'BlocknativeGasPriceCard'\n", "import type { CardContentProps } from '@mui/material'\nimport { CardContent, Grid } from '@mui/material'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { GasFeeCard, ToggleRawPayloadBox } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport { PayloadDataMissing } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../hooks/index.ts'\n\nconst isEmpty = (obj?: object) => Object.keys(obj ?? {}).length === 0\n\nexport const BlocknativeGasPriceCardContent: React.FC<PayloadRenderProps & CardContentProps> = ({ payload, ...props }) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n\n if (isEmpty(gasPricePayload) || !gasPricePayload?.blockPrices?.length) {\n return <PayloadDataMissing alertBody=\"Payload is missing valid gas fee data.\" sx={{ m: 1 }} />\n }\n\n return (\n <CardContent\n sx={{\n display: 'flex', flexDirection: 'column', rowGap: 4,\n }}\n {...props}\n >\n <Grid\n container\n spacing={3}\n columns={{\n lg: 15, md: 15, sm: 12, xs: 12,\n }}\n >\n {parsedPayload?.gasPrice?.map(({ price }) => (\n <Grid\n key={price?.label}\n size={{\n xs: 12, sm: 6, md: 5, lg: 3,\n }}\n >\n <GasFeeCard gasPrice={price?.value} speed={price?.label} speedPaperElevation={4} />\n </Grid>\n ))}\n </Grid>\n <ToggleRawPayloadBox\n gasPricePayload={gasPricePayload}\n sx={{\n alignItems: 'start',\n pr: 1,\n }}\n />\n </CardContent>\n )\n}\n\nBlocknativeGasPriceCardContent.displayName = 'BlocknativeGasPriceCardContent'\n", "import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport type { GasPriceWitnessUIBasePayload } from '@xyo-network/react-gas-price'\n\nexport const getBlocknativeTransformer = (payload?: EthereumGasBlocknativePayload): GasPriceWitnessUIBasePayload | undefined => {\n const blockPrices = payload?.blockPrices?.[0]\n if (blockPrices && blockPrices.estimatedPrices?.length) {\n const estimatedPrices = blockPrices?.estimatedPrices\n const gasPrice = estimatedPrices.map(price => ({\n price: {\n label: `Confidence - ${price.confidence}`,\n value: price.price,\n },\n priorityFee: {\n label: 'maxPriorityFeePerGas',\n value: price.maxPriorityFeePerGas,\n },\n }))\n\n return {\n baseFee: {\n label: 'baseFeePerGas',\n value: blockPrices.baseFeePerGas,\n },\n blockNumber: {\n label: 'blockNumber',\n value: blockPrices.blockNumber,\n },\n gasPrice,\n timestamp: payload.timestamp,\n website: 'https://docs.Blocknative.io/v5/api/providers/provider/#Provider-getFeeData',\n }\n }\n}\n", "import type { CardHeaderProps } from '@mui/material'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { GasPriceWitnessCardHeader } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../hooks/index.ts'\nimport { RenderTitle } from '../lib/index.ts'\n\nexport const BlocknativeGasPriceCardHeader: React.FC<PayloadRenderProps & CardHeaderProps> = ({ payload }) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n return <GasPriceWitnessCardHeader title={RenderTitle} parsedPayload={parsedPayload} />\n}\n\nBlocknativeGasPriceCardHeader.displayName = 'BlocknativeGasPriceCardHeader'\n", "export const RenderTitle = 'Blocknative Gas Tracker'\n", "import { Grid } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport {\n GasFeeCard, GasPriceWitnessHeaderBox, ToggleRawPayloadBox,\n} from '@xyo-network/react-gas-price'\nimport type { PayloadDetailsListRenderProps } from '@xyo-network/react-payload-plugin'\nimport { PayloadDataMissing } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../../hooks/index.ts'\nimport { RenderTitle } from '../../lib/index.ts'\n\nconst isEmpty = (obj?: object) => Object.keys(obj ?? {}).length === 0\n\nexport const BlocknativeGasPriceDetailsBox: React.FC<PayloadDetailsListRenderProps & FlexBoxProps> = ({\n\n payload, listMode, ...props\n}) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n\n return (\n <>\n {isEmpty(gasPricePayload) || !gasPricePayload?.blockPrices?.length\n ? <PayloadDataMissing alertBody=\"Payload is missing valid gas fee data.\" />\n : (\n <FlexCol\n {...props}\n sx={[{\n alignItems: 'start',\n rowGap: 4,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <GasPriceWitnessHeaderBox heading={RenderTitle} parsedPayload={parsedPayload} />\n <Grid\n container\n spacing={3}\n columns={{\n lg: 15, md: 15, sm: 12, xs: 12,\n }}\n >\n {parsedPayload?.gasPrice?.map(({ price, priorityFee }) => (\n <Grid\n key={price?.label}\n size={{\n xs: 12, sm: 6, md: 5, lg: 3,\n }}\n >\n <GasFeeCard\n key={price?.label}\n gasPrice={price?.value}\n speed={price?.label}\n priorityFee={priorityFee?.value}\n priorityFeeLabel={priorityFee?.label}\n />\n </Grid>\n ))}\n </Grid>\n <ToggleRawPayloadBox\n gasPricePayload={gasPricePayload}\n sx={{ alignItems: 'start' }}\n />\n </FlexCol>\n )}\n </>\n )\n}\n\nBlocknativeGasPriceDetailsBox.displayName = 'BlocknativeGasPriceDetailsBox'\n", "import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { EthereumGasPriceAvatar } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport type { Payload } from '@xyo-network/sdk
|
|
4
|
+
"sourcesContent": ["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nimport { BlocknativeGasPriceCardContent } from './CardContent.tsx'\nimport { BlocknativeGasPriceCardHeader } from './CardHeader.tsx'\n\nexport const BlocknativeGasPriceCard = ({\n ref, payload, ...props\n}: PayloadRenderProps & CardProps) => {\n return (\n <Card ref={ref} {...props}>\n <BlocknativeGasPriceCardHeader payload={payload} />\n <BlocknativeGasPriceCardContent payload={payload} />\n </Card>\n )\n}\n\nBlocknativeGasPriceCard.displayName = 'BlocknativeGasPriceCard'\n", "import type { CardContentProps } from '@mui/material'\nimport { CardContent, Grid } from '@mui/material'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { GasFeeCard, ToggleRawPayloadBox } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport { PayloadDataMissing } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../hooks/index.ts'\n\nconst isEmpty = (obj?: object) => Object.keys(obj ?? {}).length === 0\n\nexport const BlocknativeGasPriceCardContent: React.FC<PayloadRenderProps & CardContentProps> = ({ payload, ...props }) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n\n if (isEmpty(gasPricePayload) || !gasPricePayload?.blockPrices?.length) {\n return <PayloadDataMissing alertBody=\"Payload is missing valid gas fee data.\" sx={{ m: 1 }} />\n }\n\n return (\n <CardContent\n sx={{\n display: 'flex', flexDirection: 'column', rowGap: 4,\n }}\n {...props}\n >\n <Grid\n container\n spacing={3}\n columns={{\n lg: 15, md: 15, sm: 12, xs: 12,\n }}\n >\n {parsedPayload?.gasPrice?.map(({ price }) => (\n <Grid\n key={price?.label}\n size={{\n xs: 12, sm: 6, md: 5, lg: 3,\n }}\n >\n <GasFeeCard gasPrice={price?.value} speed={price?.label} speedPaperElevation={4} />\n </Grid>\n ))}\n </Grid>\n <ToggleRawPayloadBox\n gasPricePayload={gasPricePayload}\n sx={{\n alignItems: 'start',\n pr: 1,\n }}\n />\n </CardContent>\n )\n}\n\nBlocknativeGasPriceCardContent.displayName = 'BlocknativeGasPriceCardContent'\n", "import type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport type { GasPriceWitnessUIBasePayload } from '@xyo-network/react-gas-price'\n\nexport const getBlocknativeTransformer = (payload?: EthereumGasBlocknativePayload): GasPriceWitnessUIBasePayload | undefined => {\n const blockPrices = payload?.blockPrices?.[0]\n if (blockPrices && blockPrices.estimatedPrices?.length) {\n const estimatedPrices = blockPrices?.estimatedPrices\n const gasPrice = estimatedPrices.map(price => ({\n price: {\n label: `Confidence - ${price.confidence}`,\n value: price.price,\n },\n priorityFee: {\n label: 'maxPriorityFeePerGas',\n value: price.maxPriorityFeePerGas,\n },\n }))\n\n return {\n baseFee: {\n label: 'baseFeePerGas',\n value: blockPrices.baseFeePerGas,\n },\n blockNumber: {\n label: 'blockNumber',\n value: blockPrices.blockNumber,\n },\n gasPrice,\n timestamp: payload.timestamp,\n website: 'https://docs.Blocknative.io/v5/api/providers/provider/#Provider-getFeeData',\n }\n }\n}\n", "import type { CardHeaderProps } from '@mui/material'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { GasPriceWitnessCardHeader } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../hooks/index.ts'\nimport { RenderTitle } from '../lib/index.ts'\n\nexport const BlocknativeGasPriceCardHeader: React.FC<PayloadRenderProps & CardHeaderProps> = ({ payload }) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n return <GasPriceWitnessCardHeader title={RenderTitle} parsedPayload={parsedPayload} />\n}\n\nBlocknativeGasPriceCardHeader.displayName = 'BlocknativeGasPriceCardHeader'\n", "export const RenderTitle = 'Blocknative Gas Tracker'\n", "import { Grid } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport type { EthereumGasBlocknativePayload } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport {\n GasFeeCard, GasPriceWitnessHeaderBox, ToggleRawPayloadBox,\n} from '@xyo-network/react-gas-price'\nimport type { PayloadDetailsListRenderProps } from '@xyo-network/react-payload-plugin'\nimport { PayloadDataMissing } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { getBlocknativeTransformer } from '../../hooks/index.ts'\nimport { RenderTitle } from '../../lib/index.ts'\n\nconst isEmpty = (obj?: object) => Object.keys(obj ?? {}).length === 0\n\nexport const BlocknativeGasPriceDetailsBox: React.FC<PayloadDetailsListRenderProps & FlexBoxProps> = ({\n\n payload, listMode, ...props\n}) => {\n const gasPricePayload = payload as EthereumGasBlocknativePayload | undefined\n const parsedPayload = getBlocknativeTransformer(gasPricePayload)\n\n return (\n <>\n {isEmpty(gasPricePayload) || !gasPricePayload?.blockPrices?.length\n ? <PayloadDataMissing alertBody=\"Payload is missing valid gas fee data.\" />\n : (\n <FlexCol\n {...props}\n sx={[{\n alignItems: 'start',\n rowGap: 4,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <GasPriceWitnessHeaderBox heading={RenderTitle} parsedPayload={parsedPayload} />\n <Grid\n container\n spacing={3}\n columns={{\n lg: 15, md: 15, sm: 12, xs: 12,\n }}\n >\n {parsedPayload?.gasPrice?.map(({ price, priorityFee }) => (\n <Grid\n key={price?.label}\n size={{\n xs: 12, sm: 6, md: 5, lg: 3,\n }}\n >\n <GasFeeCard\n key={price?.label}\n gasPrice={price?.value}\n speed={price?.label}\n priorityFee={priorityFee?.value}\n priorityFeeLabel={priorityFee?.label}\n />\n </Grid>\n ))}\n </Grid>\n <ToggleRawPayloadBox\n gasPricePayload={gasPricePayload}\n sx={{ alignItems: 'start' }}\n />\n </FlexCol>\n )}\n </>\n )\n}\n\nBlocknativeGasPriceDetailsBox.displayName = 'BlocknativeGasPriceDetailsBox'\n", "import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport { EthereumGasPriceAvatar } from '@xyo-network/react-gas-price'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport type { Payload } from '@xyo-network/sdk'\n\nimport {\n BlocknativeGasPriceCardContent, BlocknativeGasPriceCardHeader, BlocknativeGasPriceDetailsBox,\n} from './components/index.ts'\n\nexport const EthereumGasPriceBlocknativePlugin: PayloadRenderPlugin = {\n ...createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === EthereumGasBlocknativeSchema,\n components: {\n avatar: { image: EthereumGasPriceAvatar },\n box: { detailsBox: BlocknativeGasPriceDetailsBox },\n card: {\n content: BlocknativeGasPriceCardContent,\n header: BlocknativeGasPriceCardHeader,\n },\n },\n name: 'Ethereum Gas Price Blocknative',\n }),\n}\n"],
|
|
5
5
|
"mappings": ";AACA,SAAS,YAAY;;;ACArB,SAAS,aAAa,YAAY;AAElC,SAAS,YAAY,2BAA2B;AAEhD,SAAS,0BAA0B;;;ACF5B,IAAM,4BAA4B,CAAC,YAAsF;AAC9H,QAAM,cAAc,SAAS,cAAc,CAAC;AAC5C,MAAI,eAAe,YAAY,iBAAiB,QAAQ;AACtD,UAAM,kBAAkB,aAAa;AACrC,UAAM,WAAW,gBAAgB,IAAI,YAAU;AAAA,MAC7C,OAAO;AAAA,QACL,OAAO,gBAAgB,MAAM,UAAU;AAAA,QACvC,OAAO,MAAM;AAAA,MACf;AAAA,MACA,aAAa;AAAA,QACX,OAAO;AAAA,QACP,OAAO,MAAM;AAAA,MACf;AAAA,IACF,EAAE;AAEF,WAAO;AAAA,MACL,SAAS;AAAA,QACP,OAAO;AAAA,QACP,OAAO,YAAY;AAAA,MACrB;AAAA,MACA,aAAa;AAAA,QACX,OAAO;AAAA,QACP,OAAO,YAAY;AAAA,MACrB;AAAA,MACA;AAAA,MACA,WAAW,QAAQ;AAAA,MACnB,SAAS;AAAA,IACX;AAAA,EACF;AACF;;;ADfW,cAIP,YAJO;AAPX,IAAM,UAAU,CAAC,QAAiB,OAAO,KAAK,OAAO,CAAC,CAAC,EAAE,WAAW;AAE7D,IAAM,iCAAkF,CAAC,EAAE,SAAS,GAAG,MAAM,MAAM;A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cAAI,IAAI;AAAA,cAAI,IAAI;AAAA,YAC9B;AAAA,YAEC,yBAAe,UAAU,IAAI,CAAC,EAAE,OAAO,YAAY,MAClD,gBAAAJ;AAAA,cAACI;AAAA,cAAA;AAAA,gBAEC,MAAM;AAAA,kBACJ,IAAI;AAAA,kBAAI,IAAI;AAAA,kBAAG,IAAI;AAAA,kBAAG,IAAI;AAAA,gBAC5B;AAAA,gBAEA,0BAAAJ;AAAA,kBAACK;AAAA,kBAAA;AAAA,oBAEC,UAAU,OAAO;AAAA,oBACjB,OAAO,OAAO;AAAA,oBACd,aAAa,aAAa;AAAA,oBAC1B,kBAAkB,aAAa;AAAA;AAAA,kBAJ1B,OAAO;AAAA,gBAKd;AAAA;AAAA,cAXK,OAAO;AAAA,YAYd,CACD;AAAA;AAAA,QACH;AAAA,QACA,gBAAAL;AAAA,UAACM;AAAA,UAAA;AAAA,YACC;AAAA,YACA,IAAI,EAAE,YAAY,QAAQ;AAAA;AAAA,QAC5B;AAAA;AAAA;AAAA,EACF,GAER;AAEJ;AAEA,8BAA8B,cAAc;;;ACtE5C,SAAS,oCAAoC;AAC7C,SAAS,8BAA8B;AAEvC,SAAS,iCAAiC;AAOnC,IAAM,oCAAyD;AAAA,EACpE,GAAG,0BAA0B;AAAA,IAC3B,WAAW,CAAC,YAAsB,SAAS,WAAW;AAAA,IACtD,YAAY;AAAA,MACV,QAAQ,EAAE,OAAO,uBAAuB;AAAA,MACxC,KAAK,EAAE,YAAY,8BAA8B;AAAA,MACjD,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AACH;",
|
|
6
6
|
"names": ["jsx", "jsx", "jsxs", "Grid", "GasFeeCard", "ToggleRawPayloadBox", "PayloadDataMissing", "jsx", "jsxs", "isEmpty", "PayloadDataMissing", "Grid", "GasFeeCard", "ToggleRawPayloadBox"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-ethereum-gas-price-blocknative-plugin",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.3",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,66 +41,65 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-gas-price": "~10.0.
|
|
45
|
-
"@xyo-network/react-
|
|
46
|
-
"@xyo-network/react-
|
|
44
|
+
"@xyo-network/react-gas-price": "~10.0.3",
|
|
45
|
+
"@xyo-network/react-shared": "~10.0.3",
|
|
46
|
+
"@xyo-network/react-payload-plugin": "~10.0.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@bitauth/libauth": "~3.0.0",
|
|
50
|
-
"@metamask/providers": "^22.1.1",
|
|
51
50
|
"@mui/icons-material": "^9.1.1",
|
|
52
51
|
"@mui/material": "^9.1.2",
|
|
53
52
|
"@mui/system": "^9.1.2",
|
|
54
|
-
"@mui/x-tree-view": "~9.
|
|
53
|
+
"@mui/x-tree-view": "~9.7.0",
|
|
55
54
|
"@noble/post-quantum": "~0.6.1",
|
|
56
55
|
"@opentelemetry/api": "^1.9.1",
|
|
57
56
|
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
58
|
-
"@react-spring/web": "~10.1.
|
|
57
|
+
"@react-spring/web": "~10.1.2",
|
|
59
58
|
"@scure/base": "~2.2.0",
|
|
60
59
|
"@scure/bip39": "~2.2.0",
|
|
61
60
|
"@storybook/react-vite": "~10.4.6",
|
|
62
61
|
"@types/react": "^19.2.17",
|
|
63
|
-
"@xylabs/eth-address": "^
|
|
64
|
-
"@xylabs/geo": "^
|
|
65
|
-
"@xylabs/pixel": "^
|
|
66
|
-
"@xylabs/react-async-effect": "
|
|
67
|
-
"@xylabs/react-button": "
|
|
68
|
-
"@xylabs/react-flexbox": "
|
|
69
|
-
"@xylabs/react-hooks": "
|
|
70
|
-
"@xylabs/react-identicon": "
|
|
71
|
-
"@xylabs/react-link": "
|
|
72
|
-
"@xylabs/react-promise": "
|
|
73
|
-
"@xylabs/react-quick-tip-button": "
|
|
74
|
-
"@xylabs/react-select": "
|
|
75
|
-
"@xylabs/react-shared": "
|
|
76
|
-
"@xylabs/react-theme": "
|
|
77
|
-
"@xylabs/sdk
|
|
78
|
-
"@xylabs/sdk-react": "~
|
|
79
|
-
"@xylabs/threads": "^
|
|
80
|
-
"@xylabs/toolchain": "~8.3
|
|
81
|
-
"@xylabs/tsconfig": "^8.3
|
|
82
|
-
"@xylabs/tsconfig-dom": "^8.3
|
|
83
|
-
"@xylabs/tsconfig-react": "~8.3
|
|
84
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "
|
|
85
|
-
"@xyo-network/diviner-schema-list": "
|
|
86
|
-
"@xyo-network/diviner-schema-stats": "
|
|
62
|
+
"@xylabs/eth-address": "^7.0.1",
|
|
63
|
+
"@xylabs/geo": "^7.0.1",
|
|
64
|
+
"@xylabs/pixel": "^7.0.1",
|
|
65
|
+
"@xylabs/react-async-effect": "~10.0",
|
|
66
|
+
"@xylabs/react-button": "~10.0",
|
|
67
|
+
"@xylabs/react-flexbox": "~10.0",
|
|
68
|
+
"@xylabs/react-hooks": "~10.0",
|
|
69
|
+
"@xylabs/react-identicon": "~10.0",
|
|
70
|
+
"@xylabs/react-link": "~10.0",
|
|
71
|
+
"@xylabs/react-promise": "~10.0",
|
|
72
|
+
"@xylabs/react-quick-tip-button": "~10.0",
|
|
73
|
+
"@xylabs/react-select": "~10.0",
|
|
74
|
+
"@xylabs/react-shared": "~10.0",
|
|
75
|
+
"@xylabs/react-theme": "~10.0",
|
|
76
|
+
"@xylabs/sdk": "^7.0.1",
|
|
77
|
+
"@xylabs/sdk-react": "~10.0",
|
|
78
|
+
"@xylabs/threads": "^7.0.1",
|
|
79
|
+
"@xylabs/toolchain": "~8.5.3",
|
|
80
|
+
"@xylabs/tsconfig": "^8.5.3",
|
|
81
|
+
"@xylabs/tsconfig-dom": "^8.5.3",
|
|
82
|
+
"@xylabs/tsconfig-react": "~8.5.3",
|
|
83
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^7.0.1",
|
|
84
|
+
"@xyo-network/diviner-schema-list": "^7.0.3",
|
|
85
|
+
"@xyo-network/diviner-schema-stats": "^7.0.3",
|
|
87
86
|
"@xyo-network/node-core-types": "~4.2.2",
|
|
88
|
-
"@xyo-network/sdk
|
|
89
|
-
"@xyo-network/sdk-protocol
|
|
87
|
+
"@xyo-network/sdk": "^7.0.3",
|
|
88
|
+
"@xyo-network/sdk-protocol": "^7.0.4",
|
|
90
89
|
"@xyo-network/typeof": "~5.3.30",
|
|
91
90
|
"ajv": "^8.20.0",
|
|
92
91
|
"async-mutex": "^0.5.0",
|
|
93
92
|
"clsx": "~2.1.1",
|
|
94
|
-
"debug": "
|
|
95
|
-
"eslint": "^10.
|
|
93
|
+
"debug": "^4.4.3",
|
|
94
|
+
"eslint": "^10.6.0",
|
|
96
95
|
"ethers": "^6.17.0",
|
|
97
96
|
"hash-wasm": "~4.12.0",
|
|
98
97
|
"idb": "^8.0.3",
|
|
99
98
|
"lru-cache": "^11.5.1",
|
|
100
99
|
"md5": "~2.3.0",
|
|
101
100
|
"numeral": "~2.0.6",
|
|
102
|
-
"observable-fns": "
|
|
103
|
-
"query-string": "~9.4.
|
|
101
|
+
"observable-fns": "^0.6.1",
|
|
102
|
+
"query-string": "~9.4.1",
|
|
104
103
|
"react": "^19.2.7",
|
|
105
104
|
"react-dom": "^19.2.7",
|
|
106
105
|
"react-router-dom": "^7.18.0",
|
|
@@ -108,52 +107,51 @@
|
|
|
108
107
|
"typescript": "^6.0.3",
|
|
109
108
|
"viem": "^2.53.1",
|
|
110
109
|
"vite": "^8.1.0",
|
|
111
|
-
"webextension-polyfill": "^0.12.0",
|
|
112
110
|
"zod": "^4.4.3",
|
|
113
111
|
"zustand": "~5.0.14",
|
|
114
|
-
"@xyo-network/react-storybook": "~10.0.
|
|
112
|
+
"@xyo-network/react-storybook": "~10.0.3"
|
|
115
113
|
},
|
|
116
114
|
"peerDependencies": {
|
|
117
115
|
"@bitauth/libauth": "~3.0",
|
|
118
|
-
"@metamask/providers": "^22.1",
|
|
119
116
|
"@mui/icons-material": "^9.0",
|
|
120
117
|
"@mui/material": "^9.0",
|
|
121
118
|
"@mui/system": "^9.0",
|
|
122
|
-
"@mui/x-tree-view": "~9.
|
|
119
|
+
"@mui/x-tree-view": "~9.7",
|
|
123
120
|
"@noble/post-quantum": "~0.6.1",
|
|
124
121
|
"@opentelemetry/api": "^1.9",
|
|
125
122
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
126
123
|
"@react-spring/web": "~10.1",
|
|
127
124
|
"@scure/base": "~2.2",
|
|
128
125
|
"@scure/bip39": "~2.2",
|
|
129
|
-
"@
|
|
130
|
-
"@xylabs/
|
|
131
|
-
"@xylabs/
|
|
132
|
-
"@xylabs/
|
|
133
|
-
"@xylabs/react-
|
|
134
|
-
"@xylabs/react-
|
|
135
|
-
"@xylabs/react-
|
|
136
|
-
"@xylabs/react-
|
|
137
|
-
"@xylabs/react-
|
|
138
|
-
"@xylabs/react-
|
|
139
|
-
"@xylabs/react-
|
|
140
|
-
"@xylabs/react-
|
|
141
|
-
"@xylabs/react-
|
|
142
|
-
"@xylabs/react-
|
|
143
|
-
"@xylabs/
|
|
144
|
-
"@xylabs/sdk
|
|
145
|
-
"@xylabs/
|
|
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",
|
|
146
144
|
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^7.0",
|
|
147
145
|
"@xyo-network/diviner-schema-list": "^7.0",
|
|
148
146
|
"@xyo-network/diviner-schema-stats": "^7.0",
|
|
149
147
|
"@xyo-network/node-core-types": "~4.2",
|
|
150
|
-
"@xyo-network/sdk
|
|
151
|
-
"@xyo-network/sdk-protocol
|
|
148
|
+
"@xyo-network/sdk": "*",
|
|
149
|
+
"@xyo-network/sdk-protocol": "^7.0",
|
|
152
150
|
"@xyo-network/typeof": "~5.3",
|
|
153
151
|
"ajv": "^8.20",
|
|
154
152
|
"async-mutex": "^0.5",
|
|
155
153
|
"clsx": "~2.1",
|
|
156
|
-
"debug": "
|
|
154
|
+
"debug": "^4.4",
|
|
157
155
|
"ethers": "^6.16",
|
|
158
156
|
"hash-wasm": "~4.12",
|
|
159
157
|
"idb": "^8.0",
|
|
@@ -166,7 +164,6 @@
|
|
|
166
164
|
"react-dom": "^19.2",
|
|
167
165
|
"react-router-dom": "^7.15",
|
|
168
166
|
"viem": "^2.48",
|
|
169
|
-
"webextension-polyfill": "^0.12",
|
|
170
167
|
"zod": "^4.4",
|
|
171
168
|
"zustand": "~5.0"
|
|
172
169
|
},
|