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,52 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-text
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Displays text which can be styled.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```xml
|
|
6
6
|
<mjml>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</mj-body>
|
|
7
|
+
<mj-body>
|
|
8
|
+
<mj-section>
|
|
9
|
+
<mj-column>
|
|
10
|
+
<mj-text font-family="Helvetica" color="#F45E43">
|
|
11
|
+
<h1>Title</h1>
|
|
12
|
+
<p>Paragraph</p>
|
|
13
|
+
<p style="font-family:Comic Sans Ms">Another paragraph</p>
|
|
14
|
+
</mj-text>
|
|
15
|
+
</mj-column>
|
|
16
|
+
</mj-section>
|
|
17
|
+
</mj-body>
|
|
19
18
|
</mjml>
|
|
20
|
-
|
|
19
|
+
```
|
|
21
20
|
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
</a>
|
|
26
|
-
</
|
|
21
|
+
<div class="alert alert-note" role="alert">
|
|
22
|
+
<p>Note</p>
|
|
23
|
+
<p><code>mj-text</code> is an "ending tag", which means that it can contain HTML code but it cannot contain other MJML components.</p>
|
|
24
|
+
<p>More information about ending tags <a href="#ending-tags">in this section</a>.</p>
|
|
25
|
+
</div>
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
`mj-text` 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>.
|
|
30
|
-
</aside>
|
|
27
|
+
#### Attributes
|
|
31
28
|
|
|
29
|
+
| attribute | accepts | description | default value |
|
|
30
|
+
| -------------------------- | --------------------------------- | ------------------------------------------------------------ | -------------------------------------- |
|
|
31
|
+
| align | `left` `right` `center` `justify` | text-alignment | `left` |
|
|
32
|
+
| color | CSS color formats | text color | `#000000` |
|
|
33
|
+
| container-background-color | CSS color formats | inner element background color | |
|
|
34
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
35
|
+
| font-family | string | font | `Ubuntu, Helvetica, Arial, sans-serif` |
|
|
36
|
+
| font-size | `px` | text size | `13px` |
|
|
37
|
+
| font-style | string | CSS values, e.g. `normal` `italic` `oblique` | |
|
|
38
|
+
| font-weight | string | text thickness | |
|
|
39
|
+
| height | `px` | height of the element | |
|
|
40
|
+
| letter-spacing | `px` `em` | letter spacing | |
|
|
41
|
+
| line-height | `px` `%` | space between the lines | `1` |
|
|
42
|
+
| padding | `px` `%` | text padding, supports up to 4 parameters | `10px 25px` |
|
|
43
|
+
| padding-bottom | `px` `%` | bottom offset | |
|
|
44
|
+
| padding-left | `px` `%` | left offset | |
|
|
45
|
+
| padding-right | `px` `%` | right offset | |
|
|
46
|
+
| padding-top | `px` `%` | top offset | |
|
|
47
|
+
| text-decoration | string | CSS values, e.g. `underline` `overline` `none` |
|
|
48
|
+
| text-transform | string | CSS values, i.e. `capitalize` `uppercase` `lowercase` `none` | |
|
|
32
49
|
|
|
33
|
-
|
|
34
|
-
------------------------------|---------------|---------------------------------------------|-------------------------------------
|
|
35
|
-
color | color | text color | #000000
|
|
36
|
-
font-family | string | font | Ubuntu, Helvetica, Arial, sans-serif
|
|
37
|
-
font-size | px | text size | 13px
|
|
38
|
-
font-style | string | normal/italic/oblique | n/a
|
|
39
|
-
font-weight | number | text thickness | n/a
|
|
40
|
-
line-height | px | space between the lines | 1
|
|
41
|
-
letter-spacing | px,em | letter spacing | none
|
|
42
|
-
height | px | The height of the element | n/a
|
|
43
|
-
text-decoration | string | underline/overline/line-through/none | n/a
|
|
44
|
-
text-transform | string | uppercase/lowercase/capitalize | n/a
|
|
45
|
-
align | string | left/right/center/justify | left
|
|
46
|
-
container-background-color | color | inner element background color | n/a
|
|
47
|
-
padding | px | supports up to 4 parameters | 10px 25px
|
|
48
|
-
padding-top | px | top offset | n/a
|
|
49
|
-
padding-bottom | px | bottom offset | n/a
|
|
50
|
-
padding-left | px | left offset | n/a
|
|
51
|
-
padding-right | px | right offset | n/a
|
|
52
|
-
css-class | string | class name, added to the root HTML element created | n/a
|
|
50
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/text">Try it live</a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-text",
|
|
3
3
|
"description": "mjml-text",
|
|
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,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
## Validating MJML
|
|
2
2
|
|
|
3
3
|
MJML provides a validation layer that helps you building your email. It can detect if you misplaced or mispelled a MJML component, or if you used any unauthorised attribute on a specific component. It supports 3 levels of validation:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
- `skip`: your document is rendered without going through validation
|
|
6
|
+
- `soft`: your document will go through validation and is rendered, even if it has errors
|
|
7
|
+
- `strict`: your document is going through validation and is not rendered if it has any error
|
|
8
8
|
|
|
9
9
|
By default, the level is set to `soft`.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### In CLI
|
|
12
12
|
|
|
13
13
|
When using the `mjml` command line, you can add the option `-c.validationLevel` or `--config.validationLevel` with the validation level you want.
|
|
14
14
|
|
|
@@ -18,19 +18,19 @@ When using the `mjml` command line, you can add the option `-c.validationLevel`
|
|
|
18
18
|
mjml --config.validationLevel=skip template.mjml
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Alternatively, you can
|
|
21
|
+
Alternatively, you can validate the file without rendering by adding the `--validate` option
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
mjml --validate template.mjml
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
### In Javascript
|
|
28
28
|
|
|
29
|
-
In Javascript, you can provide the level through the `options` parameters on `mjml2html`.
|
|
29
|
+
In Javascript, you can provide the level through the `options` parameters on `mjml2html`. E.g. `mjml2html(inputMJML, { validationLevel: 'strict' })`
|
|
30
30
|
|
|
31
|
-
`strict` will raise a `MJMLValidationError` exception. This object has 2 methods:
|
|
32
|
-
* `getErrors` returns an array of objects with `line`, `message`, `tagName` as well as a `formattedMessage` which contains the `line`, `message` and `tagName` concatenated in a sentence.
|
|
33
|
-
* `getMessages` returns an array of `formattedMessage`.
|
|
31
|
+
Setting to `strict` will raise a `MJMLValidationError` exception. This object has 2 methods:
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
- `getErrors` returns an array of objects with `line`, `message`, `tagName` as well as a `formattedMessage` which contains the `line`, `message` and `tagName` concatenated in a sentence.
|
|
34
|
+
- `getMessages` returns an array of `formattedMessage`.
|
|
36
35
|
|
|
36
|
+
When setting to `soft`, no exception will be raised. You can get the errors in the object returned by `mjml2html`. It is the same object returned by `getErrors` on strict mode.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-validator",
|
|
3
3
|
"description": "mjml-validator",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.18.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib"
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@babel/cli": "^7.8.4",
|
|
28
28
|
"rimraf": "^3.0.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
31
31
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
### mj-wrapper
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<img src="https://static.mailjet.com/mjml-website/documentation/wrapper-example.png" alt="wrapper" />
|
|
5
|
-
</p>
|
|
3
|
+
Enables you to wrap multiple `mj-section` tags together. It's especially useful to achieve nested layouts with shared border or background images across sections.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
<figure>
|
|
6
|
+
<img src="https://static.mailjet.com/mjml-website/documentation/wrapper-example.png" alt="wrapper" />
|
|
7
|
+
</figure>
|
|
8
8
|
|
|
9
9
|
```xml
|
|
10
10
|
<mjml>
|
|
@@ -27,47 +27,45 @@ Wrapper enables to wrap multiple sections together. It's especially useful to ac
|
|
|
27
27
|
</mjml>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<img width="100px" src="https://mjml.io/assets/img/svg/TRYITLIVE.svg" alt="try it live" />
|
|
33
|
-
</a>
|
|
34
|
-
</p>
|
|
30
|
+
The `full-width` attribute will be used to manage the background width.
|
|
31
|
+
Setting it will change the width of the section from the default 600px to 100%.
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
<div class="alert alert-important" role="alert">
|
|
34
|
+
<p>Important</p>
|
|
35
|
+
<p>When applying <code>full-width</code> to <code>mj-wrapper</code>, any <code>mj-section</code> tags which are also set to <code>full-width</code> will default to standard width.</p>
|
|
36
|
+
</div>
|
|
39
37
|
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
</
|
|
38
|
+
<div class="alert alert-caution" role="alert">
|
|
39
|
+
<p>Caution</p>
|
|
40
|
+
<p>If you're using the <code>background-url</code> attribute for <code>mj-wrapper</code> then do not add one into a child <code>mj-section</code> as this is not supported for Outlook desktop</p>
|
|
41
|
+
<p>Also, if you’re using the <code>background-color</code> attribute for <code>mj-wrapper</code> and the <code>background-url</code> attribute on its <code>mj-section</code> or <code>mj-hero</code> children, the <code>background-color</code> will appear over the <code>background-image</code> on Outlook desktop.</p>
|
|
42
|
+
</div>
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
If you're using a background-url on a `mj-wrapper` then do not add one into a section within the mj-wrapper. Outlook Desktop doesn't support nested VML, so it will most likely break your email.
|
|
46
|
-
Also, if you use a background-color on mj-wrapper and a background-url on its section/hero child, the background-color will be over the background-image on Outlook desktop. There is no way to keep the vml image under the content and over the wrapper's background-color due to z-index being ignored on most tags.
|
|
47
|
-
</aside>
|
|
44
|
+
#### Attributes
|
|
48
45
|
|
|
46
|
+
| attribute | accepts | description | default value |
|
|
47
|
+
| --------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------ | ------------- |
|
|
48
|
+
| background-color | CSS color formats | section color | |
|
|
49
|
+
| background-position | string | CSS values, i.e. `left` `center` `right` + `top` `center` `bottom` <br>(see outlook limitations below) | `top center` |
|
|
50
|
+
| background-position-x | string | CSS values, i.e. `left` `center` `right` <br>(see outlook limitations below) | |
|
|
51
|
+
| background-position-y | string | CSS values, i.e. `top` `center` `bottom` <br>(see outlook limitations below) | |
|
|
52
|
+
| background-repeat | `repeat` `no-repeat` | set the background image to repeat |
|
|
53
|
+
| background-size | string | CSS values e.g. `auto` `cover` `contain` `px` `%` size | `auto` |
|
|
54
|
+
| background-url | string | background image, in URL format | |
|
|
55
|
+
| border | string | CSS border format | |
|
|
56
|
+
| border-bottom | string | CSS border format | |
|
|
57
|
+
| border-left | string | CSS border format | |
|
|
58
|
+
| border-radius | string | border radius | |
|
|
59
|
+
| border-right | string | CSS border format | |
|
|
60
|
+
| border-top | string | CSS border format | |
|
|
61
|
+
| css-class | string | class name, added to the root HTML element created | |
|
|
62
|
+
| full-width | `full-width` `false` | applies a vertical gap between child `mj-section` instances | |
|
|
63
|
+
| gap | `px` | make the section full-width | |
|
|
64
|
+
| padding | `px` `%` | section padding, supports up to 4 parameters | `20px 0` |
|
|
65
|
+
| padding-bottom | `px` `%` | section bottom padding | |
|
|
66
|
+
| padding-left | `px` `%` | section left padding | |
|
|
67
|
+
| padding-right | `px` `%` | section right padding | |
|
|
68
|
+
| padding-top | `px` `%` | section top padding | |
|
|
69
|
+
| text-align | `left` `center` `right` | CSS text-align | `center` |
|
|
49
70
|
|
|
50
|
-
|
|
51
|
-
--------------------|-------------|--------------------------------|---------------
|
|
52
|
-
background-color | color | section color | n/a
|
|
53
|
-
background-position | percent / 'left','top',... (2 values max) | css background position (see outlook limitations in mj-section doc) | top center
|
|
54
|
-
background-position-x | percent / keyword | css background position x | none
|
|
55
|
-
background-position-y | percent / keyword | css background position y | none
|
|
56
|
-
background-repeat | string | css background repeat | repeat
|
|
57
|
-
background-size | px/percent/'cover'/'contain' | css background size | auto
|
|
58
|
-
background-url | url | background url | n/a
|
|
59
|
-
border | string | css border format | none
|
|
60
|
-
border-bottom | string | css border format | n/a
|
|
61
|
-
border-left | string | css border format | n/a
|
|
62
|
-
border-radius | px | border radius | n/a
|
|
63
|
-
border-right | string | css border format | n/a
|
|
64
|
-
border-top | string | css border format | n/a
|
|
65
|
-
css-class | string | class name, added to the root HTML element created | n/a
|
|
66
|
-
full-width | string | make the wrapper full-width | n/a
|
|
67
|
-
gap | px | applies a vertical gap between child mj-sections | n/a
|
|
68
|
-
padding | px | supports up to 4 parameters | 20px 0
|
|
69
|
-
padding-bottom | px | section bottom offset | n/a
|
|
70
|
-
padding-left | px | section left offset | n/a
|
|
71
|
-
padding-right | px | section right offset | n/a
|
|
72
|
-
padding-top | px | section top offset | n/a
|
|
73
|
-
text-align | string | css text-align | center
|
|
71
|
+
<p class="cta-container"><a class="cta" href="https://mjml.io/try-it-live/components/wrapper">Try it live</a></p>
|
|
@@ -19,14 +19,6 @@ let MjWrapper = exports.default = /*#__PURE__*/function (_MjSection) {
|
|
|
19
19
|
}
|
|
20
20
|
(0, _inherits2.default)(MjWrapper, _MjSection);
|
|
21
21
|
return (0, _createClass2.default)(MjWrapper, [{
|
|
22
|
-
key: "getChildContext",
|
|
23
|
-
value: function getChildContext() {
|
|
24
|
-
return {
|
|
25
|
-
...this.context,
|
|
26
|
-
gap: this.getAttribute('gap')
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
22
|
key: "renderWrappedChildren",
|
|
31
23
|
value: function renderWrappedChildren() {
|
|
32
24
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mjml-wrapper",
|
|
3
3
|
"description": "mjml-wrapper",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.18.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.28.4",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
|
-
"mjml-core": "4.
|
|
27
|
-
"mjml-section": "4.
|
|
26
|
+
"mjml-core": "4.18.0",
|
|
27
|
+
"mjml-section": "4.18.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/cli": "^7.8.4",
|
|
31
31
|
"rimraf": "^3.0.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "7f4872c48af877d98448335fb9002585cfc8fcbf"
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -91,17 +91,17 @@
|
|
|
91
91
|
"organization": false
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
95
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
96
|
-
"@aws-sdk/client-ecr": "^3.
|
|
97
|
-
"@aws-sdk/client-ecs": "^3.
|
|
98
|
-
"@aws-sdk/client-eventbridge": "^3.
|
|
99
|
-
"@aws-sdk/client-iam": "^3.
|
|
100
|
-
"@aws-sdk/client-s3": "^3.
|
|
101
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
102
|
-
"@aws-sdk/client-sfn": "^3.
|
|
103
|
-
"@aws-sdk/client-textract": "^3.
|
|
104
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
94
|
+
"@aws-sdk/client-cloudformation": "^3.947.0",
|
|
95
|
+
"@aws-sdk/client-dynamodb": "^3.947.0",
|
|
96
|
+
"@aws-sdk/client-ecr": "^3.947.0",
|
|
97
|
+
"@aws-sdk/client-ecs": "^3.947.0",
|
|
98
|
+
"@aws-sdk/client-eventbridge": "^3.947.0",
|
|
99
|
+
"@aws-sdk/client-iam": "^3.947.0",
|
|
100
|
+
"@aws-sdk/client-s3": "^3.947.0",
|
|
101
|
+
"@aws-sdk/client-secrets-manager": "^3.947.0",
|
|
102
|
+
"@aws-sdk/client-sfn": "^3.947.0",
|
|
103
|
+
"@aws-sdk/client-textract": "^3.947.0",
|
|
104
|
+
"@aws-sdk/lib-dynamodb": "^3.947.0",
|
|
105
105
|
"@stylistic/eslint-plugin": "^2",
|
|
106
106
|
"@types/aws-lambda": "^8.10.159",
|
|
107
107
|
"@types/jest": "^29",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"aws-sdk-client-mock-jest": "^2.2.0",
|
|
117
117
|
"commit-and-tag-version": "^12",
|
|
118
118
|
"constructs": "10.0.5",
|
|
119
|
-
"esbuild": "^0.27.
|
|
119
|
+
"esbuild": "^0.27.1",
|
|
120
120
|
"eslint": "^9",
|
|
121
121
|
"eslint-import-resolver-typescript": "^3.10.1",
|
|
122
122
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"jsii-pacmak": "^1.120.0",
|
|
129
129
|
"jsii-rosetta": "5.x",
|
|
130
130
|
"nock": "^13.5.6",
|
|
131
|
-
"projen": "^0.98.
|
|
131
|
+
"projen": "^0.98.28",
|
|
132
132
|
"ts-jest": "^29",
|
|
133
133
|
"ts-node": "^10.9.2",
|
|
134
134
|
"typescript": "^5.9.3"
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"dependencies": {
|
|
141
141
|
"@slack/web-api": "^7.13.0",
|
|
142
142
|
"got": "^11.8.6",
|
|
143
|
-
"mjml": "^4.
|
|
143
|
+
"mjml": "^4.18.0"
|
|
144
144
|
},
|
|
145
145
|
"bundledDependencies": [
|
|
146
146
|
"@slack/web-api",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"publishConfig": {
|
|
156
156
|
"access": "public"
|
|
157
157
|
},
|
|
158
|
-
"version": "0.9.
|
|
158
|
+
"version": "0.9.46",
|
|
159
159
|
"jest": {
|
|
160
160
|
"coverageProvider": "v8",
|
|
161
161
|
"testMatch": [
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.d.ts.map
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.js.map
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/index.min.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.js.map
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/index.min.js.map
RENAMED
|
File without changes
|
/package/node_modules/{lru-cache → path-scurry/node_modules/lru-cache}/dist/esm/package.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/LICENSE.md
RENAMED
|
File without changes
|
/package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/README.md
RENAMED
|
File without changes
|
/package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/lib/index.js
RENAMED
|
File without changes
|
/package/node_modules/{node-fetch/node_modules/webidl-conversions → webidl-conversions}/package.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{node-fetch/node_modules/whatwg-url → whatwg-url}/lib/url-state-machine.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|