@localstack/appinspector-ui 1.0.216 → 1.0.217

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
@@ -7170,12 +7170,12 @@ var isColorString = (type, testProp) => (v) => {
7170
7170
  var splitColor = (aName, bName, cName) => (v) => {
7171
7171
  if (!isString(v))
7172
7172
  return v;
7173
- const [a3, b3, c3, alpha7] = v.match(floatRegex);
7173
+ const [a3, b3, c3, alpha8] = v.match(floatRegex);
7174
7174
  return {
7175
7175
  [aName]: parseFloat(a3),
7176
7176
  [bName]: parseFloat(b3),
7177
7177
  [cName]: parseFloat(c3),
7178
- alpha: alpha7 !== void 0 ? parseFloat(alpha7) : 1
7178
+ alpha: alpha8 !== void 0 ? parseFloat(alpha8) : 1
7179
7179
  };
7180
7180
  };
7181
7181
 
@@ -8289,7 +8289,7 @@ function hueToRgb(p, q, t) {
8289
8289
  return p + (q - p) * (2 / 3 - t) * 6;
8290
8290
  return p;
8291
8291
  }
8292
- function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
8292
+ function hslaToRgba({ hue, saturation, lightness, alpha: alpha8 }) {
8293
8293
  hue /= 360;
8294
8294
  saturation /= 100;
8295
8295
  lightness /= 100;
@@ -8309,7 +8309,7 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
8309
8309
  red: Math.round(red * 255),
8310
8310
  green: Math.round(green * 255),
8311
8311
  blue: Math.round(blue * 255),
8312
- alpha: alpha7
8312
+ alpha: alpha8
8313
8313
  };
8314
8314
  }
8315
8315
 
@@ -16984,7 +16984,7 @@ import * as React125 from "react";
16984
16984
 
16985
16985
  // src/components/event-details/event-details.tsx
16986
16986
  import { Cancel as Cancel5, Close as Close3, GppBad as GppBad2, GppMaybe as GppMaybe6 } from "@mui/icons-material";
16987
- import { Alert as Alert4, Box as Box18, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography13 } from "@mui/material";
16987
+ import { Alert as Alert4, alpha as alpha6, Box as Box18, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography13 } from "@mui/material";
16988
16988
  import { useEffect as useEffect17, useMemo as useMemo10, useRef as useRef13, useState as useState14 } from "react";
16989
16989
 
16990
16990
  // src/dev-settings.tsx
@@ -31767,6 +31767,7 @@ var checkIsSqsSendMessage = (span) => {
31767
31767
  };
31768
31768
  var PERMISSION_SEVERITY = ["explicitly_denied", "implicitly_denied", "explicitly_allowed"];
31769
31769
  var getWorstPermission = (events) => PERMISSION_SEVERITY.find((permission) => events.some((event) => event.permission === permission));
31770
+ var ERROR_BOX_SX = { bgcolor: (theme) => alpha6(theme.palette.error.main, 0.08), borderLeft: 4, borderLeftColor: "error.main", borderRadius: 1, p: 1.5 };
31770
31771
  var TRAILING_ROW = { "bottom-right": "resource", "resource-line": "title", "title-row": "title", "top-right": "label" };
31771
31772
  var IAM_OUTCOME = { allowed: "allowed", error: "denied", none: void 0, warning: "warning" };
31772
31773
  var OPTIONAL_TABS = ["logs", "permissions", "response"];
@@ -31916,7 +31917,7 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31916
31917
  ),
31917
31918
  /* @__PURE__ */ jsxs132(Box18, { sx: { p: 2 }, children: [
31918
31919
  activeTab === "details" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31919
- showError && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31920
+ showError && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, sx: ERROR_BOX_SX, children: [
31920
31921
  /* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
31921
31922
  /* @__PURE__ */ jsx145(Field, { label: "Type", children: errorType }),
31922
31923
  errorMessages.length > 0 && /* @__PURE__ */ jsx145(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
@@ -32583,7 +32584,7 @@ function useLocalStorage(key, initialValue) {
32583
32584
  // src/components/trace-panel/waterfall.tsx
32584
32585
  import { AccountTreeOutlined, Cancel as Cancel7, FormatListBulleted, GppMaybe as GppMaybe8, KeyboardArrowDown as KeyboardArrowDown2, KeyboardArrowRight as KeyboardArrowRight2 } from "@mui/icons-material";
32585
32586
  import { Box as Box21, ButtonBase, ToggleButton as ToggleButton2, ToggleButtonGroup as ToggleButtonGroup2, Typography as Typography14 } from "@mui/material";
32586
- import { alpha as alpha6 } from "@mui/material/styles";
32587
+ import { alpha as alpha7 } from "@mui/material/styles";
32587
32588
  import * as React124 from "react";
32588
32589
 
32589
32590
  // src/components/trace-panel/axis-ticks.ts
@@ -32841,12 +32842,12 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32841
32842
  "&:focus-visible": { boxShadow: `inset 0 0 0 2px ${theme.palette.primary.main}` },
32842
32843
  // Tints over the paper, all in one opaque background: the duration label repeats it
32843
32844
  // to cover the lead line behind it, which a translucent tint would let through.
32844
- "&:hover": { "--row-tint": selected ? alpha6(theme.palette.primary.main, 0.16) : alpha6(theme.palette.text.primary, 0.04) },
32845
+ "&:hover": { "--row-tint": selected ? alpha7(theme.palette.primary.main, 0.16) : alpha7(theme.palette.text.primary, 0.04) },
32845
32846
  // Only the content fades for a row the filters don't match: its background (selection, hover)
32846
32847
  // keeps its contrast.
32847
32848
  "& > *": { opacity: spanMatches && !spanMatches(span.span_id) ? 0.4 : 1 },
32848
32849
  "--row-bg": `linear-gradient(var(--row-tint), var(--row-tint)), ${theme.palette.background.paper}`,
32849
- "--row-tint": selected ? alpha6(theme.palette.primary.main, 0.12) : "transparent",
32850
+ "--row-tint": selected ? alpha7(theme.palette.primary.main, 0.12) : "transparent",
32850
32851
  "background": "var(--row-bg)",
32851
32852
  "cursor": "pointer",
32852
32853
  "display": "grid",
@@ -32895,7 +32896,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32895
32896
  sx: (theme) => ({
32896
32897
  // A tint of the text colour: the theme's hover and selected shades match the
32897
32898
  // row's own hover, so they wouldn't show on a hovered row.
32898
- "&:hover": { backgroundColor: alpha6(theme.palette.text.primary, 0.12), color: "text.primary" },
32899
+ "&:hover": { backgroundColor: alpha7(theme.palette.text.primary, 0.12), color: "text.primary" },
32899
32900
  "borderRadius": "3px",
32900
32901
  "color": "text.secondary",
32901
32902
  "flex": "none",
@@ -32914,7 +32915,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32914
32915
  Box21,
32915
32916
  {
32916
32917
  sx: (theme) => ({
32917
- background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${alpha6(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
32918
+ background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${alpha7(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
32918
32919
  borderRadius: "1px",
32919
32920
  height: 10,
32920
32921
  left: `${String(startPercent)}%`,