@localstack/appinspector-ui 1.0.136 → 1.0.138

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.cjs CHANGED
@@ -15766,7 +15766,7 @@ var SpansDataGrid = ({
15766
15766
  import_material7.Box,
15767
15767
  {
15768
15768
  "data-testid": ERROR_COUNT_TEST_ID,
15769
- sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "default", display: "flex", gap: 0.5, mb: "-1px" },
15769
+ sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "help", display: "flex", gap: 0.5, mb: "-1px" },
15770
15770
  children: [
15771
15771
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material7.Typography, { color: "error", variant: "body2", children: errorCount.toLocaleString() }),
15772
15772
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material7.Typography, { color: "error", variant: "caption", children: errorCount === 1 ? "error" : "errors" })
@@ -15780,7 +15780,7 @@ var SpansDataGrid = ({
15780
15780
  import_material7.Box,
15781
15781
  {
15782
15782
  "data-testid": WARNING_COUNT_TEST_ID,
15783
- sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "warning.main", cursor: "default", display: "flex", gap: 0.5, mb: "-1px" },
15783
+ sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "warning.main", cursor: "help", display: "flex", gap: 0.5, mb: "-1px" },
15784
15784
  children: [
15785
15785
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material7.Typography, { color: "warning.main", variant: "body2", children: warningCount.toLocaleString() }),
15786
15786
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material7.Typography, { color: "warning.main", variant: "caption", children: warningCount === 1 ? "warning" : "warnings" })
@@ -15802,7 +15802,8 @@ var SpansDataGrid = ({
15802
15802
  }
15803
15803
  ),
15804
15804
  disabled: clearingSpans,
15805
- label: ""
15805
+ label: "",
15806
+ sx: { marginRight: 0 }
15806
15807
  }
15807
15808
  )
15808
15809
  ] }) }),
@@ -18681,11 +18682,12 @@ var AppInspectorContextProvider = (props) => {
18681
18682
  const contextValue = (0, import_react45.useMemo)(
18682
18683
  () => ({
18683
18684
  deploymentContainer,
18685
+ headerHeight: props.headerHeight ?? 0,
18684
18686
  linkComponent: props.linkComponent,
18685
18687
  localstackEndpoint: props.localstackEndpoint,
18686
18688
  resolveLink
18687
18689
  }),
18688
- [deploymentContainer, props.linkComponent, props.localstackEndpoint, resolveLink]
18690
+ [deploymentContainer, props.headerHeight, props.linkComponent, props.localstackEndpoint, resolveLink]
18689
18691
  );
18690
18692
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ApiProvider, { api, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(AppInspectorContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(AppInspectorAnalyticsBoundary, { children: props.children }) }) }) });
18691
18693
  };
@@ -31951,7 +31953,6 @@ var TraceGraph = ({
31951
31953
 
31952
31954
  // src/pages/trace-graph-page.tsx
31953
31955
  var import_jsx_runtime145 = require("react/jsx-runtime");
31954
- var HEADER_HEIGHT = 56;
31955
31956
  var DRAWER_WIDTH = "35%";
31956
31957
  var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) => property !== "open" })(({ open, theme }) => ({
31957
31958
  flexGrow: 1,
@@ -31968,11 +31969,11 @@ var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) =>
31968
31969
  })
31969
31970
  }
31970
31971
  }));
31971
- var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(() => ({
31972
+ var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(({ headerHeight }) => ({
31972
31973
  "& .MuiDrawer-paper": {
31973
31974
  bottom: 0,
31974
31975
  boxSizing: "border-box",
31975
- height: `calc(100% - ${HEADER_HEIGHT.toString()}px)`,
31976
+ height: `calc(100% - ${headerHeight.toString()}px)`,
31976
31977
  overflowY: "auto",
31977
31978
  top: "auto",
31978
31979
  width: DRAWER_WIDTH
@@ -31986,6 +31987,7 @@ var TraceGraphView = ({
31986
31987
  fetchSpans,
31987
31988
  handleClose,
31988
31989
  handleEventSelect,
31990
+ headerHeight,
31989
31991
  loading,
31990
31992
  navigateToSpansList,
31991
31993
  open,
@@ -32047,7 +32049,7 @@ var TraceGraphView = ({
32047
32049
  ) })
32048
32050
  }
32049
32051
  ) }),
32050
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(EventDetails, { onClose: handleClose, selectedEvent }) })
32052
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(StyledDrawer, { anchor: "right", headerHeight, open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(EventDetails, { onClose: handleClose, selectedEvent }) })
32051
32053
  ]
32052
32054
  }
32053
32055
  )
@@ -32090,6 +32092,7 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
32090
32092
  }
32091
32093
  var TraceGraphPage = ({ onClose, spanId, traceId }) => {
32092
32094
  const api = useAppInspectorApi();
32095
+ const { headerHeight } = useAppInspector();
32093
32096
  const [spans, setSpans] = (0, import_react63.useState)();
32094
32097
  const [loading, setLoading] = (0, import_react63.useState)(false);
32095
32098
  const [fetchError, setFetchError] = (0, import_react63.useState)();
@@ -32135,6 +32138,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
32135
32138
  setOpen(false);
32136
32139
  },
32137
32140
  handleEventSelect,
32141
+ headerHeight,
32138
32142
  loading,
32139
32143
  navigateToSpansList,
32140
32144
  open,