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.
- package/.jsii +3 -3
- package/assets/slack-app/provider.lambda/index.js +32 -32
- package/assets/slack-textract/detect.lambda/index.js +36 -36
- package/assets/ssl-server-test/analyze.lambda/index.js +32 -32
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/email-receiver/whitelist-function.js +2 -2
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/provider-function.js +2 -2
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events-function.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/detect-function.js +2 -2
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/analyze-function.js +2 -2
- package/lib/ssl-server-test/extract-grade-function.js +2 -2
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +4 -4
- package/lib/static-website/index.js +1 -1
- package/lib/static-website/origin-request-function.js +2 -2
- package/lib/toolkit-cleaner/clean-images-function.js +2 -2
- package/lib/toolkit-cleaner/clean-objects-function.js +2 -2
- package/lib/toolkit-cleaner/extract-template-hashes-function.js +2 -2
- package/lib/toolkit-cleaner/get-stack-names-function.js +2 -2
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/lib/url-shortener/redirect-function.js +2 -2
- package/lib/url-shortener/shortener-function.js +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/mjml/package.json +7 -7
- package/node_modules/mjml-accordion/README.md +103 -96
- package/node_modules/mjml-accordion/package.json +3 -3
- package/node_modules/mjml-body/README.md +8 -15
- package/node_modules/mjml-body/package.json +3 -3
- package/node_modules/mjml-button/README.md +53 -52
- package/node_modules/mjml-button/package.json +3 -3
- package/node_modules/mjml-carousel/README.md +49 -42
- package/node_modules/mjml-carousel/package.json +3 -3
- package/node_modules/mjml-cli/package.json +6 -6
- package/node_modules/mjml-column/README.md +45 -42
- package/node_modules/mjml-column/package.json +3 -3
- package/node_modules/mjml-core/package.json +5 -5
- package/node_modules/mjml-divider/README.md +18 -20
- package/node_modules/mjml-divider/package.json +3 -3
- package/node_modules/mjml-group/README.md +25 -29
- package/node_modules/mjml-group/package.json +3 -3
- package/node_modules/mjml-head/package.json +3 -3
- package/node_modules/mjml-head-attributes/README.md +34 -39
- package/node_modules/mjml-head-attributes/package.json +3 -3
- package/node_modules/mjml-head-breakpoint/README.md +8 -10
- package/node_modules/mjml-head-breakpoint/package.json +3 -3
- package/node_modules/mjml-head-font/README.md +28 -31
- package/node_modules/mjml-head-font/package.json +3 -3
- package/node_modules/mjml-head-html-attributes/README.md +28 -30
- package/node_modules/mjml-head-html-attributes/package.json +3 -3
- package/node_modules/mjml-head-preview/README.md +18 -23
- package/node_modules/mjml-head-preview/package.json +3 -3
- package/node_modules/mjml-head-style/README.md +15 -14
- package/node_modules/mjml-head-style/package.json +3 -3
- package/node_modules/mjml-head-title/README.md +19 -22
- package/node_modules/mjml-head-title/package.json +3 -3
- package/node_modules/mjml-hero/README.md +41 -53
- package/node_modules/mjml-hero/package.json +3 -3
- package/node_modules/mjml-image/README.md +35 -35
- package/node_modules/mjml-image/package.json +3 -3
- package/node_modules/mjml-migrate/package.json +4 -4
- package/node_modules/mjml-navbar/README.md +90 -95
- package/node_modules/mjml-navbar/package.json +3 -3
- package/node_modules/mjml-parser-xml/package.json +4 -4
- package/node_modules/mjml-preset-core/package.json +27 -27
- package/node_modules/mjml-raw/README.md +18 -20
- package/node_modules/mjml-raw/package.json +3 -3
- package/node_modules/mjml-section/README.md +51 -52
- package/node_modules/mjml-section/package.json +3 -3
- package/node_modules/mjml-social/README.md +102 -102
- package/node_modules/mjml-social/package.json +3 -3
- package/node_modules/mjml-spacer/README.md +15 -17
- package/node_modules/mjml-spacer/package.json +3 -3
- package/node_modules/mjml-table/README.md +29 -30
- package/node_modules/mjml-table/package.json +3 -3
- package/node_modules/mjml-text/README.md +42 -44
- package/node_modules/mjml-text/package.json +3 -3
- package/node_modules/mjml-validator/README.md +12 -12
- package/node_modules/mjml-validator/package.json +2 -2
- package/node_modules/mjml-wrapper/README.md +42 -44
- package/node_modules/mjml-wrapper/lib/index.js +0 -8
- package/node_modules/mjml-wrapper/package.json +4 -4
- package/package.json +15 -15
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/LICENSE +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/README.md +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.min.js +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.min.js.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.d.ts +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.d.ts.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.js +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.js.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js.map +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/package.json +0 -0
- /package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/package.json +0 -0
- /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/.npmignore +0 -0
- /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/index.js +0 -0
- /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/lib/.gitkeep +0 -0
- /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/lib/mappingTable.json +0 -0
- /package/node_modules/{node-fetch/node_modules/tr46 → tr46}/package.json +0 -0
- /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/LICENSE.md +0 -0
- /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/README.md +0 -0
- /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/lib/index.js +0 -0
- /package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/package.json +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/LICENSE.txt +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/README.md +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/URL-impl.js +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/URL.js +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/public-api.js +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/url-state-machine.js +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/utils.js +0 -0
- /package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/package.json +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-carousel
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<img src="https://static.mailjet.com/mjml-website/documentation/carousel-example.gif" alt="desktop" />
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
`mj-carousel` displays a gallery of images or "carousel". Readers can interact by hovering and clicking on thumbnails depending on the email client they use.
|
|
3
|
+
Displays a gallery of images or "carousel". Readers can interact by hovering and clicking on thumbnails depending on the email client they use.
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
<figure>
|
|
6
|
+
<img src="https://static.mailjet.com/mjml-website/documentation/carousel-example.gif" alt="desktop" />
|
|
7
|
+
</figure>
|
|
10
8
|
|
|
11
9
|
```xml
|
|
12
10
|
<mjml>
|
|
@@ -24,44 +22,53 @@ This component enables you to set the styles of the carousel elements.
|
|
|
24
22
|
</mjml>
|
|
25
23
|
```
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
#### Attributes
|
|
26
|
+
|
|
27
|
+
| attribute | accepts | description | default value |
|
|
28
|
+
| -------------------------- | ------------------------------ | ------------------------------------------------------ | --------------------------------- |
|
|
29
|
+
| align | `left` `center` `right` | horizontal alignment | `center` |
|
|
30
|
+
| border-radius | `px` `%` | border radius | `6px` |
|
|
31
|
+
| container-background-color | CSS color formats | column background color | |
|
|
32
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
33
|
+
| icon-width | `px` `%` | width of the icons on left and right of the main image | `44px` |
|
|
34
|
+
| left-icon | string | icon on the left of the main image | `https://i.imgur.com/xTh3hln.png` |
|
|
35
|
+
| padding | `px` `%` | carousel padding, supports up to 4 parameters | |
|
|
36
|
+
| padding-bottom | `px` `%` | carousel bottom padding | |
|
|
37
|
+
| padding-left | `px` `%` | carousel left padding | |
|
|
38
|
+
| padding-right | `px` `%` | carousel right padding | |
|
|
39
|
+
| padding-top | `px` `%` | carousel top padding | |
|
|
40
|
+
| right-icon | string | icon on the right of the main image | `https://i.imgur.com/os7o9kz.png` |
|
|
41
|
+
| tb-border | string | border of the thumbnails in CSS border format | `2px solid transparent` |
|
|
42
|
+
| tb-border-radius | `px` `%` | border-radius of the thumbnails | `6px` |
|
|
43
|
+
| tb-hover-border-color | CSS color formats | border color of the hovered thumbnail | `#fead0d` |
|
|
44
|
+
| tb-selected-border-color | CSS color formats | border color of the selected thumbnail | `#ccc` |
|
|
45
|
+
| tb-width | `px` `%` | thumbnail width | |
|
|
46
|
+
| thumbnails | `visible` `hidden` `supported` | display the thumbnails | `hidden` |
|
|
32
47
|
|
|
33
|
-
<
|
|
34
|
-
`mj-carousel-image` 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>.
|
|
35
|
-
</aside>
|
|
48
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/carousel">Try it live</a></p>
|
|
36
49
|
|
|
50
|
+
#### mj-carousel-image
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
----------|------|-------------|---------------
|
|
40
|
-
align | string | horizontal alignment | center
|
|
41
|
-
container-background-color | string | column background color | none
|
|
42
|
-
border-radius | px | border radius | n/a
|
|
43
|
-
css-class | string | class name, added to the root HTML element created | n/a
|
|
44
|
-
icon-width | px | width of the icons on left and right of the main image | 44px
|
|
45
|
-
left-icon | url | icon on the left of the main image | https://i.imgur.com/xTh3hln.png
|
|
46
|
-
right-icon | url | icon on the right of the main image | https://i.imgur.com/os7o9kz.png
|
|
47
|
-
tb-border | css border format | border of the thumbnails | none
|
|
48
|
-
tb-border-radius | px | border-radius of the thumbnails | none
|
|
49
|
-
tb-hover-border-color | string | css border color of the hovered thumbnail | none
|
|
50
|
-
tb-selected-border-color | string | css border color of the selected thumbnail | none
|
|
51
|
-
tb-width | px | thumbnail width | null
|
|
52
|
-
thumbnails | String | visible / hidden / supported ('supported' shows only for clients that support full carousel functionality) | visible
|
|
52
|
+
Enables you to add and style the images in the carousel.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
<div class="alert alert-note" role="alert">
|
|
55
|
+
<p>Note</p>
|
|
56
|
+
<p><code>mj-carousel-image</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components.</p>
|
|
57
|
+
<p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
|
|
58
|
+
</div>
|
|
55
59
|
|
|
56
|
-
|
|
60
|
+
#### Attributes
|
|
57
61
|
|
|
58
|
-
attribute
|
|
59
|
-
|
|
60
|
-
alt
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
| attribute | accepts | description | default value |
|
|
63
|
+
| ---------------- | -------- | -------------------------------------------------- | ------------- |
|
|
64
|
+
| alt | string | image description | `''` |
|
|
65
|
+
| border-radius | `px` `%` | border radius of the main image | |
|
|
66
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
67
|
+
| href | string | link to redirect to on click, <br>URL format | |
|
|
68
|
+
| rel | string | specify the rel attribute | |
|
|
69
|
+
| src | string | URL format | |
|
|
70
|
+
| target | string | link target on click | `_blank` |
|
|
71
|
+
| tb-border | string | CSS border format | |
|
|
72
|
+
| tb-border-radius | `px` `%` | border radius of the thumbnail | |
|
|
73
|
+
| thumbnails-src | string | specify a different thumbnail image in URL format | |
|
|
74
|
+
| title | string | tooltip & accessibility | |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-carousel",
|
|
3
3
|
"description": "mjml-carousel",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-cli",
|
|
3
3
|
"description": "MJML: the only framework that makes responsive-email easy",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.18.0",
|
|
5
5
|
"main": "bin/mjml",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mjml-cli": "bin/mjml"
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"js-beautify": "^1.6.14",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"minimatch": "^9.0.3",
|
|
35
|
-
"mjml-core": "4.
|
|
36
|
-
"mjml-migrate": "4.
|
|
37
|
-
"mjml-parser-xml": "4.
|
|
38
|
-
"mjml-validator": "4.
|
|
35
|
+
"mjml-core": "4.18.0",
|
|
36
|
+
"mjml-migrate": "4.18.0",
|
|
37
|
+
"mjml-parser-xml": "4.18.0",
|
|
38
|
+
"mjml-validator": "4.18.0",
|
|
39
39
|
"yargs": "^17.7.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/cli": "^7.8.4",
|
|
43
43
|
"rimraf": "^3.0.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
46
46
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-column
|
|
2
2
|
|
|
3
|
-
Columns enable you to
|
|
4
|
-
To be responsive, columns are expressed in terms of percentage.
|
|
3
|
+
Columns enable you to organize the content of your sections into distinct columns which stack when viewed on a mobile device.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</
|
|
5
|
+
They must be located within `mj-section` tags in order to be considered by the engine.
|
|
6
|
+
|
|
7
|
+
<div class="alert alert-caution" role="alert">
|
|
8
|
+
<p>Caution</p>
|
|
9
|
+
<p>The sum of columns in a section cannot be greater than
|
|
10
|
+
the width of the parent <code>mj-section</code> (or 100%).</p>
|
|
11
|
+
</div>
|
|
10
12
|
|
|
11
13
|
Every single column has to contain something because they are responsive containers, and will be vertically stacked on a mobile view. Any standard component, or component that you have defined and registered, can be placed within a column – except `mj-column` or `mj-section` elements.
|
|
12
14
|
|
|
@@ -25,41 +27,42 @@ Every single column has to contain something because they are responsive contain
|
|
|
25
27
|
</mjml>
|
|
26
28
|
```
|
|
27
29
|
|
|
28
|
-
<
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
<div class="alert alert-caution" role="alert">
|
|
31
|
+
<p>Caution</p>
|
|
32
|
+
<p>Columns are used as a container for your content and should not be used to offset. Any MJML component included in a column will have a width equivalent to 100% of this column's width.</p>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="alert alert-caution" role="alert">
|
|
36
|
+
<p>Caution</p>
|
|
37
|
+
<p>Neither the <code>mj-column</code> or <code>mj-section</code> tags can be nested in an <code>mj-column</code> tag</p>
|
|
38
|
+
</div>
|
|
33
39
|
|
|
34
|
-
|
|
35
|
-
Columns are meant to be used as a container for your content. They must not be used as offset. Any mj-element included in a column will have a width equivalent to 100% of this column's width.
|
|
36
|
-
</aside>
|
|
40
|
+
#### Attributes
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
| attribute | accepts | description | default attributes |
|
|
43
|
+
| ---------------------- | ----------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------- |
|
|
44
|
+
| background-color | CSS color formats | background color for a column | |
|
|
45
|
+
| border | string | CSS border format | |
|
|
46
|
+
| border-bottom | string | CSS border format | |
|
|
47
|
+
| border-left | string | CSS border format | |
|
|
48
|
+
| border-radius | `px` `%` | border radius | |
|
|
49
|
+
| border-right | string | CSS border format | |
|
|
50
|
+
| border-top | string | CSS border format | |
|
|
51
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
52
|
+
| direction | `ltr` `rtl` | set the display order of direct children | `ltr` |
|
|
53
|
+
| inner-background-color | CSS color formats | inner background color for column; requires a padding | |
|
|
54
|
+
| inner-border | string | CSS border; requires a padding format | |
|
|
55
|
+
| inner-border-bottom | string | CSS border format; requires a padding | |
|
|
56
|
+
| inner-border-left | string | CSS border format; requires a padding | |
|
|
57
|
+
| inner-border-radius | `px` `%` | border radius ; requires a padding | |
|
|
58
|
+
| inner-border-right | string | CSS border format; requires a padding | |
|
|
59
|
+
| inner-border-top | string | CSS border format; requires a padding | |
|
|
60
|
+
| padding | `px` `%` | column padding, supports up to 4 parameters | |
|
|
61
|
+
| padding-bottom | `px` `%` | column bottom padding | |
|
|
62
|
+
| padding-left | `px` `%` | column left padding | |
|
|
63
|
+
| padding-right | `px` `%` | column right padding | |
|
|
64
|
+
| padding-top | `px` `%` | column top padding | |
|
|
65
|
+
| width | `px` `%` | column width | (100 / number of non-raw elements in section)% |
|
|
66
|
+
| vertical-align | `top` `middle` `bottom` | vertical alignment.<br>Note: `middle` only applies when all `mj-column` instances use it | `top` |
|
|
41
67
|
|
|
42
|
-
|
|
43
|
-
-----------------------|-------------|----------------------------------------------------------------------------------------------|----------------------------------------------
|
|
44
|
-
background-color | color | background color for a column | n/a
|
|
45
|
-
inner-background-color | color | requires: a padding, inner background color for column | n/a
|
|
46
|
-
border | string | css border format | none
|
|
47
|
-
border-bottom | string | css border format | n/a
|
|
48
|
-
border-left | string | css border format | n/a
|
|
49
|
-
border-right | string | css border format | n/a
|
|
50
|
-
border-top | string | css border format | n/a
|
|
51
|
-
border-radius | percent/px | border radius | n/a
|
|
52
|
-
inner-border | string | css border format | n/a
|
|
53
|
-
inner-border-bottom | string | css border format ; requires a padding | n/a
|
|
54
|
-
inner-border-left | string | css border format ; requires a padding | n/a
|
|
55
|
-
inner-border-right | string | css border format ; requires a padding | n/a
|
|
56
|
-
inner-border-top | string | css border format ; requires a padding | n/a
|
|
57
|
-
inner-border-radius | percent/px | border radius ; requires a padding | n/a
|
|
58
|
-
width | percent/px | column width | (100 / number of non-raw elements in section)%
|
|
59
|
-
vertical-align | string | middle/top/bottom (note: middle works only when adjacent mj-column is also set to middle) | top
|
|
60
|
-
padding | px | supports up to 4 parameters | n/a
|
|
61
|
-
padding-top | px | section top offset | n/a
|
|
62
|
-
padding-bottom | px | section bottom offset | n/a
|
|
63
|
-
padding-left | px | section left offset | n/a
|
|
64
|
-
padding-right | px | section right offset | n/a
|
|
65
|
-
css-class | string | class name, added to the root HTML element created | n/a
|
|
68
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/column">Try it live</a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-column",
|
|
3
3
|
"description": "mjml-column",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-core",
|
|
3
3
|
"description": "mjml-core",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.18.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"js-beautify": "^1.6.14",
|
|
30
30
|
"juice": "^10.0.0",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
|
-
"mjml-migrate": "4.
|
|
33
|
-
"mjml-parser-xml": "4.
|
|
34
|
-
"mjml-validator": "4.
|
|
32
|
+
"mjml-migrate": "4.18.0",
|
|
33
|
+
"mjml-parser-xml": "4.18.0",
|
|
34
|
+
"mjml-validator": "4.18.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/cli": "^7.8.4",
|
|
38
38
|
"chai": "^4.1.1",
|
|
39
39
|
"rimraf": "^3.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-divider
|
|
2
2
|
|
|
3
3
|
Displays a horizontal divider that can be customized like a HTML border.
|
|
4
4
|
|
|
@@ -14,23 +14,21 @@ Displays a horizontal divider that can be customized like a HTML border.
|
|
|
14
14
|
</mjml>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
<a href="https://mjml.io/try-it-live/components/divider">
|
|
19
|
-
<img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
|
|
20
|
-
</a>
|
|
21
|
-
</p>
|
|
17
|
+
#### Attributes
|
|
22
18
|
|
|
23
|
-
| attribute |
|
|
24
|
-
| -------------------------- |
|
|
25
|
-
| align |
|
|
26
|
-
| border-color | color
|
|
27
|
-
| border-style | string
|
|
28
|
-
| border-width | px
|
|
29
|
-
| container-background-color | color
|
|
30
|
-
| css-class | string
|
|
31
|
-
| padding | px
|
|
32
|
-
| padding-bottom | px
|
|
33
|
-
| padding-left | px
|
|
34
|
-
| padding-right | px
|
|
35
|
-
| padding-top | px
|
|
36
|
-
| width | px
|
|
19
|
+
| attribute | accepts | description | default value |
|
|
20
|
+
| -------------------------- | ----------------------- | -------------------------------------------------- | ------------- |
|
|
21
|
+
| align | `left` `center` `right` | horizontal alignment | `center` |
|
|
22
|
+
| border-color | CSS color formats | divider color | `#000000` |
|
|
23
|
+
| border-style | string | CSS values, e.g. `dashed` `dotted` `solid` | `solid` |
|
|
24
|
+
| border-width | `px` | divider's border width | `4px` |
|
|
25
|
+
| container-background-color | CSS color formats | inner element background color | |
|
|
26
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
27
|
+
| padding | `px` `%` | divider padding, supports up to 4 parameters | `10px 25px` |
|
|
28
|
+
| padding-bottom | `px` `%` | divider bottom padding | |
|
|
29
|
+
| padding-left | `px` `%` | divider left padding | |
|
|
30
|
+
| padding-right | `px` `%` | divider right padding | |
|
|
31
|
+
| padding-top | `px` `%` | divider top padding | |
|
|
32
|
+
| width | `px` `%` | divider width | `100%` |
|
|
33
|
+
|
|
34
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/divider">Try it live</a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-divider",
|
|
3
3
|
"description": "mjml-divider",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-group
|
|
2
2
|
|
|
3
|
+
Prevent adjacent `mj-column` instances from stacking on mobile by wrapping them inside an `mj-group` tag, keeping them side by side on mobile.
|
|
3
4
|
|
|
4
|
-
<
|
|
5
|
-
Desktop
|
|
5
|
+
<figure>
|
|
6
|
+
<figcaption>Desktop</figcaption>
|
|
6
7
|
<img src="https://static.mailjet.com/mjml-website/documentation/group-example-1.png"
|
|
7
8
|
alt="easy and quick; responsive" />
|
|
8
|
-
</
|
|
9
|
+
</figure>
|
|
9
10
|
|
|
10
|
-
<
|
|
11
|
-
Mobile
|
|
11
|
+
<figure>
|
|
12
|
+
<figcaption>Mobile</figcaption>
|
|
12
13
|
<img src="https://static.mailjet.com/mjml-website/documentation/group-example-2.png"
|
|
13
14
|
alt="easy and quick; responsive" />
|
|
14
|
-
</
|
|
15
|
-
|
|
16
|
-
mj-group allows you to prevent columns from stacking on mobile. To do so, wrap the columns inside a `mj-group` tag, so they'll stay side by side on mobile.
|
|
15
|
+
</figure>
|
|
17
16
|
|
|
18
17
|
```xml
|
|
19
18
|
<mjml>
|
|
@@ -40,28 +39,25 @@ mj-group allows you to prevent columns from stacking on mobile. To do so, wrap t
|
|
|
40
39
|
</mjml>
|
|
41
40
|
```
|
|
42
41
|
|
|
43
|
-
<
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<aside class="notice">
|
|
48
|
-
Column inside a group must have a width in percentage, not in pixel
|
|
49
|
-
</aside>
|
|
42
|
+
<div class="alert alert-important" role="alert">
|
|
43
|
+
<p>Important</p>
|
|
44
|
+
<p>Column inside a group must have a width in percentage, not in pixel.</p>
|
|
45
|
+
</div>
|
|
50
46
|
|
|
47
|
+
<div class="alert alert-note" role="alert">
|
|
48
|
+
<p>Note</p>
|
|
49
|
+
<p>You can nest both <code>mj-column</code> and <code>mj-group</code> inside a <code>mj-section</code>.</p>
|
|
50
|
+
</div>
|
|
51
51
|
|
|
52
|
-
<aside class="notice">
|
|
53
|
-
You can have both column and group inside a Section
|
|
54
|
-
</aside>
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
<b>iOS 9 Issue:</b> If you use a HTML beautifier for MJML output, iOS9 will render your columns inside a mj-group as stacked. On the output HTML, remove the <b>blank space</b> between the two columns inside a mj-group.
|
|
58
|
-
</aside>
|
|
53
|
+
#### Attributes
|
|
59
54
|
|
|
55
|
+
| attribute | accepts | description | default attributes |
|
|
56
|
+
| ---------------- | ----------------- | -------------------------------------------------- | ---------------------------------------------- |
|
|
57
|
+
| background-color | CSS color formats | background color for a group | |
|
|
58
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
59
|
+
| direction | `ltr` `rtl` | set the display order of direct children | `ltr` |
|
|
60
|
+
| vertical-align | string | CSS values, e.g. `middle` `top` `bottom` | |
|
|
61
|
+
| width | `px` `%` | group width | (100 / number of non-raw elements in section)% |
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
--------------------|-------------|--------------------------------|--------------------------------------
|
|
63
|
-
width | percent/px | group width | (100 / number of non-raw elements in section)%
|
|
64
|
-
vertical-align | string | middle/top/bottom | top
|
|
65
|
-
background-color | string | background color for a group | n/a
|
|
66
|
-
direction | ltr / rtl | set the display order of direct children | ltr
|
|
67
|
-
css-class | string | class name, added to the root HTML element created | n/a
|
|
63
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/group">Try it live</a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-group",
|
|
3
3
|
"description": "mjml-group",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-head",
|
|
3
3
|
"description": "mjml-head",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|
|
@@ -1,48 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-attributes
|
|
2
2
|
|
|
3
|
-
Inside `mj-attributes
|
|
4
|
-
see example) overrides default settings for listed MJML attributes
|
|
5
|
-
on the one component.
|
|
3
|
+
Inside the `mj-attributes` tag, you can cite other MJML components, like `mj-text` for example, to override the default settings for that component.
|
|
6
4
|
|
|
7
|
-
An `mj-all` is like the above, but affects all MJML components
|
|
5
|
+
An `mj-all` tag is like the above, but affects all MJML components.
|
|
8
6
|
|
|
9
|
-
`mj-class`
|
|
10
|
-
components
|
|
7
|
+
An `mj-class` tag creates a named group of MJML attributes you can apply to MJML
|
|
8
|
+
components using `mj-class="<name>"`.
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
```xml
|
|
13
11
|
<mjml>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
<mj-head>
|
|
13
|
+
<mj-attributes>
|
|
14
|
+
<mj-text padding="0" />
|
|
15
|
+
<mj-class name="blue" color="blue" />
|
|
16
|
+
<mj-class name="big" font-size="20px" />
|
|
17
|
+
<mj-all font-family="Arial" />
|
|
18
|
+
</mj-attributes>
|
|
19
|
+
</mj-head>
|
|
20
|
+
<mj-body>
|
|
21
|
+
<mj-section>
|
|
22
|
+
<mj-column>
|
|
23
|
+
<mj-text mj-class="blue big">
|
|
24
|
+
Hello World!
|
|
25
|
+
</mj-text>
|
|
26
|
+
</mj-column>
|
|
27
|
+
</mj-section>
|
|
28
|
+
</mj-body>
|
|
31
29
|
</mjml>
|
|
32
|
-
|
|
30
|
+
```
|
|
33
31
|
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
</a>
|
|
38
|
-
</p>
|
|
39
|
-
|
|
40
|
-
<aside class="notice">
|
|
41
|
-
In the following list, MJML applies only the first MJML attributes found:
|
|
32
|
+
<div class="alert alert-important" role="alert">
|
|
33
|
+
<p>Important</p>
|
|
34
|
+
<p>MJML will apply found attributes in the following order:</p>
|
|
42
35
|
<ul>
|
|
43
|
-
<li>inline
|
|
44
|
-
<li>
|
|
45
|
-
<li>
|
|
46
|
-
<li>default MJML values.</li>
|
|
36
|
+
<li>inline attributes within tags,</li>
|
|
37
|
+
<li>attributes found in tags within the <code>mj-attributes</code> tag, e.g. <code>mj-text</code>,</li>
|
|
38
|
+
<li>the <code>mj-all</code> tag wuthin <code>mj-attributes</code>, and</li>
|
|
39
|
+
<li>the default MJML values.</li>
|
|
47
40
|
</ul>
|
|
48
|
-
</
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/head-attributes">Try it live</a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-head-attributes",
|
|
3
3
|
"description": "mjml-head-attributes",
|
|
4
|
-
"version": "4.
|
|
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.
|
|
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": "
|
|
32
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
33
33
|
}
|