@localstack/appinspector-ui 1.0.136 → 1.0.138
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 +12 -8
- 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 +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -21,6 +21,10 @@ interface AppInspectorContextProviderProps {
|
|
|
21
21
|
* when omitted. VS Code consumers pass `{ source: 'vscode', ideVersion, extensionVersion }`.
|
|
22
22
|
*/
|
|
23
23
|
deploymentContainer?: DeploymentContainer;
|
|
24
|
+
/**
|
|
25
|
+
* Height of the host application's header in pixels. Defaults to 0.
|
|
26
|
+
*/
|
|
27
|
+
headerHeight?: number;
|
|
24
28
|
/**
|
|
25
29
|
* A component that renders a link.
|
|
26
30
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ interface AppInspectorContextProviderProps {
|
|
|
21
21
|
* when omitted. VS Code consumers pass `{ source: 'vscode', ideVersion, extensionVersion }`.
|
|
22
22
|
*/
|
|
23
23
|
deploymentContainer?: DeploymentContainer;
|
|
24
|
+
/**
|
|
25
|
+
* Height of the host application's header in pixels. Defaults to 0.
|
|
26
|
+
*/
|
|
27
|
+
headerHeight?: number;
|
|
24
28
|
/**
|
|
25
29
|
* A component that renders a link.
|
|
26
30
|
*/
|
package/dist/index.js
CHANGED
|
@@ -15779,7 +15779,7 @@ var SpansDataGrid = ({
|
|
|
15779
15779
|
Box5,
|
|
15780
15780
|
{
|
|
15781
15781
|
"data-testid": ERROR_COUNT_TEST_ID,
|
|
15782
|
-
sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "
|
|
15782
|
+
sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "help", display: "flex", gap: 0.5, mb: "-1px" },
|
|
15783
15783
|
children: [
|
|
15784
15784
|
/* @__PURE__ */ jsx127(Typography4, { color: "error", variant: "body2", children: errorCount.toLocaleString() }),
|
|
15785
15785
|
/* @__PURE__ */ jsx127(Typography4, { color: "error", variant: "caption", children: errorCount === 1 ? "error" : "errors" })
|
|
@@ -15793,7 +15793,7 @@ var SpansDataGrid = ({
|
|
|
15793
15793
|
Box5,
|
|
15794
15794
|
{
|
|
15795
15795
|
"data-testid": WARNING_COUNT_TEST_ID,
|
|
15796
|
-
sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "warning.main", cursor: "
|
|
15796
|
+
sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "warning.main", cursor: "help", display: "flex", gap: 0.5, mb: "-1px" },
|
|
15797
15797
|
children: [
|
|
15798
15798
|
/* @__PURE__ */ jsx127(Typography4, { color: "warning.main", variant: "body2", children: warningCount.toLocaleString() }),
|
|
15799
15799
|
/* @__PURE__ */ jsx127(Typography4, { color: "warning.main", variant: "caption", children: warningCount === 1 ? "warning" : "warnings" })
|
|
@@ -15815,7 +15815,8 @@ var SpansDataGrid = ({
|
|
|
15815
15815
|
}
|
|
15816
15816
|
),
|
|
15817
15817
|
disabled: clearingSpans,
|
|
15818
|
-
label: ""
|
|
15818
|
+
label: "",
|
|
15819
|
+
sx: { marginRight: 0 }
|
|
15819
15820
|
}
|
|
15820
15821
|
)
|
|
15821
15822
|
] }) }),
|
|
@@ -18694,11 +18695,12 @@ var AppInspectorContextProvider = (props) => {
|
|
|
18694
18695
|
const contextValue = useMemo5(
|
|
18695
18696
|
() => ({
|
|
18696
18697
|
deploymentContainer,
|
|
18698
|
+
headerHeight: props.headerHeight ?? 0,
|
|
18697
18699
|
linkComponent: props.linkComponent,
|
|
18698
18700
|
localstackEndpoint: props.localstackEndpoint,
|
|
18699
18701
|
resolveLink
|
|
18700
18702
|
}),
|
|
18701
|
-
[deploymentContainer, props.linkComponent, props.localstackEndpoint, resolveLink]
|
|
18703
|
+
[deploymentContainer, props.headerHeight, props.linkComponent, props.localstackEndpoint, resolveLink]
|
|
18702
18704
|
);
|
|
18703
18705
|
return /* @__PURE__ */ jsx131(ApiProvider, { api, children: /* @__PURE__ */ jsx131(StatusProvider, { children: /* @__PURE__ */ jsx131(AppInspectorContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx131(AppInspectorAnalyticsBoundary, { children: props.children }) }) }) });
|
|
18704
18706
|
};
|
|
@@ -31964,7 +31966,6 @@ var TraceGraph = ({
|
|
|
31964
31966
|
|
|
31965
31967
|
// src/pages/trace-graph-page.tsx
|
|
31966
31968
|
import { jsx as jsx145, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
31967
|
-
var HEADER_HEIGHT = 56;
|
|
31968
31969
|
var DRAWER_WIDTH = "35%";
|
|
31969
31970
|
var Main = styled("main", { shouldForwardProp: (property) => property !== "open" })(({ open, theme }) => ({
|
|
31970
31971
|
flexGrow: 1,
|
|
@@ -31981,11 +31982,11 @@ var Main = styled("main", { shouldForwardProp: (property) => property !== "open"
|
|
|
31981
31982
|
})
|
|
31982
31983
|
}
|
|
31983
31984
|
}));
|
|
31984
|
-
var StyledDrawer = styled(Drawer)(() => ({
|
|
31985
|
+
var StyledDrawer = styled(Drawer)(({ headerHeight }) => ({
|
|
31985
31986
|
"& .MuiDrawer-paper": {
|
|
31986
31987
|
bottom: 0,
|
|
31987
31988
|
boxSizing: "border-box",
|
|
31988
|
-
height: `calc(100% - ${
|
|
31989
|
+
height: `calc(100% - ${headerHeight.toString()}px)`,
|
|
31989
31990
|
overflowY: "auto",
|
|
31990
31991
|
top: "auto",
|
|
31991
31992
|
width: DRAWER_WIDTH
|
|
@@ -31999,6 +32000,7 @@ var TraceGraphView = ({
|
|
|
31999
32000
|
fetchSpans,
|
|
32000
32001
|
handleClose,
|
|
32001
32002
|
handleEventSelect,
|
|
32003
|
+
headerHeight,
|
|
32002
32004
|
loading,
|
|
32003
32005
|
navigateToSpansList,
|
|
32004
32006
|
open,
|
|
@@ -32060,7 +32062,7 @@ var TraceGraphView = ({
|
|
|
32060
32062
|
) })
|
|
32061
32063
|
}
|
|
32062
32064
|
) }),
|
|
32063
|
-
/* @__PURE__ */ jsx145(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ jsx145(EventDetails, { onClose: handleClose, selectedEvent }) })
|
|
32065
|
+
/* @__PURE__ */ jsx145(StyledDrawer, { anchor: "right", headerHeight, open, variant: "persistent", children: /* @__PURE__ */ jsx145(EventDetails, { onClose: handleClose, selectedEvent }) })
|
|
32064
32066
|
]
|
|
32065
32067
|
}
|
|
32066
32068
|
)
|
|
@@ -32103,6 +32105,7 @@ async function fetchConnectedTraces(api, traceIds, allSpans = /* @__PURE__ */ ne
|
|
|
32103
32105
|
}
|
|
32104
32106
|
var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
32105
32107
|
const api = useAppInspectorApi();
|
|
32108
|
+
const { headerHeight } = useAppInspector();
|
|
32106
32109
|
const [spans, setSpans] = useState17();
|
|
32107
32110
|
const [loading, setLoading] = useState17(false);
|
|
32108
32111
|
const [fetchError, setFetchError] = useState17();
|
|
@@ -32148,6 +32151,7 @@ var TraceGraphPage = ({ onClose, spanId, traceId }) => {
|
|
|
32148
32151
|
setOpen(false);
|
|
32149
32152
|
},
|
|
32150
32153
|
handleEventSelect,
|
|
32154
|
+
headerHeight,
|
|
32151
32155
|
loading,
|
|
32152
32156
|
navigateToSpansList,
|
|
32153
32157
|
open,
|