@mindful-web/marko-web-identity-x 1.78.0 → 1.79.4

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.
@@ -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-identity-x$1.78.0/components/access.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/access.marko",
6
6
  marko_component = require("./access.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -53,7 +53,7 @@ marko_template._ = marko_renderer(render, {
53
53
  }, marko_component);
54
54
 
55
55
  marko_template.meta = {
56
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/access.marko",
56
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/access.marko",
57
57
  component: "./access.marko",
58
58
  tags: [
59
59
  "@mindful-web/marko-core/components/resolve.marko"
@@ -8,6 +8,8 @@ $ const { identityX } = req;
8
8
  $ const additionalEventData = defaultValue(input.additionalEventData, {});
9
9
  $ const lang = input.lang || defaultValue(site.config.lang, "en");
10
10
  $ const dateFormat = input.dateFormat || defaultValue(site.config.dateFormat, "MMM Do, YYYY h:mma")
11
+ $ const type = input.type;
12
+ $ const contentEntity = input.contentEntity;
11
13
 
12
14
  <if(identityX)>
13
15
  <marko-web-identity-x-context|{ user, isEnabled, application, fields }| with-fields=true>
@@ -20,6 +22,8 @@ $ const dateFormat = input.dateFormat || defaultValue(site.config.dateFormat, "M
20
22
  loginCustomBooleanFieldAnswers: customBooleanFieldAnswers,
21
23
  loginCustomTextFieldAnswers: customTextFieldAnswers,
22
24
  identifier: `${input.identifier}`,
25
+ type: type,
26
+ contentEntity: contentEntity,
23
27
  title: input.title,
24
28
  description: input.description,
25
29
  url: input.url,
@@ -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-identity-x$1.78.0/components/comment-stream.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/comment-stream.marko",
6
6
  marko_component = require("./comment-stream.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -31,6 +31,10 @@ function render(input, out, __component, component, state) {
31
31
 
32
32
  const dateFormat = input.dateFormat || defaultValue(site.config.dateFormat, "MMM Do, YYYY h:mma")
33
33
 
34
+ const type = input.type;
35
+
36
+ const contentEntity = input.contentEntity;
37
+
34
38
  if (identityX) {
35
39
  marko_web_identity_x_context_tag({
36
40
  withFields: true,
@@ -45,6 +49,8 @@ function render(input, out, __component, component, state) {
45
49
  loginCustomBooleanFieldAnswers: customBooleanFieldAnswers,
46
50
  loginCustomTextFieldAnswers: customTextFieldAnswers,
47
51
  identifier: `${input.identifier}`,
52
+ type: type,
53
+ contentEntity: contentEntity,
48
54
  title: input.title,
49
55
  description: input.description,
50
56
  url: input.url,
@@ -85,7 +91,7 @@ marko_template._ = marko_renderer(render, {
85
91
  }, marko_component);
86
92
 
87
93
  marko_template.meta = {
88
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/comment-stream.marko",
94
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/comment-stream.marko",
89
95
  component: "./comment-stream.marko",
90
96
  tags: [
91
97
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/context.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/context.marko",
6
6
  marko_component = require("./context.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
@@ -49,7 +49,7 @@ marko_template._ = marko_renderer(render, {
49
49
  }, marko_component);
50
50
 
51
51
  marko_template.meta = {
52
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/context.marko",
52
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/context.marko",
53
53
  component: "./context.marko",
54
54
  tags: [
55
55
  "@mindful-web/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 = "/@mindful-web/marko-web-identity-x$1.78.0/components/form-access.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-access.marko",
6
6
  marko_component = require("./form-access.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
@@ -179,7 +179,7 @@ marko_template._ = marko_renderer(render, {
179
179
  }, marko_component);
180
180
 
181
181
  marko_template.meta = {
182
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-access.marko",
182
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-access.marko",
183
183
  component: "./form-access.marko",
184
184
  tags: [
185
185
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-authenticate.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-authenticate.marko",
6
6
  marko_component = require("./form-authenticate.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -81,7 +81,7 @@ marko_template._ = marko_renderer(render, {
81
81
  }, marko_component);
82
82
 
83
83
  marko_template.meta = {
84
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-authenticate.marko",
84
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-authenticate.marko",
85
85
  component: "./form-authenticate.marko",
86
86
  tags: [
87
87
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-change-email.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-change-email.marko",
6
6
  marko_component = require("./form-change-email.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -59,7 +59,7 @@ marko_template._ = marko_renderer(render, {
59
59
  }, marko_component);
60
60
 
61
61
  marko_template.meta = {
62
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-change-email.marko",
62
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-change-email.marko",
63
63
  component: "./form-change-email.marko",
64
64
  tags: [
65
65
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-login.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-login.marko",
6
6
  marko_component = require("./form-login.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -92,7 +92,7 @@ marko_template._ = marko_renderer(render, {
92
92
  }, marko_component);
93
93
 
94
94
  marko_template.meta = {
95
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-login.marko",
95
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-login.marko",
96
96
  component: "./form-login.marko",
97
97
  tags: [
98
98
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-logout.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-logout.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,
@@ -29,7 +29,7 @@ marko_template._ = marko_renderer(render, {
29
29
  });
30
30
 
31
31
  marko_template.meta = {
32
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-logout.marko",
32
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-logout.marko",
33
33
  tags: [
34
34
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-profile.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-profile.marko",
6
6
  marko_component = require("./form-profile.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -84,7 +84,7 @@ marko_template._ = marko_renderer(render, {
84
84
  }, marko_component);
85
85
 
86
86
  marko_template.meta = {
87
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-profile.marko",
87
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-profile.marko",
88
88
  component: "./form-profile.marko",
89
89
  tags: [
90
90
  "@mindful-web/marko-web/components/browser-component.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-identity-x$1.78.0/components/form-register.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/form-register.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  marko_assign = require("marko/dist/runtime/helpers/assign"),
8
8
  marko_web_identity_x_form_login_template = require("./form-login.marko"),
@@ -25,7 +25,7 @@ marko_template._ = marko_renderer(render, {
25
25
  });
26
26
 
27
27
  marko_template.meta = {
28
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/form-register.marko",
28
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/form-register.marko",
29
29
  tags: [
30
30
  "./form-login.marko"
31
31
  ]
@@ -41,6 +41,23 @@ $ const initScript = `
41
41
  props: { idxEntity: data.entity, actionSource: 'google-one-tap' },
42
42
  });
43
43
  }
44
+ // Push to dataLayer for GTM/GA4 integration, matching the shape
45
+ // produced by the standard email-link authenticate flow so existing
46
+ // GTM triggers/variables pick it up. The actionSource value
47
+ // ('google-one-tap') can be used to populate subscription_source
48
+ // or other conversion metadata in GA4.
49
+ if (window.dataLayer) {
50
+ window.dataLayer.push({
51
+ event: 'identity-x-authenticated',
52
+ 'identity-x': {
53
+ event: 'identity-x-authenticated',
54
+ id: data.user.id,
55
+ email: data.user.email,
56
+ entity: data.entity,
57
+ actionSource: data.loginSource,
58
+ },
59
+ });
60
+ }
44
61
  if (data.requiresUserInput) {
45
62
  var destination = data.redirectTo || window.location.pathname;
46
63
  window.location.href = '/user/profile?returnTo=' + encodeURIComponent(destination);
@@ -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-identity-x$1.78.0/components/google-init.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/google-init.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_str = require("marko/dist/runtime/helpers/to-string");
@@ -57,6 +57,23 @@ function render(input, out, __component, component, state) {
57
57
  props: { idxEntity: data.entity, actionSource: 'google-one-tap' },
58
58
  });
59
59
  }
60
+ // Push to dataLayer for GTM/GA4 integration, matching the shape
61
+ // produced by the standard email-link authenticate flow so existing
62
+ // GTM triggers/variables pick it up. The actionSource value
63
+ // ('google-one-tap') can be used to populate subscription_source
64
+ // or other conversion metadata in GA4.
65
+ if (window.dataLayer) {
66
+ window.dataLayer.push({
67
+ event: 'identity-x-authenticated',
68
+ 'identity-x': {
69
+ event: 'identity-x-authenticated',
70
+ id: data.user.id,
71
+ email: data.user.email,
72
+ entity: data.entity,
73
+ actionSource: data.loginSource,
74
+ },
75
+ });
76
+ }
60
77
  if (data.requiresUserInput) {
61
78
  var destination = data.redirectTo || window.location.pathname;
62
79
  window.location.href = '/user/profile?returnTo=' + encodeURIComponent(destination);
@@ -91,5 +108,5 @@ marko_template._ = marko_renderer(render, {
91
108
  });
92
109
 
93
110
  marko_template.meta = {
94
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/google-init.marko"
111
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/google-init.marko"
95
112
  };
@@ -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-identity-x$1.78.0/components/google-sign-in-button.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/google-sign-in-button.marko",
6
6
  marko_renderer = require("marko/dist/runtime/components/renderer"),
7
7
  helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
8
8
  marko_escapeXml = helpers_escape_xml.x,
@@ -40,5 +40,5 @@ marko_template._ = marko_renderer(render, {
40
40
  });
41
41
 
42
42
  marko_template.meta = {
43
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/google-sign-in-button.marko"
43
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/google-sign-in-button.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 = "/@mindful-web/marko-web-identity-x$1.78.0/components/identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/identify.marko",
6
6
  marko_component = require("./identify.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -50,7 +50,7 @@ marko_template._ = marko_renderer(render, {
50
50
  }, marko_component);
51
51
 
52
52
  marko_template.meta = {
53
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/identify.marko",
53
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/identify.marko",
54
54
  component: "./identify.marko",
55
55
  tags: [
56
56
  "@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-identity-x$1.78.0/components/non-auth-identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/non-auth-identify.marko",
6
6
  marko_component = require("./non-auth-identify.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
@@ -45,7 +45,7 @@ marko_template._ = marko_renderer(render, {
45
45
  }, marko_component);
46
46
 
47
47
  marko_template.meta = {
48
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/non-auth-identify.marko",
48
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/non-auth-identify.marko",
49
49
  component: "./non-auth-identify.marko",
50
50
  tags: [
51
51
  "@mindful-web/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 = "/@mindful-web/marko-web-identity-x$1.78.0/components/subscribe.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.79.4/components/subscribe.marko",
6
6
  marko_component = require("./subscribe.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_objectPath_module = require("@mindful-web/object-path"),
@@ -73,7 +73,7 @@ marko_template._ = marko_renderer(render, {
73
73
  }, marko_component);
74
74
 
75
75
  marko_template.meta = {
76
- id: "/@mindful-web/marko-web-identity-x$1.78.0/components/subscribe.marko",
76
+ id: "/@mindful-web/marko-web-identity-x$1.79.4/components/subscribe.marko",
77
77
  component: "./subscribe.marko",
78
78
  tags: [
79
79
  "@mindful-web/marko-web/components/browser-component.marko",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindful-web/marko-web-identity-x",
3
- "version": "1.78.0",
3
+ "version": "1.79.4",
4
4
  "description": "Marko Wrapper for IdentityX",
5
5
  "repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-identity-x",
6
6
  "author": "Josh Worden <josh@parameter1.com>",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "0cedd578e969f7a2581c1dbc142351dd02b0b705"
41
+ "gitHead": "3a97ebfa3e5e9078d1a31a6060d410c60b1220d6"
42
42
  }