@localstack/appinspector-ui 1.0.120 → 1.0.122
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.js
CHANGED
|
@@ -15597,8 +15597,8 @@ var StatusMessage = ({
|
|
|
15597
15597
|
setEnabling(false);
|
|
15598
15598
|
}
|
|
15599
15599
|
};
|
|
15600
|
-
|
|
15601
|
-
|
|
15600
|
+
const isBelowMinimum = localstackVersion !== void 0 && checkEmulatorVersion(localstackVersion) === "below-minimum";
|
|
15601
|
+
if (isBelowMinimum || error instanceof AppInspectorNotFoundError) {
|
|
15602
15602
|
return /* @__PURE__ */ jsx130(
|
|
15603
15603
|
Box7,
|
|
15604
15604
|
{
|
|
@@ -15618,7 +15618,7 @@ var StatusMessage = ({
|
|
|
15618
15618
|
sx: { maxWidth: 600, width: "100%" },
|
|
15619
15619
|
children: [
|
|
15620
15620
|
/* @__PURE__ */ jsx130(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Not Available" }),
|
|
15621
|
-
/* @__PURE__ */ jsx130(Typography5, { sx: { mb: 2 }, variant: "body2", children: isBelowMinimum ? `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. You are running version ${localstackVersion}. Please update LocalStack.` :
|
|
15621
|
+
/* @__PURE__ */ jsx130(Typography5, { 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.` }),
|
|
15622
15622
|
/* @__PURE__ */ jsx130(Typography5, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ jsx130("strong", { children: "Update LocalStack:" }) }),
|
|
15623
15623
|
/* @__PURE__ */ jsx130(
|
|
15624
15624
|
Box7,
|
|
@@ -31541,6 +31541,27 @@ var SpansListPage = () => {
|
|
|
31541
31541
|
};
|
|
31542
31542
|
}, [fetchingForward, fetchForward]);
|
|
31543
31543
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31544
|
+
if (versionCompatibility === "below-minimum") {
|
|
31545
|
+
return /* @__PURE__ */ jsx146(
|
|
31546
|
+
StatusMessage,
|
|
31547
|
+
{
|
|
31548
|
+
localstackVersion,
|
|
31549
|
+
onRetry: handleRetry
|
|
31550
|
+
}
|
|
31551
|
+
);
|
|
31552
|
+
}
|
|
31553
|
+
if (shouldShowStatusMessage) {
|
|
31554
|
+
return /* @__PURE__ */ jsx146(
|
|
31555
|
+
StatusMessage,
|
|
31556
|
+
{
|
|
31557
|
+
error: statusError,
|
|
31558
|
+
localstackVersion,
|
|
31559
|
+
onEnable: handleEnable,
|
|
31560
|
+
onRetry: handleRetry,
|
|
31561
|
+
status
|
|
31562
|
+
}
|
|
31563
|
+
);
|
|
31564
|
+
}
|
|
31544
31565
|
return /* @__PURE__ */ jsxs136(Fragment14, { children: [
|
|
31545
31566
|
/* @__PURE__ */ jsxs136(
|
|
31546
31567
|
Box20,
|
|
@@ -31558,7 +31579,7 @@ var SpansListPage = () => {
|
|
|
31558
31579
|
width: "100%"
|
|
31559
31580
|
},
|
|
31560
31581
|
children: [
|
|
31561
|
-
!checking &&
|
|
31582
|
+
!checking && /* @__PURE__ */ jsx146(
|
|
31562
31583
|
EmulatorVersionBanner,
|
|
31563
31584
|
{
|
|
31564
31585
|
compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
|
|
@@ -31568,16 +31589,7 @@ var SpansListPage = () => {
|
|
|
31568
31589
|
} : void 0
|
|
31569
31590
|
}
|
|
31570
31591
|
),
|
|
31571
|
-
|
|
31572
|
-
StatusMessage,
|
|
31573
|
-
{
|
|
31574
|
-
error: statusError,
|
|
31575
|
-
localstackVersion,
|
|
31576
|
-
onEnable: handleEnable,
|
|
31577
|
-
onRetry: handleRetry,
|
|
31578
|
-
status
|
|
31579
|
-
}
|
|
31580
|
-
) : /* @__PURE__ */ jsx146(
|
|
31592
|
+
/* @__PURE__ */ jsx146(
|
|
31581
31593
|
SpansList,
|
|
31582
31594
|
{
|
|
31583
31595
|
clearingSpans,
|