strapi-plugin-magic-link-v5 5.5.9 → 6.0.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +733 -0
  2. package/README.md +662 -928
  3. package/dist/admin/LicenseGuard-BgLA9go3.mjs +495 -0
  4. package/dist/admin/LicenseGuard-ewCjpc17.js +513 -0
  5. package/dist/admin/de-B1FNErPH.mjs +673 -0
  6. package/dist/admin/de-e75OECdq.js +673 -0
  7. package/dist/admin/en-CABKGbxH.js +673 -0
  8. package/dist/admin/en-HqDOFBCc.mjs +673 -0
  9. package/dist/admin/es-DpWl0Fax.js +673 -0
  10. package/dist/admin/es-jb94jqPR.mjs +673 -0
  11. package/dist/admin/fr-BQhLPvYw.js +673 -0
  12. package/dist/admin/fr-BseH1wrr.mjs +673 -0
  13. package/dist/admin/index-6ot9j1cN.js +5268 -0
  14. package/dist/admin/index-B390rccl.js +622 -0
  15. package/dist/admin/index-BPGKtruf.mjs +5266 -0
  16. package/dist/admin/index-BaTIQtnA.js +3869 -0
  17. package/dist/admin/index-CmG-93yx.js +141 -0
  18. package/dist/admin/index-DXe_ge4v.mjs +620 -0
  19. package/dist/admin/index-Dv5PVT1E.mjs +3867 -0
  20. package/dist/admin/index-k240ls6p.mjs +142 -0
  21. package/dist/admin/index.js +3 -3
  22. package/dist/admin/index.mjs +1 -2
  23. package/dist/admin/pt-CPkaveti.js +673 -0
  24. package/dist/admin/pt-DhlSCJn2.mjs +673 -0
  25. package/dist/admin/useUnsavedChangesGuard-BVZ4Mg4E.js +225 -0
  26. package/dist/admin/useUnsavedChangesGuard-QnkiZTLP.mjs +224 -0
  27. package/dist/server/i18n/de.json +32 -1
  28. package/dist/server/i18n/en.json +32 -1
  29. package/dist/server/i18n/es.json +32 -1
  30. package/dist/server/i18n/fr.json +32 -1
  31. package/dist/server/i18n/pt.json +32 -1
  32. package/dist/server/index.js +7092 -5971
  33. package/dist/server/index.mjs +7115 -5972
  34. package/package.json +42 -41
  35. package/strapi-admin.js +3 -1
  36. package/strapi-server.js +3 -2
  37. package/dist/_chunks/LicenseGuard-CiyjFnrw.js +0 -54
  38. package/dist/_chunks/LicenseGuard-DJ5fq2UZ.mjs +0 -55
  39. package/dist/_chunks/de-BSOk5suQ.js +0 -454
  40. package/dist/_chunks/de-CwhYs3O3.mjs +0 -454
  41. package/dist/_chunks/en-DnvSpXvu.js +0 -454
  42. package/dist/_chunks/en-gXXgGDV1.mjs +0 -454
  43. package/dist/_chunks/es-B-tnwByt.js +0 -407
  44. package/dist/_chunks/es-DG5gW3RZ.mjs +0 -407
  45. package/dist/_chunks/fr-BKo8t7Fx.js +0 -407
  46. package/dist/_chunks/fr-BQn1OHOR.mjs +0 -407
  47. package/dist/_chunks/index-01GHNxSr.js +0 -307
  48. package/dist/_chunks/index-5jsDgD-q.mjs +0 -330
  49. package/dist/_chunks/index-BWuj-5WE.js +0 -5068
  50. package/dist/_chunks/index-Bj3H_Z4B.js +0 -142
  51. package/dist/_chunks/index-CC4Eu9Dm.js +0 -332
  52. package/dist/_chunks/index-Csyi13vd.mjs +0 -2891
  53. package/dist/_chunks/index-DJqXiiP1.js +0 -2893
  54. package/dist/_chunks/index-DQUYFsLT.mjs +0 -143
  55. package/dist/_chunks/index-Dufv-daf.mjs +0 -305
  56. package/dist/_chunks/index-szeYJKpN.mjs +0 -5066
  57. package/dist/_chunks/pt-CjEkXBAz.js +0 -407
  58. package/dist/_chunks/pt-trziAOzT.mjs +0 -407
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.5.9",
2
+ "version": "6.0.0",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "plugin",
@@ -42,62 +42,67 @@
42
42
  "CHANGELOG.md"
43
43
  ],
44
44
  "engines": {
45
- "node": ">=18.0.0 <=22.x.x",
45
+ "node": ">=22.0.0 <=26.x.x",
46
46
  "npm": ">=6.0.0"
47
47
  },
48
48
  "scripts": {
49
49
  "prebuild": "npm run lint",
50
- "build": "strapi-plugin build && npm run copy:i18n",
50
+ "build": "strapi-plugin build && npm run build:server && npm run copy:i18n && npm run verify:runtime",
51
+ "build:server": "node scripts/build-server-bundle.mjs",
51
52
  "copy:i18n": "mkdir -p dist/server/i18n && cp -r server/src/i18n/*.json dist/server/i18n/",
52
53
  "watch": "strapi-plugin watch",
53
54
  "watch:link": "strapi-plugin watch:link",
54
55
  "verify": "strapi-plugin verify",
55
- "lint": "eslint \"admin/**/*.{js,jsx}\" \"server/**/*.js\" \"strapi-server.js\" \"strapi-admin.js\""
56
+ "verify:runtime": "node scripts/verify-server-bundle.mjs",
57
+ "lint": "eslint .",
58
+ "lint:fix": "eslint . --fix",
59
+ "format": "prettier --write .",
60
+ "format:check": "prettier --check .",
61
+ "test": "node --test tests/*.test.cjs"
56
62
  },
57
63
  "dependencies": {
58
- "@whiskeysockets/baileys": "^7.0.0-rc.9",
59
- "lodash": "^4.18.1",
60
- "nanoid": "^3.3.11",
61
- "pino": "^10.3.1",
64
+ "otplib": "^13.6.0",
62
65
  "qrcode": "^1.5.4",
63
- "rate-limiter-flexible": "^5.0.5",
64
- "speakeasy": "^2.0.0",
65
- "zod": "^3.25.0"
66
+ "rate-limiter-flexible": "^11.3.0",
67
+ "zod": "^4.6.7"
66
68
  },
67
69
  "devDependencies": {
68
- "@semantic-release/changelog": "^6.0.3",
69
- "@semantic-release/commit-analyzer": "^13.0.0",
70
- "@semantic-release/git": "^10.0.1",
71
- "@semantic-release/github": "^12.0.6",
72
- "@semantic-release/npm": "^13.1.5",
73
- "@semantic-release/release-notes-generator": "^14.0.1",
74
- "@strapi/sdk-plugin": "^5.4.0",
75
- "@strapi/strapi": "^5.36.0",
76
- "eslint": "^9.39.4",
77
- "eslint-plugin-react": "^7.37.5",
78
- "eslint-plugin-react-hooks": "^5.2.0",
79
- "globals": "^15.15.0",
80
- "prettier": "^3.8.3",
70
+ "@eslint/js": "^10.0.1",
71
+ "@semantic-release/changelog": "^7.0.0",
72
+ "@semantic-release/commit-analyzer": "^13.0.1",
73
+ "@semantic-release/git": "^11.0.1",
74
+ "@semantic-release/github": "^12.0.10",
75
+ "@semantic-release/npm": "^13.2.0",
76
+ "@semantic-release/release-notes-generator": "^14.1.1",
77
+ "@strapi/plugin-users-permissions": "^5.61.0",
78
+ "@strapi/sdk-plugin": "^6.1.1",
79
+ "@strapi/strapi": "^5.61.0",
80
+ "@types/react": "^18.3.31",
81
+ "@types/react-dom": "^18.3.7",
82
+ "esbuild": "^0.28.2",
83
+ "eslint": "^10.14.0",
84
+ "eslint-config-prettier": "^10.1.8",
85
+ "eslint-plugin-react-hooks": "^7.1.1",
86
+ "globals": "^17.14.0",
87
+ "prettier": "^3.9.10",
81
88
  "react": "^18.3.1",
82
89
  "react-dom": "^18.3.1",
83
- "react-router-dom": "^6.30.0",
84
- "semantic-release": "^25.0.3",
85
- "styled-components": "^6.3.9"
90
+ "react-intl": "^6.8.9",
91
+ "react-router-dom": "^6.30.6",
92
+ "semantic-release": "^25.0.9",
93
+ "styled-components": "^6.6.0"
86
94
  },
87
95
  "peerDependencies": {
88
96
  "@strapi/design-system": "^2.0.0",
89
97
  "@strapi/icons": "^2.0.0",
90
- "@strapi/strapi": "^5.0.0",
91
- "@strapi/utils": "^5.0.0",
92
- "formik": "^2.4.0",
93
- "prop-types": "^15.8.0",
98
+ "@strapi/plugin-users-permissions": "^5.24.0",
99
+ "@strapi/strapi": "^5.24.0",
100
+ "@strapi/utils": "^5.24.0",
94
101
  "react": "^18.0.0",
95
102
  "react-dom": "^18.0.0",
96
- "react-intl": "^6.0.0",
97
- "react-query": "^3.39.0",
98
- "react-router-dom": "^6.0.0",
99
- "styled-components": "^6.0.0",
100
- "yup": "^1.0.0"
103
+ "react-intl": "^6.6.2",
104
+ "react-router-dom": "^6.30.3",
105
+ "styled-components": "^6.0.0"
101
106
  },
102
107
  "strapi": {
103
108
  "kind": "plugin",
@@ -117,9 +122,5 @@
117
122
  "bugs": {
118
123
  "url": "https://github.com/Schero94/strapi-plugin-magic-link-v5/issues"
119
124
  },
120
- "homepage": "https://github.com/Schero94/strapi-plugin-magic-link-v5#readme",
121
- "overrides": {
122
- "libsignal": "npm:@baileys-md/libsignal@2.0.1",
123
- "protobufjs": "^7.5.5"
124
- }
125
+ "homepage": "https://github.com/Schero94/strapi-plugin-magic-link-v5#readme"
125
126
  }
package/strapi-admin.js CHANGED
@@ -1,3 +1,5 @@
1
1
  'use strict';
2
2
 
3
- module.exports = require('./admin/src/index.js');
3
+ // Legacy entry for tools that resolve <plugin>/strapi-admin.js directly.
4
+ // Strapi 5 uses the package.json exports map; both point at the build output.
5
+ module.exports = require('./dist/admin/index.js');
package/strapi-server.js CHANGED
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
2
 
3
- // Direkt aus der Quelle importieren, ohne auf den Build zu warten
4
- module.exports = require('./server/src');
3
+ // Legacy entry for tools that resolve <plugin>/strapi-server.js directly.
4
+ // Strapi 5 uses the package.json exports map; both point at the build output.
5
+ module.exports = require('./dist/server/index.js');
@@ -1,54 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const react = require("react");
4
- const reactIntl = require("react-intl");
5
- const en = require("./en-DnvSpXvu.js");
6
- const de = require("./de-BSOk5suQ.js");
7
- const fr = require("./fr-BKo8t7Fx.js");
8
- const es = require("./es-B-tnwByt.js");
9
- const pt = require("./pt-CjEkXBAz.js");
10
- const LanguageContext = react.createContext();
11
- const usePluginLanguage = () => {
12
- const context = react.useContext(LanguageContext);
13
- if (!context) {
14
- throw new Error("usePluginLanguage must be used within LanguageProvider");
15
- }
16
- return context;
17
- };
18
- const translations = {
19
- en: en.default,
20
- de: de.default,
21
- fr: fr.default,
22
- es: es.default,
23
- pt: pt.default
24
- };
25
- const LanguageProvider = ({ children }) => {
26
- const [currentLanguage, setCurrentLanguage] = react.useState(() => {
27
- return localStorage.getItem("magic-link-language") || "en";
28
- });
29
- const changeLanguage = (newLang) => {
30
- setCurrentLanguage(newLang);
31
- localStorage.setItem("magic-link-language", newLang);
32
- };
33
- const value = {
34
- language: currentLanguage,
35
- changeLanguage,
36
- t: (key) => {
37
- const messages = translations[currentLanguage] || translations.en;
38
- return messages[key] || key;
39
- }
40
- };
41
- return /* @__PURE__ */ jsxRuntime.jsx(LanguageContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(
42
- reactIntl.IntlProvider,
43
- {
44
- locale: currentLanguage,
45
- messages: translations[currentLanguage],
46
- defaultLocale: "en",
47
- children
48
- }
49
- ) });
50
- };
51
- const LicenseGuard = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
52
- exports.LanguageProvider = LanguageProvider;
53
- exports.LicenseGuard = LicenseGuard;
54
- exports.usePluginLanguage = usePluginLanguage;
@@ -1,55 +0,0 @@
1
- import { jsx, Fragment } from "react/jsx-runtime";
2
- import { useState, createContext, useContext } from "react";
3
- import { IntlProvider } from "react-intl";
4
- import enTranslations from "./en-gXXgGDV1.mjs";
5
- import deTranslations from "./de-CwhYs3O3.mjs";
6
- import frTranslations from "./fr-BQn1OHOR.mjs";
7
- import esTranslations from "./es-DG5gW3RZ.mjs";
8
- import ptTranslations from "./pt-trziAOzT.mjs";
9
- const LanguageContext = createContext();
10
- const usePluginLanguage = () => {
11
- const context = useContext(LanguageContext);
12
- if (!context) {
13
- throw new Error("usePluginLanguage must be used within LanguageProvider");
14
- }
15
- return context;
16
- };
17
- const translations = {
18
- en: enTranslations,
19
- de: deTranslations,
20
- fr: frTranslations,
21
- es: esTranslations,
22
- pt: ptTranslations
23
- };
24
- const LanguageProvider = ({ children }) => {
25
- const [currentLanguage, setCurrentLanguage] = useState(() => {
26
- return localStorage.getItem("magic-link-language") || "en";
27
- });
28
- const changeLanguage = (newLang) => {
29
- setCurrentLanguage(newLang);
30
- localStorage.setItem("magic-link-language", newLang);
31
- };
32
- const value = {
33
- language: currentLanguage,
34
- changeLanguage,
35
- t: (key) => {
36
- const messages = translations[currentLanguage] || translations.en;
37
- return messages[key] || key;
38
- }
39
- };
40
- return /* @__PURE__ */ jsx(LanguageContext.Provider, { value, children: /* @__PURE__ */ jsx(
41
- IntlProvider,
42
- {
43
- locale: currentLanguage,
44
- messages: translations[currentLanguage],
45
- defaultLocale: "en",
46
- children
47
- }
48
- ) });
49
- };
50
- const LicenseGuard = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });
51
- export {
52
- LicenseGuard as L,
53
- LanguageProvider as a,
54
- usePluginLanguage as u
55
- };