@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 CHANGED
@@ -2472,6 +2472,7 @@ var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
2472
2472
  var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
2473
2473
  var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
2474
2474
  var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
2475
+ var EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID = "event-details-cfn-resource-type";
2475
2476
  var EVENT_DETAILS_ACCOUNT_TEST_ID = "event-details-account";
2476
2477
  var EVENT_DETAILS_REGION_TEST_ID = "event-details-region";
2477
2478
  var EVENT_DETAILS_START_TIME_TEST_ID = "event-details-start-time";
@@ -15357,34 +15358,20 @@ var StatusMessage = ({
15357
15358
  severity: "warning",
15358
15359
  sx: { maxWidth: 600, width: "100%" },
15359
15360
  children: [
15360
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector is Disabled" }),
15361
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.Typography, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not enabled in LocalStack. Enable it now or via configuration on startup." }),
15362
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.Typography, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("strong", { children: "App Inspector configuration:" }) }),
15363
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
15364
- import_material8.Box,
15365
- {
15366
- component: "pre",
15367
- sx: {
15368
- backgroundColor: "rgba(0, 0, 0, 0.05)",
15369
- borderRadius: 1,
15370
- fontSize: "0.875rem",
15371
- p: 1
15372
- },
15373
- children: "LOCALSTACK_APP_INSPECTOR=1 localstack start"
15374
- }
15375
- ),
15376
- /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_material8.Box, { sx: { display: "flex", gap: 1, mt: 2 }, children: [
15361
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Is Not Enabled" }),
15362
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.Typography, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not currently enabled in LocalStack. You can enable it now, or at startup." }),
15363
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_material8.Box, { sx: { display: "flex", gap: 1, mb: 2 }, children: [
15377
15364
  onEnable && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
15378
15365
  import_material8.Button,
15379
15366
  {
15380
- "aria-label": "Enable App Inspector",
15367
+ "aria-label": "Enable App Inspector Now",
15381
15368
  disabled: enabling,
15382
15369
  onClick: () => {
15383
15370
  void handleEnable();
15384
15371
  },
15385
15372
  startIcon: enabling ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.CircularProgress, { size: 16 }) : void 0,
15386
15373
  variant: "contained",
15387
- children: "Enable App Inspector"
15374
+ children: "Enable App Inspector Now"
15388
15375
  }
15389
15376
  ),
15390
15377
  onRetry && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
@@ -15398,6 +15385,20 @@ var StatusMessage = ({
15398
15385
  }
15399
15386
  )
15400
15387
  ] }),
15388
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.Typography, { sx: { mb: 1 }, variant: "body2", children: "If you'd prefer to automatically enable App Inspector at start up, use:" }),
15389
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
15390
+ import_material8.Box,
15391
+ {
15392
+ component: "pre",
15393
+ sx: {
15394
+ backgroundColor: "rgba(0, 0, 0, 0.05)",
15395
+ borderRadius: 1,
15396
+ fontSize: "0.875rem",
15397
+ p: 1
15398
+ },
15399
+ children: "LOCALSTACK_APP_INSPECTOR=1 localstack start"
15400
+ }
15401
+ ),
15401
15402
  Boolean(enableError) && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.Typography, { color: "error", sx: { mt: 1 }, variant: "body2", children: enableError })
15402
15403
  ]
15403
15404
  }
@@ -30421,6 +30422,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
30421
30422
  const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
30422
30423
  const requestId = typeof selectedEvent.attributes?.["localstack.request_id"] === "string" ? selectedEvent.attributes["localstack.request_id"] : void 0;
30423
30424
  const resourceArn = typeof selectedEvent.attributes?.["localstack.aws.resource_arn"] === "string" ? selectedEvent.attributes["localstack.aws.resource_arn"] : void 0;
30425
+ const cfnResourceType = typeof selectedEvent.attributes?.["localstack.cfn.resource_type"] === "string" ? selectedEvent.attributes["localstack.cfn.resource_type"] : void 0;
30424
30426
  const requestPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.request"]);
30425
30427
  if (parseNestedJson) {
30426
30428
  if (isLambdaInvoke && requestPayload && typeof requestPayload === "object" && "Payload" in requestPayload) {
@@ -30468,9 +30470,15 @@ var EventDetails = ({ onClose, selectedEvent }) => {
30468
30470
  /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_OPERATION_NAME_TEST_ID, variant: "body2", children: selectedEvent.operation_name })
30469
30471
  ] })
30470
30472
  ] }),
30471
- /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
30472
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource" }),
30473
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_RESOURCE_NAME_TEST_ID, variant: "body2", children: selectedEvent.resource_name })
30473
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
30474
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
30475
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource" }),
30476
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_RESOURCE_NAME_TEST_ID, variant: "body2", children: selectedEvent.resource_name })
30477
+ ] }),
30478
+ Boolean(cfnResourceType) && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
30479
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource Type" }),
30480
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, variant: "body2", children: cfnResourceType })
30481
+ ] })
30474
30482
  ] }),
30475
30483
  Boolean(resourceArn) && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
30476
30484
  /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Resource ARN" }),