@localstack/appinspector-ui 1.0.87 → 1.0.88

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