@getyoti/react-face-capture 1.3.1-test.1 → 2.0.0-beta.1

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/CHANGELOG.md CHANGED
@@ -1,11 +1,168 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.0.0-beta.1
4
+
5
+ ### New features
6
+
7
+ - The secure mode returns an encrypted image by default now. Use `encryptImage`
8
+ property to return the base64 image in the secure payload. The face capture
9
+ also provides a new property to get the base64 image preview in the `onSuccess`
10
+ callback: `returnPreviewImage`.
11
+
12
+ - New property to identify your Yoti Hub application: `clientSdkId`.
13
+
14
+ - Secure module deprecation and end support handling.
15
+
16
+ - The Face Capture will log a warning message when the secure module version in use
17
+ becomes deprecated. It will return the error `VERSION_NO_LONGER_AVAILABLE`
18
+ in the `onError` callback when the support has ended.
19
+
20
+ - New property to allow auto-reload of the secure session before the session expires: `autoSessionReload`.
21
+
22
+ - New property to let the user handle errors by retrying several times: `userRetryError`.
23
+
24
+ - New design:
25
+
26
+ - The Face Capture will show a loading screen when it returns a valid
27
+ image in the `onSuccess` callback or an error screen if it runs the
28
+ `onError` callback.
29
+
30
+ - New Guidance screen that will be shown before the webcam loads. It can be hidden by providing the property `showInitialGuidance` with value `false`
31
+
32
+ - New Get Help button in the webcam view. It can be hidden by providing the property `showGetHelpButton` with value `false`.
33
+
34
+ - New font family (it can still be changed by `--fcm-font-family` css
35
+ variable).
36
+
37
+ - Improved manual mode user feedback.
38
+
39
+ - Improved Face Capture responsiveness.
40
+
41
+ - It is possible to customize some styles by using css variables. These are
42
+ the properties that can be changed:
43
+
44
+ - `--fcm-primary-button-background-color` changes the background color in
45
+ primary buttons (Take picture, Try again, ... ).
46
+ - `--fcm-primary-button-background-color-hover` changes the background
47
+ color in primary buttons (Take picture, Try again, ... ) when is hovered.
48
+ - `--fcm-primary-button-text-color` changes the text color in primary
49
+ buttons (Take picture, Try again, ... ).
50
+ - `--fcm-secondary-button-background-color` changes the background color in
51
+ primary buttons (Get help).
52
+ - `--fcm-secondary-button-text-color` changes the text color in secondary
53
+ buttons (Get help).
54
+ - `--fcm-secondary-button-text-color-hover` changes the text color in
55
+ secondary buttons (Get help) when the button is hovered.
56
+ - `--fcm-prompt-text-color` changes the text color in the prompt.
57
+
58
+ - The countdown functionality has been removed.
59
+
60
+ - Implemented localisation languages:
61
+
62
+ - `tl-PH`: Tagalog
63
+ - `zh-CN`: Chinese - Simplified
64
+
65
+ - The Face Capture style has been encapsulated using shadow Dom. From now on, the only style customization available is through the CSS variables listed in the documentation.
66
+
67
+ ### Breaking changes
68
+
69
+ - The `onSuccess` callback definition changed to (`(payload: FCMPayload, base64PreviewImage?: string) => {}`).
70
+
71
+ - The type of the `payload` argument changed from `FCMResult` to `FCMPayload`.
72
+
73
+ - Secure mode is now the default mode for the Face Capture (`secure` property value is now `true` by default).
74
+
75
+ - The new property `clientSdkId` is required when using secure mode. So will be required by default.
76
+
77
+ - The property `buttonSize` was removed.
78
+
79
+ - The property `isConsentRequired` was removed.
80
+
81
+ - The properties `CustomManualButton` and `CustomConsentButton` were removed.
82
+
83
+ - The property `countdownMode` was removed.
84
+
85
+ - The minimum size for the Face Capture in landscape view is 576px.
86
+
87
+ #### Peer dependencies updates
88
+
89
+ - Updated `react` dependency version to be at least `16.14.0` and a maximum of `18.2.0`.
90
+
91
+ - Updated `react-dom` dependency version to be at least `16.14.0` and a maximum of `18.2.0`.
92
+
93
+ ## v1.4.0
94
+
95
+ ### New features
96
+
97
+ - If the module takes more than 15 seconds to be downloaded, the onError callback will be called with error code `EXCEEDED_TIME_TO_LOAD`. You can modify the timeout to call `onError` by changing the `loadTimeout` property.
98
+ - Implemented localisation languages:
99
+
100
+ - `sk-SK`: Slovak
101
+ - `hu-HU`: Hungarian
102
+
103
+ - The translations are available for the manual button.
104
+
105
+ - It is possible to change the default button size. There are three options: SMALL, MEDIUM and LARGE. The new field, `buttonSize`, can be used for changing the button size: `buttonSize={BUTTON_SIZE.SMALL}`.
106
+ MEDIUM and LARGE values are not supported in mobile devices
107
+
108
+ - It is possible to change some values by css variables. These are the properties that can be changed:
109
+
110
+ - --fcm-button-color-background. Changes the background color in buttons.
111
+ - --fcm-button-text-color. Changes the text color in buttons.
112
+ - --fcm-button-background-color-hover. Changes the background color for buttons on hover.
113
+ - --fcm-button-background-color-disabled. Changes the background color for buttons when they are disabled.
114
+ - --fcm-font-family. Sets the font family.
115
+ - --fcm-prompt-background-color. Sets the background color in the message prompt.
116
+
117
+ > **Note**: We do not recommend changing these css properties, all changes on the font and colors are under the integrator's responsibility and need to be tested by the integrator.
118
+ > In addition, we can't guarantee external customizations support on new versions of the library
119
+
120
+ ### Notices
121
+
122
+ - `CustomManualButton` and `CustomConsentButton` are deprecated. They will be removed on 2.0.0 version.
123
+ - Region subtag added to localisation tags. Codes with a single primary subtag (e.g.`en`) are still valid, although we encourage using region-variant codes explicitly.
124
+ - `ar` --> `ar-XN`
125
+ - `cs` --> `cs-CZ`
126
+ - `da` --> `da-DK`
127
+ - `de` --> `de-DE`
128
+ - `el` --> `el-GR`
129
+ - `en` --> `en-GB`
130
+ - `es` --> `es-ES`
131
+ - `et` --> `et-EE`
132
+ - `fi` --> `fi-FI`
133
+ - `fr` --> `fr-FR`
134
+ - `he` --> `he-IL`
135
+ - `hi` --> `hi-IN`
136
+ - `hy` --> `hy-AM`
137
+ - `id` --> `id-ID`
138
+ - `it` --> `it-IT`
139
+ - `ja` --> `ja-JP`
140
+ - `ko` --> `ko-KR`
141
+ - `lt` --> `lt-LT`
142
+ - `lv` --> `lv-LV`
143
+ - `ms` --> `ms-MY`
144
+ - `nb` --> `nb-NO`
145
+ - `nl` --> `nl-NL`
146
+ - `pl` --> `pl-PL`
147
+ - `ro` --> `ro-RO`
148
+ - `ru` --> `ru-RU`
149
+ - `sv` --> `sv-SE`
150
+ - `th` --> `th-TH`
151
+ - `tr` --> `tr-TR`
152
+ - `uk` --> `uk-UA`
153
+ - `ur` --> `ur-PK`
154
+ - `vi` --> `vi-VN`
155
+
156
+ ### Fixes
157
+
158
+ - Fix Greek localisation for "Place your face in the frame" feedback.
159
+
3
160
  ## v1.3.0
4
161
 
5
162
  ### New features
6
163
 
7
164
  - The secure payload has a new field `verification`.
8
- - Increased the protection against requests from untrusted devices. The
165
+ - Increased protection against requests from untrusted devices. The
9
166
  malicious and suspicious requests will return a new error code
10
167
  `UNTRUSTED_SECURE_SESSION`.
11
168
  - The `manualCaptureFallback` time has been increased to 10 seconds.
@@ -20,7 +177,7 @@
20
177
 
21
178
  ### Fixes
22
179
 
23
- - Secure session initialisation request is not longer cached.
180
+ - Secure session initialisation request is no longer cached.
24
181
  - Added missing fields in the typing file.
25
182
  - Camera feedback messages are shown only after the camera permissions were
26
183
  giving not before.
@@ -68,11 +225,11 @@
68
225
 
69
226
  - Added `onReadyForCapture` callback to provide a way for the integrators to know when the module is ready to take images.
70
227
 
71
- - Now the Face Capture Module will stop the process and the camera when the page is hidden.
228
+ - Now, the Face Capture Module will stop the process and the camera when the page is hidden.
72
229
 
73
- - There is a known issue on iPhone Firefox, when opening a new FCM instance in a different tab, that may cause the previous one to freeze.
230
+ - There is a known issue on iPhone Firefox when opening a new FCM instance in a different tab, that may cause the previous one to freeze.
74
231
 
75
- - Now the vanilla version of the Face Capture Module also exports some useful constants, as the React version does. Here is a list of all of them:
232
+ - Now, the vanilla version of the Face Capture Module also exports some useful constants, as the React version does. Here is a list of all of them:
76
233
 
77
234
  - **CAPTURE_METHOD**
78
235
  - **COUNTDOWN_MODES**
@@ -85,7 +242,7 @@
85
242
 
86
243
  New constants can be accessed by using `Yoti.<CONSTANT_NAME>`.
87
244
 
88
- - Now `countdownMode` has new options:
245
+ - Now, `countdownMode` has new options:
89
246
 
90
247
  - `never` and `always` remains the same.
91
248
  - `auto` has been replaced by `only_mobile` and `only_desktop` which brings extra configuration for all possible scenarios.
@@ -96,7 +253,7 @@
96
253
  - `hy`: Armenian
97
254
  - `he`: Hebrew
98
255
 
99
- - Updated localisations languages:
256
+ - Updated localisation languages:
100
257
 
101
258
  - `it`: Italian
102
259
  - `es-419`: Latin American Spanish
@@ -119,7 +276,7 @@
119
276
 
120
277
  ## v1.0.0-beta.3
121
278
 
122
- Fix a package install error which cause `yarn` and older `npm` versions to fail.
279
+ Fix a package install error which causes `yarn` and older `npm` versions to fail.
123
280
 
124
281
  ## v1.0.0-beta.2
125
282
 
@@ -133,7 +290,7 @@ Fix a package install error which cause `yarn` and older `npm` versions to fail.
133
290
 
134
291
  ### Breaking changes
135
292
 
136
- Now the `onSuccess` callback returns the image in the `img` field instead for
293
+ Now, the `onSuccess` callback returns the image in the `img` field instead of
137
294
  `image`.
138
295
 
139
296
  - Before:
@@ -167,9 +324,9 @@ Now the `onSuccess` callback returns the image in the `img` field instead for
167
324
  }
168
325
  ```
169
326
 
170
- Now the `CustomButton` has been splited in `CustomManualButton` and `CustomConsentButton` because
327
+ Now, the `CustomButton` has been split into `CustomManualButton` and `CustomConsentButton` because
171
328
  of the implementation of the new consent mode. Each of the properties has the same definitions as
172
- the old `CustomButton`, funtions using `onClick` and `disabled` as props that returns a button
329
+ the old `CustomButton`, functions using `onClick` and `disabled` as props that return a button
173
330
  component.
174
331
 
175
332
  ## v0.6.0
@@ -190,7 +347,7 @@ component.
190
347
  - `ko`: Korean
191
348
  - `lt`: Lithuanian
192
349
  - `ms`: Malay
193
- - `uk`: Ukranian
350
+ - `uk`: Ukrainian
194
351
 
195
352
  ## v0.4.0
196
353
 
@@ -251,7 +408,7 @@ component.
251
408
  ### New Features
252
409
 
253
410
  - Add image quality prop
254
- - Set JPEG High quality as default image format
411
+ - Set JPEG High quality as the default image format
255
412
  - Add languages support:
256
413
 
257
414
  - EN - English