@parameter1/base-cms-marko-web 4.8.0 → 4.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/components/browser-component.marko.js +2 -2
  2. package/components/document/components/body-wrapper.marko.js +2 -2
  3. package/components/document/components/error.marko.js +2 -2
  4. package/components/document/components/live-reload.marko.js +2 -2
  5. package/components/document/components/polyfill.marko.js +2 -2
  6. package/components/document/components/styles.marko +23 -0
  7. package/components/document/components/styles.marko.js +57 -0
  8. package/components/document/container.marko.js +2 -2
  9. package/components/document/index.marko +8 -19
  10. package/components/document/index.marko.js +15 -38
  11. package/components/element/array.marko.js +2 -2
  12. package/components/element/audio.marko.js +2 -2
  13. package/components/element/block.marko.js +2 -2
  14. package/components/element/clear.marko.js +2 -2
  15. package/components/element/components/image.marko.js +2 -2
  16. package/components/element/components/text.marko.js +2 -2
  17. package/components/element/content/address1.marko.js +2 -2
  18. package/components/element/content/address2.marko.js +2 -2
  19. package/components/element/content/audio.marko.js +2 -2
  20. package/components/element/content/authors.marko.js +2 -2
  21. package/components/element/content/body.marko +4 -2
  22. package/components/element/content/body.marko.js +8 -4
  23. package/components/element/content/byline.marko.js +2 -2
  24. package/components/element/content/city-state-zip.marko.js +2 -2
  25. package/components/element/content/contributors.marko.js +2 -2
  26. package/components/element/content/country.marko.js +2 -2
  27. package/components/element/content/embed-code.marko.js +2 -2
  28. package/components/element/content/end-date.marko.js +2 -2
  29. package/components/element/content/ends.marko.js +2 -2
  30. package/components/element/content/fax.marko.js +2 -2
  31. package/components/element/content/images.marko.js +2 -2
  32. package/components/element/content/mobile.marko.js +2 -2
  33. package/components/element/content/name.marko.js +2 -2
  34. package/components/element/content/phone.marko.js +2 -2
  35. package/components/element/content/photographers.marko.js +2 -2
  36. package/components/element/content/public-email.marko.js +2 -2
  37. package/components/element/content/published.marko.js +2 -2
  38. package/components/element/content/short-name.marko.js +2 -2
  39. package/components/element/content/sidebar-stubs.marko.js +2 -2
  40. package/components/element/content/sidebars.marko.js +2 -2
  41. package/components/element/content/source.marko.js +2 -2
  42. package/components/element/content/sponsors.marko.js +2 -2
  43. package/components/element/content/start-date.marko.js +2 -2
  44. package/components/element/content/starts.marko.js +2 -2
  45. package/components/element/content/teaser.marko.js +2 -2
  46. package/components/element/content/title.marko.js +2 -2
  47. package/components/element/content/tollfree.marko.js +2 -2
  48. package/components/element/content/transcript.marko.js +2 -2
  49. package/components/element/content/website.marko.js +2 -2
  50. package/components/element/date.marko.js +2 -2
  51. package/components/element/image/caption.marko.js +2 -2
  52. package/components/element/image/credit.marko.js +2 -2
  53. package/components/element/image/display-name.marko.js +2 -2
  54. package/components/element/image/slider.marko.js +2 -2
  55. package/components/element/img.marko.js +2 -2
  56. package/components/element/index.marko.js +2 -2
  57. package/components/element/link.marko.js +2 -2
  58. package/components/element/magazine-issue/description.marko.js +2 -2
  59. package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
  60. package/components/element/magazine-issue/name.marko.js +2 -2
  61. package/components/element/magazine-issue/pdf-url.marko.js +2 -2
  62. package/components/element/magazine-publication/cancel-url.marko.js +2 -2
  63. package/components/element/magazine-publication/change-address-url.marko.js +2 -2
  64. package/components/element/magazine-publication/description.marko.js +2 -2
  65. package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
  66. package/components/element/magazine-publication/name.marko.js +2 -2
  67. package/components/element/magazine-publication/renewal-url.marko.js +2 -2
  68. package/components/element/magazine-publication/reprints-url.marko.js +2 -2
  69. package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
  70. package/components/element/obj-array.marko.js +2 -2
  71. package/components/element/obj-audio.marko.js +2 -2
  72. package/components/element/obj-date.marko.js +2 -2
  73. package/components/element/obj-nodes.marko.js +2 -2
  74. package/components/element/obj-text.marko.js +2 -2
  75. package/components/element/obj.marko.js +2 -2
  76. package/components/element/picture.marko.js +2 -2
  77. package/components/element/text.marko.js +2 -2
  78. package/components/element/website-section/description.marko.js +2 -2
  79. package/components/element/website-section/hierarchy.marko.js +2 -2
  80. package/components/element/website-section/name.marko.js +2 -2
  81. package/components/font/google.marko.js +2 -2
  82. package/components/font/link.marko.js +2 -2
  83. package/components/font/typekit.marko.js +2 -2
  84. package/components/load-more/index.marko.js +2 -2
  85. package/components/load-more/trigger.marko.js +2 -2
  86. package/components/node/body.marko.js +2 -2
  87. package/components/node/element.marko.js +2 -2
  88. package/components/node/footer.marko.js +2 -2
  89. package/components/node/header.marko.js +2 -2
  90. package/components/node/image-inner-wrapper.marko.js +2 -2
  91. package/components/node/image-wrapper.marko.js +2 -2
  92. package/components/node/image.marko.js +2 -2
  93. package/components/node/index.marko.js +2 -2
  94. package/components/node-list/body.marko.js +2 -2
  95. package/components/node-list/element.marko.js +2 -2
  96. package/components/node-list/footer.marko.js +2 -2
  97. package/components/node-list/header.marko.js +2 -2
  98. package/components/node-list/index.marko.js +2 -2
  99. package/components/node-list/node.marko.js +2 -2
  100. package/components/node-list/nodes.marko.js +2 -2
  101. package/components/page/container.marko.js +2 -2
  102. package/components/page/description.marko.js +2 -2
  103. package/components/page/image.marko.js +2 -2
  104. package/components/page/layouts/content.marko.js +2 -2
  105. package/components/page/layouts/default.marko.js +2 -2
  106. package/components/page/layouts/dynamic-page.marko.js +2 -2
  107. package/components/page/layouts/magazine-issue.marko.js +2 -2
  108. package/components/page/layouts/magazine-publication.marko.js +2 -2
  109. package/components/page/layouts/website-section.marko.js +2 -2
  110. package/components/page/metadata/components/common.marko.js +2 -2
  111. package/components/page/metadata/content.marko.js +2 -2
  112. package/components/page/metadata/default.marko.js +2 -2
  113. package/components/page/metadata/dynamic-page.marko.js +2 -2
  114. package/components/page/metadata/magazine-issue.marko.js +2 -2
  115. package/components/page/metadata/magazine-publication.marko.js +2 -2
  116. package/components/page/metadata/website-section.marko.js +2 -2
  117. package/components/page/rel-canonical.marko.js +2 -2
  118. package/components/page/title.marko.js +2 -2
  119. package/components/page/wrapper.marko.js +2 -2
  120. package/components/resolve/page.marko.js +2 -2
  121. package/components/rss/website-section.marko.js +2 -2
  122. package/config/core.js +0 -41
  123. package/eslint.log +3 -0
  124. package/express/asset-loader.js +55 -0
  125. package/express/cdn.js +27 -0
  126. package/express/css-loader.js +117 -0
  127. package/express/embedded-media.js +4 -3
  128. package/express/error-handlers.js +2 -0
  129. package/express/index.js +12 -3
  130. package/middleware/with-content.js +4 -0
  131. package/middleware/with-dynamic-page.js +4 -0
  132. package/middleware/with-magazine-issue.js +4 -0
  133. package/middleware/with-magazine-publication.js +4 -0
  134. package/middleware/with-website-section.js +4 -0
  135. package/package.json +3 -3
  136. package/scss/fonts/alata-fallback.scss +7 -0
  137. package/scss/fonts/arimo-fallback.scss +7 -0
  138. package/scss/fonts/fira-sans-fallback.scss +1 -0
  139. package/scss/fonts/ibm-plex-sans-fallback.scss +7 -0
  140. package/scss/fonts/informapro-fallback.scss +6 -0
  141. package/scss/fonts/lato-fallback.scss +7 -0
  142. package/scss/fonts/montserrat-fallback.scss +1 -0
  143. package/scss/fonts/open-sans-condensed-fallback.scss +2 -2
  144. package/scss/fonts/open-sans-fallback.scss +1 -0
  145. package/scss/fonts/oswold-fallback.scss +1 -0
  146. package/scss/fonts/roboto-condensed-fallback.scss +7 -0
  147. package/scss/fonts/roboto-fallback.scss +7 -0
  148. package/scss/fonts/roboto-slab-fallback.scss +7 -0
  149. package/scss/fonts/solitaire-mvb-pro-fallback.scss +6 -0
  150. package/scss/fonts/source-sans-4-fallback.scss +1 -0
  151. package/scss/fonts/source-serif-pro-fallback.scss +7 -0
  152. package/scss/fonts/synthese-fallback.scss +6 -0
  153. package/base-cms-marko-web-0.7.4.tgz +0 -0
  154. package/base-cms-marko-web-0.9.37.tgz +0 -0
  155. package/base-cms-marko-web-0.9.55.tgz +0 -0
  156. package/config/dist-loader.js +0 -42
  157. package/express/purged-css.js +0 -11
  158. package/public/lazysizes/v5.3.2.js +0 -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.8.0/components/browser-component.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/browser-component.marko",
6
6
  marko_component = require("./browser-component.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_defaultValue = require("@parameter1/base-cms-marko-core/utils/default-value"),
@@ -78,7 +78,7 @@ marko_template._ = marko_renderer(render, {
78
78
  }, marko_component);
79
79
 
80
80
  marko_template.meta = {
81
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/browser-component.marko",
81
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/browser-component.marko",
82
82
  component: "./browser-component.marko",
83
83
  tags: [
84
84
  "@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.8.0/components/document/components/body-wrapper.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/body-wrapper.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_attrs = require("marko/dist/runtime/html/helpers/attrs");
@@ -29,5 +29,5 @@ marko_template._ = marko_renderer(render, {
29
29
  });
30
30
 
31
31
  marko_template.meta = {
32
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/components/body-wrapper.marko"
32
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/body-wrapper.marko"
33
33
  };
@@ -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.8.0/components/document/components/error.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/error.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_isDev = require("../../../utils/is-dev"),
8
8
  isDev = module_isDev.default || module_isDev,
@@ -80,7 +80,7 @@ marko_template._ = marko_renderer(render, {
80
80
  });
81
81
 
82
82
  marko_template.meta = {
83
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/components/error.marko",
83
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/error.marko",
84
84
  tags: [
85
85
  "../../page/title.marko",
86
86
  "../../page/wrapper.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.8.0/components/document/components/live-reload.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/live-reload.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_isDev = require("../../../utils/is-dev"),
8
8
  isDev = module_isDev.default || module_isDev,
@@ -26,5 +26,5 @@ marko_template._ = marko_renderer(render, {
26
26
  });
27
27
 
28
28
  marko_template.meta = {
29
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/components/live-reload.marko"
29
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/live-reload.marko"
30
30
  };
@@ -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.8.0/components/document/components/polyfill.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/polyfill.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,
@@ -29,5 +29,5 @@ marko_template._ = marko_renderer(render, {
29
29
  });
30
30
 
31
31
  marko_template.meta = {
32
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/components/polyfill.marko"
32
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/polyfill.marko"
33
33
  };
@@ -0,0 +1,23 @@
1
+ $ const { css, route } = out.global;
2
+ $ const { mode } = css;
3
+ $ const { kind } = route;
4
+
5
+ <if(mode === "main")>
6
+ <link rel="stylesheet" href=css.main() />
7
+ </if>
8
+ <else-if(mode === "purged")>
9
+ <link rel="stylesheet" href=css.purged() />
10
+ </else-if>
11
+ <else>
12
+ $ const critical = css.critical(route);
13
+ $ const optimized = css.optimized(route);
14
+ <if(critical)>
15
+ <style>${critical}</style>
16
+ </if>
17
+ <if(mode === "optimized" && optimized)>
18
+ <link rel="preload" href=optimized as="style" onload="this.onload=null;this.rel='stylesheet'">
19
+ <noscript>
20
+ <link rel="stylesheet" href=optimized>
21
+ </noscript>
22
+ </if>
23
+ </else>
@@ -0,0 +1,57 @@
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 = "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/styles.marko",
6
+ marko_renderer = require("marko/dist/runtime/components/renderer"),
7
+ marko_attr = require("marko/dist/runtime/html/helpers/attr"),
8
+ helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
9
+ marko_escapeXml = helpers_escape_xml.x,
10
+ marko_escapeStyle = require("marko/dist/runtime/html/helpers/escape-style-placeholder");
11
+
12
+ function render(input, out, __component, component, state) {
13
+ var data = input;
14
+
15
+ const { css, route } = out.global;
16
+
17
+ const { mode } = css;
18
+
19
+ const { kind } = route;
20
+
21
+ if (mode === "main") {
22
+ out.w("<link rel=\"stylesheet\"" +
23
+ marko_attr("href", css.main()) +
24
+ ">");
25
+ } else if (mode === "purged") {
26
+ out.w("<link rel=\"stylesheet\"" +
27
+ marko_attr("href", css.purged()) +
28
+ ">");
29
+ } else {
30
+ const critical = css.critical(route);
31
+
32
+ const optimized = css.optimized(route);
33
+
34
+ if (critical) {
35
+ out.w("<style>" +
36
+ marko_escapeStyle(critical) +
37
+ "</style>");
38
+ }
39
+
40
+ if ((mode === "optimized") && optimized) {
41
+ out.w("<link rel=\"preload\"" +
42
+ marko_attr("href", optimized) +
43
+ " as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\"><noscript><link rel=\"stylesheet\"" +
44
+ marko_attr("href", optimized) +
45
+ "></noscript>");
46
+ }
47
+ }
48
+ }
49
+
50
+ marko_template._ = marko_renderer(render, {
51
+ d_: true,
52
+ e_: marko_componentType
53
+ });
54
+
55
+ marko_template.meta = {
56
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/components/styles.marko"
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 = "/@parameter1/base-cms-marko-web$4.8.0/components/document/container.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/container.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,
@@ -47,7 +47,7 @@ marko_template._ = marko_renderer(render, {
47
47
  });
48
48
 
49
49
  marko_template.meta = {
50
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/container.marko",
50
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/container.marko",
51
51
  tags: [
52
52
  "../page/container.marko"
53
53
  ]
@@ -1,11 +1,6 @@
1
1
  import { getAsObject } from "@parameter1/base-cms-object-path";
2
2
 
3
- $ const {
4
- config,
5
- req,
6
- usePurgedCSS,
7
- embedCSS,
8
- } = out.global;
3
+ $ const { config, req, assets } = out.global;
9
4
 
10
5
  $ const dir = input.dir || "ltr";
11
6
  $ const lang = input.lang || config.website("language.code", "en-us");
@@ -19,9 +14,14 @@ $ const wrapper = getAsObject(input, "bodyWrapper");
19
14
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
20
15
  <meta name="viewport" content=viewport>
21
16
 
17
+ <link rel="preconnect" href="https://cdn.parameter1.com">
18
+
19
+ <!-- load styles -->
20
+ <styles />
21
+
22
22
  <marko-web-deferred-script-loader-init />
23
23
 
24
- <for|src| of=config.sources()>
24
+ <for|src| of=assets.files.get("js")>
25
25
  <marko-web-deferred-script-loader-register
26
26
  name="marko-web-core"
27
27
  src=src
@@ -34,7 +34,7 @@ $ const wrapper = getAsObject(input, "bodyWrapper");
34
34
 
35
35
  <marko-web-deferred-script-loader-register
36
36
  name="lazysizes"
37
- src="/dist/js/lazysizes/v5.3.2.js"
37
+ src="https://cdn.parameter1.com/lazysizes/v5.3.2.js"
38
38
  on="ready"
39
39
  />
40
40
  <!-- add picturefill to old browsers -->
@@ -43,17 +43,6 @@ $ const wrapper = getAsObject(input, "bodyWrapper");
43
43
  </script>
44
44
  <script nomodule src="https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js" async></script>
45
45
 
46
- <!-- load styles -->
47
- $ const loadStyles = usePurgedCSS ? config.purgedStyles.bind(config) : config.styles.bind(config);
48
- <if(embedCSS)>
49
- <style>${loadStyles({ embedded: true })}</style>
50
- </if>
51
- <else>
52
- <for|href| of=loadStyles()>
53
- <link rel="stylesheet" href=href />
54
- </for>
55
- </else>
56
-
57
46
  <${input.head} />
58
47
  </head>
59
48
  <body>
@@ -2,21 +2,20 @@
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.8.0/components/document/index.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/document/index.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,
9
9
  getAsObject = module_baseCmsObjectPath_module.getAsObject,
10
10
  marko_attr = require("marko/dist/runtime/html/helpers/attr"),
11
- marko_web_deferred_script_loader_init_template = require("@parameter1/base-cms-marko-web-deferred-script-loader/components/init.marko"),
11
+ styles_template = require("./components/styles.marko"),
12
12
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
13
+ styles_tag = marko_loadTag(styles_template),
14
+ marko_web_deferred_script_loader_init_template = require("@parameter1/base-cms-marko-web-deferred-script-loader/components/init.marko"),
13
15
  marko_web_deferred_script_loader_init_tag = marko_loadTag(marko_web_deferred_script_loader_init_template),
14
16
  marko_forOf = require("marko/dist/runtime/helpers/for-of"),
15
17
  marko_web_deferred_script_loader_register_template = require("@parameter1/base-cms-marko-web-deferred-script-loader/components/register.marko"),
16
18
  marko_web_deferred_script_loader_register_tag = marko_loadTag(marko_web_deferred_script_loader_register_template),
17
- helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
18
- marko_escapeXml = helpers_escape_xml.x,
19
- marko_escapeStyle = require("marko/dist/runtime/html/helpers/escape-style-placeholder"),
20
19
  marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
21
20
  marko_assign = require("marko/dist/runtime/helpers/assign"),
22
21
  marko_web_document_container_template = require("./container.marko"),
@@ -34,12 +33,7 @@ var marko_template = module.exports = require("marko/dist/html").t(__filename),
34
33
  function render(input, out, __component, component, state) {
35
34
  var data = input;
36
35
 
37
- const {
38
- config,
39
- req,
40
- usePurgedCSS,
41
- embedCSS,
42
- } = out.global;
36
+ const { config, req, assets } = out.global;
43
37
 
44
38
  const dir = input.dir || "ltr";
45
39
 
@@ -54,13 +48,15 @@ function render(input, out, __component, component, state) {
54
48
  marko_attr("dir", dir) +
55
49
  "><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\"" +
56
50
  marko_attr("content", viewport) +
57
- ">");
51
+ "><link rel=\"preconnect\" href=\"https://cdn.parameter1.com\">");
58
52
 
59
- marko_web_deferred_script_loader_init_tag({}, out, __component, "5");
53
+ styles_tag({}, out, __component, "6");
54
+
55
+ marko_web_deferred_script_loader_init_tag({}, out, __component, "7");
60
56
 
61
57
  var $for$0 = 0;
62
58
 
63
- marko_forOf(config.sources(), function(src) {
59
+ marko_forOf(assets.files.get("js"), function(src) {
64
60
  var $keyScope$0 = "[" + (($for$0++) + "]");
65
61
 
66
62
  marko_web_deferred_script_loader_register_tag({
@@ -70,37 +66,17 @@ function render(input, out, __component, component, state) {
70
66
  on: "ready",
71
67
  init: "var w = window; w.markoCompQueue = w.markoCompQueue || []; var name = 'CMSBrowserComponents', methods = ['load', 'loadComponent'], queue = function(method) { return function() { w.markoCompQueue.push([method, arguments]) } }; w[name] = w[name] || {}; for (var i = 0; i < methods.length; i++) { var method = methods[i]; w[name][method] = w[name][method] || queue(method); }",
72
68
  onScriptLoad: "window.markoCompQueue.flush();"
73
- }, out, __component, "6" + $keyScope$0);
69
+ }, out, __component, "8" + $keyScope$0);
74
70
  });
75
71
 
76
72
  marko_web_deferred_script_loader_register_tag({
77
73
  name: "lazysizes",
78
- src: "/dist/js/lazysizes/v5.3.2.js",
74
+ src: "https://cdn.parameter1.com/lazysizes/v5.3.2.js",
79
75
  on: "ready"
80
- }, out, __component, "7");
76
+ }, out, __component, "9");
81
77
 
82
78
  out.w("<script nomodule>\n document.createElement(\"picture\");\n </script><script nomodule src=\"https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js\" async></script>");
83
79
 
84
- const loadStyles = usePurgedCSS ? config.purgedStyles.bind(config) : config.styles.bind(config);
85
-
86
- if (embedCSS) {
87
- out.w("<style>" +
88
- marko_escapeStyle(loadStyles({
89
- embedded: true
90
- })) +
91
- "</style>");
92
- } else {
93
- var $for$1 = 0;
94
-
95
- marko_forOf(loadStyles(), function(href) {
96
- var $keyScope$1 = "[" + (($for$1++) + "]");
97
-
98
- out.w("<link rel=\"stylesheet\"" +
99
- marko_attr("href", href) +
100
- ">");
101
- });
102
- }
103
-
104
80
  marko_dynamicTag(out, input.head, null, null, null, null, __component, "10");
105
81
 
106
82
  out.w("</head><body>");
@@ -147,8 +123,9 @@ marko_template._ = marko_renderer(render, {
147
123
  });
148
124
 
149
125
  marko_template.meta = {
150
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/document/index.marko",
126
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/document/index.marko",
151
127
  tags: [
128
+ "./components/styles.marko",
152
129
  "@parameter1/base-cms-marko-web-deferred-script-loader/components/init.marko",
153
130
  "@parameter1/base-cms-marko-web-deferred-script-loader/components/register.marko",
154
131
  "./container.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.8.0/components/element/array.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/array.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,
@@ -63,5 +63,5 @@ marko_template._ = marko_renderer(render, {
63
63
  });
64
64
 
65
65
  marko_template.meta = {
66
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/array.marko"
66
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/array.marko"
67
67
  };
@@ -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.8.0/components/element/audio.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/audio.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_attr = require("marko/dist/runtime/html/helpers/attr"),
8
8
  marko_mergeAttrs = require("marko/dist/runtime/html/helpers/merge-attrs");
@@ -29,5 +29,5 @@ marko_template._ = marko_renderer(render, {
29
29
  });
30
30
 
31
31
  marko_template.meta = {
32
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/audio.marko"
32
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/audio.marko"
33
33
  };
@@ -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.8.0/components/element/block.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/block.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,
@@ -40,5 +40,5 @@ marko_template._ = marko_renderer(render, {
40
40
  });
41
41
 
42
42
  marko_template.meta = {
43
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/block.marko"
43
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/block.marko"
44
44
  };
@@ -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.8.0/components/element/clear.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/clear.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_styleAttr = require("marko/dist/runtime/html/helpers/style-attr");
8
8
 
@@ -28,5 +28,5 @@ marko_template._ = marko_renderer(render, {
28
28
  });
29
29
 
30
30
  marko_template.meta = {
31
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/clear.marko"
31
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/clear.marko"
32
32
  };
@@ -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.8.0/components/element/components/image.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/components/image.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,
@@ -58,5 +58,5 @@ marko_template._ = marko_renderer(render, {
58
58
  });
59
59
 
60
60
  marko_template.meta = {
61
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/components/image.marko"
61
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/components/image.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.8.0/components/element/components/text.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/components/text.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_str = require("marko/dist/runtime/helpers/to-string"),
@@ -33,5 +33,5 @@ marko_template._ = marko_renderer(render, {
33
33
  });
34
34
 
35
35
  marko_template.meta = {
36
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/components/text.marko"
36
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/components/text.marko"
37
37
  };
@@ -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.8.0/components/element/content/address1.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/address1.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_extractRender = require("../extract-render"),
8
8
  extractRender = module_extractRender.default || module_extractRender,
@@ -33,7 +33,7 @@ marko_template._ = marko_renderer(render, {
33
33
  });
34
34
 
35
35
  marko_template.meta = {
36
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/address1.marko",
36
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/address1.marko",
37
37
  tags: [
38
38
  "../obj-text.marko"
39
39
  ]
@@ -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.8.0/components/element/content/address2.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/address2.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_extractRender = require("../extract-render"),
8
8
  extractRender = module_extractRender.default || module_extractRender,
@@ -33,7 +33,7 @@ marko_template._ = marko_renderer(render, {
33
33
  });
34
34
 
35
35
  marko_template.meta = {
36
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/address2.marko",
36
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/address2.marko",
37
37
  tags: [
38
38
  "../obj-text.marko"
39
39
  ]
@@ -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.8.0/components/element/content/audio.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/audio.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_extractRender = require("../extract-render"),
8
8
  extractRender = module_extractRender.default || module_extractRender,
@@ -32,7 +32,7 @@ marko_template._ = marko_renderer(render, {
32
32
  });
33
33
 
34
34
  marko_template.meta = {
35
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/audio.marko",
35
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/audio.marko",
36
36
  tags: [
37
37
  "../obj-audio.marko"
38
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.8.0/components/element/content/authors.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/authors.marko",
6
6
  marko_component = require("./authors.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
@@ -35,7 +35,7 @@ marko_template._ = marko_renderer(render, {
35
35
  }, marko_component);
36
36
 
37
37
  marko_template.meta = {
38
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/authors.marko",
38
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/authors.marko",
39
39
  component: "./authors.marko",
40
40
  tags: [
41
41
  "../obj-nodes.marko"
@@ -1,12 +1,14 @@
1
1
  import { get, getAsObject } from "@parameter1/base-cms-object-path";
2
+ import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value";
2
3
  import extractRender from "../extract-render";
3
4
 
4
5
  $ const { parseEmbeddedMedia, res } = out.global;
5
6
 
6
7
  $ const body = get(input.obj, "body");
7
8
  $ const v = body == null ? "" : `${body}`.trim();
8
- $ const embedOptions = getAsObject(input, "embedOptions")
9
- $ const obj = { body: parseEmbeddedMedia(v, res, embedOptions) };
9
+ $ const embedOptions = getAsObject(input, "embedOptions");
10
+ $ const lazyloadFirstImage = defaultValue(input.lazyloadFirstImage, true);
11
+ $ const obj = { body: parseEmbeddedMedia(v, res, embedOptions, lazyloadFirstImage) };
10
12
 
11
13
  <marko-web-obj-text
12
14
  type="content"
@@ -2,12 +2,14 @@
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.8.0/components/element/content/body.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/body.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,
9
9
  get = module_baseCmsObjectPath_module.get,
10
10
  getAsObject = module_baseCmsObjectPath_module.getAsObject,
11
+ module_defaultValue = require("@parameter1/base-cms-marko-core/utils/default-value"),
12
+ defaultValue = module_defaultValue.default || module_defaultValue,
11
13
  module_extractRender = require("../extract-render"),
12
14
  extractRender = module_extractRender.default || module_extractRender,
13
15
  marko_assign = require("marko/dist/runtime/helpers/assign"),
@@ -26,9 +28,11 @@ function render(input, out, __component, component, state) {
26
28
 
27
29
  const v = body == null ? "" : `${body}`.trim();
28
30
 
29
- const embedOptions = getAsObject(input, "embedOptions")
31
+ const embedOptions = getAsObject(input, "embedOptions");
30
32
 
31
- const obj = { body: parseEmbeddedMedia(v, res, embedOptions) };
33
+ const lazyloadFirstImage = defaultValue(input.lazyloadFirstImage, true);
34
+
35
+ const obj = { body: parseEmbeddedMedia(v, res, embedOptions, lazyloadFirstImage) };
32
36
 
33
37
  marko_web_obj_text_tag(marko_assign({
34
38
  type: "content",
@@ -54,7 +58,7 @@ marko_template._ = marko_renderer(render, {
54
58
  });
55
59
 
56
60
  marko_template.meta = {
57
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/body.marko",
61
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/body.marko",
58
62
  tags: [
59
63
  "../obj-text.marko",
60
64
  "../clear.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.8.0/components/element/content/byline.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/byline.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_extractRender = require("../extract-render"),
8
8
  extractRender = module_extractRender.default || module_extractRender,
@@ -34,7 +34,7 @@ marko_template._ = marko_renderer(render, {
34
34
  });
35
35
 
36
36
  marko_template.meta = {
37
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/byline.marko",
37
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/byline.marko",
38
38
  tags: [
39
39
  "../obj-text.marko"
40
40
  ]
@@ -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.8.0/components/element/content/city-state-zip.marko",
5
+ marko_componentType = "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/city-state-zip.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  module_extractRender = require("../extract-render"),
8
8
  extractRender = module_extractRender.default || module_extractRender,
@@ -33,7 +33,7 @@ marko_template._ = marko_renderer(render, {
33
33
  });
34
34
 
35
35
  marko_template.meta = {
36
- id: "/@parameter1/base-cms-marko-web$4.8.0/components/element/content/city-state-zip.marko",
36
+ id: "/@parameter1/base-cms-marko-web$4.10.0/components/element/content/city-state-zip.marko",
37
37
  tags: [
38
38
  "../obj-text.marko"
39
39
  ]