@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.
Files changed (157) hide show
  1. package/components/ads/fixed-ad-bottom.marko.js +2 -2
  2. package/components/ads/reveal-ad-handler.marko.js +2 -2
  3. package/components/blocks/author-bios.marko.js +2 -2
  4. package/components/blocks/callout-cards.marko.js +2 -2
  5. package/components/blocks/company-inquiry-form.marko.js +2 -2
  6. package/components/blocks/company-search.marko.js +2 -2
  7. package/components/blocks/content-card-deck.marko.js +2 -2
  8. package/components/blocks/content-meter.marko.js +2 -2
  9. package/components/blocks/full-width-native-ad.marko.js +2 -2
  10. package/components/blocks/header-announcement.marko.js +2 -2
  11. package/components/blocks/hero-card.marko.js +2 -2
  12. package/components/blocks/latest-content-list.marko.js +2 -2
  13. package/components/blocks/latest-podcast.marko.js +2 -2
  14. package/components/blocks/latest-products-feed.marko.js +2 -2
  15. package/components/blocks/more-products.marko.js +2 -2
  16. package/components/blocks/most-popular-list.marko.js +2 -2
  17. package/components/blocks/most-popular.marko.js +2 -2
  18. package/components/blocks/native-x-card-deck.marko.js +2 -2
  19. package/components/blocks/native-x-promo-card.marko.js +2 -2
  20. package/components/blocks/newsletter-signup-banner-external.marko.js +2 -2
  21. package/components/blocks/newsletter-signup-banner-large.marko.js +2 -2
  22. package/components/blocks/newsletter-signup-banner.marko.js +2 -2
  23. package/components/blocks/opinion.marko.js +2 -2
  24. package/components/blocks/primary-image.marko.js +2 -2
  25. package/components/blocks/products.marko.js +2 -2
  26. package/components/blocks/read-next.marko.js +2 -2
  27. package/components/blocks/related-stories.marko.js +2 -2
  28. package/components/blocks/resource-library.marko.js +2 -2
  29. package/components/blocks/section-body-feed.marko.js +2 -2
  30. package/components/blocks/section-card-deck-featured.marko.js +2 -2
  31. package/components/blocks/section-card-deck.marko.js +2 -2
  32. package/components/blocks/section-card-list.marko.js +2 -2
  33. package/components/blocks/section-feed.marko.js +2 -2
  34. package/components/blocks/section-forbes.marko.js +2 -2
  35. package/components/blocks/section-list-deck.marko.js +2 -2
  36. package/components/blocks/section-list.marko.js +2 -2
  37. package/components/blocks/section-search.marko.js +2 -2
  38. package/components/blocks/section-title-feed.marko.js +2 -2
  39. package/components/blocks/top-stories-menu.marko.js +2 -2
  40. package/components/blocks/top-stories.marko.js +2 -2
  41. package/components/blocks/white-papers.marko.js +2 -2
  42. package/components/breadcrumbs/content-page.marko.js +2 -2
  43. package/components/breadcrumbs/index.marko.js +2 -2
  44. package/components/breadcrumbs/website-section.marko.js +2 -2
  45. package/components/breadcrumbs/with-home.marko.js +2 -2
  46. package/components/client-side-block-loader.marko.js +2 -2
  47. package/components/client-side-blocks/most-popular-list.marko.js +2 -2
  48. package/components/client-side-blocks/most-popular.marko.js +2 -2
  49. package/components/content/body-with-injection.marko.js +2 -2
  50. package/components/content/contact-details/index.marko.js +2 -2
  51. package/components/content/contact-details/section.marko.js +2 -2
  52. package/components/content/download/form-dot-com.marko.js +2 -2
  53. package/components/content/download/identity-x.marko.js +2 -2
  54. package/components/content/download/index.marko.js +2 -2
  55. package/components/content/download/link.marko.js +2 -2
  56. package/components/content/download/wufoo.marko.js +2 -2
  57. package/components/content/link-url/index.marko.js +2 -2
  58. package/components/content/marko.json +6 -0
  59. package/components/content/sections-listed-in.marko.js +2 -2
  60. package/components/content-attribution/attribution.marko.js +2 -2
  61. package/components/content-attribution/components/authors.marko.js +2 -2
  62. package/components/content-attribution/components/byline.marko.js +2 -2
  63. package/components/content-attribution/components/company.marko.js +2 -2
  64. package/components/content-attribution/components/contributors.marko.js +2 -2
  65. package/components/content-attribution/components/photographers.marko.js +2 -2
  66. package/components/content-attribution/components/source.marko.js +2 -2
  67. package/components/content-attribution/components/speakers.marko.js +2 -2
  68. package/components/content-attribution/components/sponsors.marko.js +2 -2
  69. package/components/content-attribution/index.marko.js +2 -2
  70. package/components/directory-facets/facet-container/facet-container.marko.js +2 -2
  71. package/components/directory-facets/facet-list/facet-list.marko.js +2 -2
  72. package/components/directory-facets/facet.marko.js +2 -2
  73. package/components/directory-facets/index.marko.js +2 -2
  74. package/components/facebook-connect.marko.js +2 -2
  75. package/components/flows/card-deck.marko.js +2 -2
  76. package/components/flows/content/card-deck-col.marko.js +2 -2
  77. package/components/flows/content/directory-section.marko.js +2 -2
  78. package/components/flows/content/list.marko.js +2 -2
  79. package/components/flows/section-feed.marko.js +2 -2
  80. package/components/gam/components/define-display-ad.marko.js +2 -2
  81. package/components/gam/define-display-ad.marko.js +2 -2
  82. package/components/gam/inject-ads.marko.js +2 -2
  83. package/components/gam/wallpaper-ad.marko.js +2 -2
  84. package/components/identity-x/comment-stream.marko.js +2 -2
  85. package/components/identity-x/content-page-gate.marko.js +2 -2
  86. package/components/identity-x/newsletter-footer.marko.js +2 -2
  87. package/components/identity-x/newsletter-inline.marko.js +2 -2
  88. package/components/identity-x/newsletter-modal.marko.js +2 -2
  89. package/components/identity-x/newsletter-pushdown.marko.js +2 -2
  90. package/components/layouts/ad-preview.marko.js +2 -2
  91. package/components/marko.json +9 -0
  92. package/components/menu-toggle-button.marko.js +2 -2
  93. package/components/native-x/render.marko.js +2 -2
  94. package/components/nodes/author-bio.marko.js +2 -2
  95. package/components/nodes/author-card.marko.js +2 -2
  96. package/components/nodes/author-published.marko.js +2 -2
  97. package/components/nodes/author.marko.js +2 -2
  98. package/components/nodes/components/attribution.marko.js +2 -2
  99. package/components/nodes/components/authors.marko.js +2 -2
  100. package/components/nodes/components/company-name.marko.js +2 -2
  101. package/components/nodes/components/dates.marko.js +2 -2
  102. package/components/nodes/components/section-sponsor.marko.js +2 -2
  103. package/components/nodes/content-published.marko.js +2 -2
  104. package/components/nodes/content.marko.js +2 -2
  105. package/components/nodes/directory-section-feed-content.marko.js +2 -2
  106. package/components/nodes/featured-products-card.marko.js +2 -2
  107. package/components/nodes/product-feed-content.marko.js +2 -2
  108. package/components/nodes/section-feed-content.marko.js +2 -2
  109. package/components/nodes/standard-promo.marko.js +2 -2
  110. package/components/nodes/youtube-card.marko.js +2 -2
  111. package/components/page/attribution.marko.js +2 -2
  112. package/components/page/contact-details.marko.js +2 -2
  113. package/components/page/content.marko.js +2 -2
  114. package/components/page/contents.marko.js +2 -2
  115. package/components/page/dates.marko.js +2 -2
  116. package/components/page/default.marko.js +2 -2
  117. package/components/page/website-section.marko.js +2 -2
  118. package/components/pagination-controls.marko.js +2 -2
  119. package/components/query-total-count.marko.js +2 -2
  120. package/components/reveal-ad-handler.marko.js +2 -2
  121. package/components/site-footer/container.marko.js +2 -2
  122. package/components/site-footer/copyright.marko.js +2 -2
  123. package/components/site-footer/index.marko.js +2 -2
  124. package/components/site-footer/social-icons.marko.js +2 -2
  125. package/components/site-header.marko.js +2 -2
  126. package/components/site-menu/components/search.marko.js +2 -2
  127. package/components/site-menu/components/social-icons.marko.js +2 -2
  128. package/components/site-menu/header.marko.js +2 -2
  129. package/components/site-menu/index.marko.js +2 -2
  130. package/components/site-menu/section.marko.js +2 -2
  131. package/components/site-navbar/brand.marko.js +2 -2
  132. package/components/site-navbar/index.marko.js +2 -2
  133. package/components/site-navbar/item.marko.js +2 -2
  134. package/components/site-navbar/items.marko.js +2 -2
  135. package/components/site-navbar/logo.marko.js +2 -2
  136. package/components/site-navbar/search.marko.js +2 -2
  137. package/components/site-newsletter-menu.marko.js +2 -2
  138. package/components/social/icon-link.marko.js +2 -2
  139. package/components/social/icons.marko.js +2 -2
  140. package/components/social-follow.marko.js +2 -2
  141. package/components/sponsored-label-logo.marko +29 -0
  142. package/components/sponsored-label-logo.marko.js +87 -0
  143. package/components/sponsored-section-logo.marko +27 -0
  144. package/components/sponsored-section-logo.marko.js +82 -0
  145. package/components/sponsored-section-name-logo.marko +28 -0
  146. package/components/sponsored-section-name-logo.marko.js +79 -0
  147. package/components/ssr-html-inject.marko.js +2 -2
  148. package/package.json +2 -2
  149. package/templates/ad-preview.marko.js +2 -2
  150. package/templates/content/components/presented-by.marko +3 -2
  151. package/templates/content/components/presented-by.marko.js +8 -4
  152. package/templates/content/native-x-story.marko +1 -1
  153. package/templates/content/native-x-story.marko.js +5 -5
  154. package/templates/content/print.marko.js +2 -2
  155. package/templates/email-preview.marko.js +2 -2
  156. package/templates/search.marko.js +2 -2
  157. 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.9/components/site-menu/section.marko",
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.9/components/site-menu/section.marko",
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.9/components/site-navbar/brand.marko",
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.9/components/site-navbar/brand.marko",
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.9/components/site-navbar/index.marko",
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.9/components/site-navbar/index.marko",
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.9/components/site-navbar/item.marko",
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.9/components/site-navbar/item.marko",
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.9/components/site-navbar/items.marko",
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.9/components/site-navbar/items.marko",
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.9/components/site-navbar/logo.marko",
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.9/components/site-navbar/logo.marko"
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.9/components/site-navbar/search.marko",
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.9/components/site-navbar/search.marko",
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.9/components/site-newsletter-menu.marko",
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.9/components/site-newsletter-menu.marko",
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.9/components/social/icon-link.marko",
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.9/components/social/icon-link.marko",
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.9/components/social/icons.marko",
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.9/components/social/icons.marko",
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.9/components/social-follow.marko",
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.9/components/social-follow.marko",
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.9/components/ssr-html-inject.marko",
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.9/components/ssr-html-inject.marko"
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.9",
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": "f502286acbf63ad3b15f5b49609ee8366a6a6f56"
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.9/templates/ad-preview.marko",
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.9/templates/ad-preview.marko",
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 imgDefaults = { auto: "format,compress", h: 50 };
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
- Presented by
14
+ ${label}
14
15
  </marko-web-element>
15
16
  <marko-web-img
16
17
  class="sponsor-logo__logo"