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

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 (25) hide show
  1. package/dist/browser/components/account/table/BalanceHistoryTableRow.d.ts.map +1 -1
  2. package/dist/browser/components/account/table/hooks/index.d.ts +2 -0
  3. package/dist/browser/components/account/table/hooks/index.d.ts.map +1 -0
  4. package/dist/browser/components/account/table/hooks/useLinkedBalanceHistoryItem.d.ts +5 -0
  5. package/dist/browser/components/account/table/hooks/useLinkedBalanceHistoryItem.d.ts.map +1 -0
  6. package/dist/browser/components/account/table/index.d.ts +1 -0
  7. package/dist/browser/components/account/table/index.d.ts.map +1 -1
  8. package/dist/browser/components/block/table/row/TableRow.d.ts.map +1 -1
  9. package/dist/browser/components/table/StyledLinkableTableRow.d.ts +6 -0
  10. package/dist/browser/components/table/StyledLinkableTableRow.d.ts.map +1 -0
  11. package/dist/browser/components/table/index.d.ts +2 -0
  12. package/dist/browser/components/table/index.d.ts.map +1 -0
  13. package/dist/browser/index.mjs +91 -55
  14. package/dist/browser/index.mjs.map +1 -1
  15. package/package.json +20 -20
  16. package/src/components/account/table/BalanceHistoryTableEx.stories.tsx +1 -1
  17. package/src/components/account/table/BalanceHistoryTableRow.stories.tsx +51 -0
  18. package/src/components/account/table/BalanceHistoryTableRow.tsx +19 -4
  19. package/src/components/account/table/hooks/index.ts +1 -0
  20. package/src/components/account/table/hooks/useLinkedBalanceHistoryItem.tsx +29 -0
  21. package/src/components/account/table/index.ts +1 -0
  22. package/src/components/block/table/row/TableRow.stories.tsx +6 -2
  23. package/src/components/block/table/row/TableRow.tsx +5 -12
  24. package/src/components/table/StyledLinkableTableRow.tsx +12 -0
  25. package/src/components/table/index.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BalanceHistoryTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/BalanceHistoryTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EACgB,KAAK,aAAa,EACxC,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAA;AAE3F,OAAO,KAAkB,MAAM,OAAO,CAAA;AAQtC,MAAM,WAAW,2BAA4B,SAAQ,aAAa;IAChE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,kCAAkC,CAAA;CACxC;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAuBxE,CAAA"}
1
+ {"version":3,"file":"BalanceHistoryTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/BalanceHistoryTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAA;AAG3F,OAAO,KAAkB,MAAM,OAAO,CAAA;AAWtC,MAAM,WAAW,2BAA4B,SAAQ,aAAa;IAChE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,kCAAkC,CAAA;CACxC;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAiCxE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './useLinkedBalanceHistoryItem.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/account/table/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { Ref } from 'react';
2
+ import type React from 'react';
3
+ import type { BalanceHistoryEventNouns } from '../types/index.ts';
4
+ export declare const useLinkedBalanceHistoryItem: () => [Ref<HTMLElement | null>, (event: React.MouseEvent, noun?: BalanceHistoryEventNouns, data?: string | number) => void];
5
+ //# sourceMappingURL=useLinkedBalanceHistoryItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinkedBalanceHistoryItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/account/table/hooks/useLinkedBalanceHistoryItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAEjE,eAAO,MAAM,2BAA2B,QAAO,CAC7C,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EACvB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAoB3F,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './BalanceHistoryTableEx.tsx';
2
2
  export * from './BalanceHistoryTableRow.tsx';
3
3
  export * from './cell/index.ts';
4
+ export * from './hooks/index.ts';
4
5
  export * from './types/index.ts';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/row/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AASrE,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,EAAE,aAAa;IACjF,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+BhE,CAAA"}
1
+ {"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/row/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAGlD,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAUrE,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,EAAE,aAAa;IACjF,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyBhE,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const StyledLinkableTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "children" | "className" | "style" | "classes" | "sx" | "selected" | "hover"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
2
+ component?: import("react").ElementType | undefined;
3
+ } & {
4
+ linked?: boolean;
5
+ }, {}, {}>;
6
+ //# sourceMappingURL=StyledLinkableTableRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledLinkableTableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/table/StyledLinkableTableRow.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;aACN,OAAO;UAMlC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './StyledLinkableTableRow.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
4
4
  // src/components/account/BalanceHistoryFlexbox.tsx
5
5
  import { Typography as Typography7 } from "@mui/material";
6
6
  import { FlexCol as FlexCol3 } from "@xylabs/react-flexbox";
7
- import { isDefined as isDefined7 } from "@xylabs/sdk-js";
7
+ import { isDefined as isDefined8 } from "@xylabs/sdk-js";
8
8
  import { useAccountBalanceHistory } from "@xyo-network/react-chain-provider";
9
9
  import { ErrorRender as ErrorRender3 } from "@xyo-network/react-error";
10
10
  import { AttoXL1 } from "@xyo-network/xl1-sdk";
@@ -29,13 +29,14 @@ var formatBalance = /* @__PURE__ */ __name((balance) => {
29
29
  }, "formatBalance");
30
30
 
31
31
  // src/components/account/table/BalanceHistoryTableEx.tsx
32
- import { TableBody as TableBody2, TableCell as TableCell14, TableHead as TableHead2, TableRow as TableRow4 } from "@mui/material";
33
- import { isDefined as isDefined6 } from "@xylabs/sdk-js";
32
+ import { TableBody as TableBody2, TableCell as TableCell14, TableHead as TableHead2, TableRow as TableRow3 } from "@mui/material";
33
+ import { isDefined as isDefined7 } from "@xylabs/sdk-js";
34
34
  import { TableEx as TableEx2 } from "@xyo-network/react-table";
35
35
  import React29 from "react";
36
36
 
37
37
  // src/components/account/table/BalanceHistoryTableRow.tsx
38
- import { TableCell as TableCell13, TableRow as TableRow3 } from "@mui/material";
38
+ import { TableCell as TableCell13 } from "@mui/material";
39
+ import { isDefined as isDefined6 } from "@xylabs/sdk-js";
39
40
  import { RawInfoIconButton } from "@xyo-network/react-payload-raw-info";
40
41
  import React28, { useMemo as useMemo7 } from "react";
41
42
 
@@ -1051,11 +1052,24 @@ var BlockchainTableEx = /* @__PURE__ */ __name(({ ref, children, ...props }) =>
1051
1052
  BlockchainTableEx.displayName = "BlockchainTableEx";
1052
1053
 
1053
1054
  // src/components/block/table/row/TableRow.tsx
1054
- import { TableRow as TableRow2, useTheme } from "@mui/material";
1055
- import { alphaCss } from "@xylabs/react-theme";
1056
1055
  import { usePayloadRootHash as usePayloadRootHash3 } from "@xyo-network/react-shared";
1057
1056
  import React24, { useMemo as useMemo6 } from "react";
1058
- var BlockChainTableRow = /* @__PURE__ */ __name(({ block, deepValidation, defaultExpanded, linked, sx, ...props }) => {
1057
+
1058
+ // src/components/table/StyledLinkableTableRow.tsx
1059
+ import { styled, TableRow as TableRow2 } from "@mui/material";
1060
+ import { alphaCss } from "@xylabs/react-theme";
1061
+ var StyledLinkableTableRow = styled(TableRow2, {
1062
+ shouldForwardProp: /* @__PURE__ */ __name((prop) => prop !== "linked", "shouldForwardProp")
1063
+ })(({ theme, linked }) => ({
1064
+ "cursor": linked ? "pointer" : "default",
1065
+ "overflowY": "scroll",
1066
+ "&:hover": {
1067
+ backgroundColor: alphaCss(theme.vars.palette.secondary.light, 0.15)
1068
+ }
1069
+ }));
1070
+
1071
+ // src/components/block/table/row/TableRow.tsx
1072
+ var BlockChainTableRow = /* @__PURE__ */ __name(({ block, deepValidation, defaultExpanded, linked, ...props }) => {
1059
1073
  const linkedTableCellProps = useMemo6(() => ({
1060
1074
  block,
1061
1075
  linked
@@ -1070,18 +1084,10 @@ var BlockChainTableRow = /* @__PURE__ */ __name(({ block, deepValidation, defaul
1070
1084
  ]);
1071
1085
  const hash = usePayloadRootHash3(block?.[0]);
1072
1086
  const [ref, handleClick] = useLinkedBlockItem("block-hash", hash);
1073
- const theme = useTheme();
1074
- return /* @__PURE__ */ React24.createElement(TableRow2, {
1087
+ return /* @__PURE__ */ React24.createElement(StyledLinkableTableRow, {
1075
1088
  onClick: linked ? handleClick : void 0,
1076
1089
  ref,
1077
- sx: {
1078
- "cursor": linked ? "pointer" : "default",
1079
- "overflowY": "scroll",
1080
- "&:hover": {
1081
- backgroundColor: alphaCss(theme.vars.palette.secondary.light, 0.15)
1082
- },
1083
- ...sx
1084
- },
1090
+ linked,
1085
1091
  ...props
1086
1092
  }, /* @__PURE__ */ React24.createElement(BlockNumberTableCell, {
1087
1093
  align: "left",
@@ -1154,14 +1160,37 @@ var HashTableCell = /* @__PURE__ */ __name(({ hash, linked, toolTipTitle, sx, ..
1154
1160
  }, shortenedHash) : shortenedHash)) : "N/A");
1155
1161
  }, "HashTableCell");
1156
1162
 
1163
+ // src/components/account/table/hooks/useLinkedBalanceHistoryItem.tsx
1164
+ import { useEvent as useEvent6 } from "@xyo-network/react-event";
1165
+ var useLinkedBalanceHistoryItem = /* @__PURE__ */ __name(() => {
1166
+ const [ref, dispatch] = useEvent6();
1167
+ const handleClick = /* @__PURE__ */ __name((event, noun, data) => {
1168
+ event.preventDefault();
1169
+ event.stopPropagation();
1170
+ if (noun === void 0) {
1171
+ console.warn("useLinkedBalanceHistoryItem: noun is required");
1172
+ return;
1173
+ }
1174
+ const selection = globalThis.getSelection();
1175
+ const isTextSelected = selection && selection.toString().length > 0;
1176
+ if (!isTextSelected) {
1177
+ dispatch(noun, "click", data, event.nativeEvent);
1178
+ }
1179
+ }, "handleClick");
1180
+ return [
1181
+ ref,
1182
+ handleClick
1183
+ ];
1184
+ }, "useLinkedBalanceHistoryItem");
1185
+
1157
1186
  // src/components/account/table/RawAmountTableCell.tsx
1158
1187
  import { Link as Link6, TableCell as TableCell12, Tooltip as Tooltip10 } from "@mui/material";
1159
1188
  import { isDefined as isDefined5, toHex as toHex2 } from "@xylabs/sdk-js";
1160
- import { useEvent as useEvent6 } from "@xyo-network/react-event";
1189
+ import { useEvent as useEvent7 } from "@xyo-network/react-event";
1161
1190
  import { XL1Amount as XL1Amount2 } from "@xyo-network/xl1-sdk";
1162
1191
  import React27 from "react";
1163
1192
  var RawAmountTableCell = /* @__PURE__ */ __name(({ amount, linked, sx, type, ...props }) => {
1164
- const [ref, dispatch] = useEvent6();
1193
+ const [ref, dispatch] = useEvent7();
1165
1194
  const handleClick = /* @__PURE__ */ __name((event) => dispatch("amount", "click", isDefined5(amount) ? toHex2(amount) : "", event.nativeEvent), "handleClick");
1166
1195
  const formatAmount = /* @__PURE__ */ __name((amount2) => {
1167
1196
  if (!isDefined5(amount2)) {
@@ -1197,8 +1226,14 @@ var BalanceHistoryTableRow = /* @__PURE__ */ __name(({ linked, row, ...props })
1197
1226
  }), [
1198
1227
  linked
1199
1228
  ]);
1200
- return /* @__PURE__ */ React28.createElement(TableRow3, {
1229
+ const [ref, handleClick] = useLinkedBalanceHistoryItem();
1230
+ const noun = isDefined6(txHash) ? "tx-hash" : "blockNumber";
1231
+ const data = isDefined6(txHash) ? txHash : blockNumber;
1232
+ return /* @__PURE__ */ React28.createElement(StyledLinkableTableRow, {
1233
+ linked,
1201
1234
  key,
1235
+ onClick: linked ? (e) => handleClick(e, noun, data) : void 0,
1236
+ ref,
1202
1237
  ...props
1203
1238
  }, /* @__PURE__ */ React28.createElement(HashTableCell, {
1204
1239
  hash: txHash,
@@ -1239,7 +1274,7 @@ var TableHeadingLabels = [
1239
1274
 
1240
1275
  // src/components/account/table/BalanceHistoryTableEx.tsx
1241
1276
  var AccountBalanceHistoryTableEx = /* @__PURE__ */ __name(({ history, linked, ...props }) => {
1242
- return isDefined6(history) ? /* @__PURE__ */ React29.createElement(TableEx2, props, /* @__PURE__ */ React29.createElement(TableHead2, null, /* @__PURE__ */ React29.createElement(TableRow4, null, TableHeadingLabels.map((heading) => /* @__PURE__ */ React29.createElement(TableCell14, {
1277
+ return isDefined7(history) ? /* @__PURE__ */ React29.createElement(TableEx2, props, /* @__PURE__ */ React29.createElement(TableHead2, null, /* @__PURE__ */ React29.createElement(TableRow3, null, TableHeadingLabels.map((heading) => /* @__PURE__ */ React29.createElement(TableCell14, {
1243
1278
  key: heading
1244
1279
  }, heading)))), /* @__PURE__ */ React29.createElement(TableBody2, null, history?.map((row) => /* @__PURE__ */ React29.createElement(BalanceHistoryTableRow, {
1245
1280
  key: row.key,
@@ -1258,7 +1293,7 @@ var AccountBalanceHistoryFlexBox = /* @__PURE__ */ __name(({ address, refresh, v
1258
1293
  ],
1259
1294
  history: void 0
1260
1295
  };
1261
- return isDefined7(history) && isDefined7(address) ? /* @__PURE__ */ React30.createElement(FlexCol3, props, /* @__PURE__ */ React30.createElement(ErrorRender3, {
1296
+ return isDefined8(history) && isDefined8(address) ? /* @__PURE__ */ React30.createElement(FlexCol3, props, /* @__PURE__ */ React30.createElement(ErrorRender3, {
1262
1297
  error,
1263
1298
  scope: "AccountBalanceHistoryTable"
1264
1299
  }), /* @__PURE__ */ React30.createElement(Typography7, {
@@ -1273,7 +1308,7 @@ var AccountBalanceHistoryFlexBox = /* @__PURE__ */ __name(({ address, refresh, v
1273
1308
  }, "AccountBalanceHistoryFlexBox");
1274
1309
 
1275
1310
  // src/components/account/hooks/usePagedAccountBalanceHistory.ts
1276
- import { isDefined as isDefined8 } from "@xylabs/sdk-js";
1311
+ import { isDefined as isDefined9 } from "@xylabs/sdk-js";
1277
1312
  import { useAccountBalanceHistory as useAccountBalanceHistory2 } from "@xyo-network/react-chain-provider";
1278
1313
  import { useCallback, useState as useState9 } from "react";
1279
1314
  var usePagedAccountBalanceHistory = /* @__PURE__ */ __name((address, viewer, maxPage = 1) => {
@@ -1282,17 +1317,17 @@ var usePagedAccountBalanceHistory = /* @__PURE__ */ __name((address, viewer, max
1282
1317
  const [results, error, loading] = useAccountBalanceHistory2(address, viewer, maxPage, updatedBlockRange);
1283
1318
  const { history, truncated } = results || {};
1284
1319
  const [previousHistory, setPreviousHistory] = useState9(history);
1285
- if (isDefined8(history) && history !== previousHistory) {
1320
+ if (isDefined9(history) && history !== previousHistory) {
1286
1321
  setPagedHistory([
1287
1322
  ...pagedHistory ?? [],
1288
1323
  ...history
1289
1324
  ]);
1290
1325
  setPreviousHistory(history);
1291
1326
  }
1292
- const lastBlock = isDefined8(history) ? history.at(-1)?.blockNumber : void 0;
1293
- const historyComplete = isDefined8(history) && history.length === 0 || lastBlock === 0;
1327
+ const lastBlock = isDefined9(history) ? history.at(-1)?.blockNumber : void 0;
1328
+ const historyComplete = isDefined9(history) && history.length === 0 || lastBlock === 0;
1294
1329
  const updateRange = useCallback(() => {
1295
- if (isDefined8(lastBlock) && lastBlock > 0 && truncated) {
1330
+ if (isDefined9(lastBlock) && lastBlock > 0 && truncated) {
1296
1331
  const newEndBlock = lastBlock - 1;
1297
1332
  setUpdatedBlockRange([
1298
1333
  0,
@@ -1331,12 +1366,12 @@ import { isChainSummaryProducers } from "@xyo-network/chain-analyze";
1331
1366
  import React32, { useMemo as useMemo8 } from "react";
1332
1367
 
1333
1368
  // src/components/chain/stats/producer/Table.tsx
1334
- import { Table, TableBody as TableBody3, TableCell as TableCell15, TableHead as TableHead3, TableRow as TableRow5, useTheme as useTheme2 } from "@mui/material";
1369
+ import { Table, TableBody as TableBody3, TableCell as TableCell15, TableHead as TableHead3, TableRow as TableRow4, useTheme } from "@mui/material";
1335
1370
  import { BlockiesAvatar as BlockiesAvatar2 } from "@xyo-network/react-chain-blockies";
1336
1371
  import React31 from "react";
1337
1372
  var ChainProducerStatsTable = /* @__PURE__ */ __name(({ producers, ...props }) => {
1338
- const theme = useTheme2();
1339
- return /* @__PURE__ */ React31.createElement(Table, props, /* @__PURE__ */ React31.createElement(TableHead3, null, /* @__PURE__ */ React31.createElement(TableRow5, null, /* @__PURE__ */ React31.createElement(TableCell15, null, "Address"), /* @__PURE__ */ React31.createElement(TableCell15, null, "Blocks Produced"), /* @__PURE__ */ React31.createElement(TableCell15, null, "Rewards Earned Produced"))), /* @__PURE__ */ React31.createElement(TableBody3, null, producers?.map((producer) => /* @__PURE__ */ React31.createElement(TableRow5, {
1373
+ const theme = useTheme();
1374
+ return /* @__PURE__ */ React31.createElement(Table, props, /* @__PURE__ */ React31.createElement(TableHead3, null, /* @__PURE__ */ React31.createElement(TableRow4, null, /* @__PURE__ */ React31.createElement(TableCell15, null, "Address"), /* @__PURE__ */ React31.createElement(TableCell15, null, "Blocks Produced"), /* @__PURE__ */ React31.createElement(TableCell15, null, "Rewards Earned Produced"))), /* @__PURE__ */ React31.createElement(TableBody3, null, producers?.map((producer) => /* @__PURE__ */ React31.createElement(TableRow4, {
1340
1375
  key: producer.address
1341
1376
  }, /* @__PURE__ */ React31.createElement(TableCell15, null, /* @__PURE__ */ React31.createElement(BlockiesAvatar2, {
1342
1377
  blockiesOptions: {
@@ -1404,7 +1439,7 @@ var ChainAnalyzerStatsDialogFromContext = /* @__PURE__ */ __name((props) => {
1404
1439
  }, "ChainAnalyzerStatsDialogFromContext");
1405
1440
 
1406
1441
  // src/components/chain/controls/PulseSvgIcon.tsx
1407
- import { createSvgIcon, keyframes, styled } from "@mui/material";
1442
+ import { createSvgIcon, keyframes, styled as styled2 } from "@mui/material";
1408
1443
  import React34 from "react";
1409
1444
  var PulseSvgIcon = createSvgIcon(/* @__PURE__ */ React34.createElement("svg", {
1410
1445
  viewBox: "0 0 80 80",
@@ -1454,7 +1489,7 @@ var pulse2 = keyframes`
1454
1489
  opacity: 0;
1455
1490
  }
1456
1491
  `;
1457
- var StyledPulseSvgIcon = styled(PulseSvgIcon)(({ theme }) => {
1492
+ var StyledPulseSvgIcon = styled2(PulseSvgIcon)(({ theme }) => {
1458
1493
  return {
1459
1494
  "& .core": {
1460
1495
  animation: `${pulse1} 1.25s ease-in-out infinite`,
@@ -1599,9 +1634,9 @@ var useChainPagination = /* @__PURE__ */ __name((pageSize, blockComponents) => {
1599
1634
  }, "useChainPagination");
1600
1635
 
1601
1636
  // src/components/chain/styled/BlockListWrapperFlexbox.tsx
1602
- import { styled as styled2 } from "@mui/material";
1637
+ import { styled as styled3 } from "@mui/material";
1603
1638
  import { FlexCol as FlexCol5 } from "@xylabs/react-flexbox";
1604
- var BlockListWrapperFlexBox = styled2(FlexCol5, {
1639
+ var BlockListWrapperFlexBox = styled3(FlexCol5, {
1605
1640
  name: "BlockListWrapperFlexbox"
1606
1641
  })(() => ({
1607
1642
  "& > div:nth-of-type(2) .block-heading-flexbox .divider-spacer": {
@@ -1671,13 +1706,13 @@ var BlockNumberTextField = /* @__PURE__ */ __name(({ errorMessage, onBlockNumber
1671
1706
 
1672
1707
  // src/components/payload/fields/XyoAddressTextField.tsx
1673
1708
  import { FormControl as FormControl4, FormHelperText as FormHelperText3, TextField as TextField4 } from "@mui/material";
1674
- import { asAddress, isAddress, isDefined as isDefined9 } from "@xylabs/sdk-js";
1709
+ import { asAddress, isAddress, isDefined as isDefined10 } from "@xylabs/sdk-js";
1675
1710
  import React40, { useState as useState14 } from "react";
1676
1711
  var XyoAddressTextField = /* @__PURE__ */ __name(({ onAddressChanged, onChange, resetValue, ...props }) => {
1677
1712
  const [address, setAddress] = useState14("");
1678
1713
  const [addressError, setAddressError] = useState14();
1679
1714
  const [previousResetValue, setPreviousResetValue] = useState14(resetValue);
1680
- if (isDefined9(resetValue) && resetValue !== previousResetValue) {
1715
+ if (isDefined10(resetValue) && resetValue !== previousResetValue) {
1681
1716
  setPreviousResetValue(resetValue);
1682
1717
  setAddress("");
1683
1718
  }
@@ -1919,7 +1954,7 @@ var TransferBuilderFlexbox = /* @__PURE__ */ __name(({ onBuild, ...props }) => /
1919
1954
 
1920
1955
  // src/components/rate/flexbox/FlexBox.tsx
1921
1956
  import { FlexCol as FlexCol7 } from "@xylabs/react-flexbox";
1922
- import { isDefined as isDefined10 } from "@xylabs/sdk-js";
1957
+ import { isDefined as isDefined11 } from "@xylabs/sdk-js";
1923
1958
 
1924
1959
  // src/helpers/rate/rateUnitToLabel.ts
1925
1960
  var rateUnitToLabel = /* @__PURE__ */ __name((rateUnit) => {
@@ -2050,7 +2085,7 @@ var BlockRateTimeTypography = /* @__PURE__ */ __name(({ timeUnit, timeDifference
2050
2085
  // src/components/rate/flexbox/FlexBox.tsx
2051
2086
  var BlockRateFlexBox = /* @__PURE__ */ __name(({ blockRate, ...flexBoxProps }) => {
2052
2087
  const { range, span, rate, timeUnit, timeDifference } = blockRate ?? {};
2053
- const rateUnitLabel = isDefined10(timeUnit) ? rateUnitToLabel(timeUnit) : "";
2088
+ const rateUnitLabel = isDefined11(timeUnit) ? rateUnitToLabel(timeUnit) : "";
2054
2089
  return /* @__PURE__ */ React.createElement(FlexCol7, {
2055
2090
  alignItems: "start",
2056
2091
  ...flexBoxProps
@@ -2070,7 +2105,7 @@ var BlockRateFlexBox = /* @__PURE__ */ __name(({ blockRate, ...flexBoxProps }) =
2070
2105
  import { GaugeContainer, GaugeReferenceArc, GaugeValueArc } from "@mui/x-charts";
2071
2106
 
2072
2107
  // src/components/rate/gauge/helpers/blockRateConversions.ts
2073
- import { isDefined as isDefined11, isUndefined as isUndefined3 } from "@xylabs/sdk-js";
2108
+ import { isDefined as isDefined12, isUndefined as isUndefined3 } from "@xylabs/sdk-js";
2074
2109
  var toBlocksPerMillisecond = /* @__PURE__ */ __name((rateValue, unit) => {
2075
2110
  if (isUndefined3(unit)) return rateValue;
2076
2111
  const conversions = {
@@ -2081,7 +2116,7 @@ var toBlocksPerMillisecond = /* @__PURE__ */ __name((rateValue, unit) => {
2081
2116
  days: 864e5,
2082
2117
  weeks: 6048e5
2083
2118
  };
2084
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2119
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2085
2120
  }, "toBlocksPerMillisecond");
2086
2121
  var toBlocksPerSecond = /* @__PURE__ */ __name((rateValue, unit) => {
2087
2122
  if (isUndefined3(unit)) return rateValue;
@@ -2093,7 +2128,7 @@ var toBlocksPerSecond = /* @__PURE__ */ __name((rateValue, unit) => {
2093
2128
  days: 86400,
2094
2129
  weeks: 604800
2095
2130
  };
2096
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2131
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2097
2132
  }, "toBlocksPerSecond");
2098
2133
  var toBlocksPerMinute = /* @__PURE__ */ __name((rateValue, unit) => {
2099
2134
  if (isUndefined3(unit)) return rateValue;
@@ -2105,7 +2140,7 @@ var toBlocksPerMinute = /* @__PURE__ */ __name((rateValue, unit) => {
2105
2140
  days: 1 / 1440,
2106
2141
  weeks: 1 / 10080
2107
2142
  };
2108
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2143
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2109
2144
  }, "toBlocksPerMinute");
2110
2145
  var toBlocksPerHour = /* @__PURE__ */ __name((rateValue, unit) => {
2111
2146
  if (isUndefined3(unit)) return rateValue;
@@ -2117,7 +2152,7 @@ var toBlocksPerHour = /* @__PURE__ */ __name((rateValue, unit) => {
2117
2152
  days: 1 / 24,
2118
2153
  weeks: 1 / 168
2119
2154
  };
2120
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2155
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2121
2156
  }, "toBlocksPerHour");
2122
2157
  var toBlocksPerDay = /* @__PURE__ */ __name((rateValue, unit) => {
2123
2158
  if (isUndefined3(unit)) return rateValue;
@@ -2129,7 +2164,7 @@ var toBlocksPerDay = /* @__PURE__ */ __name((rateValue, unit) => {
2129
2164
  days: 1,
2130
2165
  weeks: 1 / 7
2131
2166
  };
2132
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2167
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2133
2168
  }, "toBlocksPerDay");
2134
2169
  var toBlocksPerWeek = /* @__PURE__ */ __name((rateValue, unit) => {
2135
2170
  if (isUndefined3(unit)) return rateValue;
@@ -2141,7 +2176,7 @@ var toBlocksPerWeek = /* @__PURE__ */ __name((rateValue, unit) => {
2141
2176
  days: 7,
2142
2177
  weeks: 1
2143
2178
  };
2144
- return rateValue * (isDefined11(conversions[unit]) ? conversions[unit] : 1);
2179
+ return rateValue * (isDefined12(conversions[unit]) ? conversions[unit] : 1);
2145
2180
  }, "toBlocksPerWeek");
2146
2181
  var BlockRateConversions = {
2147
2182
  millis: toBlocksPerMillisecond,
@@ -2153,13 +2188,13 @@ var BlockRateConversions = {
2153
2188
  };
2154
2189
 
2155
2190
  // src/components/rate/gauge/Pointer.tsx
2156
- import { useTheme as useTheme3 } from "@mui/material";
2191
+ import { useTheme as useTheme2 } from "@mui/material";
2157
2192
  import { useGaugeState } from "@mui/x-charts/Gauge";
2158
- import { isDefined as isDefined12 } from "@xylabs/sdk-js";
2193
+ import { isDefined as isDefined13 } from "@xylabs/sdk-js";
2159
2194
  import { useEffect as useEffect4, useState as useState19 } from "react";
2160
2195
  var GaugePointer = /* @__PURE__ */ __name(({ pointerColor, startAngle = 0 }) => {
2161
- const theme = useTheme3();
2162
- const strokeColor = isDefined12(pointerColor) ? pointerColor : theme.palette.error.dark;
2196
+ const theme = useTheme2();
2197
+ const strokeColor = isDefined13(pointerColor) ? pointerColor : theme.palette.error.dark;
2163
2198
  const { valueAngle, outerRadius, cx, cy } = useGaugeState();
2164
2199
  const [currentAngle, setCurrentAngle] = useState19(startAngle);
2165
2200
  useEffect4(() => {
@@ -2206,13 +2241,13 @@ var GaugePointer = /* @__PURE__ */ __name(({ pointerColor, startAngle = 0 }) =>
2206
2241
  }, "GaugePointer");
2207
2242
 
2208
2243
  // src/components/rate/gauge/Ticks.tsx
2209
- import { useTheme as useTheme4 } from "@mui/material";
2244
+ import { useTheme as useTheme3 } from "@mui/material";
2210
2245
  import { useGaugeState as useGaugeState2 } from "@mui/x-charts/Gauge";
2211
- import { isDefined as isDefined13 } from "@xylabs/sdk-js";
2246
+ import { isDefined as isDefined14 } from "@xylabs/sdk-js";
2212
2247
  var GaugeTicks = /* @__PURE__ */ __name(({ numTicks = 11, minorTicksPerMajor = 4, majorTickLength = 0.2, minorTickLength = 0.15, majorTickWidth = 2, minorTickWidth = 1, tickColor }) => {
2213
- const theme = useTheme4();
2248
+ const theme = useTheme3();
2214
2249
  const { startAngle, endAngle, outerRadius, cx, cy } = useGaugeState2();
2215
- const color = isDefined13(tickColor) ? tickColor : theme.vars.palette.text.secondary;
2250
+ const color = isDefined14(tickColor) ? tickColor : theme.vars.palette.text.secondary;
2216
2251
  if (startAngle === null || endAngle === null) {
2217
2252
  return null;
2218
2253
  }
@@ -2290,9 +2325,9 @@ var BlockRateSpeedGaugeContainer = /* @__PURE__ */ __name(({ blockRate, children
2290
2325
 
2291
2326
  // src/components/rate/gauge/WithLabel.tsx
2292
2327
  import { FlexCol as FlexCol8 } from "@xylabs/react-flexbox";
2293
- import { isDefined as isDefined14 } from "@xylabs/sdk-js";
2328
+ import { isDefined as isDefined15 } from "@xylabs/sdk-js";
2294
2329
  var BlockRateSpeedGaugeWithLabel = /* @__PURE__ */ __name(({ blockRate, ...props }) => {
2295
- const rateUnitLabel = isDefined14(blockRate?.rate) ? rateUnitToLabel(blockRate?.timeUnit) : "";
2330
+ const rateUnitLabel = isDefined15(blockRate?.rate) ? rateUnitToLabel(blockRate?.timeUnit) : "";
2296
2331
  return /* @__PURE__ */ React.createElement(FlexCol8, null, /* @__PURE__ */ React.createElement(BlockRateSpeedGaugeContainer, {
2297
2332
  blockRate,
2298
2333
  ...props
@@ -2496,6 +2531,7 @@ export {
2496
2531
  useBlockProducer,
2497
2532
  useChainIteratorParams,
2498
2533
  useChainPagination,
2534
+ useLinkedBalanceHistoryItem,
2499
2535
  useOnBlock,
2500
2536
  usePagedAccountBalanceHistory,
2501
2537
  usePayloadCountsFromBlock,