-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set stream to null after stopping all tracks
Add thank you screen Add capture back id Add hide back capture
- Loading branch information
Showing
6 changed files
with
153 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/components/document-capture/thank-you/ThankYou.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import styles from '../../styles'; | ||
|
||
class ThankYou extends HTMLElement { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
connectedCallback() { | ||
this.innerHTML = ` | ||
${styles} | ||
<div hidden id='thanks-screen' class='flow center'> | ||
<div class='section | flow'> | ||
<h1>Thank you</h1> | ||
${this.hideAttribution ? '' : ` | ||
<powered-by-smile-id></powered-by-smile-id> | ||
`} | ||
</div> | ||
</div> | ||
`; | ||
} | ||
} | ||
|
||
if ('customElements' in window && !window.customElements.get('thank-you')) { | ||
customElements.define('thank-you', ThankYou); | ||
} | ||
|
||
export { ThankYou }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* The type of image submitted in the job request | ||
* @readonly | ||
* @enum {number} | ||
*/ | ||
export const IMAGE_TYPE = { | ||
/** SELFIE_IMAGE_FILE Selfie image in .png or .jpg file format */ | ||
SELFIE_IMAGE_FILE: 0, | ||
/** ID_CARD_IMAGE_FILE ID card image in .png or .jpg file format */ | ||
ID_CARD_IMAGE_FILE: 1, | ||
/** SELFIE_IMAGE_BASE64 Base64 encoded selfie image (.png or .jpg) */ | ||
SELFIE_IMAGE_BASE64: 2, | ||
/** ID_CARD_IMAGE_BASE64 Base64 encoded ID card image (.png or .jpg) */ | ||
ID_CARD_IMAGE_BASE64: 3, | ||
/** LIVENESS_IMAGE_FILE Liveness image in .png or .jpg file format */ | ||
LIVENESS_IMAGE_FILE: 4, | ||
/** ID_CARD_BACK_IMAGE_FILE Back of ID card image in .png or .jpg file format */ | ||
ID_CARD_BACK_IMAGE_FILE: 5, | ||
/** LIVENESS_IMAGE_BASE64 Base64 encoded liveness image (.jpg or .png) */ | ||
LIVENESS_IMAGE_BASE64: 6, | ||
/** ID_CARD_BACK_IMAGE_BASE64 Base64 encoded back of ID card image (.jpg or .png) */ | ||
ID_CARD_BACK_IMAGE_BASE64: 7, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters