Skip to content

Commit

Permalink
Merge branch 'master' into allow-crawling
Browse files Browse the repository at this point in the history
  • Loading branch information
jwade1327 authored Sep 29, 2023
2 parents d9b4b29 + 3ceb560 commit ab164ca
Show file tree
Hide file tree
Showing 19 changed files with 202 additions and 181 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.12.5",
"version": "3.13.1",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
20 changes: 20 additions & 0 deletions packages/global/components/document.marko
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import createOmedaIdentityBuilder from "@parameter1/base-cms-marko-web-p1-events/utils/create-omeda-identity-builder";
import { defaultValue } from "@parameter1/base-cms-marko-web/utils";
import { getAsObject } from "@parameter1/base-cms-object-path";
import getCookieId from "@parameter1/base-cms-marko-web-omeda-identity-x/utils/get-cookie-id";

$ const {
site,
Expand All @@ -11,6 +12,8 @@ $ const {
omedaConfig
} = out.global;

$ const { cookies } = req;

$ const gamDefer = defaultValue(req.query.gamDefer, "ready");
$ const gtmDefer = defaultValue(req.query.gtmDefer, "load");
$ const olyticsDefer = defaultValue(req.query.olyticsDefer, "load");
Expand Down Expand Up @@ -72,6 +75,23 @@ $ const buttonLabels = { continue: continueLabel };

<${input.head} />

<marko-web-identity-x-context|{ hasUser, user }|>
<if(hasUser && user.id)>
<marko-web-gtm-push data={ user_id: user.id } />
</if>
</marko-web-identity-x-context>

<!-- Send Encrypted Omeda Id to GTM -->
$ const olyEncId = cookies.oly_enc_id ? getCookieId(cookies.oly_enc_id, 'enc') : undefined;
<if(olyEncId)>
<marko-web-gtm-push data={ oly_enc_id: olyEncId } />
</if>
<!-- Send Anonomouse Omeda Id to GTM -->
$ const olyAnonId = cookies.oly_anon_id ? getCookieId(cookies.oly_anon_id, 'anon') : undefined;
<if(olyAnonId)>
<marko-web-gtm-push data={ oly_anon_id: olyAnonId } />
</if>

<!-- start gtm -->
<marko-web-gtm-start />

Expand Down
6 changes: 3 additions & 3 deletions packages/global/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');

module.exports = ({
uri = 'https://pmmi.native-x.parameter1.com',
enabled = false,
} = {}) => new NativeXConfiguration(uri, { enabled });
uri = 'https://delivery.mindfulcms.com/pmmi/default/compat/native-website',
enabled = true,
} = {}) => new NativeXConfiguration(uri, { enabled, tenantKey: 'pmmi' });
30 changes: 15 additions & 15 deletions packages/global/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/package-global",
"version": "3.12.1",
"version": "3.13.1",
"author": "Brian Miller <[email protected]>",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/packages/global",
"license": "MIT",
Expand All @@ -16,29 +16,29 @@
"@parameter1/base-cms-dayjs": "^4.5.12",
"@parameter1/base-cms-image": "^4.6.0",
"@parameter1/base-cms-inflector": "^4.5.12",
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.5.12",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-html-sitemap": "^4.5.12",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-web-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-inquiry": "^4.5.12",
"@parameter1/base-cms-marko-web-native-x": "^4.26.0",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-inquiry": "^4.27.0",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-omeda": "^4.23.1",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.25.1",
"@parameter1/base-cms-marko-web-search": "^4.26.0",
"@parameter1/base-cms-marko-web-social-sharing": "^4.11.1",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.26.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.17.1",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.37.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-search": "^4.36.8",
"@parameter1/base-cms-marko-web-social-sharing": "^4.36.8",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
"@parameter1/base-cms-web-common": "^4.5.12",
"@parameter1/base-cms-web-common": "^4.36.0",
"@parameter1/omeda-graphql-client-express": "^0.4.2",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.10.0",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.13.0",
"body-parser": "^1.19.0",
"cheerio": "^1.0.0-rc.10",
"express": "^4.17.1",
Expand Down
1 change: 1 addition & 0 deletions packages/global/templates/content/native-x-story.marko
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $ const { primarySection } = content;
<theme-default-page title=story.title description=story.teaser>
<@head>
<marko-web-native-x-gtm-init />
<marko-web-p1-events-track-native-story story=story />
</@head>
<@page>
<marko-web-native-x-story-track-init story=story />
Expand Down
10 changes: 5 additions & 5 deletions packages/theme-monorail-leaders/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/package-theme-monorail-leaders",
"version": "3.10.0",
"version": "3.13.0",
"description": "Marko Wrapper & Components for the Leaders Program",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/packages/theme-monorail-leaders",
"author": "Brian Miller<[email protected]>",
Expand All @@ -14,12 +14,12 @@
"test": "yarn lint && yarn compile --no-clean"
},
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-common": "^4.5.12",
"@parameter1/base-cms-web-common": "^4.36.0",
"graphql": "^14.7.0",
"graphql-tag": "^2.12.5",
"object-path": "^0.11.8",
Expand Down
4 changes: 2 additions & 2 deletions sites/cpgnext.com/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');
const configureNativeX = require('@pmmi-media-group/package-global/config/native-x');

const config = new NativeXConfiguration('https://pmmi.native-x.parameter1.com');
const config = configureNativeX();

config
.setAliasPlacements('default', [
Expand Down
24 changes: 12 additions & 12 deletions sites/cpgnext.com/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/cpgnext.com",
"version": "3.12.5",
"version": "3.13.1",
"author": "Jessica Stenzel <[email protected]>",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/sites/cpgnext.com",
"license": "MIT",
Expand Down Expand Up @@ -31,24 +31,24 @@
"win32"
],
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-web-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-leaders": "^4.16.2",
"@parameter1/base-cms-marko-web-native-x": "^4.26.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.25.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.26.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.17.1",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
"@pmmi-media-group/package-global": "^3.12.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.10.0",
"@pmmi-media-group/package-global": "^3.13.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.13.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
4 changes: 2 additions & 2 deletions sites/healthcarepackaging.com/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');
const configureNativeX = require('@pmmi-media-group/package-global/config/native-x');

const config = new NativeXConfiguration('https://pmmi.native-x.parameter1.com');
const config = configureNativeX();

config
.setAliasPlacements('default', [
Expand Down
24 changes: 12 additions & 12 deletions sites/healthcarepackaging.com/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/healthcarepackaging.com",
"version": "3.12.5",
"version": "3.13.1",
"author": "Brian Miller <[email protected]>",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/sites/healthcarepackaging.com",
"license": "MIT",
Expand Down Expand Up @@ -31,24 +31,24 @@
"win32"
],
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-web-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-leaders": "^4.16.2",
"@parameter1/base-cms-marko-web-native-x": "^4.26.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.25.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.26.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.17.1",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
"@pmmi-media-group/package-global": "^3.12.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.10.0",
"@pmmi-media-group/package-global": "^3.13.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.13.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
4 changes: 2 additions & 2 deletions sites/mundopmmi.com/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');
const configureNativeX = require('@pmmi-media-group/package-global/config/native-x');

const config = new NativeXConfiguration('https://pmmi.native-x.parameter1.com');
const config = configureNativeX();

config
.setAliasPlacements('default', [
Expand Down
24 changes: 12 additions & 12 deletions sites/mundopmmi.com/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/mundopmmi.com",
"version": "3.12.1",
"version": "3.13.1",
"author": "Brandon Krigbaum <[email protected]>",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/sites/mundopmmi.com",
"license": "MIT",
Expand Down Expand Up @@ -31,24 +31,24 @@
"win32"
],
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-web-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-leaders": "^4.16.2",
"@parameter1/base-cms-marko-web-native-x": "^4.26.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.25.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.26.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.17.1",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
"@pmmi-media-group/package-global": "^3.12.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.10.0",
"@pmmi-media-group/package-global": "^3.13.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.13.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
4 changes: 2 additions & 2 deletions sites/oemmagazine.org/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');
const configureNativeX = require('@pmmi-media-group/package-global/config/native-x');

const config = new NativeXConfiguration('https://pmmi.native-x.parameter1.com');
const config = configureNativeX();

config
.setAliasPlacements('default', [
Expand Down
24 changes: 12 additions & 12 deletions sites/oemmagazine.org/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmmi-media-group/oemmagazine.org",
"version": "3.12.5",
"version": "3.13.1",
"author": "Brian Miller <[email protected]>",
"repository": "https://github.com/parameter1/pmmi-media-group-websites/tree/master/sites/oemmagazine.org",
"license": "MIT",
Expand Down Expand Up @@ -31,24 +31,24 @@
"win32"
],
"dependencies": {
"@parameter1/base-cms-marko-core": "^4.9.0",
"@parameter1/base-cms-marko-web": "^4.22.3",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-icons": "^4.16.2",
"@parameter1/base-cms-marko-web-identity-x": "^4.24.0",
"@parameter1/base-cms-marko-web-leaders": "^4.16.2",
"@parameter1/base-cms-marko-web-native-x": "^4.26.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.25.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.26.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.17.1",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
"@pmmi-media-group/package-global": "^3.12.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.10.0",
"@pmmi-media-group/package-global": "^3.13.1",
"@pmmi-media-group/package-theme-monorail-leaders": "^3.13.0",
"graphql": "^14.5.4",
"graphql-tag": "^2.10.1"
}
Expand Down
4 changes: 2 additions & 2 deletions sites/packworld.com/config/native-x.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const NativeXConfiguration = require('@parameter1/base-cms-marko-web-native-x/config');
const configureNativeX = require('@pmmi-media-group/package-global/config/native-x');

const config = new NativeXConfiguration('https://pmmi.native-x.parameter1.com');
const config = configureNativeX();

config
.setAliasPlacements('default', [
Expand Down
Loading

0 comments on commit ab164ca

Please sign in to comment.