@xyo-network/react-chain-blockchain 1.3.7 → 1.3.9

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.
Files changed (109) hide show
  1. package/dist/browser/index.mjs +99 -98
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/types/components/block/ProducerChip.d.ts +1 -1
  4. package/dist/types/components/block/ProducerChip.d.ts.map +1 -1
  5. package/dist/types/components/block/helpers/blockProducer.d.ts +1 -1
  6. package/dist/types/components/block/helpers/blockProducer.d.ts.map +1 -1
  7. package/dist/types/components/block/helpers/payloadCountsFromBlock.d.ts +1 -1
  8. package/dist/types/components/block/helpers/payloadCountsFromBlock.d.ts.map +1 -1
  9. package/dist/types/components/block/hooks/useBlockProducer.d.ts +1 -1
  10. package/dist/types/components/block/hooks/useBlockProducer.d.ts.map +1 -1
  11. package/dist/types/components/block/hooks/useDynamicBlockComponents.d.ts +1 -1
  12. package/dist/types/components/block/hooks/useDynamicBlockComponents.d.ts.map +1 -1
  13. package/dist/types/components/block/hooks/usePayloadCountsFromBlock.d.ts +1 -1
  14. package/dist/types/components/block/hooks/usePayloadCountsFromBlock.d.ts.map +1 -1
  15. package/dist/types/components/block/hooks/useStaticBlockComponents.d.ts +1 -1
  16. package/dist/types/components/block/hooks/useStaticBlockComponents.d.ts.map +1 -1
  17. package/dist/types/components/block/menu/Expanded.d.ts +1 -1
  18. package/dist/types/components/block/menu/Expanded.d.ts.map +1 -1
  19. package/dist/types/components/block/table/cell/BlockNumber.d.ts.map +1 -1
  20. package/dist/types/components/block/table/cell/BlockNumberChip.d.ts +7 -0
  21. package/dist/types/components/block/table/cell/BlockNumberChip.d.ts.map +1 -0
  22. package/dist/types/components/block/table/cell/PayloadCounts.d.ts.map +1 -1
  23. package/dist/types/components/block/table/cell/Producer.d.ts.map +1 -1
  24. package/dist/types/components/block/table/cell/TransactionCount.d.ts.map +1 -1
  25. package/dist/types/components/block/table/cell/Verification.d.ts +1 -0
  26. package/dist/types/components/block/table/cell/Verification.d.ts.map +1 -1
  27. package/dist/types/components/block/table/cell/hooks/useLinkedBlockItem.d.ts.map +1 -1
  28. package/dist/types/components/block/table/cell/lib/BlockTableCellProps.d.ts +1 -1
  29. package/dist/types/components/block/table/cell/lib/BlockTableCellProps.d.ts.map +1 -1
  30. package/dist/types/components/block/table/row/TableRow.d.ts +1 -0
  31. package/dist/types/components/block/table/row/TableRow.d.ts.map +1 -1
  32. package/dist/types/components/chain/hooks/useOnBlock.d.ts +1 -1
  33. package/dist/types/components/chain/hooks/useOnBlock.d.ts.map +1 -1
  34. package/dist/types/components/chain/render/dynamic/hooks/useDynamicBlockRenderComponents.d.ts +1 -1
  35. package/dist/types/components/transactions/TransactionsQuickTipButton.d.ts +1 -1
  36. package/dist/types/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
  37. package/dist/types/components/transactions/submit/Builder.d.ts +1 -1
  38. package/dist/types/components/transactions/submit/Builder.d.ts.map +1 -1
  39. package/dist/types/context/analyzer/state.d.ts +1 -1
  40. package/dist/types/context/analyzer/state.d.ts.map +1 -1
  41. package/dist/types/context/chain/State.d.ts +1 -1
  42. package/dist/types/context/chain/State.d.ts.map +1 -1
  43. package/dist/types/helpers/txsFromBlock.d.ts +2 -2
  44. package/dist/types/helpers/txsFromBlock.d.ts.map +1 -1
  45. package/dist/types/hooks/chain-iterator/ChainIteratorStore.d.ts +1 -1
  46. package/dist/types/hooks/chain-iterator/ChainIteratorStore.d.ts.map +1 -1
  47. package/dist/types/hooks/chain-iterator/useChainIteratorParams.d.ts +3 -3
  48. package/dist/types/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
  49. package/dist/types/hooks/chain-iterator/useChainIteratorStore.d.ts +1 -1
  50. package/dist/types/hooks/chain-iterator/useChainIteratorStore.d.ts.map +1 -1
  51. package/dist/types/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts +1 -1
  52. package/dist/types/hooks/chain-iterator/useChainIteratorUpdatingHead.d.ts.map +1 -1
  53. package/dist/types/hooks/useIterateChain.d.ts +1 -1
  54. package/dist/types/hooks/useIterateChain.d.ts.map +1 -1
  55. package/dist/types/hooks/useTxsFromBlock.d.ts +2 -2
  56. package/dist/types/hooks/useTxsFromBlock.d.ts.map +1 -1
  57. package/dist/types/lib/getChainInformation.d.ts +1 -1
  58. package/dist/types/lib/getChainInformation.d.ts.map +1 -1
  59. package/dist/types/stories/buildRandomBlockchain.d.ts +1 -1
  60. package/dist/types/stories/buildRandomBlockchain.d.ts.map +1 -1
  61. package/dist/types/types/BlockComponentProps.d.ts +1 -1
  62. package/dist/types/types/BlockComponentProps.d.ts.map +1 -1
  63. package/dist/types/types/BlockComponents.d.ts +1 -1
  64. package/dist/types/types/BlockComponents.d.ts.map +1 -1
  65. package/dist/types/types/render/BlockChainRenderProps.d.ts +1 -1
  66. package/dist/types/types/render/BlockChainRenderProps.d.ts.map +1 -1
  67. package/package.json +37 -36
  68. package/src/components/block/ProducerChip.tsx +1 -1
  69. package/src/components/block/helpers/blockProducer.ts +1 -1
  70. package/src/components/block/helpers/payloadCountsFromBlock.ts +1 -1
  71. package/src/components/block/hooks/useBlockProducer.ts +1 -1
  72. package/src/components/block/hooks/useDynamicBlockComponents.ts +1 -1
  73. package/src/components/block/hooks/usePayloadCountsFromBlock.ts +1 -1
  74. package/src/components/block/hooks/useStaticBlockComponents.ts +1 -1
  75. package/src/components/block/menu/Expanded.tsx +1 -1
  76. package/src/components/block/table/cell/BlockNumber.tsx +8 -15
  77. package/src/components/block/table/cell/BlockNumberChip.tsx +11 -0
  78. package/src/components/block/table/cell/JsonView.tsx +13 -13
  79. package/src/components/block/table/cell/PayloadCounts.tsx +19 -3
  80. package/src/components/block/table/cell/Producer.tsx +1 -4
  81. package/src/components/block/table/cell/TransactionCount.tsx +2 -8
  82. package/src/components/block/table/cell/Verification.tsx +10 -8
  83. package/src/components/block/table/cell/hooks/useLinkedBlockItem.tsx +1 -0
  84. package/src/components/block/table/cell/lib/BlockTableCellProps.ts +1 -1
  85. package/src/components/block/table/head/TableHead.tsx +4 -4
  86. package/src/components/block/table/row/TableRow.tsx +30 -10
  87. package/src/components/chain/hooks/useOnBlock.ts +1 -1
  88. package/src/components/payload/builder/producer-intent/Form.tsx +1 -1
  89. package/src/components/payload/builder/transfer/Form.tsx +2 -2
  90. package/src/components/transactions/TransactionsQuickTipButton.tsx +1 -1
  91. package/src/components/transactions/submit/Builder.tsx +2 -2
  92. package/src/components/transactions/submit/SubmitChain.tsx +2 -2
  93. package/src/context/analyzer/Provider.tsx +1 -1
  94. package/src/context/analyzer/state.ts +1 -1
  95. package/src/context/chain/State.ts +1 -1
  96. package/src/helpers/txsFromBlock.ts +2 -2
  97. package/src/hooks/chain-iterator/ChainIteratorStore.ts +1 -1
  98. package/src/hooks/chain-iterator/useChainIteratorParams.ts +2 -2
  99. package/src/hooks/chain-iterator/useChainIteratorStore.ts +1 -1
  100. package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +1 -1
  101. package/src/hooks/useIterateChain.ts +2 -2
  102. package/src/hooks/useTxsFromBlock.ts +1 -1
  103. package/src/lib/getChainInformation.ts +1 -1
  104. package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +1 -1
  105. package/src/stories/ChainInfoContextDecorator.tsx +1 -1
  106. package/src/stories/buildRandomBlockchain.ts +1 -1
  107. package/src/types/BlockComponentProps.ts +1 -1
  108. package/src/types/BlockComponents.ts +1 -1
  109. package/src/types/render/BlockChainRenderProps.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { usePromise } from '@xylabs/react-promise'
2
- import { type HydratedBlock } from '@xyo-network/xl1-model'
2
+ import { type HydratedBlock } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  import { txsFromBlock } from '../helpers/txsFromBlock.ts'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
- import type { ChainInformation } from '@xyo-network/xl1-model'
2
+ import type { ChainInformation } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  const id = 'ce080bf3043a40c6c8838c7e813c00ab53df1684'
5
5
 
@@ -5,7 +5,7 @@ import { usePromise } from '@xylabs/react-promise'
5
5
  import { MemoryArchivist } from '@xyo-network/archivist-memory'
6
6
  import { ArchivistConfigSchema } from '@xyo-network/archivist-model'
7
7
  import { flattenHydratedBlock } from '@xyo-network/chain-protocol'
8
- import type { BlockBoundWitness } from '@xyo-network/xl1-model'
8
+ import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
9
9
  import React, { useEffect, useState } from 'react'
10
10
 
11
11
  import { getChainInformation } from '../lib/index.ts'
@@ -3,7 +3,7 @@ import { assertEx } from '@xylabs/assert'
3
3
  import { usePromise } from '@xylabs/react-promise'
4
4
  import { XyoChainBlockNumberIterator } from '@xyo-network/chain-services'
5
5
  import { findFirstMatching } from '@xyo-network/chain-utils'
6
- import { isBlockBoundWitness } from '@xyo-network/xl1-model'
6
+ import { isBlockBoundWitness } from '@xyo-network/xl1-protocol'
7
7
  import React from 'react'
8
8
 
9
9
  import { ChainInfoProvider } from '../context/index.ts'
@@ -1,6 +1,6 @@
1
1
  import { Account } from '@xyo-network/account'
2
2
  import { buildRandomChain } from '@xyo-network/chain-ethereum'
3
- import type { HydratedBlock } from '@xyo-network/xl1-model'
3
+ import type { HydratedBlock } from '@xyo-network/xl1-protocol'
4
4
 
5
5
  export const buildRandomBlockChain = async (blockCount = 10) => {
6
6
  // Create a producer
@@ -1,5 +1,5 @@
1
1
  import type { Hash } from '@xylabs/hex'
2
- import type { HydratedBlock } from '@xyo-network/xl1-model'
2
+ import type { HydratedBlock } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  /** Interface for all components that render a single block */
5
5
  export interface BlockComponentProps {
@@ -1,5 +1,5 @@
1
1
  import type { NodesWithKeys } from '@xylabs/react-animation'
2
- import type { HydratedBlock } from '@xyo-network/xl1-model'
2
+ import type { HydratedBlock } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  /** Interface for all block components meant to be rendered in a chain */
5
5
  export interface BlockChainRenderComponent extends NodesWithKeys {
@@ -1,6 +1,6 @@
1
1
  import type { Hash } from '@xylabs/hex'
2
2
  import type { ArchivistInstance } from '@xyo-network/archivist-model'
3
- import type { ChainInformation } from '@xyo-network/xl1-model'
3
+ import type { ChainInformation } from '@xyo-network/xl1-protocol'
4
4
 
5
5
  /** Props that control the rendering (not blockchain specific) */
6
6
  export interface RenderProps {