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