@localstack/appinspector-ui 1.0.99 → 1.0.101
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 +30 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2468,6 +2468,7 @@ var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
|
|
|
2468
2468
|
var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
|
|
2469
2469
|
var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
|
|
2470
2470
|
var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
|
|
2471
|
+
var EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID = "event-details-cfn-resource-type";
|
|
2471
2472
|
var EVENT_DETAILS_ACCOUNT_TEST_ID = "event-details-account";
|
|
2472
2473
|
var EVENT_DETAILS_REGION_TEST_ID = "event-details-region";
|
|
2473
2474
|
var EVENT_DETAILS_START_TIME_TEST_ID = "event-details-start-time";
|
|
@@ -15370,34 +15371,20 @@ var StatusMessage = ({
|
|
|
15370
15371
|
severity: "warning",
|
|
15371
15372
|
sx: { maxWidth: 600, width: "100%" },
|
|
15372
15373
|
children: [
|
|
15373
|
-
/* @__PURE__ */ jsx129(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector
|
|
15374
|
-
/* @__PURE__ */ jsx129(Typography4, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not enabled in LocalStack.
|
|
15375
|
-
/* @__PURE__ */
|
|
15376
|
-
/* @__PURE__ */ jsx129(
|
|
15377
|
-
Box6,
|
|
15378
|
-
{
|
|
15379
|
-
component: "pre",
|
|
15380
|
-
sx: {
|
|
15381
|
-
backgroundColor: "rgba(0, 0, 0, 0.05)",
|
|
15382
|
-
borderRadius: 1,
|
|
15383
|
-
fontSize: "0.875rem",
|
|
15384
|
-
p: 1
|
|
15385
|
-
},
|
|
15386
|
-
children: "LOCALSTACK_APP_INSPECTOR=1 localstack start"
|
|
15387
|
-
}
|
|
15388
|
-
),
|
|
15389
|
-
/* @__PURE__ */ jsxs123(Box6, { sx: { display: "flex", gap: 1, mt: 2 }, children: [
|
|
15374
|
+
/* @__PURE__ */ jsx129(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Is Not Enabled" }),
|
|
15375
|
+
/* @__PURE__ */ jsx129(Typography4, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not currently enabled in LocalStack. You can enable it now, or at startup." }),
|
|
15376
|
+
/* @__PURE__ */ jsxs123(Box6, { sx: { display: "flex", gap: 1, mb: 2 }, children: [
|
|
15390
15377
|
onEnable && /* @__PURE__ */ jsx129(
|
|
15391
15378
|
Button4,
|
|
15392
15379
|
{
|
|
15393
|
-
"aria-label": "Enable App Inspector",
|
|
15380
|
+
"aria-label": "Enable App Inspector Now",
|
|
15394
15381
|
disabled: enabling,
|
|
15395
15382
|
onClick: () => {
|
|
15396
15383
|
void handleEnable();
|
|
15397
15384
|
},
|
|
15398
15385
|
startIcon: enabling ? /* @__PURE__ */ jsx129(CircularProgress2, { size: 16 }) : void 0,
|
|
15399
15386
|
variant: "contained",
|
|
15400
|
-
children: "Enable App Inspector"
|
|
15387
|
+
children: "Enable App Inspector Now"
|
|
15401
15388
|
}
|
|
15402
15389
|
),
|
|
15403
15390
|
onRetry && /* @__PURE__ */ jsx129(
|
|
@@ -15411,6 +15398,20 @@ var StatusMessage = ({
|
|
|
15411
15398
|
}
|
|
15412
15399
|
)
|
|
15413
15400
|
] }),
|
|
15401
|
+
/* @__PURE__ */ jsx129(Typography4, { sx: { mb: 1 }, variant: "body2", children: "If you'd prefer to automatically enable App Inspector at start up, use:" }),
|
|
15402
|
+
/* @__PURE__ */ jsx129(
|
|
15403
|
+
Box6,
|
|
15404
|
+
{
|
|
15405
|
+
component: "pre",
|
|
15406
|
+
sx: {
|
|
15407
|
+
backgroundColor: "rgba(0, 0, 0, 0.05)",
|
|
15408
|
+
borderRadius: 1,
|
|
15409
|
+
fontSize: "0.875rem",
|
|
15410
|
+
p: 1
|
|
15411
|
+
},
|
|
15412
|
+
children: "LOCALSTACK_APP_INSPECTOR=1 localstack start"
|
|
15413
|
+
}
|
|
15414
|
+
),
|
|
15414
15415
|
Boolean(enableError) && /* @__PURE__ */ jsx129(Typography4, { color: "error", sx: { mt: 1 }, variant: "body2", children: enableError })
|
|
15415
15416
|
]
|
|
15416
15417
|
}
|
|
@@ -30434,6 +30435,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
30434
30435
|
const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
|
|
30435
30436
|
const requestId = typeof selectedEvent.attributes?.["localstack.request_id"] === "string" ? selectedEvent.attributes["localstack.request_id"] : void 0;
|
|
30436
30437
|
const resourceArn = typeof selectedEvent.attributes?.["localstack.aws.resource_arn"] === "string" ? selectedEvent.attributes["localstack.aws.resource_arn"] : void 0;
|
|
30438
|
+
const cfnResourceType = typeof selectedEvent.attributes?.["localstack.cfn.resource_type"] === "string" ? selectedEvent.attributes["localstack.cfn.resource_type"] : void 0;
|
|
30437
30439
|
const requestPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.request"]);
|
|
30438
30440
|
if (parseNestedJson) {
|
|
30439
30441
|
if (isLambdaInvoke && requestPayload && typeof requestPayload === "object" && "Payload" in requestPayload) {
|
|
@@ -30481,9 +30483,15 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
30481
30483
|
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_OPERATION_NAME_TEST_ID, variant: "body2", children: selectedEvent.operation_name })
|
|
30482
30484
|
] })
|
|
30483
30485
|
] }),
|
|
30484
|
-
/* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30485
|
-
/* @__PURE__ */
|
|
30486
|
-
|
|
30486
|
+
/* @__PURE__ */ jsxs130(Box15, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
|
|
30487
|
+
/* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30488
|
+
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource" }),
|
|
30489
|
+
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_RESOURCE_NAME_TEST_ID, variant: "body2", children: selectedEvent.resource_name })
|
|
30490
|
+
] }),
|
|
30491
|
+
Boolean(cfnResourceType) && /* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30492
|
+
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource Type" }),
|
|
30493
|
+
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, variant: "body2", children: cfnResourceType })
|
|
30494
|
+
] })
|
|
30487
30495
|
] }),
|
|
30488
30496
|
Boolean(resourceArn) && /* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30489
30497
|
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource ARN" }),
|