@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.cjs
CHANGED
|
@@ -10222,6 +10222,7 @@ var EVENT_DETAILS_REQUEST_ID_TEST_ID = "event-details-request-id";
|
|
|
10222
10222
|
var EVENT_DETAILS_REQUEST_PAYLOAD = "event-details-request-payload";
|
|
10223
10223
|
var EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID = "event-details-response-payload";
|
|
10224
10224
|
var EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID = "event-details-exception-payload";
|
|
10225
|
+
var EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID = "event-details-iam-errors-suppressed";
|
|
10225
10226
|
var SERVICE_NODE_TEST_ID = "service-node";
|
|
10226
10227
|
var SERVICE_NODE_SERVICE_NAME_TEST_ID = "service-node-service-name";
|
|
10227
10228
|
var SERVICE_NODE_OPERATION_NAME_TEST_ID = "service-node-operation-name";
|
|
@@ -26514,13 +26515,12 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26514
26515
|
requestPayload.MessageBody = tryParseJson(requestPayload.MessageBody);
|
|
26515
26516
|
}
|
|
26516
26517
|
}
|
|
26517
|
-
const isResponseSuppressed = selectedEvent.attributes?.["localstack.aws.service.response_suppressed"] === true;
|
|
26518
26518
|
const responsePayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.response"]);
|
|
26519
26519
|
if (parseNestedJson && isLambdaInvoke && responsePayload && typeof responsePayload === "object" && "Payload" in responsePayload) {
|
|
26520
26520
|
responsePayload.Payload = tryParseJson(responsePayload.Payload);
|
|
26521
26521
|
}
|
|
26522
26522
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
26523
|
-
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0
|
|
26523
|
+
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0;
|
|
26524
26524
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
26525
26525
|
return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material15.Box, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
26526
26526
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
|
|
@@ -26599,7 +26599,8 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26599
26599
|
] }) }),
|
|
26600
26600
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Divider, {}),
|
|
26601
26601
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(ToggleSection, { headline: "Permissions", children: [
|
|
26602
|
-
|
|
26602
|
+
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Alert, { "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" }),
|
|
26603
|
+
!selectedEvent.iam_errors_suppressed && !eventGroups.permissions && !eventGroups.errors && !eventGroups.warnings && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Typography, { color: "text.secondary", variant: "body2", children: "There is no permission information available." }),
|
|
26603
26604
|
eventGroups.permissions && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" }),
|
|
26604
26605
|
eventGroups.errors && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
|
|
26605
26606
|
eventGroups.warnings && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" })
|
|
@@ -26625,9 +26626,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26625
26626
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Request" }),
|
|
26626
26627
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
26627
26628
|
] }),
|
|
26628
|
-
|
|
26629
|
+
responsePayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material15.Box, { children: [
|
|
26629
26630
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Response" }),
|
|
26630
|
-
|
|
26631
|
+
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
26631
26632
|
] }),
|
|
26632
26633
|
exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material15.Box, { children: [
|
|
26633
26634
|
/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Exception" }),
|
|
@@ -26671,7 +26672,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26671
26672
|
};
|
|
26672
26673
|
var PayloadViewer = (0, import_react56.memo)(({ testId, value }) => {
|
|
26673
26674
|
const theme = (0, import_material15.useTheme)();
|
|
26674
|
-
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Box, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto",
|
|
26675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material15.Box, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
26675
26676
|
JsonViewer,
|
|
26676
26677
|
{
|
|
26677
26678
|
displayDataTypes: false,
|