@xyo-network/react-chain-blockchain 1.20.14 → 1.20.15
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/dist/browser/components/account/table/types/index.d.ts +1 -1
- package/dist/browser/components/account/table/types/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +3 -3
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/components/account/table/BalanceHistoryTableRow.stories.tsx +1 -0
- package/src/components/account/table/BalanceHistoryTableRow.tsx +3 -3
- package/src/components/account/table/types/index.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccountBalanceHistoryItemFormatted } from '@xyo-network/react-chain-provider';
|
|
2
2
|
import type { ExtendEventNoun } from '@xyo-network/react-event';
|
|
3
|
-
export type BalanceHistoryEventNouns = ExtendEventNoun<'from-address' | 'to-address' | 'amount' | 'block-number' | 'tx-hash' | 'transfer-hash' | 'tx-hash|transfer-hash' | 'block-
|
|
3
|
+
export type BalanceHistoryEventNouns = ExtendEventNoun<'from-address' | 'to-address' | 'amount' | 'block-number' | 'tx-hash' | 'transfer-hash' | 'tx-hash|transfer-hash' | 'block-hash|transfer-hash'>;
|
|
4
4
|
export type TableHeadingLabels = 'Tx Hash' | 'BlockNumber' | 'Timestamp' | 'From' | 'To' | 'Amount' | 'Debug' | 'TransferHash';
|
|
5
5
|
export type TableHeadings = {
|
|
6
6
|
[key in keyof AccountBalanceHistoryItemFormatted]: TableHeadingLabels;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/account/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,cAAc,GAAG,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,eAAe,GAAG,uBAAuB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/account/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAA;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,cAAc,GAAG,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,eAAe,GAAG,uBAAuB,GAAG,0BAA0B,CAAC,CAAA;AAEtM,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,CAAA;AAC9H,MAAM,MAAM,aAAa,GAAG;KAAG,GAAG,IAAI,MAAM,kCAAkC,GAAG,kBAAkB;CAAE,CAAA;AAErG,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EASzC,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1247,15 +1247,15 @@ var RawAmountTableCell = /* @__PURE__ */ __name(({ amount, eventNoun = "amount",
|
|
|
1247
1247
|
|
|
1248
1248
|
// src/components/account/table/BalanceHistoryTableRow.tsx
|
|
1249
1249
|
var BalanceHistoryTableRow = /* @__PURE__ */ __name(({ linked, row, ...props }) => {
|
|
1250
|
-
const { amount, blockNumber, debug, from, key, timestamp, to, type, txHash, transferHash } = row ?? {};
|
|
1250
|
+
const { amount, blockHash, blockNumber, debug, from, key, timestamp, to, type, txHash, transferHash } = row ?? {};
|
|
1251
1251
|
const linkedTableCallProps = useMemo7(() => ({
|
|
1252
1252
|
linked
|
|
1253
1253
|
}), [
|
|
1254
1254
|
linked
|
|
1255
1255
|
]);
|
|
1256
1256
|
const [ref, handleClick] = useLinkedBalanceHistoryItem();
|
|
1257
|
-
const noun = isDefined6(txHash) ? "tx-hash|transfer-hash" : "block-
|
|
1258
|
-
const data = isDefined6(txHash) ? `${txHash}|${transferHash}` : `${
|
|
1257
|
+
const noun = isDefined6(txHash) ? "tx-hash|transfer-hash" : "block-hash|transfer-hash";
|
|
1258
|
+
const data = isDefined6(txHash) ? `${txHash}|${transferHash}` : `${blockHash}|${transferHash}`;
|
|
1259
1259
|
return /* @__PURE__ */ React29.createElement(StyledLinkableTableRow, {
|
|
1260
1260
|
linked,
|
|
1261
1261
|
key,
|