@mindful-web/marko-web-theme-monorail 1.71.9 → 1.71.10
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/ads/fixed-ad-bottom.marko.js +2 -2
- package/components/ads/reveal-ad-handler.marko.js +2 -2
- package/components/blocks/author-bios.marko.js +2 -2
- package/components/blocks/callout-cards.marko.js +2 -2
- package/components/blocks/company-inquiry-form.marko.js +2 -2
- package/components/blocks/company-search.marko.js +2 -2
- package/components/blocks/content-card-deck.marko.js +2 -2
- package/components/blocks/content-meter.marko.js +2 -2
- package/components/blocks/full-width-native-ad.marko.js +2 -2
- package/components/blocks/header-announcement.marko.js +2 -2
- package/components/blocks/hero-card.marko.js +2 -2
- package/components/blocks/latest-content-list.marko.js +2 -2
- package/components/blocks/latest-podcast.marko.js +2 -2
- package/components/blocks/latest-products-feed.marko.js +2 -2
- package/components/blocks/more-products.marko.js +2 -2
- package/components/blocks/most-popular-list.marko.js +2 -2
- package/components/blocks/most-popular.marko.js +2 -2
- package/components/blocks/native-x-card-deck.marko.js +2 -2
- package/components/blocks/native-x-promo-card.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner-external.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner-large.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner.marko.js +2 -2
- package/components/blocks/opinion.marko.js +2 -2
- package/components/blocks/primary-image.marko.js +2 -2
- package/components/blocks/products.marko.js +2 -2
- package/components/blocks/read-next.marko.js +2 -2
- package/components/blocks/related-stories.marko.js +2 -2
- package/components/blocks/resource-library.marko.js +2 -2
- package/components/blocks/section-body-feed.marko.js +2 -2
- package/components/blocks/section-card-deck-featured.marko.js +2 -2
- package/components/blocks/section-card-deck.marko.js +2 -2
- package/components/blocks/section-card-list.marko.js +2 -2
- package/components/blocks/section-feed.marko.js +2 -2
- package/components/blocks/section-forbes.marko.js +2 -2
- package/components/blocks/section-list-deck.marko.js +2 -2
- package/components/blocks/section-list.marko.js +2 -2
- package/components/blocks/section-search.marko.js +2 -2
- package/components/blocks/section-title-feed.marko.js +2 -2
- package/components/blocks/top-stories-menu.marko.js +2 -2
- package/components/blocks/top-stories.marko.js +2 -2
- package/components/blocks/white-papers.marko.js +2 -2
- package/components/breadcrumbs/content-page.marko.js +2 -2
- package/components/breadcrumbs/index.marko.js +2 -2
- package/components/breadcrumbs/website-section.marko.js +2 -2
- package/components/breadcrumbs/with-home.marko.js +2 -2
- package/components/client-side-block-loader.marko.js +2 -2
- package/components/client-side-blocks/most-popular-list.marko.js +2 -2
- package/components/client-side-blocks/most-popular.marko.js +2 -2
- package/components/content/body-with-injection.marko.js +2 -2
- package/components/content/contact-details/index.marko.js +2 -2
- package/components/content/contact-details/section.marko.js +2 -2
- package/components/content/download/form-dot-com.marko.js +2 -2
- package/components/content/download/identity-x.marko.js +2 -2
- package/components/content/download/index.marko.js +2 -2
- package/components/content/download/link.marko.js +2 -2
- package/components/content/download/wufoo.marko.js +2 -2
- package/components/content/link-url/index.marko.js +2 -2
- package/components/content/marko.json +6 -0
- package/components/content/sections-listed-in.marko.js +2 -2
- package/components/content-attribution/attribution.marko.js +2 -2
- package/components/content-attribution/components/authors.marko.js +2 -2
- package/components/content-attribution/components/byline.marko.js +2 -2
- package/components/content-attribution/components/company.marko.js +2 -2
- package/components/content-attribution/components/contributors.marko.js +2 -2
- package/components/content-attribution/components/photographers.marko.js +2 -2
- package/components/content-attribution/components/source.marko.js +2 -2
- package/components/content-attribution/components/speakers.marko.js +2 -2
- package/components/content-attribution/components/sponsors.marko.js +2 -2
- package/components/content-attribution/index.marko.js +2 -2
- package/components/directory-facets/facet-container/facet-container.marko.js +2 -2
- package/components/directory-facets/facet-list/facet-list.marko.js +2 -2
- package/components/directory-facets/facet.marko.js +2 -2
- package/components/directory-facets/index.marko.js +2 -2
- package/components/facebook-connect.marko.js +2 -2
- package/components/flows/card-deck.marko.js +2 -2
- package/components/flows/content/card-deck-col.marko.js +2 -2
- package/components/flows/content/directory-section.marko.js +2 -2
- package/components/flows/content/list.marko.js +2 -2
- package/components/flows/section-feed.marko.js +2 -2
- package/components/gam/components/define-display-ad.marko.js +2 -2
- package/components/gam/define-display-ad.marko.js +2 -2
- package/components/gam/inject-ads.marko.js +2 -2
- package/components/gam/wallpaper-ad.marko.js +2 -2
- package/components/identity-x/comment-stream.marko.js +2 -2
- package/components/identity-x/content-page-gate.marko.js +2 -2
- package/components/identity-x/newsletter-footer.marko.js +2 -2
- package/components/identity-x/newsletter-inline.marko.js +2 -2
- package/components/identity-x/newsletter-modal.marko.js +2 -2
- package/components/identity-x/newsletter-pushdown.marko.js +2 -2
- package/components/layouts/ad-preview.marko.js +2 -2
- package/components/marko.json +9 -0
- package/components/menu-toggle-button.marko.js +2 -2
- package/components/native-x/render.marko.js +2 -2
- package/components/nodes/author-bio.marko.js +2 -2
- package/components/nodes/author-card.marko.js +2 -2
- package/components/nodes/author-published.marko.js +2 -2
- package/components/nodes/author.marko.js +2 -2
- package/components/nodes/components/attribution.marko.js +2 -2
- package/components/nodes/components/authors.marko.js +2 -2
- package/components/nodes/components/company-name.marko.js +2 -2
- package/components/nodes/components/dates.marko.js +2 -2
- package/components/nodes/components/section-sponsor.marko.js +2 -2
- package/components/nodes/content-published.marko.js +2 -2
- package/components/nodes/content.marko.js +2 -2
- package/components/nodes/directory-section-feed-content.marko.js +2 -2
- package/components/nodes/featured-products-card.marko.js +2 -2
- package/components/nodes/product-feed-content.marko.js +2 -2
- package/components/nodes/section-feed-content.marko.js +2 -2
- package/components/nodes/standard-promo.marko.js +2 -2
- package/components/nodes/youtube-card.marko.js +2 -2
- package/components/page/attribution.marko.js +2 -2
- package/components/page/contact-details.marko.js +2 -2
- package/components/page/content.marko.js +2 -2
- package/components/page/contents.marko.js +2 -2
- package/components/page/dates.marko.js +2 -2
- package/components/page/default.marko.js +2 -2
- package/components/page/website-section.marko.js +2 -2
- package/components/pagination-controls.marko.js +2 -2
- package/components/query-total-count.marko.js +2 -2
- package/components/reveal-ad-handler.marko.js +2 -2
- package/components/site-footer/container.marko.js +2 -2
- package/components/site-footer/copyright.marko.js +2 -2
- package/components/site-footer/index.marko.js +2 -2
- package/components/site-footer/social-icons.marko.js +2 -2
- package/components/site-header.marko.js +2 -2
- package/components/site-menu/components/search.marko.js +2 -2
- package/components/site-menu/components/social-icons.marko.js +2 -2
- package/components/site-menu/header.marko.js +2 -2
- package/components/site-menu/index.marko.js +2 -2
- package/components/site-menu/section.marko.js +2 -2
- package/components/site-navbar/brand.marko.js +2 -2
- package/components/site-navbar/index.marko.js +2 -2
- package/components/site-navbar/item.marko.js +2 -2
- package/components/site-navbar/items.marko.js +2 -2
- package/components/site-navbar/logo.marko.js +2 -2
- package/components/site-navbar/search.marko.js +2 -2
- package/components/site-newsletter-menu.marko.js +2 -2
- package/components/social/icon-link.marko.js +2 -2
- package/components/social/icons.marko.js +2 -2
- package/components/social-follow.marko.js +2 -2
- package/components/sponsored-label-logo.marko +29 -0
- package/components/sponsored-label-logo.marko.js +87 -0
- package/components/sponsored-section-logo.marko +27 -0
- package/components/sponsored-section-logo.marko.js +82 -0
- package/components/sponsored-section-name-logo.marko +28 -0
- package/components/sponsored-section-name-logo.marko.js +79 -0
- package/components/ssr-html-inject.marko.js +2 -2
- package/package.json +2 -2
- package/templates/ad-preview.marko.js +2 -2
- package/templates/content/components/presented-by.marko +3 -2
- package/templates/content/components/presented-by.marko.js +8 -4
- package/templates/content/native-x-story.marko +1 -1
- package/templates/content/native-x-story.marko.js +5 -5
- package/templates/content/print.marko.js +2 -2
- package/templates/email-preview.marko.js +2 -2
- package/templates/search.marko.js +2 -2
- package/templates/taxonomy.marko.js +2 -2
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-menu/section.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,
|
|
@@ -58,7 +58,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
marko_template.meta = {
|
|
61
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
61
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-menu/section.marko",
|
|
62
62
|
tags: [
|
|
63
63
|
"./header.marko",
|
|
64
64
|
"../site-navbar/items.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/brand.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
8
8
|
marko_web_link_template = require("@mindful-web/marko-web/components/element/link.marko"),
|
|
@@ -36,7 +36,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
marko_template.meta = {
|
|
39
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
39
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/brand.marko",
|
|
40
40
|
tags: [
|
|
41
41
|
"@mindful-web/marko-web/components/element/link.marko"
|
|
42
42
|
]
|
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/index.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
8
8
|
marko_web_element_template = require("@mindful-web/marko-web/components/element/index.marko"),
|
|
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
marko_template.meta = {
|
|
44
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
44
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/index.marko",
|
|
45
45
|
tags: [
|
|
46
46
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
47
47
|
"@mindful-web/marko-web/components/element/block.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/item.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,
|
|
@@ -175,7 +175,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
175
175
|
});
|
|
176
176
|
|
|
177
177
|
marko_template.meta = {
|
|
178
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
178
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/item.marko",
|
|
179
179
|
tags: [
|
|
180
180
|
"@mindful-web/marko-web-icons/components/icon.marko",
|
|
181
181
|
"@mindful-web/marko-web/components/element/link.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/items.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,
|
|
@@ -73,7 +73,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
marko_template.meta = {
|
|
76
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
76
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/items.marko",
|
|
77
77
|
tags: [
|
|
78
78
|
"./item.marko",
|
|
79
79
|
"@mindful-web/marko-web/components/element/index.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/logo.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_classAttr = require("marko/dist/runtime/html/helpers/class-attr"),
|
|
8
8
|
marko_attr = require("marko/dist/runtime/html/helpers/attr");
|
|
@@ -37,5 +37,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
marko_template.meta = {
|
|
40
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
40
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/logo.marko"
|
|
41
41
|
};
|
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/search.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,
|
|
@@ -64,7 +64,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
marko_template.meta = {
|
|
67
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
67
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-navbar/search.marko",
|
|
68
68
|
tags: [
|
|
69
69
|
"@mindful-web/marko-web-icons/components/icon.marko",
|
|
70
70
|
"@mindful-web/marko-web/components/element/img.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-newsletter-menu.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_buildProps = require("@mindful-web/marko-web-theme-monorail/utils/site-newsletter-menu-props"),
|
|
8
8
|
buildProps = module_buildProps.default || module_buildProps,
|
|
@@ -30,7 +30,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
marko_template.meta = {
|
|
33
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
33
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/site-newsletter-menu.marko",
|
|
34
34
|
tags: [
|
|
35
35
|
"@mindful-web/marko-web/components/browser-component.marko"
|
|
36
36
|
]
|
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social/icon-link.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,
|
|
@@ -55,7 +55,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
marko_template.meta = {
|
|
58
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
58
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social/icon-link.marko",
|
|
59
59
|
tags: [
|
|
60
60
|
"@mindful-web/marko-web-icons/components/icon.marko",
|
|
61
61
|
"@mindful-web/marko-web/components/element/link.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social/icons.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,
|
|
@@ -54,7 +54,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
marko_template.meta = {
|
|
57
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
57
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social/icons.marko",
|
|
58
58
|
tags: [
|
|
59
59
|
"./icon-link.marko",
|
|
60
60
|
"@mindful-web/marko-web/components/element/block.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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social-follow.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,
|
|
@@ -86,7 +86,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
marko_template.meta = {
|
|
89
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
89
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/social-follow.marko",
|
|
90
90
|
tags: [
|
|
91
91
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
92
92
|
"./social/icon-link.marko",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
2
|
+
import { getAsObject } from "@mindful-web/object-path";
|
|
3
|
+
|
|
4
|
+
$ const { site } = out.global;
|
|
5
|
+
$ const sponsoredLabelLogos = site.getAsObject("sponsoredLabelLogos");
|
|
6
|
+
$ const sponsorLogo = getAsObject(sponsoredLabelLogos, input.logoLabel);
|
|
7
|
+
$ const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
8
|
+
$ const prefix = defaultValue(input.prefix, "Presented By");
|
|
9
|
+
|
|
10
|
+
$ const { src, width, height } = sponsorLogo;
|
|
11
|
+
$ const style = {
|
|
12
|
+
...(width && { width }),
|
|
13
|
+
...(height && { height }),
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
<if(src)>
|
|
17
|
+
<marko-web-block name=blockName modifiers=input.modifiers class=input.class>
|
|
18
|
+
<marko-web-element block-name=blockName name="label">
|
|
19
|
+
${prefix}
|
|
20
|
+
</marko-web-element>
|
|
21
|
+
<marko-web-img
|
|
22
|
+
class=`${blockName}__logo`
|
|
23
|
+
src=src
|
|
24
|
+
srcset=[`${src}&dpr=2 2x`]
|
|
25
|
+
alt="Sponsor Logo"
|
|
26
|
+
attrs={ style }
|
|
27
|
+
/>
|
|
28
|
+
</marko-web-block>
|
|
29
|
+
</if>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-label-logo.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
9
|
+
module_objectPath_module = require("@mindful-web/object-path"),
|
|
10
|
+
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
11
|
+
getAsObject = module_objectPath_module.getAsObject,
|
|
12
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
13
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
14
|
+
marko_web_element_template = require("@mindful-web/marko-web/components/element/index.marko"),
|
|
15
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
16
|
+
marko_web_element_tag = marko_loadTag(marko_web_element_template),
|
|
17
|
+
marko_web_img_template = require("@mindful-web/marko-web/components/element/img.marko"),
|
|
18
|
+
marko_web_img_tag = marko_loadTag(marko_web_img_template),
|
|
19
|
+
marko_web_block_template = require("@mindful-web/marko-web/components/element/block.marko"),
|
|
20
|
+
marko_web_block_tag = marko_loadTag(marko_web_block_template);
|
|
21
|
+
|
|
22
|
+
function render(input, out, __component, component, state) {
|
|
23
|
+
var data = input;
|
|
24
|
+
|
|
25
|
+
const { site } = out.global;
|
|
26
|
+
|
|
27
|
+
const sponsoredLabelLogos = site.getAsObject("sponsoredLabelLogos");
|
|
28
|
+
|
|
29
|
+
const sponsorLogo = getAsObject(sponsoredLabelLogos, input.logoLabel);
|
|
30
|
+
|
|
31
|
+
const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
32
|
+
|
|
33
|
+
const prefix = defaultValue(input.prefix, "Presented By");
|
|
34
|
+
|
|
35
|
+
const { src, width, height } = sponsorLogo;
|
|
36
|
+
|
|
37
|
+
const style = {
|
|
38
|
+
...(width && { width }),
|
|
39
|
+
...(height && { height }),
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
if (src) {
|
|
43
|
+
marko_web_block_tag({
|
|
44
|
+
name: blockName,
|
|
45
|
+
tag: "div",
|
|
46
|
+
modifiers: input.modifiers,
|
|
47
|
+
class: input.class,
|
|
48
|
+
renderBody: function(out) {
|
|
49
|
+
marko_web_element_tag({
|
|
50
|
+
name: "label",
|
|
51
|
+
tag: "div",
|
|
52
|
+
blockName: blockName,
|
|
53
|
+
renderBody: function(out) {
|
|
54
|
+
out.w(marko_escapeXml(prefix));
|
|
55
|
+
}
|
|
56
|
+
}, out, __component, "1");
|
|
57
|
+
|
|
58
|
+
marko_web_img_tag({
|
|
59
|
+
lazyload: true,
|
|
60
|
+
class: blockName + "__logo",
|
|
61
|
+
src: src,
|
|
62
|
+
srcset: [
|
|
63
|
+
src + "&dpr=2 2x"
|
|
64
|
+
],
|
|
65
|
+
alt: "Sponsor Logo",
|
|
66
|
+
attrs: {
|
|
67
|
+
style: style
|
|
68
|
+
}
|
|
69
|
+
}, out, __component, "2");
|
|
70
|
+
}
|
|
71
|
+
}, out, __component, "0");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
marko_template._ = marko_renderer(render, {
|
|
76
|
+
d_: true,
|
|
77
|
+
e_: marko_componentType
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
marko_template.meta = {
|
|
81
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-label-logo.marko",
|
|
82
|
+
tags: [
|
|
83
|
+
"@mindful-web/marko-web/components/element/index.marko",
|
|
84
|
+
"@mindful-web/marko-web/components/element/img.marko",
|
|
85
|
+
"@mindful-web/marko-web/components/element/block.marko"
|
|
86
|
+
]
|
|
87
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
2
|
+
|
|
3
|
+
$ const { site } = out.global;
|
|
4
|
+
$ const sponsorLogo = site.getAsObject(`sponsoredSectionLogos.${input.alias}`);
|
|
5
|
+
$ const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
6
|
+
$ const prefix = defaultValue(input.prefix, "Sponsored By");
|
|
7
|
+
|
|
8
|
+
$ const { src, width, height } = sponsorLogo;
|
|
9
|
+
$ const style = {
|
|
10
|
+
...(width && { width }),
|
|
11
|
+
...(height && { height }),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
<if(src)>
|
|
15
|
+
<marko-web-block name=blockName modifiers=input.modifiers class=input.class>
|
|
16
|
+
<marko-web-element block-name=blockName name="label">
|
|
17
|
+
${prefix}
|
|
18
|
+
</marko-web-element>
|
|
19
|
+
<marko-web-img
|
|
20
|
+
class=`${blockName}__logo`
|
|
21
|
+
src=src
|
|
22
|
+
srcset=[`${src}&dpr=2 2x`]
|
|
23
|
+
alt="Sponsor Logo"
|
|
24
|
+
attrs={ style }
|
|
25
|
+
/>
|
|
26
|
+
</marko-web-block>
|
|
27
|
+
</if>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-section-logo.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
9
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
10
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
11
|
+
marko_web_element_template = require("@mindful-web/marko-web/components/element/index.marko"),
|
|
12
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
13
|
+
marko_web_element_tag = marko_loadTag(marko_web_element_template),
|
|
14
|
+
marko_web_img_template = require("@mindful-web/marko-web/components/element/img.marko"),
|
|
15
|
+
marko_web_img_tag = marko_loadTag(marko_web_img_template),
|
|
16
|
+
marko_web_block_template = require("@mindful-web/marko-web/components/element/block.marko"),
|
|
17
|
+
marko_web_block_tag = marko_loadTag(marko_web_block_template);
|
|
18
|
+
|
|
19
|
+
function render(input, out, __component, component, state) {
|
|
20
|
+
var data = input;
|
|
21
|
+
|
|
22
|
+
const { site } = out.global;
|
|
23
|
+
|
|
24
|
+
const sponsorLogo = site.getAsObject(`sponsoredSectionLogos.${input.alias}`);
|
|
25
|
+
|
|
26
|
+
const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
27
|
+
|
|
28
|
+
const prefix = defaultValue(input.prefix, "Sponsored By");
|
|
29
|
+
|
|
30
|
+
const { src, width, height } = sponsorLogo;
|
|
31
|
+
|
|
32
|
+
const style = {
|
|
33
|
+
...(width && { width }),
|
|
34
|
+
...(height && { height }),
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (src) {
|
|
38
|
+
marko_web_block_tag({
|
|
39
|
+
name: blockName,
|
|
40
|
+
tag: "div",
|
|
41
|
+
modifiers: input.modifiers,
|
|
42
|
+
class: input.class,
|
|
43
|
+
renderBody: function(out) {
|
|
44
|
+
marko_web_element_tag({
|
|
45
|
+
name: "label",
|
|
46
|
+
tag: "div",
|
|
47
|
+
blockName: blockName,
|
|
48
|
+
renderBody: function(out) {
|
|
49
|
+
out.w(marko_escapeXml(prefix));
|
|
50
|
+
}
|
|
51
|
+
}, out, __component, "1");
|
|
52
|
+
|
|
53
|
+
marko_web_img_tag({
|
|
54
|
+
lazyload: true,
|
|
55
|
+
class: blockName + "__logo",
|
|
56
|
+
src: src,
|
|
57
|
+
srcset: [
|
|
58
|
+
src + "&dpr=2 2x"
|
|
59
|
+
],
|
|
60
|
+
alt: "Sponsor Logo",
|
|
61
|
+
attrs: {
|
|
62
|
+
style: style
|
|
63
|
+
}
|
|
64
|
+
}, out, __component, "2");
|
|
65
|
+
}
|
|
66
|
+
}, out, __component, "0");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
marko_template._ = marko_renderer(render, {
|
|
71
|
+
d_: true,
|
|
72
|
+
e_: marko_componentType
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
marko_template.meta = {
|
|
76
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-section-logo.marko",
|
|
77
|
+
tags: [
|
|
78
|
+
"@mindful-web/marko-web/components/element/index.marko",
|
|
79
|
+
"@mindful-web/marko-web/components/element/img.marko",
|
|
80
|
+
"@mindful-web/marko-web/components/element/block.marko"
|
|
81
|
+
]
|
|
82
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
2
|
+
|
|
3
|
+
$ const { site } = out.global;
|
|
4
|
+
$ const { section } = input;
|
|
5
|
+
$ const sponsorLogo = site.getAsObject(`sponsoredSectionNameLogos.${section.alias}`);
|
|
6
|
+
$ const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
7
|
+
$ const sectionPage = defaultValue(input.sectionPage, true);
|
|
8
|
+
|
|
9
|
+
$ const { src, width, height } = sponsorLogo;
|
|
10
|
+
$ const style = {
|
|
11
|
+
...(width && { width }),
|
|
12
|
+
...(height && { height }),
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
<if(src)>
|
|
16
|
+
<marko-web-block name=blockName modifiers=input.modifiers class=input.class>
|
|
17
|
+
<marko-web-img
|
|
18
|
+
class=`${blockName}__logo`
|
|
19
|
+
src=src
|
|
20
|
+
srcset=[`${src}&dpr=2 2x`]
|
|
21
|
+
alt="Sponsor Logo"
|
|
22
|
+
attrs={ style }
|
|
23
|
+
/>
|
|
24
|
+
</marko-web-block>
|
|
25
|
+
</if>
|
|
26
|
+
<else-if(sectionPage)>
|
|
27
|
+
<marko-web-website-section-name tag="h1" block-name=blockName obj=section />
|
|
28
|
+
</else-if>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-section-name-logo.marko",
|
|
6
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
9
|
+
marko_web_img_template = require("@mindful-web/marko-web/components/element/img.marko"),
|
|
10
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
11
|
+
marko_web_img_tag = marko_loadTag(marko_web_img_template),
|
|
12
|
+
marko_web_block_template = require("@mindful-web/marko-web/components/element/block.marko"),
|
|
13
|
+
marko_web_block_tag = marko_loadTag(marko_web_block_template),
|
|
14
|
+
marko_web_website_section_name_template = require("@mindful-web/marko-web/components/element/website-section/name.marko"),
|
|
15
|
+
marko_web_website_section_name_tag = marko_loadTag(marko_web_website_section_name_template);
|
|
16
|
+
|
|
17
|
+
function render(input, out, __component, component, state) {
|
|
18
|
+
var data = input;
|
|
19
|
+
|
|
20
|
+
const { site } = out.global;
|
|
21
|
+
|
|
22
|
+
const { section } = input;
|
|
23
|
+
|
|
24
|
+
const sponsorLogo = site.getAsObject(`sponsoredSectionNameLogos.${section.alias}`);
|
|
25
|
+
|
|
26
|
+
const blockName = defaultValue(input.blockName, "sponsor-logo");
|
|
27
|
+
|
|
28
|
+
const sectionPage = defaultValue(input.sectionPage, true);
|
|
29
|
+
|
|
30
|
+
const { src, width, height } = sponsorLogo;
|
|
31
|
+
|
|
32
|
+
const style = {
|
|
33
|
+
...(width && { width }),
|
|
34
|
+
...(height && { height }),
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (src) {
|
|
38
|
+
marko_web_block_tag({
|
|
39
|
+
name: blockName,
|
|
40
|
+
tag: "div",
|
|
41
|
+
modifiers: input.modifiers,
|
|
42
|
+
class: input.class,
|
|
43
|
+
renderBody: function(out) {
|
|
44
|
+
marko_web_img_tag({
|
|
45
|
+
lazyload: true,
|
|
46
|
+
class: blockName + "__logo",
|
|
47
|
+
src: src,
|
|
48
|
+
srcset: [
|
|
49
|
+
src + "&dpr=2 2x"
|
|
50
|
+
],
|
|
51
|
+
alt: "Sponsor Logo",
|
|
52
|
+
attrs: {
|
|
53
|
+
style: style
|
|
54
|
+
}
|
|
55
|
+
}, out, __component, "1");
|
|
56
|
+
}
|
|
57
|
+
}, out, __component, "0");
|
|
58
|
+
} else if (sectionPage) {
|
|
59
|
+
marko_web_website_section_name_tag({
|
|
60
|
+
tag: "h1",
|
|
61
|
+
blockName: blockName,
|
|
62
|
+
obj: section
|
|
63
|
+
}, out, __component, "2");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
marko_template._ = marko_renderer(render, {
|
|
68
|
+
d_: true,
|
|
69
|
+
e_: marko_componentType
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
marko_template.meta = {
|
|
73
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/sponsored-section-name-logo.marko",
|
|
74
|
+
tags: [
|
|
75
|
+
"@mindful-web/marko-web/components/element/img.marko",
|
|
76
|
+
"@mindful-web/marko-web/components/element/block.marko",
|
|
77
|
+
"@mindful-web/marko-web/components/element/website-section/name.marko"
|
|
78
|
+
]
|
|
79
|
+
};
|
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/components/ssr-html-inject.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_cheerio = require("cheerio"),
|
|
8
8
|
cheerio = module_cheerio.default || module_cheerio,
|
|
@@ -129,5 +129,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
marko_template.meta = {
|
|
132
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
132
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/components/ssr-html-inject.marko"
|
|
133
133
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-web-theme-monorail",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.10",
|
|
4
4
|
"author": "Brian Miller <brian@parameter1.com>",
|
|
5
5
|
"repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-theme-monorail",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ec6cf4b31c9f8c1b20979b472e756bbbd30885f4"
|
|
57
57
|
}
|
|
@@ -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-web-theme-monorail$1.71.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.71.10/templates/ad-preview.marko",
|
|
6
6
|
marko_component = require("./ad-preview.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -139,7 +139,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
139
139
|
}, marko_component);
|
|
140
140
|
|
|
141
141
|
marko_template.meta = {
|
|
142
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.71.
|
|
142
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.71.10/templates/ad-preview.marko",
|
|
143
143
|
component: "./ad-preview.marko",
|
|
144
144
|
tags: [
|
|
145
145
|
"../components/flows/section-feed.marko",
|
|
@@ -2,7 +2,8 @@ import { buildImgixUrl } from "@mindful-web/image";
|
|
|
2
2
|
import { get } from "@mindful-web/object-path";
|
|
3
3
|
|
|
4
4
|
$ const { advertiser } = input;
|
|
5
|
-
$ const
|
|
5
|
+
$ const label = input.label != null ? input.label : "Presented by";
|
|
6
|
+
$ const imgDefaults = input.imgDefaults || { auto: "format,compress", h: 50 };
|
|
6
7
|
$ const imgSrc = get(advertiser, "logo.src");
|
|
7
8
|
|
|
8
9
|
<if(imgSrc)>
|
|
@@ -10,7 +11,7 @@ $ const imgSrc = get(advertiser, "logo.src");
|
|
|
10
11
|
$ const srcset = [`${src}&dpr=2 2x`];
|
|
11
12
|
<marko-web-block name="sponsor-logo">
|
|
12
13
|
<marko-web-element block-name="sponsor-logo" name="label">
|
|
13
|
-
|
|
14
|
+
${label}
|
|
14
15
|
</marko-web-element>
|
|
15
16
|
<marko-web-img
|
|
16
17
|
class="sponsor-logo__logo"
|