@regulaforensics/vp-frontend-face-components 8.1.1904-nightly → 8.1.1906-nightly
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/README.md +10 -3
- package/dist/main.iife.js +3 -3
- package/dist/main.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -192,7 +192,6 @@ component.settings = yourSettings;
|
|
|
192
192
|
|
|
193
193
|
Here are all the available settings:
|
|
194
194
|
|
|
195
|
-
|
|
196
195
|
| Setting | Info | Data type | Default value | Values | Used in |
|
|
197
196
|
|:--------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------:|:--------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|---------------------------------|
|
|
198
197
|
| `locale` | Language of the component. The value is determined based on the following priority:<br><br>1. `locale` component attribute takes the highest priority if explicitly set.<br>2. If `locale` is not set, the system checks the `html.lang` attribute.<br>3. If no `html.lang` attribute is available, the system attempts to determine the language from `window.navigator`.<br>4. If none of the above are available, the default value `en` is used. | `string` | `en` | `ru`, `en`, `de`, `pl`, `it`, `hu`, `zh`, `sk`, `uk`, `fr`, `es`, `pt`, `ar`, `nl`, `id`, `vi`, `ko`, `ms`, `ro`, `el`, `tr`, `ja`, `cs`, `th`, `hi`, `bn`, `he`, `fi`, `sv`, `da`, `hr`, `no`, `uz` | `face-liveness`, `face-capture` |
|
|
@@ -216,7 +215,8 @@ Here are all the available settings:
|
|
|
216
215
|
| `detectOcclusion` | Whether to disable face occlusion hint. | `boolean` | `true` | `true`, `false` | `face-capture` |
|
|
217
216
|
| `tenant` | A label used to group transactions by specific customers, applications, or other criteria. | `string` | `undefined` | tenant | `face-liveness` |
|
|
218
217
|
| `env` | A label used to differentiate transactions by development stages. | `string` | `undefined` | env | `face-liveness` |
|
|
219
|
-
| `captureButton`
|
|
218
|
+
| `captureButton` | Whether to enable user-triggered capture. Shows the **Capture** button, desktop layout height increases accordingly. When enabled, the shot is taken only on user action. | `boolean` | `false` | `true`, `false` | `face-capture` |
|
|
219
|
+
|
|
220
220
|
|
|
221
221
|
## Customization
|
|
222
222
|
|
|
@@ -248,6 +248,8 @@ You can customize the color of some elements, fonts, and images with the help of
|
|
|
248
248
|
| `retryScreenRetryButtonTitleHover` | Retry screen button text hover color. | | string | `#FFFFFF` |
|
|
249
249
|
| `successScreenImage` | Success screen image. | | base64 or url or imported image | `` |
|
|
250
250
|
|
|
251
|
+
|
|
252
|
+
|
|
251
253
|
For example:
|
|
252
254
|
|
|
253
255
|
```javascript
|
|
@@ -367,6 +369,11 @@ face-liveness::part(retry-screen-subtitle-text) {
|
|
|
367
369
|
color: rgb(88, 82, 82);
|
|
368
370
|
text-decoration: underline;
|
|
369
371
|
}
|
|
372
|
+
/** face-capture: change active Capture button icon color */
|
|
373
|
+
face-capture::part(camera-screen-capture-button-icon) {
|
|
374
|
+
color: blue;
|
|
375
|
+
}
|
|
376
|
+
|
|
370
377
|
```
|
|
371
378
|
|
|
372
379
|
For more details about `::part()` CSS pseudo-elements, see the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part" target="_blank">MDN Web Docs article</a>.
|
|
@@ -880,7 +887,7 @@ The list of labels used in the component:
|
|
|
880
887
|
| **moveCloser** | Move closer | `face-liveness`, `face-capture` |
|
|
881
888
|
| **moveAway** | Move away | `face-liveness`, `face-capture` |
|
|
882
889
|
| **holdSteady** | Hold steady | `face-liveness`, `face-capture` |
|
|
883
|
-
| **takeAPhoto** | Take a
|
|
890
|
+
| **takeAPhoto** | Take a selfie | `face-capture` |
|
|
884
891
|
| **processing** | Processing... | `face-liveness`, `face-capture` |
|
|
885
892
|
| **retryButtonText** | Retry | `face-liveness`, `face-capture` |
|
|
886
893
|
| **followGuidelinesText** | But please follow these guidelines: | `face-liveness`, `face-capture` |
|