Skip to content

Commit ce8bd63

Browse files
authored
Merge pull request #415 from GrapesJS/up-mjml-version
Up mjml version
2 parents 9ccb147 + d68ecb0 commit ce8bd63

File tree

5 files changed

+41
-34
lines changed

5 files changed

+41
-34
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- run: npm run build
1616
- run: npm publish
1717
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18+
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grapesjs-mjml",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "MJML Componenets integration in GrapesJS",
55
"main": "dist/index.js",
66
"scripts": {
@@ -29,7 +29,7 @@
2929
"license": "BSD-3-Clause",
3030
"dependencies": {
3131
"@types/mjml": "^4.7.4",
32-
"mjml-browser": "^4.13.0"
32+
"mjml-browser": "^4.18.0"
3333
},
3434
"babel": {
3535
"env": {

tests/specs/__snapshots__/issue-367.test.ts.snap

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Line Height should expect default line height as 22px and export correctly in html 1`] = `
44
"<!doctype html>
5-
<html xmlns=\\"http://www.w3.org/1999/xhtml\\" xmlns:v=\\"urn:schemas-microsoft-com:vml\\" xmlns:o=\\"urn:schemas-microsoft-com:office:office\\">
5+
<html lang=\\"und\\" dir=\\"auto\\" xmlns=\\"http://www.w3.org/1999/xhtml\\" xmlns:v=\\"urn:schemas-microsoft-com:vml\\" xmlns:o=\\"urn:schemas-microsoft-com:office:office\\">
66
<head>
77
<title></title>
88
<!--[if !mso]><!-->
@@ -51,21 +51,17 @@ exports[`Line Height should expect default line height as 22px and export correc
5151
.moz-text-html .mj-column-per-100 { width:100% !important; max-width: 100%; }
5252
</style>
5353
54-
55-
<style type=\\"text/css\\">
5654
55+
5756
58-
</style>
59-
<style type=\\"text/css\\">
6057
61-
</style>
6258
6359
</head>
6460
<body style=\\"word-spacing:normal;\\">
6561
6662
6763
<div
68-
style=\\"\\"
64+
aria-roledescription=\\"email\\" style=\\"\\" role=\\"article\\" lang=\\"und\\" dir=\\"auto\\"
6965
>
7066
7167

tests/specs/__snapshots__/mjml.test.ts.snap

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`mjml tests should create basic structure and snapshot result 1`] = `
44
"<!doctype html>
5-
<html xmlns=\\"http://www.w3.org/1999/xhtml\\" xmlns:v=\\"urn:schemas-microsoft-com:vml\\" xmlns:o=\\"urn:schemas-microsoft-com:office:office\\">
5+
<html lang=\\"und\\" dir=\\"auto\\" xmlns=\\"http://www.w3.org/1999/xhtml\\" xmlns:v=\\"urn:schemas-microsoft-com:vml\\" xmlns:o=\\"urn:schemas-microsoft-com:office:office\\">
66
<head>
77
<title></title>
88
<!--[if !mso]><!-->
@@ -57,19 +57,20 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
5757
.moz-text-html .mj-column-per-33-333333333333336 { width:33.333333333333336% !important; max-width: 33.333333333333336%; }
5858
</style>
5959
60-
61-
<style type=\\"text/css\\">
6260
61+
6362
63+
<style type=\\"text/css\\">
6464
6565
@media only screen and (max-width:479px) {
6666
table.mj-full-width-mobile { width: 100% !important; }
6767
td.mj-full-width-mobile { width: auto !important; }
6868
}
6969
7070
</style>
71+
7172
<style type=\\"text/css\\">
72-
.slogan {
73+
.slogan {
7374
background: #000;
7475
}
7576
</style>
@@ -79,7 +80,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
7980
8081
8182
<div
82-
style=\\"\\"
83+
aria-roledescription=\\"email\\" style=\\"\\" role=\\"article\\" lang=\\"und\\" dir=\\"auto\\"
8384
>
8485
<!-- Company Header -->
8586
@@ -186,7 +187,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
186187
187188
<tr>
188189
<td
189-
align=\\"center\\" vertical-align=\\"middle\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
190+
align=\\"center\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
190191
>
191192
192193
<table
@@ -297,7 +298,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
297298
298299
<tr>
299300
<td
300-
align=\\"center\\" vertical-align=\\"middle\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
301+
align=\\"center\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
301302
>
302303
303304
<table
@@ -388,7 +389,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
388389
<td style=\\"width:200px;\\">
389390
390391
<img
391-
src=\\"https://designspell.files.wordpress.com/2012/01/sciolino-paris-bw.jpg\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"200\\" height=\\"auto\\"
392+
alt=\\"\\" src=\\"https://designspell.files.wordpress.com/2012/01/sciolino-paris-bw.jpg\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"200\\" height=\\"auto\\"
392393
/>
393394
394395
</td>
@@ -545,7 +546,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
545546
<td style=\\"width:100px;\\">
546547
547548
<img
548-
src=\\"http://191n.mj.am/img/191n/3s/x0l.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
549+
alt=\\"\\" src=\\"http://191n.mj.am/img/191n/3s/x0l.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
549550
/>
550551
551552
</td>
@@ -585,7 +586,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
585586
<td style=\\"width:100px;\\">
586587
587588
<img
588-
src=\\"http://191n.mj.am/img/191n/3s/x01.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
589+
alt=\\"\\" src=\\"http://191n.mj.am/img/191n/3s/x01.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
589590
/>
590591
591592
</td>
@@ -625,7 +626,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
625626
<td style=\\"width:100px;\\">
626627
627628
<img
628-
src=\\"http://191n.mj.am/img/191n/3s/x0s.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
629+
alt=\\"\\" src=\\"http://191n.mj.am/img/191n/3s/x0s.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"100\\" height=\\"auto\\"
629630
/>
630631
631632
</td>
@@ -680,7 +681,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
680681
681682
<tr>
682683
<td
683-
align=\\"center\\" vertical-align=\\"middle\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
684+
align=\\"center\\" style=\\"font-size:0px;padding:10px 25px;word-break:break-word;\\"
684685
>
685686
686687
<table
@@ -719,6 +720,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
719720
<tr
720721
721722
>
723+
722724
<td style=\\"padding:4px;vertical-align:middle;\\">
723725
<table
724726
border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" role=\\"presentation\\" style=\\"background:#3b5998;border-radius:3px;width:30px;\\"
@@ -728,22 +730,24 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
728730
<td style=\\"font-size:0;height:30px;vertical-align:middle;width:30px;\\">
729731
<a href=\\"https://www.facebook.com/sharer/sharer.php?u=https://mjml.io/\\" target=\\"_blank\\">
730732
<img
731-
height=\\"30\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/facebook.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
733+
alt=\\"\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/facebook.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
732734
/>
733735
</a>
734736
</td>
735737
</tr>
736738
</tbody>
737739
</table>
738740
</td>
741+
739742
740-
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;\\">
743+
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;text-align:left;\\">
741744
<a
742745
href=\\"https://www.facebook.com/sharer/sharer.php?u=https://mjml.io/\\" style=\\"color:#333333;font-size:15px;font-family:Ubuntu, Helvetica, Arial, sans-serif;line-height:22px;text-decoration:none;\\" target=\\"_blank\\">
743746
Facebook
744747
</a>
745748
</td>
746749
750+
747751
</tr>
748752
749753
</tbody>
@@ -757,6 +761,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
757761
<tr
758762
759763
>
764+
760765
<td style=\\"padding:4px;vertical-align:middle;\\">
761766
<table
762767
border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" role=\\"presentation\\" style=\\"background:#dc4e41;border-radius:3px;width:30px;\\"
@@ -766,22 +771,24 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
766771
<td style=\\"font-size:0;height:30px;vertical-align:middle;width:30px;\\">
767772
<a href=\\"https://plus.google.com/share?url=https://mjml.io/\\" target=\\"_blank\\">
768773
<img
769-
height=\\"30\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/google-plus.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
774+
alt=\\"\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/google-plus.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
770775
/>
771776
</a>
772777
</td>
773778
</tr>
774779
</tbody>
775780
</table>
776781
</td>
782+
777783
778-
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;\\">
784+
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;text-align:left;\\">
779785
<a
780786
href=\\"https://plus.google.com/share?url=https://mjml.io/\\" style=\\"color:#333333;font-size:15px;font-family:Ubuntu, Helvetica, Arial, sans-serif;line-height:22px;text-decoration:none;\\" target=\\"_blank\\">
781787
Google
782788
</a>
783789
</td>
784790
791+
785792
</tr>
786793
787794
</tbody>
@@ -795,6 +802,7 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
795802
<tr
796803
797804
>
805+
798806
<td style=\\"padding:4px;vertical-align:middle;\\">
799807
<table
800808
border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\" role=\\"presentation\\" style=\\"background:#55acee;border-radius:3px;width:30px;\\"
@@ -804,22 +812,24 @@ exports[`mjml tests should create basic structure and snapshot result 1`] = `
804812
<td style=\\"font-size:0;height:30px;vertical-align:middle;width:30px;\\">
805813
<a href=\\"https://twitter.com/intent/tweet?url=https://mjml.io/\\" target=\\"_blank\\">
806814
<img
807-
height=\\"30\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/twitter.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
815+
alt=\\"\\" src=\\"https://www.mailjet.com/images/theme/v1/icons/ico-social/twitter.png\\" style=\\"border-radius:3px;display:block;\\" width=\\"30\\"
808816
/>
809817
</a>
810818
</td>
811819
</tr>
812820
</tbody>
813821
</table>
814822
</td>
823+
815824
816-
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;\\">
825+
<td style=\\"vertical-align:middle;padding:4px 4px 4px 0;text-align:left;\\">
817826
<a
818827
href=\\"https://twitter.com/intent/tweet?url=https://mjml.io/\\" style=\\"color:#333333;font-size:15px;font-family:Ubuntu, Helvetica, Arial, sans-serif;line-height:22px;text-decoration:none;\\" target=\\"_blank\\">
819828
Twitter
820829
</a>
821830
</td>
822831
832+
823833
</tr>
824834
825835
</tbody>

0 commit comments

Comments
 (0)