@travetto/email 3.1.12 → 3.1.13

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
@@ -37,4 +37,4 @@ By design, sending an email requires the sender to specify the html, text option
37
37
  * `resources/<key>.compiled.html`
38
38
  * `resources/<key>.compiled.text`
39
39
  * `resources/<key>.compiled.subject`
40
- With `.html` being the only required field. The [Email Templating](https://github.com/travetto/travetto/tree/main/module/email-template#readme "Email templating module") module supports this format, and will generate files accordingly. Also, note that `<key>` can include slashes, allowing for nesting folders.
40
+ With `.html` being the only required field. The [Email Compilation Support](https://github.com/travetto/travetto/tree/main/module/email-compiler#readme "Email compiling module") module supports this format, and will generate files accordingly. Also, note that `<key>` can include slashes, allowing for nesting folders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/email",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "description": "Email transmission module.",
5
5
  "keywords": [
6
6
  "email",
@@ -23,9 +23,9 @@
23
23
  "directory": "module/email"
24
24
  },
25
25
  "dependencies": {
26
- "@travetto/base": "^3.1.2",
27
- "@travetto/config": "^3.1.6",
28
- "@travetto/di": "^3.1.3",
26
+ "@travetto/base": "^3.1.3",
27
+ "@travetto/config": "^3.1.7",
28
+ "@travetto/di": "^3.1.4",
29
29
  "@types/mustache": "^4.2.2",
30
30
  "mustache": "^4.2.0"
31
31
  },
package/src/types.ts CHANGED
@@ -62,14 +62,21 @@ export type SentMessage = {
62
62
 
63
63
  export type MessageCompiled = { html: string, text: string, subject: string };
64
64
 
65
+ export type MessageCompilationStyles = {
66
+ search?: string[];
67
+ global?: string;
68
+ inline?: boolean;
69
+ };
70
+
71
+ export type MessageCompilationImages = {
72
+ search?: string[];
73
+ inline?: boolean;
74
+ };
75
+
65
76
  export type MessageCompilationSource = {
66
77
  file?: string;
67
- styles?: {
68
- search: string[];
69
- global?: string;
70
- };
71
- inlineImages?: boolean;
72
- inlineStyles?: boolean;
78
+ styles?: MessageCompilationStyles;
79
+ images?: MessageCompilationImages;
73
80
  html: () => Promise<string> | string;
74
81
  text: () => Promise<string> | string;
75
82
  subject: () => Promise<string> | string;