@localstack/appinspector-ui 1.0.120 → 1.0.121
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 +26 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15584,8 +15584,8 @@ var StatusMessage = ({
|
|
|
15584
15584
|
setEnabling(false);
|
|
15585
15585
|
}
|
|
15586
15586
|
};
|
|
15587
|
-
|
|
15588
|
-
|
|
15587
|
+
const isBelowMinimum = localstackVersion !== void 0 && checkEmulatorVersion(localstackVersion) === "below-minimum";
|
|
15588
|
+
if (isBelowMinimum || error instanceof AppInspectorNotFoundError) {
|
|
15589
15589
|
return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
15590
15590
|
import_material9.Box,
|
|
15591
15591
|
{
|
|
@@ -15605,7 +15605,7 @@ var StatusMessage = ({
|
|
|
15605
15605
|
sx: { maxWidth: 600, width: "100%" },
|
|
15606
15606
|
children: [
|
|
15607
15607
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material9.AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Not Available" }),
|
|
15608
|
-
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material9.Typography, { sx: { mb: 2 }, variant: "body2", children: isBelowMinimum ? `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. You are running version ${localstackVersion}. Please update LocalStack.` :
|
|
15608
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material9.Typography, { sx: { mb: 2 }, variant: "body2", children: isBelowMinimum ? `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. You are running version ${localstackVersion}. Please update LocalStack.` : `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. Please update LocalStack.` }),
|
|
15609
15609
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material9.Typography, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("strong", { children: "Update LocalStack:" }) }),
|
|
15610
15610
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
15611
15611
|
import_material9.Box,
|
|
@@ -31528,6 +31528,27 @@ var SpansListPage = () => {
|
|
|
31528
31528
|
};
|
|
31529
31529
|
}, [fetchingForward, fetchForward]);
|
|
31530
31530
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31531
|
+
if (versionCompatibility === "below-minimum") {
|
|
31532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31533
|
+
StatusMessage,
|
|
31534
|
+
{
|
|
31535
|
+
localstackVersion,
|
|
31536
|
+
onRetry: handleRetry
|
|
31537
|
+
}
|
|
31538
|
+
);
|
|
31539
|
+
}
|
|
31540
|
+
if (shouldShowStatusMessage) {
|
|
31541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31542
|
+
StatusMessage,
|
|
31543
|
+
{
|
|
31544
|
+
error: statusError,
|
|
31545
|
+
localstackVersion,
|
|
31546
|
+
onEnable: handleEnable,
|
|
31547
|
+
onRetry: handleRetry,
|
|
31548
|
+
status
|
|
31549
|
+
}
|
|
31550
|
+
);
|
|
31551
|
+
}
|
|
31531
31552
|
return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
|
|
31532
31553
|
/* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
|
|
31533
31554
|
import_material23.Box,
|
|
@@ -31545,7 +31566,7 @@ var SpansListPage = () => {
|
|
|
31545
31566
|
width: "100%"
|
|
31546
31567
|
},
|
|
31547
31568
|
children: [
|
|
31548
|
-
!checking &&
|
|
31569
|
+
!checking && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31549
31570
|
EmulatorVersionBanner,
|
|
31550
31571
|
{
|
|
31551
31572
|
compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
|
|
@@ -31555,16 +31576,7 @@ var SpansListPage = () => {
|
|
|
31555
31576
|
} : void 0
|
|
31556
31577
|
}
|
|
31557
31578
|
),
|
|
31558
|
-
|
|
31559
|
-
StatusMessage,
|
|
31560
|
-
{
|
|
31561
|
-
error: statusError,
|
|
31562
|
-
localstackVersion,
|
|
31563
|
-
onEnable: handleEnable,
|
|
31564
|
-
onRetry: handleRetry,
|
|
31565
|
-
status
|
|
31566
|
-
}
|
|
31567
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31579
|
+
/* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
31568
31580
|
SpansList,
|
|
31569
31581
|
{
|
|
31570
31582
|
clearingSpans,
|