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,7 +1,6 @@
1
- ## mj-section
1
+ ### mj-section
2
2
 
3
- Sections are intended to be used as rows within your email.
4
- They will be used to structure the layout.
3
+ Sections are rows within your email. They will be used to structure the layout.
5
4
 
6
5
  ```xml
7
6
  <mjml>
@@ -13,52 +12,52 @@ They will be used to structure the layout.
13
12
  </mjml>
14
13
  ```
15
14
 
16
- <p style="text-align: center;" >
17
- <a href="https://mjml.io/try-it-live/components/section">
18
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
19
- </a>
20
- </p>
21
-
22
- The `full-width` property will be used to manage the background width.
23
- By default, it will be 600px. With the `full-width` property on, it will be
24
- changed to 100%.
25
-
26
- <aside class="notice">
27
- <b>Inverting the order in which columns display:</b> set the `direction` attribute to `rtl` to change the order in which columns display on desktop. Because MJML is mobile-first, structure the columns in the <b>order you want them to stack on mobile</b>, and use `direction` to change the order they display <b>on desktop</b>.
28
- </aside>
29
-
30
- <aside class="warning">
31
- Sections cannot nest in sections. Columns can nest in sections; all content must be in a column.
32
- </aside>
33
-
34
- attribute | unit | description | default value
35
- ----------------------|-------------|--------------------------------|---------------
36
- background-color | color | section color | n/a
37
- background-position | percent / 'left','top',... (2 values max) | css background position (see outlook limitations below) | top center
38
- background-position-x | percent / keyword | css background position x | none
39
- background-position-y | percent / keyword | css background position y | none
40
- background-repeat | string | css background repeat | repeat
41
- background-size | px/percent/'cover'/'contain' | css background size | auto
42
- background-url | url | background url | n/a
43
- border | string | css border format | none
44
- border-bottom | string | css border format | n/a
45
- border-left | string | css border format | n/a
46
- border-radius | px | border radius | n/a
47
- border-right | string | css border format | n/a
48
- border-top | string | css border format | n/a
49
- css-class | string | class name, added to the root HTML element created | n/a
50
- direction | ltr / rtl | set the display order of direct children | ltr
51
- full-width | string | make the section full-width | n/a
52
- padding | px | supports up to 4 parameters | 20px 0
53
- padding-bottom | px | section bottom offset | n/a
54
- padding-left | px | section left offset | n/a
55
- padding-right | px | section right offset | n/a
56
- padding-top | px | section top offset | n/a
57
- text-align | string | css text-align | center
58
-
59
-
60
- <aside class="notice">
61
- Limitations of background-images size and position on Outlook desktop :
62
- - If background-size is not specified, no-repeat will be ignored on Outlook.
63
- - If the specified size is a single attribute in percent, the height will be auto as in standard css. On outlook, the image will never overflow the element, and it will be shrinked instead of being cropped like on other clients.
64
- </aside>
15
+ The `full-width` attribute will be used to manage the background width. Setting it will change the width of the section from the default 600px to 100%.
16
+
17
+ <div class="alert alert-note" role="alert">
18
+ <p>Note</p>
19
+ <p>To invert the order in which columns display in the desktop view, first setup your columns in the order you want them to appear stacked in the mobile view and then add <code>direction="rtl"</code> to the <code>mj-section</code> tag.</p>
20
+ </div>
21
+
22
+ <div class="alert alert-caution" role="alert">
23
+ <p>Caution</p>
24
+ <p><code>mj-section</code> tags cannot nest in other <code>mj-section</code> tags</p>
25
+ </div>
26
+
27
+ <div class="alert alert-important" role="alert">
28
+ <p>Important</p>
29
+ <p>Limitations of <code>background-image</code> <code>background-size</code> and <code>background-position</code> in Outlook desktop :</p>
30
+ <ul>
31
+ <li>If <code>background-size</code> is not specified, <code>no-repeat</code> will be ignored in Outlook.</li>
32
+ <li>If the specified <code>background-size</code> is a single attribute in percent, the height will be <code>auto</code> as in standard CSS. In Outlook, the image will never overflow the element, it will shrink instead of being cropped similar to other clients.</li>
33
+ </ul>
34
+ </div>
35
+
36
+ #### Attributes
37
+
38
+ | attribute | accepts | description | default value |
39
+ | --------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------ | ------------- |
40
+ | background-color | CSS color formats | section color | |
41
+ | background-position | string | CSS values, i.e. `left` `center` `right` + `top` `center` `bottom` <br>(see outlook limitations below) | `top center` |
42
+ | background-position-x | string | CSS values, i.e. `left` `center` `right` <br>(see outlook limitations below) | |
43
+ | background-position-y | string | CSS values, i.e. `top` `center` `bottom` <br>(see outlook limitations below) | |
44
+ | background-repeat | `repeat` `no-repeat` | set the background image to repeat |
45
+ | background-size | string | CSS values e.g. `auto` `cover` `contain` `px` `%` size | `auto` |
46
+ | background-url | string | background image, in URL format | |
47
+ | border | string | CSS border format | |
48
+ | border-bottom | string | CSS border format | |
49
+ | border-left | string | CSS border format | |
50
+ | border-radius | string | border radius | |
51
+ | border-right | string | CSS border format | |
52
+ | border-top | string | CSS border format | |
53
+ | css-class | string | class name, added to the root HTML element created | |
54
+ | direction | `ltr` `rtl` | set the display order of direct children | `ltr` |
55
+ | full-width | `full-width` `false` | make the section full-width | |
56
+ | padding | `px` `%` | section padding, supports up to 4 parameters | `20px 0` |
57
+ | padding-bottom | `px` `%` | section bottom padding | |
58
+ | padding-left | `px` `%` | section left padding | |
59
+ | padding-right | `px` `%` | section right padding | |
60
+ | padding-top | `px` `%` | section top padding | |
61
+ | text-align | `left` `center` `right` | CSS text-align | `center` |
62
+
63
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/section">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-section",
3
3
  "description": "mjml-section",
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,16 +1,15 @@
1
- ## mj-social
1
+ ### mj-social
2
2
 
3
- <p style="text-align: center;" >
4
- <img src="https://static.mailjet.com/mjml-website/documentation/social-example.png" alt="desktop" style="width: 250px;"/>
5
- </p>
3
+ Displays calls-to-action for various social networks with their associated logo. You can add multiple social networks using `mj-social-element` tags.
6
4
 
7
- <aside class="warning">
8
- `mj-social-element`'s `name` attribute is a shortcut for some common social elements. <br />
9
- You should avoid rely too much on this as those icons are hosted by Mailjet for their Email Builder.<br />
10
- Use <a href="#custom-social-element">custom element syntax instead.</a>
11
- </aside>
5
+ <figure>
6
+ <img src="https://static.mailjet.com/mjml-website/documentation/social-example.png" alt="desktop" style="width: 250px;"/>
7
+ </figure>
12
8
 
13
- Displays calls-to-action for various social networks with their associated logo. You can add social networks with the `mj-social-element` tag.
9
+ <div class="alert alert-caution" role="alert">
10
+ <p>Caution</p>
11
+ <p>The <code>mj-social-element</code> <code>name</code> attribute is a shortcut for some common social elements. You should avoid rely too much on this as those icons are hosted by Mailjet for their Email Builder. Use <a href="#custom-social-element">custom element syntax instead.</a></p>
12
+ </div>
14
13
 
15
14
  ```xml
16
15
  <mjml>
@@ -37,110 +36,111 @@ Displays calls-to-action for various social networks with their associated logo.
37
36
  </mjml>
38
37
  ```
39
38
 
40
- <p style="text-align: center;" >
41
- <a href="https://mjml.io/try-it-live/components/social">
42
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
43
- </a>
44
- </p>
45
-
46
- <aside class="notice">
47
- `mj-social-element` 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>.
48
- </aside>
49
-
50
-
51
- attribute | unit | description | default value
52
- ----------------------------|-------------|-------------------------------|---------------------------
53
- align | string | left/right/center | center
54
- border-radius | px | border radius | 3px
55
- color | color | text color | #333333
56
- css-class | string | class name, added to the root HTML element created | n/a
57
- container-background-color | color | inner element background color | n/a
58
- font-family | string | font name | Ubuntu, Helvetica, Arial, sans-serif
59
- font-size | px/em | font size | 13px
60
- font-style | string | font style | normal
61
- font-weight | string | font weight | normal
62
- icon-height | percent/px | icon height, overrides icon-size | icon-size
63
- icon-size | percent/px | icon size (width and height) | 20px
64
- inner-padding | px | social network surrounding padding | 4px
65
- line-height | percent/px | space between lines | 22px
66
- mode | string | vertical/horizontal | horizontal
67
- padding | px | supports up to 4 parameters | 10px 25px
68
- padding-bottom | px | bottom offset | n/a
69
- padding-left | px | left offset | n/a
70
- padding-right | px | right offset | n/a
71
- padding-top | px | top offset | n/a
72
- icon-padding | px | padding around the icons | 0px
73
- text-padding | px | padding around the texts | 4px 4px 4px 0
74
- text-decoration | string | underline/overline/none | none
75
-
76
- ### mj-social-element
39
+ #### Attributes
40
+
41
+ | attribute | accepts | description | default value |
42
+ | -------------------------- | ----------------------- | -------------------------------------------------- | -------------------------------------- |
43
+ | align | `left` `right` `center` | align content | `center` |
44
+ | border-radius | `px` `%` | border radius | `3px` |
45
+ | color | CSS color formats | text color | `#333333` |
46
+ | css-class | string | class name, added to the root HTML element created | |
47
+ | container-background-color | CSS color formats | inner element background color | |
48
+ | font-family | string | font name | `Ubuntu, Helvetica, Arial, sans-serif` |
49
+ | font-size | `px` | font size | `13px` |
50
+ | font-style | string | font style | normal |
51
+ | font-weight | string | font weight | normal |
52
+ | icon-height | `px` `%` | icon height, overrides `icon-size` | icon-size |
53
+ | icon-padding | `px` `%` | padding around the icons | |
54
+ | icon-size | `px` `%` | icon size (width and height) | `20px` |
55
+ | inner-padding | `px` `%` | social network surrounding padding | `null` |
56
+ | line-height | `px` `%` | space between lines | `22px` |
57
+ | mode | `horizontal` `vertical` | direction of social elements | `horizontal` |
58
+ | padding | `px` `%` | social padding, supports up to 4 parameters | `10px 25px` |
59
+ | padding-bottom | `px` `%` | bottom padding | |
60
+ | padding-left | `px` `%` | left padding | |
61
+ | padding-right | `px` `%` | right padding | |
62
+ | padding-top | `px` `%` | top padding | |
63
+ | text-padding | `px` `%` | padding around the text | |
64
+ | text-decoration | string | CSS values, e.g. `underline` `overline` `none` | `none` |
65
+
66
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/social">Try it live</a></p>
67
+
68
+ #### mj-social-element
77
69
 
78
70
  This component enables you to display a given social network inside `mj-social`.
79
71
  Note that default icons are transparent, which allows `background-color` to actually be the icon color.
80
72
 
81
-
82
- attribute | unit | description | default value
83
- ----------------------------|-------------|-------------------------------|---------------------------
84
- align | string | left/right/center | center
85
- alt | string | image alt attribute | ''
86
- background-color | color | icon color | Each social `name` has its own default
87
- border-radius | px | border radius | 3px
88
- color | color | text color | #333333
89
- css-class | string | class name, added to the root HTML element created | n/a
90
- font-family | string | font name | Ubuntu, Helvetica, Arial, sans-serif
91
- font-size | px/em | font size | 13px
92
- font-style | string | font style | normal
93
- font-weight | string | font weight | normal
94
- href | url | button redirection url | none
95
- icon-height | percent/px | icon height, overrides icon-size | icon-size
96
- icon-size | percent/px | icon size (width and height) | 20px
97
- line-height | percent/px | space between lines | 22px
98
- name | string | social network name, see supported list below | N/A
99
- padding | px | supports up to 4 parameters | 4px
100
- padding-bottom | px | bottom offset | n/a
101
- padding-left | px | left offset | n/a
102
- padding-right | px | right offset | n/a
103
- padding-top | px | top offset | n/a
104
- icon-padding | px | padding around the icon | 0px
105
- icon-position | string | left/right | right
106
- text-padding | px | padding around the text | 4px 4px 4px 0
107
- sizes | media query & width | set icon width based on query | n/a
108
- src | url | image source | Each social `name` has its own default
109
- srcset | url & width | set a different image source based on the viewport | n/a
110
- rel | string | specify the rel attribute for the link | n/a
111
- target | string | link target | \_blank
112
- title | string | img title attribute | none
113
- text-decoration | string | underline/overline/none | none
114
- vertical-align | string | top/middle/bottom | middle
73
+ <div class="alert alert-note" role="alert">
74
+ <p>Note</p>
75
+ <p><code>mj-social-element</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components.</p>
76
+ <p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
77
+ </div>
78
+
79
+
80
+ #### Attributes
81
+
82
+ | attribute | accepts | description | default value |
83
+ | ---------------- | ----------------------- | ------------------------------------------------------------------------------- | -------------------------------------- |
84
+ | align | `left` `center` `right` | align content | `center` |
85
+ | alt | string | image alt attribute | `''` |
86
+ | background-color | CSS color formats | icon color | Each social `name` has its own default |
87
+ | border-radius | `px` | border radius | `3px` |
88
+ | color | CSS color formats | text color | `#000` |
89
+ | css-class | string | class name, added to the root HTML element created | |
90
+ | font-family | string | font name | `Ubuntu, Helvetica, Arial, sans-serif` |
91
+ | font-size | `px` | font size | `13px` |
92
+ | font-style | string | font style | |
93
+ | font-weight | string | font weight | |
94
+ | href | string | button redirection, in URL format | |
95
+ | icon-height | percent/px | icon height, overrides icon-size | `icon-size` |
96
+ | icon-padding | `px` `%` | padding around the icon | |
97
+ | icon-position | `left` `right` | sets the side of the icon | |
98
+ | icon-size | `px` `%` | icon size (width and height) | |
99
+ | line-height | `px` `%` | space between lines | `1` |
100
+ | name | string | social network name, see supported list below | |
101
+ | padding | `px` `%` | social element padding, supports up to 4 parameters | `4px` |
102
+ | padding-bottom | `px` `%` | bottom padding | |
103
+ | padding-left | `px` `%` | left padding | |
104
+ | padding-right | `px` `%` | right padding | |
105
+ | padding-top | `px` `%` | top padding | |
106
+ | rel | string | specify the rel attribute for the link | |
107
+ | sizes | string | set icon width based on query | |
108
+ | src | string | image source, in URL format | Each social `name` has its own default |
109
+ | srcset | string | enables to set a different image source based on the viewport, using CSS syntax | |
110
+ | target | string | link target | `_blank` |
111
+ | text-decoration | string | CSS values, e.g. `underline` `overline` `none` | `none` |
112
+ | text-padding | `px` `%` | padding around the text | `4px 4px 4px 0` |
113
+ | title | string | image title attribute | |
114
+ | vertical-align | `top` `middle` `bottom` | vertically align elements | `middle` |
115
115
 
116
116
  Supported networks with a share url:
117
- - facebook
118
- - twitter
119
- - x
120
- - google
121
- - pinterest
122
- - linkedin
123
- - tumblr
124
- - xing
117
+
118
+ - `facebook`
119
+ - `twitter`
120
+ - `x`
121
+ - `google`
122
+ - `pinterest`
123
+ - `linkedin`
124
+ - `tumblr`
125
+ - `xing`
125
126
 
126
127
  Without a share url:
127
- - github
128
- - instagram
129
- - web
130
- - snapchat
131
- - youtube
132
- - vimeo
133
- - medium
134
- - soundcloud
135
- - dribbble
128
+
129
+ - `github`
130
+ - `instagram`
131
+ - `web`
132
+ - `snapchat`
133
+ - `youtube`
134
+ - `vimeo`
135
+ - `medium`
136
+ - `soundcloud`
137
+ - `dribbble`
136
138
 
137
139
  When using a network with share url, the `href` attribute will be inserted in the share url (i.e. `https://www.facebook.com/sharer/sharer.php?u=[[URL]]`). To keep your `href` unchanged, add `-noshare` to the network name. Example :
138
140
 
139
- `
140
- <mj-social-element name="twitter-noshare" href="my-unchanged-url">Twitter</mj-social-element>
141
- `
141
+ `<mj-social-element name="twitter-noshare" href="my-unchanged-url">Twitter</mj-social-element>`
142
142
 
143
- ### Custom Social Element
143
+ #### Custom Social Element
144
144
 
145
145
  You can add any unsupported network like this:
146
146
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-social",
3
3
  "description": "mjml-social",
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
- ## mj-spacer
1
+ ### mj-spacer
2
2
 
3
- Displays a blank space.
3
+ Displays a blank space, that can be used to separate content.
4
4
 
5
5
  ```xml
6
6
  <mjml>
@@ -16,19 +16,17 @@ Displays a blank space.
16
16
  </mjml>
17
17
  ```
18
18
 
19
- <p style="text-align: center;" >
20
- <a href="https://mjml.io/try-it-live/components/spacer">
21
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
22
- </a>
23
- </p>
19
+ #### Attributes
24
20
 
25
- attribute | unit | description | default value
26
- ----------------------------|-------------|--------------------------------|------------------------------
27
- container-background-color | color | inner element background color | n/a
28
- css-class | string | class name, added to the root HTML element created | n/a
29
- height | px | spacer height | 20px
30
- padding | px | supports up to 4 parameters | none
31
- padding-bottom | px | bottom offset | n/a
32
- padding-left | px | left offset | n/a
33
- padding-right | px | right offset | n/a
34
- padding-top | px | top offset | n/a
21
+ | attribute | accepts | description | default value |
22
+ | -------------------------- | ----------------- | -------------------------------------------------- | ------------- |
23
+ | container-background-color | CSS color formats | inner element background color | |
24
+ | css-class | string | class name, added to the root HTML element created | |
25
+ | height | `px` `%` | spacer height | `0px` |
26
+ | padding | `px` `%` | spacer padding, supports up to 4 parameters | |
27
+ | padding-bottom | `px` `%` | bottom padding | |
28
+ | padding-left | `px` `%` | left padding | |
29
+ | padding-right | `px` `%` | right padding | |
30
+ | padding-top | `px` `%` | top padding | |
31
+
32
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/spacer">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-spacer",
3
3
  "description": "mjml-spacer",
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
- ## mj-table
1
+ ### mj-table
2
2
 
3
- This tag allows you to display table and filled it with data. It only accepts plain HTML.
3
+ Display a data table. It only accepts plain HTML.
4
4
 
5
5
  ```xml
6
6
  <mjml>
@@ -30,34 +30,33 @@ This tag allows you to display table and filled it with data. It only accepts pl
30
30
  </mjml>
31
31
  ```
32
32
 
33
- <p style="text-align: center;" >
34
- <a href="https://mjml.io/try-it-live/components/table">
35
- <img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
36
- </a>
37
- </p>
33
+ <div class="alert alert-note" role="alert">
34
+ <p>Note</p>
35
+ <p><code>mj-table</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components. Therefore, it will accept any tag you would add inside an HTML table tag.</p>
36
+ <p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
37
+ </div>
38
38
 
39
- <aside class="notice">
40
- `mj-table` 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. In `mj-table` specifically, you can put anything you would put in a `&lt;table&gt;` element. More information about ending tags <a href="#ending-tags">in this section</a>.
41
- </aside>
39
+ #### Attributes
42
40
 
41
+ | attribute | accepts | description | default value |
42
+ | -------------------------- | ---------------------------------- | -------------------------------------------------- | -------------------------------------- |
43
+ | align | `left` `right` `center` | table horizontal alignment | `left` |
44
+ | border | string | CSS border format | `none` |
45
+ | cellpadding | integer | space between cells | `0` |
46
+ | cellspacing | integer | space between cell and border | `0` |
47
+ | color | CSS color formats | text header & footer color | `#000000` |
48
+ | container-background-color | CSS color formats | inner element background color | |
49
+ | css-class | string | class name, added to the root HTML element created | |
50
+ | font-family | string | font name | `Ubuntu, Helvetica, Arial, sans-serif` |
51
+ | font-size | `px` | font size | `13px` |
52
+ | line-height | `px` `%` | space between lines | `22px` |
53
+ | padding | `px` `%` | outer table padding, supports up to 4 parameters | `10px 25px` |
54
+ | padding-bottom | `px` `%` | bottom padding | |
55
+ | padding-left | `px` `%` | left padding | |
56
+ | padding-right | `px` `%` | right padding | |
57
+ | padding-top | `px` `%` | top padding | |
58
+ | role | `none` `presentation` | specify the role attribute | |
59
+ | table-layout | `auto` `fixed` `initial` `inherit` | sets the table layout | `auto` |
60
+ | width | `px` `%` `auto` | table width | `100%` |
43
61
 
44
- attribute | unit | description | default value
45
- ----------------------------|-----------------------------|------------------------------- |--------------
46
- align | left/right/center | self horizontal alignment | left
47
- border | border | table external border | none
48
- cellpadding | pixels | space between cells | n/a
49
- cellspacing | pixels | space between cell and border | n/a
50
- color | color | text header & footer color | #000000
51
- container-background-color | color | inner element background color | n/a
52
- css-class | string | class name, added to the root HTML element created | n/a
53
- font-family | string | font name | Ubuntu, Helvetica, Arial, sans-serif
54
- font-size | px | font size | 13px
55
- line-height | percent/px | space between lines | 22px
56
- padding | percent/px | supports up to 4 parameters | 10px 25px
57
- padding-bottom | percent/px | bottom offset | n/a
58
- padding-left | percent/px | left offset | n/a
59
- padding-right | percent/px | right offset | n/a
60
- padding-top | percent/px | top offset | n/a
61
- role | none/presentation | specify the role attribute | n/a
62
- table-layout | auto/fixed/initial/inherit | sets the table layout. | auto
63
- width | percent/px/auto | table width | 100%
62
+ <p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/table">Try it live</a></p>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mjml-table",
3
3
  "description": "mjml-atable",
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
  }