strapi-plugin-magic-sessionmanager 4.4.3 → 4.4.5
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/_chunks/{Analytics-CQNEZTUR.mjs → Analytics-CFlATYIp.mjs} +5 -5
- package/dist/_chunks/{Analytics-DDcZzOJc.js → Analytics-mFarhu5A.js} +5 -5
- package/dist/_chunks/{App-GrZxgdsa.mjs → App-BkFz8R3I.mjs} +9 -9
- package/dist/_chunks/{App-DmXHGW6v.js → App-CrdNlRlL.js} +9 -9
- package/dist/_chunks/{License-U8nciB7B.js → License-BI04KWfw.js} +2 -2
- package/dist/_chunks/{License-DJ2szRWp.mjs → License-BnbIePhc.mjs} +2 -2
- package/dist/_chunks/{OnlineUsersWidget-JvbLXkDK.js → OnlineUsersWidget-D1B_2ge5.js} +1 -1
- package/dist/_chunks/{OnlineUsersWidget--050_ZKf.mjs → OnlineUsersWidget-eBwttUiU.mjs} +1 -1
- package/dist/_chunks/{Settings-BKE3rMNU.mjs → Settings-BfKDErt5.mjs} +7 -7
- package/dist/_chunks/{Settings-CvYIqeue.js → Settings-Cy-6vah_.js} +7 -7
- package/dist/_chunks/{StyledButtons-HrcisfdR.mjs → StyledButtons-Cz8oYhmc.mjs} +2 -2
- package/dist/_chunks/{StyledButtons-UnlRhqip.js → StyledButtons-DDuxnYz8.js} +2 -2
- package/dist/_chunks/{UpgradePage-D8dw2eU6.mjs → UpgradePage-2mV2iqDM.mjs} +2 -2
- package/dist/_chunks/{UpgradePage-CCIXYVW3.js → UpgradePage-B8kz6Cyz.js} +2 -2
- package/dist/_chunks/{index-CLfOD-6A.mjs → index-B0wQeSSu.mjs} +9 -9
- package/dist/_chunks/{index-DcU_ELxj.js → index-BEh2DizI.js} +9 -9
- package/dist/_chunks/{useLicense-qbK401y8.js → useLicense-DFdVp_qI.js} +1 -1
- package/dist/_chunks/{useLicense-Bi6skBLw.mjs → useLicense-RxDUbCoU.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +19 -13
- package/dist/server/index.mjs +19 -13
- package/package.json +3 -3
|
@@ -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-
|
|
8
|
-
import { u as useLicense } from "./useLicense-
|
|
7
|
+
import { a as pluginId } from "./index-B0wQeSSu.mjs";
|
|
8
|
+
import { u as useLicense } from "./useLicense-RxDUbCoU.mjs";
|
|
9
9
|
const theme = {
|
|
10
10
|
shadows: {
|
|
11
11
|
sm: "0 1px 3px 0 rgba(0, 0, 0, 0.1)",
|
|
@@ -88,7 +88,7 @@ const HeaderContent = styled(Flex)`
|
|
|
88
88
|
z-index: 1;
|
|
89
89
|
`;
|
|
90
90
|
const Title = styled(Typography)`
|
|
91
|
-
color: ${
|
|
91
|
+
color: ${(p) => p.theme.colors.neutral0};
|
|
92
92
|
font-size: 2.25rem;
|
|
93
93
|
font-weight: 700;
|
|
94
94
|
letter-spacing: -0.025em;
|
|
@@ -117,7 +117,7 @@ const StatsGrid = styled.div`
|
|
|
117
117
|
margin-bottom: 40px;
|
|
118
118
|
`;
|
|
119
119
|
const StatCard = styled(Box)`
|
|
120
|
-
background: ${
|
|
120
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
121
121
|
border-radius: ${theme.borderRadius.lg};
|
|
122
122
|
padding: 32px;
|
|
123
123
|
position: relative;
|
|
@@ -182,7 +182,7 @@ const StatLabel = styled(Typography)`
|
|
|
182
182
|
text-align: center;
|
|
183
183
|
`;
|
|
184
184
|
const ChartCard = styled(Box)`
|
|
185
|
-
background: ${
|
|
185
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
186
186
|
border-radius: ${theme.borderRadius.lg};
|
|
187
187
|
padding: 36px;
|
|
188
188
|
box-shadow: ${theme.shadows.md};
|
|
@@ -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-
|
|
10
|
-
const useLicense = require("./useLicense-
|
|
9
|
+
const index = require("./index-BEh2DizI.js");
|
|
10
|
+
const useLicense = require("./useLicense-DFdVp_qI.js");
|
|
11
11
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
12
12
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
13
13
|
const theme = {
|
|
@@ -92,7 +92,7 @@ const HeaderContent = styled__default.default(designSystem.Flex)`
|
|
|
92
92
|
z-index: 1;
|
|
93
93
|
`;
|
|
94
94
|
const Title = styled__default.default(designSystem.Typography)`
|
|
95
|
-
color: ${
|
|
95
|
+
color: ${(p) => p.theme.colors.neutral0};
|
|
96
96
|
font-size: 2.25rem;
|
|
97
97
|
font-weight: 700;
|
|
98
98
|
letter-spacing: -0.025em;
|
|
@@ -121,7 +121,7 @@ const StatsGrid = styled__default.default.div`
|
|
|
121
121
|
margin-bottom: 40px;
|
|
122
122
|
`;
|
|
123
123
|
const StatCard = styled__default.default(designSystem.Box)`
|
|
124
|
-
background: ${
|
|
124
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
125
125
|
border-radius: ${theme.borderRadius.lg};
|
|
126
126
|
padding: 32px;
|
|
127
127
|
position: relative;
|
|
@@ -186,7 +186,7 @@ const StatLabel = styled__default.default(designSystem.Typography)`
|
|
|
186
186
|
text-align: center;
|
|
187
187
|
`;
|
|
188
188
|
const ChartCard = styled__default.default(designSystem.Box)`
|
|
189
|
-
background: ${
|
|
189
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
190
190
|
border-radius: ${theme.borderRadius.lg};
|
|
191
191
|
padding: 36px;
|
|
192
192
|
box-shadow: ${theme.shadows.md};
|
|
@@ -3,11 +3,11 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
5
5
|
import styled, { css, keyframes } from "styled-components";
|
|
6
|
-
import { p as parseUserAgent, a as pluginId, g as getTranslation } from "./index-
|
|
6
|
+
import { p as parseUserAgent, a as pluginId, g as getTranslation } from "./index-B0wQeSSu.mjs";
|
|
7
7
|
import { Modal, Flex, Box, Typography, Divider, Button, Loader, SingleSelect, SingleSelectOption, Thead, Tr, Th, Tbody, Td, Table, TextInput } from "@strapi/design-system";
|
|
8
8
|
import { Check, Information, Monitor, Server, Clock, Cross, Earth, Shield, Crown, Phone, Download, User, Eye, Trash, Search, Key } from "@strapi/icons";
|
|
9
|
-
import { u as useLicense } from "./useLicense-
|
|
10
|
-
import { S as ShowHideButton, T as TertiaryButton, D as DangerButton, I as IconButtonPrimary, a as IconButtonWarning, b as IconButtonDanger } from "./StyledButtons-
|
|
9
|
+
import { u as useLicense } from "./useLicense-RxDUbCoU.mjs";
|
|
10
|
+
import { S as ShowHideButton, T as TertiaryButton, D as DangerButton, I as IconButtonPrimary, a as IconButtonWarning, b as IconButtonDanger } from "./StyledButtons-Cz8oYhmc.mjs";
|
|
11
11
|
import { useNavigate } from "react-router-dom";
|
|
12
12
|
const theme = {
|
|
13
13
|
shadows: {
|
|
@@ -568,7 +568,7 @@ const StatsGrid = styled.div`
|
|
|
568
568
|
}
|
|
569
569
|
`;
|
|
570
570
|
const StatCard = styled(Box)`
|
|
571
|
-
background:
|
|
571
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
572
572
|
border-radius: ${theme.borderRadius.lg};
|
|
573
573
|
padding: 28px ${theme.spacing.lg};
|
|
574
574
|
position: relative;
|
|
@@ -665,7 +665,7 @@ const StatLabel = styled(Typography)`
|
|
|
665
665
|
}
|
|
666
666
|
`;
|
|
667
667
|
const DataTable = styled(Box)`
|
|
668
|
-
background:
|
|
668
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
669
669
|
border-radius: ${theme.borderRadius.lg};
|
|
670
670
|
overflow: hidden;
|
|
671
671
|
box-shadow: ${theme.shadows.sm};
|
|
@@ -720,7 +720,7 @@ styled.div`
|
|
|
720
720
|
${css`animation: ${(props) => props.$online ? pulse : "none"} 2s ease-in-out infinite;`}
|
|
721
721
|
`;
|
|
722
722
|
const FilterBar = styled(Flex)`
|
|
723
|
-
background:
|
|
723
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
724
724
|
padding: ${theme.spacing.md} ${theme.spacing.lg};
|
|
725
725
|
border-radius: ${theme.borderRadius.lg};
|
|
726
726
|
margin-bottom: ${theme.spacing.lg};
|
|
@@ -750,7 +750,7 @@ const StyledSearchInput = styled.input`
|
|
|
750
750
|
border-radius: ${theme.borderRadius.md};
|
|
751
751
|
font-size: 0.875rem;
|
|
752
752
|
transition: all ${theme.transitions.fast};
|
|
753
|
-
background:
|
|
753
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
754
754
|
color: var(--colors-neutral800);
|
|
755
755
|
|
|
756
756
|
&:focus {
|
|
@@ -842,7 +842,7 @@ const ClickableRow = styled(Tr)`
|
|
|
842
842
|
}
|
|
843
843
|
`;
|
|
844
844
|
styled(Box)`
|
|
845
|
-
background:
|
|
845
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
846
846
|
border-radius: ${theme.borderRadius.xl};
|
|
847
847
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
848
848
|
padding: 80px 32px;
|
|
@@ -1517,7 +1517,7 @@ const ModalOverlay = styled.div`
|
|
|
1517
1517
|
padding: 20px;
|
|
1518
1518
|
`;
|
|
1519
1519
|
const ModalContent = styled(Box)`
|
|
1520
|
-
background:
|
|
1520
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
1521
1521
|
border-radius: 16px;
|
|
1522
1522
|
width: 100%;
|
|
1523
1523
|
max-width: 580px;
|
|
@@ -5,11 +5,11 @@ const react = require("react");
|
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
|
-
const index = require("./index-
|
|
8
|
+
const index = require("./index-BEh2DizI.js");
|
|
9
9
|
const designSystem = require("@strapi/design-system");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
|
-
const useLicense = require("./useLicense-
|
|
12
|
-
const StyledButtons = require("./StyledButtons-
|
|
11
|
+
const useLicense = require("./useLicense-DFdVp_qI.js");
|
|
12
|
+
const StyledButtons = require("./StyledButtons-DDuxnYz8.js");
|
|
13
13
|
const reactRouterDom = require("react-router-dom");
|
|
14
14
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
15
15
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -572,7 +572,7 @@ const StatsGrid = styled__default.default.div`
|
|
|
572
572
|
}
|
|
573
573
|
`;
|
|
574
574
|
const StatCard = styled__default.default(designSystem.Box)`
|
|
575
|
-
background:
|
|
575
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
576
576
|
border-radius: ${theme.borderRadius.lg};
|
|
577
577
|
padding: 28px ${theme.spacing.lg};
|
|
578
578
|
position: relative;
|
|
@@ -669,7 +669,7 @@ const StatLabel = styled__default.default(designSystem.Typography)`
|
|
|
669
669
|
}
|
|
670
670
|
`;
|
|
671
671
|
const DataTable = styled__default.default(designSystem.Box)`
|
|
672
|
-
background:
|
|
672
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
673
673
|
border-radius: ${theme.borderRadius.lg};
|
|
674
674
|
overflow: hidden;
|
|
675
675
|
box-shadow: ${theme.shadows.sm};
|
|
@@ -724,7 +724,7 @@ styled__default.default.div`
|
|
|
724
724
|
${styled.css`animation: ${(props) => props.$online ? pulse : "none"} 2s ease-in-out infinite;`}
|
|
725
725
|
`;
|
|
726
726
|
const FilterBar = styled__default.default(designSystem.Flex)`
|
|
727
|
-
background:
|
|
727
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
728
728
|
padding: ${theme.spacing.md} ${theme.spacing.lg};
|
|
729
729
|
border-radius: ${theme.borderRadius.lg};
|
|
730
730
|
margin-bottom: ${theme.spacing.lg};
|
|
@@ -754,7 +754,7 @@ const StyledSearchInput = styled__default.default.input`
|
|
|
754
754
|
border-radius: ${theme.borderRadius.md};
|
|
755
755
|
font-size: 0.875rem;
|
|
756
756
|
transition: all ${theme.transitions.fast};
|
|
757
|
-
background:
|
|
757
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
758
758
|
color: var(--colors-neutral800);
|
|
759
759
|
|
|
760
760
|
&:focus {
|
|
@@ -846,7 +846,7 @@ const ClickableRow = styled__default.default(designSystem.Tr)`
|
|
|
846
846
|
}
|
|
847
847
|
`;
|
|
848
848
|
styled__default.default(designSystem.Box)`
|
|
849
|
-
background:
|
|
849
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
850
850
|
border-radius: ${theme.borderRadius.xl};
|
|
851
851
|
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
852
852
|
padding: 80px 32px;
|
|
@@ -1521,7 +1521,7 @@ const ModalOverlay = styled__default.default.div`
|
|
|
1521
1521
|
padding: 20px;
|
|
1522
1522
|
`;
|
|
1523
1523
|
const ModalContent = styled__default.default(designSystem.Box)`
|
|
1524
|
-
background:
|
|
1524
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
1525
1525
|
border-radius: 16px;
|
|
1526
1526
|
width: 100%;
|
|
1527
1527
|
max-width: 580px;
|
|
@@ -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-
|
|
9
|
+
const index = require("./index-BEh2DizI.js");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
11
11
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
12
12
|
const theme = {
|
|
@@ -29,7 +29,7 @@ const StickySaveBar = styled__default.default(designSystem.Box)`
|
|
|
29
29
|
position: sticky;
|
|
30
30
|
top: 0;
|
|
31
31
|
z-index: 10;
|
|
32
|
-
background:
|
|
32
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
33
33
|
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
|
|
34
34
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
35
35
|
`;
|
|
@@ -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-
|
|
7
|
+
import { a as pluginId } from "./index-B0wQeSSu.mjs";
|
|
8
8
|
const theme = {
|
|
9
9
|
borderRadius: { lg: "12px" }
|
|
10
10
|
};
|
|
@@ -25,7 +25,7 @@ const StickySaveBar = styled(Box)`
|
|
|
25
25
|
position: sticky;
|
|
26
26
|
top: 0;
|
|
27
27
|
z-index: 10;
|
|
28
|
-
background:
|
|
28
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
29
29
|
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
|
|
30
30
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
31
31
|
`;
|
|
@@ -6,7 +6,7 @@ const reactIntl = require("react-intl");
|
|
|
6
6
|
const designSystem = require("@strapi/design-system");
|
|
7
7
|
const icons = require("@strapi/icons");
|
|
8
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
|
-
const index = require("./index-
|
|
9
|
+
const index = require("./index-BEh2DizI.js");
|
|
10
10
|
const OnlineUsersWidget = () => {
|
|
11
11
|
const { formatMessage } = reactIntl.useIntl();
|
|
12
12
|
const { get } = admin.useFetchClient();
|
|
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl";
|
|
|
4
4
|
import { Box, Typography, Flex, Grid } from "@strapi/design-system";
|
|
5
5
|
import { Check, Cross, Clock, User } from "@strapi/icons";
|
|
6
6
|
import { useFetchClient } from "@strapi/strapi/admin";
|
|
7
|
-
import { g as getTranslation } from "./index-
|
|
7
|
+
import { g as getTranslation } from "./index-B0wQeSSu.mjs";
|
|
8
8
|
const OnlineUsersWidget = () => {
|
|
9
9
|
const { formatMessage } = useIntl();
|
|
10
10
|
const { get } = useFetchClient();
|
|
@@ -5,9 +5,9 @@ import { Flex, Loader, Typography, Button, Box, Badge, Accordion, Grid, SingleSe
|
|
|
5
5
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
6
6
|
import { Check, Information, Cog, Trash, Shield, Code, Duplicate, Mail } from "@strapi/icons";
|
|
7
7
|
import styled, { css, keyframes } from "styled-components";
|
|
8
|
-
import { a as pluginId, g as getTranslation } from "./index-
|
|
9
|
-
import { u as useLicense } from "./useLicense-
|
|
10
|
-
import { D as DangerButton, S as ShowHideButton, G as GradientButton, C as CopyButton, T as TertiaryButton, c as SecondaryButton } from "./StyledButtons-
|
|
8
|
+
import { a as pluginId, g as getTranslation } from "./index-B0wQeSSu.mjs";
|
|
9
|
+
import { u as useLicense } from "./useLicense-RxDUbCoU.mjs";
|
|
10
|
+
import { D as DangerButton, S as ShowHideButton, G as GradientButton, C as CopyButton, T as TertiaryButton, c as SecondaryButton } from "./StyledButtons-Cz8oYhmc.mjs";
|
|
11
11
|
const theme = {
|
|
12
12
|
borderRadius: { md: "8px", lg: "12px" }
|
|
13
13
|
};
|
|
@@ -28,7 +28,7 @@ const StickySaveBar = styled(Box)`
|
|
|
28
28
|
position: sticky;
|
|
29
29
|
top: 0;
|
|
30
30
|
z-index: 10;
|
|
31
|
-
background:
|
|
31
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
32
32
|
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
|
|
33
33
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
34
34
|
`;
|
|
@@ -666,7 +666,7 @@ const SettingsPage = () => {
|
|
|
666
666
|
borderRadius: theme.borderRadius.lg,
|
|
667
667
|
marginBottom: "32px",
|
|
668
668
|
border: `2px solid ${"rgba(2, 132, 199, 0.12)"}`,
|
|
669
|
-
background:
|
|
669
|
+
background: "rgba(2, 132, 199, 0.04)"
|
|
670
670
|
},
|
|
671
671
|
children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 4, children: [
|
|
672
672
|
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, children: [
|
|
@@ -1373,7 +1373,7 @@ const SettingsPage = () => {
|
|
|
1373
1373
|
fontSize: "14px",
|
|
1374
1374
|
lineHeight: "1.8",
|
|
1375
1375
|
color: "var(--colors-neutral800)",
|
|
1376
|
-
background: "
|
|
1376
|
+
background: "transparent",
|
|
1377
1377
|
resize: "vertical",
|
|
1378
1378
|
minHeight: "80px"
|
|
1379
1379
|
}
|
|
@@ -1416,7 +1416,7 @@ const SettingsPage = () => {
|
|
|
1416
1416
|
fontSize: "14px",
|
|
1417
1417
|
lineHeight: "1.8",
|
|
1418
1418
|
color: "var(--colors-neutral800)",
|
|
1419
|
-
background: "
|
|
1419
|
+
background: "transparent",
|
|
1420
1420
|
resize: "vertical",
|
|
1421
1421
|
minHeight: "80px"
|
|
1422
1422
|
}
|
|
@@ -7,9 +7,9 @@ const designSystem = require("@strapi/design-system");
|
|
|
7
7
|
const admin = require("@strapi/strapi/admin");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
|
-
const index = require("./index-
|
|
11
|
-
const useLicense = require("./useLicense-
|
|
12
|
-
const StyledButtons = require("./StyledButtons-
|
|
10
|
+
const index = require("./index-BEh2DizI.js");
|
|
11
|
+
const useLicense = require("./useLicense-DFdVp_qI.js");
|
|
12
|
+
const StyledButtons = require("./StyledButtons-DDuxnYz8.js");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
14
14
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
15
15
|
const theme = {
|
|
@@ -32,7 +32,7 @@ const StickySaveBar = styled__default.default(designSystem.Box)`
|
|
|
32
32
|
position: sticky;
|
|
33
33
|
top: 0;
|
|
34
34
|
z-index: 10;
|
|
35
|
-
background:
|
|
35
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
36
36
|
border-bottom: 1px solid rgba(128, 128, 128, 0.2);
|
|
37
37
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
38
38
|
`;
|
|
@@ -670,7 +670,7 @@ const SettingsPage = () => {
|
|
|
670
670
|
borderRadius: theme.borderRadius.lg,
|
|
671
671
|
marginBottom: "32px",
|
|
672
672
|
border: `2px solid ${"rgba(2, 132, 199, 0.12)"}`,
|
|
673
|
-
background:
|
|
673
|
+
background: "rgba(2, 132, 199, 0.04)"
|
|
674
674
|
},
|
|
675
675
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 4, children: [
|
|
676
676
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, children: [
|
|
@@ -1377,7 +1377,7 @@ const SettingsPage = () => {
|
|
|
1377
1377
|
fontSize: "14px",
|
|
1378
1378
|
lineHeight: "1.8",
|
|
1379
1379
|
color: "var(--colors-neutral800)",
|
|
1380
|
-
background: "
|
|
1380
|
+
background: "transparent",
|
|
1381
1381
|
resize: "vertical",
|
|
1382
1382
|
minHeight: "80px"
|
|
1383
1383
|
}
|
|
@@ -1420,7 +1420,7 @@ const SettingsPage = () => {
|
|
|
1420
1420
|
fontSize: "14px",
|
|
1421
1421
|
lineHeight: "1.8",
|
|
1422
1422
|
color: "var(--colors-neutral800)",
|
|
1423
|
-
background: "
|
|
1423
|
+
background: "transparent",
|
|
1424
1424
|
resize: "vertical",
|
|
1425
1425
|
minHeight: "80px"
|
|
1426
1426
|
}
|
|
@@ -28,11 +28,11 @@ const GradientButton = styled(Button)`
|
|
|
28
28
|
`;
|
|
29
29
|
const SecondaryButton = styled(Button)`
|
|
30
30
|
&& {
|
|
31
|
-
background:
|
|
31
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
32
32
|
color: var(--colors-secondary600, #7C3AED);
|
|
33
33
|
font-weight: 600;
|
|
34
34
|
border: 2px solid transparent;
|
|
35
|
-
background-image: linear-gradient(
|
|
35
|
+
background-image: linear-gradient(${(p) => p.theme.colors.neutral0}, ${(p) => p.theme.colors.neutral0}), linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
|
|
36
36
|
background-origin: border-box;
|
|
37
37
|
background-clip: padding-box, border-box;
|
|
38
38
|
padding: 10px 20px;
|
|
@@ -31,11 +31,11 @@ const GradientButton = styled__default.default(designSystem.Button)`
|
|
|
31
31
|
`;
|
|
32
32
|
const SecondaryButton = styled__default.default(designSystem.Button)`
|
|
33
33
|
&& {
|
|
34
|
-
background:
|
|
34
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
35
35
|
color: var(--colors-secondary600, #7C3AED);
|
|
36
36
|
font-weight: 600;
|
|
37
37
|
border: 2px solid transparent;
|
|
38
|
-
background-image: linear-gradient(
|
|
38
|
+
background-image: linear-gradient(${(p) => p.theme.colors.neutral0}, ${(p) => p.theme.colors.neutral0}), linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
|
|
39
39
|
background-origin: border-box;
|
|
40
40
|
background-clip: padding-box, border-box;
|
|
41
41
|
padding: 10px 20px;
|
|
@@ -4,7 +4,7 @@ import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { Flex, Typography, Box, Badge, Button } from "@strapi/design-system";
|
|
6
6
|
import { Check, Cross, Sparkle, Lightning, Rocket } from "@strapi/icons";
|
|
7
|
-
import { a as pluginId } from "./index-
|
|
7
|
+
import { a as pluginId } from "./index-B0wQeSSu.mjs";
|
|
8
8
|
const Container = styled(Box)`
|
|
9
9
|
padding: 32px;
|
|
10
10
|
max-width: 1400px;
|
|
@@ -48,7 +48,7 @@ const TierWrapper = styled(Box)`
|
|
|
48
48
|
display: flex;
|
|
49
49
|
`;
|
|
50
50
|
const TierCard = styled(Box)`
|
|
51
|
-
background:
|
|
51
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
52
52
|
border-radius: 16px;
|
|
53
53
|
padding: 32px;
|
|
54
54
|
border: 2px solid ${(props) => props.$featured ? "var(--colors-primary600, #0EA5E9)" : "rgba(128, 128, 128, 0.2)"};
|
|
@@ -6,7 +6,7 @@ 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-
|
|
9
|
+
const index = require("./index-BEh2DizI.js");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
11
11
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
12
12
|
const Container = styled__default.default(designSystem.Box)`
|
|
@@ -52,7 +52,7 @@ const TierWrapper = styled__default.default(designSystem.Box)`
|
|
|
52
52
|
display: flex;
|
|
53
53
|
`;
|
|
54
54
|
const TierCard = styled__default.default(designSystem.Box)`
|
|
55
|
-
background:
|
|
55
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
56
56
|
border-radius: 16px;
|
|
57
57
|
padding: 32px;
|
|
58
58
|
border: 2px solid ${(props) => props.$featured ? "var(--colors-primary600, #0EA5E9)" : "rgba(128, 128, 128, 0.2)"};
|
|
@@ -121,7 +121,7 @@ const BlockedWarning = styled(Box)`
|
|
|
121
121
|
`;
|
|
122
122
|
const SessionCard = styled(Box)`
|
|
123
123
|
padding: 16px;
|
|
124
|
-
background:
|
|
124
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
125
125
|
border-radius: 10px;
|
|
126
126
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
127
127
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
@@ -173,7 +173,7 @@ const ActionButton = styled.button`
|
|
|
173
173
|
transition: all 0.2s ease;
|
|
174
174
|
|
|
175
175
|
${(props) => props.$variant === "danger" && `
|
|
176
|
-
background:
|
|
176
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
177
177
|
color: var(--colors-danger600, #DC2626);
|
|
178
178
|
border: 2px solid var(--colors-danger600, #DC2626);
|
|
179
179
|
|
|
@@ -184,7 +184,7 @@ const ActionButton = styled.button`
|
|
|
184
184
|
`}
|
|
185
185
|
|
|
186
186
|
${(props) => props.$variant === "success" && `
|
|
187
|
-
background:
|
|
187
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
188
188
|
color: var(--colors-success600, #16A34A);
|
|
189
189
|
border: 2px solid var(--colors-success600, #16A34A);
|
|
190
190
|
|
|
@@ -440,7 +440,7 @@ const index = {
|
|
|
440
440
|
id: `${pluginId}.plugin.name`,
|
|
441
441
|
defaultMessage: pluginPkg.strapi.displayName
|
|
442
442
|
},
|
|
443
|
-
Component: () => import("./App-
|
|
443
|
+
Component: () => import("./App-BkFz8R3I.mjs")
|
|
444
444
|
});
|
|
445
445
|
app.createSettingSection(
|
|
446
446
|
{
|
|
@@ -456,7 +456,7 @@ const index = {
|
|
|
456
456
|
},
|
|
457
457
|
id: "upgrade",
|
|
458
458
|
to: `${pluginId}/upgrade`,
|
|
459
|
-
Component: () => import("./UpgradePage-
|
|
459
|
+
Component: () => import("./UpgradePage-2mV2iqDM.mjs")
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
intlLabel: {
|
|
@@ -465,7 +465,7 @@ const index = {
|
|
|
465
465
|
},
|
|
466
466
|
id: "general",
|
|
467
467
|
to: `${pluginId}/general`,
|
|
468
|
-
Component: () => import("./Settings-
|
|
468
|
+
Component: () => import("./Settings-BfKDErt5.mjs")
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
471
|
intlLabel: {
|
|
@@ -474,7 +474,7 @@ const index = {
|
|
|
474
474
|
},
|
|
475
475
|
id: "analytics",
|
|
476
476
|
to: `${pluginId}/analytics`,
|
|
477
|
-
Component: () => import("./Analytics-
|
|
477
|
+
Component: () => import("./Analytics-CFlATYIp.mjs")
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
intlLabel: {
|
|
@@ -483,7 +483,7 @@ const index = {
|
|
|
483
483
|
},
|
|
484
484
|
id: "license",
|
|
485
485
|
to: `${pluginId}/license`,
|
|
486
|
-
Component: () => import("./License-
|
|
486
|
+
Component: () => import("./License-BnbIePhc.mjs")
|
|
487
487
|
}
|
|
488
488
|
]
|
|
489
489
|
);
|
|
@@ -501,7 +501,7 @@ const index = {
|
|
|
501
501
|
defaultMessage: "Online Users"
|
|
502
502
|
},
|
|
503
503
|
component: async () => {
|
|
504
|
-
const component = await import("./OnlineUsersWidget
|
|
504
|
+
const component = await import("./OnlineUsersWidget-eBwttUiU.mjs");
|
|
505
505
|
return component.default;
|
|
506
506
|
},
|
|
507
507
|
id: "online-users-widget",
|
|
@@ -124,7 +124,7 @@ const BlockedWarning = styled__default.default(designSystem.Box)`
|
|
|
124
124
|
`;
|
|
125
125
|
const SessionCard = styled__default.default(designSystem.Box)`
|
|
126
126
|
padding: 16px;
|
|
127
|
-
background:
|
|
127
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
128
128
|
border-radius: 10px;
|
|
129
129
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
130
130
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
@@ -176,7 +176,7 @@ const ActionButton = styled__default.default.button`
|
|
|
176
176
|
transition: all 0.2s ease;
|
|
177
177
|
|
|
178
178
|
${(props) => props.$variant === "danger" && `
|
|
179
|
-
background:
|
|
179
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
180
180
|
color: var(--colors-danger600, #DC2626);
|
|
181
181
|
border: 2px solid var(--colors-danger600, #DC2626);
|
|
182
182
|
|
|
@@ -187,7 +187,7 @@ const ActionButton = styled__default.default.button`
|
|
|
187
187
|
`}
|
|
188
188
|
|
|
189
189
|
${(props) => props.$variant === "success" && `
|
|
190
|
-
background:
|
|
190
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
191
191
|
color: var(--colors-success600, #16A34A);
|
|
192
192
|
border: 2px solid var(--colors-success600, #16A34A);
|
|
193
193
|
|
|
@@ -443,7 +443,7 @@ const index = {
|
|
|
443
443
|
id: `${pluginId}.plugin.name`,
|
|
444
444
|
defaultMessage: pluginPkg.strapi.displayName
|
|
445
445
|
},
|
|
446
|
-
Component: () => Promise.resolve().then(() => require("./App-
|
|
446
|
+
Component: () => Promise.resolve().then(() => require("./App-CrdNlRlL.js"))
|
|
447
447
|
});
|
|
448
448
|
app.createSettingSection(
|
|
449
449
|
{
|
|
@@ -459,7 +459,7 @@ const index = {
|
|
|
459
459
|
},
|
|
460
460
|
id: "upgrade",
|
|
461
461
|
to: `${pluginId}/upgrade`,
|
|
462
|
-
Component: () => Promise.resolve().then(() => require("./UpgradePage-
|
|
462
|
+
Component: () => Promise.resolve().then(() => require("./UpgradePage-B8kz6Cyz.js"))
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
intlLabel: {
|
|
@@ -468,7 +468,7 @@ const index = {
|
|
|
468
468
|
},
|
|
469
469
|
id: "general",
|
|
470
470
|
to: `${pluginId}/general`,
|
|
471
|
-
Component: () => Promise.resolve().then(() => require("./Settings-
|
|
471
|
+
Component: () => Promise.resolve().then(() => require("./Settings-Cy-6vah_.js"))
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
intlLabel: {
|
|
@@ -477,7 +477,7 @@ const index = {
|
|
|
477
477
|
},
|
|
478
478
|
id: "analytics",
|
|
479
479
|
to: `${pluginId}/analytics`,
|
|
480
|
-
Component: () => Promise.resolve().then(() => require("./Analytics-
|
|
480
|
+
Component: () => Promise.resolve().then(() => require("./Analytics-mFarhu5A.js"))
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
483
|
intlLabel: {
|
|
@@ -486,7 +486,7 @@ const index = {
|
|
|
486
486
|
},
|
|
487
487
|
id: "license",
|
|
488
488
|
to: `${pluginId}/license`,
|
|
489
|
-
Component: () => Promise.resolve().then(() => require("./License-
|
|
489
|
+
Component: () => Promise.resolve().then(() => require("./License-BI04KWfw.js"))
|
|
490
490
|
}
|
|
491
491
|
]
|
|
492
492
|
);
|
|
@@ -504,7 +504,7 @@ const index = {
|
|
|
504
504
|
defaultMessage: "Online Users"
|
|
505
505
|
},
|
|
506
506
|
component: async () => {
|
|
507
|
-
const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-
|
|
507
|
+
const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-D1B_2ge5.js"));
|
|
508
508
|
return component.default;
|
|
509
509
|
},
|
|
510
510
|
id: "online-users-widget",
|
|
@@ -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-
|
|
4
|
+
const index = require("./index-BEh2DizI.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-
|
|
3
|
+
import { a as pluginId } from "./index-B0wQeSSu.mjs";
|
|
4
4
|
const useLicense = () => {
|
|
5
5
|
const { get } = useFetchClient();
|
|
6
6
|
const [isPremium, setIsPremium] = useState(false);
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -199,14 +199,15 @@ const IV_LENGTH = 16;
|
|
|
199
199
|
function getEncryptionKey() {
|
|
200
200
|
const envKey = process.env.SESSION_ENCRYPTION_KEY;
|
|
201
201
|
if (envKey) {
|
|
202
|
-
|
|
203
|
-
return key2;
|
|
202
|
+
return crypto$1.createHash("sha256").update(envKey).digest();
|
|
204
203
|
}
|
|
205
|
-
const strapiKeys = process.env.APP_KEYS || process.env.API_TOKEN_SALT
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
const strapiKeys = process.env.APP_KEYS || process.env.API_TOKEN_SALT;
|
|
205
|
+
if (!strapiKeys) {
|
|
206
|
+
throw new Error(
|
|
207
|
+
"[magic-sessionmanager] No encryption key available. Set SESSION_ENCRYPTION_KEY in your .env file, or ensure APP_KEYS is configured."
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
return crypto$1.createHash("sha256").update(strapiKeys).digest();
|
|
210
211
|
}
|
|
211
212
|
function encryptToken$2(token) {
|
|
212
213
|
if (!token) return null;
|
|
@@ -1198,7 +1199,7 @@ var admin$1 = {
|
|
|
1198
1199
|
path: "/license/status",
|
|
1199
1200
|
handler: "license.getStatus",
|
|
1200
1201
|
config: {
|
|
1201
|
-
policies: []
|
|
1202
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1202
1203
|
}
|
|
1203
1204
|
},
|
|
1204
1205
|
{
|
|
@@ -1206,7 +1207,7 @@ var admin$1 = {
|
|
|
1206
1207
|
path: "/license/auto-create",
|
|
1207
1208
|
handler: "license.autoCreate",
|
|
1208
1209
|
config: {
|
|
1209
|
-
policies: []
|
|
1210
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1210
1211
|
}
|
|
1211
1212
|
},
|
|
1212
1213
|
{
|
|
@@ -1214,7 +1215,7 @@ var admin$1 = {
|
|
|
1214
1215
|
path: "/license/create",
|
|
1215
1216
|
handler: "license.createAndActivate",
|
|
1216
1217
|
config: {
|
|
1217
|
-
policies: []
|
|
1218
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1218
1219
|
}
|
|
1219
1220
|
},
|
|
1220
1221
|
{
|
|
@@ -1222,7 +1223,7 @@ var admin$1 = {
|
|
|
1222
1223
|
path: "/license/ping",
|
|
1223
1224
|
handler: "license.ping",
|
|
1224
1225
|
config: {
|
|
1225
|
-
policies: []
|
|
1226
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1226
1227
|
}
|
|
1227
1228
|
},
|
|
1228
1229
|
{
|
|
@@ -1230,7 +1231,7 @@ var admin$1 = {
|
|
|
1230
1231
|
path: "/license/store-key",
|
|
1231
1232
|
handler: "license.storeKey",
|
|
1232
1233
|
config: {
|
|
1233
|
-
policies: []
|
|
1234
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1234
1235
|
}
|
|
1235
1236
|
},
|
|
1236
1237
|
// Geolocation (Premium Feature)
|
|
@@ -1817,6 +1818,11 @@ var session$3 = {
|
|
|
1817
1818
|
if (!ipAddress) {
|
|
1818
1819
|
return ctx.badRequest("IP address is required");
|
|
1819
1820
|
}
|
|
1821
|
+
const IPV4_REGEX = /^(\d{1,3}\.){3}\d{1,3}$/;
|
|
1822
|
+
const IPV6_REGEX = /^[0-9a-fA-F:]+$/;
|
|
1823
|
+
if (!IPV4_REGEX.test(ipAddress) && !IPV6_REGEX.test(ipAddress)) {
|
|
1824
|
+
return ctx.badRequest("Invalid IP address format");
|
|
1825
|
+
}
|
|
1820
1826
|
const licenseGuard2 = strapi.plugin("magic-sessionmanager").service("license-guard");
|
|
1821
1827
|
const pluginStore = strapi.store({
|
|
1822
1828
|
type: "plugin",
|
|
@@ -2740,7 +2746,7 @@ var session$1 = ({ strapi: strapi2 }) => {
|
|
|
2740
2746
|
}
|
|
2741
2747
|
};
|
|
2742
2748
|
};
|
|
2743
|
-
const version$1 = "4.4.
|
|
2749
|
+
const version$1 = "4.4.4";
|
|
2744
2750
|
const require$$2 = {
|
|
2745
2751
|
version: version$1
|
|
2746
2752
|
};
|
package/dist/server/index.mjs
CHANGED
|
@@ -186,14 +186,15 @@ const IV_LENGTH = 16;
|
|
|
186
186
|
function getEncryptionKey() {
|
|
187
187
|
const envKey = process.env.SESSION_ENCRYPTION_KEY;
|
|
188
188
|
if (envKey) {
|
|
189
|
-
|
|
190
|
-
return key2;
|
|
189
|
+
return crypto$1.createHash("sha256").update(envKey).digest();
|
|
191
190
|
}
|
|
192
|
-
const strapiKeys = process.env.APP_KEYS || process.env.API_TOKEN_SALT
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
const strapiKeys = process.env.APP_KEYS || process.env.API_TOKEN_SALT;
|
|
192
|
+
if (!strapiKeys) {
|
|
193
|
+
throw new Error(
|
|
194
|
+
"[magic-sessionmanager] No encryption key available. Set SESSION_ENCRYPTION_KEY in your .env file, or ensure APP_KEYS is configured."
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
return crypto$1.createHash("sha256").update(strapiKeys).digest();
|
|
197
198
|
}
|
|
198
199
|
function encryptToken$2(token) {
|
|
199
200
|
if (!token) return null;
|
|
@@ -1185,7 +1186,7 @@ var admin$1 = {
|
|
|
1185
1186
|
path: "/license/status",
|
|
1186
1187
|
handler: "license.getStatus",
|
|
1187
1188
|
config: {
|
|
1188
|
-
policies: []
|
|
1189
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1189
1190
|
}
|
|
1190
1191
|
},
|
|
1191
1192
|
{
|
|
@@ -1193,7 +1194,7 @@ var admin$1 = {
|
|
|
1193
1194
|
path: "/license/auto-create",
|
|
1194
1195
|
handler: "license.autoCreate",
|
|
1195
1196
|
config: {
|
|
1196
|
-
policies: []
|
|
1197
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1197
1198
|
}
|
|
1198
1199
|
},
|
|
1199
1200
|
{
|
|
@@ -1201,7 +1202,7 @@ var admin$1 = {
|
|
|
1201
1202
|
path: "/license/create",
|
|
1202
1203
|
handler: "license.createAndActivate",
|
|
1203
1204
|
config: {
|
|
1204
|
-
policies: []
|
|
1205
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1205
1206
|
}
|
|
1206
1207
|
},
|
|
1207
1208
|
{
|
|
@@ -1209,7 +1210,7 @@ var admin$1 = {
|
|
|
1209
1210
|
path: "/license/ping",
|
|
1210
1211
|
handler: "license.ping",
|
|
1211
1212
|
config: {
|
|
1212
|
-
policies: []
|
|
1213
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1213
1214
|
}
|
|
1214
1215
|
},
|
|
1215
1216
|
{
|
|
@@ -1217,7 +1218,7 @@ var admin$1 = {
|
|
|
1217
1218
|
path: "/license/store-key",
|
|
1218
1219
|
handler: "license.storeKey",
|
|
1219
1220
|
config: {
|
|
1220
|
-
policies: []
|
|
1221
|
+
policies: ["admin::isAuthenticatedAdmin"]
|
|
1221
1222
|
}
|
|
1222
1223
|
},
|
|
1223
1224
|
// Geolocation (Premium Feature)
|
|
@@ -1804,6 +1805,11 @@ var session$3 = {
|
|
|
1804
1805
|
if (!ipAddress) {
|
|
1805
1806
|
return ctx.badRequest("IP address is required");
|
|
1806
1807
|
}
|
|
1808
|
+
const IPV4_REGEX = /^(\d{1,3}\.){3}\d{1,3}$/;
|
|
1809
|
+
const IPV6_REGEX = /^[0-9a-fA-F:]+$/;
|
|
1810
|
+
if (!IPV4_REGEX.test(ipAddress) && !IPV6_REGEX.test(ipAddress)) {
|
|
1811
|
+
return ctx.badRequest("Invalid IP address format");
|
|
1812
|
+
}
|
|
1807
1813
|
const licenseGuard2 = strapi.plugin("magic-sessionmanager").service("license-guard");
|
|
1808
1814
|
const pluginStore = strapi.store({
|
|
1809
1815
|
type: "plugin",
|
|
@@ -2727,7 +2733,7 @@ var session$1 = ({ strapi: strapi2 }) => {
|
|
|
2727
2733
|
}
|
|
2728
2734
|
};
|
|
2729
2735
|
};
|
|
2730
|
-
const version$1 = "4.4.
|
|
2736
|
+
const version$1 = "4.4.4";
|
|
2731
2737
|
const require$$2 = {
|
|
2732
2738
|
version: version$1
|
|
2733
2739
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.4.
|
|
2
|
+
"version": "4.4.5",
|
|
3
3
|
"keywords": [
|
|
4
4
|
"strapi",
|
|
5
5
|
"strapi-plugin",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@semantic-release/github": "^11.0.2",
|
|
54
54
|
"@semantic-release/npm": "^12.0.1",
|
|
55
55
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
56
|
-
"@strapi/strapi": "^5.
|
|
56
|
+
"@strapi/strapi": "^5.36.0",
|
|
57
57
|
"@strapi/sdk-plugin": "^5.3.2",
|
|
58
58
|
"prettier": "^3.6.2",
|
|
59
59
|
"react": "^18.3.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"styled-components": "^6.3.8"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@strapi/strapi": "^5.
|
|
65
|
+
"@strapi/strapi": "^5.36.0",
|
|
66
66
|
"@strapi/sdk-plugin": "^5.3.2",
|
|
67
67
|
"react": "^18.3.1",
|
|
68
68
|
"react-dom": "^18.3.1",
|