strapi-plugin-magic-link-v5 5.3.8 → 5.3.9
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-DFO_GC1R.js → index-BTazJCLp.js} +1 -1
- package/dist/_chunks/{index-jTx04z3R.js → index-ClkHQjro.js} +1 -1
- package/dist/_chunks/{index-BBKa6A2s.mjs → index-DSqOwGld.mjs} +1 -1
- package/dist/_chunks/{index-Qgh8CPXr.js → index-Ddh0lQxN.js} +3 -3
- package/dist/_chunks/{index-VI--ZF21.js → index-Dno_sLco.js} +19 -22
- package/dist/_chunks/{index-B-PgbJ5D.mjs → index-HXipepeY.mjs} +20 -23
- package/dist/_chunks/{index-D4Wkw6ag.mjs → index-Z1X4GMXV.mjs} +3 -3
- package/dist/_chunks/{index-gLtsuNYy.mjs → index-nzjaxE_3.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-Ddh0lQxN.js");
|
|
11
11
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
12
12
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
13
13
|
const theme = {
|
|
@@ -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-Ddh0lQxN.js");
|
|
11
11
|
const admin = require("@strapi/strapi/admin");
|
|
12
12
|
const LicenseGuard = require("./LicenseGuard-BEEd9IpN.js");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -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, VisuallyHidden, Main } from "@strapi/design-system";
|
|
7
7
|
import { Cross, Sparkle, Check, Shield, Clock, Lock, Trash, ArrowClockwise, CaretDown, User, Monitor, Calendar, Plus, Earth, WarningCircle, Server, Eye, Mail, Cog, Key, Link } from "@strapi/icons";
|
|
8
|
-
import { g as getTrad, P as PLUGIN_ID } from "./index-
|
|
8
|
+
import { g as getTrad, P as PLUGIN_ID } from "./index-Z1X4GMXV.mjs";
|
|
9
9
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
10
10
|
import { L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-B_r3b1Vh.mjs";
|
|
11
11
|
const CreateTokenModal = ({ isOpen, onClose, onSubmit, formData, setFormData }) => {
|
|
@@ -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-ClkHQjro.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-Dno_sLco.js"
|
|
87
87
|
)),
|
|
88
88
|
permissions: pluginPermissions.readSettings
|
|
89
89
|
},
|
|
@@ -122,7 +122,7 @@ const index = {
|
|
|
122
122
|
to: `${PLUGIN_ID}/whatsapp`,
|
|
123
123
|
Component: () => Promise.resolve().then(() => require(
|
|
124
124
|
/* webpackChunkName: "magic-link-whatsapp" */
|
|
125
|
-
"./index-
|
|
125
|
+
"./index-BTazJCLp.js"
|
|
126
126
|
)),
|
|
127
127
|
permissions: []
|
|
128
128
|
}
|
|
@@ -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-Ddh0lQxN.js");
|
|
11
11
|
const LicenseGuard = require("./LicenseGuard-BEEd9IpN.js");
|
|
12
12
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
13
13
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1060,11 +1060,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1060
1060
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 4, children: [
|
|
1061
1061
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.enabled, $statusLabel: settings.enabled ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1062
1062
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1063
|
-
designSystem.
|
|
1063
|
+
designSystem.Switch,
|
|
1064
1064
|
{
|
|
1065
1065
|
checked: settings.enabled,
|
|
1066
|
-
onCheckedChange: (checked) => updateSetting("enabled", checked)
|
|
1067
|
-
size: "L"
|
|
1066
|
+
onCheckedChange: (checked) => updateSetting("enabled", checked)
|
|
1068
1067
|
}
|
|
1069
1068
|
) }),
|
|
1070
1069
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
@@ -1074,11 +1073,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1074
1073
|
] }) }) }),
|
|
1075
1074
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.createUserIfNotExists, $statusLabel: settings.createUserIfNotExists ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1076
1075
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1077
|
-
designSystem.
|
|
1076
|
+
designSystem.Switch,
|
|
1078
1077
|
{
|
|
1079
1078
|
checked: settings.createUserIfNotExists,
|
|
1080
|
-
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked)
|
|
1081
|
-
size: "L"
|
|
1079
|
+
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked)
|
|
1082
1080
|
}
|
|
1083
1081
|
) }),
|
|
1084
1082
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
@@ -1088,11 +1086,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1088
1086
|
] }) }) }),
|
|
1089
1087
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.stays_valid, $statusLabel: settings.stays_valid ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1090
1088
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1091
|
-
designSystem.
|
|
1089
|
+
designSystem.Switch,
|
|
1092
1090
|
{
|
|
1093
1091
|
checked: settings.stays_valid,
|
|
1094
|
-
onCheckedChange: (checked) => updateSetting("stays_valid", checked)
|
|
1095
|
-
size: "L"
|
|
1092
|
+
onCheckedChange: (checked) => updateSetting("stays_valid", checked)
|
|
1096
1093
|
}
|
|
1097
1094
|
) }),
|
|
1098
1095
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
@@ -1294,7 +1291,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1294
1291
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px", marginTop: "8px" }, children: "Wird in der WhatsApp-Nachricht als App-Name angezeigt." })
|
|
1295
1292
|
] }) }),
|
|
1296
1293
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.whatsapp_debug, $statusLabel: settings.whatsapp_debug ? "DEBUG" : "OFF", onClick: () => updateSetting("whatsapp_debug", !settings.whatsapp_debug), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 3, alignItems: "center", children: [
|
|
1297
|
-
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
|
1294
|
+
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Switch, { checked: settings.whatsapp_debug, onCheckedChange: (checked) => updateSetting("whatsapp_debug", checked) }) }),
|
|
1298
1295
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
1299
1296
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", children: "Debug Mode" }),
|
|
1300
1297
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px" }, children: "Aktiviert ausfuehrliche WhatsApp-Logs" })
|
|
@@ -1342,7 +1339,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1342
1339
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 4, children: [
|
|
1343
1340
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.verify_email, $statusLabel: settings.verify_email ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1344
1341
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1345
|
-
designSystem.
|
|
1342
|
+
designSystem.Switch,
|
|
1346
1343
|
{
|
|
1347
1344
|
checked: settings.verify_email,
|
|
1348
1345
|
onCheckedChange: (checked) => updateSetting("verify_email", checked),
|
|
@@ -1356,7 +1353,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1356
1353
|
] }) }) }),
|
|
1357
1354
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.welcome_email, $statusLabel: settings.welcome_email ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1358
1355
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1359
|
-
designSystem.
|
|
1356
|
+
designSystem.Switch,
|
|
1360
1357
|
{
|
|
1361
1358
|
checked: settings.welcome_email,
|
|
1362
1359
|
onCheckedChange: (checked) => updateSetting("welcome_email", checked),
|
|
@@ -1370,7 +1367,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1370
1367
|
] }) }) }),
|
|
1371
1368
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.use_jwt_token, $statusLabel: settings.use_jwt_token ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1372
1369
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1373
|
-
designSystem.
|
|
1370
|
+
designSystem.Switch,
|
|
1374
1371
|
{
|
|
1375
1372
|
checked: settings.use_jwt_token,
|
|
1376
1373
|
onCheckedChange: (checked) => updateSetting("use_jwt_token", checked),
|
|
@@ -1384,7 +1381,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1384
1381
|
] }) }) }),
|
|
1385
1382
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.store_login_info, $statusLabel: settings.store_login_info ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
1386
1383
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1387
|
-
designSystem.
|
|
1384
|
+
designSystem.Switch,
|
|
1388
1385
|
{
|
|
1389
1386
|
checked: settings.store_login_info,
|
|
1390
1387
|
onCheckedChange: (checked) => updateSetting("store_login_info", checked),
|
|
@@ -1603,7 +1600,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1603
1600
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, style: { marginBottom: "8px" }, children: [
|
|
1604
1601
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", style: { fontSize: "15px" }, children: "Use Email Designer Template" }),
|
|
1605
1602
|
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.use_email_designer || false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1606
|
-
designSystem.
|
|
1603
|
+
designSystem.Switch,
|
|
1607
1604
|
{
|
|
1608
1605
|
checked: settings.use_email_designer || false,
|
|
1609
1606
|
onCheckedChange: (checked) => updateSetting("use_email_designer", checked)
|
|
@@ -1743,7 +1740,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1743
1740
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 3, style: { marginBottom: "8px" }, children: [
|
|
1744
1741
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", style: { fontSize: "15px" }, children: "Use MagicMail for Sending" }),
|
|
1745
1742
|
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.use_magic_mail || false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1746
|
-
designSystem.
|
|
1743
|
+
designSystem.Switch,
|
|
1747
1744
|
{
|
|
1748
1745
|
checked: settings.use_magic_mail || false,
|
|
1749
1746
|
onCheckedChange: (checked) => updateSetting("use_magic_mail", checked)
|
|
@@ -2213,7 +2210,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2213
2210
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { marginBottom: "20px", display: "block", fontSize: "12px" }, children: formatMessage({ id: index.getTrad("settings.advanced.subtitle") }) }),
|
|
2214
2211
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 6, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.allow_magic_links_on_public_registration, $statusLabel: settings.allow_magic_links_on_public_registration ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
2215
2212
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2216
|
-
designSystem.
|
|
2213
|
+
designSystem.Switch,
|
|
2217
2214
|
{
|
|
2218
2215
|
checked: settings.allow_magic_links_on_public_registration,
|
|
2219
2216
|
onCheckedChange: (checked) => updateSetting("allow_magic_links_on_public_registration", checked),
|
|
@@ -2690,7 +2687,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2690
2687
|
] })
|
|
2691
2688
|
] }),
|
|
2692
2689
|
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.totp_as_primary_auth, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2693
|
-
designSystem.
|
|
2690
|
+
designSystem.Switch,
|
|
2694
2691
|
{
|
|
2695
2692
|
checked: settings.totp_as_primary_auth || false,
|
|
2696
2693
|
onCheckedChange: (checked) => {
|
|
@@ -2809,7 +2806,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2809
2806
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { marginBottom: "20px", display: "block", textAlign: "center", fontSize: "12px" }, children: formatMessage({ id: index.getTrad("settings.rateLimit.subtitle") }) }),
|
|
2810
2807
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Root, { gap: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.rate_limit_enabled, $statusLabel: settings.rate_limit_enabled ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
2811
2808
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2812
|
-
designSystem.
|
|
2809
|
+
designSystem.Switch,
|
|
2813
2810
|
{
|
|
2814
2811
|
checked: settings.rate_limit_enabled,
|
|
2815
2812
|
onCheckedChange: (checked) => updateSetting("rate_limit_enabled", checked),
|
|
@@ -2931,7 +2928,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2931
2928
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 6, children: [
|
|
2932
2929
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.passwordlessCompatibility, $statusLabel: settings.passwordlessCompatibility ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
2933
2930
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2934
|
-
designSystem.
|
|
2931
|
+
designSystem.Switch,
|
|
2935
2932
|
{
|
|
2936
2933
|
checked: settings.passwordlessCompatibility,
|
|
2937
2934
|
onCheckedChange: (checked) => updateSetting("passwordlessCompatibility", checked),
|
|
@@ -2962,7 +2959,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2962
2959
|
] }) }) }),
|
|
2963
2960
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.emailDesignerCompatibility, $statusLabel: settings.emailDesignerCompatibility ? statusActive : statusInactive, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, children: [
|
|
2964
2961
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2965
|
-
designSystem.
|
|
2962
|
+
designSystem.Switch,
|
|
2966
2963
|
{
|
|
2967
2964
|
checked: settings.emailDesignerCompatibility,
|
|
2968
2965
|
onCheckedChange: (checked) => updateSetting("emailDesignerCompatibility", checked),
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useCallback, useEffect } from "react";
|
|
3
3
|
import styled, { keyframes } from "styled-components";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import { Box, Typography, Flex, Button, Accordion, SingleSelect, SingleSelectOption, Grid,
|
|
5
|
+
import { Box, Typography, Flex, Button, Accordion, SingleSelect, SingleSelectOption, Grid, Switch, NumberInput, TextInput, Divider, Textarea, Badge } from "@strapi/design-system";
|
|
6
6
|
import { Check, Cog, Lightning, Shield, Mail, CheckCircle, Code, Link, Lock, Key } 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-Z1X4GMXV.mjs";
|
|
9
9
|
import { u as usePluginLanguage, L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-B_r3b1Vh.mjs";
|
|
10
10
|
const EMAIL_TEMPLATES = {
|
|
11
11
|
modern: {
|
|
@@ -1056,11 +1056,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1056
1056
|
/* @__PURE__ */ jsxs(Grid.Root, { gap: 4, children: [
|
|
1057
1057
|
/* @__PURE__ */ jsx(Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.enabled, $statusLabel: settings.enabled ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1058
1058
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1059
|
-
|
|
1059
|
+
Switch,
|
|
1060
1060
|
{
|
|
1061
1061
|
checked: settings.enabled,
|
|
1062
|
-
onCheckedChange: (checked) => updateSetting("enabled", checked)
|
|
1063
|
-
size: "L"
|
|
1062
|
+
onCheckedChange: (checked) => updateSetting("enabled", checked)
|
|
1064
1063
|
}
|
|
1065
1064
|
) }),
|
|
1066
1065
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -1070,11 +1069,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1070
1069
|
] }) }) }),
|
|
1071
1070
|
/* @__PURE__ */ jsx(Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.createUserIfNotExists, $statusLabel: settings.createUserIfNotExists ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1072
1071
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1073
|
-
|
|
1072
|
+
Switch,
|
|
1074
1073
|
{
|
|
1075
1074
|
checked: settings.createUserIfNotExists,
|
|
1076
|
-
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked)
|
|
1077
|
-
size: "L"
|
|
1075
|
+
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked)
|
|
1078
1076
|
}
|
|
1079
1077
|
) }),
|
|
1080
1078
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -1084,11 +1082,10 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1084
1082
|
] }) }) }),
|
|
1085
1083
|
/* @__PURE__ */ jsx(Grid.Item, { col: 4, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.stays_valid, $statusLabel: settings.stays_valid ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1086
1084
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1087
|
-
|
|
1085
|
+
Switch,
|
|
1088
1086
|
{
|
|
1089
1087
|
checked: settings.stays_valid,
|
|
1090
|
-
onCheckedChange: (checked) => updateSetting("stays_valid", checked)
|
|
1091
|
-
size: "L"
|
|
1088
|
+
onCheckedChange: (checked) => updateSetting("stays_valid", checked)
|
|
1092
1089
|
}
|
|
1093
1090
|
) }),
|
|
1094
1091
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -1290,7 +1287,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1290
1287
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px", marginTop: "8px" }, children: "Wird in der WhatsApp-Nachricht als App-Name angezeigt." })
|
|
1291
1288
|
] }) }),
|
|
1292
1289
|
/* @__PURE__ */ jsx(Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.whatsapp_debug, $statusLabel: settings.whatsapp_debug ? "DEBUG" : "OFF", onClick: () => updateSetting("whatsapp_debug", !settings.whatsapp_debug), children: /* @__PURE__ */ jsxs(Flex, { gap: 3, alignItems: "center", children: [
|
|
1293
|
-
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsx(
|
|
1290
|
+
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsx(Switch, { checked: settings.whatsapp_debug, onCheckedChange: (checked) => updateSetting("whatsapp_debug", checked) }) }),
|
|
1294
1291
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1295
1292
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "bold", children: "Debug Mode" }),
|
|
1296
1293
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px" }, children: "Aktiviert ausfuehrliche WhatsApp-Logs" })
|
|
@@ -1338,7 +1335,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1338
1335
|
/* @__PURE__ */ jsxs(Grid.Root, { gap: 4, children: [
|
|
1339
1336
|
/* @__PURE__ */ jsx(Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.verify_email, $statusLabel: settings.verify_email ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1340
1337
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1341
|
-
|
|
1338
|
+
Switch,
|
|
1342
1339
|
{
|
|
1343
1340
|
checked: settings.verify_email,
|
|
1344
1341
|
onCheckedChange: (checked) => updateSetting("verify_email", checked),
|
|
@@ -1352,7 +1349,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1352
1349
|
] }) }) }),
|
|
1353
1350
|
/* @__PURE__ */ jsx(Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.welcome_email, $statusLabel: settings.welcome_email ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1354
1351
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1355
|
-
|
|
1352
|
+
Switch,
|
|
1356
1353
|
{
|
|
1357
1354
|
checked: settings.welcome_email,
|
|
1358
1355
|
onCheckedChange: (checked) => updateSetting("welcome_email", checked),
|
|
@@ -1366,7 +1363,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1366
1363
|
] }) }) }),
|
|
1367
1364
|
/* @__PURE__ */ jsx(Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.use_jwt_token, $statusLabel: settings.use_jwt_token ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1368
1365
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1369
|
-
|
|
1366
|
+
Switch,
|
|
1370
1367
|
{
|
|
1371
1368
|
checked: settings.use_jwt_token,
|
|
1372
1369
|
onCheckedChange: (checked) => updateSetting("use_jwt_token", checked),
|
|
@@ -1380,7 +1377,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1380
1377
|
] }) }) }),
|
|
1381
1378
|
/* @__PURE__ */ jsx(Grid.Item, { col: 3, s: 6, xs: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.store_login_info, $statusLabel: settings.store_login_info ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
1382
1379
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
1383
|
-
|
|
1380
|
+
Switch,
|
|
1384
1381
|
{
|
|
1385
1382
|
checked: settings.store_login_info,
|
|
1386
1383
|
onCheckedChange: (checked) => updateSetting("store_login_info", checked),
|
|
@@ -1599,7 +1596,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1599
1596
|
/* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, style: { marginBottom: "8px" }, children: [
|
|
1600
1597
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", fontWeight: "bold", style: { fontSize: "15px" }, children: "Use Email Designer Template" }),
|
|
1601
1598
|
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.use_email_designer || false, children: /* @__PURE__ */ jsx(
|
|
1602
|
-
|
|
1599
|
+
Switch,
|
|
1603
1600
|
{
|
|
1604
1601
|
checked: settings.use_email_designer || false,
|
|
1605
1602
|
onCheckedChange: (checked) => updateSetting("use_email_designer", checked)
|
|
@@ -1739,7 +1736,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1739
1736
|
/* @__PURE__ */ jsx(Grid.Item, { col: 12, children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 3, style: { marginBottom: "8px" }, children: [
|
|
1740
1737
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", fontWeight: "bold", style: { fontSize: "15px" }, children: "Use MagicMail for Sending" }),
|
|
1741
1738
|
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.use_magic_mail || false, children: /* @__PURE__ */ jsx(
|
|
1742
|
-
|
|
1739
|
+
Switch,
|
|
1743
1740
|
{
|
|
1744
1741
|
checked: settings.use_magic_mail || false,
|
|
1745
1742
|
onCheckedChange: (checked) => updateSetting("use_magic_mail", checked)
|
|
@@ -2209,7 +2206,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2209
2206
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { marginBottom: "20px", display: "block", fontSize: "12px" }, children: formatMessage({ id: getTrad("settings.advanced.subtitle") }) }),
|
|
2210
2207
|
/* @__PURE__ */ jsx(Grid.Root, { gap: 6, children: /* @__PURE__ */ jsx(Grid.Item, { col: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.allow_magic_links_on_public_registration, $statusLabel: settings.allow_magic_links_on_public_registration ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
2211
2208
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
2212
|
-
|
|
2209
|
+
Switch,
|
|
2213
2210
|
{
|
|
2214
2211
|
checked: settings.allow_magic_links_on_public_registration,
|
|
2215
2212
|
onCheckedChange: (checked) => updateSetting("allow_magic_links_on_public_registration", checked),
|
|
@@ -2686,7 +2683,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2686
2683
|
] })
|
|
2687
2684
|
] }),
|
|
2688
2685
|
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.totp_as_primary_auth, children: /* @__PURE__ */ jsx(
|
|
2689
|
-
|
|
2686
|
+
Switch,
|
|
2690
2687
|
{
|
|
2691
2688
|
checked: settings.totp_as_primary_auth || false,
|
|
2692
2689
|
onCheckedChange: (checked) => {
|
|
@@ -2805,7 +2802,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2805
2802
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { marginBottom: "20px", display: "block", textAlign: "center", fontSize: "12px" }, children: formatMessage({ id: getTrad("settings.rateLimit.subtitle") }) }),
|
|
2806
2803
|
/* @__PURE__ */ jsx(Grid.Root, { gap: 4, children: /* @__PURE__ */ jsx(Grid.Item, { col: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.rate_limit_enabled, $statusLabel: settings.rate_limit_enabled ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
2807
2804
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
2808
|
-
|
|
2805
|
+
Switch,
|
|
2809
2806
|
{
|
|
2810
2807
|
checked: settings.rate_limit_enabled,
|
|
2811
2808
|
onCheckedChange: (checked) => updateSetting("rate_limit_enabled", checked),
|
|
@@ -2927,7 +2924,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2927
2924
|
/* @__PURE__ */ jsxs(Grid.Root, { gap: 6, children: [
|
|
2928
2925
|
/* @__PURE__ */ jsx(Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.passwordlessCompatibility, $statusLabel: settings.passwordlessCompatibility ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
2929
2926
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
2930
|
-
|
|
2927
|
+
Switch,
|
|
2931
2928
|
{
|
|
2932
2929
|
checked: settings.passwordlessCompatibility,
|
|
2933
2930
|
onCheckedChange: (checked) => updateSetting("passwordlessCompatibility", checked),
|
|
@@ -2958,7 +2955,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2958
2955
|
] }) }) }),
|
|
2959
2956
|
/* @__PURE__ */ jsx(Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.emailDesignerCompatibility, $statusLabel: settings.emailDesignerCompatibility ? statusActive : statusInactive, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, children: [
|
|
2960
2957
|
/* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", style: { marginBottom: "8px" }, children: /* @__PURE__ */ jsx(
|
|
2961
|
-
|
|
2958
|
+
Switch,
|
|
2962
2959
|
{
|
|
2963
2960
|
checked: settings.emailDesignerCompatibility,
|
|
2964
2961
|
onCheckedChange: (checked) => updateSetting("emailDesignerCompatibility", checked),
|
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
},
|
|
60
60
|
Component: () => import(
|
|
61
61
|
/* webpackChunkName: "magic-link-tokens" */
|
|
62
|
-
"./index-
|
|
62
|
+
"./index-DSqOwGld.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-HXipepeY.mjs"
|
|
86
86
|
),
|
|
87
87
|
permissions: pluginPermissions.readSettings
|
|
88
88
|
},
|
|
@@ -121,7 +121,7 @@ const index = {
|
|
|
121
121
|
to: `${PLUGIN_ID}/whatsapp`,
|
|
122
122
|
Component: () => import(
|
|
123
123
|
/* webpackChunkName: "magic-link-whatsapp" */
|
|
124
|
-
"./index-
|
|
124
|
+
"./index-nzjaxE_3.mjs"
|
|
125
125
|
),
|
|
126
126
|
permissions: []
|
|
127
127
|
}
|
|
@@ -5,7 +5,7 @@ import { useIntl } from "react-intl";
|
|
|
5
5
|
import { Flex, Loader, Box, Typography, Button, TextInput, Badge } from "@strapi/design-system";
|
|
6
6
|
import { Phone, Check, Message, ArrowClockwise } 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-Z1X4GMXV.mjs";
|
|
9
9
|
const theme = {
|
|
10
10
|
colors: {
|
|
11
11
|
primary: { 700: "#075985", 100: "#E0F2FE", 50: "#F0F9FF" },
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/package.json
CHANGED