strapi-plugin-magic-sessionmanager 4.14.2 → 4.15.0

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +151 -79
  3. package/dist/admin/{Analytics-Box2STtg.js → Analytics-Dbs5QXLb.js} +1 -1
  4. package/dist/admin/{Analytics-DfDdcjMe.mjs → Analytics-HK6_TEmk.mjs} +1 -1
  5. package/dist/admin/{App-DzxXcTYs.js → App-7SxOBJP5.js} +63 -29
  6. package/dist/admin/{App-B2JIOiNM.mjs → App-BOFzZ5d8.mjs} +64 -30
  7. package/dist/admin/{OnlineUsersWidget-BOd7p_MF.mjs → OnlineUsersWidget-CoCxnww-.mjs} +1 -1
  8. package/dist/admin/{OnlineUsersWidget-D4M4D6rm.js → OnlineUsersWidget-Dns_74xJ.js} +1 -1
  9. package/dist/admin/{Settings-DNgH9qRy.js → Settings-B6CrR-07.js} +257 -64
  10. package/dist/admin/{Settings-BFdr77zD.mjs → Settings-DYRShQ8W.mjs} +258 -65
  11. package/dist/admin/{de-BlKn1pSD.mjs → de-B3mPtxsW.mjs} +39 -7
  12. package/dist/admin/{de-B0CBR1Dw.js → de-bkkCvSxX.js} +39 -7
  13. package/dist/admin/{en-IT0YTY8f.mjs → en-BnU8BNkN.mjs} +39 -7
  14. package/dist/admin/{en-D0ZGIIjz.js → en-DMICyIow.js} +39 -7
  15. package/dist/admin/{es-BCGzaaCh.mjs → es-BxMgfJ1Y.mjs} +39 -7
  16. package/dist/admin/{es-CWee-XCR.js → es-OSzHGRIu.js} +39 -7
  17. package/dist/admin/{fr-rQS1M7jE.js → fr-Bu_8miJ4.js} +39 -7
  18. package/dist/admin/{fr-xBIH4Byq.mjs → fr-WPrbtx8k.mjs} +39 -7
  19. package/dist/admin/{index-CmW1DJ0c.js → index-CNSJITRX.js} +9 -9
  20. package/dist/admin/{index-C2SrNW6I.mjs → index-lnZBc5n0.mjs} +9 -9
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/dist/admin/{pt-C-yTLhnS.js → pt-B08xnb0K.js} +39 -7
  24. package/dist/admin/{pt-DWDeIDVa.mjs → pt-C41KyEDN.mjs} +39 -7
  25. package/dist/admin/riskData-BVs9GpgD.js +26 -0
  26. package/dist/admin/riskData-CI1gm2yI.mjs +27 -0
  27. package/dist/server/index.js +565 -178
  28. package/dist/server/index.mjs +565 -178
  29. package/package.json +3 -3
  30. package/scripts/geoip-updater.cjs +58 -15
@@ -9,7 +9,8 @@ const designSystem = require("@strapi/design-system");
9
9
  const icons = require("@strapi/icons");
10
10
  const symbols = require("@strapi/icons/symbols");
11
11
  const styled = require("styled-components");
12
- const index = require("./index-CmW1DJ0c.js");
12
+ const index = require("./index-CNSJITRX.js");
13
+ const riskData = require("./riskData-BVs9GpgD.js");
13
14
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
14
15
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
15
16
  const EndReason = ({ session, reason, variant = "omega", textColor = "neutral800" }) => {
@@ -23,6 +24,7 @@ const EndReason = ({ session, reason, variant = "omega", textColor = "neutral800
23
24
  });
24
25
  return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant, textColor, "data-end-reason": presentation.reason, children: translate(presentation) });
25
26
  };
27
+ const RowActions = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", alignItems: "center", gap: 1, "data-row-actions": "", ...props, children });
26
28
  const MAX_EXPORT_ROWS = 5e4;
27
29
  const EXPORT_BATCH_SIZE = 1e3;
28
30
  const EMPTY_SESSION_STATS = Object.freeze({
@@ -304,16 +306,19 @@ function normalizeGeoData(geo, fallback = {}) {
304
306
  const city = index.presentText(geo.city);
305
307
  const timezone = index.presentText(geo.timezone);
306
308
  if (!country && !city && !timezone) return null;
309
+ const riskSource = riskData.isRiskSource(geo.riskSource) ? geo.riskSource : null;
307
310
  const rawScore = typeof geo.securityScore === "number" ? geo.securityScore : fallback?.securityScore;
308
- const securityScore = typeof rawScore === "number" && Number.isFinite(rawScore) ? rawScore : null;
311
+ const securityScore = riskSource && typeof rawScore === "number" && Number.isFinite(rawScore) ? rawScore : null;
309
312
  return {
310
313
  country,
311
314
  city,
312
315
  timezone,
316
+ riskSource,
313
317
  securityScore,
314
- riskLevel: normalizeRiskLevel(geo.riskLevel),
315
- isVpn: booleanOrNull(geo.isVpn),
316
- isProxy: booleanOrNull(geo.isProxy)
318
+ riskLevel: riskSource ? normalizeRiskLevel(geo.riskLevel) : "",
319
+ isVpn: riskSource === "anonymous-ip" ? booleanOrNull(geo.isVpn) : null,
320
+ isProxy: riskSource === "anonymous-ip" ? booleanOrNull(geo.isProxy) : null,
321
+ isHosting: riskSource ? booleanOrNull(geo.isHosting) : null
317
322
  };
318
323
  }
319
324
  function getStoredGeoData(session) {
@@ -331,6 +336,7 @@ function getStoredGeoData(session) {
331
336
  riskLevel: _ignoredLevel,
332
337
  isVpn: _ignoredVpn,
333
338
  isProxy: _ignoredProxy,
339
+ isHosting: _ignoredHosting,
334
340
  ...facts
335
341
  } = geoLocation;
336
342
  return normalizeGeoData(facts, { securityScore: session?.securityScore });
@@ -574,27 +580,42 @@ const SessionDetailModal = ({ session, now, onClose, onCloseAutoFocus, onEndSess
574
580
  };
575
581
  const yesNoText = (value) => typeof value === "boolean" ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral800", children: value ? t("common.yes", "Yes") : t("common.no", "No") }) : void 0;
576
582
  const notStoredForPast = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral600", children: t("modal.security.notStored", "Not stored for past sign-ins") });
577
- const score = typeof geo?.securityScore === "number" ? geo.securityScore : typeof session.securityScore === "number" && Number.isFinite(session.securityScore) ? session.securityScore : null;
578
- const riskMessage = liveGeo ? RISK_LEVEL_MESSAGES[liveGeo.riskLevel] : null;
583
+ const score = typeof geo?.securityScore === "number" ? geo.securityScore : null;
584
+ const riskUnavailable = Boolean(geo) && !geo.riskSource;
585
+ const riskMessage = liveGeo?.riskSource ? RISK_LEVEL_MESSAGES[liveGeo.riskLevel] : null;
586
+ const notAvailable = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral600", children: t("modal.security.riskUnavailable", "Not available") });
579
587
  const locationItems = [
580
588
  { id: "country", label: t("modal.security.country", "Country"), value: geo?.country },
581
589
  { id: "city", label: t("modal.security.city", "City"), value: geo?.city },
582
590
  { id: "timezone", label: t("modal.security.timezone", "Time zone"), value: geo?.timezone },
583
- {
584
- id: "score",
585
- label: t("modal.security.score", "Security score"),
586
- value: score === null ? null : t("modal.security.scoreValue", "{score}/100", { score })
587
- },
588
- {
589
- id: "vpn",
590
- label: t("modal.security.vpn", "VPN"),
591
- render: liveGeo ? yesNoText(liveGeo.isVpn) : storedGeo ? notStoredForPast : void 0
592
- },
593
- {
594
- id: "proxy",
595
- label: t("modal.security.proxy", "Proxy"),
596
- render: liveGeo ? yesNoText(liveGeo.isProxy) : storedGeo ? notStoredForPast : void 0
597
- },
591
+ ...riskUnavailable ? [
592
+ {
593
+ id: "riskData",
594
+ label: t("modal.security.riskData", "VPN, proxy and security score"),
595
+ render: notAvailable
596
+ }
597
+ ] : [
598
+ {
599
+ id: "score",
600
+ label: t("modal.security.score", "Security score"),
601
+ value: score === null ? null : t("modal.security.scoreValue", "{score}/100", { score })
602
+ },
603
+ {
604
+ id: "vpn",
605
+ label: t("modal.security.vpn", "VPN"),
606
+ render: liveGeo ? yesNoText(liveGeo.isVpn) ?? notAvailable : storedGeo ? notStoredForPast : void 0
607
+ },
608
+ {
609
+ id: "proxy",
610
+ label: t("modal.security.proxy", "Proxy"),
611
+ render: liveGeo ? yesNoText(liveGeo.isProxy) ?? notAvailable : storedGeo ? notStoredForPast : void 0
612
+ },
613
+ liveGeo ? {
614
+ id: "hosting",
615
+ label: t("modal.security.hosting", "Hosting network"),
616
+ render: yesNoText(liveGeo.isHosting)
617
+ } : null
618
+ ],
598
619
  riskMessage ? {
599
620
  id: "risk",
600
621
  label: t("modal.security.riskLevel", "Risk level"),
@@ -713,10 +734,23 @@ const SessionDetailModal = ({ session, now, onClose, onCloseAutoFocus, onEndSess
713
734
  ) }),
714
735
  /* @__PURE__ */ jsxRuntime.jsxs(DetailSection, { title: t("modal.section.security", "Location and security"), children: [
715
736
  hasLocationData ? /* @__PURE__ */ jsxRuntime.jsx(index.PropertyList, { items: locationItems }) : null,
716
- score !== null ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", "data-score-note": "", children: t(
717
- "modal.security.scoreNote",
718
- "Higher is safer. Below 70 can trigger a suspicious-sign-in email and below 50 a rejection, if those settings are on. Local database results are always 100."
719
- ) }) : null,
737
+ score !== null ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", "data-score-note": "", children: [
738
+ t(
739
+ "modal.security.scoreNote",
740
+ "Higher is safer. Below 70 can trigger a suspicious-sign-in email and below 50 a rejection, if those settings are on."
741
+ ),
742
+ geo?.riskSource === "asn-heuristic" ? ` ${t(
743
+ "modal.security.asnHeuristicNote",
744
+ "From the ASN heuristic: it only recognises large hosting and cloud networks, not VPNs, proxies or Tor."
745
+ )}` : null
746
+ ] }) : null,
747
+ riskUnavailable ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", gap: 1, "data-risk-unavailable": "", children: [
748
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: t(
749
+ "modal.security.riskUnavailableNote",
750
+ "Needs a risk data source. Location data alone cannot tell VPNs, proxies or Tor apart, so no score was calculated."
751
+ ) }),
752
+ /* @__PURE__ */ jsxRuntime.jsx(TargetLink, { tag: reactRouterDom.NavLink, to: riskData.RISK_SETTINGS_PATH, children: t("modal.security.riskSetup", "Set up risk data") })
753
+ ] }) : null,
720
754
  lookupControls
721
755
  ] }),
722
756
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Accordion.Root, { collapsible: true, size: "S", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Accordion.Item, { value: "technical", children: [
@@ -935,7 +969,7 @@ const SessionActions = ({
935
969
  );
936
970
  const endKey = `end-${session.id}-${canEnd ? "open" : "ended"}`;
937
971
  if (layout === "table") {
938
- return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.IconButtonGroup, { onKeyDown: isolateActionKeys, onClick: (event) => event.stopPropagation(), children: [
972
+ return /* @__PURE__ */ jsxRuntime.jsxs(RowActions, { onKeyDown: isolateActionKeys, onClick: (event) => event.stopPropagation(), children: [
939
973
  /* @__PURE__ */ jsxRuntime.jsx(
940
974
  designSystem.IconButton,
941
975
  {
@@ -2596,7 +2630,7 @@ const AdminTable = ({
2596
2630
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { style: SHRINKING_ROLES_CELL, children: /* @__PURE__ */ jsxRuntime.jsx(AdminRoles, { admin }) }),
2597
2631
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(AdminStatus, { admin }) }),
2598
2632
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(LastActive, { value: admin.lastActiveAt }) }),
2599
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.IconButtonGroup, { children: [
2633
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(RowActions, { children: [
2600
2634
  /* @__PURE__ */ jsxRuntime.jsx(
2601
2635
  designSystem.IconButton,
2602
2636
  {
@@ -2622,7 +2656,7 @@ const AdminTable = ({
2622
2656
  children: /* @__PURE__ */ jsxRuntime.jsx(icons.SignOut, {})
2623
2657
  }
2624
2658
  ) : null
2625
- ] }) }) })
2659
+ ] }) })
2626
2660
  ] }, admin.id)) })
2627
2661
  ]
2628
2662
  }
@@ -3,11 +3,12 @@ import { useFetchClient, useNotification, useClipboard, useRBAC, useQueryParams,
3
3
  import { NavLink, Link as Link$1, Routes, Route } from "react-router-dom";
4
4
  import { useMemo, useState, useEffect, useRef, useCallback, useId, useLayoutEffect } from "react";
5
5
  import { useIntl } from "react-intl";
6
- import { Typography, Flex, Loader, Button, Modal, Accordion, Box, IconButton, Link, IconButtonGroup, SimpleMenu, MenuItem, Grid, Table, Thead, Tr, Th, VisuallyHidden, Tbody, Td, Tooltip, SearchForm, Searchbar, TextButton, SingleSelect, SingleSelectOption, EmptyStateLayout, LinkButton, Badge, Dialog } from "@strapi/design-system";
6
+ import { Typography, Flex, Loader, Button, Modal, Accordion, Box, IconButton, Link, SimpleMenu, MenuItem, Grid, Table, Thead, Tr, Th, VisuallyHidden, Tbody, Td, Tooltip, SearchForm, Searchbar, TextButton, SingleSelect, SingleSelectOption, EmptyStateLayout, LinkButton, Badge, Dialog } from "@strapi/design-system";
7
7
  import { Earth, Duplicate, Cross, Eye, Trash, More, CaretDown, Download, ArrowClockwise, Check, Clock, User, ChartBubble, Cog, SignOut } from "@strapi/icons";
8
8
  import { EmptyDocuments } from "@strapi/icons/symbols";
9
9
  import styled, { useTheme } from "styled-components";
10
- import { g as getSessionEndReason, a as getEndReasonPresentation, b as getTranslation, p as presentText, i as isSessionFilter, D as DEFAULT_SESSION_FILTER, c as isEndReasonFilter, d as DEFAULT_END_REASON_FILTER, e as getDevicePresentation, u as useSessionFormatters, f as getSessionStatus, h as isNativeOnlySession, j as getSessionEndReasonPresentation, k as DeviceIcon, S as StatusBadge, P as PropertyList, C as ConfirmAction, t as toValidDate, l as pluginId, m as logSafeAdminError, n as PersistentAlert, R as ReadableText, o as pluginPermissions, M as MissingValue, V as ValueOrMissing, q as SESSION_STATES, r as SESSION_STATUS_PRESENTATION, s as isCancelledRequest, v as SESSION_FILTER_OPTIONS, E as END_REASON_FILTER_OPTIONS, w as PageShell, x as StatGrid, y as StatCard, z as restoreDialogFocus, A as requireSessionList, B as getBadgeColors } from "./index-C2SrNW6I.mjs";
10
+ import { g as getSessionEndReason, a as getEndReasonPresentation, b as getTranslation, p as presentText, i as isSessionFilter, D as DEFAULT_SESSION_FILTER, c as isEndReasonFilter, d as DEFAULT_END_REASON_FILTER, e as getDevicePresentation, u as useSessionFormatters, f as getSessionStatus, h as isNativeOnlySession, j as getSessionEndReasonPresentation, k as DeviceIcon, S as StatusBadge, P as PropertyList, C as ConfirmAction, t as toValidDate, l as pluginId, m as logSafeAdminError, n as PersistentAlert, R as ReadableText, o as pluginPermissions, M as MissingValue, V as ValueOrMissing, q as SESSION_STATES, r as SESSION_STATUS_PRESENTATION, s as isCancelledRequest, v as SESSION_FILTER_OPTIONS, E as END_REASON_FILTER_OPTIONS, w as PageShell, x as StatGrid, y as StatCard, z as restoreDialogFocus, A as requireSessionList, B as getBadgeColors } from "./index-lnZBc5n0.mjs";
11
+ import { i as isRiskSource, R as RISK_SETTINGS_PATH } from "./riskData-CI1gm2yI.mjs";
11
12
  const EndReason = ({ session, reason, variant = "omega", textColor = "neutral800" }) => {
12
13
  const { formatMessage } = useIntl();
13
14
  const key = reason || getSessionEndReason(session);
@@ -19,6 +20,7 @@ const EndReason = ({ session, reason, variant = "omega", textColor = "neutral800
19
20
  });
20
21
  return /* @__PURE__ */ jsx(Typography, { variant, textColor, "data-end-reason": presentation.reason, children: translate(presentation) });
21
22
  };
23
+ const RowActions = ({ children, ...props }) => /* @__PURE__ */ jsx(Flex, { justifyContent: "flex-end", alignItems: "center", gap: 1, "data-row-actions": "", ...props, children });
22
24
  const MAX_EXPORT_ROWS = 5e4;
23
25
  const EXPORT_BATCH_SIZE = 1e3;
24
26
  const EMPTY_SESSION_STATS = Object.freeze({
@@ -300,16 +302,19 @@ function normalizeGeoData(geo, fallback = {}) {
300
302
  const city = presentText(geo.city);
301
303
  const timezone = presentText(geo.timezone);
302
304
  if (!country && !city && !timezone) return null;
305
+ const riskSource = isRiskSource(geo.riskSource) ? geo.riskSource : null;
303
306
  const rawScore = typeof geo.securityScore === "number" ? geo.securityScore : fallback?.securityScore;
304
- const securityScore = typeof rawScore === "number" && Number.isFinite(rawScore) ? rawScore : null;
307
+ const securityScore = riskSource && typeof rawScore === "number" && Number.isFinite(rawScore) ? rawScore : null;
305
308
  return {
306
309
  country,
307
310
  city,
308
311
  timezone,
312
+ riskSource,
309
313
  securityScore,
310
- riskLevel: normalizeRiskLevel(geo.riskLevel),
311
- isVpn: booleanOrNull(geo.isVpn),
312
- isProxy: booleanOrNull(geo.isProxy)
314
+ riskLevel: riskSource ? normalizeRiskLevel(geo.riskLevel) : "",
315
+ isVpn: riskSource === "anonymous-ip" ? booleanOrNull(geo.isVpn) : null,
316
+ isProxy: riskSource === "anonymous-ip" ? booleanOrNull(geo.isProxy) : null,
317
+ isHosting: riskSource ? booleanOrNull(geo.isHosting) : null
313
318
  };
314
319
  }
315
320
  function getStoredGeoData(session) {
@@ -327,6 +332,7 @@ function getStoredGeoData(session) {
327
332
  riskLevel: _ignoredLevel,
328
333
  isVpn: _ignoredVpn,
329
334
  isProxy: _ignoredProxy,
335
+ isHosting: _ignoredHosting,
330
336
  ...facts
331
337
  } = geoLocation;
332
338
  return normalizeGeoData(facts, { securityScore: session?.securityScore });
@@ -570,27 +576,42 @@ const SessionDetailModal = ({ session, now, onClose, onCloseAutoFocus, onEndSess
570
576
  };
571
577
  const yesNoText = (value) => typeof value === "boolean" ? /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: value ? t("common.yes", "Yes") : t("common.no", "No") }) : void 0;
572
578
  const notStoredForPast = /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral600", children: t("modal.security.notStored", "Not stored for past sign-ins") });
573
- const score = typeof geo?.securityScore === "number" ? geo.securityScore : typeof session.securityScore === "number" && Number.isFinite(session.securityScore) ? session.securityScore : null;
574
- const riskMessage = liveGeo ? RISK_LEVEL_MESSAGES[liveGeo.riskLevel] : null;
579
+ const score = typeof geo?.securityScore === "number" ? geo.securityScore : null;
580
+ const riskUnavailable = Boolean(geo) && !geo.riskSource;
581
+ const riskMessage = liveGeo?.riskSource ? RISK_LEVEL_MESSAGES[liveGeo.riskLevel] : null;
582
+ const notAvailable = /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral600", children: t("modal.security.riskUnavailable", "Not available") });
575
583
  const locationItems = [
576
584
  { id: "country", label: t("modal.security.country", "Country"), value: geo?.country },
577
585
  { id: "city", label: t("modal.security.city", "City"), value: geo?.city },
578
586
  { id: "timezone", label: t("modal.security.timezone", "Time zone"), value: geo?.timezone },
579
- {
580
- id: "score",
581
- label: t("modal.security.score", "Security score"),
582
- value: score === null ? null : t("modal.security.scoreValue", "{score}/100", { score })
583
- },
584
- {
585
- id: "vpn",
586
- label: t("modal.security.vpn", "VPN"),
587
- render: liveGeo ? yesNoText(liveGeo.isVpn) : storedGeo ? notStoredForPast : void 0
588
- },
589
- {
590
- id: "proxy",
591
- label: t("modal.security.proxy", "Proxy"),
592
- render: liveGeo ? yesNoText(liveGeo.isProxy) : storedGeo ? notStoredForPast : void 0
593
- },
587
+ ...riskUnavailable ? [
588
+ {
589
+ id: "riskData",
590
+ label: t("modal.security.riskData", "VPN, proxy and security score"),
591
+ render: notAvailable
592
+ }
593
+ ] : [
594
+ {
595
+ id: "score",
596
+ label: t("modal.security.score", "Security score"),
597
+ value: score === null ? null : t("modal.security.scoreValue", "{score}/100", { score })
598
+ },
599
+ {
600
+ id: "vpn",
601
+ label: t("modal.security.vpn", "VPN"),
602
+ render: liveGeo ? yesNoText(liveGeo.isVpn) ?? notAvailable : storedGeo ? notStoredForPast : void 0
603
+ },
604
+ {
605
+ id: "proxy",
606
+ label: t("modal.security.proxy", "Proxy"),
607
+ render: liveGeo ? yesNoText(liveGeo.isProxy) ?? notAvailable : storedGeo ? notStoredForPast : void 0
608
+ },
609
+ liveGeo ? {
610
+ id: "hosting",
611
+ label: t("modal.security.hosting", "Hosting network"),
612
+ render: yesNoText(liveGeo.isHosting)
613
+ } : null
614
+ ],
594
615
  riskMessage ? {
595
616
  id: "risk",
596
617
  label: t("modal.security.riskLevel", "Risk level"),
@@ -709,10 +730,23 @@ const SessionDetailModal = ({ session, now, onClose, onCloseAutoFocus, onEndSess
709
730
  ) }),
710
731
  /* @__PURE__ */ jsxs(DetailSection, { title: t("modal.section.security", "Location and security"), children: [
711
732
  hasLocationData ? /* @__PURE__ */ jsx(PropertyList, { items: locationItems }) : null,
712
- score !== null ? /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", "data-score-note": "", children: t(
713
- "modal.security.scoreNote",
714
- "Higher is safer. Below 70 can trigger a suspicious-sign-in email and below 50 a rejection, if those settings are on. Local database results are always 100."
715
- ) }) : null,
733
+ score !== null ? /* @__PURE__ */ jsxs(Typography, { variant: "pi", textColor: "neutral600", "data-score-note": "", children: [
734
+ t(
735
+ "modal.security.scoreNote",
736
+ "Higher is safer. Below 70 can trigger a suspicious-sign-in email and below 50 a rejection, if those settings are on."
737
+ ),
738
+ geo?.riskSource === "asn-heuristic" ? ` ${t(
739
+ "modal.security.asnHeuristicNote",
740
+ "From the ASN heuristic: it only recognises large hosting and cloud networks, not VPNs, proxies or Tor."
741
+ )}` : null
742
+ ] }) : null,
743
+ riskUnavailable ? /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", gap: 1, "data-risk-unavailable": "", children: [
744
+ /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: t(
745
+ "modal.security.riskUnavailableNote",
746
+ "Needs a risk data source. Location data alone cannot tell VPNs, proxies or Tor apart, so no score was calculated."
747
+ ) }),
748
+ /* @__PURE__ */ jsx(TargetLink, { tag: NavLink, to: RISK_SETTINGS_PATH, children: t("modal.security.riskSetup", "Set up risk data") })
749
+ ] }) : null,
716
750
  lookupControls
717
751
  ] }),
718
752
  /* @__PURE__ */ jsx(Accordion.Root, { collapsible: true, size: "S", children: /* @__PURE__ */ jsxs(Accordion.Item, { value: "technical", children: [
@@ -931,7 +965,7 @@ const SessionActions = ({
931
965
  );
932
966
  const endKey = `end-${session.id}-${canEnd ? "open" : "ended"}`;
933
967
  if (layout === "table") {
934
- return /* @__PURE__ */ jsxs(IconButtonGroup, { onKeyDown: isolateActionKeys, onClick: (event) => event.stopPropagation(), children: [
968
+ return /* @__PURE__ */ jsxs(RowActions, { onKeyDown: isolateActionKeys, onClick: (event) => event.stopPropagation(), children: [
935
969
  /* @__PURE__ */ jsx(
936
970
  IconButton,
937
971
  {
@@ -2592,7 +2626,7 @@ const AdminTable = ({
2592
2626
  /* @__PURE__ */ jsx(Td, { style: SHRINKING_ROLES_CELL, children: /* @__PURE__ */ jsx(AdminRoles, { admin }) }),
2593
2627
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(AdminStatus, { admin }) }),
2594
2628
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(LastActive, { value: admin.lastActiveAt }) }),
2595
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Flex, { justifyContent: "flex-end", children: /* @__PURE__ */ jsxs(IconButtonGroup, { children: [
2629
+ /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(RowActions, { children: [
2596
2630
  /* @__PURE__ */ jsx(
2597
2631
  IconButton,
2598
2632
  {
@@ -2618,7 +2652,7 @@ const AdminTable = ({
2618
2652
  children: /* @__PURE__ */ jsx(SignOut, {})
2619
2653
  }
2620
2654
  ) : null
2621
- ] }) }) })
2655
+ ] }) })
2622
2656
  ] }, admin.id)) })
2623
2657
  ]
2624
2658
  }
@@ -6,7 +6,7 @@ import { Flex, Loader, Button, Box, Typography } from "@strapi/design-system";
6
6
  import { User, Lightning, Clock, Lock, WarningCircle } from "@strapi/icons";
7
7
  import * as StrapiAdmin from "@strapi/strapi/admin";
8
8
  import { useFetchClient } from "@strapi/strapi/admin";
9
- import { m as logSafeAdminError, s as isCancelledRequest, b as getTranslation, R as ReadableText, M as MissingValue } from "./index-C2SrNW6I.mjs";
9
+ import { m as logSafeAdminError, s as isCancelledRequest, b as getTranslation, R as ReadableText, M as MissingValue } from "./index-lnZBc5n0.mjs";
10
10
  function normalizeUserCounts(response) {
11
11
  const totalUsers = response?.data?.totalUsers;
12
12
  const blockedUsers = response?.data?.blockedUsers;
@@ -7,7 +7,7 @@ const styled = require("styled-components");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
9
  const StrapiAdmin = require("@strapi/strapi/admin");
10
- const index = require("./index-CmW1DJ0c.js");
10
+ const index = require("./index-CNSJITRX.js");
11
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
12
12
  function _interopNamespace(e) {
13
13
  if (e && e.__esModule) return e;