@zigordev/email 1.30.0 → 1.31.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/README.md CHANGED
@@ -6,10 +6,10 @@ The emails of the platform's apps: messages built with React Email on the design
6
6
 
7
7
  Two entries, for two moments:
8
8
 
9
- | Entry | When it runs | What it holds |
10
- | ----------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
11
- | `@zigordev/email/build` | When the app builds | `EmailLayout`, `EmailHeading`, `EmailText`, `EmailButton` and `EmailFooter` on the tokens, `theme`, and `renderTemplate` |
12
- | `@zigordev/email` | When the app sends | `fillEmail(template, values)`, and the standard messages ready to fill, starting with `verifyEmail({ lang, product, link })` |
9
+ | Entry | When it runs | What it holds |
10
+ | ----------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------ |
11
+ | `@zigordev/email/build` | When the app builds | `EmailLayout`, `EmailHeading`, `EmailText`, `EmailButton` and `EmailFooter` on the tokens, `theme`, and `renderTemplate` |
12
+ | `@zigordev/email` | When the app sends | `fillEmail(template, values)`, and the four standard messages of sign-in, ready to fill |
13
13
 
14
14
  A template is a subject, the HTML and the plain text of one message in one language, with places to fill written as `{{name}}`. React Email is a library that writes emails as React components and turns them into the old-fashioned HTML that mail clients read.
15
15
 
@@ -38,6 +38,15 @@ Nothing differs between the laptop and production: the same saved templates are
38
38
 
39
39
  ## How to use it
40
40
 
41
+ The standard messages are the four that sign-in sends, in English and in Spanish:
42
+
43
+ | Function | The message |
44
+ | ---------------------------------------- | ------------------------------------------------------------------------- |
45
+ | `verifyEmail({ lang, product, link })` | Confirm your email address, to finish signing up |
46
+ | `resetPassword({ lang, product, link })` | Choose a new password. The link works for one hour |
47
+ | `accountExists({ lang, product })` | Someone tried to sign up with your address, which has an account. No link |
48
+ | `deleteAccount({ lang, product, link })` | Confirm, while signed in, that the account goes for good |
49
+
41
50
  Sending a standard message takes the send entry only:
42
51
 
43
52
  ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAY,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI5E,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,KAAK,gBAAgB,EACrB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAO7C,wBAAsB,cAAc,CAClC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAcxB;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CASzE"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAY,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAO5E,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,KAAK,gBAAgB,EACrB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAO7C,wBAAsB,cAAc,CAClC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAcxB;AASD,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAUzE"}
package/dist/build.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { createElement as h } from 'react';
2
2
  import { render } from 'react-email';
3
3
  import { languages, placeholdersOf } from './fill.js';
4
+ import { AccountExists, accountExistsTexts } from './messages/account-exists.js';
5
+ import { DeleteAccount, deleteAccountTexts } from './messages/delete-account.js';
6
+ import { ResetPassword, resetPasswordTexts } from './messages/reset-password.js';
4
7
  import { VerifyEmail, verifyEmailTexts } from './messages/verify-email.js';
5
8
  export { EmailButton, EmailFooter, EmailHeading, EmailLayout, EmailText, } from './components.js';
6
9
  export { languages } from './fill.js';
@@ -22,11 +25,21 @@ export async function renderTemplate(element, subject) {
22
25
  }
23
26
  return { subject, html, text };
24
27
  }
28
+ const standardMessages = {
29
+ verifyEmail: { component: VerifyEmail, texts: verifyEmailTexts },
30
+ resetPassword: { component: ResetPassword, texts: resetPasswordTexts },
31
+ accountExists: { component: AccountExists, texts: accountExistsTexts },
32
+ deleteAccount: { component: DeleteAccount, texts: deleteAccountTexts },
33
+ };
25
34
  export async function renderStandardMessages() {
26
- const verifyEmail = {};
27
- for (const lang of languages) {
28
- verifyEmail[lang] = await renderTemplate(h(VerifyEmail, { lang }), verifyEmailTexts[lang].subject);
35
+ const rendered = {};
36
+ for (const [name, { component, texts }] of Object.entries(standardMessages)) {
37
+ const byLanguage = {};
38
+ for (const lang of languages) {
39
+ byLanguage[lang] = await renderTemplate(h(component, { lang }), texts[lang].subject);
40
+ }
41
+ rendered[name] = byLanguage;
29
42
  }
30
- return { verifyEmail };
43
+ return rendered;
31
44
  }
32
45
  //# sourceMappingURL=build.js.map
package/dist/build.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"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AAK,EAAE,gBAAgB,EAAE;IAChE,aAAa,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;IACtE,aAAa,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;IACtE,aAAa,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE;CAC9D,CAAC;AAEX,MAAM,CAAC,KAAK,UAAU,sBAAsB;IAC1C,MAAM,QAAQ,GAAG,EAA4E,CAAC;IAC9F,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5E,MAAM,UAAU,GAAG,EAAqC,CAAC;QACzD,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;YAC7B,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,cAAc,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;QACvF,CAAC;QACD,QAAQ,CAAC,IAAqC,CAAC,GAAG,UAAU,CAAC;IAC/D,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/dist/fill.d.ts CHANGED
@@ -6,7 +6,8 @@ export interface EmailTemplate {
6
6
  readonly text: string;
7
7
  }
8
8
  export type Email = EmailTemplate;
9
- export type StandardTemplates = Record<'verifyEmail', Record<Language, EmailTemplate>>;
9
+ export type StandardMessage = 'verifyEmail' | 'resetPassword' | 'accountExists' | 'deleteAccount';
10
+ export type StandardTemplates = Record<StandardMessage, Record<Language, EmailTemplate>>;
10
11
  export declare function placeholdersOf(template: EmailTemplate): string[];
11
12
  export declare function fillEmail(template: EmailTemplate, values: Readonly<Record<string, string>>): Email;
12
13
  //# sourceMappingURL=fill.d.ts.map
@@ -1 +1 @@
1
- {"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AAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;KAC5C,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/generated/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,iBAatB,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/generated/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,iBAiDtB,CAAC"}
@@ -10,6 +10,42 @@ export const messages = {
10
10
  "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"es\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>Un paso para terminar de registrarte en {{product}}</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">Un paso para terminar de registrarte en {{product}}<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Confirma tu dirección de correo</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Selecciona el botón para confirmar que esta dirección es tuya y terminar de registrarte en {{product}}.</p><a href=\"{{link}}\" style=\"line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 16px;border-radius:4px;background-color:#b7a1f5;color:#0b181c;font-size:15px;font-weight:600;padding-top:8px;padding-right:16px;padding-bottom:8px;padding-left:16px\" target=\"_blank\"><span><!--[if mso]><i style=\"mso-font-width:400%;mso-text-raise:12px\" hidden>&#8202;&#8202;</i><![endif]--></span><span style=\"max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px\">Confirmar dirección de correo</span><span><!--[if mso]><i style=\"mso-font-width:400%\" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">Si no lo has pedido, puedes ignorar este correo.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
11
11
  "text": "Confirma tu dirección de correo\n\nSelecciona el botón para confirmar que esta dirección es tuya y terminar de registrarte en {{product}}.\n\nConfirmar dirección de correo {{link}}\n\n----------------------------------------\n\nSi no lo has pedido, puedes ignorar este correo."
12
12
  }
13
+ },
14
+ "resetPassword": {
15
+ "en": {
16
+ "subject": "Choose a new password for {{product}}",
17
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"en\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>A link to choose a new password for {{product}}</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">A link to choose a new password for {{product}}<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Choose a new password</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Select the button to choose a new password for {{product}}. The link works for one hour.</p><a href=\"{{link}}\" style=\"line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 16px;border-radius:4px;background-color:#b7a1f5;color:#0b181c;font-size:15px;font-weight:600;padding-top:8px;padding-right:16px;padding-bottom:8px;padding-left:16px\" target=\"_blank\"><span><!--[if mso]><i style=\"mso-font-width:400%;mso-text-raise:12px\" hidden>&#8202;&#8202;</i><![endif]--></span><span style=\"max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px\">Choose a new password</span><span><!--[if mso]><i style=\"mso-font-width:400%\" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">If you did not ask for this, you can ignore this email. Your password stays the same.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
18
+ "text": "Choose a new password\n\nSelect the button to choose a new password for {{product}}. The link works for one hour.\n\nChoose a new password {{link}}\n\n----------------------------------------\n\nIf you did not ask for this, you can ignore this email. Your password stays the same."
19
+ },
20
+ "es": {
21
+ "subject": "Elige una contraseña nueva para {{product}}",
22
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"es\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>Un enlace para elegir una contraseña nueva para {{product}}</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">Un enlace para elegir una contraseña nueva para {{product}}<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Elige una contraseña nueva</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Selecciona el botón para elegir una contraseña nueva para {{product}}. El enlace funciona durante una hora.</p><a href=\"{{link}}\" style=\"line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 16px;border-radius:4px;background-color:#b7a1f5;color:#0b181c;font-size:15px;font-weight:600;padding-top:8px;padding-right:16px;padding-bottom:8px;padding-left:16px\" target=\"_blank\"><span><!--[if mso]><i style=\"mso-font-width:400%;mso-text-raise:12px\" hidden>&#8202;&#8202;</i><![endif]--></span><span style=\"max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px\">Elegir una contraseña nueva</span><span><!--[if mso]><i style=\"mso-font-width:400%\" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">Si no lo has pedido, puedes ignorar este correo. Tu contraseña no cambia.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
23
+ "text": "Elige una contraseña nueva\n\nSelecciona el botón para elegir una contraseña nueva para {{product}}. El enlace funciona durante una hora.\n\nElegir una contraseña nueva {{link}}\n\n----------------------------------------\n\nSi no lo has pedido, puedes ignorar este correo. Tu contraseña no cambia."
24
+ }
25
+ },
26
+ "accountExists": {
27
+ "en": {
28
+ "subject": "Someone tried to sign up to {{product}} with your address",
29
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"en\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>You already have an account on {{product}}</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">You already have an account on {{product}}<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">You already have an account</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Someone tried to create an account on {{product}} with this email address, which already has one. If it was you, sign in instead, or choose a new password if you forgot yours.</p></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">If it was not you, you can ignore this email. Nothing changed in your account.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
30
+ "text": "You already have an account\n\nSomeone tried to create an account on {{product}} with this email address, which already has one. If it was you, sign in instead, or choose a new password if you forgot yours.\n\n----------------------------------------\n\nIf it was not you, you can ignore this email. Nothing changed in your account."
31
+ },
32
+ "es": {
33
+ "subject": "Alguien intentó registrarse en {{product}} con tu dirección",
34
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"es\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>Ya tienes una cuenta en {{product}}</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">Ya tienes una cuenta en {{product}}<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Ya tienes una cuenta</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Alguien intentó crear una cuenta en {{product}} con esta dirección de correo, que ya tiene una. Si fuiste tú, inicia sesión, o elige una contraseña nueva si has olvidado la tuya.</p></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">Si no fuiste tú, puedes ignorar este correo. Tu cuenta no ha cambiado.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
35
+ "text": "Ya tienes una cuenta\n\nAlguien intentó crear una cuenta en {{product}} con esta dirección de correo, que ya tiene una. Si fuiste tú, inicia sesión, o elige una contraseña nueva si has olvidado la tuya.\n\n----------------------------------------\n\nSi no fuiste tú, puedes ignorar este correo. Tu cuenta no ha cambiado."
36
+ }
37
+ },
38
+ "deleteAccount": {
39
+ "en": {
40
+ "subject": "Confirm that you want to delete your {{product}} account",
41
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"en\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>One step to delete your {{product}} account for good</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">One step to delete your {{product}} account for good<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Delete your account</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Select the button while you are signed in to delete your {{product}} account and everything in it, at once and for good. The link works for one hour.</p><a href=\"{{link}}\" style=\"line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 16px;border-radius:4px;background-color:#b7a1f5;color:#0b181c;font-size:15px;font-weight:600;padding-top:8px;padding-right:16px;padding-bottom:8px;padding-left:16px\" target=\"_blank\"><span><!--[if mso]><i style=\"mso-font-width:400%;mso-text-raise:12px\" hidden>&#8202;&#8202;</i><![endif]--></span><span style=\"max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px\">Delete my account</span><span><!--[if mso]><i style=\"mso-font-width:400%\" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">If you did not ask for this, ignore this email, and your account stays as it is.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
42
+ "text": "Delete your account\n\nSelect the button while you are signed in to delete your {{product}} account and everything in it, at once and for good. The link works for one hour.\n\nDelete my account {{link}}\n\n----------------------------------------\n\nIf you did not ask for this, ignore this email, and your account stays as it is."
43
+ },
44
+ "es": {
45
+ "subject": "Confirma que quieres eliminar tu cuenta de {{product}}",
46
+ "html": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html dir=\"ltr\" lang=\"es\"><head><meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"/><meta name=\"x-apple-disable-message-reformatting\"/><title>Un paso para eliminar tu cuenta de {{product}} para siempre</title></head><body dir=\"ltr\" lang=\"en\" style=\"background-color:#f8f9fa;margin:0\"><!--$--><!--html--><!--head--><div style=\"display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0\" data-skip-in-text=\"true\">Un paso para eliminar tu cuenta de {{product}} para siempre<div> ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍ ‌​‍</div></div><!--body--><table border=\"0\" width=\"100%\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" align=\"center\"><tbody><tr><td dir=\"ltr\" lang=\"en\" style=\"margin:0;background-color:#f8f9fa;color:#1f282a;font-family:&quot;Mona Sans Variable&quot;, &quot;Mona Sans&quot;, system-ui, -apple-system, &quot;Segoe UI&quot;, &quot;Roboto&quot;, sans-serif\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"max-width:640px;margin:0 auto\"><tbody><tr style=\"width:100%\"><td style=\"padding:32px 16px\"><table align=\"center\" width=\"100%\" border=\"0\" cellPadding=\"0\" cellSpacing=\"0\" role=\"presentation\" style=\"background-color:#fcfdfd;border:1px solid #d4dcdd;border-radius:6px\"><tbody><tr><td style=\"padding:32px\"><h1 style=\"margin:0 0 16px;color:#1f282a;font-size:20px;line-height:1.3\">Elimina tu cuenta</h1><p style=\"font-size:15px;line-height:1.5;margin:0 0 16px;color:#1f282a;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0\">Selecciona el botón con la sesión iniciada para eliminar tu cuenta de {{product}} y todo lo que contiene, al momento y para siempre. El enlace funciona durante una hora.</p><a href=\"{{link}}\" style=\"line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:8px 16px;border-radius:4px;background-color:#b7a1f5;color:#0b181c;font-size:15px;font-weight:600;padding-top:8px;padding-right:16px;padding-bottom:8px;padding-left:16px\" target=\"_blank\"><span><!--[if mso]><i style=\"mso-font-width:400%;mso-text-raise:12px\" hidden>&#8202;&#8202;</i><![endif]--></span><span style=\"max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:6px\">Eliminar mi cuenta</span><span><!--[if mso]><i style=\"mso-font-width:400%\" hidden>&#8202;&#8202;&#8203;</i><![endif]--></span></a></td></tr></tbody></table><div><hr style=\"width:100%;border:none;border-color:#d4dcdd;border-top:1px solid #eaeaea;margin:32px 0 16px\"/><p style=\"font-size:13px;line-height:24px;margin:0;color:#5f7074;text-align:center;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0\">Si no lo has pedido, ignora este correo y tu cuenta seguirá como está.</p></div></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>",
47
+ "text": "Elimina tu cuenta\n\nSelecciona el botón con la sesión iniciada para eliminar tu cuenta de {{product}} y todo lo que contiene, al momento y para siempre. El enlace funciona durante una hora.\n\nEliminar mi cuenta {{link}}\n\n----------------------------------------\n\nSi no lo has pedido, ignora este correo y tu cuenta seguirá como está."
48
+ }
13
49
  }
14
50
  };
15
51
  //# sourceMappingURL=messages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/generated/messages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAsB;IACzC,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,SAAS,EAAE,4CAA4C;YACvD,MAAM,EAAE,ilHAAilH;YACzlH,MAAM,EAAE,uQAAuQ;SAChR;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,kDAAkD;YAC7D,MAAM,EAAE,2kHAA2kH;YACnlH,MAAM,EAAE,sRAAsR;SAC/R;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/generated/messages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAsB;IACzC,aAAa,EAAE;QACb,IAAI,EAAE;YACJ,SAAS,EAAE,4CAA4C;YACvD,MAAM,EAAE,ilHAAilH;YACzlH,MAAM,EAAE,uQAAuQ;SAChR;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,kDAAkD;YAC7D,MAAM,EAAE,2kHAA2kH;YACnlH,MAAM,EAAE,sRAAsR;SAC/R;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,SAAS,EAAE,uCAAuC;YAClD,MAAM,EAAE,2lHAA2lH;YACnmH,MAAM,EAAE,0RAA0R;SACnS;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,6CAA6C;YACxD,MAAM,EAAE,ykHAAykH;YACjlH,MAAM,EAAE,4SAA4S;SACrT;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,SAAS,EAAE,2DAA2D;YACtE,MAAM,EAAE,yhGAAyhG;YACjiG,MAAM,EAAE,8UAA8U;SACvV;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,6DAA6D;YACxE,MAAM,EAAE,kiGAAkiG;YAC1iG,MAAM,EAAE,kUAAkU;SAC3U;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,SAAS,EAAE,0DAA0D;YACrE,MAAM,EAAE,8nHAA8nH;YACtoH,MAAM,EAAE,4UAA4U;SACrV;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,wDAAwD;YACnE,MAAM,EAAE,knHAAknH;YAC1nH,MAAM,EAAE,qVAAqV;SAC9V;KACF;CACF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type Email, type Language } from './fill.ts';
2
- export type { Email, EmailTemplate, Language, StandardTemplates } from './fill.ts';
2
+ export type { Email, EmailTemplate, Language, StandardMessage, StandardTemplates, } from './fill.ts';
3
3
  export { fillEmail, languages, placeholdersOf } from './fill.ts';
4
4
  export interface VerifyEmailOptions {
5
5
  readonly lang: Language;
@@ -7,4 +7,21 @@ export interface VerifyEmailOptions {
7
7
  readonly link: string;
8
8
  }
9
9
  export declare function verifyEmail(options: VerifyEmailOptions): Email;
10
+ export interface ResetPasswordOptions {
11
+ readonly lang: Language;
12
+ readonly product: string;
13
+ readonly link: string;
14
+ }
15
+ export declare function resetPassword(options: ResetPasswordOptions): Email;
16
+ export interface AccountExistsOptions {
17
+ readonly lang: Language;
18
+ readonly product: string;
19
+ }
20
+ export declare function accountExists(options: AccountExistsOptions): Email;
21
+ export interface DeleteAccountOptions {
22
+ readonly lang: Language;
23
+ readonly product: string;
24
+ readonly link: string;
25
+ }
26
+ export declare function deleteAccount(options: DeleteAccountOptions): Email;
10
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAa,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGjE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,KAAK,CAK9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAa,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGjE,YAAY,EACV,KAAK,EACL,aAAa,EACb,QAAQ,EACR,eAAe,EACf,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,KAAK,CAK9D;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,KAAK,CAKlE;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,KAAK,CAElE;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,KAAK,CAKlE"}
package/dist/index.js CHANGED
@@ -7,4 +7,19 @@ export function verifyEmail(options) {
7
7
  link: options.link,
8
8
  });
9
9
  }
10
+ export function resetPassword(options) {
11
+ return fillEmail(messages.resetPassword[options.lang], {
12
+ product: options.product,
13
+ link: options.link,
14
+ });
15
+ }
16
+ export function accountExists(options) {
17
+ return fillEmail(messages.accountExists[options.lang], { product: options.product });
18
+ }
19
+ export function deleteAccount(options) {
20
+ return fillEmail(messages.deleteAccount[options.lang], {
21
+ product: options.product,
22
+ link: options.link,
23
+ });
24
+ }
10
25
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAiB,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQjE,MAAM,UAAU,WAAW,CAAC,OAA2B;IACrD,OAAO,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAiB,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AASnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQjE,MAAM,UAAU,WAAW,CAAC,OAA2B;IACrD,OAAO,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC;AAQD,MAAM,UAAU,aAAa,CAAC,OAA6B;IACzD,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACrD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC;AAOD,MAAM,UAAU,aAAa,CAAC,OAA6B;IACzD,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACvF,CAAC;AAQD,MAAM,UAAU,aAAa,CAAC,OAA6B;IACzD,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACrD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { Language } from '../fill.ts';
3
+ export declare const accountExistsTexts: {
4
+ readonly en: {
5
+ readonly subject: 'Someone tried to sign up to {{product}} with your address';
6
+ readonly preview: 'You already have an account on {{product}}';
7
+ readonly heading: 'You already have an account';
8
+ readonly body: 'Someone tried to create an account on {{product}} with this email address, which already has one. If it was you, sign in instead, or choose a new password if you forgot yours.';
9
+ readonly footer: 'If it was not you, you can ignore this email. Nothing changed in your account.';
10
+ };
11
+ readonly es: {
12
+ readonly subject: 'Alguien intentó registrarse en {{product}} con tu dirección';
13
+ readonly preview: 'Ya tienes una cuenta en {{product}}';
14
+ readonly heading: 'Ya tienes una cuenta';
15
+ readonly body: 'Alguien intentó crear una cuenta en {{product}} con esta dirección de correo, que ya tiene una. Si fuiste tú, inicia sesión, o elige una contraseña nueva si has olvidado la tuya.';
16
+ readonly footer: 'Si no fuiste tú, puedes ignorar este correo. Tu cuenta no ha cambiado.';
17
+ };
18
+ };
19
+ export declare function AccountExists({ lang }: {
20
+ readonly lang: Language;
21
+ }): ReactElement;
22
+ //# sourceMappingURL=account-exists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-exists.d.ts","sourceRoot":"","sources":["../../src/messages/account-exists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,kBAAkB;;iBAE3B,OAAO,EAAE,2DAA2D;iBACpE,OAAO,EAAE,4CAA4C;iBACrD,OAAO,EAAE,6BAA6B;iBACtC,IAAI,EAAE,iLAAiL;iBACvL,MAAM,EAAE,gFAAgF;;;iBAGxF,OAAO,EAAE,6DAA6D;iBACtE,OAAO,EAAE,qCAAqC;iBAC9C,OAAO,EAAE,sBAAsB;iBAC/B,IAAI,EAAE,oLAAoL;iBAC1L,MAAM,EAAE,wEAAwE;;CAEvB,CAAC;AAE9D,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,YAAY,CAQjF"}
@@ -0,0 +1,23 @@
1
+ import { createElement as h } from 'react';
2
+ import { EmailFooter, EmailHeading, EmailLayout, EmailText } from '../components.js';
3
+ export const accountExistsTexts = {
4
+ en: {
5
+ subject: 'Someone tried to sign up to {{product}} with your address',
6
+ preview: 'You already have an account on {{product}}',
7
+ heading: 'You already have an account',
8
+ body: 'Someone tried to create an account on {{product}} with this email address, which already has one. If it was you, sign in instead, or choose a new password if you forgot yours.',
9
+ footer: 'If it was not you, you can ignore this email. Nothing changed in your account.',
10
+ },
11
+ es: {
12
+ subject: 'Alguien intentó registrarse en {{product}} con tu dirección',
13
+ preview: 'Ya tienes una cuenta en {{product}}',
14
+ heading: 'Ya tienes una cuenta',
15
+ body: 'Alguien intentó crear una cuenta en {{product}} con esta dirección de correo, que ya tiene una. Si fuiste tú, inicia sesión, o elige una contraseña nueva si has olvidado la tuya.',
16
+ footer: 'Si no fuiste tú, puedes ignorar este correo. Tu cuenta no ha cambiado.',
17
+ },
18
+ };
19
+ export function AccountExists({ lang }) {
20
+ const texts = accountExistsTexts[lang];
21
+ return h(EmailLayout, { lang, preview: texts.preview, footer: h(EmailFooter, null, texts.footer) }, h(EmailHeading, null, texts.heading), h(EmailText, null, texts.body));
22
+ }
23
+ //# sourceMappingURL=account-exists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-exists.js","sourceRoot":"","sources":["../../src/messages/account-exists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,CAAC,EAAqB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGrF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE;QACF,OAAO,EAAE,2DAA2D;QACpE,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,6BAA6B;QACtC,IAAI,EAAE,iLAAiL;QACvL,MAAM,EAAE,gFAAgF;KACzF;IACD,EAAE,EAAE;QACF,OAAO,EAAE,6DAA6D;QACtE,OAAO,EAAE,qCAAqC;QAC9C,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,oLAAoL;QAC1L,MAAM,EAAE,wEAAwE;KACjF;CAC0D,CAAC;AAE9D,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA+B;IACjE,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,CACN,WAAW,EACX,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAC5E,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EACpC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAC/B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { Language } from '../fill.ts';
3
+ export declare const deleteAccountTexts: {
4
+ readonly en: {
5
+ readonly subject: 'Confirm that you want to delete your {{product}} account';
6
+ readonly preview: 'One step to delete your {{product}} account for good';
7
+ readonly heading: 'Delete your account';
8
+ readonly body: 'Select the button while you are signed in to delete your {{product}} account and everything in it, at once and for good. The link works for one hour.';
9
+ readonly button: 'Delete my account';
10
+ readonly footer: 'If you did not ask for this, ignore this email, and your account stays as it is.';
11
+ };
12
+ readonly es: {
13
+ readonly subject: 'Confirma que quieres eliminar tu cuenta de {{product}}';
14
+ readonly preview: 'Un paso para eliminar tu cuenta de {{product}} para siempre';
15
+ readonly heading: 'Elimina tu cuenta';
16
+ readonly body: 'Selecciona el botón con la sesión iniciada para eliminar tu cuenta de {{product}} y todo lo que contiene, al momento y para siempre. El enlace funciona durante una hora.';
17
+ readonly button: 'Eliminar mi cuenta';
18
+ readonly footer: 'Si no lo has pedido, ignora este correo y tu cuenta seguirá como está.';
19
+ };
20
+ };
21
+ export declare function DeleteAccount({ lang }: {
22
+ readonly lang: Language;
23
+ }): ReactElement;
24
+ //# sourceMappingURL=delete-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account.d.ts","sourceRoot":"","sources":["../../src/messages/delete-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,kBAAkB;;iBAE3B,OAAO,EAAE,0DAA0D;iBACnE,OAAO,EAAE,sDAAsD;iBAC/D,OAAO,EAAE,qBAAqB;iBAC9B,IAAI,EAAE,uJAAuJ;iBAC7J,MAAM,EAAE,mBAAmB;iBAC3B,MAAM,EAAE,kFAAkF;;;iBAG1F,OAAO,EAAE,wDAAwD;iBACjE,OAAO,EAAE,6DAA6D;iBACtE,OAAO,EAAE,mBAAmB;iBAC5B,IAAI,EAAE,2KAA2K;iBACjL,MAAM,EAAE,oBAAoB;iBAC5B,MAAM,EAAE,wEAAwE;;CAEvB,CAAC;AAE9D,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,YAAY,CASjF"}
@@ -0,0 +1,25 @@
1
+ import { createElement as h } from 'react';
2
+ import { EmailButton, EmailFooter, EmailHeading, EmailLayout, EmailText } from '../components.js';
3
+ export const deleteAccountTexts = {
4
+ en: {
5
+ subject: 'Confirm that you want to delete your {{product}} account',
6
+ preview: 'One step to delete your {{product}} account for good',
7
+ heading: 'Delete your account',
8
+ body: 'Select the button while you are signed in to delete your {{product}} account and everything in it, at once and for good. The link works for one hour.',
9
+ button: 'Delete my account',
10
+ footer: 'If you did not ask for this, ignore this email, and your account stays as it is.',
11
+ },
12
+ es: {
13
+ subject: 'Confirma que quieres eliminar tu cuenta de {{product}}',
14
+ preview: 'Un paso para eliminar tu cuenta de {{product}} para siempre',
15
+ heading: 'Elimina tu cuenta',
16
+ body: 'Selecciona el botón con la sesión iniciada para eliminar tu cuenta de {{product}} y todo lo que contiene, al momento y para siempre. El enlace funciona durante una hora.',
17
+ button: 'Eliminar mi cuenta',
18
+ footer: 'Si no lo has pedido, ignora este correo y tu cuenta seguirá como está.',
19
+ },
20
+ };
21
+ export function DeleteAccount({ lang }) {
22
+ const texts = deleteAccountTexts[lang];
23
+ return h(EmailLayout, { lang, preview: texts.preview, footer: h(EmailFooter, null, texts.footer) }, h(EmailHeading, null, texts.heading), h(EmailText, null, texts.body), h(EmailButton, { href: '{{link}}' }, texts.button));
24
+ }
25
+ //# sourceMappingURL=delete-account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-account.js","sourceRoot":"","sources":["../../src/messages/delete-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,CAAC,EAAqB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlG,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE;QACF,OAAO,EAAE,0DAA0D;QACnE,OAAO,EAAE,sDAAsD;QAC/D,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,uJAAuJ;QAC7J,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,kFAAkF;KAC3F;IACD,EAAE,EAAE;QACF,OAAO,EAAE,wDAAwD;QACjE,OAAO,EAAE,6DAA6D;QACtE,OAAO,EAAE,mBAAmB;QAC5B,IAAI,EAAE,2KAA2K;QACjL,MAAM,EAAE,oBAAoB;QAC5B,MAAM,EAAE,wEAAwE;KACjF;CAC0D,CAAC;AAE9D,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA+B;IACjE,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,CACN,WAAW,EACX,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAC5E,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EACpC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAC9B,CAAC,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CACnD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { Language } from '../fill.ts';
3
+ export declare const resetPasswordTexts: {
4
+ readonly en: {
5
+ readonly subject: 'Choose a new password for {{product}}';
6
+ readonly preview: 'A link to choose a new password for {{product}}';
7
+ readonly heading: 'Choose a new password';
8
+ readonly body: 'Select the button to choose a new password for {{product}}. The link works for one hour.';
9
+ readonly button: 'Choose a new password';
10
+ readonly footer: 'If you did not ask for this, you can ignore this email. Your password stays the same.';
11
+ };
12
+ readonly es: {
13
+ readonly subject: 'Elige una contraseña nueva para {{product}}';
14
+ readonly preview: 'Un enlace para elegir una contraseña nueva para {{product}}';
15
+ readonly heading: 'Elige una contraseña nueva';
16
+ readonly body: 'Selecciona el botón para elegir una contraseña nueva para {{product}}. El enlace funciona durante una hora.';
17
+ readonly button: 'Elegir una contraseña nueva';
18
+ readonly footer: 'Si no lo has pedido, puedes ignorar este correo. Tu contraseña no cambia.';
19
+ };
20
+ };
21
+ export declare function ResetPassword({ lang }: {
22
+ readonly lang: Language;
23
+ }): ReactElement;
24
+ //# sourceMappingURL=reset-password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../src/messages/reset-password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,kBAAkB;;iBAE3B,OAAO,EAAE,uCAAuC;iBAChD,OAAO,EAAE,iDAAiD;iBAC1D,OAAO,EAAE,uBAAuB;iBAChC,IAAI,EAAE,0FAA0F;iBAChG,MAAM,EAAE,uBAAuB;iBAC/B,MAAM,EAAE,uFAAuF;;;iBAG/F,OAAO,EAAE,6CAA6C;iBACtD,OAAO,EAAE,6DAA6D;iBACtE,OAAO,EAAE,4BAA4B;iBACrC,IAAI,EAAE,6GAA6G;iBACnH,MAAM,EAAE,6BAA6B;iBACrC,MAAM,EAAE,2EAA2E;;CAE1B,CAAC;AAE9D,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,YAAY,CASjF"}
@@ -0,0 +1,25 @@
1
+ import { createElement as h } from 'react';
2
+ import { EmailButton, EmailFooter, EmailHeading, EmailLayout, EmailText } from '../components.js';
3
+ export const resetPasswordTexts = {
4
+ en: {
5
+ subject: 'Choose a new password for {{product}}',
6
+ preview: 'A link to choose a new password for {{product}}',
7
+ heading: 'Choose a new password',
8
+ body: 'Select the button to choose a new password for {{product}}. The link works for one hour.',
9
+ button: 'Choose a new password',
10
+ footer: 'If you did not ask for this, you can ignore this email. Your password stays the same.',
11
+ },
12
+ es: {
13
+ subject: 'Elige una contraseña nueva para {{product}}',
14
+ preview: 'Un enlace para elegir una contraseña nueva para {{product}}',
15
+ heading: 'Elige una contraseña nueva',
16
+ body: 'Selecciona el botón para elegir una contraseña nueva para {{product}}. El enlace funciona durante una hora.',
17
+ button: 'Elegir una contraseña nueva',
18
+ footer: 'Si no lo has pedido, puedes ignorar este correo. Tu contraseña no cambia.',
19
+ },
20
+ };
21
+ export function ResetPassword({ lang }) {
22
+ const texts = resetPasswordTexts[lang];
23
+ return h(EmailLayout, { lang, preview: texts.preview, footer: h(EmailFooter, null, texts.footer) }, h(EmailHeading, null, texts.heading), h(EmailText, null, texts.body), h(EmailButton, { href: '{{link}}' }, texts.button));
24
+ }
25
+ //# sourceMappingURL=reset-password.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password.js","sourceRoot":"","sources":["../../src/messages/reset-password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,CAAC,EAAqB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlG,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,EAAE;QACF,OAAO,EAAE,uCAAuC;QAChD,OAAO,EAAE,iDAAiD;QAC1D,OAAO,EAAE,uBAAuB;QAChC,IAAI,EAAE,0FAA0F;QAChG,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,uFAAuF;KAChG;IACD,EAAE,EAAE;QACF,OAAO,EAAE,6CAA6C;QACtD,OAAO,EAAE,6DAA6D;QACtE,OAAO,EAAE,4BAA4B;QACrC,IAAI,EAAE,6GAA6G;QACnH,MAAM,EAAE,6BAA6B;QACrC,MAAM,EAAE,2EAA2E;KACpF;CAC0D,CAAC;AAE9D,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA+B;IACjE,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,CACN,WAAW,EACX,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAC5E,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EACpC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAC9B,CAAC,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CACnD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zigordev/email",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
4
4
  "description": "The emails of zigordev apps: messages rendered with React Email on the design tokens when an app builds, and filled in at send time",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -40,8 +40,8 @@
40
40
  "@types/node": "26.6.6",
41
41
  "@types/react": "19.3.0",
42
42
  "@types/react-dom": "19.3.0",
43
- "@zigordev/dev": "1.30.0",
44
- "@zigordev/tokens": "1.30.0",
43
+ "@zigordev/dev": "1.31.0",
44
+ "@zigordev/tokens": "1.31.0",
45
45
  "lightningcss": "1.33.0",
46
46
  "react": "19.3.1",
47
47
  "react-dom": "19.3.1",
@@ -60,6 +60,6 @@
60
60
  "scripts": {
61
61
  "build": "tsc -p tsconfig.build.json",
62
62
  "typecheck": "tsc -p tsconfig.json",
63
- "generate": "node scripts/generate-theme.ts"
63
+ "generate": "node scripts/generate.ts"
64
64
  }
65
65
  }