chore: Replace css-inline with @css-inline/css-inline-wasm (#6336)

* chore: Replace `css-inline` with `@css-inline/css-inline-wasm`

Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>

* Update yarn.lock

* Import order

* lint

---------

Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
Dmitry Dygalo
2024-04-21 16:20:12 +02:00
committed by GitHub
parent 9f3dd51b48
commit ea2c7cfcd4
7 changed files with 54 additions and 17 deletions

View File

@@ -82,7 +82,7 @@ export default class CommentCreatedEmail extends BaseEmail<
if (content) {
// inline all css so that it works in as many email providers as possible.
body = HTMLHelper.inlineCSS(content);
body = await HTMLHelper.inlineCSS(content);
}
const isReply = !!comment.parentCommentId;

View File

@@ -74,7 +74,7 @@ export default class CommentMentionedEmail extends BaseEmail<
if (content) {
// inline all css so that it works in as many email providers as possible.
body = HTMLHelper.inlineCSS(content);
body = await HTMLHelper.inlineCSS(content);
}
return {

View File

@@ -73,7 +73,7 @@ export default class DocumentPublishedOrUpdatedEmail extends BaseEmail<
});
// inline all css so that it works in as many email providers as possible.
body = content ? HTMLHelper.inlineCSS(content) : undefined;
body = content ? await HTMLHelper.inlineCSS(content) : undefined;
}
}