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