@localstack/appinspector-ui 1.0.221 → 1.0.222
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 +38 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31801,8 +31801,8 @@ var OPTIONAL_TABS = ["logs", "permissions", "response"];
|
|
|
31801
31801
|
var getOptionalTabs = (span, eventGroups) => ({
|
|
31802
31802
|
logs: checkIsLambdaInvoke(span) && typeof span.attributes?.["localstack.request_id"] === "string",
|
|
31803
31803
|
permissions: span.iam_errors_suppressed === true || eventGroups.permissions !== void 0,
|
|
31804
|
-
// A failed call
|
|
31805
|
-
response: span.attributes?.["localstack.aws.service.response_suppressed"] === true || tryParseJson(span.attributes?.["localstack.aws.service.response"]) !== void 0
|
|
31804
|
+
// A failed call shows its error here, even with no response payload.
|
|
31805
|
+
response: getSpanIssues(span).error || span.attributes?.["localstack.aws.service.response_suppressed"] === true || tryParseJson(span.attributes?.["localstack.aws.service.response"]) !== void 0
|
|
31806
31806
|
});
|
|
31807
31807
|
var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
31808
31808
|
/* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
|
|
@@ -31941,9 +31941,9 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
31941
31941
|
value: activeTab,
|
|
31942
31942
|
variant: "scrollable",
|
|
31943
31943
|
children: [
|
|
31944
|
-
/* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID,
|
|
31944
|
+
/* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
|
|
31945
31945
|
/* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "payload" }),
|
|
31946
|
-
showResponse && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
|
|
31946
|
+
showResponse && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, icon: showError ? /* @__PURE__ */ jsx145(Cancel5, { color: "error", sx: { fontSize: 16 } }) : void 0, iconPosition: "end", label: "Response", value: "response" }),
|
|
31947
31947
|
showPermissions && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
|
|
31948
31948
|
showLogs && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" }),
|
|
31949
31949
|
/* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_ADVANCED_TEST_ID, label: "Advanced", value: "advanced" })
|
|
@@ -31952,35 +31952,6 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
31952
31952
|
),
|
|
31953
31953
|
/* @__PURE__ */ jsxs132(Box18, { sx: { p: 2 }, children: [
|
|
31954
31954
|
activeTab === "details" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
|
|
31955
|
-
showError && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, sx: ERROR_BOX_SX, children: [
|
|
31956
|
-
/* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
|
|
31957
|
-
/* @__PURE__ */ jsx145(Field, { label: "Type", children: errorType }),
|
|
31958
|
-
errorMessages.length > 0 && /* @__PURE__ */ jsx145(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|
|
31959
|
-
functionError && /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31960
|
-
functionError.requestId !== void 0 && /* @__PURE__ */ jsx145(Field, { label: "Request ID", children: functionError.requestId }),
|
|
31961
|
-
/* @__PURE__ */ jsx145(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
|
|
31962
|
-
] })
|
|
31963
|
-
] }),
|
|
31964
|
-
functionError?.stackTrace !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
31965
|
-
/* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
31966
|
-
/* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
|
|
31967
|
-
/* @__PURE__ */ jsx145(CopyButton, { value: functionError.stackTrace })
|
|
31968
|
-
] }),
|
|
31969
|
-
/* @__PURE__ */ jsx145(
|
|
31970
|
-
Box18,
|
|
31971
|
-
{
|
|
31972
|
-
component: "pre",
|
|
31973
|
-
"data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
|
|
31974
|
-
sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
|
|
31975
|
-
children: functionError.stackTrace
|
|
31976
|
-
}
|
|
31977
|
-
)
|
|
31978
|
-
] }),
|
|
31979
|
-
exceptionPayload !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
31980
|
-
/* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
|
|
31981
|
-
/* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
|
|
31982
|
-
] })
|
|
31983
|
-
] }),
|
|
31984
31955
|
/* @__PURE__ */ jsxs132(Stack4, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
|
|
31985
31956
|
/* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31986
31957
|
/* @__PURE__ */ jsx145(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
|
|
@@ -32020,9 +31991,40 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
32020
31991
|
rawDataSwitch,
|
|
32021
31992
|
/* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
32022
31993
|
] })),
|
|
32023
|
-
activeTab === "response" && /* @__PURE__ */ jsxs132(
|
|
32024
|
-
|
|
32025
|
-
|
|
31994
|
+
activeTab === "response" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
|
|
31995
|
+
showError && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, sx: ERROR_BOX_SX, children: [
|
|
31996
|
+
/* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
|
|
31997
|
+
/* @__PURE__ */ jsx145(Field, { label: "Type", children: errorType }),
|
|
31998
|
+
errorMessages.length > 0 && /* @__PURE__ */ jsx145(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|
|
31999
|
+
functionError && /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
32000
|
+
functionError.requestId !== void 0 && /* @__PURE__ */ jsx145(Field, { label: "Request ID", children: functionError.requestId }),
|
|
32001
|
+
/* @__PURE__ */ jsx145(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
|
|
32002
|
+
] })
|
|
32003
|
+
] }),
|
|
32004
|
+
functionError?.stackTrace !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
32005
|
+
/* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
32006
|
+
/* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
|
|
32007
|
+
/* @__PURE__ */ jsx145(CopyButton, { value: functionError.stackTrace })
|
|
32008
|
+
] }),
|
|
32009
|
+
/* @__PURE__ */ jsx145(
|
|
32010
|
+
Box18,
|
|
32011
|
+
{
|
|
32012
|
+
component: "pre",
|
|
32013
|
+
"data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
|
|
32014
|
+
sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
|
|
32015
|
+
children: functionError.stackTrace
|
|
32016
|
+
}
|
|
32017
|
+
)
|
|
32018
|
+
] }),
|
|
32019
|
+
exceptionPayload !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
32020
|
+
/* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
|
|
32021
|
+
/* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
|
|
32022
|
+
] })
|
|
32023
|
+
] }),
|
|
32024
|
+
(isResponseSuppressed || responsePayload !== void 0) && /* @__PURE__ */ jsxs132(Box18, { children: [
|
|
32025
|
+
rawDataSwitch,
|
|
32026
|
+
isResponseSuppressed ? /* @__PURE__ */ jsx145(Alert4, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
32027
|
+
] })
|
|
32026
32028
|
] }),
|
|
32027
32029
|
activeTab === "permissions" && /* @__PURE__ */ jsxs132(Fragment11, { children: [
|
|
32028
32030
|
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx145(Alert4, { "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" }),
|