@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.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7157,12 +7157,12 @@ var isColorString = (type, testProp) => (v) => {
|
|
|
7157
7157
|
var splitColor = (aName, bName, cName) => (v) => {
|
|
7158
7158
|
if (!isString(v))
|
|
7159
7159
|
return v;
|
|
7160
|
-
const [a3, b3, c3,
|
|
7160
|
+
const [a3, b3, c3, alpha8] = v.match(floatRegex);
|
|
7161
7161
|
return {
|
|
7162
7162
|
[aName]: parseFloat(a3),
|
|
7163
7163
|
[bName]: parseFloat(b3),
|
|
7164
7164
|
[cName]: parseFloat(c3),
|
|
7165
|
-
alpha:
|
|
7165
|
+
alpha: alpha8 !== void 0 ? parseFloat(alpha8) : 1
|
|
7166
7166
|
};
|
|
7167
7167
|
};
|
|
7168
7168
|
|
|
@@ -8276,7 +8276,7 @@ function hueToRgb(p, q, t) {
|
|
|
8276
8276
|
return p + (q - p) * (2 / 3 - t) * 6;
|
|
8277
8277
|
return p;
|
|
8278
8278
|
}
|
|
8279
|
-
function hslaToRgba({ hue, saturation, lightness, alpha:
|
|
8279
|
+
function hslaToRgba({ hue, saturation, lightness, alpha: alpha8 }) {
|
|
8280
8280
|
hue /= 360;
|
|
8281
8281
|
saturation /= 100;
|
|
8282
8282
|
lightness /= 100;
|
|
@@ -8296,7 +8296,7 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
|
|
|
8296
8296
|
red: Math.round(red * 255),
|
|
8297
8297
|
green: Math.round(green * 255),
|
|
8298
8298
|
blue: Math.round(blue * 255),
|
|
8299
|
-
alpha:
|
|
8299
|
+
alpha: alpha8
|
|
8300
8300
|
};
|
|
8301
8301
|
}
|
|
8302
8302
|
|
|
@@ -31741,6 +31741,7 @@ var checkIsSqsSendMessage = (span) => {
|
|
|
31741
31741
|
};
|
|
31742
31742
|
var PERMISSION_SEVERITY = ["explicitly_denied", "implicitly_denied", "explicitly_allowed"];
|
|
31743
31743
|
var getWorstPermission = (events) => PERMISSION_SEVERITY.find((permission) => events.some((event) => event.permission === permission));
|
|
31744
|
+
var ERROR_BOX_SX = { bgcolor: (theme) => (0, import_material21.alpha)(theme.palette.error.main, 0.08), borderLeft: 4, borderLeftColor: "error.main", borderRadius: 1, p: 1.5 };
|
|
31744
31745
|
var TRAILING_ROW = { "bottom-right": "resource", "resource-line": "title", "title-row": "title", "top-right": "label" };
|
|
31745
31746
|
var IAM_OUTCOME = { allowed: "allowed", error: "denied", none: void 0, warning: "warning" };
|
|
31746
31747
|
var OPTIONAL_TABS = ["logs", "permissions", "response"];
|
|
@@ -31890,7 +31891,7 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
|
|
|
31890
31891
|
),
|
|
31891
31892
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { sx: { p: 2 }, children: [
|
|
31892
31893
|
activeTab === "details" && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, children: [
|
|
31893
|
-
showError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, children: [
|
|
31894
|
+
showError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, sx: ERROR_BOX_SX, children: [
|
|
31894
31895
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 1, children: [
|
|
31895
31896
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Type", children: errorType }),
|
|
31896
31897
|
errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|