@maizzle/framework 6.0.0-2 → 6.0.0-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maizzle/framework",
3
- "version": "6.0.0-2",
3
+ "version": "6.0.0-3",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,21 +32,26 @@ export async function inline(html = '', options = {}) {
32
32
  options.safelist = new Set([
33
33
  ...get(options, 'safelist', []),
34
34
  ...[
35
- '.body', // Gmail
36
- '.gmail', // Gmail
37
- '.apple', // Apple Mail
38
- '.ios', // Mail on iOS
39
- '.ox-', // Open-Xchange
40
- '.outlook', // Outlook.com
35
+ 'body', // Gmail
36
+ 'gmail', // Gmail
37
+ 'apple', // Apple Mail
38
+ 'ios', // Mail on iOS
39
+ 'ox-', // Open-Xchange
40
+ 'yahoo', // Yahoo! Mail
41
+ 'outlook', // Outlook Mac and Android
41
42
  '[data-ogs', // Outlook.com
42
- '.bloop_container', // Airmail
43
- '.Singleton', // Apple Mail 10
44
- '.unused', // Notes 8
45
- '.moz-text-html', // Thunderbird
46
- '.mail-detail-content', // Comcast, Libero webmail
43
+ 'bloop_container', // Airmail
44
+ 'Singleton', // Apple Mail 10
45
+ 'unused', // Notes 8
46
+ 'moz-text-html', // Thunderbird
47
+ 'mail-detail-content', // Comcast, Libero webmail
48
+ 'mail-content', // Notion
47
49
  'edo', // Edison (all)
48
50
  '#msgBody', // Freenet uses #msgBody
49
- '.lang' // Fenced code blocks
51
+ 'lang', // Fenced code blocks
52
+ 'ShadowHTML', // Superhuman
53
+ 'spark', // Spark
54
+ 'at-', // Safe class names for container queries
50
55
  ],
51
56
  ])
52
57
 
@@ -9,20 +9,24 @@ import { getPosthtmlOptions } from '../posthtml/defaultConfig.js'
9
9
  const posthtmlPlugin = options => tree => {
10
10
  const defaultSafelist = [
11
11
  '*body*', // Gmail
12
- '.gmail*', // Gmail
13
- '.apple*', // Apple Mail
14
- '.ios*', // Mail on iOS
15
- '.ox-*', // Open-Xchange
16
- '.outlook*', // Outlook.com
12
+ '*gmail*', // Gmail
13
+ '*apple*', // Apple Mail
14
+ '*ios*', // Mail on iOS
15
+ '*ox-*', // Open-Xchange
16
+ '*outlook*', // Outlook.com
17
17
  '[data-ogs*', // Outlook.com
18
- '.bloop_container', // Airmail
19
- '.Singleton', // Apple Mail 10
20
- '.unused', // Notes 8
21
- '.moz-text-html', // Thunderbird
22
- '.mail-detail-content', // Comcast, Libero webmail
18
+ '*bloop_container*', // Airmail
19
+ '*Singleton*', // Apple Mail 10
20
+ '*unused', // Notes 8
21
+ '*moz-text-html*', // Thunderbird
22
+ '*mail-detail-content*', // Comcast, Libero webmail
23
+ '*mail-content-*', // Notion
23
24
  '*edo*', // Edison (all)
24
25
  '#*', // Freenet uses #msgBody
25
- '.lang*' // Fenced code blocks
26
+ '*lang*', // Fenced code blocks
27
+ '*ShadowHTML*', // Superhuman
28
+ '*spark*', // Spark
29
+ '*at-*', // Safe class names for container queries
26
30
  ]
27
31
 
28
32
  const defaultOptions = {
@@ -12,7 +12,8 @@ export default function posthtmlPlugin(options = {}) {
12
12
  options = merge({
13
13
  replacements: {
14
14
  '{': '{',
15
- '}': '}'
15
+ '}': '}',
16
+ '&': '&',
16
17
  }
17
18
  }, options)
18
19