@localstack/appinspector-ui 1.0.135 → 1.0.137
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 +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18681,11 +18681,12 @@ var AppInspectorContextProvider = (props) => {
|
|
|
18681
18681
|
const contextValue = (0, import_react45.useMemo)(
|
|
18682
18682
|
() => ({
|
|
18683
18683
|
deploymentContainer,
|
|
18684
|
+
headerHeight: props.headerHeight ?? 0,
|
|
18684
18685
|
linkComponent: props.linkComponent,
|
|
18685
18686
|
localstackEndpoint: props.localstackEndpoint,
|
|
18686
18687
|
resolveLink
|
|
18687
18688
|
}),
|
|
18688
|
-
[deploymentContainer, props.linkComponent, props.localstackEndpoint, resolveLink]
|
|
18689
|
+
[deploymentContainer, props.headerHeight, props.linkComponent, props.localstackEndpoint, resolveLink]
|
|
18689
18690
|
);
|
|
18690
18691
|
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ApiProvider, { api, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(StatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(AppInspectorContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(AppInspectorAnalyticsBoundary, { children: props.children }) }) }) });
|
|
18691
18692
|
};
|
|
@@ -31304,6 +31305,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31304
31305
|
const responsePayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.response"]);
|
|
31305
31306
|
if (parseNestedJson && isLambdaInvoke && responsePayload && typeof responsePayload === "object" && "Payload" in responsePayload) {
|
|
31306
31307
|
responsePayload.Payload = tryParseJson(responsePayload.Payload);
|
|
31308
|
+
if (responsePayload.Payload && typeof responsePayload.Payload === "object" && "errorMessage" in responsePayload.Payload && typeof responsePayload.Payload.errorMessage === "string") {
|
|
31309
|
+
responsePayload.Payload.errorMessage = tryParseJson(responsePayload.Payload.errorMessage);
|
|
31310
|
+
}
|
|
31307
31311
|
}
|
|
31308
31312
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
31309
31313
|
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0 || isResponseSuppressed;
|
|
@@ -31948,7 +31952,6 @@ var TraceGraph = ({
|
|
|
31948
31952
|
|
|
31949
31953
|
// src/pages/trace-graph-page.tsx
|
|
31950
31954
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
31951
|
-
var HEADER_HEIGHT = 56;
|
|
31952
31955
|
var DRAWER_WIDTH = "35%";
|
|
31953
31956
|
var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) => property !== "open" })(({ open, theme }) => ({
|
|
31954
31957
|
flexGrow: 1,
|
|
@@ -31965,11 +31968,11 @@ var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) =>
|
|
|
31965
31968
|
})
|
|
31966
31969
|
}
|
|
31967
31970
|
}));
|
|
31968
|
-
var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(() => ({
|
|
31971
|
+
var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(({ headerHeight }) => ({
|
|
31969
31972
|
"& .MuiDrawer-paper": {
|
|
31970
31973
|
bottom: 0,
|
|
31971
31974
|
boxSizing: "border-box",
|
|
31972
|
-
height: `calc(100% - ${
|
|
31975
|
+
height: `calc(100% - ${headerHeight.toString()}px)`,
|
|
31973
31976
|
overflowY: "auto",
|
|
31974
31977
|
top: "auto",
|
|
31975
31978
|
width: DRAWER_WIDTH
|
|
@@ -31983,6 +31986,7 @@ var TraceGraphView = ({
|
|
|
31983
31986
|
fetchSpans,
|
|
31984
31987
|
handleClose,
|
|
31985
31988
|
handleEventSelect,
|
|
31989
|
+
headerHeight,
|
|
31986
31990
|
loading,
|
|
31987
31991
|
navigateToSpansList,
|
|
31988
31992
|
open,
|
|
@@ -32044,7 +32048,7 @@ var TraceGraphView = ({
|
|
|
32044
32048
|
) })
|
|
32045
32049
|
}
|
|
32046
32050
|
) }),
|
|
32047
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(EventDetails, { onClose: handleClose, selectedEvent }) })
|
|
32051
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(StyledDrawer, { anchor: "right", headerHeight, open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(EventDetails, { onClose: handleClose, selectedEvent }) })
|
|
32048
32052
|
]
|
|
32049
32053
|
}
|
|
32050
32054
|
)
|
|
@@ -32087,6 +32091,7 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
|
|
|
32087
32091
|
}
|
|
32088
32092
|
var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
32089
32093
|
const api = useAppInspectorApi();
|
|
32094
|
+
const { headerHeight } = useAppInspector();
|
|
32090
32095
|
const [spans, setSpans] = (0, import_react63.useState)();
|
|
32091
32096
|
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
32092
32097
|
const [fetchError, setFetchError] = (0, import_react63.useState)();
|
|
@@ -32132,6 +32137,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
32132
32137
|
setOpen(false);
|
|
32133
32138
|
},
|
|
32134
32139
|
handleEventSelect,
|
|
32140
|
+
headerHeight,
|
|
32135
32141
|
loading,
|
|
32136
32142
|
navigateToSpansList,
|
|
32137
32143
|
open,
|