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