strapi-plugin-magic-link-v5 4.12.1 → 4.13.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.
- package/dist/_chunks/{index-2s3v3HKk.js → index-9axgDwY6.js} +13 -1
- package/dist/_chunks/{index-DTVWRZJF.mjs → index-B2ZjQYfN.mjs} +1 -1
- package/dist/_chunks/{index-CNlCOaU3.js → index-BEooM0qW.js} +1 -1
- package/dist/_chunks/{index-B_2J5ng6.mjs → index-C3olKpkj.mjs} +2 -2
- package/dist/_chunks/{index-iz8FYwVQ.mjs → index-D1V14pQg.mjs} +13 -1
- package/dist/_chunks/{index-B2Ja0FrH.js → index-D8VGvXnb.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +13 -5
- package/dist/server/index.mjs +13 -5
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const styled = require("styled-components");
|
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const designSystem = require("@strapi/design-system");
|
|
9
9
|
const icons = require("@strapi/icons");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-D8VGvXnb.js");
|
|
11
11
|
const admin = require("@strapi/strapi/admin");
|
|
12
12
|
const LicenseGuard = require("./LicenseGuard-CmMMPuWx.js");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -2035,6 +2035,9 @@ const float = styled.keyframes`
|
|
|
2035
2035
|
0%, 100% { transform: translateY(0px); }
|
|
2036
2036
|
50% { transform: translateY(-5px); }
|
|
2037
2037
|
`;
|
|
2038
|
+
const breakpoints = {
|
|
2039
|
+
mobile: "768px"
|
|
2040
|
+
};
|
|
2038
2041
|
const Container = styled__default.default(designSystem.Box)`
|
|
2039
2042
|
animation: ${fadeIn} ${theme.transitions.slow};
|
|
2040
2043
|
min-height: 100vh;
|
|
@@ -2042,12 +2045,21 @@ const Container = styled__default.default(designSystem.Box)`
|
|
|
2042
2045
|
margin: 0 auto;
|
|
2043
2046
|
padding: ${theme.spacing.xl} ${theme.spacing.lg} 0;
|
|
2044
2047
|
background: transparent;
|
|
2048
|
+
|
|
2049
|
+
@media (max-width: ${breakpoints.mobile}) {
|
|
2050
|
+
padding: ${theme.spacing.md} ${theme.spacing.sm} 0;
|
|
2051
|
+
}
|
|
2045
2052
|
`;
|
|
2046
2053
|
const Header = styled__default.default(designSystem.Box)`
|
|
2047
2054
|
background: linear-gradient(135deg,
|
|
2048
2055
|
${theme.colors.primary[600]} 0%,
|
|
2049
2056
|
${theme.colors.secondary[600]} 100%
|
|
2050
2057
|
);
|
|
2058
|
+
|
|
2059
|
+
@media (max-width: ${breakpoints.mobile}) {
|
|
2060
|
+
padding: ${theme.spacing.lg} ${theme.spacing.md} !important;
|
|
2061
|
+
border-radius: ${theme.borderRadius.md} !important;
|
|
2062
|
+
}
|
|
2051
2063
|
border-radius: ${theme.borderRadius.xl};
|
|
2052
2064
|
padding: ${theme.spacing.xl} ${theme.spacing["2xl"]};
|
|
2053
2065
|
margin-bottom: ${theme.spacing.xl};
|
|
@@ -5,7 +5,7 @@ import { useIntl } from "react-intl";
|
|
|
5
5
|
import { Box, Typography, Flex, Button, Accordion, SingleSelect, SingleSelectOption, Grid, Toggle, NumberInput, TextInput, Divider, Badge } from "@strapi/design-system";
|
|
6
6
|
import { Check, Cog, Shield, Mail, Code } from "@strapi/icons";
|
|
7
7
|
import { useNotification, useFetchClient } from "@strapi/strapi/admin";
|
|
8
|
-
import { g as getTrad } from "./index-
|
|
8
|
+
import { g as getTrad } from "./index-C3olKpkj.mjs";
|
|
9
9
|
import { u as usePluginLanguage, L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-CaYQ_9Dz.mjs";
|
|
10
10
|
const theme = {
|
|
11
11
|
colors: {
|
|
@@ -7,7 +7,7 @@ const reactIntl = require("react-intl");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const admin = require("@strapi/strapi/admin");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-D8VGvXnb.js");
|
|
11
11
|
const LicenseGuard = require("./LicenseGuard-CmMMPuWx.js");
|
|
12
12
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
13
13
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
},
|
|
60
60
|
Component: () => import(
|
|
61
61
|
/* webpackChunkName: "magic-link-tokens" */
|
|
62
|
-
"./index-
|
|
62
|
+
"./index-D1V14pQg.mjs"
|
|
63
63
|
),
|
|
64
64
|
permissions: []
|
|
65
65
|
// Leeres Array = keine Permission-Prüfung nötig
|
|
@@ -82,7 +82,7 @@ const index = {
|
|
|
82
82
|
to: `${PLUGIN_ID}/config`,
|
|
83
83
|
Component: () => import(
|
|
84
84
|
/* webpackChunkName: "magic-link-settings" */
|
|
85
|
-
"./index-
|
|
85
|
+
"./index-B2ZjQYfN.mjs"
|
|
86
86
|
),
|
|
87
87
|
permissions: pluginPermissions.readSettings
|
|
88
88
|
},
|
|
@@ -5,7 +5,7 @@ import styled, { keyframes, css } from "styled-components";
|
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Box, Flex, Typography, Button, TextInput, Textarea, Checkbox, IconButton, Loader, Searchbar, SingleSelect, SingleSelectOption, Thead, Tr, Th, Tbody, Td, Pagination, PreviousLink, PageLink, NextLink, Table, Badge, Main, VisuallyHidden } from "@strapi/design-system";
|
|
7
7
|
import { Cross, Sparkle, Check, Shield, Clock, Lock, Trash, ArrowClockwise, CaretDown, User, Monitor, Calendar, Plus, Earth, WarningCircle, Server, Cog, Key, Eye, Link } from "@strapi/icons";
|
|
8
|
-
import { g as getTrad } from "./index-
|
|
8
|
+
import { g as getTrad } from "./index-C3olKpkj.mjs";
|
|
9
9
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
10
10
|
import { L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-CaYQ_9Dz.mjs";
|
|
11
11
|
const CreateTokenModal = ({ isOpen, onClose, onSubmit, formData, setFormData }) => {
|
|
@@ -2031,6 +2031,9 @@ const float = keyframes`
|
|
|
2031
2031
|
0%, 100% { transform: translateY(0px); }
|
|
2032
2032
|
50% { transform: translateY(-5px); }
|
|
2033
2033
|
`;
|
|
2034
|
+
const breakpoints = {
|
|
2035
|
+
mobile: "768px"
|
|
2036
|
+
};
|
|
2034
2037
|
const Container = styled(Box)`
|
|
2035
2038
|
animation: ${fadeIn} ${theme.transitions.slow};
|
|
2036
2039
|
min-height: 100vh;
|
|
@@ -2038,12 +2041,21 @@ const Container = styled(Box)`
|
|
|
2038
2041
|
margin: 0 auto;
|
|
2039
2042
|
padding: ${theme.spacing.xl} ${theme.spacing.lg} 0;
|
|
2040
2043
|
background: transparent;
|
|
2044
|
+
|
|
2045
|
+
@media (max-width: ${breakpoints.mobile}) {
|
|
2046
|
+
padding: ${theme.spacing.md} ${theme.spacing.sm} 0;
|
|
2047
|
+
}
|
|
2041
2048
|
`;
|
|
2042
2049
|
const Header = styled(Box)`
|
|
2043
2050
|
background: linear-gradient(135deg,
|
|
2044
2051
|
${theme.colors.primary[600]} 0%,
|
|
2045
2052
|
${theme.colors.secondary[600]} 100%
|
|
2046
2053
|
);
|
|
2054
|
+
|
|
2055
|
+
@media (max-width: ${breakpoints.mobile}) {
|
|
2056
|
+
padding: ${theme.spacing.lg} ${theme.spacing.md} !important;
|
|
2057
|
+
border-radius: ${theme.borderRadius.md} !important;
|
|
2058
|
+
}
|
|
2047
2059
|
border-radius: ${theme.borderRadius.xl};
|
|
2048
2060
|
padding: ${theme.spacing.xl} ${theme.spacing["2xl"]};
|
|
2049
2061
|
margin-bottom: ${theme.spacing.xl};
|
|
@@ -60,7 +60,7 @@ const index = {
|
|
|
60
60
|
},
|
|
61
61
|
Component: () => Promise.resolve().then(() => require(
|
|
62
62
|
/* webpackChunkName: "magic-link-tokens" */
|
|
63
|
-
"./index-
|
|
63
|
+
"./index-9axgDwY6.js"
|
|
64
64
|
)),
|
|
65
65
|
permissions: []
|
|
66
66
|
// Leeres Array = keine Permission-Prüfung nötig
|
|
@@ -83,7 +83,7 @@ const index = {
|
|
|
83
83
|
to: `${PLUGIN_ID}/config`,
|
|
84
84
|
Component: () => Promise.resolve().then(() => require(
|
|
85
85
|
/* webpackChunkName: "magic-link-settings" */
|
|
86
|
-
"./index-
|
|
86
|
+
"./index-BEooM0qW.js"
|
|
87
87
|
)),
|
|
88
88
|
permissions: pluginPermissions.readSettings
|
|
89
89
|
},
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -190,10 +190,18 @@ Thanks.`,
|
|
|
190
190
|
});
|
|
191
191
|
const rateLimiter2 = strapi2.plugin("magic-link").service("rate-limiter");
|
|
192
192
|
setTimeout(() => {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
try {
|
|
194
|
+
rateLimiter2.cleanupExpired();
|
|
195
|
+
} catch (error2) {
|
|
196
|
+
strapi2.log.debug("Rate limit cleanup skipped - DB not ready");
|
|
197
|
+
}
|
|
198
|
+
}, 1e4);
|
|
195
199
|
setInterval(() => {
|
|
196
|
-
|
|
200
|
+
try {
|
|
201
|
+
rateLimiter2.cleanupExpired();
|
|
202
|
+
} catch (error2) {
|
|
203
|
+
strapi2.log.debug("Rate limit cleanup failed:", error2.message);
|
|
204
|
+
}
|
|
197
205
|
}, 30 * 60 * 1e3);
|
|
198
206
|
try {
|
|
199
207
|
const licenseGuardService = strapi2.plugin("magic-link").service("license-guard");
|
|
@@ -24736,11 +24744,11 @@ var licenseGuard$1 = ({ strapi: strapi2 }) => ({
|
|
|
24736
24744
|
strapi2.log.debug(`📡 License ping successful: ${data.data?.isActive ? "ACTIVE" : "INACTIVE"} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24737
24745
|
return data.data;
|
|
24738
24746
|
} else {
|
|
24739
|
-
strapi2.log.
|
|
24747
|
+
strapi2.log.debug(`⚠️ License ping failed: ${data.message || "Unknown error"} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24740
24748
|
return null;
|
|
24741
24749
|
}
|
|
24742
24750
|
} catch (error2) {
|
|
24743
|
-
strapi2.log.
|
|
24751
|
+
strapi2.log.debug(`License ping error: ${error2.message} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24744
24752
|
return null;
|
|
24745
24753
|
}
|
|
24746
24754
|
},
|
package/dist/server/index.mjs
CHANGED
|
@@ -158,10 +158,18 @@ Thanks.`,
|
|
|
158
158
|
});
|
|
159
159
|
const rateLimiter2 = strapi2.plugin("magic-link").service("rate-limiter");
|
|
160
160
|
setTimeout(() => {
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
try {
|
|
162
|
+
rateLimiter2.cleanupExpired();
|
|
163
|
+
} catch (error2) {
|
|
164
|
+
strapi2.log.debug("Rate limit cleanup skipped - DB not ready");
|
|
165
|
+
}
|
|
166
|
+
}, 1e4);
|
|
163
167
|
setInterval(() => {
|
|
164
|
-
|
|
168
|
+
try {
|
|
169
|
+
rateLimiter2.cleanupExpired();
|
|
170
|
+
} catch (error2) {
|
|
171
|
+
strapi2.log.debug("Rate limit cleanup failed:", error2.message);
|
|
172
|
+
}
|
|
165
173
|
}, 30 * 60 * 1e3);
|
|
166
174
|
try {
|
|
167
175
|
const licenseGuardService = strapi2.plugin("magic-link").service("license-guard");
|
|
@@ -24704,11 +24712,11 @@ var licenseGuard$1 = ({ strapi: strapi2 }) => ({
|
|
|
24704
24712
|
strapi2.log.debug(`📡 License ping successful: ${data.data?.isActive ? "ACTIVE" : "INACTIVE"} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24705
24713
|
return data.data;
|
|
24706
24714
|
} else {
|
|
24707
|
-
strapi2.log.
|
|
24715
|
+
strapi2.log.debug(`⚠️ License ping failed: ${data.message || "Unknown error"} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24708
24716
|
return null;
|
|
24709
24717
|
}
|
|
24710
24718
|
} catch (error2) {
|
|
24711
|
-
strapi2.log.
|
|
24719
|
+
strapi2.log.debug(`License ping error: ${error2.message} (Key: ${licenseKey?.substring(0, 8)}...)`);
|
|
24712
24720
|
return null;
|
|
24713
24721
|
}
|
|
24714
24722
|
},
|
package/package.json
CHANGED