strapi-plugin-magic-link-v5 4.13.2 → 4.14.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.
@@ -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-DhL5XylV.js");
10
+ const index = require("./index-Db_6V69C.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);
@@ -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-DkN9S9d_.mjs";
8
+ import { g as getTrad } from "./index-CTGphF6j.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 }) => {
@@ -2968,14 +2968,14 @@ const TokensProfessional = () => {
2968
2968
  /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: formatMessage({ id: getTrad("tokens.table.actions") }) }) })
2969
2969
  ] }) }),
2970
2970
  /* @__PURE__ */ jsx(Tbody, { children: paginatedTokens.map((token) => /* @__PURE__ */ jsxs(Tr, { children: [
2971
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
2971
+ /* @__PURE__ */ jsx(Td, { "data-label": "", children: /* @__PURE__ */ jsx(
2972
2972
  Checkbox,
2973
2973
  {
2974
2974
  checked: selectedTokens.includes(token.id),
2975
2975
  onCheckedChange: (checked) => handleSelectToken(token.id, checked)
2976
2976
  }
2977
2977
  ) }),
2978
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 2, children: [
2978
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.email") }), children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 2, children: [
2979
2979
  /* @__PURE__ */ jsx(
2980
2980
  Box,
2981
2981
  {
@@ -2997,7 +2997,7 @@ const TokensProfessional = () => {
2997
2997
  /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral600", children: token.user_id ? formatMessage({ id: getTrad("tokens.user.id") }, { id: token.user_id }) : formatMessage({ id: getTrad("tokens.user.new") }) })
2998
2998
  ] })
2999
2999
  ] }) }),
3000
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Box, { style: { maxWidth: "200px" }, children: /* @__PURE__ */ jsx(
3000
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.token") }), children: /* @__PURE__ */ jsx(Box, { style: { maxWidth: "200px" }, children: /* @__PURE__ */ jsx(
3001
3001
  Typography,
3002
3002
  {
3003
3003
  variant: "pi",
@@ -3020,12 +3020,12 @@ const TokensProfessional = () => {
3020
3020
  children: token.token
3021
3021
  }
3022
3022
  ) }) }),
3023
- /* @__PURE__ */ jsx(Td, { children: getStatusBadge(token) }),
3024
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 1, children: [
3023
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.status") }), children: getStatusBadge(token) }),
3024
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.created") }), children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 1, children: [
3025
3025
  /* @__PURE__ */ jsx(Calendar, { style: { width: "14px", height: "14px", color: theme.colors.neutral[500] } }),
3026
3026
  /* @__PURE__ */ jsx(Typography, { variant: "pi", children: formatDate(token.createdAt) })
3027
3027
  ] }) }),
3028
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 1, children: [
3028
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.expiresAt") }), children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 1, children: [
3029
3029
  /* @__PURE__ */ jsx(Clock, { style: { width: "14px", height: "14px", color: theme.colors.warning[500] } }),
3030
3030
  (() => {
3031
3031
  const formattedDate = formatDate(token.expires_at);
@@ -3047,7 +3047,7 @@ const TokensProfessional = () => {
3047
3047
  );
3048
3048
  })()
3049
3049
  ] }) }),
3050
- /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, { gap: 1, justifyContent: "flex-end", children: [
3050
+ /* @__PURE__ */ jsx(Td, { "data-label": formatMessage({ id: getTrad("tokens.table.actions") }), children: /* @__PURE__ */ jsxs(Flex, { gap: 1, justifyContent: "flex-end", children: [
3051
3051
  /* @__PURE__ */ jsx(
3052
3052
  IconButton,
3053
3053
  {
@@ -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-DhL5XylV.js");
10
+ const index = require("./index-Db_6V69C.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 };
@@ -2972,14 +2972,14 @@ const TokensProfessional = () => {
2972
2972
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: formatMessage({ id: index.getTrad("tokens.table.actions") }) }) })
2973
2973
  ] }) }),
2974
2974
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tbody, { children: paginatedTokens.map((token) => /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tr, { children: [
2975
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(
2975
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": "", children: /* @__PURE__ */ jsxRuntime.jsx(
2976
2976
  designSystem.Checkbox,
2977
2977
  {
2978
2978
  checked: selectedTokens.includes(token.id),
2979
2979
  onCheckedChange: (checked) => handleSelectToken(token.id, checked)
2980
2980
  }
2981
2981
  ) }),
2982
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 2, children: [
2982
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.email") }), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 2, children: [
2983
2983
  /* @__PURE__ */ jsxRuntime.jsx(
2984
2984
  designSystem.Box,
2985
2985
  {
@@ -3001,7 +3001,7 @@ const TokensProfessional = () => {
3001
3001
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "neutral600", children: token.user_id ? formatMessage({ id: index.getTrad("tokens.user.id") }, { id: token.user_id }) : formatMessage({ id: index.getTrad("tokens.user.new") }) })
3002
3002
  ] })
3003
3003
  ] }) }),
3004
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { style: { maxWidth: "200px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
3004
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.token") }), children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { style: { maxWidth: "200px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
3005
3005
  designSystem.Typography,
3006
3006
  {
3007
3007
  variant: "pi",
@@ -3024,12 +3024,12 @@ const TokensProfessional = () => {
3024
3024
  children: token.token
3025
3025
  }
3026
3026
  ) }) }),
3027
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: getStatusBadge(token) }),
3028
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 1, children: [
3027
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.status") }), children: getStatusBadge(token) }),
3028
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.created") }), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 1, children: [
3029
3029
  /* @__PURE__ */ jsxRuntime.jsx(icons.Calendar, { style: { width: "14px", height: "14px", color: theme.colors.neutral[500] } }),
3030
3030
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", children: formatDate(token.createdAt) })
3031
3031
  ] }) }),
3032
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 1, children: [
3032
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.expiresAt") }), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", gap: 1, children: [
3033
3033
  /* @__PURE__ */ jsxRuntime.jsx(icons.Clock, { style: { width: "14px", height: "14px", color: theme.colors.warning[500] } }),
3034
3034
  (() => {
3035
3035
  const formattedDate = formatDate(token.expires_at);
@@ -3051,7 +3051,7 @@ const TokensProfessional = () => {
3051
3051
  );
3052
3052
  })()
3053
3053
  ] }) }),
3054
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 1, justifyContent: "flex-end", children: [
3054
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { "data-label": formatMessage({ id: index.getTrad("tokens.table.actions") }), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 1, justifyContent: "flex-end", children: [
3055
3055
  /* @__PURE__ */ jsxRuntime.jsx(
3056
3056
  designSystem.IconButton,
3057
3057
  {
@@ -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-DkN9S9d_.mjs";
8
+ import { g as getTrad } from "./index-CTGphF6j.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: {
@@ -59,7 +59,7 @@ const index = {
59
59
  },
60
60
  Component: () => import(
61
61
  /* webpackChunkName: "magic-link-tokens" */
62
- "./index-CM1jcmjC.mjs"
62
+ "./index-BYz-rUD_.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-C-21KLAd.mjs"
85
+ "./index-CKsORHz7.mjs"
86
86
  ),
87
87
  permissions: pluginPermissions.readSettings
88
88
  },
@@ -60,7 +60,7 @@ const index = {
60
60
  },
61
61
  Component: () => Promise.resolve().then(() => require(
62
62
  /* webpackChunkName: "magic-link-tokens" */
63
- "./index-K0mbdMcq.js"
63
+ "./index-BkObaTjB.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-DJw1GIir.js"
86
+ "./index-BDjvRbO2.js"
87
87
  )),
88
88
  permissions: pluginPermissions.readSettings
89
89
  },
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-DhL5XylV.js");
2
+ const index = require("../_chunks/index-Db_6V69C.js");
3
3
  require("@strapi/icons");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-DkN9S9d_.mjs";
1
+ import { i } from "../_chunks/index-CTGphF6j.mjs";
2
2
  import "@strapi/icons";
3
3
  export {
4
4
  i as default
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.13.2",
2
+ "version": "4.14.0",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {