@localstack/appinspector-ui 1.0.190 → 1.0.192
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 +15 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13117,7 +13117,7 @@ var ResponsiveTimestampCell = memo3(({ date }) => {
|
|
|
13117
13117
|
|
|
13118
13118
|
// src/dev-settings.tsx
|
|
13119
13119
|
import * as React5 from "react";
|
|
13120
|
-
var DEFAULT_DEV_SETTINGS = { requestTerms: "on",
|
|
13120
|
+
var DEFAULT_DEV_SETTINGS = { requestTerms: "on", waterfallIssueBackgrounds: "on", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
|
|
13121
13121
|
var DevSettingsContext = React5.createContext(DEFAULT_DEV_SETTINGS);
|
|
13122
13122
|
var useDevSettings = () => React5.useContext(DevSettingsContext);
|
|
13123
13123
|
|
|
@@ -15366,7 +15366,7 @@ var ServiceCell = memo7(({
|
|
|
15366
15366
|
ServiceCell.displayName = "ServiceCell";
|
|
15367
15367
|
|
|
15368
15368
|
// src/components/cells/status-cell.tsx
|
|
15369
|
-
import { Cancel as Cancel2, Error as Error2
|
|
15369
|
+
import { Cancel as Cancel2, Error as Error2 } from "@mui/icons-material";
|
|
15370
15370
|
import { Box as Box3, Divider, Tooltip as Tooltip3, Typography as Typography3 } from "@mui/material";
|
|
15371
15371
|
|
|
15372
15372
|
// src/utils/iam-utils.ts
|
|
@@ -15528,13 +15528,11 @@ var buildTooltipContent = (span) => {
|
|
|
15528
15528
|
] });
|
|
15529
15529
|
};
|
|
15530
15530
|
var StatusIconWithTooltip = ({ span }) => {
|
|
15531
|
-
const { warningIcon } = useDevSettings();
|
|
15532
15531
|
const { error, warning: warning2 } = getSpanIssues(span);
|
|
15533
15532
|
if (!error && !warning2) return /* @__PURE__ */ jsx125(Fragment2, {});
|
|
15534
|
-
const iamLevel = getIamSummary(span).level;
|
|
15535
15533
|
return /* @__PURE__ */ jsx125(Tooltip3, { title: buildTooltipContent(span), children: /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "center", cursor: "default", display: "flex" }, children: [
|
|
15536
|
-
error && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children:
|
|
15537
|
-
warning2 && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children:
|
|
15534
|
+
error && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx125(Cancel2, { sx: { color: "error.main" } }) }),
|
|
15535
|
+
warning2 && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx125(Error2, { sx: { color: "warning.main" } }) })
|
|
15538
15536
|
] }) });
|
|
15539
15537
|
};
|
|
15540
15538
|
|
|
@@ -16884,7 +16882,7 @@ import { Box as Box14, IconButton as IconButton5, Typography as Typography10 } f
|
|
|
16884
16882
|
import { useEffect as useEffect12, useMemo as useMemo7, useRef as useRef8, useState as useState10 } from "react";
|
|
16885
16883
|
|
|
16886
16884
|
// src/components/status-icon.tsx
|
|
16887
|
-
import { Cancel as Cancel4, CheckCircle, Error as Error3, Info
|
|
16885
|
+
import { Cancel as Cancel4, CheckCircle, Error as Error3, Info } from "@mui/icons-material";
|
|
16888
16886
|
import { Box as Box9 } from "@mui/material";
|
|
16889
16887
|
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
16890
16888
|
var StatusIcon = ({ errorLevel }) => {
|
|
@@ -16895,9 +16893,7 @@ var StatusIcon = ({ errorLevel }) => {
|
|
|
16895
16893
|
case EventLevel.LevelInfo: {
|
|
16896
16894
|
return /* @__PURE__ */ jsx132(Info, { sx: { color: "gray" } });
|
|
16897
16895
|
}
|
|
16898
|
-
case EventLevel.LevelPermission:
|
|
16899
|
-
return /* @__PURE__ */ jsx132(RemoveCircle, { sx: { color: "blue" } });
|
|
16900
|
-
}
|
|
16896
|
+
case EventLevel.LevelPermission:
|
|
16901
16897
|
case EventLevel.LevelWarning: {
|
|
16902
16898
|
return /* @__PURE__ */ jsx132(Error3, { sx: { color: "orange" } });
|
|
16903
16899
|
}
|
|
@@ -31524,7 +31520,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31524
31520
|
variant: "scrollable",
|
|
31525
31521
|
children: [
|
|
31526
31522
|
/* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
|
|
31527
|
-
/* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "
|
|
31523
|
+
/* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
|
|
31528
31524
|
/* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
|
|
31529
31525
|
showError && /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ jsx142(Cancel5, { color: "error", fontSize: "small" }), iconPosition: "end", label: "Error", value: "error" }),
|
|
31530
31526
|
showPermissions && /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
|
|
@@ -31625,7 +31621,7 @@ import { Background, MarkerType, MiniMap, Position as Position2, ReactFlow, useE
|
|
|
31625
31621
|
import { useCallback as useCallback7, useEffect as useEffect16, useRef as useRef13, useState as useState15 } from "react";
|
|
31626
31622
|
|
|
31627
31623
|
// src/components/trace-graph/service-node.tsx
|
|
31628
|
-
import { Cancel as Cancel6, Error as ErrorIcon4
|
|
31624
|
+
import { Cancel as Cancel6, Error as ErrorIcon4 } from "@mui/icons-material";
|
|
31629
31625
|
import { Box as Box17, Divider as Divider4, Stack as Stack5, Tooltip as Tooltip6, Typography as Typography13, useTheme as useTheme4 } from "@mui/material";
|
|
31630
31626
|
import { Handle, Position } from "@xyflow/react";
|
|
31631
31627
|
import "@xyflow/react/dist/style.css";
|
|
@@ -31637,9 +31633,8 @@ var handleStyle = {
|
|
|
31637
31633
|
borderColor: "lightgray",
|
|
31638
31634
|
opacity: 0
|
|
31639
31635
|
};
|
|
31640
|
-
var NodeContent = ({ event, expanded,
|
|
31636
|
+
var NodeContent = ({ event, expanded, issues }) => {
|
|
31641
31637
|
const theme = useTheme4();
|
|
31642
|
-
const { warningIcon } = useDevSettings();
|
|
31643
31638
|
return /* @__PURE__ */ jsxs132(Fragment11, { children: [
|
|
31644
31639
|
/* @__PURE__ */ jsx143(Handle, { position: Position.Left, style: handleStyle, type: "target" }),
|
|
31645
31640
|
/* @__PURE__ */ jsx143(Handle, { position: Position.Right, style: handleStyle, type: "source" }),
|
|
@@ -31694,8 +31689,8 @@ var NodeContent = ({ event, expanded, iamLevel, issues }) => {
|
|
|
31694
31689
|
width: "38px"
|
|
31695
31690
|
},
|
|
31696
31691
|
children: [
|
|
31697
|
-
issues.error && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children:
|
|
31698
|
-
issues.warning && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children:
|
|
31692
|
+
issues.error && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx143(Cancel6, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
|
|
31693
|
+
issues.warning && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx143(ErrorIcon4, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
|
|
31699
31694
|
]
|
|
31700
31695
|
}
|
|
31701
31696
|
),
|
|
@@ -31719,17 +31714,20 @@ var ServiceNode = memo11(({ data, selected }) => {
|
|
|
31719
31714
|
const [isHovered, setIsHovered] = useState14(false);
|
|
31720
31715
|
const nodeRef = useRef12(null);
|
|
31721
31716
|
const issues = getSpanIssues(data.event);
|
|
31722
|
-
const iamLevel = getIamSummary(data.event).level;
|
|
31723
31717
|
const outlineColor = issues.error ? theme.palette.error.main : issues.warning ? theme.palette.warning.main : void 0;
|
|
31718
|
+
const paper = theme.palette.background.paper;
|
|
31719
|
+
const edgeSx = issues.error && issues.warning ? {
|
|
31720
|
+
background: `linear-gradient(135deg, ${theme.palette.error.main} calc(50% - 1px), ${paper} calc(50% - 1px) calc(50% + 1px), ${theme.palette.warning.main} calc(50% + 1px)) left / 3px 100% no-repeat border-box, linear-gradient(${paper}, ${paper}) padding-box`,
|
|
31721
|
+
borderLeft: "3px solid transparent"
|
|
31722
|
+
} : { backgroundColor: paper, borderLeft: `3px solid ${outlineColor ?? "transparent"}` };
|
|
31724
31723
|
const sharedBoxSx = {
|
|
31725
|
-
|
|
31726
|
-
borderLeft: `3px solid ${outlineColor ?? "transparent"}`,
|
|
31724
|
+
...edgeSx,
|
|
31727
31725
|
borderRadius: 1,
|
|
31728
31726
|
cursor: "pointer",
|
|
31729
31727
|
minWidth: 140,
|
|
31730
31728
|
outline: selected ? `2px solid ${outlineColor ?? theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
31731
31729
|
};
|
|
31732
|
-
const contentProps = { event: data.event,
|
|
31730
|
+
const contentProps = { event: data.event, issues };
|
|
31733
31731
|
const handleMouseEnter = () => {
|
|
31734
31732
|
setIsHovered(true);
|
|
31735
31733
|
const xyNode = nodeRef.current?.closest(".react-flow__node");
|