Skip to content

Commit

Permalink
3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
willmorgan committed Feb 12, 2021
1 parent 0e4cd4b commit 4cc7fc1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 26 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 12.2.2021 3.1.4

## Fixed

- Fixed an issue where the progress bar would not display if `show_countdown` is enabled.
- Fixed `kiosk_mode` issue on iPads where the camera is drawn partly off screen.
- Fixed an issue where the camera remains active after a timeout occurs.
- Fixed an issue where multiple cameras broadcasts multiple times. It now broadcasts once.
- Fixed an issue where slot encapsulation was broken and events may be bound to slots outside the component.
- Fixed iPads on iOS < 14 showing as unsupported in 3.1.x.
- Fixed an issue where specifying a path with base_url was not respected.
- Fixed an issue where iframed Web SDK components time out waiting for gyro information in mobile Safari.
- This is a WebKit issue: https://bugs.webkit.org/show_bug.cgi?id=221399
- Until this is fixed, iframed components in mobile Safari will immediately fire the unsupported event when using Liveness.

## Changed

- Internals: changed Web Component attachment mode to closed.
- Internals: the Web SDK will now connect and emit console warnings and errors to our Socket.IO server for quality improvement and crash analysis.
- Bundle size: the main Web SDK entrypoint no longer includes Baidu and KaiOS build targets
- These browsers currently do not support our minimum requirements
- The iProovSupport component is still built to target these browsers so you can still establish support
- The main package size has reduced by 18% with no material change to browser support

## Added

- 20% more π

## 6.1.2021 3.1.3

Expand Down
49 changes: 28 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# iProov Biometrics Web SDK v3.1.3
# iProov Biometrics Web SDK v3.1.4

## 📖 Table of contents

Expand Down Expand Up @@ -295,6 +295,7 @@ The simplest way to add a slot is to include it within the `<iproov-me>` HTML ta
You can also build up the slots with the `<template>` element and JavaScript before injecting the Web Component:

Template to be placed anywhere in your page:

```html
<template id="iproov_template">
<div slot="ready">
Expand All @@ -307,6 +308,7 @@ Template to be placed anywhere in your page:
```

JavaScript:

```javascript
window.addEventListener("WebComponentsReady", function (event) {
const iProovMe = document.createElement("iproov-me")
Expand All @@ -331,10 +333,12 @@ window.addEventListener("WebComponentsReady", function (event) {
```

To integrate with our localization feature, use special class names in your slotted content:
* Headings must use `.iproov-lang-heading`
* Supplementary terms (message, reason etc) must have `.iproov-lang-term`

- Headings must use `.iproov-lang-heading`
- Supplementary terms (message, reason etc) must have `.iproov-lang-term`

**Example:** The below text will be swapped with the correctly localized strings when displayed:

```html
<div slot="passed">
<h3 class="iproov-lang-heading">Passed</h3>
Expand Down Expand Up @@ -384,22 +388,24 @@ Every event has a [detail](https://developer.mozilla.org/en-US/docs/Web/API/Cust

The available events are detailed below with any extra properties that are supplied:

| Event | Extra Properties | Description |
| ----------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------- |
| **cancelled** | _feedback, reason_ | User has cancelled iProov by exiting fullscreen |
| **error** | _feedback, reason_ | iProov encountered an error while processing the authentication |
| **failed** | _type, passed, feedback, reason_ | Authentication was unsuccessful, the user needs to try again |
| **interrupted** | _feedback, reason_ | Fast fullscreen exit possible due to software. Retry is possible. |
| **multiple_cameras** \* | _devices, device_selector, slot_ | If `enable_camera_selector` is `true` returns an array of devices if more than 1 video device is detected |
| **passed** | _type, passed_ | Authentication was successful, the result can now be validated |
| **permission** | None | Camera permission is unknown & not blocked, show permission |
| **permission_denied** | None | User has blocked access to the camera |
| **progress** | _progress, message_ | iProov has published a progress update for the authentication |
| **ready** | None | iProov has initialised successfully and has camera permission |
| **started** | None | User has started iProov by launching into fullscreen |
| **streaming** | None | User has started streaming. The client remains in fullscreen. |
| **streamed** | None | User has finished streaming and the client has exited fullscreen |
| **unsupported** | _feedback, reason_ | Browser does not support using iProov |
| Event | Extra Properties | Description |
| ----------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **cancelled** | _feedback, reason_ | User has cancelled iProov by exiting fullscreen |
| **connecting** | None | The SDK is connecting to the server. You should provide an indeterminate progress indicator to let the user know that the connection is taking place. |
| **connected** | None | The SDK has connected. You should hide any progress indication at this point. |
| **error** | _feedback, reason_ | iProov encountered an error while processing the authentication |
| **failed** | _type, passed, feedback, reason_ | Authentication was unsuccessful, the user needs to try again |
| **interrupted** | _feedback, reason_ | Fast fullscreen exit possible due to software. Retry is possible. |
| **multiple_cameras** \* | _devices, device_selector, slot_ | If `enable_camera_selector` is `true` returns an array of devices if more than 1 video device is detected |
| **passed** | _type, passed_ | Authentication was successful, the result can now be validated |
| **permission** | None | Camera permission is unknown & not blocked, show permission |
| **permission_denied** | None | User has blocked access to the camera |
| **progress** | _progress, message_ | iProov has published a progress update for the authentication |
| **ready** | None | iProov has initialised successfully and has camera permission |
| **started** | None | User has started iProov by launching into fullscreen |
| **streaming** | None | User has started streaming. The client remains in fullscreen. |
| **streamed** | None | User has finished streaming and the client has exited fullscreen |
| **unsupported** | _feedback, reason_ | Browser does not support using iProov |

> \* See [Multiple Camera Example](https://github.com/iProov/web/wiki/Camera-Selection-Example) for an example demonstrating how a camera selection feature could be implemented.
Expand Down Expand Up @@ -527,8 +533,8 @@ window.addEventListener("WebComponentsReady", (event) => {
iProovMe.setAttribute("token", "***YOUR_TOKEN_HERE***")

const customLanguage = {
"passed": "You passed!",
"prompt_connecting": "It's loading..."
passed: "You passed!",
prompt_connecting: "It's loading...",
}
element.setAttribute("language", JSON.stringify(customLanguage))

Expand Down Expand Up @@ -598,6 +604,7 @@ Using `iProovSupport` on a standalone basis means that consumers can code split
We recommend using this pattern and splitting entrypoints on your app so that iProov is downloaded only when necessary to ensure a quick UX.

**Example usage when using a bundler that treats UMD like ESM:**

```javascript
import { iProovSupport } from "@iproov/web/iProovSupport.js"
const optionalLogger = console
Expand Down
2 changes: 1 addition & 1 deletion demo/src/static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"author": "",
"devDependencies": {},
"dependencies": {
"@iproov/web": "^3.1.3"
"@iproov/web": "latest"
}
}
8 changes: 4 additions & 4 deletions demo/src/static/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# yarn lockfile v1


"@iproov/web@^3.1.2":
version "3.1.2"
resolved "https://registry.yarnpkg.com/@iproov/web/-/web-3.1.2.tgz#c05d2582d976bff74464b46ac5cfeae64f9a924d"
integrity sha512-hvw0767mLEHNZvEhppH+5aaDeWzUMHp5h58zJtMqFR3GwmGiFr+4USEUeHFXOg3r1n+ESCGcaDKz2Qabsg8URw==
"@iproov/web@latest":
version "3.1.4"
resolved "https://registry.yarnpkg.com/@iproov/web/-/web-3.1.4.tgz#bb8b0c7507303f348b899c76d79875c14f977d1e"
integrity sha512-B9Bw/yKX0HhktPDjkQWnCSNTQaMqfIopxUvfaBFMUuDSanCHV0s+3Kk3tz7rNdM65JY4BbE/oIu40M5Az+ug4Q==

0 comments on commit 4cc7fc1

Please sign in to comment.