@localstack/appinspector-ui 1.0.113 → 1.0.114

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/index.js CHANGED
@@ -15032,7 +15032,7 @@ var LoadSpansRow = ({ colSpan, fetching, label, onFetch }) => /* @__PURE__ */ js
15032
15032
  fetching && /* @__PURE__ */ jsx127(CircularProgress, { size: 24, sx: { m: 2 } })
15033
15033
  ] }) });
15034
15034
  var SpansDataGridRow = memo8(
15035
- ({ row }) => {
15035
+ ({ onSpanClick, row }) => {
15036
15036
  const theme = useTheme2();
15037
15037
  return /* @__PURE__ */ jsx127(
15038
15038
  TableRow,
@@ -15045,7 +15045,11 @@ var SpansDataGridRow = memo8(
15045
15045
  initial: {
15046
15046
  backgroundColor: theme.palette.mode === "light" ? newSpanBackgroundColor.light.from : newSpanBackgroundColor.dark.from
15047
15047
  },
15048
+ onClick: () => {
15049
+ onSpanClick(row.original);
15050
+ },
15048
15051
  sx: {
15052
+ cursor: "pointer",
15049
15053
  transition: "background-color 1200ms ease-in"
15050
15054
  },
15051
15055
  children: row.getVisibleCells().map((cell) => {
@@ -15162,7 +15166,8 @@ var SpansDataGrid = ({
15162
15166
  Button2,
15163
15167
  {
15164
15168
  "data-testid": VIEW_SPAN_DETAILS_TEST_ID,
15165
- onClick: () => {
15169
+ onClick: (event) => {
15170
+ event.stopPropagation();
15166
15171
  onSpanClick(props.row.original);
15167
15172
  },
15168
15173
  size: "small",
@@ -15323,7 +15328,7 @@ var SpansDataGrid = ({
15323
15328
  for (let index = rows.length - 1; index >= 0; index--) {
15324
15329
  const row = rows.at(index);
15325
15330
  reversed.push(
15326
- /* @__PURE__ */ jsx127(SpansDataGridRow, { row }, row.original.span_id)
15331
+ /* @__PURE__ */ jsx127(SpansDataGridRow, { onSpanClick, row }, row.original.span_id)
15327
15332
  );
15328
15333
  }
15329
15334
  return reversed;
@@ -15334,7 +15339,7 @@ var SpansDataGrid = ({
15334
15339
  !clearingSpans && order2 === "oldest_first" && /* @__PURE__ */ jsxs121(Fragment5, { children: [
15335
15340
  hasRows && !hasMoreBackward && /* @__PURE__ */ jsx127(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_BEGINNING_OF_STREAM }),
15336
15341
  hasRows && hasMoreBackward && /* @__PURE__ */ jsx127(LoadSpansRow, { colSpan: columnCount, fetching: fetchingBackward, label: LABEL_LOAD_OLDER, onFetch: onFetchBackward }),
15337
- hasRows && /* @__PURE__ */ jsx127(AnimatePresence, { initial: false, children: rows.map((row) => /* @__PURE__ */ jsx127(SpansDataGridRow, { row }, row.original.span_id)) }),
15342
+ hasRows && /* @__PURE__ */ jsx127(AnimatePresence, { initial: false, children: rows.map((row) => /* @__PURE__ */ jsx127(SpansDataGridRow, { onSpanClick, row }, row.original.span_id)) }),
15338
15343
  hasRows && hasMoreForward && /* @__PURE__ */ jsx127(LoadSpansRow, { colSpan: columnCount, fetching: fetchingForward, label: LABEL_LOAD_NEWER, onFetch: onFetchForward }),
15339
15344
  hasRows && !hasMoreForward && /* @__PURE__ */ jsx127(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM })
15340
15345
  ] })