@useinsider/guido 3.13.1-beta.ec37c2c → 3.13.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const r = `
|
|
2
2
|
<!--[if gte mso 9]>
|
|
3
3
|
<xml>
|
|
4
4
|
<o:OfficeDocumentSettings>
|
|
@@ -6,15 +6,21 @@ const c = `
|
|
|
6
6
|
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
7
7
|
</o:OfficeDocumentSettings>
|
|
8
8
|
</xml>
|
|
9
|
-
<![endif]-->`,
|
|
9
|
+
<![endif]-->`, n = {
|
|
10
10
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
11
11
|
"xmlns:o": "urn:schemas-microsoft-com:office:office"
|
|
12
|
-
},
|
|
12
|
+
}, p = `
|
|
13
|
+
<style type="text/css">
|
|
14
|
+
ul, ol { padding: 0px 0px 0px 40px; }
|
|
15
|
+
li p { mso-margin-bottom-alt: 15px; }
|
|
16
|
+
.es-text-ltr ul, .es-text-ltr ol { padding: 0px 0px 0px 40px; }
|
|
17
|
+
.es-text-rtl ol, .es-text-rtl ul { padding: 0px 40px 0px 0px; }
|
|
18
|
+
</style>`, l = [
|
|
13
19
|
{
|
|
14
20
|
id: "append-office-xml",
|
|
15
21
|
description: "Appending office XML into the head if it does not exist.",
|
|
16
22
|
type: "custom",
|
|
17
|
-
processor: (e) => e.includes("<o:OfficeDocumentSettings>") ? e : e.replace("</head>", `${
|
|
23
|
+
processor: (e) => e.includes("<o:OfficeDocumentSettings>") ? e : e.replace("</head>", `${r}</head>`),
|
|
18
24
|
priority: 70
|
|
19
25
|
},
|
|
20
26
|
{
|
|
@@ -23,14 +29,21 @@ const c = `
|
|
|
23
29
|
type: "custom",
|
|
24
30
|
processor: (e) => {
|
|
25
31
|
let t = e;
|
|
26
|
-
return Object.entries(
|
|
27
|
-
const
|
|
28
|
-
t.search(
|
|
32
|
+
return Object.entries(n).forEach(([o, i]) => {
|
|
33
|
+
const s = new RegExp(`${o}="[^"]*"`);
|
|
34
|
+
t.search(s) === -1 && (t = t.replace("<html", `<html ${o}="${i}"`));
|
|
29
35
|
}), t;
|
|
30
36
|
},
|
|
31
37
|
priority: 71
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "append-outlook-list-css",
|
|
41
|
+
description: "Appending Outlook list rules into the head if the base CSS does not already carry them.",
|
|
42
|
+
type: "custom",
|
|
43
|
+
processor: (e) => e.includes("mso-margin-bottom-alt") ? e : e.replace("</head>", `${p}</head>`),
|
|
44
|
+
priority: 73
|
|
32
45
|
}
|
|
33
46
|
];
|
|
34
47
|
export {
|
|
35
|
-
|
|
48
|
+
l as outlookCompilerRules
|
|
36
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.13.1
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|