@xyo-network/react-chain-blockchain 1.16.9 → 1.16.11

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 (99) hide show
  1. package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts +11 -0
  2. package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts.map +1 -0
  3. package/dist/browser/components/account/BalanceHistoryFlexbox.stories.d.ts +6 -0
  4. package/dist/browser/components/account/BalanceHistoryFlexbox.stories.d.ts.map +1 -0
  5. package/dist/browser/components/account/index.d.ts +3 -0
  6. package/dist/browser/components/account/index.d.ts.map +1 -0
  7. package/dist/browser/components/account/table/AddressTableCell.d.ts +8 -0
  8. package/dist/browser/components/account/table/AddressTableCell.d.ts.map +1 -0
  9. package/dist/browser/components/account/table/BalanceHistoryTable.d.ts +9 -0
  10. package/dist/browser/components/account/table/BalanceHistoryTable.d.ts.map +1 -0
  11. package/dist/browser/components/account/table/BalanceHistoryTable.stories.d.ts +7 -0
  12. package/dist/browser/components/account/table/BalanceHistoryTable.stories.d.ts.map +1 -0
  13. package/dist/browser/components/account/table/BalanceHistoryTableRow.d.ts +8 -0
  14. package/dist/browser/components/account/table/BalanceHistoryTableRow.d.ts.map +1 -0
  15. package/dist/browser/components/account/table/RawAmountTableCell.d.ts +9 -0
  16. package/dist/browser/components/account/table/RawAmountTableCell.d.ts.map +1 -0
  17. package/dist/browser/components/account/table/index.d.ts +5 -0
  18. package/dist/browser/components/account/table/index.d.ts.map +1 -0
  19. package/dist/browser/components/account/table/types/index.d.ts +9 -0
  20. package/dist/browser/components/account/table/types/index.d.ts.map +1 -0
  21. package/dist/browser/components/block/helpers/blockProducer.d.ts +1 -3
  22. package/dist/browser/components/block/helpers/blockProducer.d.ts.map +1 -1
  23. package/dist/browser/components/block/hooks/useBlockProducer.d.ts +1 -3
  24. package/dist/browser/components/block/hooks/useBlockProducer.d.ts.map +1 -1
  25. package/dist/browser/components/block/table/cell/BlockNumber.d.ts +1 -0
  26. package/dist/browser/components/block/table/cell/BlockNumber.d.ts.map +1 -1
  27. package/dist/browser/components/block/table/cell/JsonView.d.ts.map +1 -1
  28. package/dist/browser/components/block/table/cell/PayloadCounts.d.ts +1 -1
  29. package/dist/browser/components/block/table/cell/PayloadCounts.d.ts.map +1 -1
  30. package/dist/browser/components/block/table/cell/TransactionCount.d.ts +1 -1
  31. package/dist/browser/components/block/table/cell/TransactionCount.d.ts.map +1 -1
  32. package/dist/browser/components/index.d.ts +1 -0
  33. package/dist/browser/components/index.d.ts.map +1 -1
  34. package/dist/browser/components/payload/builder/transfer/Transfer.d.ts +1 -1
  35. package/dist/browser/components/payload/builder/transfer/Transfer.d.ts.map +1 -1
  36. package/dist/browser/components/payload/builder/transfer/builder/SingleFlexbox.d.ts.map +1 -1
  37. package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts +1 -1
  38. package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts.map +1 -1
  39. package/dist/browser/components/transactions/TransactionCountChip.d.ts +1 -1
  40. package/dist/browser/components/transactions/TransactionCountChip.d.ts.map +1 -1
  41. package/dist/browser/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
  42. package/dist/browser/components/transactions/submit/SubmitChain.d.ts.map +1 -1
  43. package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts +6 -12
  44. package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
  45. package/dist/browser/index.mjs +475 -293
  46. package/dist/browser/index.mjs.map +1 -1
  47. package/dist/browser/lib/getChainId.d.ts +1 -2
  48. package/dist/browser/lib/getChainId.d.ts.map +1 -1
  49. package/dist/browser/stories/ChainInfoContextDecorator.d.ts.map +1 -1
  50. package/dist/browser/types/BlockComponentProps.d.ts +1 -1
  51. package/dist/browser/types/BlockComponentProps.d.ts.map +1 -1
  52. package/dist/browser/types/render/BlockChainRenderProps.d.ts +1 -2
  53. package/dist/browser/types/render/BlockChainRenderProps.d.ts.map +1 -1
  54. package/package.json +31 -32
  55. package/src/components/account/BalanceHistoryFlexbox.stories.tsx +25 -0
  56. package/src/components/account/BalanceHistoryFlexbox.tsx +65 -0
  57. package/src/components/account/index.ts +2 -0
  58. package/src/components/account/table/AddressTableCell.tsx +25 -0
  59. package/src/components/account/table/BalanceHistoryTable.stories.tsx +75 -0
  60. package/src/components/account/table/BalanceHistoryTable.tsx +36 -0
  61. package/src/components/account/table/BalanceHistoryTableRow.tsx +41 -0
  62. package/src/components/account/table/RawAmountTableCell.tsx +52 -0
  63. package/src/components/account/table/index.ts +4 -0
  64. package/src/components/account/table/types/index.ts +17 -0
  65. package/src/components/block/BlockHeadingFlexbox.tsx +1 -1
  66. package/src/components/block/ProducerChip.tsx +3 -3
  67. package/src/components/block/hooks/useStaticBlockComponents.ts +1 -1
  68. package/src/components/block/table/Ex.stories.tsx +1 -1
  69. package/src/components/block/table/cell/BlockNumber.tsx +8 -3
  70. package/src/components/block/table/cell/Epoch.tsx +1 -1
  71. package/src/components/block/table/cell/Hash.tsx +1 -1
  72. package/src/components/block/table/cell/JsonView.tsx +1 -2
  73. package/src/components/block/table/cell/PayloadCounts.tsx +1 -1
  74. package/src/components/block/table/cell/TransactionCount.tsx +1 -1
  75. package/src/components/chain/render/static/flexbox/Flexbox.stories.tsx +1 -1
  76. package/src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx +1 -1
  77. package/src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts +2 -2
  78. package/src/components/chain/render/static/table/Ex.stories.tsx +1 -1
  79. package/src/components/index.ts +1 -0
  80. package/src/components/payload/builder/producer-intent/Form.tsx +1 -1
  81. package/src/components/payload/builder/transfer/Form.tsx +2 -2
  82. package/src/components/payload/builder/transfer/Transfer.ts +1 -1
  83. package/src/components/payload/builder/transfer/builder/SingleFlexbox.tsx +2 -2
  84. package/src/components/payload/fields/XyoAddressTextField.tsx +2 -2
  85. package/src/components/transactions/TransactionCountChip.tsx +1 -1
  86. package/src/components/transactions/TransactionsQuickTipButton.tsx +1 -1
  87. package/src/components/transactions/submit/Builder.tsx +1 -1
  88. package/src/components/transactions/submit/SubmitChain.tsx +6 -2
  89. package/src/context/analyzer/Provider.tsx +1 -1
  90. package/src/hooks/chain-iterator/ChainIteratorStore.ts +1 -1
  91. package/src/hooks/chain-iterator/useChainIteratorParams.ts +2 -3
  92. package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +1 -1
  93. package/src/hooks/useIterateChain.ts +1 -1
  94. package/src/lib/getChainArchivist.ts +1 -1
  95. package/src/lib/getChainId.ts +2 -2
  96. package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +1 -1
  97. package/src/stories/ChainInfoContextDecorator.tsx +1 -2
  98. package/src/types/BlockComponentProps.ts +1 -1
  99. package/src/types/render/BlockChainRenderProps.ts +1 -2
@@ -1,4 +1,4 @@
1
- import { isAddress } from '@xylabs/hex'
1
+ import { isAddress } from '@xylabs/sdk-js'
2
2
  import { ChainProducersAnalyzer } from '@xyo-network/chain-analyze'
3
3
  import React, { useMemo } from 'react'
4
4
 
@@ -1,5 +1,5 @@
1
- import type { CreatableName } from '@xylabs/creatable'
2
- import { exists } from '@xylabs/exists'
1
+ import type { CreatableName } from '@xylabs/sdk-js'
2
+ import { exists } from '@xylabs/sdk-js'
3
3
  import type { ComponentType } from 'react'
4
4
  import { useMemo } from 'react'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryFn } from '@storybook/react-vite'
2
- import type { CreatableName } from '@xylabs/creatable'
2
+ import type { CreatableName } from '@xylabs/sdk-js'
3
3
  import React from 'react'
4
4
 
5
5
  import { ChainArchivistDecorator } from '../../../../../stories/index.ts'
@@ -1,3 +1,4 @@
1
+ export * from './account/index.ts'
1
2
  export * from './block/index.ts'
2
3
  export * from './chain/index.ts'
3
4
  export * from './FeatureNotAvailable.tsx'
@@ -1,5 +1,5 @@
1
1
  import { Button, FormControl } from '@mui/material'
2
- import type { Address } from '@xylabs/hex'
2
+ import type { Address } from '@xylabs/sdk-js'
3
3
  import { createProducerChainStakeIntent } from '@xyo-network/chain-protocol'
4
4
  import type { ChainStakeIntent } from '@xyo-network/xl1-protocol'
5
5
  import type { MouseEventHandler } from 'react'
@@ -1,6 +1,6 @@
1
1
  import { Button, FormControl } from '@mui/material'
2
- import type { Address, Hex } from '@xylabs/hex'
3
- import { isAddress } from '@xylabs/hex'
2
+ import type { Address, Hex } from '@xylabs/sdk-js'
3
+ import { isAddress } from '@xylabs/sdk-js'
4
4
  import type { Transfer } from '@xyo-network/xl1-protocol'
5
5
  import { TransferSchema } from '@xyo-network/xl1-protocol'
6
6
  import type { MouseEventHandler } from 'react'
@@ -1,3 +1,3 @@
1
- import type { Address, Hex } from '@xylabs/hex'
1
+ import type { Address, Hex } from '@xylabs/sdk-js'
2
2
 
3
3
  export type TransferAmount = { amount: Hex; to: Address; transferId: number }
@@ -2,10 +2,10 @@ import { RemoveCircle } from '@mui/icons-material'
2
2
  import {
3
3
  FormControl, Icon, IconButton,
4
4
  } from '@mui/material'
5
- import type { Address } from '@xylabs/hex'
6
- import { isAddress, toHex } from '@xylabs/hex'
7
5
  import type { FlexBoxProps } from '@xylabs/react-flexbox'
8
6
  import { FlexRow } from '@xylabs/react-flexbox'
7
+ import type { Address } from '@xylabs/sdk-js'
8
+ import { isAddress, toHex } from '@xylabs/sdk-js'
9
9
  import { BigIntInput } from '@xyo-network/react-shared'
10
10
  import React, {
11
11
  useEffect, useMemo, useState,
@@ -2,8 +2,8 @@ import type { StandardTextFieldProps } from '@mui/material'
2
2
  import {
3
3
  FormControl, FormHelperText, TextField,
4
4
  } from '@mui/material'
5
- import type { Address } from '@xylabs/hex'
6
- import { asAddress, isAddress } from '@xylabs/hex'
5
+ import type { Address } from '@xylabs/sdk-js'
6
+ import { asAddress, isAddress } from '@xylabs/sdk-js'
7
7
  import React, { useMemo, useState } from 'react'
8
8
 
9
9
  interface XyoAddressTextFieldProps extends Omit<StandardTextFieldProps, 'value'> {
@@ -1,7 +1,7 @@
1
1
  import CompareArrowsIcon from '@mui/icons-material/CompareArrows'
2
2
  import type { ChipProps } from '@mui/material'
3
3
  import { Chip, Icon } from '@mui/material'
4
- import type { Hash } from '@xylabs/hex'
4
+ import type { Hash } from '@xylabs/sdk-js'
5
5
  import React, { useMemo } from 'react'
6
6
 
7
7
  export interface TransactionCountChipProps extends ChipProps {
@@ -2,13 +2,13 @@ import { ContentCopy as ContentCopyIcon, Paid } from '@mui/icons-material'
2
2
  import {
3
3
  Alert, AlertTitle, Collapse, Snackbar, Typography,
4
4
  } from '@mui/material'
5
- import type { Hash } from '@xylabs/hex'
6
5
  import { ErrorRender } from '@xylabs/react-error'
7
6
  import {
8
7
  FlexGrowCol, FlexGrowRow, FlexRow,
9
8
  } from '@xylabs/react-flexbox'
10
9
  import type { QuickTipButtonProps } from '@xylabs/react-quick-tip-button'
11
10
  import { QuickTipButton } from '@xylabs/react-quick-tip-button'
11
+ import type { Hash } from '@xylabs/sdk-js'
12
12
  import type { HydratedBlock } from '@xyo-network/xl1-protocol'
13
13
  import React, {
14
14
  Fragment, useMemo, useState,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Button, FormControl, TextField,
3
3
  } from '@mui/material'
4
- import { toHex } from '@xylabs/hex'
5
4
  import { FlexCol } from '@xylabs/react-flexbox'
5
+ import { toHex } from '@xylabs/sdk-js'
6
6
  import type { ChainId, TransactionBoundWitnessFields } from '@xyo-network/xl1-protocol'
7
7
  import { defaultTransactionFees } from '@xyo-network/xl1-protocol'
8
8
  import React from 'react'
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Alert, Grid, Typography,
3
3
  } from '@mui/material'
4
- import { axios } from '@xylabs/axios'
4
+ import { AxiosJson } 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'
@@ -13,6 +13,7 @@ import { PayloadBuilder } from '@xyo-network/payload-builder'
13
13
  import type { Payload } from '@xyo-network/payload-model'
14
14
  import type { TransactionBoundWitnessFields } from '@xyo-network/xl1-protocol'
15
15
  import { buildTransaction } from '@xyo-network/xl1-protocol-sdk'
16
+ import { Axios } from 'axios'
16
17
  import React, { useState } from 'react'
17
18
 
18
19
  import { ChainTransactionBuilder } from './Builder.tsx'
@@ -45,7 +46,10 @@ export const SubmitChainTransaction: React.FC = () => {
45
46
  .signer(randomAccount)
46
47
  .build()
47
48
 
48
- const response = await axios.post<ApiEnvelope<ModuleQueryResult>>(network.href, [queryBoundWitness, [insertQuery, transactionBoundWitness, chainTx]])
49
+ const response = await new Axios(AxiosJson.axiosConfig()).post<ApiEnvelope<ModuleQueryResult>>(
50
+ network.href,
51
+ [queryBoundWitness, [insertQuery, transactionBoundWitness, chainTx]],
52
+ )
49
53
  if (response.data.errors.length > 0) {
50
54
  setError(new Error(response.data.errors.map(e => e.message).join('\n')))
51
55
  } else {
@@ -1,4 +1,4 @@
1
- import { isUndefined } from '@xylabs/typeof'
1
+ import { isUndefined } from '@xylabs/sdk-js'
2
2
  import type { HydratedBlock } from '@xyo-network/xl1-protocol'
3
3
  import type { PropsWithChildren } from 'react'
4
4
  import React, {
@@ -1,4 +1,4 @@
1
- import { assertEx } from '@xylabs/assert'
1
+ import { assertEx } from '@xylabs/sdk-js'
2
2
  import type { XyoChainIteratorParams } from '@xyo-network/chain-services'
3
3
  import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
4
4
  import { PayloadBuilder } from '@xyo-network/payload-builder'
@@ -1,7 +1,6 @@
1
- import { assertEx } from '@xylabs/assert'
2
- import { type Hash, isHash } from '@xylabs/hex'
3
1
  import { usePromise } from '@xylabs/react-promise'
4
- import { isDefined } from '@xylabs/typeof'
2
+ import { type Hash, isHash } from '@xylabs/sdk-js'
3
+ import { assertEx, isDefined } from '@xylabs/sdk-js'
5
4
  import type { ReadArchivist } from '@xyo-network/archivist-model'
6
5
  import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
7
6
  import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
@@ -1,4 +1,4 @@
1
- import { toHex } from '@xylabs/hex'
1
+ import { toHex } from '@xylabs/sdk-js'
2
2
  import type { ArchivistInstance } from '@xyo-network/archivist-model'
3
3
  import { findMostRecentBlock } from '@xyo-network/chain-protocol'
4
4
  import type { ChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk'
@@ -1,5 +1,5 @@
1
- import { assertEx } from '@xylabs/assert'
2
1
  import { usePromise } from '@xylabs/react-promise'
2
+ import { assertEx } from '@xylabs/sdk-js'
3
3
  import type { XyoChainIteratorParams } from '@xyo-network/chain-services'
4
4
  import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
5
5
  import { PayloadBuilder } from '@xyo-network/payload-builder'
@@ -1,4 +1,4 @@
1
- import { assertEx } from '@xylabs/assert'
1
+ import { assertEx } from '@xylabs/sdk-js'
2
2
  import type { ArchivistInstance } from '@xyo-network/archivist-model'
3
3
  import { asArchivistInstance } from '@xyo-network/archivist-model'
4
4
  import type { HttpBridgeConfig } from '@xyo-network/bridge-http'
@@ -1,5 +1,5 @@
1
- import { type Address, toAddress } from '@xylabs/hex'
2
- import type { Promisable } from '@xylabs/promise'
1
+ import type { Address, Promisable } from '@xylabs/sdk-js'
2
+ import { toAddress } from '@xylabs/sdk-js'
3
3
 
4
4
  const id = toAddress('ce080bf3043a40c6c8838c7e813c00ab53df1684')
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { CircularProgress } from '@mui/material'
2
2
  import type { Decorator } from '@storybook/react-vite'
3
- import { delay } from '@xylabs/delay'
4
3
  import { usePromise } from '@xylabs/react-promise'
4
+ import { delay } from '@xylabs/sdk-js'
5
5
  import { MemoryArchivist } from '@xyo-network/archivist-memory'
6
6
  import { ArchivistConfigSchema } from '@xyo-network/archivist-model'
7
7
  import { buildRandomBlockChain } from '@xyo-network/react-chain-shared'
@@ -1,7 +1,6 @@
1
1
  import type { Decorator } from '@storybook/react-vite'
2
- import { assertEx } from '@xylabs/assert'
3
2
  import { usePromise } from '@xylabs/react-promise'
4
- import { isDefined } from '@xylabs/typeof'
3
+ import { assertEx, isDefined } from '@xylabs/sdk-js'
5
4
  import { ChainBlockNumberIterationService } from '@xyo-network/chain-services'
6
5
  import { findFirstMatching } from '@xyo-network/chain-utils'
7
6
  import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
@@ -1,4 +1,4 @@
1
- import type { Hash } from '@xylabs/hex'
1
+ import type { Hash } from '@xylabs/sdk-js'
2
2
  import type { HydratedBlock } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  /** Interface for all components that render a single block */
@@ -1,5 +1,4 @@
1
- import type { CreatableName } from '@xylabs/creatable'
2
- import type { Hash } from '@xylabs/hex'
1
+ import type { CreatableName, Hash } from '@xylabs/sdk-js'
3
2
  import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
4
3
  import type { ChainId } from '@xyo-network/xl1-protocol'
5
4
  import type { PayloadMapRead } from '@xyo-network/xl1-protocol-sdk'