@maizzle/framework 5.0.0-beta.30 → 5.0.0-beta.32

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": "5.0.0-beta.30",
3
+ "version": "5.0.0-beta.32",
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",
@@ -2,7 +2,15 @@ export default {
2
2
  root: './',
3
3
  tag: 'component',
4
4
  fileExtension: 'html',
5
- folders: ['src/components', 'src/layouts', 'src/templates'],
5
+ folders: [
6
+ 'layouts',
7
+ 'emails',
8
+ 'templates',
9
+ 'components',
10
+ 'src/layouts',
11
+ 'src/templates',
12
+ 'src/components'
13
+ ],
6
14
  expressions: {
7
15
  loopTags: ['each', 'for'],
8
16
  missingLocal: '{local}',
@@ -233,4 +233,22 @@ export default interface InlineCSSConfig {
233
233
  * ```
234
234
  */
235
235
  preferUnitlessValues?: boolean;
236
+
237
+ /**
238
+ * Array of CSS selectors that should be preserved after inlining.
239
+ *
240
+ * @default [] // array of email-client targeting selectors
241
+ *
242
+ * @example
243
+ * ```
244
+ * export default {
245
+ * css: {
246
+ * inline: {
247
+ * safelist: ['.line', '.bg-red-200']
248
+ * }
249
+ * }
250
+ * }
251
+ * ```
252
+ */
253
+ safelist?: string[];
236
254
  }
@@ -11,13 +11,13 @@ export default interface PurgeCSSConfig {
11
11
  * export default {
12
12
  * css: {
13
13
  * purge: {
14
- * whitelist: ['.some-class', '.Mso*', '#*'],
14
+ * safelist: ['.some-class', '.Mso*', '#*'],
15
15
  * }
16
16
  * }
17
17
  * }
18
18
  * ```
19
19
  */
20
- whitelist?: Opts['whitelist'];
20
+ safelist?: Opts['whitelist'];
21
21
 
22
22
  /**
23
23
  * Start and end delimiters for computed classes that you don't want removed.