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.
- package/CHANGELOG.md +32 -0
- package/README.md +21 -10
- package/dist/{_chunks/App-CInlcJMb.js → admin/App-BhDvUsMa.js} +97 -789
- package/dist/{_chunks/App-D4bFKNcg.mjs → admin/App-CjlxXCZb.mjs} +109 -801
- package/dist/{_chunks/PluginSettings-cZXE_vy8.js → admin/PluginSettings-Css2nHrB.js} +10 -4
- package/dist/{_chunks/PluginSettings-XwyzH95_.mjs → admin/PluginSettings-Duc_Y571.mjs} +10 -4
- package/dist/{_chunks/StyledButtons-CdOf4Sps.mjs → admin/StyledButtons-aq1EWrQ-.mjs} +1 -2
- package/dist/{_chunks/StyledButtons-DVGuFoqy.js → admin/StyledButtons-jHF7TXal.js} +1 -2
- package/dist/{_chunks/de-CF2ItE3Z.js → admin/de-DKEFnBGC.js} +0 -21
- package/dist/{_chunks/de-CwbYw2jT.mjs → admin/de-SKsLY2de.mjs} +0 -21
- package/dist/{_chunks/en-CK6UpShS.js → admin/en-CvtZE1HH.js} +0 -21
- package/dist/{_chunks/en-ZRmfU4qX.mjs → admin/en-Ds2Q7fue.mjs} +0 -21
- package/dist/{_chunks/es-DQHwzPpP.mjs → admin/es-BEvzLtTg.mjs} +20 -21
- package/dist/{_chunks/es-BpV1MIdm.js → admin/es-BbLLes3D.js} +20 -21
- package/dist/{_chunks/fr-BG1WfEVm.mjs → admin/fr-CRpwImX6.mjs} +20 -21
- package/dist/{_chunks/fr-vpziIpRp.js → admin/fr-nH9uN6s9.js} +20 -21
- package/dist/admin/index.js +6 -44
- package/dist/admin/index.mjs +4 -43
- package/dist/{_chunks/pt-CMoGrOib.mjs → admin/pt-CjOe2N_n.mjs} +20 -21
- package/dist/{_chunks/pt-ODpAhDNa.js → admin/pt-qt_48NxL.js} +20 -21
- package/dist/server/index.js +8052 -17573
- package/dist/server/index.mjs +8079 -17578
- package/package.json +40 -27
- package/dist/_chunks/LicensePage-B61HnhyD.mjs +0 -352
- package/dist/_chunks/LicensePage-sB-xDRL9.js +0 -354
- package/dist/_chunks/Settings-BRFoD1yZ.js +0 -354
- package/dist/_chunks/Settings-DoSrZKfp.mjs +0 -352
package/dist/admin/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRef, useEffect } from "react";
|
|
2
|
-
import { useFetchClient } from "@strapi/strapi/admin";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { EnvelopeIcon } from "@heroicons/react/24/outline";
|
|
5
4
|
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
@@ -18,34 +17,16 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
18
17
|
);
|
|
19
18
|
});
|
|
20
19
|
};
|
|
21
|
-
const strapi = {
|
|
22
|
-
name: "magic-mail"
|
|
23
|
-
};
|
|
20
|
+
const strapi = { "name": "magic-mail" };
|
|
24
21
|
const pluginPkg = {
|
|
25
22
|
strapi
|
|
26
23
|
};
|
|
27
24
|
const pluginId = "magic-mail";
|
|
28
25
|
const Initializer = ({ setPlugin }) => {
|
|
29
26
|
const ref = useRef(setPlugin);
|
|
30
|
-
const { get } = useFetchClient();
|
|
31
27
|
useEffect(() => {
|
|
32
28
|
ref.current(pluginId);
|
|
33
29
|
}, []);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
const HEARTBEAT_INTERVAL = 4 * 60 * 1e3;
|
|
36
|
-
const heartbeat = async () => {
|
|
37
|
-
try {
|
|
38
|
-
await get(`/${pluginId}/license/status`);
|
|
39
|
-
} catch (error) {
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const initialTimeout = setTimeout(heartbeat, 60 * 1e3);
|
|
43
|
-
const interval = setInterval(heartbeat, HEARTBEAT_INTERVAL);
|
|
44
|
-
return () => {
|
|
45
|
-
clearTimeout(initialTimeout);
|
|
46
|
-
clearInterval(interval);
|
|
47
|
-
};
|
|
48
|
-
}, [get]);
|
|
49
30
|
return null;
|
|
50
31
|
};
|
|
51
32
|
const PluginIcon = () => /* @__PURE__ */ jsx(EnvelopeIcon, { style: { width: 24, height: 24 } });
|
|
@@ -67,7 +48,7 @@ const index = {
|
|
|
67
48
|
id: `${pluginId}.plugin.name`,
|
|
68
49
|
defaultMessage: "MagicMail"
|
|
69
50
|
},
|
|
70
|
-
Component: () => import("
|
|
51
|
+
Component: () => import("./App-CjlxXCZb.mjs"),
|
|
71
52
|
permissions: pluginPermissions
|
|
72
53
|
});
|
|
73
54
|
app.createSettingSection(
|
|
@@ -84,27 +65,7 @@ const index = {
|
|
|
84
65
|
},
|
|
85
66
|
id: "plugin-settings",
|
|
86
67
|
to: `${pluginId}/plugin-settings`,
|
|
87
|
-
Component: () => import("
|
|
88
|
-
permissions: pluginPermissions
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
intlLabel: {
|
|
92
|
-
id: `${pluginId}.settings.upgrade`,
|
|
93
|
-
defaultMessage: "Upgrade"
|
|
94
|
-
},
|
|
95
|
-
id: "upgrade",
|
|
96
|
-
to: `${pluginId}/upgrade`,
|
|
97
|
-
Component: () => import("../_chunks/LicensePage-B61HnhyD.mjs"),
|
|
98
|
-
permissions: pluginPermissions
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
intlLabel: {
|
|
102
|
-
id: `${pluginId}.settings.license`,
|
|
103
|
-
defaultMessage: "License Details"
|
|
104
|
-
},
|
|
105
|
-
id: "license",
|
|
106
|
-
to: `${pluginId}/license`,
|
|
107
|
-
Component: () => import("../_chunks/Settings-DoSrZKfp.mjs"),
|
|
68
|
+
Component: () => import("./PluginSettings-Duc_Y571.mjs"),
|
|
108
69
|
permissions: pluginPermissions
|
|
109
70
|
}
|
|
110
71
|
]
|
|
@@ -119,7 +80,7 @@ const index = {
|
|
|
119
80
|
async registerTrads({ locales }) {
|
|
120
81
|
const importedTrads = await Promise.all(
|
|
121
82
|
locales.map((locale) => {
|
|
122
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => import("
|
|
83
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => import("./de-SKsLY2de.mjs"), "./translations/en.json": () => import("./en-Ds2Q7fue.mjs"), "./translations/es.json": () => import("./es-BEvzLtTg.mjs"), "./translations/fr.json": () => import("./fr-CRpwImX6.mjs"), "./translations/pt.json": () => import("./pt-CjOe2N_n.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
|
|
123
84
|
return {
|
|
124
85
|
data: prefixPluginTranslations(data, pluginId),
|
|
125
86
|
locale
|
|
@@ -3,7 +3,6 @@ const pt = {
|
|
|
3
3
|
"plugin.description": "Suite de Email Business para Strapi v5",
|
|
4
4
|
"tabs.accounts": "Contas de Email",
|
|
5
5
|
"tabs.routing": "Regras de Roteamento",
|
|
6
|
-
"tabs.license": "Licença",
|
|
7
6
|
"accounts.title": "Contas de Email",
|
|
8
7
|
"accounts.subtitle": "Gerencie várias contas de email com Smart Routing",
|
|
9
8
|
"accounts.add": "Adicionar conta",
|
|
@@ -28,21 +27,6 @@ const pt = {
|
|
|
28
27
|
"routing.delete": "Excluir regra",
|
|
29
28
|
"routing.empty": "Nenhuma regra de roteamento",
|
|
30
29
|
"routing.emptyDescription": "Crie sua primeira regra de roteamento",
|
|
31
|
-
"license.title": "Gerenciamento de Licença",
|
|
32
|
-
"license.subtitle": "Gerencie sua licença MagicMail",
|
|
33
|
-
"license.active": "Licença ativa",
|
|
34
|
-
"license.inactive": "Nenhuma licença ativa",
|
|
35
|
-
"license.demo": "Modo demo",
|
|
36
|
-
"license.generate": "Gerar licença gratuita",
|
|
37
|
-
"license.activate": "Ativar licença",
|
|
38
|
-
"license.key": "Chave de licença",
|
|
39
|
-
"license.email": "Endereço de email",
|
|
40
|
-
"license.copyKey": "Copiar chave",
|
|
41
|
-
"license.download": "Baixar como TXT",
|
|
42
|
-
"license.refresh": "Atualizar status",
|
|
43
|
-
"features.premium": "Recursos Premium",
|
|
44
|
-
"features.advanced": "Recursos Avançados",
|
|
45
|
-
"features.enterprise": "Recursos Enterprise",
|
|
46
30
|
"notifications.accountCreated": "Conta de email criada com sucesso",
|
|
47
31
|
"notifications.accountUpdated": "Conta de email atualizada com sucesso",
|
|
48
32
|
"notifications.accountDeleted": "Conta de email excluída com sucesso",
|
|
@@ -51,13 +35,28 @@ const pt = {
|
|
|
51
35
|
"notifications.ruleCreated": "Regra de roteamento criada com sucesso",
|
|
52
36
|
"notifications.ruleUpdated": "Regra de roteamento atualizada com sucesso",
|
|
53
37
|
"notifications.ruleDeleted": "Regra de roteamento excluída com sucesso",
|
|
54
|
-
"notifications.licenseActivated": "Licença ativada com sucesso",
|
|
55
|
-
"notifications.licenseCopied": "Chave de licença copiada",
|
|
56
38
|
"notifications.error": "Ocorreu um erro",
|
|
57
39
|
"errors.noAccounts": "Nenhuma conta de email disponível",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
40
|
+
"whatsapp.title": "Integração com WhatsApp",
|
|
41
|
+
"whatsapp.subtitle": "Envie mensagens via WhatsApp - totalmente grátis!",
|
|
42
|
+
"whatsapp.tab": "WhatsApp",
|
|
43
|
+
"whatsapp.status.connected": "Conectado",
|
|
44
|
+
"whatsapp.status.connecting": "Conectando...",
|
|
45
|
+
"whatsapp.status.qr_pending": "Aguardando leitura do QR",
|
|
46
|
+
"whatsapp.status.disconnected": "Desconectado",
|
|
47
|
+
"whatsapp.step1.title": "Verificar instalação",
|
|
48
|
+
"whatsapp.step2.title": "Conectar WhatsApp",
|
|
49
|
+
"whatsapp.step3.title": "Ler código QR",
|
|
50
|
+
"whatsapp.step4.title": "Pronto para usar",
|
|
51
|
+
"whatsapp.connect": "Conectar WhatsApp",
|
|
52
|
+
"whatsapp.disconnect": "Desconectar WhatsApp",
|
|
53
|
+
"whatsapp.sendTest": "Enviar mensagem de teste",
|
|
54
|
+
"whatsapp.phoneNumber": "Número de telefone",
|
|
55
|
+
"whatsapp.phoneHint": "Insira o número de telefone com código do país (ex. 351 para Portugal)",
|
|
56
|
+
"whatsapp.message": "Mensagem (opcional)",
|
|
57
|
+
"whatsapp.notInstalled": "Dependências não instaladas",
|
|
58
|
+
"whatsapp.installCommand": "npm install baileys pino qrcode",
|
|
59
|
+
"whatsapp.freeLabel": "GRÁTIS - Sem custos de API!"
|
|
61
60
|
};
|
|
62
61
|
export {
|
|
63
62
|
pt as default
|
|
@@ -5,7 +5,6 @@ const pt = {
|
|
|
5
5
|
"plugin.description": "Suite de Email Business para Strapi v5",
|
|
6
6
|
"tabs.accounts": "Contas de Email",
|
|
7
7
|
"tabs.routing": "Regras de Roteamento",
|
|
8
|
-
"tabs.license": "Licença",
|
|
9
8
|
"accounts.title": "Contas de Email",
|
|
10
9
|
"accounts.subtitle": "Gerencie várias contas de email com Smart Routing",
|
|
11
10
|
"accounts.add": "Adicionar conta",
|
|
@@ -30,21 +29,6 @@ const pt = {
|
|
|
30
29
|
"routing.delete": "Excluir regra",
|
|
31
30
|
"routing.empty": "Nenhuma regra de roteamento",
|
|
32
31
|
"routing.emptyDescription": "Crie sua primeira regra de roteamento",
|
|
33
|
-
"license.title": "Gerenciamento de Licença",
|
|
34
|
-
"license.subtitle": "Gerencie sua licença MagicMail",
|
|
35
|
-
"license.active": "Licença ativa",
|
|
36
|
-
"license.inactive": "Nenhuma licença ativa",
|
|
37
|
-
"license.demo": "Modo demo",
|
|
38
|
-
"license.generate": "Gerar licença gratuita",
|
|
39
|
-
"license.activate": "Ativar licença",
|
|
40
|
-
"license.key": "Chave de licença",
|
|
41
|
-
"license.email": "Endereço de email",
|
|
42
|
-
"license.copyKey": "Copiar chave",
|
|
43
|
-
"license.download": "Baixar como TXT",
|
|
44
|
-
"license.refresh": "Atualizar status",
|
|
45
|
-
"features.premium": "Recursos Premium",
|
|
46
|
-
"features.advanced": "Recursos Avançados",
|
|
47
|
-
"features.enterprise": "Recursos Enterprise",
|
|
48
32
|
"notifications.accountCreated": "Conta de email criada com sucesso",
|
|
49
33
|
"notifications.accountUpdated": "Conta de email atualizada com sucesso",
|
|
50
34
|
"notifications.accountDeleted": "Conta de email excluída com sucesso",
|
|
@@ -53,12 +37,27 @@ const pt = {
|
|
|
53
37
|
"notifications.ruleCreated": "Regra de roteamento criada com sucesso",
|
|
54
38
|
"notifications.ruleUpdated": "Regra de roteamento atualizada com sucesso",
|
|
55
39
|
"notifications.ruleDeleted": "Regra de roteamento excluída com sucesso",
|
|
56
|
-
"notifications.licenseActivated": "Licença ativada com sucesso",
|
|
57
|
-
"notifications.licenseCopied": "Chave de licença copiada",
|
|
58
40
|
"notifications.error": "Ocorreu um erro",
|
|
59
41
|
"errors.noAccounts": "Nenhuma conta de email disponível",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
42
|
+
"whatsapp.title": "Integração com WhatsApp",
|
|
43
|
+
"whatsapp.subtitle": "Envie mensagens via WhatsApp - totalmente grátis!",
|
|
44
|
+
"whatsapp.tab": "WhatsApp",
|
|
45
|
+
"whatsapp.status.connected": "Conectado",
|
|
46
|
+
"whatsapp.status.connecting": "Conectando...",
|
|
47
|
+
"whatsapp.status.qr_pending": "Aguardando leitura do QR",
|
|
48
|
+
"whatsapp.status.disconnected": "Desconectado",
|
|
49
|
+
"whatsapp.step1.title": "Verificar instalação",
|
|
50
|
+
"whatsapp.step2.title": "Conectar WhatsApp",
|
|
51
|
+
"whatsapp.step3.title": "Ler código QR",
|
|
52
|
+
"whatsapp.step4.title": "Pronto para usar",
|
|
53
|
+
"whatsapp.connect": "Conectar WhatsApp",
|
|
54
|
+
"whatsapp.disconnect": "Desconectar WhatsApp",
|
|
55
|
+
"whatsapp.sendTest": "Enviar mensagem de teste",
|
|
56
|
+
"whatsapp.phoneNumber": "Número de telefone",
|
|
57
|
+
"whatsapp.phoneHint": "Insira o número de telefone com código do país (ex. 351 para Portugal)",
|
|
58
|
+
"whatsapp.message": "Mensagem (opcional)",
|
|
59
|
+
"whatsapp.notInstalled": "Dependências não instaladas",
|
|
60
|
+
"whatsapp.installCommand": "npm install baileys pino qrcode",
|
|
61
|
+
"whatsapp.freeLabel": "GRÁTIS - Sem custos de API!"
|
|
63
62
|
};
|
|
64
63
|
exports.default = pt;
|