cloudstructs 0.9.44 → 0.9.46

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.
Files changed (140) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-app/provider.lambda/index.js +32 -32
  3. package/assets/slack-textract/detect.lambda/index.js +36 -36
  4. package/assets/ssl-server-test/analyze.lambda/index.js +32 -32
  5. package/lib/codecommit-mirror/index.js +2 -2
  6. package/lib/dmarc/index.js +1 -1
  7. package/lib/ecs-service-roller/index.js +2 -2
  8. package/lib/email-receiver/receiver.js +1 -1
  9. package/lib/email-receiver/whitelist-function.js +2 -2
  10. package/lib/mjml-template/index.js +1 -1
  11. package/lib/saml-identity-provider/index.js +2 -2
  12. package/lib/slack-app/manifest.js +1 -1
  13. package/lib/slack-app/provider-function.js +2 -2
  14. package/lib/slack-app/slack-app.js +2 -2
  15. package/lib/slack-events/events-function.js +2 -2
  16. package/lib/slack-events/index.js +1 -1
  17. package/lib/slack-textract/detect-function.js +2 -2
  18. package/lib/slack-textract/index.js +1 -1
  19. package/lib/ssl-server-test/analyze-function.js +2 -2
  20. package/lib/ssl-server-test/extract-grade-function.js +2 -2
  21. package/lib/ssl-server-test/index.js +1 -1
  22. package/lib/state-machine-cr-provider/index.js +4 -4
  23. package/lib/static-website/index.js +1 -1
  24. package/lib/static-website/origin-request-function.js +2 -2
  25. package/lib/toolkit-cleaner/clean-images-function.js +2 -2
  26. package/lib/toolkit-cleaner/clean-objects-function.js +2 -2
  27. package/lib/toolkit-cleaner/extract-template-hashes-function.js +2 -2
  28. package/lib/toolkit-cleaner/get-stack-names-function.js +2 -2
  29. package/lib/toolkit-cleaner/index.js +1 -1
  30. package/lib/url-shortener/index.js +1 -1
  31. package/lib/url-shortener/redirect-function.js +2 -2
  32. package/lib/url-shortener/shortener-function.js +2 -2
  33. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  34. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  35. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  36. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  37. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  38. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  42. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  43. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  44. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  45. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  46. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  47. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  48. package/node_modules/mjml/package.json +7 -7
  49. package/node_modules/mjml-accordion/README.md +103 -96
  50. package/node_modules/mjml-accordion/package.json +3 -3
  51. package/node_modules/mjml-body/README.md +8 -15
  52. package/node_modules/mjml-body/package.json +3 -3
  53. package/node_modules/mjml-button/README.md +53 -52
  54. package/node_modules/mjml-button/package.json +3 -3
  55. package/node_modules/mjml-carousel/README.md +49 -42
  56. package/node_modules/mjml-carousel/package.json +3 -3
  57. package/node_modules/mjml-cli/package.json +6 -6
  58. package/node_modules/mjml-column/README.md +45 -42
  59. package/node_modules/mjml-column/package.json +3 -3
  60. package/node_modules/mjml-core/package.json +5 -5
  61. package/node_modules/mjml-divider/README.md +18 -20
  62. package/node_modules/mjml-divider/package.json +3 -3
  63. package/node_modules/mjml-group/README.md +25 -29
  64. package/node_modules/mjml-group/package.json +3 -3
  65. package/node_modules/mjml-head/package.json +3 -3
  66. package/node_modules/mjml-head-attributes/README.md +34 -39
  67. package/node_modules/mjml-head-attributes/package.json +3 -3
  68. package/node_modules/mjml-head-breakpoint/README.md +8 -10
  69. package/node_modules/mjml-head-breakpoint/package.json +3 -3
  70. package/node_modules/mjml-head-font/README.md +28 -31
  71. package/node_modules/mjml-head-font/package.json +3 -3
  72. package/node_modules/mjml-head-html-attributes/README.md +28 -30
  73. package/node_modules/mjml-head-html-attributes/package.json +3 -3
  74. package/node_modules/mjml-head-preview/README.md +18 -23
  75. package/node_modules/mjml-head-preview/package.json +3 -3
  76. package/node_modules/mjml-head-style/README.md +15 -14
  77. package/node_modules/mjml-head-style/package.json +3 -3
  78. package/node_modules/mjml-head-title/README.md +19 -22
  79. package/node_modules/mjml-head-title/package.json +3 -3
  80. package/node_modules/mjml-hero/README.md +41 -53
  81. package/node_modules/mjml-hero/package.json +3 -3
  82. package/node_modules/mjml-image/README.md +35 -35
  83. package/node_modules/mjml-image/package.json +3 -3
  84. package/node_modules/mjml-migrate/package.json +4 -4
  85. package/node_modules/mjml-navbar/README.md +90 -95
  86. package/node_modules/mjml-navbar/package.json +3 -3
  87. package/node_modules/mjml-parser-xml/package.json +4 -4
  88. package/node_modules/mjml-preset-core/package.json +27 -27
  89. package/node_modules/mjml-raw/README.md +18 -20
  90. package/node_modules/mjml-raw/package.json +3 -3
  91. package/node_modules/mjml-section/README.md +51 -52
  92. package/node_modules/mjml-section/package.json +3 -3
  93. package/node_modules/mjml-social/README.md +102 -102
  94. package/node_modules/mjml-social/package.json +3 -3
  95. package/node_modules/mjml-spacer/README.md +15 -17
  96. package/node_modules/mjml-spacer/package.json +3 -3
  97. package/node_modules/mjml-table/README.md +29 -30
  98. package/node_modules/mjml-table/package.json +3 -3
  99. package/node_modules/mjml-text/README.md +42 -44
  100. package/node_modules/mjml-text/package.json +3 -3
  101. package/node_modules/mjml-validator/README.md +12 -12
  102. package/node_modules/mjml-validator/package.json +2 -2
  103. package/node_modules/mjml-wrapper/README.md +42 -44
  104. package/node_modules/mjml-wrapper/lib/index.js +0 -8
  105. package/node_modules/mjml-wrapper/package.json +4 -4
  106. package/package.json +15 -15
  107. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/LICENSE +0 -0
  108. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/README.md +0 -0
  109. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts +0 -0
  110. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts.map +0 -0
  111. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js +0 -0
  112. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js.map +0 -0
  113. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.min.js +0 -0
  114. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.min.js.map +0 -0
  115. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json +0 -0
  116. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.d.ts +0 -0
  117. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.d.ts.map +0 -0
  118. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.js +0 -0
  119. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.js.map +0 -0
  120. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js +0 -0
  121. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js.map +0 -0
  122. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/package.json +0 -0
  123. /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/package.json +0 -0
  124. /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/.npmignore +0 -0
  125. /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/index.js +0 -0
  126. /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/lib/.gitkeep +0 -0
  127. /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/lib/mappingTable.json +0 -0
  128. /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/package.json +0 -0
  129. /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/LICENSE.md +0 -0
  130. /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/README.md +0 -0
  131. /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/lib/index.js +0 -0
  132. /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/package.json +0 -0
  133. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/LICENSE.txt +0 -0
  134. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/README.md +0 -0
  135. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/URL-impl.js +0 -0
  136. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/URL.js +0 -0
  137. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/public-api.js +0 -0
  138. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/url-state-machine.js +0 -0
  139. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/utils.js +0 -0
  140. /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/package.json +0 -0
@@ -1,6 +1,7 @@
1
- ## mj-image
1
+ ### mj-image
2
2
 
3
3
  Displays a responsive image in your email. It is similar to the HTML `<img />` tag.
4
+
4
5
  Note that if no width is provided, the image will use the parent column width.
5
6
 
6
7
  ```xml
@@ -15,39 +16,38 @@ Note that if no width is provided, the image will use the parent column width.
15
16
  </mjml>
16
17
  ```
17
18
 
18
- <p style="text-align: center;" >
19
- <a href="https://mjml.io/try-it-live/components/image">
20
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
21
- </a>
22
- </p>
19
+ #### Attributes
23
20
 
21
+ | attribute | accepts | description | default value |
22
+ | -------------------------- | ----------------------- | ------------------------------------------------------------------------------- | --------------------- |
23
+ | align | `left` `center` `right` | image alignment | `center` |
24
+ | alt | string | image description | `''` |
25
+ | border | string | CSS border format | `0` |
26
+ | border-bottom | string | CSS border format | |
27
+ | border-left | string | CSS border format | |
28
+ | border-radius | `px` `%` | border radius | |
29
+ | border-right | string | CSS border format | |
30
+ | border-top | string | CSS border format | |
31
+ | container-background-color | CSS color formats | inner element background color | |
32
+ | css-class | string | class name, added to the root HTML element created | |
33
+ | fluid-on-mobile | boolean | if `true`, will be full width on mobile even if `width` is set | |
34
+ | font-size | `px` | size of the alt text when image is not rendered | `13px` |
35
+ | height | `px` | image height | `auto` |
36
+ | href | string | link to redirect to on click, in URL format | |
37
+ | max-height | `px` `%` | specify the maximum height of an image | |
38
+ | name | string | specify the link name attribute | |
39
+ | padding | `px` `%` | hero padding, supports up to 4 parameters | `10px 25px` |
40
+ | padding-bottom | `px` `%` | hero bottom padding | |
41
+ | padding-left | `px` `%` | hero left padding | |
42
+ | padding-right | `px` `%` | hero right padding | |
43
+ | padding-top | `px` `%` | hero top padding | |
44
+ | rel | string | specify the rel attribute | |
45
+ | sizes | string | set width based on query | |
46
+ | src | string | image source in URL format | |
47
+ | srcset | string | enables to set a different image source based on the viewport, using CSS syntax | |
48
+ | target | string | link target on click | `_blank` |
49
+ | title | string | tooltip & accessibility | |
50
+ | usemap | string | reference to image map, be careful, it isn't supported everywhere | |
51
+ | width | `px` | image width | inherits parent width |
24
52
 
25
- attribute | unit | description | default value
26
- ------------------------------|---------------|--------------------------------|-----------------------------
27
- align | position | image alignment | center
28
- alt | string | image description | ''
29
- border | string | css border definition | none
30
- border-top | string | css border definition | none
31
- border-bottom | string | css border definition | none
32
- border-left | string | css border definition | none
33
- border-right | string | css border definition | none
34
- border-radius | px | border radius | n/a
35
- container-background-color | color | inner element background color | n/a
36
- css-class | string | class name, added to the root HTML element created | n/a
37
- fluid-on-mobile | string | if "true", will be full width on mobile even if width is set | n/a
38
- height | px | image height | auto
39
- href | url | link to redirect to on click | n/a
40
- name | string | specify the link name attribute | n/a
41
- padding | px | supports up to 4 parameters | 10px 25px
42
- padding-bottom | px | bottom offset | n/a
43
- padding-left | px | left offset | n/a
44
- padding-right | px | right offset | n/a
45
- padding-top | px | top offset | n/a
46
- rel | string | specify the rel attribute | n/a
47
- sizes | media query & width | set width based on query | n/a
48
- src | url | image source | n/a
49
- srcset | url & width | enables to set a different image source based on the viewport | n/a
50
- target | string | link target on click | \_blank
51
- title | string | tooltip & accessibility | n/a
52
- usemap | string | reference to image map, be careful, it isn't supported everywhere | n/a
53
- width | px | image width | parent width
53
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/image">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-image",
3
3
  "description": "mjml-image",
4
- "version": "4.17.1",
4
+ "version": "4.18.0",
5
5
  "main": "lib/index.js",
6
6
  "files": [
7
7
  "lib"
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@babel/runtime": "^7.28.4",
25
25
  "lodash": "^4.17.21",
26
- "mjml-core": "4.17.1"
26
+ "mjml-core": "4.18.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/cli": "^7.8.4",
30
30
  "rimraf": "^3.0.2"
31
31
  },
32
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
32
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mjml-migrate",
3
- "version": "4.17.1",
3
+ "version": "4.18.0",
4
4
  "description": "A tool to migrate a template from MJML 3 to MJML 4",
5
5
  "main": "lib/migrate.js",
6
6
  "bin": {
@@ -28,9 +28,9 @@
28
28
  "@babel/runtime": "^7.28.4",
29
29
  "js-beautify": "^1.6.14",
30
30
  "lodash": "^4.17.21",
31
- "mjml-core": "4.17.1",
32
- "mjml-parser-xml": "4.17.1",
31
+ "mjml-core": "4.18.0",
32
+ "mjml-parser-xml": "4.18.0",
33
33
  "yargs": "^17.7.2"
34
34
  },
35
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
35
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
36
36
  }
@@ -1,11 +1,6 @@
1
- ## mj-navbar
2
-
3
- <p style="text-align: center;" >
4
- <img src="https://static.mailjet.com/mjml-website/documentation/navbar-example.png"
5
- alt="example desktop width navbar" width="800px" />
6
- </p>
1
+ ### mj-navbar
7
2
 
8
- Displays a menu for navigation with an optional hamburger mode for mobile devices.
3
+ Displays a navigation menu with an optional `hamburger` mode for mobile devices.
9
4
 
10
5
  ```xml
11
6
  <mjml>
@@ -24,100 +19,100 @@ Displays a menu for navigation with an optional hamburger mode for mobile device
24
19
  </mjml>
25
20
  ```
26
21
 
27
- <p style="text-align: center;" >
28
- <a target="_blank" href="https://mjml.io/try-it-live/components/navbar">
29
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
30
- </a>
31
- </p>
32
-
33
- ### mj-navbar
34
-
35
- Individual links of the menu should be wrapped inside mj-navbar.
36
-
37
-
38
- Standard Desktop:
39
-
40
- <p style="text-align: center;" >
22
+ <figure>
23
+ <figcaption>Standard Desktop</figcaption>
41
24
  <img src="https://static.mailjet.com/mjml-website/documentation/navbar-example.png"
42
25
  alt="example desktop width navbar" width="800px" />
43
- </p>
44
-
45
- Standard Mobile:
26
+ </figure>
46
27
 
47
- <p style="text-align: center;" >
28
+ <figure>
29
+ <figcaption>Standard Mobile</figcaption>
48
30
  <img src="https://static.mailjet.com/mjml-website/documentation/navbar-mobile.png"
49
31
  alt="example mobile width navbar" width="318px" />
50
- </p>
51
-
52
- Mode hamburger enabled:
32
+ </figure>
53
33
 
54
- <p style="text-align: center;" >
34
+ <figure>
35
+ <figcaption>Mode hamburger enabled:</figcaption>
55
36
  <img src="https://static.mailjet.com/mjml-website/documentation/navbar-hamburger.gif"
56
37
  alt="hamburger mode animation shows menu expansion after clicking hamburger icon"
57
38
  width="309px" />
58
- </p>
59
-
60
- <aside class="notice">
61
- The "hamburger" feature only work on mobile device with all iOS mail client, for others mail clients the render is performed on an normal way, the links are displayed inline and the hamburger is not visible.
62
- </aside>
63
-
64
- <aside class="notice">
65
- All the attributes prefixed with <code>ico-</code> help to customize the hamburger icon. They only work with the hamburger mode enabled.
66
- </aside>
67
-
68
- attribute | unit | description | default value
69
- ----------------------------|--------------------|--------------------------------------------------------------------------------------------------|-----------------
70
- align | string | align content left/center/right | center
71
- base url | string | base url for children components | n/a
72
- css-class | string | class name, added to the root HTML element created | n/a
73
- hamburger | string | activate the hamburger navigation on mobile if the value is hamburger | n/a
74
- ico-align | string | hamburger icon alignment, left/center/right (hamburger mode required) | center
75
- ico-close | ASCII code decimal | char code for a custom close icon (hamburger mode required) | 8855
76
- ico-color | color format | hamburger icon color (hamburger mode required) | #000000
77
- ico-font-family | string | hamburger icon font (only on hamburger mode) | Ubuntu, Helvetica, Arial, sans-serif
78
- ico-font-size | px | hamburger icon size (hamburger mode required) | 30px
79
- ico-line-height | px | hamburger icon line height (hamburger mode required) | 30px
80
- ico-open | ASCII code decimal | char code for a custom open icon (hamburger mode required) | 9776
81
- ico-padding | px | hamburger icon padding, supports up to 4 parameters (hamburger mode required) | 10px
82
- ico-padding-bottom | px | hamburger icon bottom offset (hamburger mode required) | 10px
83
- ico-padding-left | px | hamburger icon left offset (hamburger mode required) | 10px
84
- ico-padding-right | px | hamburger icon right offset (hamburger mode required) | 10px
85
- ico-padding-top | px | hamburger icon top offset (hamburger mode required) | 10px
86
- ico-text-decoration | string | hamburger icon text decoration none/underline/overline/line-through (hamburger mode required) | none
87
- ico-text-transform | string | hamburger icon text transformation none/capitalize/uppercase/lowercase (hamburger mode required) | none
88
-
89
-
90
- ### mj-navbar-link
91
-
92
-
93
- This component should be used to display an individual link in the navbar.
94
-
95
- <aside class="notice">
96
- The mj-navbar-link component must be used inside a mj-navbar component only.
97
- </aside>
98
-
99
-
100
- <aside class="notice">
101
- `mj-navbar-link` is an "ending tag", which means it can contain HTML code which will be left as it is, so it can contain HTML tags with attributes, but it cannot contain other MJML components. More information about ending tags <a href="#ending-tags">in this section</a>.
102
- </aside>
103
-
104
- attribute | unit | description | default value
105
- -----------------|---------------|---------------------------------------|------------------------------
106
- color | color | text color | #000000
107
- css-class | string | class name, added to the root HTML element created | n/a
108
- font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif
109
- font-size | px | text size | 13px
110
- font-style | string | normal/italic/oblique | n/a
111
- font-weight | number | text thickness | n/a
112
- href | string | link to redirect to on click | n/a
113
- letter-spacing | px,em | letter-spacing | n/a
114
- line-height | px | space between the lines | 22px
115
- padding | px | supports up to 4 parameters | 15px 10px
116
- padding-bottom | px | bottom offset | n/a
117
- padding-left | px | left offset | n/a
118
- padding-right | px | right offset | n/a
119
- padding-top | px | top offset | n/a
120
- rel | string | specify the rel attribute | n/a
121
- target | string | link target on click | n/a
122
- text-decoration | string | underline/overline/none | n/a
123
- text-transform | string | capitalize/uppercase/lowercase/none | uppercase
39
+ </figure>
40
+
41
+ <div class="alert alert-note" role="alert">
42
+ <p>Note</p>
43
+ <p>The hamburger feature works only on Apple Mail clients, when the width is below the specified (or default) breakpoint. For other email clients, the links are displayed inline and the hamburger icon is not visible.</p>
44
+ </div>
45
+
46
+ <div class="alert alert-note" role="alert">
47
+ <p>Note</p>
48
+ <p>All attributes prefixed with <code>ico-</code> help to customize the hamburger icon, hence they only work with the hamburger mode enabled.</p>
49
+ </div>
50
+
51
+ #### Attributes
52
+
53
+ | attribute | accepts | description | default value |
54
+ | ------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
55
+ | align | `left`<br>`center`<br>`right` | align content | `center` |
56
+ | base-url | string | base URL for child components | `null` |
57
+ | css-class | string | class name, added to the root HTML element created | |
58
+ | hamburger | string | activate the hamburger navigation on mobile if the value is hamburger | `null` |
59
+ | ico-align | `left`<br>`center`<br>`right` | hamburger icon alignment<br> (`hamburger="hamburger"` required) | `center` |
60
+ | ico-close | string | char code for a custom close icon, e.g. ASCII code decimal<br> (`hamburger="hamburger"` required) | `&#8855;` |
61
+ | ico-color | CSS color formats | hamburger icon color<br> (`hamburger="hamburger"` required) | `#000000` |
62
+ | ico-font-family | string | hamburger icon font<br> (`hamburger="hamburger"` required) | `Ubuntu, Helvetica, Arial, sans-serif` |
63
+ | ico-font-size | `px` `%` | hamburger icon size<br> (`hamburger="hamburger"` required) | `30px` |
64
+ | ico-line-height | `px` `%` | hamburger icon line height<br> (`hamburger="hamburger"` required) | `30px` |
65
+ | ico-open | string | char code for a custom open icon, e.g. ASCII code decimal<br> (`hamburger="hamburger"` required) | `&#9776;` |
66
+ | ico-padding | `px` `%` | hamburger icon padding, supports up to 4 parameters<br> (`hamburger="hamburger"` required) | `10px` |
67
+ | ico-padding-bottom | `px` `%` | hamburger icon bottom padding<br> (`hamburger="hamburger"` required) | |
68
+ | ico-padding-left | `px` `%` | hamburger icon left padding<br> (`hamburger="hamburger"` required) | |
69
+ | ico-padding-right | `px` `%` | hamburger icon right padding<br> (`hamburger="hamburger"` required) | |
70
+ | ico-padding-top | `px` `%` | hamburger icon top padding<br> (`hamburger="hamburger"` required) | |
71
+ | ico-text-decoration | string | hamburger icon text decoration e.g. `none` `underline` `overline` `line-through`<br> (`hamburger="hamburger"` required) | `none` |
72
+ | ico-text-transform | string | hamburger icon text transformation `none` `capitalize` `uppercase` `lowercase`<br> (`hamburger="hamburger"` required) | `uppercase` |
73
+ | padding | `px` `%` | navbar padding, supports up to 4 parameters | |
74
+ | padding-bottom | `px` `%` | navbar bottom padding | |
75
+ | padding-left | `px` `%` | navbar left padding | |
76
+ | padding-right | `px` `%` | navbar right padding | |
77
+ | padding-top | `px` `%` | navbar top padding | |
78
+
79
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/navbar">Try it live</a></p>
80
+
81
+ #### mj-navbar-link
82
+
83
+ Used to display an individual link in the navbar. Individual links of the menu should be wrapped inside `mj-navbar`.
84
+
85
+ <div class="alert alert-important" role="alert">
86
+ <p>Important</p>
87
+ <p>The <code>mj-navbar-link</code> component must be used inside an <code>mj-navbar</code> component only.</p>
88
+ </div>
89
+
90
+ <div class="alert alert-note" role="alert">
91
+ <p>Note</p>
92
+ <p><code>mj-navbar-link</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components.</p>
93
+ <p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
94
+ </div>
95
+
96
+ #### Attributes
97
+
98
+ | attribute | accepts | description | default value |
99
+ | --------------- | ----------------- | ------------------------------------------------------------ | -------------------------------------- |
100
+ | color | CSS color formats | text color | `#000000` |
101
+ | css-class | string | class name, added to the root HTML element created | |
102
+ | font-family | string | font | `Ubuntu, Helvetica, Arial, sans-serif` |
103
+ | font-size | `px` | text size | `13px` |
104
+ | font-style | string | CSS values, i.e. `normal` `italic` `oblique` | |
105
+ | font-weight | string | text thickness | |
106
+ | href | string | link to redirect to on click, in URL format | |
107
+ | letter-spacing | `px` `em` | letter-spacing | |
108
+ | line-height | `px` `%` | space between the lines | `22px` |
109
+ | name | string | specify the link name attribute | |
110
+ | padding | `px` `%` | navbar link padding, supports up to 4 parameters | `15px 10px` |
111
+ | padding-bottom | `px` `%` | bottom padding | |
112
+ | padding-left | `px` `%` | left padding | |
113
+ | padding-right | `px` `%` | right padding | |
114
+ | padding-top | `px` `%` | top padding | |
115
+ | rel | string | specify the rel attribute | |
116
+ | target | string | link target on click | |
117
+ | text-decoration | string | CSS values, i.e. `underline` `overline` `none` | `none` |
118
+ | text-transform | string | CSS values, i.e. `capitalize` `uppercase` `lowercase` `none` | `uppercase` |
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-navbar",
3
3
  "description": "mjml-navbar",
4
- "version": "4.17.1",
4
+ "version": "4.18.0",
5
5
  "main": "lib/index.js",
6
6
  "files": [
7
7
  "lib"
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@babel/runtime": "^7.28.4",
25
25
  "lodash": "^4.17.21",
26
- "mjml-core": "4.17.1"
26
+ "mjml-core": "4.18.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/cli": "^7.8.4",
30
30
  "rimraf": "^3.0.2"
31
31
  },
32
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
32
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
33
33
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-parser-xml",
3
3
  "description": "mjml-parser-xml",
4
- "version": "4.17.1",
4
+ "version": "4.18.0",
5
5
  "main": "lib/index.js",
6
6
  "files": [
7
7
  "lib"
@@ -30,9 +30,9 @@
30
30
  "devDependencies": {
31
31
  "@babel/cli": "^7.8.4",
32
32
  "chai": "^4.1.1",
33
- "mjml": "4.17.1",
34
- "mjml-core": "4.17.1",
33
+ "mjml": "4.18.0",
34
+ "mjml-core": "4.18.0",
35
35
  "rimraf": "^3.0.2"
36
36
  },
37
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
37
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
38
38
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-preset-core",
3
3
  "description": "mjml-preset-core",
4
- "version": "4.17.1",
4
+ "version": "4.18.0",
5
5
  "main": "lib/index.js",
6
6
  "files": [
7
7
  "lib"
@@ -22,35 +22,35 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@babel/runtime": "^7.28.4",
25
- "mjml-accordion": "4.17.1",
26
- "mjml-body": "4.17.1",
27
- "mjml-button": "4.17.1",
28
- "mjml-carousel": "4.17.1",
29
- "mjml-column": "4.17.1",
30
- "mjml-divider": "4.17.1",
31
- "mjml-group": "4.17.1",
32
- "mjml-head": "4.17.1",
33
- "mjml-head-attributes": "4.17.1",
34
- "mjml-head-breakpoint": "4.17.1",
35
- "mjml-head-font": "4.17.1",
36
- "mjml-head-html-attributes": "4.17.1",
37
- "mjml-head-preview": "4.17.1",
38
- "mjml-head-style": "4.17.1",
39
- "mjml-head-title": "4.17.1",
40
- "mjml-hero": "4.17.1",
41
- "mjml-image": "4.17.1",
42
- "mjml-navbar": "4.17.1",
43
- "mjml-raw": "4.17.1",
44
- "mjml-section": "4.17.1",
45
- "mjml-social": "4.17.1",
46
- "mjml-spacer": "4.17.1",
47
- "mjml-table": "4.17.1",
48
- "mjml-text": "4.17.1",
49
- "mjml-wrapper": "4.17.1"
25
+ "mjml-accordion": "4.18.0",
26
+ "mjml-body": "4.18.0",
27
+ "mjml-button": "4.18.0",
28
+ "mjml-carousel": "4.18.0",
29
+ "mjml-column": "4.18.0",
30
+ "mjml-divider": "4.18.0",
31
+ "mjml-group": "4.18.0",
32
+ "mjml-head": "4.18.0",
33
+ "mjml-head-attributes": "4.18.0",
34
+ "mjml-head-breakpoint": "4.18.0",
35
+ "mjml-head-font": "4.18.0",
36
+ "mjml-head-html-attributes": "4.18.0",
37
+ "mjml-head-preview": "4.18.0",
38
+ "mjml-head-style": "4.18.0",
39
+ "mjml-head-title": "4.18.0",
40
+ "mjml-hero": "4.18.0",
41
+ "mjml-image": "4.18.0",
42
+ "mjml-navbar": "4.18.0",
43
+ "mjml-raw": "4.18.0",
44
+ "mjml-section": "4.18.0",
45
+ "mjml-social": "4.18.0",
46
+ "mjml-spacer": "4.18.0",
47
+ "mjml-table": "4.18.0",
48
+ "mjml-text": "4.18.0",
49
+ "mjml-wrapper": "4.18.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/cli": "^7.8.4",
53
53
  "rimraf": "^3.0.2"
54
54
  },
55
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
55
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
56
56
  }
@@ -1,7 +1,6 @@
1
- ## mj-raw
1
+ ### mj-raw
2
2
 
3
- Displays raw HTML that is not going to be parsed by the MJML engine. Anything left inside this tag should be raw, responsive HTML.
4
- If placed inside `<mj-head>`, its content will be added at the end of the `<head>`.
3
+ Displays raw HTML that is not parsed by the MJML engine. Anything left inside this tag should be raw, responsive HTML. If placed inside the `mj-head` tag, its content will be added at the end of the HTML `<head>` tag.
5
4
 
6
5
  ```xml
7
6
  <mjml>
@@ -13,25 +12,15 @@ If placed inside `<mj-head>`, its content will be added at the end of the `<head
13
12
  </mjml>
14
13
  ```
15
14
 
16
- <p style="text-align: center;" >
17
- <a target="_blank" href="https://mjml.io/try-it-live/components/raw">
18
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
19
- </a>
20
- </p>
15
+ You can tell the minifier to ignore some content by wrapping it between two `<!-- htmlmin:ignore -->` tags.
21
16
 
22
-
23
- If you use mj-raw to add templating language, and use the `minify` option, you might get a `Parsing error`, especially when using the `<` character. You can tell the minifier to ignore some content by wrapping it between two `<!-- htmlmin:ignore -->` tags.
24
-
25
-
26
- <aside class="notice">
27
- `mj-raw` is an "ending tag", which means it can contain HTML code which will be left as it is, so it can contain HTML tags with attributes, but it cannot contain other MJML components. More information about ending tags <a href="#ending-tags">in this section</a>.
28
- </aside>
17
+ You can use `mj-raw` to add a templating language. Note that if you and use the `minify` option, you might get a `Parsing error`, especially when using the `<` character. These can be ignored by using the `<!-- htmlmin:ignore -->` tags.mlmin:ignore -->` tags.
29
18
 
30
19
  ```xml
31
20
  <mjml>
32
21
  <mj-body>
33
22
  <mj-raw>
34
- <!-- htmlmin:ignore -->{% if foo < 5 %}<!-- htmlmin:ignore -->
23
+ <!-- htmlmin:ignore --> {% if foo < 5 %} <!-- htmlmin:ignore -->
35
24
  </mj-raw>
36
25
  <!-- Some mjml section -->
37
26
  <mj-raw>
@@ -41,11 +30,18 @@ If you use mj-raw to add templating language, and use the `minify` option, you m
41
30
  </mjml>
42
31
  ```
43
32
 
44
- One more possible use of mj-raw is to add text at the beginning of the generated html, before the `<!doctype html>` line. For this you need to :
45
- - put the mj-raw inside the `<mjml>` tag, outside of `mj-head` and `mj-body`
46
- - add this attribute on this mj-raw : `position="file-start"`
33
+ <div class="alert alert-note" role="alert">
34
+ <p>Note</p>
35
+ <p><code>mj-raw</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components.</p>
36
+ <p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
37
+ </div>
47
38
 
48
- Note that if you put multiple lines in this mj-raw and use the minify option, these lines will be joined into a single line by the minifier. To prevent this you can wrap the content in `<!-- htmlmin:ignore -->` tags as explained above.
39
+ You can also use `mj-raw` to add text at the beginning of the generated html, before the `<!doctype html>` line. For this you need to:
40
+
41
+ - add the `mj-raw` tag inside the `mjml` tag, outside of the `mj-head` and `mj-body` tags.
42
+ - add the `position="file-start"` attribute to the `mj-raw` tag:
43
+
44
+ Note that if you put multiple lines in this `mj-raw` and use the minify option, these lines will be joined into a single line by the minifier. These can be ignored by using the `<!-- htmlmin:ignore -->` tags.
49
45
 
50
46
  ```xml
51
47
  <mjml>
@@ -55,3 +51,5 @@ Note that if you put multiple lines in this mj-raw and use the minify option, th
55
51
  </mj-body>
56
52
  </mjml>
57
53
  ```
54
+
55
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/raw">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-raw",
3
3
  "description": "mjml-raw",
4
- "version": "4.17.1",
4
+ "version": "4.18.0",
5
5
  "main": "lib/index.js",
6
6
  "files": [
7
7
  "lib"
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@babel/runtime": "^7.28.4",
25
25
  "lodash": "^4.17.21",
26
- "mjml-core": "4.17.1"
26
+ "mjml-core": "4.18.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/cli": "^7.8.4",
30
30
  "rimraf": "^3.0.2"
31
31
  },
32
- "gitHead": "3f3b0bcc5f297d9bc84999908c213bc42d9792eb"
32
+ "gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
33
33
  }