@xyo-network/react-chain-blockchain 1.20.10 → 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/dist/browser/index.mjs +6 -6
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +30 -29
- package/src/components/account/table/RawAmountTableCell.tsx +1 -1
- package/src/components/account/table/cell/AddressTableCell.tsx +1 -1
- package/src/components/account/table/cell/HashTableCell.tsx +1 -1
- package/src/components/block/BlockHeadingFlexbox.tsx +1 -1
- package/src/components/block/table/cell/BlockNumber.tsx +1 -1
- package/src/components/block/table/cell/hooks/useLinkedBlockItem.tsx +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -605,7 +605,7 @@ var BlockHeadingFlexbox = /* @__PURE__ */ __name(({ block, defaultExpanded, tran
|
|
|
605
605
|
const expanded = pollingState === "paused" || defaultExpanded;
|
|
606
606
|
const handleTransactionCountClick = /* @__PURE__ */ __name((event, transactions2) => {
|
|
607
607
|
event.stopPropagation();
|
|
608
|
-
blockHeadingListener("transaction-count", "click", JSON.stringify(transactions2));
|
|
608
|
+
blockHeadingListener("transaction-count", "click", JSON.stringify(transactions2), event.nativeEvent);
|
|
609
609
|
}, "handleTransactionCountClick");
|
|
610
610
|
return /* @__PURE__ */ React12.createElement(FlexCol2, {
|
|
611
611
|
className: "block-heading-flexbox",
|
|
@@ -662,7 +662,7 @@ var BlockNumberTableCell = /* @__PURE__ */ __name(({ block, linked, ...props })
|
|
|
662
662
|
}, "BlockNumberTableCell");
|
|
663
663
|
var BlockNumberTableCellInner = /* @__PURE__ */ __name(({ blockNumber, linked, ...props }) => {
|
|
664
664
|
const [ref, dispatch] = useEvent2();
|
|
665
|
-
const handleClick = /* @__PURE__ */ __name(() => dispatch("block-number", "click", blockNumber?.toString() ?? ""), "handleClick");
|
|
665
|
+
const handleClick = /* @__PURE__ */ __name((event) => dispatch("block-number", "click", blockNumber?.toString() ?? "", event.nativeEvent), "handleClick");
|
|
666
666
|
return /* @__PURE__ */ React13.createElement(TableCell, {
|
|
667
667
|
ref,
|
|
668
668
|
...props
|
|
@@ -797,7 +797,7 @@ var useLinkedBlockItem = /* @__PURE__ */ __name((noun, data) => {
|
|
|
797
797
|
const selection = globalThis.getSelection();
|
|
798
798
|
const isTextSelected = selection && selection.toString().length > 0;
|
|
799
799
|
if (!isTextSelected) {
|
|
800
|
-
dispatch(noun, "click", data);
|
|
800
|
+
dispatch(noun, "click", data, event.nativeEvent);
|
|
801
801
|
}
|
|
802
802
|
}, "handleClick");
|
|
803
803
|
return [
|
|
@@ -1113,7 +1113,7 @@ import { useEvent as useEvent4 } from "@xyo-network/react-event";
|
|
|
1113
1113
|
import React25 from "react";
|
|
1114
1114
|
var AddressTableCell = /* @__PURE__ */ __name(({ address, linked, toolTipTitle, sx, ...props }) => {
|
|
1115
1115
|
const [ref, dispatch] = useEvent4();
|
|
1116
|
-
const handleClick = /* @__PURE__ */ __name(() => dispatch("address", "click", address), "handleClick");
|
|
1116
|
+
const handleClick = /* @__PURE__ */ __name((event) => dispatch("address", "click", address, event.nativeEvent), "handleClick");
|
|
1117
1117
|
return /* @__PURE__ */ React25.createElement(TableCell10, {
|
|
1118
1118
|
ref,
|
|
1119
1119
|
sx: {
|
|
@@ -1136,7 +1136,7 @@ import { useEvent as useEvent5 } from "@xyo-network/react-event";
|
|
|
1136
1136
|
import React26 from "react";
|
|
1137
1137
|
var HashTableCell = /* @__PURE__ */ __name(({ hash, linked, toolTipTitle, sx, ...props }) => {
|
|
1138
1138
|
const [ref, dispatch] = useEvent5();
|
|
1139
|
-
const handleClick = /* @__PURE__ */ __name(() => dispatch("tx-hash", "click", hash), "handleClick");
|
|
1139
|
+
const handleClick = /* @__PURE__ */ __name((event) => dispatch("tx-hash", "click", hash, event.nativeEvent), "handleClick");
|
|
1140
1140
|
const shortenedHash = isDefined4(hash) ? ellipsize2(hash, 6) : "N/A";
|
|
1141
1141
|
return /* @__PURE__ */ React26.createElement(TableCell11, {
|
|
1142
1142
|
ref,
|
|
@@ -1162,7 +1162,7 @@ import { XL1Amount as XL1Amount2 } from "@xyo-network/xl1-sdk";
|
|
|
1162
1162
|
import React27 from "react";
|
|
1163
1163
|
var RawAmountTableCell = /* @__PURE__ */ __name(({ amount, linked, sx, type, ...props }) => {
|
|
1164
1164
|
const [ref, dispatch] = useEvent6();
|
|
1165
|
-
const handleClick = /* @__PURE__ */ __name(() => dispatch("amount", "click", isDefined5(amount) ? toHex2(amount) : ""), "handleClick");
|
|
1165
|
+
const handleClick = /* @__PURE__ */ __name((event) => dispatch("amount", "click", isDefined5(amount) ? toHex2(amount) : "", event.nativeEvent), "handleClick");
|
|
1166
1166
|
const formatAmount = /* @__PURE__ */ __name((amount2) => {
|
|
1167
1167
|
if (!isDefined5(amount2)) {
|
|
1168
1168
|
return "N/A";
|