@localstack/appinspector-ui 1.0.2 → 1.0.3

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
@@ -2846,8 +2846,7 @@ var SpansList = (props) => {
2846
2846
  };
2847
2847
 
2848
2848
  // src/components/status-message/status-message.tsx
2849
- import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
2850
- import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
2849
+ import { ErrorOutline, InfoOutlined } from "@mui/icons-material";
2851
2850
  import { Alert as Alert2, AlertTitle, Box as Box5, Button as Button3, Link, Typography as Typography3 } from "@mui/material";
2852
2851
 
2853
2852
  // src/api/errors.ts
@@ -2889,7 +2888,7 @@ var getAppInspectorApiUrl = (localstackEndpoint, endpoint) => {
2889
2888
  };
2890
2889
 
2891
2890
  // src/components/status-message/status-message.tsx
2892
- import { jsx as jsx126, jsxs as jsxs122 } from "react/jsx-runtime";
2891
+ import { Fragment as Fragment2, jsx as jsx126, jsxs as jsxs122 } from "react/jsx-runtime";
2893
2892
  var StatusMessage = ({
2894
2893
  error,
2895
2894
  onRetry,
@@ -2910,7 +2909,7 @@ var StatusMessage = ({
2910
2909
  children: /* @__PURE__ */ jsxs122(
2911
2910
  Alert2,
2912
2911
  {
2913
- icon: /* @__PURE__ */ jsx126(ErrorOutlineIcon, { fontSize: "large" }),
2912
+ icon: /* @__PURE__ */ jsx126(ErrorOutline, { fontSize: "large" }),
2914
2913
  severity: "error",
2915
2914
  sx: { maxWidth: 600, width: "100%" },
2916
2915
  children: [
@@ -2983,7 +2982,7 @@ var StatusMessage = ({
2983
2982
  children: /* @__PURE__ */ jsxs122(
2984
2983
  Alert2,
2985
2984
  {
2986
- icon: /* @__PURE__ */ jsx126(ErrorOutlineIcon, { fontSize: "large" }),
2985
+ icon: /* @__PURE__ */ jsx126(ErrorOutline, { fontSize: "large" }),
2987
2986
  severity: "error",
2988
2987
  sx: { maxWidth: 600, width: "100%" },
2989
2988
  children: [
@@ -3033,7 +3032,7 @@ var StatusMessage = ({
3033
3032
  children: /* @__PURE__ */ jsxs122(
3034
3033
  Alert2,
3035
3034
  {
3036
- icon: /* @__PURE__ */ jsx126(InfoOutlinedIcon, { fontSize: "large" }),
3035
+ icon: /* @__PURE__ */ jsx126(InfoOutlined, { fontSize: "large" }),
3037
3036
  severity: "warning",
3038
3037
  sx: { maxWidth: 600, width: "100%" },
3039
3038
  children: [
@@ -3102,7 +3101,7 @@ var StatusMessage = ({
3102
3101
  children: /* @__PURE__ */ jsxs122(
3103
3102
  Alert2,
3104
3103
  {
3105
- icon: /* @__PURE__ */ jsx126(ErrorOutlineIcon, { fontSize: "large" }),
3104
+ icon: /* @__PURE__ */ jsx126(ErrorOutline, { fontSize: "large" }),
3106
3105
  severity: "error",
3107
3106
  sx: { maxWidth: 600, width: "100%" },
3108
3107
  children: [
@@ -3123,7 +3122,7 @@ var StatusMessage = ({
3123
3122
  }
3124
3123
  );
3125
3124
  }
3126
- return;
3125
+ return /* @__PURE__ */ jsx126(Fragment2, {});
3127
3126
  };
3128
3127
 
3129
3128
  // src/context.tsx
@@ -3542,7 +3541,7 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
3542
3541
  };
3543
3542
 
3544
3543
  // src/components/event-details/event-details.tsx
3545
- import { Fragment as Fragment2, jsx as jsx131, jsxs as jsxs125 } from "react/jsx-runtime";
3544
+ import { Fragment as Fragment3, jsx as jsx131, jsxs as jsxs125 } from "react/jsx-runtime";
3546
3545
  var EventDetails = ({ selectedEvent }) => {
3547
3546
  if (!selectedEvent) {
3548
3547
  return /* @__PURE__ */ jsx131(Box9, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx131(Typography6, { color: "text.secondary", variant: "body2", children: "Select an event to view details" }) });
@@ -3606,7 +3605,7 @@ var EventDetails = ({ selectedEvent }) => {
3606
3605
  ),
3607
3606
  selectedEvent.status_message && /* @__PURE__ */ jsx131(Typography6, { variant: "body2", children: selectedEvent.status_message })
3608
3607
  ] }) }),
3609
- selectedEvent.attributes && Object.keys(selectedEvent.attributes).length > 0 && /* @__PURE__ */ jsxs125(Fragment2, { children: [
3608
+ selectedEvent.attributes && Object.keys(selectedEvent.attributes).length > 0 && /* @__PURE__ */ jsxs125(Fragment3, { children: [
3610
3609
  /* @__PURE__ */ jsx131(Divider, {}),
3611
3610
  /* @__PURE__ */ jsx131(ToggleSection, { headline: "Attributes", children: /* @__PURE__ */ jsx131(Box9, { sx: { backgroundColor: "#f5f5f5", borderRadius: 1, p: 1 }, children: /* @__PURE__ */ jsx131("pre", { style: { fontSize: "0.85rem", margin: 0, overflow: "auto" }, children: JSON.stringify(selectedEvent.attributes, void 0, 2) }) }) })
3612
3611
  ] })
@@ -3874,7 +3873,7 @@ var calculateCenterX = (focusNodeX, viewPortPixelWidth, minX, maxX) => {
3874
3873
  };
3875
3874
 
3876
3875
  // src/components/trace-graph/trace-graph.tsx
3877
- import { Fragment as Fragment3, jsx as jsx134, jsxs as jsxs127 } from "react/jsx-runtime";
3876
+ import { Fragment as Fragment4, jsx as jsx134, jsxs as jsxs127 } from "react/jsx-runtime";
3878
3877
  var nodeTypes = {
3879
3878
  service: ServiceNode
3880
3879
  };
@@ -3963,7 +3962,7 @@ var TraceGraph = ({
3963
3962
  onEventSelect(node.data.event);
3964
3963
  updateSelectedNode(node.id);
3965
3964
  }, [onEventSelect, updateSelectedNode]);
3966
- return /* @__PURE__ */ jsxs127(Fragment3, { children: [
3965
+ return /* @__PURE__ */ jsxs127(Fragment4, { children: [
3967
3966
  spans.error && /* @__PURE__ */ jsxs127(
3968
3967
  Alert3,
3969
3968
  {
@@ -4001,7 +4000,7 @@ var TraceGraph = ({
4001
4000
  };
4002
4001
 
4003
4002
  // src/pages/trace-graph-page.tsx
4004
- import { Fragment as Fragment4, jsx as jsx135, jsxs as jsxs128 } from "react/jsx-runtime";
4003
+ import { Fragment as Fragment5, jsx as jsx135, jsxs as jsxs128 } from "react/jsx-runtime";
4005
4004
  var HEADER_HEIGHT = 56;
4006
4005
  var DRAWER_WIDTH = "35%";
4007
4006
  var Main = styled("main", { shouldForwardProp: (property) => property !== "open" })(({ open, theme }) => ({
@@ -4134,7 +4133,7 @@ var TraceGraphPage = () => {
4134
4133
  onRetry: handleRetry,
4135
4134
  status
4136
4135
  }
4137
- ) : /* @__PURE__ */ jsxs128(Fragment4, { children: [
4136
+ ) : /* @__PURE__ */ jsxs128(Fragment5, { children: [
4138
4137
  /* @__PURE__ */ jsx135(Main, { open, children: /* @__PURE__ */ jsx135(
4139
4138
  Box12,
4140
4139
  {