@idscan/onboarding 2.10.3 → 2.11.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/dist/Wrapper.css +1 -1
- package/dist/Wrapper.d.ts +108 -62
- package/dist/wrapper.es.js +8785 -2852
- package/dist/wrapper.umd.js +5 -1
- package/package.json +79 -70
- package/readme.md +15 -1
- package/dist/src/Wrapper.d.ts +0 -50
package/dist/Wrapper.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.idvc-preload-element{min-width:320px;height:520px}.vh-100{height:100vh}.d-none{display:none!important}.no-scroll{overflow:hidden;-webkit-overflow-scrolling:auto;position:fixed;width:100%}.qr-code__header{width:100%}.idvc-modal-background{--color-primary: #5185F3;top:0;left:0;z-index:2000;background-color:#0006;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding:20px 0;box-sizing:border-box}.idvc-after-submit{width:100%;height:100%;position:absolute}.idvc-mount-host{min-height:520px}.idvc{min-height:520px!important}.pos-relative{position:relative}.hidden-element{visibility:hidden;position:absolute}.idvc-modal{font-family:Inter,sans-serif;box-sizing:border-box;position:relative;flex-shrink:0;margin:auto 0;background:#fff;box-shadow:0 1px 3px #0000004d;z-index:2001;display:flex;gap:20px;align-items:center;justify-content:center;flex-direction:column;padding:20px;border-radius:12px;min-height:150px}.idvc-modal *{box-sizing:border-box}.idvc-modal_validation{min-width:300px;width:30%;max-width:500px}.idvc-modal_qr-code{max-width:480px}.idvc-modal .color-danger{color:#cb0b00;fill:#cb0b00}.idvc-modal .color-success{color:#67c23a;fill:#67c23a}.idvc-modal .color-primary{color:#409eff;fill:#409eff}.idvc-modal .w-100{width:100%}.idvc-modal .w-45{width:45%}.idvc-modal .exclamation-sign{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2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el-color-primary)}.idvc-modal__header{display:flex;align-items:center;justify-content:center;width:100%}.idvc-modal__header__body{display:flex;column-gap:12px}.idvc-modal__header__sign{transform:translateY(2px)}.idvc-modal__header__content{line-height:24px;font-size:20px;margin:0;font-weight:500}.idvc-modal__header__content_qr-code{line-height:44px;font-size:30px;color:#303133}.idvc-modal__header.center{justify-content:center;padding:0}.idvc-modal__body{font-size:16px;word-break:break-word;color:#1c1c1c}.idvc-modal__body__list{margin-left:0;padding-left:20px;text-align:justify;margin-top:0;margin-bottom:0}.idvc-modal__body__list--no-numbers{list-style-type:none;padding-left:0}.idvc-modal__body__list__item{margin-bottom:12px;line-height:22px}.idvc-modal__body__list__item:last-child{margin-bottom:0}.idvc-modal__body_qr-code{color:#000;text-align:left;min-height:250px;position:relative;width:100%;display:flex;align-items:center;justify-content:center}.idvc-modal__body_process_ready-header{font-weight:600;font-size:15px;margin:20px auto 5px}.idvc-modal__body_process_ready-text{display:inline-block;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#5a5b62}.idvc-modal__body_process_ready__canvas-container{margin:10px auto}.idvc-modal__body_process_ready-canvas{display:block;margin:0 auto}.idvc-modal__body_process_ready-info{margin:20px auto;padding:8px 12px;border-radius:6px}.idvc-modal__body_process_ready-info__text{margin-left:8px}.idvc-modal__body_process_validating-info__text{text-align:center}.idvc-modal__body_process_done-container{display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:20px}.idvc-modal__body_process_done__text{text-align:center;font-style:normal;font-weight:600;font-size:28px;line-height:48px}.idvc-modal__footer{display:grid;grid-template-columns:1fr 1fr;gap:25px;width:100%}.idvc-modal__footer.is-single-button{grid-template-columns:1fr}.idvc-modal__footer_qr-code{text-align:center}.idvc-modal.center{justify-content:center}.idvc-consent-form{font-family:Inter,sans-serif;background:#fff;display:flex;flex-direction:column;max-width:480px;z-index:1010;width:100%;margin:0 auto}.idvc-consent-form__header{padding:32px 40px;background:#f5f6f9;border-radius:4px 4px 0 0}.idvc-consent-form__header__content{font-size:30px;line-height:36px;font-weight:500;margin:0}.idvc-consent-form__body{display:flex;flex-direction:column;padding:20px 40px;font-size:16px!important;word-break:break-word;line-height:22px}.idvc-consent-form__body a{text-decoration-line:none}.idvc-consent-form__body a:visited{color:#00e}.idvc-consent-form__body .input-wrapper{display:flex;flex-direction:column;align-items:flex-start}.idvc-consent-form__body .input-wrapper label{color:#555e65;font-weight:500}.idvc-consent-form__body .input-wrapper input[type=text]{box-sizing:border-box;border-radius:6px;border:2px solid #dedfe1;height:40px;font-size:20px;margin-top:10px;width:100%}.idvc-consent-form__body .input-wrapper input[type=text]:focus{outline:none}.idvc-consent-form__body .checkbox-wrapper{display:flex;margin-top:20px;align-items:flex-start}.idvc-consent-form__body .checkbox-wrapper input[type=checkbox]{transform:scale(1.3);margin:7px 3px 3px -3px}.idvc-consent-form__body .checkbox-wrapper__text{margin-left:-20px;line-height:24px;padding-left:25px}.idvc-consent-form__body .checkbox-wrapper__star{margin-right:10px;align-self:flex-start}.idvc-consent-form__footer{display:flex;justify-content:flex-end;column-gap:25px;padding:0 40px 40px;margin-top:30px}.idvc-fixed{position:fixed}.color-red{color:red}.btn{line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:8px}.btn--default:focus,.btn--default:hover{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.btn--default:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.btn--primary{color:#fff;background-color:#5185f3;border-color:#5185f3}.btn--primary:focus,.btn--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}.btn--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:0}.btn--info{color:#fff;background-color:#4e5d6e;border-color:#4e5d6e}.btn--disabled{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.btn--disabled:hover{cursor:not-allowed;color:#fff;background-color:#a0cfff;border-color:#a0cfff}.qr-code-wrap{z-index:1000;margin:-10px auto 40px}.qr-code-wrap__button{background:#515d6c;border-radius:4px;width:100%;display:inline-block;white-space:nowrap;cursor:pointer;border:1px solid #515D6C;color:var(--color-white);-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:18px 20px;font-style:normal;font-weight:500;font-size:14px;line-height:1.4}.qr-code-wrap__content{display:flex;justify-content:center;align-items:center;column-gap:13px}.qr-code-wrap__button:hover{background-color:#909399;border-color:#909399}.loading-spinner{display:flex;align-items:center;justify-content:center;width:100%;min-height:120px}.loading-spinner .circular{width:60px;height:60px;animation:loading-rotate 2s linear infinite}.loading-spinner .circular .path{stroke:#5185f3;stroke-width:2;stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:loading-dash 1.5s ease-in-out infinite}.el-loading-spinner_qr-code{display:flex;align-items:center;flex-direction:column;row-gap:25px;padding:10px}.el-loading-spinner_qr-code .circular{height:100px;width:100px;stroke:#5185f3}.el-loading-spinner_qr-code .circular__background{animation:none;position:absolute}.el-loading-spinner_qr-code .circular .path{stroke-width:1}.el-loading-spinner_qr-code .circular .path__background{stroke:#c6c6c6;stroke-dasharray:none}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}#idvc-wrapper-container{position:relative}
|
|
1
|
+
.d-none{display:none!important}.qr-code__header{width:100%}.idvc-modal-background{--color-primary: #5185F3;top:0;left:0;z-index:2000;background-color:#0006;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding:20px 0;box-sizing:border-box}.idvc-after-submit{width:100%;height:100%;position:absolute}.idvc-mount-host{min-height:520px}.idvc{min-height:520px!important}.hidden-element{visibility:hidden;position:absolute}.idvc-modal{font-family:Inter,sans-serif;box-sizing:border-box;position:relative;flex-shrink:0;margin:auto 0;background:#fff;box-shadow:0 1px 3px #0000004d;z-index:2001;display:flex;gap:20px;align-items:center;justify-content:center;flex-direction:column;padding:20px;border-radius:12px;min-height:150px}.idvc-modal *{box-sizing:border-box}.idvc-modal .color-danger{color:#cb0b00;fill:#cb0b00}.idvc-modal .color-success{color:#67c23a;fill:#67c23a}.idvc-modal .color-primary{color:#409eff;fill:#409eff}.idvc-modal .w-100{width:100%}.idvc-modal .w-45{width:45%}.idvc-modal .exclamation-sign{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjQ1LjMxMXB4IiBoZWlnaHQ9IjQ1LjMxMXB4IiB2aWV3Qm94PSIwIDAgNDUuMzExIDQ1LjMxMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDUuMzExIDQ1LjMxMTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTIyLjY3NSwwLjAyY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MDAxLDAuMDI5LDAuMDAxYzAuMDA5LDAsMC4wMTktMC4wMDEsMC4wMjktMC4wMDFDMjYuNjg5LDUuMjksMjguMTA5LDguNzI3LDI3Ljk4OCwxMC41Nzh6Ii8+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==)}.idvc-modal__close-btn{width:20px;height:20px;cursor:pointer;margin-left:auto}.idvc-modal__close-btn:hover{background-color:var(--el-color-primary)}.idvc-modal__header{display:flex;align-items:center;justify-content:center;width:100%}.idvc-modal__header__body{display:flex;column-gap:12px}.idvc-modal__header__sign{transform:translateY(2px)}.idvc-modal__header__content{line-height:24px;font-size:20px;margin:0;font-weight:500}.idvc-modal__header__content_qr-code{line-height:44px;font-size:30px;color:#303133}.idvc-modal__header.center{justify-content:center;padding:0}.idvc-modal__body{font-size:16px;word-break:break-word;color:#1c1c1c}.idvc-modal__body__list{margin-left:0;padding-left:20px;text-align:justify;margin-top:0;margin-bottom:0}.idvc-modal__body__list--no-numbers{list-style-type:none;padding-left:0}.idvc-modal__body__list__item{margin-bottom:12px;line-height:22px}.idvc-modal__body__list__item:last-child{margin-bottom:0}.idvc-modal__body_qr-code{color:#000;text-align:left;min-height:250px;position:relative;width:100%;display:flex;align-items:center;justify-content:center}.idvc-modal__body_process_ready-header{font-weight:600;font-size:15px;margin:20px auto 5px}.idvc-modal__body_process_ready-text{display:inline-block;font-style:normal;font-weight:400;font-size:14px;line-height:19px;color:#5a5b62}.idvc-modal__body_process_ready__canvas-container{margin:10px auto}.idvc-modal__body_process_ready-canvas{display:block;margin:0 auto}.idvc-modal__body_process_ready-info{margin:20px auto;padding:8px 12px;border-radius:6px}.idvc-modal__body_process_ready-info__text{margin-left:8px}.idvc-modal__body_process_validating-info__text{text-align:center}.idvc-modal__body_process_done-container{display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:20px}.idvc-modal__body_process_done__text{text-align:center;font-style:normal;font-weight:600;font-size:28px;line-height:48px}.idvc-modal__footer{display:grid;grid-template-columns:1fr 1fr;gap:25px;width:100%}.idvc-modal__footer.is-single-button{grid-template-columns:1fr}.idvc-modal__footer_qr-code{text-align:center}.idvc-modal.center{justify-content:center}.idvc-consent-form{--form-text: #1C1C1C;--form-border: #D0D5DD;--form-primary: var(--color-primary, #5185F3);--form-required: #D92D20;font-family:Inter,sans-serif;box-sizing:border-box;display:flex;flex-direction:column;width:calc(100% - 32px);max-width:480px;margin:24px auto;z-index:1010;background:#fff;border:1px solid #EAECF0;border-radius:16px;box-shadow:0 12px 32px #1018281a,0 2px 6px #1018280f;color:var(--form-text);overflow:hidden}.idvc-consent-form *{box-sizing:border-box}.idvc-consent-form__header{padding:28px 28px 0}.idvc-consent-form__header__content{margin:0;font-size:22px;line-height:30px;font-weight:600;color:var(--form-text)}.idvc-consent-form__body{display:flex;flex-direction:column;row-gap:20px;padding:16px 28px 0;font-size:15px;line-height:22px;word-break:break-word}.idvc-consent-form__body #idvc-consent-form-text{max-height:240px;overflow-y:auto;margin:0;padding:14px 16px;border-radius:10px;background:#f9fafb;border:1px solid #EAECF0;color:var(--form-text)}.idvc-consent-form__body a{color:var(--form-primary);text-decoration:underline;text-underline-offset:2px}.idvc-consent-form__body .color-red{color:var(--form-required)}.idvc-consent-form__body sup{top:0;font-size:1em;vertical-align:baseline}.idvc-consent-form__body .input-wrapper{display:flex;flex-direction:column;align-items:stretch;row-gap:6px}.idvc-consent-form__body .input-wrapper label{font-size:14px;line-height:20px;font-weight:500;color:var(--form-text)}.idvc-consent-form__body .input-wrapper input[type=text]{width:100%;height:44px;margin:0;padding:0 14px;font:inherit;font-size:16px;color:var(--form-text);background:#fff;border:1px solid var(--form-border);border-radius:10px;box-shadow:0 1px 2px #1018280d;transition:border-color .1s,box-shadow .1s}.idvc-consent-form__body .input-wrapper input[type=text]:focus{outline:none;border-color:var(--form-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--form-primary) 18%,transparent)}.idvc-consent-form__body .checkbox-wrapper{display:flex;align-items:flex-start;column-gap:4px;margin:0}.idvc-consent-form__body .checkbox-wrapper__star{order:1;flex-shrink:0;line-height:22px}.idvc-consent-form__body .checkbox-wrapper input[type=checkbox]{flex-shrink:0;width:18px;height:18px;margin:2px 8px 0 0;accent-color:var(--form-primary);cursor:pointer;transform:none;order:0}.idvc-consent-form__body .checkbox-wrapper__text{order:2;margin:0;padding:0;line-height:22px;color:var(--form-text);cursor:pointer}.idvc-consent-form__footer{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:24px 28px 28px}.idvc-consent-form__footer .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-consent-form__footer .btn--info{color:var(--form-text);background:#fff;border-color:var(--form-border)}.idvc-consent-form__footer .btn--info:focus,.idvc-consent-form__footer .btn--info:hover{background:#f9fafb;border-color:#98a2b3}.idvc-consent-form__footer .btn--primary{background-color:var(--form-primary);border-color:var(--form-primary)}.idvc-consent-form__footer .btn--primary:focus,.idvc-consent-form__footer .btn--primary:hover{background-color:var(--form-primary);border-color:var(--form-primary);filter:brightness(1.08)}.idvc-consent-form__footer .btn--primary.btn--disabled,.idvc-consent-form__footer .btn--primary:disabled{color:#fff;background-color:var(--form-primary);border-color:var(--form-primary);opacity:.45;filter:none;cursor:not-allowed}@media(max-width:400px){.idvc-consent-form__header{padding:24px 20px 0}.idvc-consent-form__body{padding:16px 20px 0}.idvc-consent-form__footer{padding:20px}}.idvc-fixed{position:fixed}.color-red{color:red}.btn{line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:8px}.btn--default:focus,.btn--default:hover{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.btn--default:active{color:#3a8ee6;border-color:#3a8ee6;outline:0}.btn--primary{color:#fff;background-color:#5185f3;border-color:#5185f3}.btn--primary:focus,.btn--primary:hover{background:#66b1ff;border-color:#66b1ff;color:#fff}.btn--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:0}.btn--info{color:#fff;background-color:#4e5d6e;border-color:#4e5d6e}.btn--disabled{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.btn--disabled:hover{cursor:not-allowed;color:#fff;background-color:#a0cfff;border-color:#a0cfff}.qr-code-wrap{z-index:1000;margin:-10px auto 40px}.qr-code-wrap__button{background:#515d6c;border-radius:4px;width:100%;display:inline-block;white-space:nowrap;cursor:pointer;border:1px solid #515D6C;color:var(--color-white);-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:18px 20px;font-style:normal;font-weight:500;font-size:14px;line-height:1.4}.qr-code-wrap__content{display:flex;justify-content:center;align-items:center;column-gap:13px}.qr-code-wrap__button:hover{background-color:#909399;border-color:#909399}.loading-spinner{display:flex;align-items:center;justify-content:center;width:100%;min-height:120px}.loading-spinner .circular{width:60px;height:60px;animation:loading-rotate 2s linear infinite}.loading-spinner .circular .path{stroke:#5185f3;stroke-width:2;stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:loading-dash 1.5s ease-in-out infinite}.el-loading-spinner_qr-code{display:flex;align-items:center;flex-direction:column;row-gap:25px;padding:10px}.el-loading-spinner_qr-code .circular{height:100px;width:100px;stroke:#5185f3}.el-loading-spinner_qr-code .circular__background{animation:none;position:absolute}.el-loading-spinner_qr-code .circular .path{stroke-width:1}.el-loading-spinner_qr-code .circular .path__background{stroke:#c6c6c6;stroke-dasharray:none}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}#idvc-wrapper-container{position:relative}.idvc-modal_validation,.idvc-modal_qr-code{--modal-text: #1C1C1C;--modal-text-secondary: #5A5B62;--modal-border: #EAECF0;--modal-primary: var(--color-primary, #5185F3);--modal-danger: #D92D20;--modal-danger-bg: #FEECEB;--modal-info: var(--color-primary, #5185F3);--modal-info-bg: #EEF3FE;--modal-success: #12B76A;--modal-success-bg: #E7F8EF;--modal-warning-text: #93370D;--modal-warning-bg: #FFFAEB;--modal-warning-border: #FEDF89;width:calc(100% - 32px);max-width:420px;gap:0;min-height:0;padding:32px 28px 28px;border-radius:16px;box-shadow:0 12px 32px #1018282e,0 2px 6px #10182814;text-align:center;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_qr-code .idvc-modal__header__content{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_validation .idvc-modal__close-btn,.idvc-modal_qr-code .idvc-modal__close-btn{position:absolute;top:14px;right:14px;z-index:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:8px;margin:0;border-radius:50%;color:var(--modal-text-secondary);transition:background-color .1s}.idvc-modal_validation .idvc-modal__close-btn:hover,.idvc-modal_validation .idvc-modal__close-btn:focus-visible,.idvc-modal_qr-code .idvc-modal__close-btn:hover,.idvc-modal_qr-code .idvc-modal__close-btn:focus-visible{background-color:#f2f4f7;outline:none}.idvc-modal_validation .idvc-modal__close-btn svg,.idvc-modal_qr-code .idvc-modal__close-btn svg{width:100%;height:100%}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{width:100%;min-height:44px;padding:12px 16px;font-size:15px;font-weight:600;border-radius:10px}.idvc-modal_validation .btn--primary,.idvc-modal_qr-code .btn--primary{background-color:var(--modal-primary);border-color:var(--modal-primary)}.idvc-modal_validation .btn--primary:focus,.idvc-modal_validation .btn--primary:hover,.idvc-modal_qr-code .btn--primary:focus,.idvc-modal_qr-code .btn--primary:hover{background-color:var(--modal-primary);border-color:var(--modal-primary);filter:brightness(1.08)}.idvc-modal_validation .btn--default,.idvc-modal_qr-code .btn--default{color:var(--modal-text);border-color:#d0d5dd}.idvc-modal_validation .btn--default:focus,.idvc-modal_validation .btn--default:hover,.idvc-modal_qr-code .btn--default:focus,.idvc-modal_qr-code .btn--default:hover{color:var(--modal-text);background-color:#f9fafb;border-color:#98a2b3}.idvc-modal_validation>.loading-spinner,.idvc-modal_qr-code>.loading-spinner{min-height:140px}.idvc-modal_validation .idvc-modal__header__body{flex-direction:column;align-items:center;row-gap:16px}.idvc-modal_validation .idvc-modal__header__sign{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--modal-info-bg);transform:none}.idvc-modal_validation .idvc-modal__header__sign svg{display:block;width:30px;height:30px}.idvc-modal_validation .idvc-modal__header__sign--danger{background:var(--modal-danger-bg)}.idvc-modal_validation .idvc-modal__header__sign--success{background:var(--modal-success-bg)}.idvc-modal_validation .color-danger{color:var(--modal-danger);fill:var(--modal-danger)}.idvc-modal_validation .color-primary{color:var(--modal-info);fill:var(--modal-info)}.idvc-modal_validation .color-success{color:var(--modal-success);fill:var(--modal-success)}.idvc-modal_validation .idvc-modal__body{width:100%;margin-top:8px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_validation .idvc-modal__body:has(>.idvc-modal__body__list:empty){display:none}.idvc-modal_validation .idvc-modal__body__list{display:inline-block;max-width:100%;text-align:left}.idvc-modal_validation .idvc-modal__body__list--no-numbers{display:block;text-align:center}.idvc-modal_validation .idvc-modal__body__list__item{margin-bottom:8px}.idvc-modal_validation .idvc-modal__footer{gap:12px;margin-top:24px}.idvc-modal_validation.center{padding:36px 28px}.idvc-modal_qr-code{max-width:440px}.idvc-modal_qr-code .idvc-modal__header-wrap{padding:0 24px}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:22px;line-height:30px}.idvc-modal_qr-code .idvc-modal__body_qr-code{min-height:180px;margin-top:4px;color:var(--modal-text);text-align:center}.idvc-modal_qr-code .idvc-modal__body_process_ready{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_ready-header{max-width:300px;margin:8px auto 20px;font-size:15px;line-height:22px;font-weight:400;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_ready__canvas-container{display:inline-block;margin:0 auto;padding:12px;border:1px solid var(--modal-border);border-radius:16px;background:#fff;box-shadow:0 1px 2px #1018280f}.idvc-modal_qr-code .idvc-modal__body_process_ready-canvas{border-radius:4px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info{display:flex;align-items:flex-start;column-gap:10px;margin:20px 0 0;padding:12px 14px;border:1px solid var(--modal-warning-border);border-radius:10px;background:var(--modal-warning-bg);text-align:left}.idvc-modal_qr-code .idvc-modal__body_process_ready-info svg{flex-shrink:0;width:16px;height:16px;margin-top:2px}.idvc-modal_qr-code .idvc-modal__body_process_ready-info__text{margin-left:0;font-size:13px;line-height:19px;color:var(--modal-warning-text)}.idvc-modal_qr-code .idvc-modal__body_process_validating{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code{min-height:180px;padding:0;row-gap:20px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .circular{width:72px;height:72px}.idvc-modal_qr-code .idvc-modal__body_process_validating .el-loading-spinner_qr-code .path{stroke:var(--modal-primary);stroke-width:2}.idvc-modal_qr-code .idvc-modal__body_process_validating-info__text{max-width:280px;font-size:15px;line-height:22px;color:var(--modal-text-secondary)}.idvc-modal_qr-code .idvc-modal__body_process_done{width:100%}.idvc-modal_qr-code .idvc-modal__body_process_done-container{min-height:180px;row-gap:16px}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{box-sizing:content-box;width:30px;height:30px;padding:13px;border-radius:50%;background:var(--modal-danger-bg);fill:var(--modal-danger)}.idvc-modal_qr-code .idvc-modal__body_process_done__text{font-size:20px;line-height:28px;font-weight:600;color:var(--modal-text)}.idvc-modal_qr-code .idvc-modal__footer_qr-code{width:100%}.idvc-modal_qr-code .idvc-modal__footer_qr-code:not(:empty){margin-top:20px}@media(max-width:400px){.idvc-modal_validation,.idvc-modal_qr-code{padding:28px 20px 20px}.idvc-modal_validation .idvc-modal__footer{grid-template-columns:1fr}.idvc-modal_qr-code .idvc-modal__header__content_qr-code{font-size:19px;line-height:26px}}@keyframes idvc-modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}}.idvc-modal-background:has(>.idvc-modal_validation,>.idvc-modal_qr-code){animation:idvc-fade-in .2s ease-out}.idvc-modal_validation,.idvc-modal_qr-code{animation:idvc-modal-in .28s cubic-bezier(.22,1,.36,1)}.idvc-modal_validation .idvc-modal__header__sign{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .08s backwards}.idvc-modal_validation .idvc-modal__header__content,.idvc-modal_validation .idvc-modal__body,.idvc-modal_validation .idvc-modal__footer{animation:idvc-rise-in .32s cubic-bezier(.22,1,.36,1) .12s backwards}.idvc-modal_qr-code .idvc-modal__body_process_ready,.idvc-modal_qr-code .idvc-modal__body_process_validating,.idvc-modal_qr-code .idvc-modal__body_process_done{animation:idvc-rise-in .3s cubic-bezier(.22,1,.36,1)}.idvc-modal_qr-code .idvc-modal__body_process_done-container svg{animation:idvc-pop-in .42s cubic-bezier(.34,1.56,.64,1) .06s backwards}.idvc-modal_qr-code .idvc-modal__footer_qr-code .btn{animation:idvc-fade-in .2s ease-out}.idvc-modal_validation .btn,.idvc-modal_qr-code .btn{transition:background-color .15s,border-color .15s,filter .15s,opacity .15s,transform .1s}.idvc-modal_validation .btn:active:not(:disabled),.idvc-modal_qr-code .btn:active:not(:disabled){transform:scale(.98)}@keyframes idvc-fade-in{0%{opacity:0}}@keyframes idvc-rise-in{0%{opacity:0;transform:translateY(6px)}}@keyframes idvc-pop-in{0%{opacity:0;transform:scale(.6)}}@media(prefers-reduced-motion:reduce){.idvc-modal-background,.idvc-modal_validation,.idvc-modal_validation *,.idvc-modal_qr-code,.idvc-modal_qr-code *:not(.circular,.path){animation:none!important;transition:none!important}}
|
package/dist/Wrapper.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ import { StepConfig } from '@idscan/idvc2/dist/types/defaultConfig';
|
|
|
6
6
|
|
|
7
7
|
declare type AdditionalData = Record<string, string>;
|
|
8
8
|
|
|
9
|
+
declare enum ApiVersion {
|
|
10
|
+
LEGACY = "v2",
|
|
11
|
+
V2 = "2-online"
|
|
12
|
+
}
|
|
13
|
+
|
|
9
14
|
declare type ApplicantDocument = {
|
|
10
15
|
abbr3Country: string;
|
|
11
16
|
abbrCountry: string;
|
|
@@ -35,6 +40,30 @@ declare type ApplicantDocument = {
|
|
|
35
40
|
ssn?: string;
|
|
36
41
|
};
|
|
37
42
|
|
|
43
|
+
declare type CommonApplicantValidation = {
|
|
44
|
+
applicantId: string;
|
|
45
|
+
attemptId: number;
|
|
46
|
+
attemptsCount: number;
|
|
47
|
+
attemptsLeft: number;
|
|
48
|
+
isCompleted: boolean;
|
|
49
|
+
callBackUrl: string;
|
|
50
|
+
faceSuccess: boolean;
|
|
51
|
+
documentSuccess: boolean;
|
|
52
|
+
documentHasNotExpired: boolean;
|
|
53
|
+
invalidDataErrors: InvalidDataError[] | null;
|
|
54
|
+
hasRiskEvents: boolean;
|
|
55
|
+
reference: string | null;
|
|
56
|
+
referenceId: string | null;
|
|
57
|
+
requestData: ValidationRequestDataModel;
|
|
58
|
+
images: ValidationRequestImagesDto;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
declare type DocumentDto = {
|
|
62
|
+
type: string | null;
|
|
63
|
+
country: string | null;
|
|
64
|
+
state: string | null;
|
|
65
|
+
};
|
|
66
|
+
|
|
38
67
|
declare type DocumentType_2 = {
|
|
39
68
|
type: DocumentTypeName;
|
|
40
69
|
steps: StepConfig[];
|
|
@@ -46,6 +75,12 @@ declare type DocumentValidationTest = {
|
|
|
46
75
|
status: number;
|
|
47
76
|
statusString: string;
|
|
48
77
|
reason: string;
|
|
78
|
+
rawResponse: unknown;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
declare type FaceVerificationResultDto = {
|
|
82
|
+
isMatch: boolean | null;
|
|
83
|
+
score: number | null;
|
|
49
84
|
};
|
|
50
85
|
|
|
51
86
|
declare type FailedApplicantValidationResult = {
|
|
@@ -83,6 +118,7 @@ declare interface IWrapperConfig {
|
|
|
83
118
|
callbacks?: IDVCConfigCallbacks;
|
|
84
119
|
demoMode?: boolean;
|
|
85
120
|
domainApi: string;
|
|
121
|
+
apiVersion?: ApiVersion;
|
|
86
122
|
domainId: string;
|
|
87
123
|
publicKey: string;
|
|
88
124
|
documentTypes?: IWebLibDocument[];
|
|
@@ -105,8 +141,21 @@ declare type JSON_2 = string;
|
|
|
105
141
|
|
|
106
142
|
declare type JSONString = string;
|
|
107
143
|
|
|
144
|
+
declare type LegacyOnlyValidation = {
|
|
145
|
+
documentValidationTests: DocumentValidationTest[];
|
|
146
|
+
notificationType: number;
|
|
147
|
+
};
|
|
148
|
+
|
|
108
149
|
declare type PackageNumberVersion = string;
|
|
109
150
|
|
|
151
|
+
declare type ParsedDataDto = {
|
|
152
|
+
isOcrSuccess: boolean | null;
|
|
153
|
+
isPdf417Success: boolean | null;
|
|
154
|
+
isMrzSuccess: boolean | null;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type PartialApplicantValidation = Partial<CommonApplicantValidation> & Partial<LegacyOnlyValidation> & Partial<V2OnlyValidation> & Partial<FailedApplicantValidationResult>;
|
|
158
|
+
|
|
110
159
|
declare enum ResponseStatus {
|
|
111
160
|
SUCCESS = 0,
|
|
112
161
|
FAIL = 1,
|
|
@@ -115,24 +164,13 @@ declare enum ResponseStatus {
|
|
|
115
164
|
COMPLETE = 4
|
|
116
165
|
}
|
|
117
166
|
|
|
118
|
-
declare
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
invalidDataErrors: InvalidDataError[] | null;
|
|
126
|
-
faceSuccess: boolean;
|
|
127
|
-
documentSuccess: boolean;
|
|
128
|
-
documentHasNotExpired: boolean;
|
|
129
|
-
documentValidationTests: DocumentValidationTest[];
|
|
130
|
-
callBackUrl: string;
|
|
131
|
-
applicantId: string;
|
|
132
|
-
attemptId: number;
|
|
133
|
-
attemptsCount: number;
|
|
134
|
-
notificationType: number;
|
|
135
|
-
};
|
|
167
|
+
declare enum ResponseStatusName {
|
|
168
|
+
SUCCESS = "Success",
|
|
169
|
+
FAIL = "Fail",
|
|
170
|
+
INVALID_DATA = "InvalidData",
|
|
171
|
+
ERROR = "Error",
|
|
172
|
+
COMPLETE = "Complete"
|
|
173
|
+
}
|
|
136
174
|
|
|
137
175
|
declare type SuccessConfiguration = {
|
|
138
176
|
cssStyles: JSON_2;
|
|
@@ -141,70 +179,78 @@ declare type SuccessConfiguration = {
|
|
|
141
179
|
consentText: string;
|
|
142
180
|
checkboxText: string;
|
|
143
181
|
showConsentForm: boolean;
|
|
144
|
-
verifyFace
|
|
182
|
+
verifyFace?: boolean;
|
|
145
183
|
showQrCode?: boolean;
|
|
146
184
|
};
|
|
147
185
|
|
|
186
|
+
declare type V2OnlyValidation = {
|
|
187
|
+
verificationResult: VerificationResultModelDto;
|
|
188
|
+
};
|
|
189
|
+
|
|
148
190
|
declare type ValidateCallbackData = ValidationApplicant & {
|
|
149
191
|
forceComplete?: boolean;
|
|
150
192
|
};
|
|
151
193
|
|
|
152
|
-
declare type ValidationApplicant =
|
|
194
|
+
declare type ValidationApplicant = PartialApplicantValidation & {
|
|
195
|
+
status: ResponseStatus;
|
|
196
|
+
validationStatus?: ValidationStatus | null;
|
|
197
|
+
validationStatusName?: ResponseStatusName | null;
|
|
198
|
+
documentType?: DocumentTypeIndex | null;
|
|
199
|
+
document?: ValidationDocument | null;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare type ValidationDocument = ApplicantDocument | DocumentDto;
|
|
203
|
+
|
|
204
|
+
declare type ValidationRequestDataModel = {
|
|
205
|
+
documentType: DocumentTypeIndex;
|
|
206
|
+
captureMethod: string | null;
|
|
207
|
+
userAgent: string | null;
|
|
208
|
+
frontEndMetadata: string | null;
|
|
209
|
+
clientVersion: string | null;
|
|
210
|
+
fullName: string | null;
|
|
211
|
+
verifyFace: boolean | null;
|
|
212
|
+
isOcrEnabled: boolean | null;
|
|
213
|
+
isBackOrSecondImageProcessingEnabled: boolean | null;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
declare type ValidationRequestImagesDto = {
|
|
217
|
+
frontImageBase64: string | null;
|
|
218
|
+
backOrSecondImageBase64: string | null;
|
|
219
|
+
faceImageBase64: string | null;
|
|
220
|
+
};
|
|
153
221
|
|
|
154
222
|
declare type ValidationStatus = {
|
|
155
|
-
expired
|
|
156
|
-
documentIsValid
|
|
157
|
-
faceIsValid
|
|
158
|
-
antiSpoofingIsValid
|
|
223
|
+
expired?: boolean | null;
|
|
224
|
+
documentIsValid?: boolean | null;
|
|
225
|
+
faceIsValid?: boolean | null;
|
|
226
|
+
antiSpoofingIsValid?: boolean | null;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
declare type VerificationResultModelDto = {
|
|
230
|
+
documentType: DocumentTypeIndex | null;
|
|
231
|
+
reference: string | null;
|
|
232
|
+
document: DocumentDto;
|
|
233
|
+
faceVerificationResult: FaceVerificationResultDto;
|
|
234
|
+
parsedData: ParsedDataDto;
|
|
159
235
|
};
|
|
160
236
|
|
|
161
237
|
declare class Wrapper {
|
|
162
|
-
private
|
|
163
|
-
private
|
|
164
|
-
private
|
|
165
|
-
private readonly IDVCModule;
|
|
166
|
-
private validationOutput;
|
|
167
|
-
private form;
|
|
168
|
-
private validationModal;
|
|
169
|
-
private QRCodeModal;
|
|
170
|
-
private options;
|
|
171
|
-
private embeddedAppConnectionId;
|
|
172
|
-
private readonly config;
|
|
173
|
-
private readonly fingerPrintData;
|
|
174
|
-
private qrCodeBtn;
|
|
175
|
-
private wrapperContainerId;
|
|
238
|
+
private app?;
|
|
239
|
+
private container?;
|
|
240
|
+
private idvcElement?;
|
|
176
241
|
constructor(config: IWrapperConfig, IDVCModule: typeof default_2);
|
|
177
|
-
private get isEmbeddedFromQR();
|
|
178
|
-
private get QRCodeIsAvailable();
|
|
179
242
|
updateConfig(newConfig: JSONString): void;
|
|
180
243
|
/**
|
|
181
244
|
* reinitialize the library with new applicant id
|
|
182
245
|
*/
|
|
183
246
|
setApplicant(applicantId: string): Promise<void>;
|
|
184
|
-
private retryInit;
|
|
185
247
|
restart(): Promise<void>;
|
|
186
248
|
showLoader(val: boolean, bottomText?: string, topText?: string): void;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
private unmount;
|
|
193
|
-
private checkApplicantIsValid;
|
|
194
|
-
private prepareConfig;
|
|
195
|
-
private showSpinner;
|
|
196
|
-
private submit;
|
|
197
|
-
private showValidationSuccess;
|
|
198
|
-
private createPostModel;
|
|
199
|
-
private start;
|
|
200
|
-
private mountQR;
|
|
201
|
-
private loadOptions;
|
|
202
|
-
private forceClose;
|
|
203
|
-
private mountValidationModal;
|
|
204
|
-
private mountQRCodeModal;
|
|
205
|
-
private processEmbeddedAppStart;
|
|
206
|
-
private processEmbeddedAppEnd;
|
|
207
|
-
private onError;
|
|
249
|
+
/**
|
|
250
|
+
* Removes the wrapper UI, stops the pending requests to DIVE Online
|
|
251
|
+
* and puts the IDVC element back in place of the wrapper container.
|
|
252
|
+
*/
|
|
253
|
+
destroy(): void;
|
|
208
254
|
}
|
|
209
255
|
export default Wrapper;
|
|
210
256
|
|