@parameter1/base-cms-marko-web 4.11.3 → 4.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/base-cms-marko-web-0.7.4.tgz +0 -0
  2. package/base-cms-marko-web-0.9.37.tgz +0 -0
  3. package/base-cms-marko-web-0.9.55.tgz +0 -0
  4. package/components/browser-component.marko.js +2 -2
  5. package/components/deferred-stylesheet.marko.js +2 -2
  6. package/components/document/components/body-wrapper.marko.js +2 -2
  7. package/components/document/components/error.marko.js +2 -2
  8. package/components/document/components/live-reload.marko.js +2 -2
  9. package/components/document/components/polyfill.marko.js +2 -2
  10. package/components/document/components/styles.marko.js +2 -2
  11. package/components/document/container.marko.js +2 -2
  12. package/components/document/index.marko.js +2 -2
  13. package/components/element/array.marko.js +2 -2
  14. package/components/element/audio.marko.js +2 -2
  15. package/components/element/block.marko.js +2 -2
  16. package/components/element/clear.marko.js +2 -2
  17. package/components/element/components/image.marko.js +2 -2
  18. package/components/element/components/text.marko.js +2 -2
  19. package/components/element/content/address1.marko.js +2 -2
  20. package/components/element/content/address2.marko.js +2 -2
  21. package/components/element/content/audio.marko.js +2 -2
  22. package/components/element/content/authors.marko.js +2 -2
  23. package/components/element/content/body.marko.js +2 -2
  24. package/components/element/content/byline.marko.js +2 -2
  25. package/components/element/content/city-state-zip.marko.js +2 -2
  26. package/components/element/content/contributors.marko.js +2 -2
  27. package/components/element/content/country.marko.js +2 -2
  28. package/components/element/content/embed-code.marko.js +2 -2
  29. package/components/element/content/end-date.marko.js +2 -2
  30. package/components/element/content/ends.marko.js +2 -2
  31. package/components/element/content/fax.marko.js +2 -2
  32. package/components/element/content/images.marko.js +2 -2
  33. package/components/element/content/mobile.marko.js +2 -2
  34. package/components/element/content/name.marko.js +2 -2
  35. package/components/element/content/phone.marko.js +2 -2
  36. package/components/element/content/photographers.marko.js +2 -2
  37. package/components/element/content/public-email.marko.js +2 -2
  38. package/components/element/content/published.marko.js +2 -2
  39. package/components/element/content/short-name.marko.js +2 -2
  40. package/components/element/content/sidebar-stubs.marko.js +2 -2
  41. package/components/element/content/sidebars.marko.js +2 -2
  42. package/components/element/content/source.marko.js +2 -2
  43. package/components/element/content/sponsors.marko.js +2 -2
  44. package/components/element/content/start-date.marko.js +2 -2
  45. package/components/element/content/starts.marko.js +2 -2
  46. package/components/element/content/teaser.marko.js +2 -2
  47. package/components/element/content/title.marko.js +2 -2
  48. package/components/element/content/tollfree.marko.js +2 -2
  49. package/components/element/content/transcript.marko.js +2 -2
  50. package/components/element/content/website.marko.js +2 -2
  51. package/components/element/date.marko.js +2 -2
  52. package/components/element/image/caption.marko.js +2 -2
  53. package/components/element/image/credit.marko.js +2 -2
  54. package/components/element/image/display-name.marko.js +2 -2
  55. package/components/element/image/slider.marko.js +2 -2
  56. package/components/element/img.marko.js +2 -2
  57. package/components/element/index.marko.js +2 -2
  58. package/components/element/link.marko.js +2 -2
  59. package/components/element/magazine-issue/description.marko.js +2 -2
  60. package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
  61. package/components/element/magazine-issue/name.marko.js +2 -2
  62. package/components/element/magazine-issue/pdf-url.marko.js +2 -2
  63. package/components/element/magazine-publication/cancel-url.marko.js +2 -2
  64. package/components/element/magazine-publication/change-address-url.marko.js +2 -2
  65. package/components/element/magazine-publication/description.marko.js +2 -2
  66. package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
  67. package/components/element/magazine-publication/name.marko.js +2 -2
  68. package/components/element/magazine-publication/renewal-url.marko.js +2 -2
  69. package/components/element/magazine-publication/reprints-url.marko.js +2 -2
  70. package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
  71. package/components/element/obj-array.marko.js +2 -2
  72. package/components/element/obj-audio.marko.js +2 -2
  73. package/components/element/obj-date.marko.js +2 -2
  74. package/components/element/obj-nodes.marko.js +2 -2
  75. package/components/element/obj-text.marko.js +2 -2
  76. package/components/element/obj.marko.js +2 -2
  77. package/components/element/picture.marko.js +2 -2
  78. package/components/element/text.marko.js +2 -2
  79. package/components/element/website-section/description.marko.js +2 -2
  80. package/components/element/website-section/hierarchy.marko.js +2 -2
  81. package/components/element/website-section/name.marko.js +2 -2
  82. package/components/font/google.marko.js +2 -2
  83. package/components/font/link.marko.js +2 -2
  84. package/components/font/typekit.marko.js +2 -2
  85. package/components/load-more/index.marko.js +2 -2
  86. package/components/load-more/trigger.marko.js +2 -2
  87. package/components/node/body.marko.js +2 -2
  88. package/components/node/element.marko.js +2 -2
  89. package/components/node/footer.marko.js +2 -2
  90. package/components/node/header.marko.js +2 -2
  91. package/components/node/image-inner-wrapper.marko.js +2 -2
  92. package/components/node/image-wrapper.marko.js +2 -2
  93. package/components/node/image.marko.js +2 -2
  94. package/components/node/index.marko.js +2 -2
  95. package/components/node-list/body.marko.js +2 -2
  96. package/components/node-list/element.marko.js +2 -2
  97. package/components/node-list/footer.marko.js +2 -2
  98. package/components/node-list/header.marko.js +2 -2
  99. package/components/node-list/index.marko.js +2 -2
  100. package/components/node-list/node.marko.js +2 -2
  101. package/components/node-list/nodes.marko.js +2 -2
  102. package/components/page/container.marko.js +2 -2
  103. package/components/page/description.marko.js +2 -2
  104. package/components/page/image.marko.js +2 -2
  105. package/components/page/layouts/content.marko.js +2 -2
  106. package/components/page/layouts/default.marko.js +2 -2
  107. package/components/page/layouts/dynamic-page.marko.js +2 -2
  108. package/components/page/layouts/magazine-issue.marko.js +2 -2
  109. package/components/page/layouts/magazine-publication.marko.js +2 -2
  110. package/components/page/layouts/website-section.marko.js +2 -2
  111. package/components/page/metadata/components/common.marko +5 -0
  112. package/components/page/metadata/components/common.marko.js +12 -3
  113. package/components/page/metadata/content.marko +7 -1
  114. package/components/page/metadata/content.marko.js +12 -3
  115. package/components/page/metadata/default.marko.js +2 -2
  116. package/components/page/metadata/dynamic-page.marko.js +2 -2
  117. package/components/page/metadata/google-structured-data/content.js +9 -1
  118. package/components/page/metadata/magazine-issue.marko.js +2 -2
  119. package/components/page/metadata/magazine-publication.marko.js +2 -2
  120. package/components/page/metadata/website-section.marko +13 -0
  121. package/components/page/metadata/website-section.marko.js +15 -2
  122. package/components/page/rel-canonical.marko.js +2 -2
  123. package/components/page/title.marko.js +2 -2
  124. package/components/page/wrapper.marko.js +2 -2
  125. package/components/resolve/page.marko.js +2 -2
  126. package/components/rss/website-section.marko.js +2 -2
  127. package/package.json +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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/description.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/description.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_attr = require("marko/dist/runtime/html/helpers/attr");
8
8
 
@@ -22,5 +22,5 @@ marko_template._ = marko_renderer(render, {
22
22
  });
23
23
 
24
24
  marko_template.meta = {
25
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/description.marko"
25
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/description.marko"
26
26
  };
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/image.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/image.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_baseCmsImage_module = require("@parameter1/base-cms-image"),
8
8
  baseCmsImage_module = module_baseCmsImage_module.default || module_baseCmsImage_module,
@@ -111,7 +111,7 @@ marko_template._ = marko_renderer(render, {
111
111
  });
112
112
 
113
113
  marko_template.meta = {
114
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/image.marko",
114
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/image.marko",
115
115
  tags: [
116
116
  "../element/image/display-name.marko",
117
117
  "../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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/content.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/content.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_content_page_metadata_template = require("../metadata/content.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
56
56
  });
57
57
 
58
58
  marko_template.meta = {
59
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/content.marko",
59
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/content.marko",
60
60
  tags: [
61
61
  "../metadata/content.marko"
62
62
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/default.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/default.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_default_page_metadata_template = require("../metadata/default.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -54,7 +54,7 @@ marko_template._ = marko_renderer(render, {
54
54
  });
55
55
 
56
56
  marko_template.meta = {
57
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/default.marko",
57
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/default.marko",
58
58
  tags: [
59
59
  "../metadata/default.marko"
60
60
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/dynamic-page.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/dynamic-page.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_dynamic_page_metadata_template = require("../metadata/dynamic-page.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
52
52
  });
53
53
 
54
54
  marko_template.meta = {
55
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/dynamic-page.marko",
55
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/dynamic-page.marko",
56
56
  tags: [
57
57
  "../metadata/dynamic-page.marko"
58
58
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/magazine-issue.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/magazine-issue.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_magazine_issue_page_metadata_template = require("../metadata/magazine-issue.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
52
52
  });
53
53
 
54
54
  marko_template.meta = {
55
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/magazine-issue.marko",
55
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/magazine-issue.marko",
56
56
  tags: [
57
57
  "../metadata/magazine-issue.marko"
58
58
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/magazine-publication.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/magazine-publication.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_magazine_publication_page_metadata_template = require("../metadata/magazine-publication.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
52
52
  });
53
53
 
54
54
  marko_template.meta = {
55
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/magazine-publication.marko",
55
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/magazine-publication.marko",
56
56
  tags: [
57
57
  "../metadata/magazine-publication.marko"
58
58
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/website-section.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/website-section.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
8
  baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
70
70
  });
71
71
 
72
72
  marko_template.meta = {
73
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/layouts/website-section.marko",
73
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/layouts/website-section.marko",
74
74
  tags: [
75
75
  "../metadata/website-section.marko",
76
76
  "../../rss/website-section.marko"
@@ -4,6 +4,7 @@ $ const {
4
4
  canonicalPath,
5
5
  canonicalUrl,
6
6
  imageSrc,
7
+ imageDimensions,
7
8
  description,
8
9
  noIndex,
9
10
  } = input;
@@ -28,6 +29,10 @@ $ const image = imageSrc || fallbackImage;
28
29
  <if(image)>
29
30
  <!-- Image (standard, OpenGrah, and Schema.org respectively) -->
30
31
  <meta name="image" property="og:image" item-prop="image" content=image />
32
+ <if(imageDimensions && imageDimensions.width && imageDimensions.height)>
33
+ <meta property="og:image:width" content=`${imageDimensions.width}` />
34
+ <meta property="og:image:height" content=`${imageDimensions.height}` />
35
+ </if>
31
36
  <!-- @todo Create a new focal point preview for FB's 1200x630 ratio -->
32
37
  </if>
33
38
 
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/components/common.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/components/common.marko",
6
6
  marko_component = require("./common.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  marko_web_page_title_template = require("../../title.marko"),
@@ -24,6 +24,7 @@ function render(input, out, __component, component, state) {
24
24
  canonicalPath,
25
25
  canonicalUrl,
26
26
  imageSrc,
27
+ imageDimensions,
27
28
  description,
28
29
  noIndex,
29
30
  } = input;
@@ -60,6 +61,14 @@ function render(input, out, __component, component, state) {
60
61
  out.w("<meta name=\"image\" property=\"og:image\" item-prop=\"image\"" +
61
62
  marko_attr("content", image) +
62
63
  ">");
64
+
65
+ if ((imageDimensions && imageDimensions.width) && imageDimensions.height) {
66
+ out.w("<meta property=\"og:image:width\"" +
67
+ marko_attr("content", "" + imageDimensions.width) +
68
+ "><meta property=\"og:image:height\"" +
69
+ marko_attr("content", "" + imageDimensions.height) +
70
+ ">");
71
+ }
63
72
  }
64
73
 
65
74
  marko_web_page_rel_canonical_tag({
@@ -70,7 +79,7 @@ function render(input, out, __component, component, state) {
70
79
  marko_attr("content", href) +
71
80
  ">");
72
81
  }
73
- }, out, __component, "6");
82
+ }, out, __component, "8");
74
83
 
75
84
  out.w("<meta property=\"og:site_name\"" +
76
85
  marko_attr("content", config.website("name")) +
@@ -98,7 +107,7 @@ marko_template._ = marko_renderer(render, {
98
107
  }, marko_component);
99
108
 
100
109
  marko_template.meta = {
101
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/components/common.marko",
110
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/components/common.marko",
102
111
  component: "./common.marko",
103
112
  tags: [
104
113
  "../../title.marko",
@@ -31,6 +31,9 @@ fragment ContentPageMetadataFragment on Content {
31
31
  src(input: { options: { auto: "format,compress", w: "1200", fit: "max", q: 70 } })
32
32
  }
33
33
  }
34
+ userRegistration {
35
+ isCurrentlyRequired
36
+ }
34
37
  ... on ContentVideo {
35
38
  embedSrc
36
39
  transcript
@@ -87,6 +90,9 @@ ${processedFragment}
87
90
  `;
88
91
 
89
92
  $ const buildStructuredData = isFunction(input.buildStructuredData) ? input.buildStructuredData : defaultBuildStructuredData;
93
+ $ const defaultFn = (node) => get(node, 'userRegistration.isCurrentlyRequired', false);
94
+ $ const { contentGatingHandler: globalContentGatingHandler } = out.global;
95
+ $ const contentGatingHandler = isFunction(globalContentGatingHandler) ? globalContentGatingHandler : defaultFn;
90
96
 
91
97
  <if(id)>
92
98
  <marko-web-query|{ node }| name="content" params={ id, queryFragment }>
@@ -123,7 +129,7 @@ $ const buildStructuredData = isFunction(input.buildStructuredData) ? input.buil
123
129
  </if>
124
130
  </else>
125
131
 
126
- $ const structuredData = buildStructuredData(node);
132
+ $ const structuredData = buildStructuredData(node, contentGatingHandler);
127
133
  <if(structuredData)>
128
134
  <script type="application/ld+json">
129
135
  ${structuredData}
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/content.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/content.marko",
6
6
  marko_component = require("./content.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -59,6 +59,9 @@ fragment ContentPageMetadataFragment on Content {
59
59
  src(input: { options: { auto: "format,compress", w: "1200", fit: "max", q: 70 } })
60
60
  }
61
61
  }
62
+ userRegistration {
63
+ isCurrentlyRequired
64
+ }
62
65
  ... on ContentVideo {
63
66
  embedSrc
64
67
  transcript
@@ -116,6 +119,12 @@ ${processedFragment}
116
119
 
117
120
  const buildStructuredData = isFunction(input.buildStructuredData) ? input.buildStructuredData : defaultBuildStructuredData;
118
121
 
122
+ const defaultFn = (node) => get(node, 'userRegistration.isCurrentlyRequired', false);
123
+
124
+ const { contentGatingHandler: globalContentGatingHandler } = out.global;
125
+
126
+ const contentGatingHandler = isFunction(globalContentGatingHandler) ? globalContentGatingHandler : defaultFn;
127
+
119
128
  if (id) {
120
129
  marko_web_query_tag({
121
130
  collapsible: true,
@@ -178,7 +187,7 @@ ${processedFragment}
178
187
  }
179
188
  }
180
189
 
181
- const structuredData = buildStructuredData(node);
190
+ const structuredData = buildStructuredData(node, contentGatingHandler);
182
191
 
183
192
  if (structuredData) {
184
193
  out.w("<script type=\"application/ld+json\">" +
@@ -197,7 +206,7 @@ marko_template._ = marko_renderer(render, {
197
206
  }, marko_component);
198
207
 
199
208
  marko_template.meta = {
200
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/content.marko",
209
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/content.marko",
201
210
  component: "./content.marko",
202
211
  tags: [
203
212
  "./components/common.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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/default.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/default.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  common_template = require("./components/common.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
22
22
  });
23
23
 
24
24
  marko_template.meta = {
25
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/default.marko",
25
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/default.marko",
26
26
  tags: [
27
27
  "./components/common.marko"
28
28
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/dynamic-page.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/dynamic-page.marko",
6
6
  marko_component = require("./dynamic-page.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -75,7 +75,7 @@ marko_template._ = marko_renderer(render, {
75
75
  }, marko_component);
76
76
 
77
77
  marko_template.meta = {
78
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/dynamic-page.marko",
78
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/dynamic-page.marko",
79
79
  component: "./dynamic-page.marko",
80
80
  tags: [
81
81
  "./components/common.marko",
@@ -24,7 +24,7 @@ const getImages = (node) => {
24
24
  return images.length ? images : undefined;
25
25
  };
26
26
 
27
- module.exports = (node) => {
27
+ module.exports = (node, contentGatingHandler) => {
28
28
  const publishedISOString = node.published ? (new Date(node.published)).toISOString() : undefined;
29
29
  const updatedISOString = node.updated ? (new Date(node.updated)).toISOString() : undefined;
30
30
  const siteUrl = get(node, 'siteContext.url');
@@ -47,6 +47,14 @@ module.exports = (node) => {
47
47
  url: canonicalUrl,
48
48
  ...(siteUrl !== canonicalUrl && { url: siteUrl, isBasedOn: canonicalUrl }),
49
49
  ...(getAuthor(node) && { author: getAuthor(node) }),
50
+ ...(contentGatingHandler(node) && {
51
+ isAccessibleForFree: false,
52
+ hasPart: {
53
+ '@type': 'WebPageElement',
54
+ isAccessibleForFree: false,
55
+ cssSelector: '.page-contents__content-body--ld-json',
56
+ },
57
+ }),
50
58
  };
51
59
 
52
60
  if (node.type === 'video') {
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/magazine-issue.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/magazine-issue.marko",
6
6
  marko_component = require("./magazine-issue.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
74
74
  }, marko_component);
75
75
 
76
76
  marko_template.meta = {
77
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/magazine-issue.marko",
77
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/magazine-issue.marko",
78
78
  component: "./magazine-issue.marko",
79
79
  tags: [
80
80
  "./components/common.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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/magazine-publication.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/magazine-publication.marko",
6
6
  marko_component = require("./magazine-publication.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
70
70
  }, marko_component);
71
71
 
72
72
  marko_template.meta = {
73
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/magazine-publication.marko",
73
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/magazine-publication.marko",
74
74
  component: "./magazine-publication.marko",
75
75
  tags: [
76
76
  "./components/common.marko",
@@ -13,6 +13,14 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
13
13
  title
14
14
  description
15
15
  }
16
+ logo {
17
+ id
18
+ src
19
+ cropRectangle {
20
+ width
21
+ height
22
+ }
23
+ }
16
24
  }
17
25
  `;
18
26
 
@@ -22,6 +30,11 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
22
30
  title: get(node, "metadata.title"),
23
31
  description: get(node, "metadata.description"),
24
32
  canonicalPath: node.canonicalPath,
33
+ imageSrc: get(node, "logo.src"),
34
+ imageDimensions: {
35
+ width: get(node, "logo.cropRectangle.width"),
36
+ height: get(node, "logo.cropRectangle.height")
37
+ },
25
38
  };
26
39
  <common ...metadata />
27
40
  <meta property="og:type" content="website" />
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/website-section.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/website-section.marko",
6
6
  marko_component = require("./website-section.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -32,6 +32,14 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
32
32
  title
33
33
  description
34
34
  }
35
+ logo {
36
+ id
37
+ src
38
+ cropRectangle {
39
+ width
40
+ height
41
+ }
42
+ }
35
43
  }
36
44
  `;
37
45
 
@@ -53,6 +61,11 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
53
61
  title: get(node, "metadata.title"),
54
62
  description: get(node, "metadata.description"),
55
63
  canonicalPath: node.canonicalPath,
64
+ imageSrc: get(node, "logo.src"),
65
+ imageDimensions: {
66
+ width: get(node, "logo.cropRectangle.width"),
67
+ height: get(node, "logo.cropRectangle.height")
68
+ },
56
69
  };
57
70
 
58
71
  common_tag(metadata, out, __component, "1");
@@ -70,7 +83,7 @@ marko_template._ = marko_renderer(render, {
70
83
  }, marko_component);
71
84
 
72
85
  marko_template.meta = {
73
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/metadata/website-section.marko",
86
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/metadata/website-section.marko",
74
87
  component: "./website-section.marko",
75
88
  tags: [
76
89
  "./components/common.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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/rel-canonical.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/rel-canonical.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
8
8
  baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
38
38
  });
39
39
 
40
40
  marko_template.meta = {
41
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/rel-canonical.marko"
41
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/rel-canonical.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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/title.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/title.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
8
8
  baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
42
42
  });
43
43
 
44
44
  marko_template.meta = {
45
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/title.marko"
45
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/title.marko"
46
46
  };
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/page/wrapper.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/page/wrapper.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
8
8
  baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
56
56
  });
57
57
 
58
58
  marko_template.meta = {
59
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/page/wrapper.marko",
59
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/page/wrapper.marko",
60
60
  tags: [
61
61
  "../element/index.marko"
62
62
  ]
@@ -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 = "/@parameter1/base-cms-marko-web$4.11.3/components/resolve/page.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/resolve/page.marko",
6
6
  marko_component = require("./page.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
41
41
  }, marko_component);
42
42
 
43
43
  marko_template.meta = {
44
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/resolve/page.marko",
44
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/resolve/page.marko",
45
45
  component: "./page.marko",
46
46
  tags: [
47
47
  "@parameter1/base-cms-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 = "/@parameter1/base-cms-marko-web$4.11.3/components/rss/website-section.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.14.0/components/rss/website-section.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_url_module = require("url"),
8
8
  url_module = module_url_module.default || module_url_module,
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
42
42
  });
43
43
 
44
44
  marko_template.meta = {
45
- id: "/@parameter1/base-cms-marko-web$4.11.3/components/rss/website-section.marko"
45
+ id: "/@parameter1/base-cms-marko-web$4.14.0/components/rss/website-section.marko"
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parameter1/base-cms-marko-web",
3
- "version": "4.11.3",
3
+ "version": "4.14.0",
4
4
  "description": "Core Marko+Express components for BaseCMS websites",
5
5
  "author": "Jacob Bare <jacob@parameter1.com>",
6
6
  "main": "index.js",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "cc6844f7fdc792f6a46394a1ba22a8f88b8436ea"
63
+ "gitHead": "29b3b166d9acbfa996e3aa0bc0cb100972efee56"
64
64
  }