@localstack/appinspector-ui 1.0.86 → 1.0.87

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
@@ -26526,12 +26526,13 @@ var EventDetails = ({ onClose, selectedEvent }) => {
26526
26526
  requestPayload.MessageBody = tryParseJson(requestPayload.MessageBody);
26527
26527
  }
26528
26528
  }
26529
+ const isResponseSuppressed = selectedEvent.attributes?.["localstack.aws.service.response_suppressed"] === true;
26529
26530
  const responsePayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.response"]);
26530
26531
  if (parseNestedJson && isLambdaInvoke && responsePayload && typeof responsePayload === "object" && "Payload" in responsePayload) {
26531
26532
  responsePayload.Payload = tryParseJson(responsePayload.Payload);
26532
26533
  }
26533
26534
  const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
26534
- const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0;
26535
+ const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0 || isResponseSuppressed;
26535
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;
26536
26537
  return /* @__PURE__ */ jsxs130(Box14, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
26537
26538
  /* @__PURE__ */ jsxs130(
@@ -26636,9 +26637,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
26636
26637
  /* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Request" }),
26637
26638
  /* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
26638
26639
  ] }),
26639
- responsePayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
26640
+ (responsePayload !== void 0 || isResponseSuppressed) && /* @__PURE__ */ jsxs130(Box14, { children: [
26640
26641
  /* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Response" }),
26641
- /* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
26642
+ isResponseSuppressed ? /* @__PURE__ */ jsx137(Box14, { sx: { py: 1 }, children: /* @__PURE__ */ jsx137(Box14, { sx: { backgroundColor: "action.hover", borderRadius: 1, p: 1 }, children: /* @__PURE__ */ jsx137(Typography10, { color: "text.secondary", variant: "body2", children: "Response payload is available \u2014 upgrade your license to view" }) }) }) : /* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
26642
26643
  ] }),
26643
26644
  exceptionPayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
26644
26645
  /* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Exception" }),
@@ -26682,7 +26683,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
26682
26683
  };
26683
26684
  var PayloadViewer = memo10(({ testId, value }) => {
26684
26685
  const theme = useTheme3();
26685
- return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", p: 1 }, children: /* @__PURE__ */ jsx137(
26686
+ return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", py: 1 }, children: /* @__PURE__ */ jsx137(
26686
26687
  JsonViewer,
26687
26688
  {
26688
26689
  displayDataTypes: false,