@mindful-web/marko-web-identity-x 1.19.6 → 1.20.2
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 +61 -6
- package/browser/custom-column.vue +1 -0
- package/browser/download.vue +55 -6
- 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 +14 -7
- package/components/form-access.marko.js +16 -9
- 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/non-auth-identify.marko.js +2 -2
- package/package.json +2 -2
package/browser/access.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div id="access-idx-form" class="content-page-gate p-block">
|
|
3
3
|
<template v-if="hasActiveUser">
|
|
4
4
|
<h5 class="content-page-gate__title">
|
|
5
|
-
{{ title }}
|
|
5
|
+
{{ translate( { key: title }) }}
|
|
6
6
|
</h5>
|
|
7
7
|
<p v-if="!didSubmit" v-html="callToAction" />
|
|
8
8
|
<form v-if="!didSubmit" @submit.prevent="handleSubmit">
|
|
@@ -36,26 +36,38 @@
|
|
|
36
36
|
|
|
37
37
|
<div class="d-flex align-items-center">
|
|
38
38
|
<button type="submit" class="btn btn-primary">
|
|
39
|
-
{{ buttonLabel }}
|
|
39
|
+
{{ translate({ key: buttonLabel }) }}
|
|
40
40
|
</button>
|
|
41
41
|
</div>
|
|
42
42
|
</fieldset>
|
|
43
43
|
<p v-if="error" class="mt-3 text-danger">
|
|
44
|
-
An error occurred: {{ error }}
|
|
44
|
+
{{ translate({ key: 'An error occurred:' }) }} {{ error }}
|
|
45
45
|
</p>
|
|
46
46
|
</form>
|
|
47
47
|
|
|
48
48
|
<template v-else>
|
|
49
49
|
<div class="success-message">
|
|
50
50
|
<p class="success-message__title">
|
|
51
|
-
|
|
51
|
+
{{
|
|
52
|
+
translate({
|
|
53
|
+
key: 'Your responses have been saved, and this page will automatically reload.'
|
|
54
|
+
})
|
|
55
|
+
}}
|
|
52
56
|
</p>
|
|
53
57
|
<p class="success-message__title d-flex justify-content-between">
|
|
54
|
-
|
|
58
|
+
{{
|
|
59
|
+
translate({
|
|
60
|
+
key: 'If not, click the reload button'
|
|
61
|
+
})
|
|
62
|
+
}}
|
|
55
63
|
<a
|
|
56
64
|
class="btn btn-primary mr-3"
|
|
57
65
|
:href="handleReload()"
|
|
58
|
-
>
|
|
66
|
+
>{{
|
|
67
|
+
translate({
|
|
68
|
+
key: 'Reload'
|
|
69
|
+
})
|
|
70
|
+
}}</a>
|
|
59
71
|
</p>
|
|
60
72
|
</div>
|
|
61
73
|
</template>
|
|
@@ -76,6 +88,8 @@
|
|
|
76
88
|
:regional-consent-policies="regionalConsentPolicies"
|
|
77
89
|
:required-create-fields="requiredCreateFields"
|
|
78
90
|
:default-field-labels="defaultFieldLabels"
|
|
91
|
+
:button-labels="loginButtonLabels"
|
|
92
|
+
:lang="lang"
|
|
79
93
|
/>
|
|
80
94
|
</div>
|
|
81
95
|
</div>
|
|
@@ -202,6 +216,10 @@ export default {
|
|
|
202
216
|
type: Boolean,
|
|
203
217
|
default: true,
|
|
204
218
|
},
|
|
219
|
+
loginButtonLabels: {
|
|
220
|
+
type: Object,
|
|
221
|
+
default: null,
|
|
222
|
+
},
|
|
205
223
|
lang: {
|
|
206
224
|
type: String,
|
|
207
225
|
default: 'en',
|
|
@@ -377,6 +395,43 @@ export default {
|
|
|
377
395
|
this.isLoading = false;
|
|
378
396
|
}
|
|
379
397
|
},
|
|
398
|
+
translate({ key }) {
|
|
399
|
+
const { lang } = this;
|
|
400
|
+
const i18n = {
|
|
401
|
+
pt: {
|
|
402
|
+
'Complete the form to access this content': 'Preencha o formulário para baixar este conteúdo',
|
|
403
|
+
'To access this content, please fill out the form below.': 'Para baixar este conteúdo, preencha o formulário abaixo.',
|
|
404
|
+
'To access this content, please enter your email address below.': 'Para baixar este conteúdo, insira seu endereço de e-mail abaixo.',
|
|
405
|
+
'Submit & Access': 'Enviar e acessar',
|
|
406
|
+
'An error occurred:': 'Ocorreu um erro:',
|
|
407
|
+
'Your responses have been saved, and this page will automatically reload.': 'Suas respostas foram salvas e esta página será recarregada automaticamente.',
|
|
408
|
+
'If not, click the reload button': 'Caso contrário, clique no botão de recarregar',
|
|
409
|
+
Reload: 'Recarregar',
|
|
410
|
+
},
|
|
411
|
+
es: {
|
|
412
|
+
'Complete the form to access this content': 'Complete el formulario para descargar este contenido',
|
|
413
|
+
'To access this content, please fill out the form below.': 'Para descargar este contenido, por favor rellene el siguiente formulario.',
|
|
414
|
+
'To access this content, please enter your email address below.': 'Para descargar este contenido, ingrese su dirección de correo electrónico a continuación.',
|
|
415
|
+
'Submit & Access': 'Enviar y descargar',
|
|
416
|
+
'An error occurred:': 'Se produjo un error:',
|
|
417
|
+
'Your responses have been saved, and this page will automatically reload.': 'Sus respuestas se han guardado y esta página se recargará automáticamente.',
|
|
418
|
+
'If not, click the reload button': 'En caso contrario, haga clic en el botón recargar',
|
|
419
|
+
Reload: 'Recargar',
|
|
420
|
+
},
|
|
421
|
+
en: {
|
|
422
|
+
'Complete the form to access this content': 'Complete the form to access this content',
|
|
423
|
+
'To access this content, please fill out the form below.': 'To access this content, please fill out the form below.',
|
|
424
|
+
'To access this content, please enter your email address below.': 'To access this content, please enter your email address below.',
|
|
425
|
+
'Submit & Access': 'Submit & Access',
|
|
426
|
+
'An error occurred:': 'An error occurred:',
|
|
427
|
+
'Your responses have been saved, and this page will automatically reload.': 'Your responses have been saved, and this page will automatically reload.',
|
|
428
|
+
'If not, click the reload button': 'If not, click the reload button',
|
|
429
|
+
Reload: 'Reload',
|
|
430
|
+
},
|
|
431
|
+
};
|
|
432
|
+
const value = (i18n[lang] && i18n[lang][key]) ? i18n[lang][key] : i18n.en[key] || key;
|
|
433
|
+
return value;
|
|
434
|
+
},
|
|
380
435
|
},
|
|
381
436
|
};
|
|
382
437
|
</script>
|
package/browser/download.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div id="content-download-idx-form" class="content-page-gate p-block">
|
|
3
3
|
<template v-if="hasActiveUser || allowAnonymous">
|
|
4
4
|
<h5 class="content-page-gate__title">
|
|
5
|
-
{{ title }}
|
|
5
|
+
{{ translate( { key: title }) }}
|
|
6
6
|
</h5>
|
|
7
7
|
<p v-if="!didSubmit && displayForm" v-html="callToAction" />
|
|
8
8
|
<form v-if="!didSubmit && displayForm" @submit.prevent="handleSubmit">
|
|
@@ -37,27 +37,35 @@
|
|
|
37
37
|
|
|
38
38
|
<div class="d-flex align-items-center">
|
|
39
39
|
<button type="submit" class="btn btn-primary">
|
|
40
|
-
{{ buttonLabel }}
|
|
40
|
+
{{ translate({ key: buttonLabel }) }}
|
|
41
41
|
</button>
|
|
42
42
|
</div>
|
|
43
43
|
</fieldset>
|
|
44
44
|
<p v-if="error" class="mt-3 text-danger">
|
|
45
|
-
An error occurred: {{ error }}
|
|
45
|
+
{{ translate({ key: "An error occurred:" }) }} {{ error }}
|
|
46
46
|
</p>
|
|
47
47
|
</form>
|
|
48
48
|
|
|
49
49
|
<template v-else>
|
|
50
50
|
<div class="success-message">
|
|
51
51
|
<p class="success-message__title">
|
|
52
|
-
|
|
52
|
+
{{
|
|
53
|
+
translate({
|
|
54
|
+
key: 'Your responses have been saved, and your download should begin automatically.'
|
|
55
|
+
})
|
|
56
|
+
}}
|
|
53
57
|
</p>
|
|
54
58
|
<p class="success-message__title d-flex justify-content-between">
|
|
55
|
-
|
|
59
|
+
{{
|
|
60
|
+
translate({
|
|
61
|
+
key: 'If not, click this button to start:'
|
|
62
|
+
})
|
|
63
|
+
}}
|
|
56
64
|
<a
|
|
57
65
|
class="btn btn-primary mr-3"
|
|
58
66
|
:href="content.fileSrc"
|
|
59
67
|
target="_blank"
|
|
60
|
-
>Download</a>
|
|
68
|
+
>{{ translate({ key: 'Download' }) }}</a>
|
|
61
69
|
</p>
|
|
62
70
|
<download-related v-if="showRelated" :content="content" @submit="download" />
|
|
63
71
|
</div>
|
|
@@ -79,6 +87,9 @@
|
|
|
79
87
|
:regional-consent-policies="regionalConsentPolicies"
|
|
80
88
|
:required-create-fields="requiredCreateFields"
|
|
81
89
|
:default-field-labels="defaultFieldLabels"
|
|
90
|
+
:button-labels="loginButtonLabels"
|
|
91
|
+
:login-email-label="defaultFieldLabels.email"
|
|
92
|
+
:lang="lang"
|
|
82
93
|
/>
|
|
83
94
|
</div>
|
|
84
95
|
</div>
|
|
@@ -217,6 +228,10 @@ export default {
|
|
|
217
228
|
type: Boolean,
|
|
218
229
|
default: true,
|
|
219
230
|
},
|
|
231
|
+
loginButtonLabels: {
|
|
232
|
+
type: Object,
|
|
233
|
+
default: null,
|
|
234
|
+
},
|
|
220
235
|
lang: {
|
|
221
236
|
type: String,
|
|
222
237
|
default: 'en',
|
|
@@ -385,6 +400,40 @@ export default {
|
|
|
385
400
|
// Attempt to open download
|
|
386
401
|
window.open(content.fileSrc, '_blank');
|
|
387
402
|
},
|
|
403
|
+
translate({ key }) {
|
|
404
|
+
const { lang } = this;
|
|
405
|
+
const i18n = {
|
|
406
|
+
pt: {
|
|
407
|
+
'Complete the form to download this content': 'Preencha o formulário para baixar este conteúdo',
|
|
408
|
+
'To download this content, please fill out the form below.': 'Para baixar este conteúdo, preencha o formulário abaixo.',
|
|
409
|
+
'To download this content, please enter your email address below.': 'Para baixar este conteúdo, insira seu endereço de e-mail abaixo.',
|
|
410
|
+
'Submit & Download': 'Enviar e baixar',
|
|
411
|
+
'An error occurred:': 'Ocorreu um erro:',
|
|
412
|
+
'Your responses have been saved, and your download should begin automatically.': 'Suas respostas foram salvas e o download deve começar automaticamente.',
|
|
413
|
+
'If not, click this button to start:': 'Caso contrário, clique neste botão para iniciar:',
|
|
414
|
+
},
|
|
415
|
+
es: {
|
|
416
|
+
'Complete the form to download this content': 'Complete el formulario para descargar este contenido',
|
|
417
|
+
'To download this content, please fill out the form below.': 'Para descargar este contenido, por favor rellene el siguiente formulario.',
|
|
418
|
+
'To download this content, please enter your email address below.': 'Para descargar este contenido, ingrese su dirección de correo electrónico a continuación.',
|
|
419
|
+
'Submit & Download': 'Enviar y descargar',
|
|
420
|
+
'An error occurred:': 'Se produjo un error:',
|
|
421
|
+
'Your responses have been saved, and your download should begin automatically.': 'Sus respuestas se han guardado y su descarga debería comenzar automáticamente.',
|
|
422
|
+
'If not, click this button to start:': 'Si no, haga clic en este botón para comenzar:',
|
|
423
|
+
},
|
|
424
|
+
en: {
|
|
425
|
+
'Complete the form to download this content': 'Complete the form to download this content',
|
|
426
|
+
'To download this content, please fill out the form below.': 'To download this content, please fill out the form below.',
|
|
427
|
+
'To download this content, please enter your email address below.': 'To download this content, please enter your email address below.',
|
|
428
|
+
'Submit & Download': 'Submit & Download',
|
|
429
|
+
'An error occurred:': 'An error occurred:',
|
|
430
|
+
'Your responses have been saved, and your download should begin automatically.': 'Your responses have been saved, and your download should begin automatically.',
|
|
431
|
+
'If not, click this button to start:': 'If not, click this button to start:',
|
|
432
|
+
},
|
|
433
|
+
};
|
|
434
|
+
const value = (i18n[lang] && i18n[lang][key]) ? i18n[lang][key] : i18n.en[key] || key;
|
|
435
|
+
return value;
|
|
436
|
+
},
|
|
388
437
|
},
|
|
389
438
|
};
|
|
390
439
|
</script>
|
|
@@ -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.20.2/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.20.2/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.20.2/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"),
|
|
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
74
74
|
}, marko_component);
|
|
75
75
|
|
|
76
76
|
marko_template.meta = {
|
|
77
|
-
id: "/@mindful-web/marko-web-identity-x$1.
|
|
77
|
+
id: "/@mindful-web/marko-web-identity-x$1.20.2/components/comment-stream.marko",
|
|
78
78
|
component: "./comment-stream.marko",
|
|
79
79
|
tags: [
|
|
80
80
|
"@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.20.2/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"),
|
|
@@ -44,7 +44,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
44
44
|
}, marko_component);
|
|
45
45
|
|
|
46
46
|
marko_template.meta = {
|
|
47
|
-
id: "/@mindful-web/marko-web-identity-x$1.
|
|
47
|
+
id: "/@mindful-web/marko-web-identity-x$1.20.2/components/context.marko",
|
|
48
48
|
component: "./context.marko",
|
|
49
49
|
tags: [
|
|
50
50
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
3
3
|
import { get, getAsObject } from "@mindful-web/object-path";
|
|
4
4
|
|
|
5
|
-
$ const { req: { identityX }, site } = out.global;
|
|
5
|
+
$ const { req: { identityX }, site, i18n } = out.global;
|
|
6
6
|
$ const { content, formId, user, application } = input;
|
|
7
7
|
$ const form = identityX.config.getAsObject(`forms.${formId}`);
|
|
8
8
|
$ const additionalEventData = defaultValue(input.additionalEventData, {});
|
|
9
|
-
$ const ctaPrefix = defaultValue(input.ctaPrefix,
|
|
10
|
-
$ const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, please fill out the form below
|
|
11
|
-
$ const callToActionLoggedOut = defaultValue(input.callToAction, `${ctaPrefix}, please enter your email address below. You will receive an email containing a verification link
|
|
12
|
-
$ const buttonLabel = defaultValue(input.buttonLabel, "Submit & Access");
|
|
13
|
-
$ const title = defaultValue(input.title, "Complete the form to access this content");
|
|
9
|
+
$ const ctaPrefix = defaultValue(input.ctaPrefix, `${i18n("To access")} "${content.name}"`);
|
|
10
|
+
$ const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, ${i18n("please fill out the form below.")}`);
|
|
11
|
+
$ const callToActionLoggedOut = defaultValue(input.callToAction, `${ctaPrefix}, ${i18n("please enter your email address below. You will receive an email containing a verification link.")}`);
|
|
12
|
+
$ const buttonLabel = defaultValue(input.buttonLabel, i18n("Submit & Access"));
|
|
13
|
+
$ const title = defaultValue(input.title, i18n("Complete the form to access this content"));
|
|
14
14
|
$ const updateProfileOnSubmit = defaultValue(input.updateProfileOnSubmit, true);
|
|
15
15
|
$ const { displayForm, cookie } = getAsObject(out, "global.contentAccessState");
|
|
16
|
-
$ const consentPolicy =
|
|
16
|
+
$ const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
|
|
17
17
|
$ const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
|
|
18
18
|
$ const lang = site.config.lang || "en";
|
|
19
|
+
$ const loginButtonLabels = defaultValue(input.loginButtonLabels, {
|
|
20
|
+
continue: i18n("Continue"),
|
|
21
|
+
login: i18n("Log in"),
|
|
22
|
+
profile: i18n("Modify Profile"),
|
|
23
|
+
});
|
|
24
|
+
|
|
19
25
|
|
|
20
26
|
<if(identityX && form.fieldRows, displayForm)>
|
|
21
27
|
<div class="content-survey-access-idx__wrapper">
|
|
@@ -37,6 +43,7 @@ $ const lang = site.config.lang || "en";
|
|
|
37
43
|
additionalEventData: additionalEventData,
|
|
38
44
|
appContextId: identityX.config.get("appContextId"),
|
|
39
45
|
buttonLabel: buttonLabel,
|
|
46
|
+
loginButtonLabels: loginButtonLabels,
|
|
40
47
|
defaultCountryCode: identityX.config.get("defaultCountryCode"),
|
|
41
48
|
defaultFieldLabels: identityX.config.get("defaultFieldLabels"),
|
|
42
49
|
enableChangeEmail: identityX.config.get("enableChangeEmail"),
|
|
@@ -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.20.2/components/form-access.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,
|
|
@@ -20,7 +20,7 @@ var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
|
20
20
|
function render(input, out, __component, component, state) {
|
|
21
21
|
var data = input;
|
|
22
22
|
|
|
23
|
-
const { req: { identityX }, site } = out.global;
|
|
23
|
+
const { req: { identityX }, site, i18n } = out.global;
|
|
24
24
|
|
|
25
25
|
const { content, formId, user, application } = input;
|
|
26
26
|
|
|
@@ -28,26 +28,32 @@ function render(input, out, __component, component, state) {
|
|
|
28
28
|
|
|
29
29
|
const additionalEventData = defaultValue(input.additionalEventData, {});
|
|
30
30
|
|
|
31
|
-
const ctaPrefix = defaultValue(input.ctaPrefix,
|
|
31
|
+
const ctaPrefix = defaultValue(input.ctaPrefix, `${i18n("To access")} "${content.name}"`);
|
|
32
32
|
|
|
33
|
-
const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, please fill out the form below
|
|
33
|
+
const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, ${i18n("please fill out the form below.")}`);
|
|
34
34
|
|
|
35
|
-
const callToActionLoggedOut = defaultValue(input.callToAction, `${ctaPrefix}, please enter your email address below. You will receive an email containing a verification link
|
|
35
|
+
const callToActionLoggedOut = defaultValue(input.callToAction, `${ctaPrefix}, ${i18n("please enter your email address below. You will receive an email containing a verification link.")}`);
|
|
36
36
|
|
|
37
|
-
const buttonLabel = defaultValue(input.buttonLabel, "Submit & Access");
|
|
37
|
+
const buttonLabel = defaultValue(input.buttonLabel, i18n("Submit & Access"));
|
|
38
38
|
|
|
39
|
-
const title = defaultValue(input.title, "Complete the form to access this content");
|
|
39
|
+
const title = defaultValue(input.title, i18n("Complete the form to access this content"));
|
|
40
40
|
|
|
41
41
|
const updateProfileOnSubmit = defaultValue(input.updateProfileOnSubmit, true);
|
|
42
42
|
|
|
43
43
|
const { displayForm, cookie } = getAsObject(out, "global.contentAccessState");
|
|
44
44
|
|
|
45
|
-
const consentPolicy =
|
|
45
|
+
const consentPolicy = form.consentPolicy || identityX.config.get("consentPolicy") || get(application, "organization.consentPolicy");
|
|
46
46
|
|
|
47
47
|
const emailConsentRequest = defaultValue(form.emailConsentRequest, get(application, "organization.emailConsentRequest"));
|
|
48
48
|
|
|
49
49
|
const lang = site.config.lang || "en";
|
|
50
50
|
|
|
51
|
+
const loginButtonLabels = defaultValue(input.loginButtonLabels, {
|
|
52
|
+
continue: i18n("Continue"),
|
|
53
|
+
login: i18n("Log in"),
|
|
54
|
+
profile: i18n("Modify Profile"),
|
|
55
|
+
});
|
|
56
|
+
|
|
51
57
|
if (identityX && form.fieldRows, displayForm) {
|
|
52
58
|
out.w("<div class=\"content-survey-access-idx__wrapper\">");
|
|
53
59
|
|
|
@@ -69,6 +75,7 @@ function render(input, out, __component, component, state) {
|
|
|
69
75
|
additionalEventData: additionalEventData,
|
|
70
76
|
appContextId: identityX.config.get("appContextId"),
|
|
71
77
|
buttonLabel: buttonLabel,
|
|
78
|
+
loginButtonLabels: loginButtonLabels,
|
|
72
79
|
defaultCountryCode: identityX.config.get("defaultCountryCode"),
|
|
73
80
|
defaultFieldLabels: identityX.config.get("defaultFieldLabels"),
|
|
74
81
|
enableChangeEmail: identityX.config.get("enableChangeEmail"),
|
|
@@ -107,7 +114,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
107
114
|
});
|
|
108
115
|
|
|
109
116
|
marko_template.meta = {
|
|
110
|
-
id: "/@mindful-web/marko-web-identity-x$1.
|
|
117
|
+
id: "/@mindful-web/marko-web-identity-x$1.20.2/components/form-access.marko",
|
|
111
118
|
tags: [
|
|
112
119
|
"@mindful-web/marko-web/components/browser-component.marko"
|
|
113
120
|
]
|
|
@@ -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.20.2/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.20.2/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.20.2/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.20.2/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.20.2/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"),
|
|
@@ -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-identity-x$1.
|
|
67
|
+
id: "/@mindful-web/marko-web-identity-x$1.20.2/components/form-login.marko",
|
|
68
68
|
component: "./form-login.marko",
|
|
69
69
|
tags: [
|
|
70
70
|
"@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.20.2/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.20.2/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.20.2/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"),
|
|
@@ -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.20.2/components/form-profile.marko",
|
|
77
77
|
component: "./form-profile.marko",
|
|
78
78
|
tags: [
|
|
79
79
|
"@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.20.2/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.20.2/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.20.2/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.20.2/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.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-identity-x$1.20.2/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.20.2/components/non-auth-identify.marko",
|
|
49
49
|
component: "./non-auth-identify.marko",
|
|
50
50
|
tags: [
|
|
51
51
|
"@mindful-web/marko-core/components/resolve.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.20.2",
|
|
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": "c448a31cadb8230e9b4a8e62a2be79767eea3c82"
|
|
41
41
|
}
|