zitejs 0.9.150 → 0.9.152
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.
|
@@ -326,10 +326,16 @@ export interface SendHtmlEmailParams extends SendEmailBaseParams {
|
|
|
326
326
|
text?: string;
|
|
327
327
|
/**
|
|
328
328
|
* 'formatted' (default) puts the html in a card under the logo, in the
|
|
329
|
-
* app's brand kit; 'plain' drops the card and logo
|
|
330
|
-
* as the whole document, with no frame or brand.
|
|
329
|
+
* app's brand kit; 'plain' drops the card and logo.
|
|
331
330
|
*/
|
|
332
|
-
layout?: "formatted" | "plain"
|
|
331
|
+
layout?: "formatted" | "plain";
|
|
332
|
+
/**
|
|
333
|
+
* Hex colour around the card, or behind a plain email's text as a sheet
|
|
334
|
+
* the width of its column. Defaults to the brand kit's.
|
|
335
|
+
*/
|
|
336
|
+
background?: string;
|
|
337
|
+
/** Hex colour of the card in a formatted email. Defaults to the brand kit's. */
|
|
338
|
+
cardBackground?: string;
|
|
333
339
|
body?: never;
|
|
334
340
|
}
|
|
335
341
|
/**
|
|
@@ -6,7 +6,8 @@ const vitest_1 = require("vitest");
|
|
|
6
6
|
to: "a@example.com",
|
|
7
7
|
subject: "Hi",
|
|
8
8
|
html: "<p>Hi</p>",
|
|
9
|
-
layout: "
|
|
9
|
+
layout: "plain",
|
|
10
|
+
background: "#e8efe6",
|
|
10
11
|
}).toExtend();
|
|
11
12
|
(0, vitest_1.expectTypeOf)({
|
|
12
13
|
to: "a@example.com",
|
|
@@ -22,7 +23,7 @@ const vitest_1 = require("vitest");
|
|
|
22
23
|
(0, vitest_1.expectTypeOf)({
|
|
23
24
|
to: "a@example.com",
|
|
24
25
|
subject: "Hi",
|
|
25
|
-
|
|
26
|
+
html: "<p>Hi</p>",
|
|
26
27
|
layout: "none",
|
|
27
28
|
}).not.toExtend();
|
|
28
29
|
(0, vitest_1.expectTypeOf)({
|
|
@@ -326,10 +326,16 @@ export interface SendHtmlEmailParams extends SendEmailBaseParams {
|
|
|
326
326
|
text?: string;
|
|
327
327
|
/**
|
|
328
328
|
* 'formatted' (default) puts the html in a card under the logo, in the
|
|
329
|
-
* app's brand kit; 'plain' drops the card and logo
|
|
330
|
-
* as the whole document, with no frame or brand.
|
|
329
|
+
* app's brand kit; 'plain' drops the card and logo.
|
|
331
330
|
*/
|
|
332
|
-
layout?: "formatted" | "plain"
|
|
331
|
+
layout?: "formatted" | "plain";
|
|
332
|
+
/**
|
|
333
|
+
* Hex colour around the card, or behind a plain email's text as a sheet
|
|
334
|
+
* the width of its column. Defaults to the brand kit's.
|
|
335
|
+
*/
|
|
336
|
+
background?: string;
|
|
337
|
+
/** Hex colour of the card in a formatted email. Defaults to the brand kit's. */
|
|
338
|
+
cardBackground?: string;
|
|
333
339
|
body?: never;
|
|
334
340
|
}
|
|
335
341
|
/**
|
|
@@ -4,7 +4,8 @@ test("an email is written as html or as blocks, not both", () => {
|
|
|
4
4
|
to: "a@example.com",
|
|
5
5
|
subject: "Hi",
|
|
6
6
|
html: "<p>Hi</p>",
|
|
7
|
-
layout: "
|
|
7
|
+
layout: "plain",
|
|
8
|
+
background: "#e8efe6",
|
|
8
9
|
}).toExtend();
|
|
9
10
|
expectTypeOf({
|
|
10
11
|
to: "a@example.com",
|
|
@@ -20,7 +21,7 @@ test("an email is written as html or as blocks, not both", () => {
|
|
|
20
21
|
expectTypeOf({
|
|
21
22
|
to: "a@example.com",
|
|
22
23
|
subject: "Hi",
|
|
23
|
-
|
|
24
|
+
html: "<p>Hi</p>",
|
|
24
25
|
layout: "none",
|
|
25
26
|
}).not.toExtend();
|
|
26
27
|
expectTypeOf({
|