@mindful-web/marko-web-gtm 1.11.9 → 1.55.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.
@@ -1,8 +1,11 @@
1
1
  import gql from "graphql-tag";
2
2
  import { isFunction, warn } from "@mindful-web/utils";
3
+ import { get } from "@mindful-web/object-path";
3
4
  import { contentBuilder } from "../../context";
4
5
 
5
- $ const { req } = out.global;
6
+ $ const { site, req } = out.global;
7
+ $ const namespace = get(site, 'config.mindful.namespace') || '';
8
+
6
9
  $ const { id } = input;
7
10
  $ const builder = isFunction(input.builder) ? input.builder : contentBuilder;
8
11
 
@@ -16,16 +19,17 @@ fragment ContentContextFragment on Content {
16
19
  path
17
20
  }
18
21
  published
19
- createdBy {
20
- id
21
- username
22
- firstName
23
- lastName
24
- }
25
22
  company {
26
23
  id
27
24
  name
28
25
  }
26
+ createdBy(input: {
27
+ namespace: "${namespace}"
28
+ }) {
29
+ id
30
+ firstName
31
+ lastName
32
+ }
29
33
  primarySection {
30
34
  id
31
35
  name
@@ -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-gtm$1.11.9/components/context/content.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/content.marko",
6
6
  marko_component = require("./content.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -11,6 +11,9 @@ var marko_template = module.exports = require("marko/dist/html").t(__filename),
11
11
  utils_module = module_utils_module.default || module_utils_module,
12
12
  isFunction = module_utils_module.isFunction,
13
13
  warn = module_utils_module.warn,
14
+ module_objectPath_module = require("@mindful-web/object-path"),
15
+ objectPath_module = module_objectPath_module.default || module_objectPath_module,
16
+ get = module_objectPath_module.get,
14
17
  module_context_module = require("../../context"),
15
18
  context_module = module_context_module.default || module_context_module,
16
19
  contentBuilder = module_context_module.contentBuilder,
@@ -22,7 +25,9 @@ var marko_template = module.exports = require("marko/dist/html").t(__filename),
22
25
  function render(input, out, __component, component, state) {
23
26
  var data = input;
24
27
 
25
- const { req } = out.global;
28
+ const { site, req } = out.global;
29
+
30
+ const namespace = get(site, 'config.mindful.namespace') || '';
26
31
 
27
32
  const { id } = input;
28
33
 
@@ -38,16 +43,17 @@ fragment ContentContextFragment on Content {
38
43
  path
39
44
  }
40
45
  published
41
- createdBy {
42
- id
43
- username
44
- firstName
45
- lastName
46
- }
47
46
  company {
48
47
  id
49
48
  name
50
49
  }
50
+ createdBy(input: {
51
+ namespace: "${namespace}"
52
+ }) {
53
+ id
54
+ firstName
55
+ lastName
56
+ }
51
57
  primarySection {
52
58
  id
53
59
  name
@@ -136,7 +142,7 @@ marko_template._ = marko_renderer(render, {
136
142
  }, marko_component);
137
143
 
138
144
  marko_template.meta = {
139
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/content.marko",
145
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/content.marko",
140
146
  component: "./content.marko",
141
147
  tags: [
142
148
  "@mindful-web/marko-core/components/queries/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-gtm$1.11.9/components/context/default.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/default.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,
@@ -37,5 +37,5 @@ marko_template._ = marko_renderer(render, {
37
37
  });
38
38
 
39
39
  marko_template.meta = {
40
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/default.marko"
40
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/default.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-gtm$1.11.9/components/context/dynamic-page.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/dynamic-page.marko",
6
6
  marko_component = require("./dynamic-page.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -67,7 +67,7 @@ marko_template._ = marko_renderer(render, {
67
67
  }, marko_component);
68
68
 
69
69
  marko_template.meta = {
70
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/dynamic-page.marko",
70
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/dynamic-page.marko",
71
71
  component: "./dynamic-page.marko",
72
72
  tags: [
73
73
  "@mindful-web/marko-core/components/queries/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-gtm$1.11.9/components/context/magazine-issue.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/magazine-issue.marko",
6
6
  marko_component = require("./magazine-issue.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -69,7 +69,7 @@ marko_template._ = marko_renderer(render, {
69
69
  }, marko_component);
70
70
 
71
71
  marko_template.meta = {
72
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/magazine-issue.marko",
72
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/magazine-issue.marko",
73
73
  component: "./magazine-issue.marko",
74
74
  tags: [
75
75
  "@mindful-web/marko-core/components/queries/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-gtm$1.11.9/components/context/magazine-publication.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/magazine-publication.marko",
6
6
  marko_component = require("./magazine-publication.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -64,7 +64,7 @@ marko_template._ = marko_renderer(render, {
64
64
  }, marko_component);
65
65
 
66
66
  marko_template.meta = {
67
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/magazine-publication.marko",
67
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/magazine-publication.marko",
68
68
  component: "./magazine-publication.marko",
69
69
  tags: [
70
70
  "@mindful-web/marko-core/components/queries/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-gtm$1.11.9/components/context/native-x-story.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/native-x-story.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,
@@ -37,5 +37,5 @@ marko_template._ = marko_renderer(render, {
37
37
  });
38
38
 
39
39
  marko_template.meta = {
40
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/native-x-story.marko"
40
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/native-x-story.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-gtm$1.11.9/components/context/website-section.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/context/website-section.marko",
6
6
  marko_component = require("./website-section.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_gql = require("graphql-tag"),
@@ -71,7 +71,7 @@ marko_template._ = marko_renderer(render, {
71
71
  }, marko_component);
72
72
 
73
73
  marko_template.meta = {
74
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/context/website-section.marko",
74
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/context/website-section.marko",
75
75
  component: "./website-section.marko",
76
76
  tags: [
77
77
  "@mindful-web/marko-core/components/queries/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-gtm$1.11.9/components/init.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/init.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,
@@ -95,7 +95,7 @@ marko_template._ = marko_renderer(render, {
95
95
  });
96
96
 
97
97
  marko_template.meta = {
98
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/init.marko",
98
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/init.marko",
99
99
  tags: [
100
100
  "@mindful-web/marko-web-deferred-script-loader/components/register.marko",
101
101
  "./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-gtm$1.11.9/components/noscript.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/noscript.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_forOf = require("marko/dist/runtime/helpers/for-of"),
8
8
  noscript_template = require("./noscript.marko"),
@@ -37,7 +37,7 @@ marko_template._ = marko_renderer(render, {
37
37
  });
38
38
 
39
39
  marko_template.meta = {
40
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/noscript.marko",
40
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/noscript.marko",
41
41
  tags: [
42
42
  "./noscript.marko"
43
43
  ]
@@ -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-gtm$1.11.9/components/push.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/push.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,
@@ -31,5 +31,5 @@ marko_template._ = marko_renderer(render, {
31
31
  });
32
32
 
33
33
  marko_template.meta = {
34
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/push.marko"
34
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/push.marko"
35
35
  };
@@ -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-gtm$1.11.9/components/slot.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/slot.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,
@@ -36,5 +36,5 @@ marko_template._ = marko_renderer(render, {
36
36
  });
37
37
 
38
38
  marko_template.meta = {
39
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/slot.marko"
39
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/slot.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 = "/@mindful-web/marko-web-gtm$1.11.9/components/start.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/start.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_gtm_push_template = require("./push.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -30,7 +30,7 @@ marko_template._ = marko_renderer(render, {
30
30
  });
31
31
 
32
32
  marko_template.meta = {
33
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/start.marko",
33
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/start.marko",
34
34
  tags: [
35
35
  "./push.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-gtm$1.11.9/components/track-bus-event.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/track-bus-event.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_browser_component_template = require("@mindful-web/marko-web/components/browser-component.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -23,7 +23,7 @@ marko_template._ = marko_renderer(render, {
23
23
  });
24
24
 
25
25
  marko_template.meta = {
26
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/track-bus-event.marko",
26
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/track-bus-event.marko",
27
27
  tags: [
28
28
  "@mindful-web/marko-web/components/browser-component.marko"
29
29
  ]
@@ -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-gtm$1.11.9/components/track-inview-event.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/track-inview-event.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_browser_component_template = require("@mindful-web/marko-web/components/browser-component.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -23,7 +23,7 @@ marko_template._ = marko_renderer(render, {
23
23
  });
24
24
 
25
25
  marko_template.meta = {
26
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/track-inview-event.marko",
26
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/track-inview-event.marko",
27
27
  tags: [
28
28
  "@mindful-web/marko-web/components/browser-component.marko"
29
29
  ]
@@ -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-gtm$1.11.9/components/track-load-more.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-gtm$1.55.1/components/track-load-more.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_web_browser_component_template = require("@mindful-web/marko-web/components/browser-component.marko"),
8
8
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
@@ -23,7 +23,7 @@ marko_template._ = marko_renderer(render, {
23
23
  });
24
24
 
25
25
  marko_template.meta = {
26
- id: "/@mindful-web/marko-web-gtm$1.11.9/components/track-load-more.marko",
26
+ id: "/@mindful-web/marko-web-gtm$1.55.1/components/track-load-more.marko",
27
27
  tags: [
28
28
  "@mindful-web/marko-web/components/browser-component.marko"
29
29
  ]
@@ -50,7 +50,6 @@ module.exports = ({ obj, req }) => {
50
50
  },
51
51
  created_by: {
52
52
  id: createdBy.id,
53
- username: createdBy.username,
54
53
  firstName: createdBy.firstName,
55
54
  lastName: createdBy.lastName,
56
55
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindful-web/marko-web-gtm",
3
- "version": "1.11.9",
3
+ "version": "1.55.1",
4
4
  "description": "Google Tag Manager (GAM) Marko components for Mindful Web websites",
5
5
  "author": "Jacob Bare <jacob@parameter1.com>",
6
6
  "license": "MIT",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "4375432e90dd7abfe13470398a6bfa44aaf2bdb4"
30
+ "gitHead": "5082e5f16e95409a05d6bda5ce550a2fdc462b1c"
31
31
  }