Skip to content

Commit

Permalink
Merge branch 'main' into allow-hiding-attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ayinloya authored Aug 28, 2024
2 parents 38feb09 + 18ea6cd commit 82795fb
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 25 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.3.9] - 2024-08-28

### Added

- Added new designs to smart selfie authentication

### Changed

- Fix theme color not affecting biometric and smart selfie authentication

## [1.3.8] - 2024-08-15

### Changed
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example",
"private": true,
"version": "1.3.8",
"version": "1.3.9",
"type": "module",
"main": "server.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ button[data-type='icon'] {

.back-button-text {
line-height: 1;
color: rgb(21, 31, 114);
color: var(--color-default, rgb(21, 31, 114));
}

.user-details {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smileid/web",
"version": "1.3.8",
"version": "1.3.9",
"description": "A collection of SmileID browser clients and components",
"main": "index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/embed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smileid/embed",
"version": "1.3.8",
"version": "1.3.9",
"description": "Self Hosted Integration for Smile Identity on the Web",
"private": true,
"main": "inline.js",
Expand Down
6 changes: 4 additions & 2 deletions packages/embed/src/basic-kyc.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,14 @@ <h1 class="center font-size-500 max-width:100ch">Select ID Type</h1>
opacity=".4"
/>
<path
fill="#001096"
fill="var(--color-default, #001096)"
d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"
/>
</svg>
</button>
<div class="back-button-text">Back</div>
<div class="back-button-text" style="color: var(--color-default)">
Back
</div>
</div>
<button data-type="icon" type="button" class="close-iframe">
<svg
Expand Down
2 changes: 1 addition & 1 deletion packages/embed/src/biometric-kyc.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ <h1 class="center font-size-500 max-width:100ch">Select ID Type</h1>
opacity=".4"
/>
<path
fill="#001096"
fill="var(--color-default, #001096)"
d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"
/>
</svg>
Expand Down
1 change: 1 addition & 0 deletions packages/embed/src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ button[data-type='icon'] {

.back-button-text {
line-height: 1;
font-size: 14px;
color: rgb(21, 31, 114);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/embed/src/ekyc.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h1 class="center font-size-500 max-width:100ch">Select ID Type</h1>
opacity=".4"
/>
<path
fill="#001096"
fill="var(--color-default, #001096)"
d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion packages/smart-camera-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smile_identity/smart-camera-web",
"version": "1.3.8",
"version": "1.3.9",
"description": "WebComponent for smartly capturing images on the web, for use with SmileIdentity",
"main": "smart-camera-web.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function templateString() {
.back-button-text {
font-size: 11px;
line-height: 11px;
color: rgb(21, 31, 114);
line-height: 1;
color: ${this.themeColor} !important;
}
img {
Expand Down Expand Up @@ -231,7 +231,7 @@ function templateString() {
gap: 0.5rem;
}
.processing-list__item__title {
color: #151F72;
color: var(--color-theme);
}
.processing-list__items-item__description {
Expand Down Expand Up @@ -323,7 +323,7 @@ function templateString() {
<button type='button' data-type='icon' id="back-button" class="back-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
<path fill="#DBDBC4" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z" opacity=".4"/>
<path fill="#001096" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
<path fill="${this.themeColor}" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
</svg>
</button>
<div class="back-button-text">Back</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class SelfieCaptureInstructions extends HTMLElement {

this.allowButton = this.shadowRoot.querySelector('#allow');
this.navigation = this.shadowRoot.querySelector('smileid-navigation');
this.cancelButton = this.shadowRoot.querySelector('#cancel');

this.navigation.addEventListener('navigation.back', () => {
this.handleBackEvents();
Expand All @@ -597,6 +598,10 @@ class SelfieCaptureInstructions extends HTMLElement {
},
false,
);

this.cancelButton.addEventListener('click', () => {
this.handleBackEvents();
});
}

get hideBack() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smileid/signature-pad",
"version": "1.3.8",
"version": "1.3.9",
"private": "true",
"exports": {
".": "./index.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class SmartCameraWeb extends HTMLElement {
'hide-back-of-id',
'hide-back-to-host',
'show-navigation',
'hide-back-of-id',
'theme-color',
'hide-attribution',
];
Expand All @@ -82,6 +81,7 @@ class SmartCameraWeb extends HTMLElement {
case 'hide-back-of-id':
case 'hide-back-to-host':
case 'show-navigation':
case 'theme-color':
this.disconnectedCallback();
this.shadowRoot.innerHTML = this.render();
this.setUpEventListeners();
Expand Down
18 changes: 15 additions & 3 deletions packages/web-components/components/totp-consent/src/TotpConsent.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function markup() {
.back-button-text {
font-size: 11px;
line-height: 11px;
color: rgb(21, 31, 114);
color: ${this.themeColor || 'rgb(21, 31, 114)'};
}
#error,
Expand Down Expand Up @@ -290,7 +290,7 @@ function markup() {
<button type='button' data-type='icon' id="back-button" class="back-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
<path fill="#DBDBC4" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z" opacity=".4"/>
<path fill="#001096" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
<path fill="${this.themeColor}" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
</svg>
</button>
<div class="back-button-text">Back</div>
Expand Down Expand Up @@ -337,7 +337,7 @@ function markup() {
<button type='button' data-type='icon' id="back-to-entry-button" class="back-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
<path fill="#DBDBC4" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z" opacity=".4"/>
<path fill="#001096" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
<path fill="${this.themeColor}" d="M15.5 11.25h-5.19l1.72-1.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-3 3c-.29.29-.29.77 0 1.06l3 3c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.77 0-1.06l-1.72-1.72h5.19c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z"/>
</svg>
</button>
<div class="back-button-text">Back</div>
Expand Down Expand Up @@ -893,6 +893,18 @@ class TotpConsent extends HTMLElement {
return this.getAttribute('token');
}

get themeColor() {
return this.getAttribute('theme-color') || '#001096';
}

get hideBack() {
return this.hasAttribute('hide-back');
}

get showNavigation() {
return this.hasAttribute('show-navigation');
}

handleTotpConsentGrant() {
const customEvent = new CustomEvent('end-user-consent.totp.granted', {
detail: {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smileid/web-components",
"version": "1.3.8",
"version": "1.3.9",
"private": "true",
"exports": {
".": "./index.js",
Expand Down

0 comments on commit 82795fb

Please sign in to comment.