@localstack/appinspector-ui 1.0.136 → 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 +8 -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 +8 -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
|
};
|
|
@@ -31951,7 +31952,6 @@ var TraceGraph = ({
|
|
|
31951
31952
|
|
|
31952
31953
|
// src/pages/trace-graph-page.tsx
|
|
31953
31954
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
31954
|
-
var HEADER_HEIGHT = 56;
|
|
31955
31955
|
var DRAWER_WIDTH = "35%";
|
|
31956
31956
|
var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) => property !== "open" })(({ open, theme }) => ({
|
|
31957
31957
|
flexGrow: 1,
|
|
@@ -31968,11 +31968,11 @@ var Main = (0, import_styles.styled)("main", { shouldForwardProp: (property) =>
|
|
|
31968
31968
|
})
|
|
31969
31969
|
}
|
|
31970
31970
|
}));
|
|
31971
|
-
var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(() => ({
|
|
31971
|
+
var StyledDrawer = (0, import_styles.styled)(import_material23.Drawer)(({ headerHeight }) => ({
|
|
31972
31972
|
"& .MuiDrawer-paper": {
|
|
31973
31973
|
bottom: 0,
|
|
31974
31974
|
boxSizing: "border-box",
|
|
31975
|
-
height: `calc(100% - ${
|
|
31975
|
+
height: `calc(100% - ${headerHeight.toString()}px)`,
|
|
31976
31976
|
overflowY: "auto",
|
|
31977
31977
|
top: "auto",
|
|
31978
31978
|
width: DRAWER_WIDTH
|
|
@@ -31986,6 +31986,7 @@ var TraceGraphView = ({
|
|
|
31986
31986
|
fetchSpans,
|
|
31987
31987
|
handleClose,
|
|
31988
31988
|
handleEventSelect,
|
|
31989
|
+
headerHeight,
|
|
31989
31990
|
loading,
|
|
31990
31991
|
navigateToSpansList,
|
|
31991
31992
|
open,
|
|
@@ -32047,7 +32048,7 @@ var TraceGraphView = ({
|
|
|
32047
32048
|
) })
|
|
32048
32049
|
}
|
|
32049
32050
|
) }),
|
|
32050
|
-
/* @__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 }) })
|
|
32051
32052
|
]
|
|
32052
32053
|
}
|
|
32053
32054
|
)
|
|
@@ -32090,6 +32091,7 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
|
|
|
32090
32091
|
}
|
|
32091
32092
|
var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
32092
32093
|
const api = useAppInspectorApi();
|
|
32094
|
+
const { headerHeight } = useAppInspector();
|
|
32093
32095
|
const [spans, setSpans] = (0, import_react63.useState)();
|
|
32094
32096
|
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
32095
32097
|
const [fetchError, setFetchError] = (0, import_react63.useState)();
|
|
@@ -32135,6 +32137,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
32135
32137
|
setOpen(false);
|
|
32136
32138
|
},
|
|
32137
32139
|
handleEventSelect,
|
|
32140
|
+
headerHeight,
|
|
32138
32141
|
loading,
|
|
32139
32142
|
navigateToSpansList,
|
|
32140
32143
|
open,
|