@xyo-network/react-chain-blockchain 1.20.11 → 1.20.12

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.20.11",
4
+ "version": "1.20.12",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -56,13 +56,13 @@
56
56
  "@xylabs/react-theme": "~7.1.17",
57
57
  "@xylabs/sdk-js": "~5.0.90",
58
58
  "@xyo-network/boundwitness-model": "~5.3.17",
59
- "@xyo-network/chain-analyze": "~1.20.11",
60
- "@xyo-network/chain-protocol": "~1.20.11",
61
- "@xyo-network/chain-wrappers": "~1.20.11",
59
+ "@xyo-network/chain-analyze": "~1.20.12",
60
+ "@xyo-network/chain-protocol": "~1.20.12",
61
+ "@xyo-network/chain-wrappers": "~1.20.12",
62
62
  "@xyo-network/react-boundwitness-plugin": "~7.5.8",
63
- "@xyo-network/react-chain-blockies": "~1.20.11",
64
- "@xyo-network/react-chain-provider": "~1.20.11",
65
- "@xyo-network/react-chain-shared": "~1.20.11",
63
+ "@xyo-network/react-chain-blockies": "~1.20.12",
64
+ "@xyo-network/react-chain-provider": "~1.20.12",
65
+ "@xyo-network/react-chain-shared": "~1.20.12",
66
66
  "@xyo-network/react-error": "~7.5.8",
67
67
  "@xyo-network/react-event": "~7.5.8",
68
68
  "@xyo-network/react-payload-raw-info": "~7.5.8",
@@ -88,7 +88,7 @@
88
88
  "@xylabs/tsconfig-dom": "~7.5.10",
89
89
  "@xylabs/tsconfig-react": "~7.5.10",
90
90
  "@xyo-network/bridge-http": "~5.3.17",
91
- "@xyo-network/react-chain-network": "~1.20.11",
91
+ "@xyo-network/react-chain-network": "~1.20.12",
92
92
  "@xyo-network/sdk-js": "~5.3.17",
93
93
  "@xyo-network/xl1-sdk": "~1.26.9",
94
94
  "axios": "^1.14.0",
@@ -20,7 +20,7 @@ export const RawAmountTableCell: React.FC<RawAmountTableCellProps> = ({
20
20
  amount, linked, sx, type, ...props
21
21
  }) => {
22
22
  const [ref, dispatch] = useEvent<HTMLAnchorElement, BalanceHistoryEventNouns>()
23
- const handleClick = () => dispatch('amount', 'click', isDefined(amount) ? toHex(amount) : '')
23
+ const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => dispatch('amount', 'click', isDefined(amount) ? toHex(amount) : '', event.nativeEvent)
24
24
 
25
25
  const formatAmount = (amount?: bigint) => {
26
26
  if (!isDefined(amount)) {
@@ -15,7 +15,7 @@ export const AddressTableCell: React.FC<AddressTableCellProps> = ({
15
15
  address, linked, toolTipTitle, sx, ...props
16
16
  }) => {
17
17
  const [ref, dispatch] = useEvent()
18
- const handleClick = () => dispatch('address', 'click', address)
18
+ const handleClick = (event: React.MouseEvent<HTMLDivElement>) => dispatch('address', 'click', address, event.nativeEvent)
19
19
  return (
20
20
  <TableCell ref={ref} sx={{ cursor: linked ? 'pointer' : 'default', ...sx }} {...props}>
21
21
  <Tooltip title={toolTipTitle}>
@@ -21,7 +21,7 @@ export const HashTableCell: React.FC<HashTableCellProps> = ({
21
21
  hash, linked, toolTipTitle, sx, ...props
22
22
  }) => {
23
23
  const [ref, dispatch] = useEvent<HTMLTableCellElement, BalanceHistoryEventNouns>()
24
- const handleClick = () => dispatch('tx-hash', 'click', hash)
24
+ const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => dispatch('tx-hash', 'click', hash, event.nativeEvent)
25
25
  const shortenedHash = isDefined(hash) ? ellipsize(hash as string, 6) : 'N/A'
26
26
  return (
27
27
  <TableCell ref={ref} {...props}>
@@ -22,7 +22,7 @@ export const BlockHeadingFlexbox: React.FC<BlockComponentWithTxsProps> = ({
22
22
 
23
23
  const handleTransactionCountClick = (event: React.MouseEvent, transactions: Hash[]) => {
24
24
  event.stopPropagation()
25
- blockHeadingListener('transaction-count', 'click', JSON.stringify(transactions))
25
+ blockHeadingListener('transaction-count', 'click', JSON.stringify(transactions), event.nativeEvent)
26
26
  }
27
27
 
28
28
  return (
@@ -23,7 +23,7 @@ export const BlockNumberTableCellInner: React.FC<BlockNumberTableCellProps & { b
23
23
  blockNumber, linked, ...props
24
24
  }) => {
25
25
  const [ref, dispatch] = useEvent<HTMLTableCellElement, BlockHeaderEventNouns>()
26
- const handleClick = () => dispatch('block-number', 'click', blockNumber?.toString() ?? '')
26
+ const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => dispatch('block-number', 'click', blockNumber?.toString() ?? '', event.nativeEvent)
27
27
  return (
28
28
  <TableCell ref={ref} {...props}>
29
29
  <Tooltip title={`Block Number: ${blockNumber}`}>
@@ -17,7 +17,7 @@ export const useLinkedBlockItem = (noun?: BlockHeaderEventNouns, data?: string |
17
17
  const isTextSelected = selection && selection.toString().length > 0
18
18
 
19
19
  if (!isTextSelected) {
20
- dispatch(noun, 'click', data)
20
+ dispatch(noun, 'click', data, event.nativeEvent)
21
21
  }
22
22
  }
23
23