@mindful-web/marko-web-identity-x 1.64.1 → 1.65.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.
@@ -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.64.1/components/access.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/access.marko",
56
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/access.marko",
57
57
  component: "./access.marko",
58
58
  tags: [
59
59
  "@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.64.1/components/comment-stream.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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"),
@@ -85,7 +85,7 @@ marko_template._ = marko_renderer(render, {
85
85
  }, marko_component);
86
86
 
87
87
  marko_template.meta = {
88
- id: "/@mindful-web/marko-web-identity-x$1.64.1/components/comment-stream.marko",
88
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/comment-stream.marko",
89
89
  component: "./comment-stream.marko",
90
90
  tags: [
91
91
  "@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.64.1/components/context.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/context.marko",
52
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/context.marko",
53
53
  component: "./context.marko",
54
54
  tags: [
55
55
  "@mindful-web/marko-core/components/resolve.marko"
@@ -6,7 +6,7 @@ import getCreateUserCustomFields from '../utils/get-create-user-custom-fields'
6
6
  import getFormCustomFields from '../utils/get-form-custom-fields'
7
7
 
8
8
  $ const { req: { identityX }, site, i18n } = out.global;
9
- $ const { content, formId, user, application } = input;
9
+ $ const { content, formId } = input;
10
10
  $ const form = identityX.config.getAsObject(`forms.${formId}`);
11
11
  $ const additionalEventData = defaultValue(input.additionalEventData, {});
12
12
  $ const ctaPrefix = defaultValue(input.ctaPrefix, `${i18n("To access")} "${content.name}"`);
@@ -16,8 +16,6 @@ $ const buttonLabel = defaultValue(input.buttonLabel, i18n("Submit & Access"));
16
16
  $ const title = defaultValue(input.title, i18n("Complete the form to access this content"));
17
17
  $ const updateProfileOnSubmit = defaultValue(input.updateProfileOnSubmit, true);
18
18
  $ const { displayForm, cookie } = getAsObject(out, "global.contentAccessState");
19
- $ const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
20
- $ const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
21
19
  $ const lang = site.config.lang || "en";
22
20
  $ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
23
21
  continue: i18n("Continue"),
@@ -27,9 +25,12 @@ $ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
27
25
 
28
26
 
29
27
  <if(identityX && form.fieldRows)>
30
- <marko-web-identity-x-context|{ user, fields }| with-fields=true>
28
+ <marko-web-identity-x-context|{ hasUser, user, fields, application }| with-fields=true>
29
+ $ const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
30
+ $ const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
31
+
31
32
  <div class="content-survey-access-idx__wrapper">
32
- $ const {
33
+ $ const {
33
34
  customSelectFieldAnswers: loginCustomSelectFieldAnswers,
34
35
  customBooleanFieldAnswers: loginCustomBooleanFieldAnswers,
35
36
  customTextFieldAnswers: loginCustomTextFieldAnswers,
@@ -80,7 +81,16 @@ $ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
80
81
  regionalConsentPolicies: get(application, "organization.regionalConsentPolicies"),
81
82
  lang,
82
83
  };
83
- <marko-web-browser-component name="IdentityXAccess" props=props />
84
+ <if(!hasUser)>
85
+ <marko-web-identity-x-non-auth-identify|{ user: identifiedUser }|>
86
+ $ props.updateProfileOnSubmit = false;
87
+ $ props.activeUser = identifiedUser;
88
+ <marko-web-browser-component name="IdentityXAccess" props=props />
89
+ </marko-web-identity-x-non-auth-identify>
90
+ </if>
91
+ <else>
92
+ <marko-web-browser-component name="IdentityXAccess" props=props />
93
+ </else>
84
94
  </div>
85
95
  </marko-web-identity-x-context>
86
96
  </if>
@@ -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.64.1/components/form-access.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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"),
@@ -19,6 +19,8 @@ var marko_template = module.exports = require("marko/dist/html").t(__filename),
19
19
  marko_web_browser_component_template = require("@mindful-web/marko-web/components/browser-component.marko"),
20
20
  marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
21
21
  marko_web_browser_component_tag = marko_loadTag(marko_web_browser_component_template),
22
+ marko_web_identity_x_non_auth_identify_template = require("./non-auth-identify.marko"),
23
+ marko_web_identity_x_non_auth_identify_tag = marko_loadTag(marko_web_identity_x_non_auth_identify_template),
22
24
  marko_web_identity_x_context_template = require("./context.marko"),
23
25
  marko_web_identity_x_context_tag = marko_loadTag(marko_web_identity_x_context_template),
24
26
  helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
@@ -30,7 +32,7 @@ function render(input, out, __component, component, state) {
30
32
 
31
33
  const { req: { identityX }, site, i18n } = out.global;
32
34
 
33
- const { content, formId, user, application } = input;
35
+ const { content, formId } = input;
34
36
 
35
37
  const form = identityX.config.getAsObject(`forms.${formId}`);
36
38
 
@@ -50,10 +52,6 @@ function render(input, out, __component, component, state) {
50
52
 
51
53
  const { displayForm, cookie } = getAsObject(out, "global.contentAccessState");
52
54
 
53
- const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
54
-
55
- const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
56
-
57
55
  const lang = site.config.lang || "en";
58
56
 
59
57
  const loginButtonLabels = defaultValue(input.loginButtonLabels, {
@@ -65,10 +63,14 @@ function render(input, out, __component, component, state) {
65
63
  if (identityX && form.fieldRows) {
66
64
  marko_web_identity_x_context_tag({
67
65
  withFields: true,
68
- renderBody: function(out, { user, fields }) {
66
+ renderBody: function(out, { hasUser, user, fields, application }) {
67
+ const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
68
+
69
+ const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
70
+
69
71
  out.w("<div class=\"content-survey-access-idx__wrapper\">");
70
72
 
71
- const {
73
+ const {
72
74
  customSelectFieldAnswers: loginCustomSelectFieldAnswers,
73
75
  customBooleanFieldAnswers: loginCustomBooleanFieldAnswers,
74
76
  customTextFieldAnswers: loginCustomTextFieldAnswers,
@@ -122,10 +124,25 @@ function render(input, out, __component, component, state) {
122
124
  lang,
123
125
  };
124
126
 
125
- marko_web_browser_component_tag({
126
- name: "IdentityXAccess",
127
- props: props
128
- }, out, __component, "2");
127
+ if (!hasUser) {
128
+ marko_web_identity_x_non_auth_identify_tag({
129
+ renderBody: function(out, { user: identifiedUser }) {
130
+ props.updateProfileOnSubmit = false;
131
+
132
+ props.activeUser = identifiedUser;
133
+
134
+ marko_web_browser_component_tag({
135
+ name: "IdentityXAccess",
136
+ props: props
137
+ }, out, __component, "3");
138
+ }
139
+ }, out, __component, "2");
140
+ } else {
141
+ marko_web_browser_component_tag({
142
+ name: "IdentityXAccess",
143
+ props: props
144
+ }, out, __component, "4");
145
+ }
129
146
 
130
147
  out.w("</div>");
131
148
  }
@@ -146,10 +163,11 @@ marko_template._ = marko_renderer(render, {
146
163
  }, marko_component);
147
164
 
148
165
  marko_template.meta = {
149
- id: "/@mindful-web/marko-web-identity-x$1.64.1/components/form-access.marko",
166
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/form-access.marko",
150
167
  component: "./form-access.marko",
151
168
  tags: [
152
169
  "@mindful-web/marko-web/components/browser-component.marko",
170
+ "./non-auth-identify.marko",
153
171
  "./context.marko"
154
172
  ]
155
173
  };
@@ -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.64.1/components/form-authenticate.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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"),
@@ -68,7 +68,7 @@ marko_template._ = marko_renderer(render, {
68
68
  }, marko_component);
69
69
 
70
70
  marko_template.meta = {
71
- id: "/@mindful-web/marko-web-identity-x$1.64.1/components/form-authenticate.marko",
71
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/form-authenticate.marko",
72
72
  component: "./form-authenticate.marko",
73
73
  tags: [
74
74
  "@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.64.1/components/form-change-email.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/form-change-email.marko",
62
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/form-login.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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"),
@@ -79,7 +79,7 @@ marko_template._ = marko_renderer(render, {
79
79
  }, marko_component);
80
80
 
81
81
  marko_template.meta = {
82
- id: "/@mindful-web/marko-web-identity-x$1.64.1/components/form-login.marko",
82
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/form-login.marko",
83
83
  component: "./form-login.marko",
84
84
  tags: [
85
85
  "@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.64.1/components/form-logout.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/form-logout.marko",
32
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/form-profile.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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"),
@@ -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.64.1/components/form-profile.marko",
84
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/form-profile.marko",
85
85
  component: "./form-profile.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.64.1/components/form-register.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/form-register.marko",
28
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/components/form-register.marko",
29
29
  tags: [
30
30
  "./form-login.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-identity-x$1.64.1/components/identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/identify.marko",
53
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/non-auth-identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/non-auth-identify.marko",
48
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/subscribe.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1/components/subscribe.marko",
76
+ id: "/@mindful-web/marko-web-identity-x$1.65.1/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.64.1",
3
+ "version": "1.65.1",
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>",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "b6e603f7a7ae73b4903545524cd27db255016dc9"
40
+ "gitHead": "50de6882eef09e8f654f22c4f537b5c0b7f4ca10"
41
41
  }