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,5 +1,6 @@
1
- ## mj-breakpoint
2
- This tag allows you to control on which breakpoint the layout should go desktop/mobile.
1
+ ### mj-breakpoint
2
+
3
+ Allows you to control at what width the layout should change from the desktop/mobile view to the desktop one.
3
4
 
4
5
  ```xml
5
6
  <mjml>
@@ -18,13 +19,10 @@ This tag allows you to control on which breakpoint the layout should go desktop/
18
19
  </mjml>
19
20
  ```
20
21
 
21
- <p style="text-align: center;" >
22
- <a href="https://mjml.io/try-it-live/components/head-breakpoint">
23
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
24
- </a>
25
- </p>
22
+ #### Attributes
26
23
 
24
+ | attribute | accepts | description | default value |
25
+ | --------- | ------- | ------------------ | ------------- |
26
+ | width | `px` | breakpoint's value | |
27
27
 
28
- attribute | unit | description | default value
29
- ---------------------|---------------|--------------------------------|---------------
30
- width | px | breakpoint's value | n/a
28
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-breakpoint">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-breakpoint",
3
3
  "description": "mjml-head-breakpoint",
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,36 +1,33 @@
1
- ## mj-font
1
+ ### mj-font
2
2
 
3
- This tag imports fonts.
4
- The tag has effect only if the template uses the font, too.
5
- The `href` attribute points to a hosted css file; that file contains a `@font-face` declaration.
6
- Example: [https://fonts
3
+ Imports external fonts and is only applied if the template uses the font.
4
+
5
+ The `href` attribute should point to a hosted CSS file that contains a `@font-face` declaration, for example: [https://fonts
7
6
  .googleapis.com/css?family=Raleway](https://fonts.googleapis.com/css?family=Raleway)
8
7
 
9
- ```xml
10
- <mjml>
11
- <mj-head>
12
- <mj-font name="Raleway"
13
- href="https://fonts.googleapis.com/css?family=Raleway" />
14
- </mj-head>
15
- <mj-body>
16
- <mj-section>
17
- <mj-column>
18
- <mj-text font-family="Raleway, Arial">
19
- Hello World!
20
- </mj-text>
21
- </mj-column>
22
- </mj-section>
23
- </mj-body>
24
- </mjml>
25
- ```
8
+ ```xml
9
+ <mjml>
10
+ <mj-head>
11
+ <mj-font name="Raleway"
12
+ href="https://fonts.googleapis.com/css?family=Raleway" />
13
+ </mj-head>
14
+ <mj-body>
15
+ <mj-section>
16
+ <mj-column>
17
+ <mj-text font-family="Raleway, Arial">
18
+ Hello World!
19
+ </mj-text>
20
+ </mj-column>
21
+ </mj-section>
22
+ </mj-body>
23
+ </mjml>
24
+ ```
25
+
26
+ #### Attributes
26
27
 
27
- <p style="text-align: center;" >
28
- <a href="https://mjml.io/try-it-live/components/head-font">
29
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
30
- </a>
31
- </p>
28
+ | attribute | accepts | description | default value |
29
+ | --------- | ------- | ------------------------ | ------------- |
30
+ | href | string | URL of a hosted CSS file | |
31
+ | name | string | name of the font | |
32
32
 
33
- attribute | unit | description | default value
34
- ------------|----------|----------------------------|---------------
35
- href | string | URL of a hosted CSS file | n/a
36
- name | string | name of the font | n/a
33
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-font">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-font",
3
3
  "description": "mjml-head-font",
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,38 +1,36 @@
1
- ## mj-html-attributes
1
+ ### mj-html-attributes
2
2
 
3
- This tag allows you to add custom attributes on any html tag of the generated html, using css selectors.
4
- It's not needed for most email creations, but can be useful in some cases, i.e. editable templates.
3
+ Allows you to add custom attributes on any HTML tag within the generated HTML, using CSS selectors.
5
4
 
6
- ```xml
5
+ It's not needed for most email creations, but can be useful in some cases, e.g. editable templates.
6
+
7
+ ```xml
7
8
  <mjml>
8
- <mj-head>
9
- <mj-html-attributes>
10
- <mj-selector path=".custom div">
11
- <mj-html-attribute name="data-id">42</mj-html-attribute>
12
- </mj-selector>
13
- </mj-html-attributes>
14
- </mj-head>
15
- <mj-body>
16
- <mj-section>
17
- <mj-column>
18
- <mj-text css-class="custom">
19
- Hello World!
20
- </mj-text>
21
- </mj-column>
22
- </mj-section>
23
- </mj-body>
9
+ <mj-head>
10
+ <mj-html-attributes>
11
+ <mj-selector path=".custom div">
12
+ <mj-html-attribute name="data-id">42</mj-html-attribute>
13
+ </mj-selector>
14
+ </mj-html-attributes>
15
+ </mj-head>
16
+ <mj-body>
17
+ <mj-section>
18
+ <mj-column>
19
+ <mj-text css-class="custom">
20
+ Hello World!
21
+ </mj-text>
22
+ </mj-column>
23
+ </mj-section>
24
+ </mj-body>
24
25
  </mjml>
25
- ```
26
+ ```
27
+
28
+ In the generated HTML, an `mj-text` tag becomes a `td` tag with a child `div` tag.
26
29
 
27
- In the generated html, a mj-text becomes a `td`, and a `div` inside this `td`. In this example, the `td` will have the `class="custom"`. Using the css selector `path=".custom div"`, the `div` inside the `td` will get the attribute `data-id="42"`.
30
+ In this example, the `td` tag will have the `class="custom"` attribute. Using the css selector `path=".custom div"`, the `div` inside the `td` will get the attribute `data-id="42"`.
28
31
 
29
- To use this component, you will likely have to look at the generated html to see where exactly are the `css-class` applied, to know which css selector you need to use to add your custom attribute on the right html tag.
32
+ To use this component, you will likely have to look at the generated HTML to see exactly where the `css-class` is applied, to know which CSS selector you need to add your custom attribute to.
30
33
 
31
- You can use multiple `mj-selector` inside a `mj-html-attributes`, and multiple `mj-html-attribute` inside a `mj-selector`.
32
-
34
+ You can use multiple `mj-selector` tags inside a `mj-html-attributes` tag, and multiple `mj-html-attribute` tags inside a `mj-selector` tag.
33
35
 
34
- <p style="text-align: center;" >
35
- <a href="https://mjml.io/try-it-live/components/head-html-attributes">
36
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
37
- </a>
38
- </p>
36
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-html-attributes">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-html-attributes",
3
3
  "description": "mjml-head-html-attributes",
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,29 +1,24 @@
1
- ## mj-preview
1
+ ### mj-preview
2
2
 
3
- This tag allows you to set the preview that will be displayed in the inbox of the recipient.
3
+ This tag allows you to set the preview text that will be displayed in the inbox of the recipient.
4
4
 
5
- ```xml
5
+ ```xml
6
6
  <mjml>
7
- <mj-head>
8
- <mj-preview>Hello MJML</mj-preview>
9
- </mj-head>
10
- <mj-body>
11
- <mj-section>
12
- <mj-column>
13
- <mj-text>
14
- Hello World!
15
- </mj-text>
16
- </mj-column>
17
- </mj-section>
18
- </mj-body>
7
+ <mj-head>
8
+ <mj-preview>Hello MJML</mj-preview>
9
+ </mj-head>
10
+ <mj-body>
11
+ <mj-section>
12
+ <mj-column>
13
+ <mj-text>
14
+ Hello World!
15
+ </mj-text>
16
+ </mj-column>
17
+ </mj-section>
18
+ </mj-body>
19
19
  </mjml>
20
- ```
20
+ ```
21
21
 
22
- <p style="text-align: center;" >
23
- <a href="https://mjml.io/try-it-live/components/head-preview">
24
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
25
- </a>
26
- </p>
27
-
28
- `mj-preview` doesn't support any attribute.
22
+ `mj-preview` doesn't support any attributes.
29
23
 
24
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-preview">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-preview",
3
3
  "description": "mjml-head-preview",
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,8 +1,10 @@
1
- ## mj-style
1
+ ### mj-style
2
2
 
3
- This tag allows you to set CSS styles that will be applied to the <b>HTML</b> in your MJML document as well as the HTML outputted. The CSS styles will be added to the head of the rendered HTML by default, but can also be inlined by using the `inline="inline"` attribute.
3
+ Allows you to set CSS styles that will be applied to your MJML document as well as the outputted HTML.
4
4
 
5
- Here is an example showing the use in combination with the `css-class` attribute, which is supported by all body components.
5
+ The CSS styles will be added to the `head` tag of the rendered HTML by default, but can also be inlined by using the `inline="inline"` attribute.
6
+
7
+ Here is an example showing its use in combination with the `css-class` attribute, which is supported by all body components.
6
8
 
7
9
  ```xml
8
10
  <mjml>
@@ -34,16 +36,15 @@ Here is an example showing the use in combination with the `css-class` attribute
34
36
  </mjml>
35
37
  ```
36
38
 
37
- <p style="text-align: center;" >
38
- <a href="https://mjml.io/try-it-live/components/head-style">
39
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
40
- </a>
41
- </p>
39
+ <div class="alert alert-tip" role="alert">
40
+ <p>Tip</p>
41
+ <p>MJML generates multiple HTML tags from a single MJML tag. For optimal flexibility, the <code>css-class</code> will be applied to the most outer HTML tag, therefore if you want to target a specific child tag with a CSS selector, you may need to look at the generated HTML to determine the exact selector you need.</p>
42
+ </div>
43
+
44
+ #### Attributes
42
45
 
43
- attribute | unit | description | default value
44
- ---------------------|---------------|-------------------------------------|---------------
45
- inline | string | set to "inline" to inline styles | n/a
46
+ | attribute | accepts | description | default value |
47
+ | --------- | ------- | -------------------------------- | ------------- |
48
+ | inline | string | set to `inline` to inline styles | |
46
49
 
47
- <aside class="notice">
48
- Mjml generates multiple html elements from a single mjml element. For optimal flexibility, the `css-class` will be applied to the most outer html element, so if you want to target a specific sub-element with a css selector, you may need to look at the generated html to see which exact selector you need.
49
- </aside>
50
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-style">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-style",
3
3
  "description": "mjml-head-style",
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,27 +1,24 @@
1
- ## mj-title
1
+ ### mj-title
2
2
 
3
- Defines the document's title that browsers show in the title bar or a page's tab.
3
+ Defines the document's title by populating the title tag. This can be shown in the browsers title bar in some cases.
4
4
 
5
- ```xml
5
+ Its content is also used to populate the value of the `aria-label` attribute located in the immediate child `div` of the `body` tag, which is used to aid accessibility.
6
+
7
+ ```xml
6
8
  <mjml>
7
- <mj-head>
8
- <mj-title>Hello MJML</mj-title>
9
- </mj-head>
10
- <mj-body>
11
- <mj-section>
12
- <mj-column>
13
- <mj-text>
14
- Hello World!
15
- </mj-text>
16
- </mj-column>
17
- </mj-section>
18
- </mj-body>
9
+ <mj-head>
10
+ <mj-title>Hello MJML</mj-title>
11
+ </mj-head>
12
+ <mj-body>
13
+ <mj-section>
14
+ <mj-column>
15
+ <mj-text>
16
+ Hello World!
17
+ </mj-text>
18
+ </mj-column>
19
+ </mj-section>
20
+ </mj-body>
19
21
  </mjml>
20
- ```
21
-
22
- <p style="text-align: center;" >
23
- <a href="https://mjml.io/try-it-live/components/head-title">
24
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
25
- </a>
26
- </p>
22
+ ```
27
23
 
24
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-title">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-head-title",
3
3
  "description": "mjml-head-title",
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,28 +1,21 @@
1
- ## mj-hero
1
+ ### mj-hero
2
2
 
3
- This element displays a hero image.
4
- It behaves like an `mj-section` with a single `mj-column`.
3
+ Displays a hero image and behaves like an `mj-section` tag with a single `mj-column` tag.
5
4
 
6
- `background-height` and `background-width` attributes are mandatory.
5
+ The `background-height` and `background-width` attributes are mandatory and it's best to use an image with width the same as the `mj-body` (`width="600px"` by default) and height the same or larger than the `height` of `mj-hero`.
7
6
 
8
- It's best to use an image with width the same as the `mj-body` width
9
- (`width="600px"` by default).
10
- For better results, it's best to use an image with height the same or larger
11
- than the `height` of `mj-hero`.
7
+ Use `background-color` to provide a fallback color in case an email client doesn't support `background-url`.
12
8
 
13
- Use `background-color` to provide a fallback color
14
- in case an email client doesn't support `background-url`.
9
+ <div class="alert alert-note" role="alert">
10
+ <p>Note</p>
11
+ <p>The <code>height</code> attribute is only required for <code>mode="fixed-height"</code>.</p>
12
+ </div>
15
13
 
16
- <aside class="notice">
17
- The "height" attribute is required only for 'mode="fixed-height"'.
18
- </aside>
19
-
20
- Fixed height
21
-
22
- <p style="text-align: center;" >
14
+ <figure>
15
+ <figcaption>Fixed height</figcaption>
23
16
  <img src="https://static.mailjet.com/mjml-website/documentation/hero-example-1.png"
24
17
  alt="demo background picture with fixed height" />
25
- </p>
18
+ </figure>
26
19
 
27
20
  ```xml
28
21
  <mjml>
@@ -52,20 +45,13 @@ Fixed height
52
45
  </mj-hero>
53
46
  </mj-body>
54
47
  </mjml>
55
- ```
56
-
57
- <p style="text-align: center;" >
58
- <a href="https://mjml.io/try-it-live/components/hero">
59
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
60
- </a>
61
- </p>
62
-
63
- Fluid height
48
+ ```
64
49
 
65
- <p style="text-align: center;" >
66
- <img src="https://static.mailjet.com/mjml-website/documentation/hero-example-2.png"
67
- alt="demo background picture with fixed height" />
68
- </p>
50
+ <figure>
51
+ <figcaption>Fluid height</figcaption>
52
+ <img src="https://static.mailjet.com/mjml-website/documentation/hero-example-1.png"
53
+ alt="demo background picture with fixed height" />
54
+ </figure>
69
55
 
70
56
  ```xml
71
57
  <mjml>
@@ -96,26 +82,28 @@ Fluid height
96
82
  </mjml>
97
83
  ```
98
84
 
99
- <p style="text-align: center;" >
100
- <a href="https://mjml.io/try-it-live/components/hero/1">
101
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg"
102
- alt="try it live" />
103
- </a>
104
- </p>
85
+ #### Attributes
86
+
87
+ | attribute | accepts | description | default value |
88
+ | ---------------------- | ----------------------- | ------------------------------------------------------------------ | ----------------------------- |
89
+ | background-color | CSS color formats | hero background color | #ffffff |
90
+ | background-height | `px` `%` | height of the image used, mandatory | |
91
+ | background-position | string | CSS values, i.e. `left` `center` `right` + `top` `center` `bottom` | `center center` |
92
+ | background-url | string | absolute background in URL format | `null` |
93
+ | background-width | `px` `%` | width of the image used, mandatory | inherits parent element width |
94
+ | border-radius | string | border radius | |
95
+ | css-class | string | class name, added to the root HTML element created | |
96
+ | height | `px` `%` | hero section height, (required for `fixed-height` mode) | `0px` |
97
+ | inner-background-color | CSS color formats | content background color | |
98
+ | mode | string | `fluid-height` or `fixed-height` | `fluid-height` |
99
+ | padding | `px` `%` | hero padding, supports up to 4 parameters | `0px` |
100
+ | padding-bottom | `px` `%` | hero bottom padding | `null` |
101
+ | padding-left | `px` `%` | hero left padding | `null` |
102
+ | padding-right | `px` `%` | hero right padding | `null` |
103
+ | padding-top | `px` `%` | hero top padding | `null` |
104
+ | vertical-align | `top` `middle` `bottom` | content vertical alignment | `top` |
105
105
 
106
- attribute | unit | description | default value
107
- --------------------|-------------------------------------|----------------------------------------------------------------------|--------------
108
- background-color | color | hero background color | #ffffff
109
- background-height | px | height of the image used, mandatory | none
110
- background-position | top/center/bottom left/center/right | background image position | center center
111
- background-url | url | absolute background url | n/a
112
- background-width | px | width of the image used, mandatory | parent element width
113
- border-radius | px | border radius | n/a
114
- height | px | hero section height (required for fixed-height mode) | 0px
115
- mode | fluid-height/fixed-height | choose if the height is fixed based on the height attribute or fluid | fluid-height
116
- padding | px | supports up to 4 parameters | 0px
117
- padding-bottom | px | bottom offset | 0px
118
- padding-left | px | left offset | 0px
119
- padding-right | px | right offset | 0px
120
- padding-top | px | top offset | 0px
121
- vertical-align | top/middle/bottom | content vertical alignment | top
106
+ <ul class="cta-container">
107
+ <li>Fixed height: <br><a class="cta" href="https://mjml.io/try-it-live/components/hero">Try it live</a></li>
108
+ <li>Fluid height: <br><a class="cta" href="https://mjml.io/try-it-live/components/hero/1">Try it live</a></li>
109
+ </ul>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-hero",
3
3
  "description": "mjml-hero",
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
  }