@mindful-web/marko-newsletters-email-x 1.4.1 → 1.20.4
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/components/data.marko.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.4
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.20.4/components/data.marko",
|
|
6
6
|
marko_component = require("./data.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_utils_module = require("@mindful-web/utils"),
|
|
@@ -67,7 +67,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
67
67
|
}, marko_component);
|
|
68
68
|
|
|
69
69
|
marko_template.meta = {
|
|
70
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.4
|
|
70
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.20.4/components/data.marko",
|
|
71
71
|
component: "./data.marko",
|
|
72
72
|
tags: [
|
|
73
73
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.4
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.20.4/components/display.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -85,7 +85,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
marko_template.meta = {
|
|
88
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.4
|
|
88
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.20.4/components/display.marko",
|
|
89
89
|
tags: [
|
|
90
90
|
"@mindful-web/marko-core/components/elements/img.marko"
|
|
91
91
|
]
|
package/components/render.marko
CHANGED
|
@@ -7,8 +7,8 @@ $ const adImageSrc = get(ad, "image.src") || imageSrc;
|
|
|
7
7
|
|
|
8
8
|
$ const imageAttrs = {
|
|
9
9
|
...getAsObject(input, "image.attrs"),
|
|
10
|
-
width: ad.width,
|
|
11
|
-
height: ad.height,
|
|
10
|
+
width: get(input, "image.width") || ad.width,
|
|
11
|
+
height: get(input, "image.height") || ad.height,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
$ const mindfulCreativeId = get(response, "data.ad.mindfulCreativeId");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.4
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-newsletters-email-x$1.20.4/components/render.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -26,8 +26,8 @@ function render(input, out, __component, component, state) {
|
|
|
26
26
|
|
|
27
27
|
const imageAttrs = {
|
|
28
28
|
...getAsObject(input, "image.attrs"),
|
|
29
|
-
width: ad.width,
|
|
30
|
-
height: ad.height,
|
|
29
|
+
width: get(input, "image.width") || ad.width,
|
|
30
|
+
height: get(input, "image.height") || ad.height,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
const mindfulCreativeId = get(response, "data.ad.mindfulCreativeId");
|
|
@@ -69,7 +69,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
marko_template.meta = {
|
|
72
|
-
id: "/@mindful-web/marko-newsletters-email-x$1.4
|
|
72
|
+
id: "/@mindful-web/marko-newsletters-email-x$1.20.4/components/render.marko",
|
|
73
73
|
tags: [
|
|
74
74
|
"@mindful-web/marko-core/components/elements/img.marko"
|
|
75
75
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-newsletters-email-x",
|
|
3
|
-
"version": "1.4
|
|
3
|
+
"version": "1.20.4",
|
|
4
4
|
"description": "EmailX Marko components for Mindful Web newsletters.",
|
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test": "yarn compile --no-clean && yarn lint"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@mindful-web/object-path": "^1.
|
|
17
|
-
"@mindful-web/utils": "^1.
|
|
16
|
+
"@mindful-web/object-path": "^1.11.9",
|
|
17
|
+
"@mindful-web/utils": "^1.11.9",
|
|
18
18
|
"moment": "^2.29.1",
|
|
19
19
|
"node-fetch": "^2.6.9"
|
|
20
20
|
},
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1aee278f9ed93c5e96f3dc7b6cbe994f1f0f8617"
|
|
28
28
|
}
|