@mindful-web/marko-web-identity-x 1.65.0 → 1.66.0
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/browser/access.vue +6 -1
- package/components/access.marko.js +2 -2
- package/components/comment-stream.marko.js +2 -2
- package/components/context.marko.js +2 -2
- package/components/form-access.marko +5 -4
- package/components/form-access.marko.js +8 -6
- package/components/form-authenticate.marko.js +2 -2
- package/components/form-change-email.marko.js +2 -2
- package/components/form-login.marko.js +2 -2
- package/components/form-logout.marko.js +2 -2
- package/components/form-profile.marko.js +2 -2
- package/components/form-register.marko.js +2 -2
- package/components/identify.marko.js +2 -2
- package/components/marko.json +10 -1
- package/components/non-auth-identify.marko.js +2 -2
- package/components/subscribe.marko.js +2 -2
- package/package.json +2 -2
package/browser/access.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="access-idx-form" class="content-page-gate p-block">
|
|
3
|
-
<template v-if="hasActiveUser">
|
|
3
|
+
<template v-if="hasActiveUser || allowAnonymous">
|
|
4
4
|
<h5 class="content-page-gate__title">
|
|
5
5
|
{{ translate( { key: title }) }}
|
|
6
6
|
</h5>
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
:endpoints="endpoints"
|
|
25
25
|
:enable-change-email="enableChangeEmail"
|
|
26
26
|
:lang="lang"
|
|
27
|
+
:allow-anonymous="allowAnonymous"
|
|
27
28
|
/>
|
|
28
29
|
</div>
|
|
29
30
|
|
|
@@ -178,6 +179,10 @@ export default {
|
|
|
178
179
|
type: Object,
|
|
179
180
|
required: true,
|
|
180
181
|
},
|
|
182
|
+
allowAnonymous: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: false,
|
|
185
|
+
},
|
|
181
186
|
defaultFieldLabels: {
|
|
182
187
|
type: Object,
|
|
183
188
|
default: () => {},
|
|
@@ -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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
56
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
88
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
52
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/components/context.marko",
|
|
53
53
|
component: "./context.marko",
|
|
54
54
|
tags: [
|
|
55
55
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -6,8 +6,8 @@ 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,
|
|
10
|
-
$ const form = identityX.config.getAsObject(`forms.${
|
|
9
|
+
$ const { content, idxFormId, allowAnonymous } = input;
|
|
10
|
+
$ const form = identityX.config.getAsObject(`forms.${idxFormId}`);
|
|
11
11
|
$ const additionalEventData = defaultValue(input.additionalEventData, {});
|
|
12
12
|
$ const ctaPrefix = defaultValue(input.ctaPrefix, `${i18n("To access")} "${content.name}"`);
|
|
13
13
|
$ const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, ${i18n("please fill out the form below.")}`);
|
|
@@ -85,7 +85,8 @@ $ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
|
|
|
85
85
|
<marko-web-identity-x-non-auth-identify|{ user: identifiedUser }|>
|
|
86
86
|
$ props.updateProfileOnSubmit = false;
|
|
87
87
|
$ props.activeUser = identifiedUser;
|
|
88
|
-
|
|
88
|
+
$ props.allowAnonymous = allowAnonymous;
|
|
89
|
+
<marko-web-browser-component name="IdentityXAccess" props=props />
|
|
89
90
|
</marko-web-identity-x-non-auth-identify>
|
|
90
91
|
</if>
|
|
91
92
|
<else>
|
|
@@ -95,7 +96,7 @@ $ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
|
|
|
95
96
|
</marko-web-identity-x-context>
|
|
96
97
|
</if>
|
|
97
98
|
<else>
|
|
98
|
-
$ const msg = `IdentityX Survey Gating: couldn't load form "${
|
|
99
|
+
$ const msg = `IdentityX Survey Gating: couldn't load form "${idxFormId}"!`;
|
|
99
100
|
<p class="text-danger" data-marko-error=msg>
|
|
100
101
|
${msg}
|
|
101
102
|
</p>
|
|
@@ -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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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"),
|
|
@@ -32,9 +32,9 @@ function render(input, out, __component, component, state) {
|
|
|
32
32
|
|
|
33
33
|
const { req: { identityX }, site, i18n } = out.global;
|
|
34
34
|
|
|
35
|
-
const { content,
|
|
35
|
+
const { content, idxFormId, allowAnonymous } = input;
|
|
36
36
|
|
|
37
|
-
const form = identityX.config.getAsObject(`forms.${
|
|
37
|
+
const form = identityX.config.getAsObject(`forms.${idxFormId}`);
|
|
38
38
|
|
|
39
39
|
const additionalEventData = defaultValue(input.additionalEventData, {});
|
|
40
40
|
|
|
@@ -131,8 +131,10 @@ function render(input, out, __component, component, state) {
|
|
|
131
131
|
|
|
132
132
|
props.activeUser = identifiedUser;
|
|
133
133
|
|
|
134
|
+
props.allowAnonymous = allowAnonymous;
|
|
135
|
+
|
|
134
136
|
marko_web_browser_component_tag({
|
|
135
|
-
name: "
|
|
137
|
+
name: "IdentityXAccess",
|
|
136
138
|
props: props
|
|
137
139
|
}, out, __component, "3");
|
|
138
140
|
}
|
|
@@ -148,7 +150,7 @@ function render(input, out, __component, component, state) {
|
|
|
148
150
|
}
|
|
149
151
|
}, out, __component, "0");
|
|
150
152
|
} else {
|
|
151
|
-
const msg = `IdentityX Survey Gating: couldn't load form "${
|
|
153
|
+
const msg = `IdentityX Survey Gating: couldn't load form "${idxFormId}"!`;
|
|
152
154
|
|
|
153
155
|
out.w("<p class=\"text-danger\"" +
|
|
154
156
|
marko_attr("data-marko-error", msg) +
|
|
@@ -163,7 +165,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
163
165
|
}, marko_component);
|
|
164
166
|
|
|
165
167
|
marko_template.meta = {
|
|
166
|
-
id: "/@mindful-web/marko-web-identity-x$1.
|
|
168
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/components/form-access.marko",
|
|
167
169
|
component: "./form-access.marko",
|
|
168
170
|
tags: [
|
|
169
171
|
"@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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
71
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
62
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
82
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
32
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
84
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
28
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
53
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/components/identify.marko",
|
|
54
54
|
component: "./identify.marko",
|
|
55
55
|
tags: [
|
|
56
56
|
"@mindful-web/marko-web-gtm/components/push.marko",
|
package/components/marko.json
CHANGED
|
@@ -54,7 +54,16 @@
|
|
|
54
54
|
"template": "./non-auth-identify.marko"
|
|
55
55
|
},
|
|
56
56
|
"<marko-web-identity-x-form-access>": {
|
|
57
|
-
"template": "./form-access.marko"
|
|
57
|
+
"template": "./form-access.marko",
|
|
58
|
+
"@idx-form-id": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"required": true
|
|
61
|
+
},
|
|
62
|
+
"@content": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": true
|
|
65
|
+
},
|
|
66
|
+
"@allow-anonymous": "string"
|
|
58
67
|
},
|
|
59
68
|
"<marko-web-identity-x-form-profile>": {
|
|
60
69
|
"template": "./form-profile.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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
48
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
76
|
+
id: "/@mindful-web/marko-web-identity-x$1.66.0/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.
|
|
3
|
+
"version": "1.66.0",
|
|
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": "
|
|
40
|
+
"gitHead": "be5509f793227a7e550b6f681a34e6dbb76d8b29"
|
|
41
41
|
}
|