@mindful-web/marko-web-theme-monorail 1.99.0 → 1.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ads/fixed-ad-bottom.marko.js +2 -2
- package/components/ads/reveal-ad-handler.marko.js +2 -2
- package/components/blocks/author-bios.marko.js +2 -2
- package/components/blocks/callout-cards.marko.js +2 -2
- package/components/blocks/company-inquiry-form.marko.js +2 -2
- package/components/blocks/company-search.marko.js +2 -2
- package/components/blocks/content-card-deck.marko.js +2 -2
- package/components/blocks/content-meter.marko.js +2 -2
- package/components/blocks/full-width-native-ad.marko.js +2 -2
- package/components/blocks/geo-summary.marko.js +2 -2
- package/components/blocks/header-announcement.marko.js +2 -2
- package/components/blocks/hero-card.marko.js +2 -2
- package/components/blocks/latest-content-list.marko.js +2 -2
- package/components/blocks/latest-podcast.marko.js +2 -2
- package/components/blocks/latest-products-feed.marko.js +2 -2
- package/components/blocks/more-products.marko.js +2 -2
- package/components/blocks/most-popular-list.marko.js +2 -2
- package/components/blocks/most-popular.marko.js +2 -2
- package/components/blocks/native-x-card-deck.marko.js +2 -2
- package/components/blocks/native-x-promo-card.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner-external.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner-large.marko.js +2 -2
- package/components/blocks/newsletter-signup-banner.marko.js +2 -2
- package/components/blocks/opinion.marko.js +2 -2
- package/components/blocks/primary-image.marko.js +2 -2
- package/components/blocks/products.marko.js +2 -2
- package/components/blocks/read-next.marko.js +2 -2
- package/components/blocks/related-stories.marko.js +2 -2
- package/components/blocks/resource-library.marko.js +2 -2
- package/components/blocks/section-body-feed.marko.js +2 -2
- package/components/blocks/section-card-deck-featured.marko.js +2 -2
- package/components/blocks/section-card-deck.marko.js +2 -2
- package/components/blocks/section-card-list.marko.js +2 -2
- package/components/blocks/section-feed.marko.js +2 -2
- package/components/blocks/section-forbes.marko.js +2 -2
- package/components/blocks/section-list-deck.marko.js +2 -2
- package/components/blocks/section-list.marko.js +2 -2
- package/components/blocks/section-search.marko.js +2 -2
- package/components/blocks/section-title-feed.marko.js +2 -2
- package/components/blocks/top-stories-menu.marko.js +2 -2
- package/components/blocks/top-stories.marko.js +2 -2
- package/components/blocks/white-papers.marko.js +2 -2
- package/components/breadcrumbs/content-page.marko.js +2 -2
- package/components/breadcrumbs/index.marko.js +2 -2
- package/components/breadcrumbs/website-section.marko.js +2 -2
- package/components/breadcrumbs/with-home.marko.js +2 -2
- package/components/client-side-block-loader.marko.js +2 -2
- package/components/client-side-blocks/most-popular-list.marko.js +2 -2
- package/components/client-side-blocks/most-popular.marko.js +2 -2
- package/components/content/body-with-injection.marko.js +2 -2
- package/components/content/contact-details/index.marko.js +2 -2
- package/components/content/contact-details/section.marko.js +2 -2
- package/components/content/download/form-dot-com.marko.js +2 -2
- package/components/content/download/identity-x.marko.js +2 -2
- package/components/content/download/index.marko.js +2 -2
- package/components/content/download/link.marko.js +2 -2
- package/components/content/download/wufoo.marko.js +2 -2
- package/components/content/link-url/index.marko.js +2 -2
- package/components/content/sections-listed-in.marko.js +2 -2
- package/components/content-attribution/attribution.marko.js +2 -2
- package/components/content-attribution/components/authors.marko.js +2 -2
- package/components/content-attribution/components/byline.marko.js +2 -2
- package/components/content-attribution/components/company.marko.js +2 -2
- package/components/content-attribution/components/contributors.marko.js +2 -2
- package/components/content-attribution/components/photographers.marko.js +2 -2
- package/components/content-attribution/components/source.marko.js +2 -2
- package/components/content-attribution/components/speakers.marko.js +2 -2
- package/components/content-attribution/components/sponsors.marko.js +2 -2
- package/components/content-attribution/index.marko.js +2 -2
- package/components/directory-facets/facet-container/facet-container.marko.js +2 -2
- package/components/directory-facets/facet-list/facet-list.marko.js +2 -2
- package/components/directory-facets/facet.marko.js +2 -2
- package/components/directory-facets/index.marko.js +2 -2
- package/components/facebook-connect.marko.js +2 -2
- package/components/flows/card-deck.marko.js +2 -2
- package/components/flows/content/card-deck-col.marko.js +2 -2
- package/components/flows/content/directory-section.marko.js +2 -2
- package/components/flows/content/list.marko.js +2 -2
- package/components/flows/section-feed.marko.js +2 -2
- package/components/gam/components/define-display-ad.marko.js +2 -2
- package/components/gam/define-display-ad.marko.js +2 -2
- package/components/gam/inject-ads.marko.js +2 -2
- package/components/gam/wallpaper-ad.marko.js +2 -2
- package/components/google-preferred-source/index.marko.js +2 -2
- package/components/google-preferred-source/init.marko.js +2 -2
- package/components/identity-x/comment-stream.marko.js +2 -2
- package/components/identity-x/content-page-gate.marko.js +2 -2
- package/components/identity-x/newsletter-footer.marko.js +2 -2
- package/components/identity-x/newsletter-inline.marko.js +2 -2
- package/components/identity-x/newsletter-modal.marko.js +2 -2
- package/components/identity-x/newsletter-pushdown.marko.js +2 -2
- package/components/identity-x/progressive-profile-gate.marko.js +2 -2
- package/components/layouts/ad-preview.marko.js +2 -2
- package/components/menu-toggle-button.marko.js +2 -2
- package/components/native-x/render.marko.js +2 -2
- package/components/nodes/author-bio.marko.js +2 -2
- package/components/nodes/author-card.marko.js +2 -2
- package/components/nodes/author-published.marko.js +2 -2
- package/components/nodes/author.marko.js +2 -2
- package/components/nodes/components/attribution.marko.js +2 -2
- package/components/nodes/components/authors.marko.js +2 -2
- package/components/nodes/components/company-name.marko.js +2 -2
- package/components/nodes/components/dates.marko.js +2 -2
- package/components/nodes/components/section-sponsor.marko.js +2 -2
- package/components/nodes/content-published.marko.js +2 -2
- package/components/nodes/content.marko.js +2 -2
- package/components/nodes/directory-section-feed-content.marko.js +2 -2
- package/components/nodes/featured-products-card.marko.js +2 -2
- package/components/nodes/product-feed-content.marko.js +2 -2
- package/components/nodes/section-feed-content.marko.js +2 -2
- package/components/nodes/standard-promo.marko.js +2 -2
- package/components/nodes/youtube-card.marko.js +2 -2
- package/components/page/attribution.marko.js +2 -2
- package/components/page/contact-details.marko.js +2 -2
- package/components/page/content.marko.js +2 -2
- package/components/page/contents.marko.js +2 -2
- package/components/page/dates.marko.js +2 -2
- package/components/page/default.marko.js +2 -2
- package/components/page/website-section.marko.js +2 -2
- package/components/pagination-controls.marko.js +2 -2
- package/components/query-total-count.marko.js +2 -2
- package/components/reveal-ad-handler.marko.js +2 -2
- package/components/site-footer/container.marko.js +2 -2
- package/components/site-footer/copyright.marko.js +2 -2
- package/components/site-footer/index.marko.js +2 -2
- package/components/site-footer/social-icons.marko.js +2 -2
- package/components/site-header.marko.js +2 -2
- package/components/site-menu/components/search.marko.js +2 -2
- package/components/site-menu/components/social-icons.marko.js +2 -2
- package/components/site-menu/header.marko.js +2 -2
- package/components/site-menu/index.marko.js +2 -2
- package/components/site-menu/section.marko.js +2 -2
- package/components/site-navbar/brand.marko.js +2 -2
- package/components/site-navbar/index.marko.js +2 -2
- package/components/site-navbar/item.marko.js +2 -2
- package/components/site-navbar/items.marko.js +2 -2
- package/components/site-navbar/logo.marko.js +2 -2
- package/components/site-navbar/search.marko.js +2 -2
- package/components/site-newsletter-menu.marko.js +2 -2
- package/components/social/icon-link.marko.js +2 -2
- package/components/social/icons.marko.js +2 -2
- package/components/social-follow.marko.js +2 -2
- package/components/sponsored-label-logo.marko.js +2 -2
- package/components/sponsored-section-logo.marko.js +2 -2
- package/components/sponsored-section-name-logo.marko.js +2 -2
- package/components/ssr-html-inject.marko.js +2 -2
- package/middleware/progressive-profiling.js +35 -7
- package/package.json +2 -2
- package/templates/ad-preview.marko.js +2 -2
- package/templates/content/components/presented-by.marko.js +2 -2
- package/templates/content/native-x-story.marko.js +2 -2
- package/templates/content/print.marko.js +2 -2
- package/templates/email-preview.marko.js +2 -2
- package/templates/search.marko.js +2 -2
- package/templates/taxonomy.marko.js +2 -2
- package/test/middleware/progressive-profiling.spec.js +27 -1
|
@@ -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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/components/social-icons.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
theme_social_follow_template = require("../../social-follow.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -25,7 +25,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
marko_template.meta = {
|
|
28
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
28
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/components/social-icons.marko",
|
|
29
29
|
tags: [
|
|
30
30
|
"../../social-follow.marko"
|
|
31
31
|
]
|
|
@@ -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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/header.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"),
|
|
@@ -31,7 +31,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
marko_template.meta = {
|
|
34
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
34
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/header.marko",
|
|
35
35
|
tags: [
|
|
36
36
|
"@mindful-web/marko-web/components/element/index.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 = "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/index.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,
|
|
@@ -189,7 +189,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
marko_template.meta = {
|
|
192
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
192
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/site-menu/index.marko",
|
|
193
193
|
tags: [
|
|
194
194
|
"./components/search.marko",
|
|
195
195
|
"./section.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
61
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
39
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
44
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
178
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
76
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
40
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
67
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
33
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
58
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
57
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
89
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/social-follow.marko",
|
|
90
90
|
tags: [
|
|
91
91
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
92
92
|
"./social/icon-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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-label-logo.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -78,7 +78,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
marko_template.meta = {
|
|
81
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
81
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-label-logo.marko",
|
|
82
82
|
tags: [
|
|
83
83
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
84
84
|
"@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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-section-logo.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -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.99.
|
|
76
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-section-logo.marko",
|
|
77
77
|
tags: [
|
|
78
78
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
79
79
|
"@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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-section-name-logo.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
8
8
|
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
marko_template.meta = {
|
|
73
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
73
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/sponsored-section-name-logo.marko",
|
|
74
74
|
tags: [
|
|
75
75
|
"@mindful-web/marko-web/components/element/img.marko",
|
|
76
76
|
"@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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
132
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/components/ssr-html-inject.marko"
|
|
133
133
|
};
|
|
@@ -107,6 +107,19 @@ const contentBlockReason = ({ req, content, config }) => {
|
|
|
107
107
|
return null;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* The `contentMeterState` the meter sets for a signed-in visitor who still owes registration
|
|
112
|
+
* input (`middleware/content-metering.js`, "Fall back to inline gate form"). Kept in step with
|
|
113
|
+
* it: the layouts read this shape through `utils/content-meter-helpers.js`.
|
|
114
|
+
*/
|
|
115
|
+
const profileFormFallbackState = (existing) => ({
|
|
116
|
+
...existing,
|
|
117
|
+
isLoggedIn: true,
|
|
118
|
+
requiresUserInput: true,
|
|
119
|
+
displayGate: false,
|
|
120
|
+
displayOverlay: true,
|
|
121
|
+
});
|
|
122
|
+
|
|
110
123
|
/**
|
|
111
124
|
* Detects an identified or authenticated visitor with unanswered progressive-profile fields and
|
|
112
125
|
* claims the request for the gate by setting `res.locals.progressiveProfileState`.
|
|
@@ -194,13 +207,14 @@ module.exports = (params = {}) => {
|
|
|
194
207
|
// The reg gate owns an authenticated visitor who still owes *registration* input —
|
|
195
208
|
// required server fields, `mustReVerifyProfile`, required custom fields, consent policies.
|
|
196
209
|
// Claiming them here produced a two-gate sequence in testing: submit the progressive form,
|
|
197
|
-
// reload, land on the full profile gate anyway.
|
|
198
|
-
// `isLoggedIn && requiresUserInput` path render the profile form FIRST;
|
|
199
|
-
// is complete this diff picks up whatever is still missing. The layout
|
|
200
|
-
// precedence itself: when this middleware claims, the meter stands down
|
|
201
|
-
// `<marko-web-identity-x-access>` wrapper is disabled, so `context.requiresUserInput`
|
|
202
|
-
// never populated there. Identified (non-authenticated) visitors are not checked — they
|
|
210
|
+
// reload, land on the full profile gate anyway. Deferring (see the fallback state below)
|
|
211
|
+
// lets the layout's `isLoggedIn && requiresUserInput` path render the profile form FIRST;
|
|
212
|
+
// once registration is complete this diff picks up whatever is still missing. The layout
|
|
213
|
+
// cannot enforce this precedence itself: when this middleware claims, the meter stands down
|
|
214
|
+
// and the `<marko-web-identity-x-access>` wrapper is disabled, so `context.requiresUserInput`
|
|
215
|
+
// is never populated there. Identified (non-authenticated) visitors are not checked — they
|
|
203
216
|
// have no session, and `requiresUserInput` reports on the active session only.
|
|
217
|
+
let requiresUserInput = false;
|
|
204
218
|
if (audience === 'authenticated') {
|
|
205
219
|
try {
|
|
206
220
|
const access = await identityX.checkContentAccess({
|
|
@@ -208,7 +222,7 @@ module.exports = (params = {}) => {
|
|
|
208
222
|
requiredAccessLevelIds: [],
|
|
209
223
|
});
|
|
210
224
|
debug({ requiresUserInput: access.requiresUserInput });
|
|
211
|
-
|
|
225
|
+
requiresUserInput = Boolean(access.requiresUserInput);
|
|
212
226
|
} catch (e) {
|
|
213
227
|
error('Progressive profiling failed to check content access; releasing the content.', e);
|
|
214
228
|
return next();
|
|
@@ -220,6 +234,19 @@ module.exports = (params = {}) => {
|
|
|
220
234
|
debug({ contentId: content && content.id, blockReason });
|
|
221
235
|
if (blockReason) return next();
|
|
222
236
|
|
|
237
|
+
// Defer to the profile form. Standing down alone relied on the meter to render it, so on a
|
|
238
|
+
// site with the meter off the visitor got neither gate and never completed registration —
|
|
239
|
+
// and so never reached this one. Set the meter's own "logged in, owes input" fallback state
|
|
240
|
+
// instead: existing layouts already route it to the inline profile form (it enables the
|
|
241
|
+
// `<marko-web-identity-x-access>` wrapper via `restrictContentByReg`, without overlay or
|
|
242
|
+
// truncation). When the meter is also enabled it writes this identical state, so metered
|
|
243
|
+
// sites are unchanged. Set only after the content checks, so excluded and reg-gated pages
|
|
244
|
+
// are never handed a profile form; no attempt is counted, as this is not a progressive render.
|
|
245
|
+
if (requiresUserInput) {
|
|
246
|
+
res.locals.contentMeterState = profileFormFallbackState(res.locals.contentMeterState);
|
|
247
|
+
return next();
|
|
248
|
+
}
|
|
249
|
+
|
|
223
250
|
// Claim the request. The render counts against the escape valve whether or not the visitor
|
|
224
251
|
// engages; the write route clears the counter on any successful submit.
|
|
225
252
|
incrementAttempts(req, res);
|
|
@@ -244,3 +271,4 @@ module.exports = (params = {}) => {
|
|
|
244
271
|
|
|
245
272
|
// Exposed for tests.
|
|
246
273
|
module.exports.contentBlockReason = contentBlockReason;
|
|
274
|
+
module.exports.profileFormFallbackState = profileFormFallbackState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-web-theme-monorail",
|
|
3
|
-
"version": "1.99.
|
|
3
|
+
"version": "1.99.1",
|
|
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",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "8e949097a60f42cbc69a9ae153ea9762cac020be"
|
|
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 = "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/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.99.
|
|
142
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/ad-preview.marko",
|
|
143
143
|
component: "./ad-preview.marko",
|
|
144
144
|
tags: [
|
|
145
145
|
"../components/flows/section-feed.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/components/presented-by.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_image_module = require("@mindful-web/image"),
|
|
8
8
|
image_module = module_image_module.default || module_image_module,
|
|
@@ -67,7 +67,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
marko_template.meta = {
|
|
70
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
70
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/components/presented-by.marko",
|
|
71
71
|
tags: [
|
|
72
72
|
"@mindful-web/marko-web/components/element/index.marko",
|
|
73
73
|
"@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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/native-x-story.marko",
|
|
6
6
|
marko_component = require("./native-x-story.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_convert = require("@mindful-web/marko-web-native-x/utils/convert-story-to-content"),
|
|
@@ -223,7 +223,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
223
223
|
}, marko_component);
|
|
224
224
|
|
|
225
225
|
marko_template.meta = {
|
|
226
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
226
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/native-x-story.marko",
|
|
227
227
|
component: "./native-x-story.marko",
|
|
228
228
|
tags: [
|
|
229
229
|
"@mindful-web/marko-web-native-x/components/gtm-init.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/print.marko",
|
|
6
6
|
marko_component = require("./print.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -402,7 +402,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
402
402
|
}, marko_component);
|
|
403
403
|
|
|
404
404
|
marko_template.meta = {
|
|
405
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
405
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/content/print.marko",
|
|
406
406
|
component: "./print.marko",
|
|
407
407
|
tags: [
|
|
408
408
|
"@mindful-web/marko-web/components/page/metadata/content.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/email-preview.marko",
|
|
6
6
|
marko_component = require("./email-preview.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
marko_web_gtm_push_template = require("@mindful-web/marko-web-gtm/components/push.marko"),
|
|
@@ -86,7 +86,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
86
86
|
}, marko_component);
|
|
87
87
|
|
|
88
88
|
marko_template.meta = {
|
|
89
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
89
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/email-preview.marko",
|
|
90
90
|
component: "./email-preview.marko",
|
|
91
91
|
tags: [
|
|
92
92
|
"@mindful-web/marko-web-gtm/components/push.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/search.marko",
|
|
6
6
|
marko_component = require("./search.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_queryFragment = require("../graphql/fragments/section-feed-block"),
|
|
@@ -301,7 +301,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
301
301
|
}, marko_component);
|
|
302
302
|
|
|
303
303
|
marko_template.meta = {
|
|
304
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
304
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/search.marko",
|
|
305
305
|
component: "./search.marko",
|
|
306
306
|
tags: [
|
|
307
307
|
"@mindful-web/marko-web-p1-events/components/track-search.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.99.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/taxonomy.marko",
|
|
6
6
|
marko_component = require("./taxonomy.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_hierarchyAliases = require("@mindful-web/marko-web/utils/hierarchy-aliases"),
|
|
@@ -174,7 +174,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
174
174
|
}, marko_component);
|
|
175
175
|
|
|
176
176
|
marko_template.meta = {
|
|
177
|
-
id: "/@mindful-web/marko-web-theme-monorail$1.99.
|
|
177
|
+
id: "/@mindful-web/marko-web-theme-monorail$1.99.1/templates/taxonomy.marko",
|
|
178
178
|
component: "./taxonomy.marko",
|
|
179
179
|
tags: [
|
|
180
180
|
"../components/gam/define-display-ad.marko",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { describe, it } = require('mocha');
|
|
2
2
|
const { expect } = require('chai');
|
|
3
|
-
const { contentBlockReason } = require('../../middleware/progressive-profiling');
|
|
3
|
+
const { contentBlockReason, profileFormFallbackState } = require('../../middleware/progressive-profiling');
|
|
4
|
+
const { restrictContentByReg, shouldOverlay, shouldTruncate } = require('../../utils/content-meter-helpers');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The shape every non-Omeda ESP integration installs on `app.locals` (marko-web-postup,
|
|
@@ -65,3 +66,28 @@ describe('middleware/progressive-profiling contentBlockReason', () => {
|
|
|
65
66
|
expect(contentBlockReason({ req: makeReq(), content: article(), config: {} })).to.equal(null);
|
|
66
67
|
});
|
|
67
68
|
});
|
|
69
|
+
|
|
70
|
+
describe('middleware/progressive-profiling profileFormFallbackState', () => {
|
|
71
|
+
const notRegGated = () => false;
|
|
72
|
+
|
|
73
|
+
it('routes a meter-less page to the inline profile form', () => {
|
|
74
|
+
const state = profileFormFallbackState(undefined);
|
|
75
|
+
// Enables the `<marko-web-identity-x-access>` wrapper, so `requiresUserInput` is populated...
|
|
76
|
+
expect(restrictContentByReg(state, notRegGated, article())).to.equal(true);
|
|
77
|
+
// ...without the meter's overlay (ads stay) or its truncation branch.
|
|
78
|
+
expect(shouldOverlay(state)).to.equal(false);
|
|
79
|
+
expect(shouldTruncate(state)).to.equal(false);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('matches the state the meter sets for a signed-in visitor owing input', () => {
|
|
83
|
+
const meterConfig = { enabled: true, viewLimit: 3 };
|
|
84
|
+
const meterState = {
|
|
85
|
+
...meterConfig,
|
|
86
|
+
isLoggedIn: true,
|
|
87
|
+
requiresUserInput: true,
|
|
88
|
+
displayGate: false,
|
|
89
|
+
displayOverlay: true,
|
|
90
|
+
};
|
|
91
|
+
expect(profileFormFallbackState(meterConfig)).to.deep.equal(meterState);
|
|
92
|
+
});
|
|
93
|
+
});
|