@localstack/appinspector-ui 1.0.87 → 1.0.89
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 +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10234,6 +10234,7 @@ var EVENT_DETAILS_REQUEST_ID_TEST_ID = "event-details-request-id";
|
|
|
10234
10234
|
var EVENT_DETAILS_REQUEST_PAYLOAD = "event-details-request-payload";
|
|
10235
10235
|
var EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID = "event-details-response-payload";
|
|
10236
10236
|
var EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID = "event-details-exception-payload";
|
|
10237
|
+
var EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID = "event-details-iam-errors-suppressed";
|
|
10237
10238
|
var SERVICE_NODE_TEST_ID = "service-node";
|
|
10238
10239
|
var SERVICE_NODE_SERVICE_NAME_TEST_ID = "service-node-service-name";
|
|
10239
10240
|
var SERVICE_NODE_OPERATION_NAME_TEST_ID = "service-node-operation-name";
|
|
@@ -14235,7 +14236,7 @@ import { useCallback as useCallback9, useEffect as useEffect20, useRef as useRef
|
|
|
14235
14236
|
|
|
14236
14237
|
// src/components/event-details/event-details.tsx
|
|
14237
14238
|
import { Close as Close2 } from "@mui/icons-material";
|
|
14238
|
-
import { Box as Box14, Chip as Chip3, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton4, Stack as Stack2, Switch, Typography as Typography10, useTheme as useTheme3 } from "@mui/material";
|
|
14239
|
+
import { Alert as Alert3, Box as Box14, Chip as Chip3, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton4, Stack as Stack2, Switch, Typography as Typography10, useTheme as useTheme3 } from "@mui/material";
|
|
14239
14240
|
|
|
14240
14241
|
// node_modules/@textea/json-viewer/dist/index.mjs
|
|
14241
14242
|
var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
|
|
@@ -26526,13 +26527,12 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26526
26527
|
requestPayload.MessageBody = tryParseJson(requestPayload.MessageBody);
|
|
26527
26528
|
}
|
|
26528
26529
|
}
|
|
26529
|
-
const isResponseSuppressed = selectedEvent.attributes?.["localstack.aws.service.response_suppressed"] === true;
|
|
26530
26530
|
const responsePayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.response"]);
|
|
26531
26531
|
if (parseNestedJson && isLambdaInvoke && responsePayload && typeof responsePayload === "object" && "Payload" in responsePayload) {
|
|
26532
26532
|
responsePayload.Payload = tryParseJson(responsePayload.Payload);
|
|
26533
26533
|
}
|
|
26534
26534
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
26535
|
-
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0
|
|
26535
|
+
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0;
|
|
26536
26536
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
26537
26537
|
return /* @__PURE__ */ jsxs130(Box14, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
26538
26538
|
/* @__PURE__ */ jsxs130(
|
|
@@ -26611,7 +26611,8 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26611
26611
|
] }) }),
|
|
26612
26612
|
/* @__PURE__ */ jsx137(Divider3, {}),
|
|
26613
26613
|
/* @__PURE__ */ jsxs130(ToggleSection, { headline: "Permissions", children: [
|
|
26614
|
-
|
|
26614
|
+
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx137(Alert3, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
|
|
26615
|
+
!selectedEvent.iam_errors_suppressed && !eventGroups.permissions && !eventGroups.errors && !eventGroups.warnings && /* @__PURE__ */ jsx137(Typography10, { color: "text.secondary", variant: "body2", children: "There is no permission information available." }),
|
|
26615
26616
|
eventGroups.permissions && /* @__PURE__ */ jsx137(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" }),
|
|
26616
26617
|
eventGroups.errors && /* @__PURE__ */ jsx137(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
|
|
26617
26618
|
eventGroups.warnings && /* @__PURE__ */ jsx137(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" })
|
|
@@ -26637,9 +26638,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26637
26638
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Request" }),
|
|
26638
26639
|
/* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
26639
26640
|
] }),
|
|
26640
|
-
|
|
26641
|
+
responsePayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
|
|
26641
26642
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Response" }),
|
|
26642
|
-
|
|
26643
|
+
/* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
26643
26644
|
] }),
|
|
26644
26645
|
exceptionPayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
|
|
26645
26646
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Exception" }),
|
|
@@ -26683,7 +26684,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26683
26684
|
};
|
|
26684
26685
|
var PayloadViewer = memo10(({ testId, value }) => {
|
|
26685
26686
|
const theme = useTheme3();
|
|
26686
|
-
return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto",
|
|
26687
|
+
return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", p: 1 }, children: /* @__PURE__ */ jsx137(
|
|
26687
26688
|
JsonViewer,
|
|
26688
26689
|
{
|
|
26689
26690
|
displayDataTypes: false,
|
|
@@ -26698,7 +26699,7 @@ var PayloadViewer = memo10(({ testId, value }) => {
|
|
|
26698
26699
|
|
|
26699
26700
|
// src/components/trace-graph/trace-graph.tsx
|
|
26700
26701
|
import "@xyflow/react/dist/base.css";
|
|
26701
|
-
import { Alert as
|
|
26702
|
+
import { Alert as Alert4, Button as Button5, useTheme as useTheme4 } from "@mui/material";
|
|
26702
26703
|
import { Background, MarkerType, Position as Position2, ReactFlow, useEdgesState, useNodesState } from "@xyflow/react";
|
|
26703
26704
|
import { useEffect as useEffect19 } from "react";
|
|
26704
26705
|
|
|
@@ -27017,7 +27018,7 @@ var TraceGraph = ({
|
|
|
27017
27018
|
const theme = useTheme4();
|
|
27018
27019
|
return /* @__PURE__ */ jsxs133(Fragment9, { children: [
|
|
27019
27020
|
spans.error && /* @__PURE__ */ jsxs133(
|
|
27020
|
-
|
|
27021
|
+
Alert4,
|
|
27021
27022
|
{
|
|
27022
27023
|
action: /* @__PURE__ */ jsx141(Button5, { onClick: () => {
|
|
27023
27024
|
onRefresh();
|