@covalent/email-templates 8.21.0

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 ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@covalent/email-templates",
3
+ "version": "8.21.0",
4
+ "main": "./index.js",
5
+ "module": "./index.mjs",
6
+ "typings": "./index.d.ts",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/teradata/covalent.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/teradata/covalent/issues"
13
+ },
14
+ "dependencies": {
15
+ "tslib": "^2.0.0",
16
+ "mjml-browser": "^4.15.3"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Teradata UX"
20
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Converts an MJML string into its corresponding HTML.
3
+ *
4
+ * @param {string} mjml - The MJML string to be converted.
5
+ * @returns {string} - The resulting HTML string after conversion.
6
+ */
7
+ export declare const convertMjmlToHtml: (mjml: string) => string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Strips the first :root { ... } block from a given CSS string.
3
+ *
4
+ * @param css - The CSS file content as a string.
5
+ * @returns The CSS content without the first :root { ... } block.
6
+ */
7
+ export declare const stripFirstRootSection: (css: string) => string;
8
+ /**
9
+ * Inject predefined MJML and CSS styles into the provided MJML template.
10
+ *
11
+ * @param {string} mjml - The MJML template string.
12
+ * @param {string} cssStyles - The CSS styles to be injected into the MJML template.
13
+ * @param {string} mjmlStyles - The MJML attributes or styles to be injected into the MJML template.
14
+ * @returns {string} - The MJML template with injected styles.
15
+ */
16
+ export declare const injectPredefinedStyles: (mjml: string, cssStyles: string, mjmlStyles: string) => string;