@xyo-network/react-ethereum-gas-price-blocknative-plugin 7.6.3 → 8.0.1

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":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAIrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,gBAAgB,CAqC1F,CAAA"}
1
+ {"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAIrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,gBAAgB,CA2C1F,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"BlocknativeGasPriceDetailsBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Box/BlocknativeGasPriceDetailsBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAMzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAA;AAEtF,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,GAAG,YAAY,CA4ChG,CAAA"}
1
+ {"version":3,"file":"BlocknativeGasPriceDetailsBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Box/BlocknativeGasPriceDetailsBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAMzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAA;AAEtF,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,GAAG,YAAY,CAqDhG,CAAA"}
@@ -82,7 +82,16 @@ var BlocknativeGasPriceCardContent = ({ payload, ...props }) => {
82
82
  ))
83
83
  }
84
84
  ),
85
- /* @__PURE__ */ jsx(ToggleRawPayloadBox, { gasPricePayload, alignItems: "start", pr: 1 })
85
+ /* @__PURE__ */ jsx(
86
+ ToggleRawPayloadBox,
87
+ {
88
+ gasPricePayload,
89
+ sx: {
90
+ alignItems: "start",
91
+ pr: 1
92
+ }
93
+ }
94
+ )
86
95
  ]
87
96
  }
88
97
  );
@@ -136,45 +145,61 @@ var BlocknativeGasPriceDetailsBox = ({
136
145
  }) => {
137
146
  const gasPricePayload = payload;
138
147
  const parsedPayload = getBlocknativeTransformer(gasPricePayload);
139
- return /* @__PURE__ */ jsx4(Fragment, { children: isEmpty2(gasPricePayload) || !gasPricePayload?.blockPrices?.length ? /* @__PURE__ */ jsx4(PayloadDataMissing2, { alertBody: "Payload is missing valid gas fee data." }) : /* @__PURE__ */ jsxs3(FlexCol, { alignItems: "start", rowGap: 4, ...props, children: [
140
- /* @__PURE__ */ jsx4(GasPriceWitnessHeaderBox, { heading: RenderTitle, parsedPayload }),
141
- /* @__PURE__ */ jsx4(
142
- Grid2,
143
- {
144
- container: true,
145
- spacing: 3,
146
- columns: {
147
- lg: 15,
148
- md: 15,
149
- sm: 12,
150
- xs: 12
151
- },
152
- children: parsedPayload && parsedPayload?.gasPrice?.map(({ price, priorityFee }) => /* @__PURE__ */ jsx4(
148
+ return /* @__PURE__ */ jsx4(Fragment, { children: isEmpty2(gasPricePayload) || !gasPricePayload?.blockPrices?.length ? /* @__PURE__ */ jsx4(PayloadDataMissing2, { alertBody: "Payload is missing valid gas fee data." }) : /* @__PURE__ */ jsxs3(
149
+ FlexCol,
150
+ {
151
+ ...props,
152
+ sx: [{
153
+ alignItems: "start",
154
+ rowGap: 4
155
+ }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
156
+ children: [
157
+ /* @__PURE__ */ jsx4(GasPriceWitnessHeaderBox, { heading: RenderTitle, parsedPayload }),
158
+ /* @__PURE__ */ jsx4(
153
159
  Grid2,
154
160
  {
155
- size: {
156
- xs: 12,
157
- sm: 6,
158
- md: 5,
159
- lg: 3
161
+ container: true,
162
+ spacing: 3,
163
+ columns: {
164
+ lg: 15,
165
+ md: 15,
166
+ sm: 12,
167
+ xs: 12
160
168
  },
161
- children: /* @__PURE__ */ jsx4(
162
- GasFeeCard2,
169
+ children: parsedPayload && parsedPayload?.gasPrice?.map(({ price, priorityFee }) => /* @__PURE__ */ jsx4(
170
+ Grid2,
163
171
  {
164
- gasPrice: price?.value,
165
- speed: price?.label,
166
- priorityFee: priorityFee?.value,
167
- priorityFeeLabel: priorityFee?.label
172
+ size: {
173
+ xs: 12,
174
+ sm: 6,
175
+ md: 5,
176
+ lg: 3
177
+ },
178
+ children: /* @__PURE__ */ jsx4(
179
+ GasFeeCard2,
180
+ {
181
+ gasPrice: price?.value,
182
+ speed: price?.label,
183
+ priorityFee: priorityFee?.value,
184
+ priorityFeeLabel: priorityFee?.label
185
+ },
186
+ price?.label
187
+ )
168
188
  },
169
189
  price?.label
170
- )
171
- },
172
- price?.label
173
- ))
174
- }
175
- ),
176
- /* @__PURE__ */ jsx4(ToggleRawPayloadBox2, { gasPricePayload, alignItems: "start" })
177
- ] }) });
190
+ ))
191
+ }
192
+ ),
193
+ /* @__PURE__ */ jsx4(
194
+ ToggleRawPayloadBox2,
195
+ {
196
+ gasPricePayload,
197
+ sx: { alignItems: "start" }
198
+ }
199
+ )
200
+ ]
201
+ }
202
+ ) });
178
203
  };
179
204
  BlocknativeGasPriceDetailsBox.displayName = "BlocknativeGasPriceDetailsBox";
180
205
 
@@ -204,4 +229,4 @@ export {
204
229
  EthereumGasPriceBlocknativePlugin,
205
230
  EthereumGasPriceBlocknativePlugin as default
206
231
  };
207
- //# sourceMappingURL=index.mjs.map
232
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":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"],"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\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 gasPricePayload={gasPricePayload} alignItems=\"start\" pr={1} />\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 alignItems=\"start\" rowGap={4} {...props}>\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\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 gasPricePayload={gasPricePayload} alignItems=\"start\" />\n </FlexCol>\n )}\n </>\n )\n}\n\nBlocknativeGasPriceDetailsBox.displayName = 'BlocknativeGasPriceDetailsBox'\n","import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin'\nimport type { Payload } from '@xyo-network/payload-model'\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'\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"],"mappings":";AACA,SAAS,YAAY;;;ACArB,SAAS,aAAa,YAAY;AAElC,SAAS,YAAY,2BAA2B;AAEhD,S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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;","names":["jsx","jsx","jsxs","Grid","GasFeeCard","ToggleRawPayloadBox","PayloadDataMissing","jsx","jsxs","isEmpty","PayloadDataMissing","Grid","GasFeeCard","ToggleRawPayloadBox"]}
1
+ {
2
+ "version": 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\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\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 type { Payload } from '@xyo-network/payload-model'\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'\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
+ "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;AACxH,QAAM,kBAAkB;AACxB,QAAM,gBAAgB,0BAA0B,eAAe;AAE/D,MAAI,QAAQ,eAAe,KAAK,CAAC,iBAAiB,aAAa,QAAQ;AACrE,WAAO,oBAAC,sBAAmB,WAAU,0CAAyC,IAAI,EAAE,GAAG,EAAE,GAAG;AAAA,EAC9F;AA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AI;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,QACL;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;;;ACvE5C,SAAS,oCAAoC;AAE7C,SAAS,8BAA8B;AAEvC,SAAS,iCAAiC;AAMnC,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
+ "names": ["jsx", "jsx", "jsxs", "Grid", "GasFeeCard", "ToggleRawPayloadBox", "PayloadDataMissing", "jsx", "jsxs", "isEmpty", "PayloadDataMissing", "Grid", "GasFeeCard", "ToggleRawPayloadBox"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-ethereum-gas-price-blocknative-plugin",
3
- "version": "7.6.3",
3
+ "version": "8.0.1",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -41,51 +41,49 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@xyo-network/react-gas-price": "~7.6.3",
45
- "@xyo-network/react-payload-plugin": "~7.6.3",
46
- "@xyo-network/react-shared": "~7.6.3"
44
+ "@xyo-network/react-gas-price": "~8.0.1",
45
+ "@xyo-network/react-shared": "~8.0.1",
46
+ "@xyo-network/react-payload-plugin": "~8.0.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@bitauth/libauth": "~3.0.0",
50
- "@emotion/react": "^11.14.0",
51
- "@emotion/styled": "^11.14.1",
52
50
  "@metamask/providers": "^22.1.1",
53
- "@mui/icons-material": "^7.3.11",
54
- "@mui/material": "^7.3.11",
55
- "@mui/system": "^7.3.11",
56
- "@mui/x-tree-view": "~8.27.2",
51
+ "@mui/icons-material": "^9.0.1",
52
+ "@mui/material": "^9.0.1",
53
+ "@mui/system": "^9.0.1",
54
+ "@mui/x-tree-view": "~9.1.0",
57
55
  "@opentelemetry/api": "^1.9.1",
58
56
  "@opentelemetry/sdk-trace-base": "^2.7.1",
59
57
  "@react-spring/web": "~10.0.3",
60
58
  "@scure/base": "~2.2.0",
61
59
  "@scure/bip39": "~2.2.0",
62
- "@storybook/react-vite": "~10.3.6",
63
- "@textea/json-viewer": "~4.0.1",
60
+ "@storybook/react-vite": "~10.4.0",
64
61
  "@types/react": "^19.2.14",
65
- "@xylabs/geo": "^5.1.2",
66
- "@xylabs/pixel": "~5.1.2",
67
- "@xylabs/react-async-effect": "~7.2.4",
68
- "@xylabs/react-button": "~7.2.4",
69
- "@xylabs/react-flexbox": "~7.2.4",
70
- "@xylabs/react-hooks": "~7.2.4",
71
- "@xylabs/react-identicon": "~7.2.4",
72
- "@xylabs/react-link": "~7.2.4",
73
- "@xylabs/react-promise": "~7.2.4",
74
- "@xylabs/react-quick-tip-button": "~7.2.4",
75
- "@xylabs/react-select": "~7.2.4",
76
- "@xylabs/react-shared": "~7.2.4",
77
- "@xylabs/react-theme": "~7.2.4",
78
- "@xylabs/sdk-js": "^5.1.2",
79
- "@xylabs/threads": "~5.1.2",
80
- "@xylabs/toolchain": "~7.13.15",
81
- "@xylabs/tsconfig": "^7.13.15",
82
- "@xylabs/tsconfig-dom": "^7.13.15",
83
- "@xylabs/tsconfig-react": "~7.13.15",
62
+ "@xylabs/geo": "^5.1.3",
63
+ "@xylabs/pixel": "~5.1.3",
64
+ "@xylabs/react-async-effect": "~8.0.3",
65
+ "@xylabs/react-button": "~8.0.3",
66
+ "@xylabs/react-flexbox": "~8.0.3",
67
+ "@xylabs/react-hooks": "~8.0.3",
68
+ "@xylabs/react-identicon": "~8.0.3",
69
+ "@xylabs/react-link": "~8.0.3",
70
+ "@xylabs/react-promise": "~8.0.3",
71
+ "@xylabs/react-quick-tip-button": "~8.0.3",
72
+ "@xylabs/react-select": "~8.0.3",
73
+ "@xylabs/react-shared": "~8.0.3",
74
+ "@xylabs/react-theme": "~8.0.3",
75
+ "@xylabs/sdk-js": "^5.1.3",
76
+ "@xylabs/sdk-react": "~8.0.3",
77
+ "@xylabs/threads": "~5.1.3",
78
+ "@xylabs/toolchain": "~8.0.6",
79
+ "@xylabs/tsconfig": "^8.0.6",
80
+ "@xylabs/tsconfig-dom": "^8.0.6",
81
+ "@xylabs/tsconfig-react": "~8.0.6",
84
82
  "@xyo-network/account": "~5.6.2",
85
83
  "@xyo-network/account-model": "^5.6.3",
86
84
  "@xyo-network/api": "~5.6.2",
87
85
  "@xyo-network/api-models": "~5.6.3",
88
- "@xyo-network/blocknative-ethereum-gas-payload-plugin": "~5.5.1",
86
+ "@xyo-network/blocknative-ethereum-gas-payload-plugin": "~5.5.2",
89
87
  "@xyo-network/boundwitness-builder": "^5.6.2",
90
88
  "@xyo-network/boundwitness-model": "^5.6.3",
91
89
  "@xyo-network/boundwitness-validator": "^5.6.2",
@@ -97,7 +95,7 @@
97
95
  "@xyo-network/huri": "^5.6.2",
98
96
  "@xyo-network/manifest-model": "~5.6.3",
99
97
  "@xyo-network/module-model": "^5.6.4",
100
- "@xyo-network/node-core-types": "~4.2.1",
98
+ "@xyo-network/node-core-types": "~4.2.2",
101
99
  "@xyo-network/node-memory": "~5.6.4",
102
100
  "@xyo-network/node-model": "^5.6.4",
103
101
  "@xyo-network/payload-builder": "^5.6.2",
@@ -119,64 +117,66 @@
119
117
  "bowser": "^2.14.1",
120
118
  "buffer": "^6.0.3",
121
119
  "chalk": "^5.6.2",
120
+ "clsx": "~2.1.1",
122
121
  "debug": "~4.4.3",
123
- "eslint": "^10.3.0",
122
+ "eslint": "^10.4.0",
124
123
  "ethers": "^6.16.0",
125
124
  "fast-deep-equal": "~3.1.3",
126
125
  "hash-wasm": "~4.12.0",
127
126
  "idb": "^8.0.3",
128
- "js-cookie": "~3.0.5",
127
+ "js-cookie": "~3.0.6",
129
128
  "lru-cache": "^11.3.6",
130
129
  "mapbox-gl": "^3.23.1",
131
130
  "md5": "~2.3.0",
132
- "mixpanel-browser": "~2.78.0",
131
+ "mixpanel-browser": "~2.79.0",
132
+ "numeral": "~2.0.6",
133
133
  "observable-fns": "~0.6.1",
134
134
  "pako": "^2.1.0",
135
135
  "query-string": "~9.3.1",
136
136
  "react": "^19.2.6",
137
137
  "react-dom": "^19.2.6",
138
138
  "react-is": "^19.2.6",
139
- "react-router-dom": "^7.15.0",
139
+ "react-router-dom": "^7.15.1",
140
140
  "recharts": "~3.8.1",
141
141
  "spark-md5": "~3.0.2",
142
142
  "store2": "~2.14.4",
143
- "storybook": "^10.3.6",
144
- "typescript": "^5.9.3",
145
- "vite": "^8.0.10",
143
+ "storybook": "^10.4.0",
144
+ "typescript": "^6.0.3",
145
+ "viem": "^2.49.3",
146
+ "vite": "^8.0.13",
146
147
  "wasm-feature-detect": "~1.8.0",
147
148
  "webextension-polyfill": "^0.12.0",
148
149
  "zod": "^4.4.3",
149
- "@xyo-network/react-storybook": "~7.6.3"
150
+ "zustand": "~5.0.13",
151
+ "@xyo-network/react-storybook": "~8.0.1"
150
152
  },
151
153
  "peerDependencies": {
152
154
  "@bitauth/libauth": "~3.0",
153
- "@emotion/react": "^11.14",
154
- "@emotion/styled": "^11.14",
155
155
  "@metamask/providers": "^22.1",
156
- "@mui/icons-material": "^7.3",
157
- "@mui/material": "^7.3",
158
- "@mui/system": "^7.3",
159
- "@mui/x-tree-view": "~8.27",
156
+ "@mui/icons-material": "^9.0",
157
+ "@mui/material": "^9.0",
158
+ "@mui/system": "^9.0",
159
+ "@mui/x-tree-view": "~9.1",
160
160
  "@opentelemetry/api": "^1.9",
161
161
  "@opentelemetry/sdk-trace-base": "^2.7",
162
162
  "@react-spring/web": "~10.0",
163
163
  "@scure/base": "~2.2",
164
164
  "@scure/bip39": "~2.2",
165
- "@textea/json-viewer": "~4.0",
166
165
  "@xylabs/geo": "^5.1",
167
166
  "@xylabs/pixel": "~5.1",
168
- "@xylabs/react-async-effect": "~7.2",
169
- "@xylabs/react-button": "~7.2",
170
- "@xylabs/react-flexbox": "~7.2",
171
- "@xylabs/react-hooks": "~7.2",
172
- "@xylabs/react-identicon": "~7.2",
173
- "@xylabs/react-link": "~7.2",
174
- "@xylabs/react-promise": "~7.2",
175
- "@xylabs/react-quick-tip-button": "~7.2",
176
- "@xylabs/react-select": "~7.2",
177
- "@xylabs/react-shared": "~7.2",
178
- "@xylabs/react-theme": "~7.2",
167
+ "@xylabs/react-async-effect": "~8.0",
168
+ "@xylabs/react-button": "~8.0",
169
+ "@xylabs/react-flexbox": "~8.0",
170
+ "@xylabs/react-hooks": "~8.0",
171
+ "@xylabs/react-identicon": "~8.0",
172
+ "@xylabs/react-link": "~8.0",
173
+ "@xylabs/react-promise": "~8.0",
174
+ "@xylabs/react-quick-tip-button": "~8.0",
175
+ "@xylabs/react-select": "~8.0",
176
+ "@xylabs/react-shared": "~8.0",
177
+ "@xylabs/react-theme": "~8.0",
179
178
  "@xylabs/sdk-js": "^5.1",
179
+ "@xylabs/sdk-react": "~8.0",
180
180
  "@xylabs/threads": "~5.1",
181
181
  "@xyo-network/account": "~5.6",
182
182
  "@xyo-network/account-model": "^5.6",
@@ -216,6 +216,7 @@
216
216
  "bowser": "^2.14",
217
217
  "buffer": "^6.0",
218
218
  "chalk": "^5.6",
219
+ "clsx": "~2.1",
219
220
  "debug": "~4.4",
220
221
  "ethers": "^6.16",
221
222
  "fast-deep-equal": "~3.1",
@@ -225,7 +226,8 @@
225
226
  "lru-cache": "^11.3",
226
227
  "mapbox-gl": "^3.23",
227
228
  "md5": "~2.3",
228
- "mixpanel-browser": "~2.78",
229
+ "mixpanel-browser": "~2.79",
230
+ "numeral": "~2.0",
229
231
  "observable-fns": "~0.6",
230
232
  "pako": "^2.1",
231
233
  "query-string": "~9.3",
@@ -236,9 +238,11 @@
236
238
  "recharts": "~3.8",
237
239
  "spark-md5": "~3.0",
238
240
  "store2": "~2.14",
241
+ "viem": "^2.48",
239
242
  "wasm-feature-detect": "~1.8",
240
243
  "webextension-polyfill": "^0.12",
241
- "zod": "^4.4"
244
+ "zod": "^4.4",
245
+ "zustand": "~5.0"
242
246
  },
243
247
  "publishConfig": {
244
248
  "access": "public"