@xyo-network/react-chain-blockchain 1.16.17 → 1.16.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/react-chain-blockchain",
4
- "version": "1.16.17",
4
+ "version": "1.16.19",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -47,8 +47,8 @@
47
47
  "package-cycle": "echo Nothing to do"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/react-vite": "~10.0.7",
51
- "@xylabs/axios": "~5.0.34",
50
+ "@storybook/react-vite": "~10.0.8",
51
+ "@xylabs/axios": "~5.0.37",
52
52
  "@xylabs/react-animation": "~7.1.8",
53
53
  "@xylabs/react-error": "~7.1.8",
54
54
  "@xylabs/react-flexbox": "~7.1.8",
@@ -56,25 +56,25 @@
56
56
  "@xylabs/react-quick-tip-button": "~7.1.8",
57
57
  "@xylabs/react-shared": "~7.1.8",
58
58
  "@xylabs/react-theme": "~7.1.8",
59
- "@xylabs/sdk-js": "~5.0.34",
59
+ "@xylabs/sdk-js": "~5.0.37",
60
60
  "@xyo-network/account": "~5.1.23",
61
61
  "@xyo-network/archivist-memory": "~5.1.23",
62
62
  "@xyo-network/archivist-model": "~5.1.23",
63
63
  "@xyo-network/boundwitness-builder": "~5.1.23",
64
64
  "@xyo-network/boundwitness-model": "~5.1.23",
65
65
  "@xyo-network/bridge-http": "~5.1.23",
66
- "@xyo-network/chain-analyze": "~1.16.17",
67
- "@xyo-network/chain-protocol": "~1.16.17",
68
- "@xyo-network/chain-services": "~1.16.17",
69
- "@xyo-network/chain-utils": "~1.16.17",
70
- "@xyo-network/chain-wrappers": "~1.16.17",
66
+ "@xyo-network/chain-analyze": "~1.16.19",
67
+ "@xyo-network/chain-protocol": "~1.16.19",
68
+ "@xyo-network/chain-services": "~1.16.19",
69
+ "@xyo-network/chain-utils": "~1.16.19",
70
+ "@xyo-network/chain-wrappers": "~1.16.19",
71
71
  "@xyo-network/module-model": "~5.1.23",
72
72
  "@xyo-network/payload-builder": "~5.1.23",
73
73
  "@xyo-network/payload-model": "~5.1.23",
74
74
  "@xyo-network/react-boundwitness-plugin": "~7.3.10",
75
- "@xyo-network/react-chain-blockies": "~1.16.17",
76
- "@xyo-network/react-chain-provider": "~1.16.17",
77
- "@xyo-network/react-chain-shared": "~1.16.17",
75
+ "@xyo-network/react-chain-blockies": "~1.16.19",
76
+ "@xyo-network/react-chain-provider": "~1.16.19",
77
+ "@xyo-network/react-chain-shared": "~1.16.19",
78
78
  "@xyo-network/react-error": "~7.3.10",
79
79
  "@xyo-network/react-event": "~7.3.10",
80
80
  "@xyo-network/react-payload-raw-info": "~7.3.10",
@@ -82,7 +82,7 @@
82
82
  "@xyo-network/react-shared": "~7.3.10",
83
83
  "@xyo-network/react-table": "~7.3.10",
84
84
  "@xyo-network/xl1-protocol": "~1.13.11",
85
- "@xyo-network/xl1-protocol-sdk": "~1.16.17"
85
+ "@xyo-network/xl1-protocol-sdk": "~1.16.19"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@emotion/react": "~11.14.0",
@@ -91,20 +91,20 @@
91
91
  "@mui/material": "~7.3.5",
92
92
  "@types/react": "~19.2.5",
93
93
  "@xylabs/react-button": "~7.1.8",
94
- "@xylabs/sdk-js": "~5.0.34",
94
+ "@xylabs/sdk-js": "~5.0.37",
95
95
  "@xylabs/ts-scripts-yarn3": "~7.2.8",
96
96
  "@xylabs/tsconfig": "~7.2.8",
97
97
  "@xylabs/tsconfig-dom": "~7.2.8",
98
98
  "@xylabs/tsconfig-react": "~7.2.8",
99
99
  "@xyo-network/api-models": "~5.1.23",
100
- "@xyo-network/xl1-network-model": "~1.16.17",
101
- "@xyo-network/xl1-rpc": "~1.16.17",
100
+ "@xyo-network/xl1-network-model": "~1.16.19",
101
+ "@xyo-network/xl1-rpc": "~1.16.19",
102
102
  "axios": "^1.13.2",
103
103
  "eslint": "^9.39.1",
104
104
  "react": "~19.2.0",
105
105
  "react-dom": "~19.2.0",
106
106
  "react-router-dom": "^7.9.6",
107
- "storybook": "~10.0.7",
107
+ "storybook": "~10.0.8",
108
108
  "typescript": "~5.9.3"
109
109
  },
110
110
  "peerDependencies": {
@@ -4,7 +4,7 @@ import {
4
4
  import type { AccountBalanceHistoryItemFormatted } from '@xyo-network/react-chain-provider'
5
5
  import { RawInfoIconButton } from '@xyo-network/react-payload-raw-info'
6
6
  import type { JsonValue } from '@xyo-network/xl1-rpc'
7
- import { useMemo } from 'react'
7
+ import React, { useMemo } from 'react'
8
8
 
9
9
  import { BlockEpochTableCellInner, BlockNumberTableCellInner } from '../../block/index.ts'
10
10
  import { AddressTableCell, HashTableCell } from './cell/index.ts'
@@ -6,6 +6,7 @@ import { isDefined, toHex } from '@xylabs/sdk-js'
6
6
  import type { BalanceTransactionType } from '@xyo-network/react-chain-provider'
7
7
  import { useEvent } from '@xyo-network/react-event'
8
8
  import { XL1Amount } from '@xyo-network/xl1-protocol'
9
+ import React from 'react'
9
10
 
10
11
  import type { BalanceHistoryEventNouns } from './types/index.ts'
11
12
 
@@ -1,6 +1,7 @@
1
1
  import type { TableCellProps } from '@mui/material'
2
2
  import { TableCell, Tooltip } from '@mui/material'
3
3
  import { useEvent } from '@xyo-network/react-event'
4
+ import React from 'react'
4
5
 
5
6
  import { BlockAddressChip } from '../../../block/index.ts'
6
7
 
@@ -7,6 +7,7 @@ import {
7
7
  ellipsize, type Hash, isDefined,
8
8
  } from '@xylabs/sdk-js'
9
9
  import { useEvent } from '@xyo-network/react-event'
10
+ import React from 'react'
10
11
 
11
12
  import type { BalanceHistoryEventNouns } from '../types/index.ts'
12
13
 
@@ -2,7 +2,7 @@ import { useEvent } from '@xyo-network/react-event'
2
2
 
3
3
  export type BlockHeaderEventNouns = 'transaction-count' | 'block-hash' | 'block-number' | 'block-producer' | 'block-verification' | 'payload-counts'
4
4
 
5
- // NOTE: extracting the type so compilers can easily strip it off vs inlining it withing the hook
5
+ // Extracting the type so compilers can easily strip it off vs inlining it withing the hook
6
6
  // which causes compilation warnings.
7
7
  type HookArgs<TElement extends HTMLElement> = Parameters<typeof useEvent<TElement, BlockHeaderEventNouns>>
8
8
 
@@ -10,7 +10,7 @@ export const useOnBlock = (
10
10
  pollingState?: PollingState,
11
11
  ) => {
12
12
  /**
13
- * Note: blocksWhilePaused is a ref because we don't want to re-render the component when it changes.
13
+ * blocksWhilePaused is a ref because we don't want to re-render the component when it changes.
14
14
  * But, since we get new blockComponents regardless, the hook rerenders anyway so consumers can get
15
15
  * the latest blocksWhilePaused value without having to rely on a state update.
16
16
  */
@@ -18,7 +18,7 @@ const Template: StoryFn<typeof StaticBlockchainRenderFlexBox.WithAnalysis> = (ar
18
18
  return <StaticBlockchainRenderFlexBox.WithAnalysis {...args} />
19
19
  }
20
20
 
21
- // NOTE: the head would normally be passed as a prop, but the decorator passes it behind
21
+ // The head would normally be passed as a prop, but the decorator passes it behind
22
22
  // the scenes to the component because it generated the chain in use by the story
23
23
  const Default = Template.bind({})
24
24
  Default.args = {}
@@ -10,7 +10,7 @@ import { useChainPagination } from '../../../pagination/index.ts'
10
10
 
11
11
  const DEFAULT_PAGE_SIZE = 25
12
12
 
13
- // Note: This is a hook but could easily be bundled up in a class with callbacks
13
+ // This is a hook but could easily be bundled up in a class with callbacks
14
14
  export const useStaticBlockRenderComponents = (BlockComponent: ComponentType<BlockComponentWithTxsProps>, blockChainRenderProps?: BlockChainRenderProps) => {
15
15
  const { maxBlocks } = blockChainRenderProps ?? {}
16
16
  const pageSize = blockChainRenderProps?.pageSize ?? DEFAULT_PAGE_SIZE
@@ -4,7 +4,7 @@ import type { BlockChainRenderTableExProps } from '../../../../../../types/index
4
4
  import { Base } from './Base.tsx'
5
5
 
6
6
  export const WithAnalysis: React.FC<BlockChainRenderTableExProps> = ({ blockChainRenderProps, ...props }) => {
7
- // NOTE: More code here if we want to analyze the static data via ChainAnalyzers
7
+ // More code here if we want to analyze the static data via ChainAnalyzers
8
8
  return (
9
9
  <Base blockChainRenderProps={blockChainRenderProps} {...props} />
10
10
  )
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Alert, Grid, Typography,
3
3
  } from '@mui/material'
4
- import { AxiosJson } from '@xylabs/axios'
4
+ import { axiosJsonConfig } from '@xylabs/axios'
5
5
  import { ErrorRender } from '@xylabs/react-error'
6
6
  import { FlexGrowCol } from '@xylabs/react-flexbox'
7
7
  import { Account } from '@xyo-network/account'
@@ -46,7 +46,7 @@ export const SubmitChainTransaction: React.FC = () => {
46
46
  .signer(randomAccount)
47
47
  .build()
48
48
 
49
- const response = await new Axios(AxiosJson.axiosConfig()).post<ApiEnvelope<ModuleQueryResult>>(
49
+ const response = await new Axios(axiosJsonConfig()).post<ApiEnvelope<ModuleQueryResult>>(
50
50
  network.href,
51
51
  [queryBoundWitness, [insertQuery, transactionBoundWitness, chainTx]],
52
52
  )