@ekyc_qoobiss/qbs-ect-cmp 2.1.16 → 2.1.18
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/dist/cjs/agreement-check_18.cjs.entry.js +16 -3
- package/dist/collection/components/common/camera-error/camera-error.js +12 -2
- package/dist/collection/components/flow/landing-validation/landing-validation.js +4 -2
- package/dist/collection/helpers/textValues.js +1 -0
- package/dist/esm/agreement-check_18.entry.js +16 -3
- package/dist/qbs-ect-cmp/{p-d6c15286.entry.js → p-0ae76281.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/textValues.d.ts +1 -0
- package/package.json +1 -1
|
@@ -269,6 +269,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
|
|
|
269
269
|
SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
|
|
270
270
|
SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
|
|
271
271
|
SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
|
|
272
|
+
SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
272
273
|
class IdCaptureValues extends GlobalValues {
|
|
273
274
|
}
|
|
274
275
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
@@ -5196,6 +5197,13 @@ const CameraError = class {
|
|
|
5196
5197
|
this.demoVideo.loop = true;
|
|
5197
5198
|
this.demoVideo.play();
|
|
5198
5199
|
}
|
|
5200
|
+
else {
|
|
5201
|
+
var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
|
|
5202
|
+
if (loaded === 'true') {
|
|
5203
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
5204
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
5205
|
+
}
|
|
5206
|
+
}
|
|
5199
5207
|
try {
|
|
5200
5208
|
await this.apiCall.AddStep(FlowSteps.CameraError);
|
|
5201
5209
|
}
|
|
@@ -5206,9 +5214,12 @@ const CameraError = class {
|
|
|
5206
5214
|
async buttonClick() {
|
|
5207
5215
|
this.buttonDisabled = true;
|
|
5208
5216
|
if (this.device.isIos) {
|
|
5217
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
|
|
5209
5218
|
window.location.reload();
|
|
5210
5219
|
}
|
|
5211
|
-
|
|
5220
|
+
else {
|
|
5221
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
5222
|
+
}
|
|
5212
5223
|
}
|
|
5213
5224
|
render() {
|
|
5214
5225
|
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("h1", { class: "color-red" }, this.title), index.h("div", null, index.h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), index.h("div", { hidden: this.device.isIos }, index.h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
|
|
@@ -6164,7 +6175,7 @@ function v4(options, buf, offset) {
|
|
|
6164
6175
|
}
|
|
6165
6176
|
|
|
6166
6177
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6167
|
-
const version$1 = "2.1.
|
|
6178
|
+
const version$1 = "2.1.18";
|
|
6168
6179
|
const description = "Person Identification Component";
|
|
6169
6180
|
const main = "./dist/index.cjs.js";
|
|
6170
6181
|
const module$1 = "./dist/index.js";
|
|
@@ -6542,6 +6553,8 @@ const LandingValidation = class {
|
|
|
6542
6553
|
if (state.initialised) {
|
|
6543
6554
|
this.buttonDisabled = true;
|
|
6544
6555
|
if (!(await Cameras.InitCameras(this.device))) {
|
|
6556
|
+
if (this.device.isIos)
|
|
6557
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
6545
6558
|
state.flowStatus = FlowStatus.CAMERAERROR;
|
|
6546
6559
|
}
|
|
6547
6560
|
else if (state.agreementsValidation) {
|
|
@@ -6569,7 +6582,7 @@ const LandingValidation = class {
|
|
|
6569
6582
|
}
|
|
6570
6583
|
}
|
|
6571
6584
|
render() {
|
|
6572
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, LandingValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("p", { class: "main-text font-size-2" }, LandingValues.Description), index.h("div", { class: "img-info" }, index.h("div", { class: "i-effect" }), index.h("img", { src: infoSvg })))), index.h("div", { class: "info-container" }, index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: idSvg })), index.h("h3", null, LandingValues.IdInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: deviceSvg })), index.h("h3", null, LandingValues.DeviceInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: validationSvg })), index.h("h3", null, LandingValues.SmsInfo))), index.h("div", { class: "terms-container" }, index.h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !state.initialised
|
|
6585
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", null, index.h("h1", { class: "text-center" }, LandingValues.Title), index.h("div", { class: "d-flex space-between align-center" }, index.h("p", { class: "main-text font-size-2" }, LandingValues.Description), index.h("div", { class: "img-info" }, index.h("div", { class: "i-effect" }), index.h("img", { src: infoSvg })))), index.h("div", { class: "info-container" }, index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: idSvg })), index.h("h3", null, LandingValues.IdInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: deviceSvg })), index.h("h3", null, LandingValues.DeviceInfo)), index.h("div", { class: "img-text" }, index.h("div", { class: "bg-img" }, index.h("img", { src: validationSvg })), index.h("h3", null, LandingValues.SmsInfo))), index.h("div", { class: "terms-container" }, index.h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", type: "button", disabled: !state.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, LandingValues.Button), index.h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
|
|
6573
6586
|
}
|
|
6574
6587
|
};
|
|
6575
6588
|
LandingValidation.style = landingValidationCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
-
import { CameraErrorValues } from '../../../helpers/textValues';
|
|
2
|
+
import { CameraErrorValues, SessionKeys } from '../../../helpers/textValues';
|
|
3
3
|
import store from '../../../helpers/store';
|
|
4
4
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
5
5
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
@@ -25,6 +25,13 @@ export class CameraError {
|
|
|
25
25
|
this.demoVideo.loop = true;
|
|
26
26
|
this.demoVideo.play();
|
|
27
27
|
}
|
|
28
|
+
else {
|
|
29
|
+
var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
|
|
30
|
+
if (loaded === 'true') {
|
|
31
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
32
|
+
store.flowStatus = FlowStatus.LANDING;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
28
35
|
try {
|
|
29
36
|
await this.apiCall.AddStep(FlowSteps.CameraError);
|
|
30
37
|
}
|
|
@@ -35,9 +42,12 @@ export class CameraError {
|
|
|
35
42
|
async buttonClick() {
|
|
36
43
|
this.buttonDisabled = true;
|
|
37
44
|
if (this.device.isIos) {
|
|
45
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
|
|
38
46
|
window.location.reload();
|
|
39
47
|
}
|
|
40
|
-
|
|
48
|
+
else {
|
|
49
|
+
store.flowStatus = FlowStatus.LANDING;
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
52
|
render() {
|
|
43
53
|
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("div", { hidden: this.device.isIos }, h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
-
import { LandingValues } from '../../../helpers/textValues';
|
|
2
|
+
import { LandingValues, SessionKeys } from '../../../helpers/textValues';
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
import info from '../../../assets/landing/info.svg';
|
|
5
5
|
import idSvg from '../../../assets/landing/id.svg';
|
|
@@ -44,6 +44,8 @@ export class LandingValidation {
|
|
|
44
44
|
if (store.initialised) {
|
|
45
45
|
this.buttonDisabled = true;
|
|
46
46
|
if (!(await Cameras.InitCameras(this.device))) {
|
|
47
|
+
if (this.device.isIos)
|
|
48
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
47
49
|
store.flowStatus = FlowStatus.CAMERAERROR;
|
|
48
50
|
}
|
|
49
51
|
else if (store.agreementsValidation) {
|
|
@@ -71,7 +73,7 @@ export class LandingValidation {
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
render() {
|
|
74
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: info })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idDevice })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idValidation })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !store.initialised
|
|
76
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: info })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idDevice })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idValidation })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !store.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
|
|
75
77
|
}
|
|
76
78
|
static get is() { return "landing-validation"; }
|
|
77
79
|
static get originalStyleUrls() {
|
|
@@ -50,6 +50,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
|
|
|
50
50
|
SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
|
|
51
51
|
SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
|
|
52
52
|
SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
|
|
53
|
+
SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
53
54
|
export class IdCaptureValues extends GlobalValues {
|
|
54
55
|
}
|
|
55
56
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
@@ -265,6 +265,7 @@ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
|
|
|
265
265
|
SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
|
|
266
266
|
SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
|
|
267
267
|
SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
|
|
268
|
+
SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
|
|
268
269
|
class IdCaptureValues extends GlobalValues {
|
|
269
270
|
}
|
|
270
271
|
IdCaptureValues.Button = 'Încerc din nou';
|
|
@@ -5192,6 +5193,13 @@ const CameraError = class {
|
|
|
5192
5193
|
this.demoVideo.loop = true;
|
|
5193
5194
|
this.demoVideo.play();
|
|
5194
5195
|
}
|
|
5196
|
+
else {
|
|
5197
|
+
var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
|
|
5198
|
+
if (loaded === 'true') {
|
|
5199
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
5200
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5195
5203
|
try {
|
|
5196
5204
|
await this.apiCall.AddStep(FlowSteps.CameraError);
|
|
5197
5205
|
}
|
|
@@ -5202,9 +5210,12 @@ const CameraError = class {
|
|
|
5202
5210
|
async buttonClick() {
|
|
5203
5211
|
this.buttonDisabled = true;
|
|
5204
5212
|
if (this.device.isIos) {
|
|
5213
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
|
|
5205
5214
|
window.location.reload();
|
|
5206
5215
|
}
|
|
5207
|
-
|
|
5216
|
+
else {
|
|
5217
|
+
state.flowStatus = FlowStatus.LANDING;
|
|
5218
|
+
}
|
|
5208
5219
|
}
|
|
5209
5220
|
render() {
|
|
5210
5221
|
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("div", { hidden: this.device.isIos }, h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
|
|
@@ -6160,7 +6171,7 @@ function v4(options, buf, offset) {
|
|
|
6160
6171
|
}
|
|
6161
6172
|
|
|
6162
6173
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6163
|
-
const version$1 = "2.1.
|
|
6174
|
+
const version$1 = "2.1.18";
|
|
6164
6175
|
const description = "Person Identification Component";
|
|
6165
6176
|
const main = "./dist/index.cjs.js";
|
|
6166
6177
|
const module = "./dist/index.js";
|
|
@@ -6538,6 +6549,8 @@ const LandingValidation = class {
|
|
|
6538
6549
|
if (state.initialised) {
|
|
6539
6550
|
this.buttonDisabled = true;
|
|
6540
6551
|
if (!(await Cameras.InitCameras(this.device))) {
|
|
6552
|
+
if (this.device.isIos)
|
|
6553
|
+
sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
|
|
6541
6554
|
state.flowStatus = FlowStatus.CAMERAERROR;
|
|
6542
6555
|
}
|
|
6543
6556
|
else if (state.agreementsValidation) {
|
|
@@ -6565,7 +6578,7 @@ const LandingValidation = class {
|
|
|
6565
6578
|
}
|
|
6566
6579
|
}
|
|
6567
6580
|
render() {
|
|
6568
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: infoSvg })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !state.initialised
|
|
6581
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: infoSvg })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !state.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
|
|
6569
6582
|
}
|
|
6570
6583
|
};
|
|
6571
6584
|
LandingValidation.style = landingValidationCss;
|