strapi-plugin-magic-mail 2.10.11 → 3.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 (27) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +21 -10
  3. package/dist/{_chunks/App-CInlcJMb.js → admin/App-BhDvUsMa.js} +97 -789
  4. package/dist/{_chunks/App-D4bFKNcg.mjs → admin/App-CjlxXCZb.mjs} +109 -801
  5. package/dist/{_chunks/PluginSettings-cZXE_vy8.js → admin/PluginSettings-Css2nHrB.js} +10 -4
  6. package/dist/{_chunks/PluginSettings-XwyzH95_.mjs → admin/PluginSettings-Duc_Y571.mjs} +10 -4
  7. package/dist/{_chunks/StyledButtons-CdOf4Sps.mjs → admin/StyledButtons-aq1EWrQ-.mjs} +1 -2
  8. package/dist/{_chunks/StyledButtons-DVGuFoqy.js → admin/StyledButtons-jHF7TXal.js} +1 -2
  9. package/dist/{_chunks/de-CF2ItE3Z.js → admin/de-DKEFnBGC.js} +0 -21
  10. package/dist/{_chunks/de-CwbYw2jT.mjs → admin/de-SKsLY2de.mjs} +0 -21
  11. package/dist/{_chunks/en-CK6UpShS.js → admin/en-CvtZE1HH.js} +0 -21
  12. package/dist/{_chunks/en-ZRmfU4qX.mjs → admin/en-Ds2Q7fue.mjs} +0 -21
  13. package/dist/{_chunks/es-DQHwzPpP.mjs → admin/es-BEvzLtTg.mjs} +20 -21
  14. package/dist/{_chunks/es-BpV1MIdm.js → admin/es-BbLLes3D.js} +20 -21
  15. package/dist/{_chunks/fr-BG1WfEVm.mjs → admin/fr-CRpwImX6.mjs} +20 -21
  16. package/dist/{_chunks/fr-vpziIpRp.js → admin/fr-nH9uN6s9.js} +20 -21
  17. package/dist/admin/index.js +6 -44
  18. package/dist/admin/index.mjs +4 -43
  19. package/dist/{_chunks/pt-CMoGrOib.mjs → admin/pt-CjOe2N_n.mjs} +20 -21
  20. package/dist/{_chunks/pt-ODpAhDNa.js → admin/pt-qt_48NxL.js} +20 -21
  21. package/dist/server/index.js +8052 -17573
  22. package/dist/server/index.mjs +8079 -17578
  23. package/package.json +40 -27
  24. package/dist/_chunks/LicensePage-B61HnhyD.mjs +0 -352
  25. package/dist/_chunks/LicensePage-sB-xDRL9.js +0 -354
  26. package/dist/_chunks/Settings-BRFoD1yZ.js +0 -354
  27. package/dist/_chunks/Settings-DoSrZKfp.mjs +0 -352
@@ -6,7 +6,7 @@ const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
7
  const outline = require("@heroicons/react/24/outline");
8
8
  const styled = require("styled-components");
9
- const StyledButtons = require("./StyledButtons-DVGuFoqy.js");
9
+ const StyledButtons = require("./StyledButtons-jHF7TXal.js");
10
10
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
11
11
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
12
12
  const fadeIn = styled.keyframes`
@@ -245,7 +245,9 @@ const PluginSettingsPage = () => {
245
245
  designSystem.Toggle,
246
246
  {
247
247
  checked: settings.enableLinkTracking,
248
- onChange: (e) => handleChange("enableLinkTracking", e.target.checked)
248
+ onChange: (e) => handleChange("enableLinkTracking", e.target.checked),
249
+ onLabel: "Enabled",
250
+ offLabel: "Disabled"
249
251
  }
250
252
  ) })
251
253
  ] }),
@@ -292,7 +294,9 @@ const PluginSettingsPage = () => {
292
294
  designSystem.Toggle,
293
295
  {
294
296
  checked: settings.enableOpenTracking,
295
- onChange: (e) => handleChange("enableOpenTracking", e.target.checked)
297
+ onChange: (e) => handleChange("enableOpenTracking", e.target.checked),
298
+ onLabel: "Enabled",
299
+ offLabel: "Disabled"
296
300
  }
297
301
  ) })
298
302
  ] }) })
@@ -315,7 +319,9 @@ const PluginSettingsPage = () => {
315
319
  designSystem.Toggle,
316
320
  {
317
321
  checked: settings.enableUnsubscribeHeader,
318
- onChange: (e) => handleChange("enableUnsubscribeHeader", e.target.checked)
322
+ onChange: (e) => handleChange("enableUnsubscribeHeader", e.target.checked),
323
+ onLabel: "Enabled",
324
+ offLabel: "Disabled"
319
325
  }
320
326
  ) })
321
327
  ] }),
@@ -4,7 +4,7 @@ import { Loader, Typography, Flex, Toggle, Box, Field, TextInput } from "@strapi
4
4
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
5
5
  import { ArrowPathIcon, LinkIcon, EyeIcon, EnvelopeIcon, UserIcon } from "@heroicons/react/24/outline";
6
6
  import styled, { css, keyframes } from "styled-components";
7
- import { T as TertiaryButton, G as GradientButton } from "./StyledButtons-CdOf4Sps.mjs";
7
+ import { T as TertiaryButton, G as GradientButton } from "./StyledButtons-aq1EWrQ-.mjs";
8
8
  const fadeIn = keyframes`
9
9
  from { opacity: 0; transform: translateY(10px); }
10
10
  to { opacity: 1; transform: translateY(0); }
@@ -241,7 +241,9 @@ const PluginSettingsPage = () => {
241
241
  Toggle,
242
242
  {
243
243
  checked: settings.enableLinkTracking,
244
- onChange: (e) => handleChange("enableLinkTracking", e.target.checked)
244
+ onChange: (e) => handleChange("enableLinkTracking", e.target.checked),
245
+ onLabel: "Enabled",
246
+ offLabel: "Disabled"
245
247
  }
246
248
  ) })
247
249
  ] }),
@@ -288,7 +290,9 @@ const PluginSettingsPage = () => {
288
290
  Toggle,
289
291
  {
290
292
  checked: settings.enableOpenTracking,
291
- onChange: (e) => handleChange("enableOpenTracking", e.target.checked)
293
+ onChange: (e) => handleChange("enableOpenTracking", e.target.checked),
294
+ onLabel: "Enabled",
295
+ offLabel: "Disabled"
292
296
  }
293
297
  ) })
294
298
  ] }) })
@@ -311,7 +315,9 @@ const PluginSettingsPage = () => {
311
315
  Toggle,
312
316
  {
313
317
  checked: settings.enableUnsubscribeHeader,
314
- onChange: (e) => handleChange("enableUnsubscribeHeader", e.target.checked)
318
+ onChange: (e) => handleChange("enableUnsubscribeHeader", e.target.checked),
319
+ onLabel: "Enabled",
320
+ offLabel: "Disabled"
315
321
  }
316
322
  ) })
317
323
  ] }),
@@ -390,7 +390,7 @@ styled(Button)`
390
390
  }
391
391
  }
392
392
  `;
393
- const WhiteOutlineButton = styled(Button)`
393
+ styled(Button)`
394
394
  && {
395
395
  background: rgba(255, 255, 255, 0.15);
396
396
  color: white;
@@ -426,7 +426,6 @@ export {
426
426
  IconButton as I,
427
427
  SecondaryButton as S,
428
428
  TertiaryButton as T,
429
- WhiteOutlineButton as W,
430
429
  IconButtonPrimary as a,
431
430
  IconButtonDanger as b,
432
431
  IconButtonPurple as c,
@@ -393,7 +393,7 @@ styled__default.default(designSystem.Button)`
393
393
  }
394
394
  }
395
395
  `;
396
- const WhiteOutlineButton = styled__default.default(designSystem.Button)`
396
+ styled__default.default(designSystem.Button)`
397
397
  && {
398
398
  background: rgba(255, 255, 255, 0.15);
399
399
  color: white;
@@ -432,4 +432,3 @@ exports.IconButtonPurple = IconButtonPurple;
432
432
  exports.IconButtonSuccess = IconButtonSuccess;
433
433
  exports.SecondaryButton = SecondaryButton;
434
434
  exports.TertiaryButton = TertiaryButton;
435
- exports.WhiteOutlineButton = WhiteOutlineButton;
@@ -5,7 +5,6 @@ const de = {
5
5
  "plugin.description": "Email Business Suite für Strapi v5",
6
6
  "tabs.accounts": "Email-Konten",
7
7
  "tabs.routing": "Routing-Regeln",
8
- "tabs.license": "Lizenz",
9
8
  "accounts.title": "Email-Konten",
10
9
  "accounts.subtitle": "Verwalte mehrere Email-Konten mit Smart Routing",
11
10
  "accounts.add": "Konto hinzufügen",
@@ -30,21 +29,6 @@ const de = {
30
29
  "routing.delete": "Regel löschen",
31
30
  "routing.empty": "Keine Routing-Regeln vorhanden",
32
31
  "routing.emptyDescription": "Erstelle deine erste Routing-Regel",
33
- "license.title": "Lizenzverwaltung",
34
- "license.subtitle": "Verwalte deine MagicMail Lizenz",
35
- "license.active": "Lizenz aktiv",
36
- "license.inactive": "Keine aktive Lizenz",
37
- "license.demo": "Demo-Modus",
38
- "license.generate": "Kostenlose Lizenz generieren",
39
- "license.activate": "Lizenz aktivieren",
40
- "license.key": "Lizenzschlüssel",
41
- "license.email": "E-Mail-Adresse",
42
- "license.copyKey": "Schlüssel kopieren",
43
- "license.download": "Als TXT herunterladen",
44
- "license.refresh": "Status aktualisieren",
45
- "features.premium": "Premium Features",
46
- "features.advanced": "Erweiterte Features",
47
- "features.enterprise": "Enterprise Features",
48
32
  "notifications.accountCreated": "Email-Konto erfolgreich erstellt",
49
33
  "notifications.accountUpdated": "Email-Konto erfolgreich aktualisiert",
50
34
  "notifications.accountDeleted": "Email-Konto erfolgreich gelöscht",
@@ -53,13 +37,8 @@ const de = {
53
37
  "notifications.ruleCreated": "Routing-Regel erfolgreich erstellt",
54
38
  "notifications.ruleUpdated": "Routing-Regel erfolgreich aktualisiert",
55
39
  "notifications.ruleDeleted": "Routing-Regel erfolgreich gelöscht",
56
- "notifications.licenseActivated": "Lizenz erfolgreich aktiviert",
57
- "notifications.licenseCopied": "Lizenzschlüssel kopiert",
58
40
  "notifications.error": "Ein Fehler ist aufgetreten",
59
41
  "errors.noAccounts": "Keine Email-Konten verfügbar",
60
- "errors.providerNotAllowed": "Dieser Provider erfordert eine höhere Lizenz",
61
- "errors.accountLimitReached": "Konto-Limit erreicht. Upgrade erforderlich",
62
- "errors.ruleLimitReached": "Regel-Limit erreicht. Upgrade erforderlich",
63
42
  "whatsapp.title": "WhatsApp Integration",
64
43
  "whatsapp.subtitle": "Nachrichten via WhatsApp senden - komplett kostenlos!",
65
44
  "whatsapp.tab": "WhatsApp",
@@ -3,7 +3,6 @@ const de = {
3
3
  "plugin.description": "Email Business Suite für Strapi v5",
4
4
  "tabs.accounts": "Email-Konten",
5
5
  "tabs.routing": "Routing-Regeln",
6
- "tabs.license": "Lizenz",
7
6
  "accounts.title": "Email-Konten",
8
7
  "accounts.subtitle": "Verwalte mehrere Email-Konten mit Smart Routing",
9
8
  "accounts.add": "Konto hinzufügen",
@@ -28,21 +27,6 @@ const de = {
28
27
  "routing.delete": "Regel löschen",
29
28
  "routing.empty": "Keine Routing-Regeln vorhanden",
30
29
  "routing.emptyDescription": "Erstelle deine erste Routing-Regel",
31
- "license.title": "Lizenzverwaltung",
32
- "license.subtitle": "Verwalte deine MagicMail Lizenz",
33
- "license.active": "Lizenz aktiv",
34
- "license.inactive": "Keine aktive Lizenz",
35
- "license.demo": "Demo-Modus",
36
- "license.generate": "Kostenlose Lizenz generieren",
37
- "license.activate": "Lizenz aktivieren",
38
- "license.key": "Lizenzschlüssel",
39
- "license.email": "E-Mail-Adresse",
40
- "license.copyKey": "Schlüssel kopieren",
41
- "license.download": "Als TXT herunterladen",
42
- "license.refresh": "Status aktualisieren",
43
- "features.premium": "Premium Features",
44
- "features.advanced": "Erweiterte Features",
45
- "features.enterprise": "Enterprise Features",
46
30
  "notifications.accountCreated": "Email-Konto erfolgreich erstellt",
47
31
  "notifications.accountUpdated": "Email-Konto erfolgreich aktualisiert",
48
32
  "notifications.accountDeleted": "Email-Konto erfolgreich gelöscht",
@@ -51,13 +35,8 @@ const de = {
51
35
  "notifications.ruleCreated": "Routing-Regel erfolgreich erstellt",
52
36
  "notifications.ruleUpdated": "Routing-Regel erfolgreich aktualisiert",
53
37
  "notifications.ruleDeleted": "Routing-Regel erfolgreich gelöscht",
54
- "notifications.licenseActivated": "Lizenz erfolgreich aktiviert",
55
- "notifications.licenseCopied": "Lizenzschlüssel kopiert",
56
38
  "notifications.error": "Ein Fehler ist aufgetreten",
57
39
  "errors.noAccounts": "Keine Email-Konten verfügbar",
58
- "errors.providerNotAllowed": "Dieser Provider erfordert eine höhere Lizenz",
59
- "errors.accountLimitReached": "Konto-Limit erreicht. Upgrade erforderlich",
60
- "errors.ruleLimitReached": "Regel-Limit erreicht. Upgrade erforderlich",
61
40
  "whatsapp.title": "WhatsApp Integration",
62
41
  "whatsapp.subtitle": "Nachrichten via WhatsApp senden - komplett kostenlos!",
63
42
  "whatsapp.tab": "WhatsApp",
@@ -5,7 +5,6 @@ const en = {
5
5
  "plugin.description": "Email Business Suite for Strapi v5",
6
6
  "tabs.accounts": "Email Accounts",
7
7
  "tabs.routing": "Routing Rules",
8
- "tabs.license": "License",
9
8
  "accounts.title": "Email Accounts",
10
9
  "accounts.subtitle": "Manage multiple email accounts with Smart Routing",
11
10
  "accounts.add": "Add Account",
@@ -30,21 +29,6 @@ const en = {
30
29
  "routing.delete": "Delete Rule",
31
30
  "routing.empty": "No routing rules yet",
32
31
  "routing.emptyDescription": "Create your first routing rule",
33
- "license.title": "License Management",
34
- "license.subtitle": "Manage your MagicMail license",
35
- "license.active": "License Active",
36
- "license.inactive": "No Active License",
37
- "license.demo": "Demo Mode",
38
- "license.generate": "Generate Free License",
39
- "license.activate": "Activate License",
40
- "license.key": "License Key",
41
- "license.email": "Email Address",
42
- "license.copyKey": "Copy Key",
43
- "license.download": "Download as TXT",
44
- "license.refresh": "Refresh Status",
45
- "features.premium": "Premium Features",
46
- "features.advanced": "Advanced Features",
47
- "features.enterprise": "Enterprise Features",
48
32
  "notifications.accountCreated": "Email account created successfully",
49
33
  "notifications.accountUpdated": "Email account updated successfully",
50
34
  "notifications.accountDeleted": "Email account deleted successfully",
@@ -53,13 +37,8 @@ const en = {
53
37
  "notifications.ruleCreated": "Routing rule created successfully",
54
38
  "notifications.ruleUpdated": "Routing rule updated successfully",
55
39
  "notifications.ruleDeleted": "Routing rule deleted successfully",
56
- "notifications.licenseActivated": "License activated successfully",
57
- "notifications.licenseCopied": "License key copied",
58
40
  "notifications.error": "An error occurred",
59
41
  "errors.noAccounts": "No email accounts available",
60
- "errors.providerNotAllowed": "This provider requires a higher license",
61
- "errors.accountLimitReached": "Account limit reached. Upgrade required",
62
- "errors.ruleLimitReached": "Rule limit reached. Upgrade required",
63
42
  "whatsapp.title": "WhatsApp Integration",
64
43
  "whatsapp.subtitle": "Send messages via WhatsApp - completely free!",
65
44
  "whatsapp.tab": "WhatsApp",
@@ -3,7 +3,6 @@ const en = {
3
3
  "plugin.description": "Email Business Suite for Strapi v5",
4
4
  "tabs.accounts": "Email Accounts",
5
5
  "tabs.routing": "Routing Rules",
6
- "tabs.license": "License",
7
6
  "accounts.title": "Email Accounts",
8
7
  "accounts.subtitle": "Manage multiple email accounts with Smart Routing",
9
8
  "accounts.add": "Add Account",
@@ -28,21 +27,6 @@ const en = {
28
27
  "routing.delete": "Delete Rule",
29
28
  "routing.empty": "No routing rules yet",
30
29
  "routing.emptyDescription": "Create your first routing rule",
31
- "license.title": "License Management",
32
- "license.subtitle": "Manage your MagicMail license",
33
- "license.active": "License Active",
34
- "license.inactive": "No Active License",
35
- "license.demo": "Demo Mode",
36
- "license.generate": "Generate Free License",
37
- "license.activate": "Activate License",
38
- "license.key": "License Key",
39
- "license.email": "Email Address",
40
- "license.copyKey": "Copy Key",
41
- "license.download": "Download as TXT",
42
- "license.refresh": "Refresh Status",
43
- "features.premium": "Premium Features",
44
- "features.advanced": "Advanced Features",
45
- "features.enterprise": "Enterprise Features",
46
30
  "notifications.accountCreated": "Email account created successfully",
47
31
  "notifications.accountUpdated": "Email account updated successfully",
48
32
  "notifications.accountDeleted": "Email account deleted successfully",
@@ -51,13 +35,8 @@ const en = {
51
35
  "notifications.ruleCreated": "Routing rule created successfully",
52
36
  "notifications.ruleUpdated": "Routing rule updated successfully",
53
37
  "notifications.ruleDeleted": "Routing rule deleted successfully",
54
- "notifications.licenseActivated": "License activated successfully",
55
- "notifications.licenseCopied": "License key copied",
56
38
  "notifications.error": "An error occurred",
57
39
  "errors.noAccounts": "No email accounts available",
58
- "errors.providerNotAllowed": "This provider requires a higher license",
59
- "errors.accountLimitReached": "Account limit reached. Upgrade required",
60
- "errors.ruleLimitReached": "Rule limit reached. Upgrade required",
61
40
  "whatsapp.title": "WhatsApp Integration",
62
41
  "whatsapp.subtitle": "Send messages via WhatsApp - completely free!",
63
42
  "whatsapp.tab": "WhatsApp",
@@ -3,7 +3,6 @@ const es = {
3
3
  "plugin.description": "Suite de Email Business para Strapi v5",
4
4
  "tabs.accounts": "Cuentas de Email",
5
5
  "tabs.routing": "Reglas de Enrutamiento",
6
- "tabs.license": "Licencia",
7
6
  "accounts.title": "Cuentas de Email",
8
7
  "accounts.subtitle": "Administra múltiples cuentas de email con Smart Routing",
9
8
  "accounts.add": "Agregar cuenta",
@@ -28,21 +27,6 @@ const es = {
28
27
  "routing.delete": "Eliminar regla",
29
28
  "routing.empty": "No hay reglas de enrutamiento",
30
29
  "routing.emptyDescription": "Crea tu primera regla de enrutamiento",
31
- "license.title": "Gestión de Licencia",
32
- "license.subtitle": "Administra tu licencia de MagicMail",
33
- "license.active": "Licencia activa",
34
- "license.inactive": "Sin licencia activa",
35
- "license.demo": "Modo demo",
36
- "license.generate": "Generar licencia gratuita",
37
- "license.activate": "Activar licencia",
38
- "license.key": "Clave de licencia",
39
- "license.email": "Correo electrónico",
40
- "license.copyKey": "Copiar clave",
41
- "license.download": "Descargar como TXT",
42
- "license.refresh": "Actualizar estado",
43
- "features.premium": "Funciones Premium",
44
- "features.advanced": "Funciones Avanzadas",
45
- "features.enterprise": "Funciones Enterprise",
46
30
  "notifications.accountCreated": "Cuenta de email creada exitosamente",
47
31
  "notifications.accountUpdated": "Cuenta de email actualizada exitosamente",
48
32
  "notifications.accountDeleted": "Cuenta de email eliminada exitosamente",
@@ -51,13 +35,28 @@ const es = {
51
35
  "notifications.ruleCreated": "Regla de enrutamiento creada exitosamente",
52
36
  "notifications.ruleUpdated": "Regla de enrutamiento actualizada exitosamente",
53
37
  "notifications.ruleDeleted": "Regla de enrutamiento eliminada exitosamente",
54
- "notifications.licenseActivated": "Licencia activada exitosamente",
55
- "notifications.licenseCopied": "Clave de licencia copiada",
56
38
  "notifications.error": "Ocurrió un error",
57
39
  "errors.noAccounts": "No hay cuentas de email disponibles",
58
- "errors.providerNotAllowed": "Este proveedor requiere una licencia superior",
59
- "errors.accountLimitReached": "Límite de cuentas alcanzado. Actualización requerida",
60
- "errors.ruleLimitReached": "Límite de reglas alcanzado. Actualización requerida"
40
+ "whatsapp.title": "Integración de WhatsApp",
41
+ "whatsapp.subtitle": "Envía mensajes vía WhatsApp - ¡completamente gratis!",
42
+ "whatsapp.tab": "WhatsApp",
43
+ "whatsapp.status.connected": "Conectado",
44
+ "whatsapp.status.connecting": "Conectando...",
45
+ "whatsapp.status.qr_pending": "Esperando escaneo de QR",
46
+ "whatsapp.status.disconnected": "Desconectado",
47
+ "whatsapp.step1.title": "Verificar instalación",
48
+ "whatsapp.step2.title": "Conectar WhatsApp",
49
+ "whatsapp.step3.title": "Escanear código QR",
50
+ "whatsapp.step4.title": "Listo para usar",
51
+ "whatsapp.connect": "Conectar WhatsApp",
52
+ "whatsapp.disconnect": "Desconectar WhatsApp",
53
+ "whatsapp.sendTest": "Enviar mensaje de prueba",
54
+ "whatsapp.phoneNumber": "Número de teléfono",
55
+ "whatsapp.phoneHint": "Ingresa el número de teléfono con código de país (ej. 34 para España)",
56
+ "whatsapp.message": "Mensaje (opcional)",
57
+ "whatsapp.notInstalled": "Dependencias no instaladas",
58
+ "whatsapp.installCommand": "npm install baileys pino qrcode",
59
+ "whatsapp.freeLabel": "GRATIS - ¡Sin costos de API!"
61
60
  };
62
61
  export {
63
62
  es as default
@@ -5,7 +5,6 @@ const es = {
5
5
  "plugin.description": "Suite de Email Business para Strapi v5",
6
6
  "tabs.accounts": "Cuentas de Email",
7
7
  "tabs.routing": "Reglas de Enrutamiento",
8
- "tabs.license": "Licencia",
9
8
  "accounts.title": "Cuentas de Email",
10
9
  "accounts.subtitle": "Administra múltiples cuentas de email con Smart Routing",
11
10
  "accounts.add": "Agregar cuenta",
@@ -30,21 +29,6 @@ const es = {
30
29
  "routing.delete": "Eliminar regla",
31
30
  "routing.empty": "No hay reglas de enrutamiento",
32
31
  "routing.emptyDescription": "Crea tu primera regla de enrutamiento",
33
- "license.title": "Gestión de Licencia",
34
- "license.subtitle": "Administra tu licencia de MagicMail",
35
- "license.active": "Licencia activa",
36
- "license.inactive": "Sin licencia activa",
37
- "license.demo": "Modo demo",
38
- "license.generate": "Generar licencia gratuita",
39
- "license.activate": "Activar licencia",
40
- "license.key": "Clave de licencia",
41
- "license.email": "Correo electrónico",
42
- "license.copyKey": "Copiar clave",
43
- "license.download": "Descargar como TXT",
44
- "license.refresh": "Actualizar estado",
45
- "features.premium": "Funciones Premium",
46
- "features.advanced": "Funciones Avanzadas",
47
- "features.enterprise": "Funciones Enterprise",
48
32
  "notifications.accountCreated": "Cuenta de email creada exitosamente",
49
33
  "notifications.accountUpdated": "Cuenta de email actualizada exitosamente",
50
34
  "notifications.accountDeleted": "Cuenta de email eliminada exitosamente",
@@ -53,12 +37,27 @@ const es = {
53
37
  "notifications.ruleCreated": "Regla de enrutamiento creada exitosamente",
54
38
  "notifications.ruleUpdated": "Regla de enrutamiento actualizada exitosamente",
55
39
  "notifications.ruleDeleted": "Regla de enrutamiento eliminada exitosamente",
56
- "notifications.licenseActivated": "Licencia activada exitosamente",
57
- "notifications.licenseCopied": "Clave de licencia copiada",
58
40
  "notifications.error": "Ocurrió un error",
59
41
  "errors.noAccounts": "No hay cuentas de email disponibles",
60
- "errors.providerNotAllowed": "Este proveedor requiere una licencia superior",
61
- "errors.accountLimitReached": "Límite de cuentas alcanzado. Actualización requerida",
62
- "errors.ruleLimitReached": "Límite de reglas alcanzado. Actualización requerida"
42
+ "whatsapp.title": "Integración de WhatsApp",
43
+ "whatsapp.subtitle": "Envía mensajes vía WhatsApp - ¡completamente gratis!",
44
+ "whatsapp.tab": "WhatsApp",
45
+ "whatsapp.status.connected": "Conectado",
46
+ "whatsapp.status.connecting": "Conectando...",
47
+ "whatsapp.status.qr_pending": "Esperando escaneo de QR",
48
+ "whatsapp.status.disconnected": "Desconectado",
49
+ "whatsapp.step1.title": "Verificar instalación",
50
+ "whatsapp.step2.title": "Conectar WhatsApp",
51
+ "whatsapp.step3.title": "Escanear código QR",
52
+ "whatsapp.step4.title": "Listo para usar",
53
+ "whatsapp.connect": "Conectar WhatsApp",
54
+ "whatsapp.disconnect": "Desconectar WhatsApp",
55
+ "whatsapp.sendTest": "Enviar mensaje de prueba",
56
+ "whatsapp.phoneNumber": "Número de teléfono",
57
+ "whatsapp.phoneHint": "Ingresa el número de teléfono con código de país (ej. 34 para España)",
58
+ "whatsapp.message": "Mensaje (opcional)",
59
+ "whatsapp.notInstalled": "Dependencias no instaladas",
60
+ "whatsapp.installCommand": "npm install baileys pino qrcode",
61
+ "whatsapp.freeLabel": "GRATIS - ¡Sin costos de API!"
63
62
  };
64
63
  exports.default = es;
@@ -3,7 +3,6 @@ const fr = {
3
3
  "plugin.description": "Suite Email Business pour Strapi v5",
4
4
  "tabs.accounts": "Comptes Email",
5
5
  "tabs.routing": "Règles de Routage",
6
- "tabs.license": "Licence",
7
6
  "accounts.title": "Comptes Email",
8
7
  "accounts.subtitle": "Gérez plusieurs comptes email avec Smart Routing",
9
8
  "accounts.add": "Ajouter un compte",
@@ -28,21 +27,6 @@ const fr = {
28
27
  "routing.delete": "Supprimer la règle",
29
28
  "routing.empty": "Aucune règle de routage",
30
29
  "routing.emptyDescription": "Créez votre première règle de routage",
31
- "license.title": "Gestion de Licence",
32
- "license.subtitle": "Gérez votre licence MagicMail",
33
- "license.active": "Licence active",
34
- "license.inactive": "Aucune licence active",
35
- "license.demo": "Mode démo",
36
- "license.generate": "Générer une licence gratuite",
37
- "license.activate": "Activer la licence",
38
- "license.key": "Clé de licence",
39
- "license.email": "Adresse email",
40
- "license.copyKey": "Copier la clé",
41
- "license.download": "Télécharger en TXT",
42
- "license.refresh": "Actualiser le statut",
43
- "features.premium": "Fonctionnalités Premium",
44
- "features.advanced": "Fonctionnalités Avancées",
45
- "features.enterprise": "Fonctionnalités Enterprise",
46
30
  "notifications.accountCreated": "Compte email créé avec succès",
47
31
  "notifications.accountUpdated": "Compte email mis à jour avec succès",
48
32
  "notifications.accountDeleted": "Compte email supprimé avec succès",
@@ -51,13 +35,28 @@ const fr = {
51
35
  "notifications.ruleCreated": "Règle de routage créée avec succès",
52
36
  "notifications.ruleUpdated": "Règle de routage mise à jour avec succès",
53
37
  "notifications.ruleDeleted": "Règle de routage supprimée avec succès",
54
- "notifications.licenseActivated": "Licence activée avec succès",
55
- "notifications.licenseCopied": "Clé de licence copiée",
56
38
  "notifications.error": "Une erreur s'est produite",
57
39
  "errors.noAccounts": "Aucun compte email disponible",
58
- "errors.providerNotAllowed": "Ce fournisseur nécessite une licence supérieure",
59
- "errors.accountLimitReached": "Limite de comptes atteinte. Mise à niveau requise",
60
- "errors.ruleLimitReached": "Limite de règles atteinte. Mise à niveau requise"
40
+ "whatsapp.title": "Intégration WhatsApp",
41
+ "whatsapp.subtitle": "Envoyez des messages via WhatsApp - entièrement gratuit !",
42
+ "whatsapp.tab": "WhatsApp",
43
+ "whatsapp.status.connected": "Connecté",
44
+ "whatsapp.status.connecting": "Connexion...",
45
+ "whatsapp.status.qr_pending": "En attente du scan QR",
46
+ "whatsapp.status.disconnected": "Déconnecté",
47
+ "whatsapp.step1.title": "Vérifier l'installation",
48
+ "whatsapp.step2.title": "Connecter WhatsApp",
49
+ "whatsapp.step3.title": "Scanner le code QR",
50
+ "whatsapp.step4.title": "Prêt à l'emploi",
51
+ "whatsapp.connect": "Connecter WhatsApp",
52
+ "whatsapp.disconnect": "Déconnecter WhatsApp",
53
+ "whatsapp.sendTest": "Envoyer un message de test",
54
+ "whatsapp.phoneNumber": "Numéro de téléphone",
55
+ "whatsapp.phoneHint": "Entrez le numéro de téléphone avec l'indicatif du pays (ex. 33 pour la France)",
56
+ "whatsapp.message": "Message (optionnel)",
57
+ "whatsapp.notInstalled": "Dépendances non installées",
58
+ "whatsapp.installCommand": "npm install baileys pino qrcode",
59
+ "whatsapp.freeLabel": "GRATUIT - Aucun coût d'API !"
61
60
  };
62
61
  export {
63
62
  fr as default
@@ -5,7 +5,6 @@ const fr = {
5
5
  "plugin.description": "Suite Email Business pour Strapi v5",
6
6
  "tabs.accounts": "Comptes Email",
7
7
  "tabs.routing": "Règles de Routage",
8
- "tabs.license": "Licence",
9
8
  "accounts.title": "Comptes Email",
10
9
  "accounts.subtitle": "Gérez plusieurs comptes email avec Smart Routing",
11
10
  "accounts.add": "Ajouter un compte",
@@ -30,21 +29,6 @@ const fr = {
30
29
  "routing.delete": "Supprimer la règle",
31
30
  "routing.empty": "Aucune règle de routage",
32
31
  "routing.emptyDescription": "Créez votre première règle de routage",
33
- "license.title": "Gestion de Licence",
34
- "license.subtitle": "Gérez votre licence MagicMail",
35
- "license.active": "Licence active",
36
- "license.inactive": "Aucune licence active",
37
- "license.demo": "Mode démo",
38
- "license.generate": "Générer une licence gratuite",
39
- "license.activate": "Activer la licence",
40
- "license.key": "Clé de licence",
41
- "license.email": "Adresse email",
42
- "license.copyKey": "Copier la clé",
43
- "license.download": "Télécharger en TXT",
44
- "license.refresh": "Actualiser le statut",
45
- "features.premium": "Fonctionnalités Premium",
46
- "features.advanced": "Fonctionnalités Avancées",
47
- "features.enterprise": "Fonctionnalités Enterprise",
48
32
  "notifications.accountCreated": "Compte email créé avec succès",
49
33
  "notifications.accountUpdated": "Compte email mis à jour avec succès",
50
34
  "notifications.accountDeleted": "Compte email supprimé avec succès",
@@ -53,12 +37,27 @@ const fr = {
53
37
  "notifications.ruleCreated": "Règle de routage créée avec succès",
54
38
  "notifications.ruleUpdated": "Règle de routage mise à jour avec succès",
55
39
  "notifications.ruleDeleted": "Règle de routage supprimée avec succès",
56
- "notifications.licenseActivated": "Licence activée avec succès",
57
- "notifications.licenseCopied": "Clé de licence copiée",
58
40
  "notifications.error": "Une erreur s'est produite",
59
41
  "errors.noAccounts": "Aucun compte email disponible",
60
- "errors.providerNotAllowed": "Ce fournisseur nécessite une licence supérieure",
61
- "errors.accountLimitReached": "Limite de comptes atteinte. Mise à niveau requise",
62
- "errors.ruleLimitReached": "Limite de règles atteinte. Mise à niveau requise"
42
+ "whatsapp.title": "Intégration WhatsApp",
43
+ "whatsapp.subtitle": "Envoyez des messages via WhatsApp - entièrement gratuit !",
44
+ "whatsapp.tab": "WhatsApp",
45
+ "whatsapp.status.connected": "Connecté",
46
+ "whatsapp.status.connecting": "Connexion...",
47
+ "whatsapp.status.qr_pending": "En attente du scan QR",
48
+ "whatsapp.status.disconnected": "Déconnecté",
49
+ "whatsapp.step1.title": "Vérifier l'installation",
50
+ "whatsapp.step2.title": "Connecter WhatsApp",
51
+ "whatsapp.step3.title": "Scanner le code QR",
52
+ "whatsapp.step4.title": "Prêt à l'emploi",
53
+ "whatsapp.connect": "Connecter WhatsApp",
54
+ "whatsapp.disconnect": "Déconnecter WhatsApp",
55
+ "whatsapp.sendTest": "Envoyer un message de test",
56
+ "whatsapp.phoneNumber": "Numéro de téléphone",
57
+ "whatsapp.phoneHint": "Entrez le numéro de téléphone avec l'indicatif du pays (ex. 33 pour la France)",
58
+ "whatsapp.message": "Message (optionnel)",
59
+ "whatsapp.notInstalled": "Dépendances non installées",
60
+ "whatsapp.installCommand": "npm install baileys pino qrcode",
61
+ "whatsapp.freeLabel": "GRATUIT - Aucun coût d'API !"
63
62
  };
64
63
  exports.default = fr;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2
3
  const React = require("react");
3
- const admin = require("@strapi/strapi/admin");
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const outline = require("@heroicons/react/24/outline");
6
6
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
@@ -19,34 +19,16 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
19
19
  );
20
20
  });
21
21
  };
22
- const strapi = {
23
- name: "magic-mail"
24
- };
22
+ const strapi = { "name": "magic-mail" };
25
23
  const pluginPkg = {
26
24
  strapi
27
25
  };
28
26
  const pluginId = "magic-mail";
29
27
  const Initializer = ({ setPlugin }) => {
30
28
  const ref = React.useRef(setPlugin);
31
- const { get } = admin.useFetchClient();
32
29
  React.useEffect(() => {
33
30
  ref.current(pluginId);
34
31
  }, []);
35
- React.useEffect(() => {
36
- const HEARTBEAT_INTERVAL = 4 * 60 * 1e3;
37
- const heartbeat = async () => {
38
- try {
39
- await get(`/${pluginId}/license/status`);
40
- } catch (error) {
41
- }
42
- };
43
- const initialTimeout = setTimeout(heartbeat, 60 * 1e3);
44
- const interval = setInterval(heartbeat, HEARTBEAT_INTERVAL);
45
- return () => {
46
- clearTimeout(initialTimeout);
47
- clearInterval(interval);
48
- };
49
- }, [get]);
50
32
  return null;
51
33
  };
52
34
  const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(outline.EnvelopeIcon, { style: { width: 24, height: 24 } });
@@ -68,7 +50,7 @@ const index = {
68
50
  id: `${pluginId}.plugin.name`,
69
51
  defaultMessage: "MagicMail"
70
52
  },
71
- Component: () => Promise.resolve().then(() => require("../_chunks/App-CInlcJMb.js")),
53
+ Component: () => Promise.resolve().then(() => require("./App-BhDvUsMa.js")),
72
54
  permissions: pluginPermissions
73
55
  });
74
56
  app.createSettingSection(
@@ -85,27 +67,7 @@ const index = {
85
67
  },
86
68
  id: "plugin-settings",
87
69
  to: `${pluginId}/plugin-settings`,
88
- Component: () => Promise.resolve().then(() => require("../_chunks/PluginSettings-cZXE_vy8.js")),
89
- permissions: pluginPermissions
90
- },
91
- {
92
- intlLabel: {
93
- id: `${pluginId}.settings.upgrade`,
94
- defaultMessage: "Upgrade"
95
- },
96
- id: "upgrade",
97
- to: `${pluginId}/upgrade`,
98
- Component: () => Promise.resolve().then(() => require("../_chunks/LicensePage-sB-xDRL9.js")),
99
- permissions: pluginPermissions
100
- },
101
- {
102
- intlLabel: {
103
- id: `${pluginId}.settings.license`,
104
- defaultMessage: "License Details"
105
- },
106
- id: "license",
107
- to: `${pluginId}/license`,
108
- Component: () => Promise.resolve().then(() => require("../_chunks/Settings-BRFoD1yZ.js")),
70
+ Component: () => Promise.resolve().then(() => require("./PluginSettings-Css2nHrB.js")),
109
71
  permissions: pluginPermissions
110
72
  }
111
73
  ]
@@ -120,7 +82,7 @@ const index = {
120
82
  async registerTrads({ locales }) {
121
83
  const importedTrads = await Promise.all(
122
84
  locales.map((locale) => {
123
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("../_chunks/de-CF2ItE3Z.js")), "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-CK6UpShS.js")), "./translations/es.json": () => Promise.resolve().then(() => require("../_chunks/es-BpV1MIdm.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("../_chunks/fr-vpziIpRp.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("../_chunks/pt-ODpAhDNa.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
85
+ return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-DKEFnBGC.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-CvtZE1HH.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-BbLLes3D.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-nH9uN6s9.js")), "./translations/pt.json": () => Promise.resolve().then(() => require("./pt-qt_48NxL.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
124
86
  return {
125
87
  data: prefixPluginTranslations(data, pluginId),
126
88
  locale
@@ -136,4 +98,4 @@ const index = {
136
98
  return Promise.resolve(importedTrads);
137
99
  }
138
100
  };
139
- module.exports = index;
101
+ exports.default = index;