strapi-plugin-magic-sessionmanager 3.0.0 → 3.0.1

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.
@@ -30,7 +30,7 @@ const SessionInfoCard = ({ id, model }) => {
30
30
  }
31
31
 
32
32
  try {
33
- const { data } = await get(`/api/magic-sessionmanager/user/${id}/sessions`);
33
+ const { data } = await get(`/magic-sessionmanager/admin/user/${id}/sessions`);
34
34
  setSessions(data.data || []);
35
35
  } catch (err) {
36
36
  console.error('[SessionInfoCard] Error fetching sessions:', err);
@@ -26,7 +26,7 @@ const SessionInfoPanel = ({ documentId, model, document }) => {
26
26
 
27
27
  const fetchData = async () => {
28
28
  try {
29
- const { data } = await get(`/api/magic-sessionmanager/user/${userId}/sessions`);
29
+ const { data } = await get(`/magic-sessionmanager/admin/user/${userId}/sessions`);
30
30
  // Filter by truly active (not just isActive, but also within timeout)
31
31
  const activeSessions = (data.data || []).filter(s => s.isTrulyActive);
32
32
  setSessions(activeSessions);
@@ -4,8 +4,8 @@ import { useFetchClient } from "@strapi/strapi/admin";
4
4
  import styled, { css, keyframes } from "styled-components";
5
5
  import { Loader, Typography, Box, Flex, Badge } from "@strapi/design-system";
6
6
  import { ChartBubble, Crown, User, Clock, Monitor } from "@strapi/icons";
7
- import { a as pluginId } from "./index-F2xT--Of.mjs";
8
- import { u as useLicense } from "./useLicense-CMUZkg6j.mjs";
7
+ import { a as pluginId } from "./index-BLEZRtuD.mjs";
8
+ import { u as useLicense } from "./useLicense-D92JSFYj.mjs";
9
9
  const theme = {
10
10
  colors: {
11
11
  primary: { 100: "#E0F2FE", 500: "#0EA5E9", 600: "#0284C7" },
@@ -6,8 +6,8 @@ const admin = require("@strapi/strapi/admin");
6
6
  const styled = require("styled-components");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
- const index = require("./index-CtgGzpvo.js");
10
- const useLicense = require("./useLicense-B1AqCjRa.js");
9
+ const index = require("./index-CD2Jls2n.js");
10
+ const useLicense = require("./useLicense-C3OdhHzJ.js");
11
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
12
12
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
13
13
  const theme = {
@@ -6,8 +6,8 @@ const admin = require("@strapi/strapi/admin");
6
6
  const styled = require("styled-components");
7
7
  const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
- const index = require("./index-CtgGzpvo.js");
10
- const useLicense = require("./useLicense-B1AqCjRa.js");
9
+ const index = require("./index-CD2Jls2n.js");
10
+ const useLicense = require("./useLicense-C3OdhHzJ.js");
11
11
  const reactRouterDom = require("react-router-dom");
12
12
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
13
13
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -4,8 +4,8 @@ import { useFetchClient, useNotification } from "@strapi/strapi/admin";
4
4
  import styled, { css, keyframes } from "styled-components";
5
5
  import { Modal, Flex, Box, Typography, Badge, Divider, Button, Loader, SingleSelect, SingleSelectOption, Thead, Tr, Th, Tbody, Td, Table, TextInput } from "@strapi/design-system";
6
6
  import { Check, Information, Monitor, Server, Clock, Cross, Earth, Shield, Crown, Phone, Download, User, Eye, Trash, Search, Key } from "@strapi/icons";
7
- import { p as parseUserAgent, a as pluginId } from "./index-F2xT--Of.mjs";
8
- import { u as useLicense } from "./useLicense-CMUZkg6j.mjs";
7
+ import { p as parseUserAgent, a as pluginId } from "./index-BLEZRtuD.mjs";
8
+ import { u as useLicense } from "./useLicense-D92JSFYj.mjs";
9
9
  import { useNavigate } from "react-router-dom";
10
10
  const TwoColumnGrid = styled.div`
11
11
  display: grid;
@@ -4,7 +4,7 @@ import { Loader, Box, Alert, Flex, Typography, Button, Badge, Accordion } from "
4
4
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
5
5
  import { ArrowClockwise, Duplicate, Download, User, Shield, Sparkle, ChartBubble } from "@strapi/icons";
6
6
  import styled, { css, keyframes } from "styled-components";
7
- import { a as pluginId } from "./index-F2xT--Of.mjs";
7
+ import { a as pluginId } from "./index-BLEZRtuD.mjs";
8
8
  const theme = {
9
9
  colors: {
10
10
  neutral: { 200: "#E5E7EB" }
@@ -6,7 +6,7 @@ const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
7
  const icons = require("@strapi/icons");
8
8
  const styled = require("styled-components");
9
- const index = require("./index-CtgGzpvo.js");
9
+ const index = require("./index-CD2Jls2n.js");
10
10
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
11
11
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
12
12
  const theme = {
@@ -6,8 +6,8 @@ const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
7
  const icons = require("@strapi/icons");
8
8
  const styled = require("styled-components");
9
- const index = require("./index-CtgGzpvo.js");
10
- const useLicense = require("./useLicense-B1AqCjRa.js");
9
+ const index = require("./index-CD2Jls2n.js");
10
+ const useLicense = require("./useLicense-C3OdhHzJ.js");
11
11
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
12
12
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
13
13
  const theme = {
@@ -4,8 +4,8 @@ import { Flex, Loader, Typography, Button, Box, Badge, Accordion, Grid, SingleSe
4
4
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
5
5
  import { Check, Information, Cog, Trash, Shield, Mail, Code } from "@strapi/icons";
6
6
  import styled, { css, keyframes } from "styled-components";
7
- import { a as pluginId } from "./index-F2xT--Of.mjs";
8
- import { u as useLicense } from "./useLicense-CMUZkg6j.mjs";
7
+ import { a as pluginId } from "./index-BLEZRtuD.mjs";
8
+ import { u as useLicense } from "./useLicense-D92JSFYj.mjs";
9
9
  const theme = {
10
10
  colors: {
11
11
  primary: { 600: "#0284C7", 700: "#075985" },
@@ -95,7 +95,7 @@ const SessionInfoPanel = ({ documentId, model, document }) => {
95
95
  }
96
96
  const fetchData = async () => {
97
97
  try {
98
- const { data } = await get(`/api/magic-sessionmanager/user/${userId}/sessions`);
98
+ const { data } = await get(`/magic-sessionmanager/admin/user/${userId}/sessions`);
99
99
  const activeSessions = (data.data || []).filter((s) => s.isTrulyActive);
100
100
  setSessions(activeSessions);
101
101
  setIsBlocked(document?.blocked || false);
@@ -403,7 +403,7 @@ const index = {
403
403
  id: `${pluginId}.plugin.name`,
404
404
  defaultMessage: pluginPkg.strapi.displayName
405
405
  },
406
- Component: () => import("./App-Dwvy5bk_.mjs")
406
+ Component: () => import("./App-Dy-mAUPv.mjs")
407
407
  });
408
408
  app.createSettingSection(
409
409
  {
@@ -419,7 +419,7 @@ const index = {
419
419
  },
420
420
  id: "general",
421
421
  to: `/settings/${pluginId}/general`,
422
- Component: () => import("./Settings-Bq4AqREf.mjs")
422
+ Component: () => import("./Settings-oXa82_Fo.mjs")
423
423
  },
424
424
  {
425
425
  intlLabel: {
@@ -428,7 +428,7 @@ const index = {
428
428
  },
429
429
  id: "analytics",
430
430
  to: `/settings/${pluginId}/analytics`,
431
- Component: () => import("./Analytics-DTuknP1D.mjs")
431
+ Component: () => import("./Analytics-ByC7HfOE.mjs")
432
432
  },
433
433
  {
434
434
  intlLabel: {
@@ -437,7 +437,7 @@ const index = {
437
437
  },
438
438
  id: "license",
439
439
  to: `/settings/${pluginId}/license`,
440
- Component: () => import("./License-Zwaqa_nk.mjs")
440
+ Component: () => import("./License-DA8KK2GQ.mjs")
441
441
  }
442
442
  ]
443
443
  );
@@ -96,7 +96,7 @@ const SessionInfoPanel = ({ documentId, model, document }) => {
96
96
  }
97
97
  const fetchData = async () => {
98
98
  try {
99
- const { data } = await get(`/api/magic-sessionmanager/user/${userId}/sessions`);
99
+ const { data } = await get(`/magic-sessionmanager/admin/user/${userId}/sessions`);
100
100
  const activeSessions = (data.data || []).filter((s) => s.isTrulyActive);
101
101
  setSessions(activeSessions);
102
102
  setIsBlocked(document?.blocked || false);
@@ -404,7 +404,7 @@ const index = {
404
404
  id: `${pluginId}.plugin.name`,
405
405
  defaultMessage: pluginPkg.strapi.displayName
406
406
  },
407
- Component: () => Promise.resolve().then(() => require("./App-Dg24Nes6.js"))
407
+ Component: () => Promise.resolve().then(() => require("./App-CsWl6uAZ.js"))
408
408
  });
409
409
  app.createSettingSection(
410
410
  {
@@ -420,7 +420,7 @@ const index = {
420
420
  },
421
421
  id: "general",
422
422
  to: `/settings/${pluginId}/general`,
423
- Component: () => Promise.resolve().then(() => require("./Settings-3X3pwVSs.js"))
423
+ Component: () => Promise.resolve().then(() => require("./Settings-BpB9rz0q.js"))
424
424
  },
425
425
  {
426
426
  intlLabel: {
@@ -429,7 +429,7 @@ const index = {
429
429
  },
430
430
  id: "analytics",
431
431
  to: `/settings/${pluginId}/analytics`,
432
- Component: () => Promise.resolve().then(() => require("./Analytics-zP5M1bL_.js"))
432
+ Component: () => Promise.resolve().then(() => require("./Analytics-CgaMF_rH.js"))
433
433
  },
434
434
  {
435
435
  intlLabel: {
@@ -438,7 +438,7 @@ const index = {
438
438
  },
439
439
  id: "license",
440
440
  to: `/settings/${pluginId}/license`,
441
- Component: () => Promise.resolve().then(() => require("./License-Bued-4ZT.js"))
441
+ Component: () => Promise.resolve().then(() => require("./License-V6Y3xHzi.js"))
442
442
  }
443
443
  ]
444
444
  );
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const react = require("react");
3
3
  const admin = require("@strapi/strapi/admin");
4
- const index = require("./index-CtgGzpvo.js");
4
+ const index = require("./index-CD2Jls2n.js");
5
5
  const useLicense = () => {
6
6
  const { get } = admin.useFetchClient();
7
7
  const [isPremium, setIsPremium] = react.useState(false);
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { useFetchClient } from "@strapi/strapi/admin";
3
- import { a as pluginId } from "./index-F2xT--Of.mjs";
3
+ import { a as pluginId } from "./index-BLEZRtuD.mjs";
4
4
  const useLicense = () => {
5
5
  const { get } = useFetchClient();
6
6
  const [isPremium, setIsPremium] = useState(false);
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-CtgGzpvo.js");
2
+ const index = require("../_chunks/index-CD2Jls2n.js");
3
3
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-F2xT--Of.mjs";
1
+ import { i } from "../_chunks/index-BLEZRtuD.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.0",
2
+ "version": "3.0.1",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi-plugin",