@getyoti/react-face-capture 1.4.0 → 2.0.0
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 +111 -2
- package/README.md +139 -91
- package/index.d.ts +25 -32
- package/index.js +69 -2
- package/index.js.LICENSE.txt +393 -36
- package/package.json +13 -75
- package/vanilla/index.js +98 -3
- package/vanilla/index.js.LICENSE.txt +219 -34
- package/vanilla/index.js.map +1 -1
- package/index.css +0 -1
- package/vanilla/index.css +0 -1
|
@@ -1,34 +1,219 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
Name: react
|
|
2
|
+
Version: 17.0.2
|
|
3
|
+
License: MIT
|
|
4
|
+
Private: false
|
|
5
|
+
Description: React is a JavaScript library for building user interfaces.
|
|
6
|
+
Repository: https://github.com/facebook/react.git
|
|
7
|
+
Homepage: https://reactjs.org/
|
|
8
|
+
License Copyright:
|
|
9
|
+
===
|
|
10
|
+
|
|
11
|
+
MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Name: object-assign
|
|
38
|
+
Version: 4.1.1
|
|
39
|
+
License: MIT
|
|
40
|
+
Private: false
|
|
41
|
+
Description: ES2015 `Object.assign()` ponyfill
|
|
42
|
+
Repository: undefined
|
|
43
|
+
Author: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
44
|
+
License Copyright:
|
|
45
|
+
===
|
|
46
|
+
|
|
47
|
+
The MIT License (MIT)
|
|
48
|
+
|
|
49
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
50
|
+
|
|
51
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
52
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
53
|
+
in the Software without restriction, including without limitation the rights
|
|
54
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
55
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
56
|
+
furnished to do so, subject to the following conditions:
|
|
57
|
+
|
|
58
|
+
The above copyright notice and this permission notice shall be included in
|
|
59
|
+
all copies or substantial portions of the Software.
|
|
60
|
+
|
|
61
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
62
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
63
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
64
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
65
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
66
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
67
|
+
THE SOFTWARE.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
Name: react-dom
|
|
74
|
+
Version: 17.0.2
|
|
75
|
+
License: MIT
|
|
76
|
+
Private: false
|
|
77
|
+
Description: React package for working with the DOM.
|
|
78
|
+
Repository: https://github.com/facebook/react.git
|
|
79
|
+
Homepage: https://reactjs.org/
|
|
80
|
+
License Copyright:
|
|
81
|
+
===
|
|
82
|
+
|
|
83
|
+
MIT License
|
|
84
|
+
|
|
85
|
+
Copyright (c) Facebook, Inc. and its affiliates.
|
|
86
|
+
|
|
87
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
88
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
89
|
+
in the Software without restriction, including without limitation the rights
|
|
90
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
91
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
92
|
+
furnished to do so, subject to the following conditions:
|
|
93
|
+
|
|
94
|
+
The above copyright notice and this permission notice shall be included in all
|
|
95
|
+
copies or substantial portions of the Software.
|
|
96
|
+
|
|
97
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
98
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
99
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
100
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
101
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
102
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
103
|
+
SOFTWARE.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
Name: scheduler
|
|
110
|
+
Version: 0.20.2
|
|
111
|
+
License: MIT
|
|
112
|
+
Private: false
|
|
113
|
+
Description: Cooperative scheduler for the browser environment.
|
|
114
|
+
Repository: https://github.com/facebook/react.git
|
|
115
|
+
Homepage: https://reactjs.org/
|
|
116
|
+
License Copyright:
|
|
117
|
+
===
|
|
118
|
+
|
|
119
|
+
MIT License
|
|
120
|
+
|
|
121
|
+
Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
+
|
|
123
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
124
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
125
|
+
in the Software without restriction, including without limitation the rights
|
|
126
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
127
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
128
|
+
furnished to do so, subject to the following conditions:
|
|
129
|
+
|
|
130
|
+
The above copyright notice and this permission notice shall be included in all
|
|
131
|
+
copies or substantial portions of the Software.
|
|
132
|
+
|
|
133
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
134
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
135
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
136
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
137
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
138
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
139
|
+
SOFTWARE.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Name: @getyoti/react-face-capture
|
|
146
|
+
Version: 2.0.0
|
|
147
|
+
License: Yoti Face Capture Licence
|
|
148
|
+
Private: false
|
|
149
|
+
Description: Face capture module to collect picture and data for Yoti AI API
|
|
150
|
+
Author: Yoti LTD
|
|
151
|
+
License Copyright:
|
|
152
|
+
===
|
|
153
|
+
|
|
154
|
+
# YOTI FACE CAPTURE MODULE SDK TERMS
|
|
155
|
+
|
|
156
|
+
By downloading or using the Yoti Face Module Capture SDK, you are agreeing to this licence (“Terms”) which is a legal agreement between us and either (a) you, if you are an individual not working for an entity; or (b) the entity that either employs or has contracted with you in respect of your use of the SDK (the “User”). If you (the User) do not agree with these Terms, you should not use the SDK.
|
|
157
|
+
|
|
158
|
+
We are Yoti Limited (the “Provider”) a company registered in England and Wales, with company number 08998951 and registered office at 130 Fenchurch St, London EC3M 5DJ. You can contact us by writing to us at: hello@yoti.com, or at our registered office.
|
|
159
|
+
|
|
160
|
+
1. Interpretation
|
|
161
|
+
Definitions:
|
|
162
|
+
Affiliate: has the meaning given in the Yoti Org T&Cs.
|
|
163
|
+
Business Day: a day other than a Saturday, Sunday or public holiday in England.
|
|
164
|
+
Hub: has the meaning given in the Yoti Org T&Cs.
|
|
165
|
+
Intellectual Property Rights: has the meaning given in clause 14.1 of the Yoti Org T&Cs.
|
|
166
|
+
Maintenance Release: release of the SDK that corrects faults, adds functionality or otherwise amends or upgrades the SDK.
|
|
167
|
+
the SDK: the source or object code that forms the Yoti Face Module Capture SDK made available to the User by the Provider.
|
|
168
|
+
Yoti Age: has the meaning given in the Yoti Org T&Cs.
|
|
169
|
+
Yoti Auth: has the meaning given in the Yoti Org T&Cs.
|
|
170
|
+
Yoti Org T&Cs: means the terms of use of the Yoti Platform available at https://www.yoti.com/terms/organisations/.
|
|
171
|
+
Yoti Platform: has the meaning given in the Yoti Org T&Cs.
|
|
172
|
+
Any phrase introduced by the terms including, include, in particular shall be interpreted as if the words “without limitation” followed them.
|
|
173
|
+
2. Basis of contract
|
|
174
|
+
These Terms apply to the exclusion of any other terms that the User seeks to impose or incorporate, or which are implied by trade, custom, practice or course of dealing.
|
|
175
|
+
3. Licence
|
|
176
|
+
The Provider hereby grants to the User a non-exclusive, royalty-free, revocable, worldwide licence to use the SDK for the duration of these Terms and strictly in accordance with the use permitted in these Terms. The sole permitted use of the SDK to capture user face images strictly as necessary in order to use the Yoti Age or Yoti Auth solutions embedded in your own websites or applications. It is a condition of these Terms that you have accepted and agreed to the Yoti Org T&Cs (either on the Hub or in a separate contract with Yoti) for use of the Yoti Age or Yoti Auth solutions. The User may grant access to the SDK to its employees or contractors under the direct control of the User (“User Personnel”), as required for the purpose provided that the User:
|
|
177
|
+
|
|
178
|
+
procures that User Personnel are made aware of and adhere to these Terms;
|
|
179
|
+
is liable to the Provider for the acts or omissions of User Personnel; and
|
|
180
|
+
shall cease to make the SDK available to any User Personnel on that party ceasing to be employed or engaged by the User.
|
|
181
|
+
|
|
182
|
+
The User shall:
|
|
183
|
+
|
|
184
|
+
not sell, sub-license, assign, hold on trust or novate the benefit or burden of these Terms in whole or in part;
|
|
185
|
+
not allow the SDK to become the subject of any charge, lien or encumbrance; and
|
|
186
|
+
do its best to prevent unauthorised copying of the SDK.
|
|
187
|
+
Maintenance Releases
|
|
188
|
+
The Provider will make available to the User all Maintenance Releases generally made available to its customers. Under these Terms the Provider offers no support function for the SDK but the User is encouraged to report any issues with the SDK by writing to us at sdksupport@yoti.com. Any comments, suggestions for enhancements or modifications (“Feedback”) relating to the SDK or associated materials is provided on a non-confidential basis and the Provider may use the Feedback at its discretion and for any purpose, including to improve the Provider’s products or services.
|
|
189
|
+
User's Obligations
|
|
190
|
+
|
|
191
|
+
The User represents, warrants and undertakes that it will use the SDK in compliance with all applicable laws and shall not: (a) resell, sublicense, lease or otherwise make the SDK available to any third party ; (b) gain unauthorised access to, or disrupt the integrity or performance of the SDK; (c) except under clause 5.3 below, modify, alter, amend, copy, translate or create derivative works based on the SDK or attempt to discover the source code or underlying ideas or algorithms thereof; (d) reverse engineer, decompile or disassemble the SDK; (e) use the SDK to build a competitive product or service to the Yoti Platform or copy its features or user interface; (f) use the SDK to do product evaluation or benchmarking intended for publication; (g) use the SDK in any manner to improve, train or feed results into a machine learning tool; (h) use the face images captured by the SDK for any purpose whatsoever other than to make use of the Yoti Age or Yoti Auth solutions; (i) act or omit to act in any way that damages the Provider's business or reputation; and (j) use the Provider’s logos except to use the SDK in good faith and in accordance with the Provider’s branding guidelines.
|
|
192
|
+
|
|
193
|
+
If local law allows you to decompile the SDK to make the SDK interoperable with other software, you shall first ask us in writing to provide you with the information.
|
|
194
|
+
Intellectual Property Rights
|
|
195
|
+
The User acknowledges that all Intellectual Property Rights in the SDK shall be owned by the Provider, and neither the User nor any of its Affiliates have any rights other than to use the SDK in accordance with these Terms. If the User breaches clause 5 then in consideration for the licence in these Terms it hereby assigns (including a present assignment of future copyright) on creation to the Provider with full title guarantee all Intellectual Property Rights arising from any modifications, amendments or improvements to the SDK. The User shall execute promptly any document or do any act at its own cost required by the Provider to complete or formalise this assignment.
|
|
196
|
+
The User agrees that it will not, and will procure that its Affiliates will not, do anything which could infringe the Intellectual Property Rights of the Provider. Any and all rights not expressly granted under these Terms shall be reserved by the Provider. The User shall ensure that no copyright notices are removed from the SDK and that any copies of the SDK shall replicate the copyright notices.
|
|
197
|
+
Limitation and Exclusions of Liability
|
|
198
|
+
THE USER'S ATTENTION IS PARTICULARLY DRAWN TO THIS CLAUSE
|
|
199
|
+
The Provider licenses the SDK to the User on an “as is” basis. Except as expressly provided herein, the Provider hereby disclaims any and all representations, warranties, conditions or terms of any kind, whether implied, statutory or otherwise, to the fullest extent permitted by law, including but not limited to that the SDK is suitable for a particular purpose or is of satisfactory quality. The Provider does not warrant that the use of the SDK will be uninterrupted or error-free.
|
|
200
|
+
Nothing in these Terms shall limit or exclude either party’s liability for: (a) death or personal injury caused by its negligence; (b) fraud or fraudulent misrepresentation; or (c) any liability which cannot be limited or excluded by applicable law.
|
|
201
|
+
Subject to clause 7.2, the Provider shall not be liable to the User, whether in contract, tort (including negligence) or for breach of statutory duty arising under or in connection with these Terms for any loss of profit, revenue or data or any indirect, consequential or incidental loss.
|
|
202
|
+
Subject to clause 7.2 the maximum aggregate liability of the Provider to the User (including for all User’s Affiliates or User’s Personnel), whether in contract, tort (including negligence) or for breach of statutory duty shall be capped at £100.
|
|
203
|
+
The User shall indemnify on demand and hold harmless the Provider and its directors, employees and shareholders from and against any and all losses, claims, damages, costs, expenses (including reasonable legal costs and expenses) and liabilities suffered or incurred, directly or indirectly, as a result of or in connection with a breach of these Terms by the User, the User’s Affiliates or the User’s Personnel.
|
|
204
|
+
Term and Termination
|
|
205
|
+
These Terms will commence when User accepts these Terms and continue until terminated in accordance with these Terms. Either party may terminate these Terms at any time without cause by giving the other party no less than 5 Business Days’ written notice, and the Provider may terminate immediately if: (a) the User is in breach of these Terms; (b) becomes a competitor of the Provider in the Provider’s reasonable opinion; or (c) the Yoti Org T&Cs are terminated for any reason by either party.
|
|
206
|
+
Any provision of these Terms that is intended to continue in force after termination shall remain in full force and effect, including without limitation clauses 5, 6, 7, 8 and 9.
|
|
207
|
+
|
|
208
|
+
Termination of these Terms shall not affect any rights of the parties that have accrued up to the date of termination. On termination of these Terms for any reason, the User shall immediately cease to use the SDK, and shall procure that any of its Affiliates and the User Personnel shall cease to use the SDK, and shall permanently delete all copies of the SDK then in its possession, custody or control.
|
|
209
|
+
General
|
|
210
|
+
|
|
211
|
+
No failure or delay by a party to exercise any right or remedy provided under the Terms or by law shall constitute a waiver of that or any other right or remedy.
|
|
212
|
+
These Terms and the Yoti Org T&Cs contain the entire agreement between the parties relating to the SDK and supersede all prior agreements between the parties relating to the SDK. Each party acknowledges that, in entering into these Terms, it does not rely on any representation or warranty (whether it was made negligently or innocently) of any person. Nothing excludes liability for fraud.
|
|
213
|
+
If any provision or part-provision of these Terms is or becomes invalid, illegal or unenforceable, it shall be deemed modified to the minimum extent necessary to make it valid, legal and enforceable. If such modification is not possible, the relevant provision or part-provision shall be deemed deleted.
|
|
214
|
+
A person who is not a party to these Terms shall not have any rights under the Contracts (Rights of Third Parties) Act 1999 to enforce any term of these Terms.
|
|
215
|
+
Neither party shall be in breach of these Terms nor liable for delay in performing, or failure to perform, any of its obligations under these Terms if such delay or failure results from events, circumstances or causes beyond its reasonable control, and the affected party shall be entitled to a reasonable extension of the time for performing such obligations.
|
|
216
|
+
Any notice or other communication given to a party under or in connection with these Terms may be by email or post to the address provided.
|
|
217
|
+
The Provider may at any time assign, transfer, mortgage, charge, subcontract or deal in any other manner with all or any of its rights under these Terms and may subcontract or delegate in any manner any or all of its obligations under these Terms to any third party. The User shall not, without the prior written consent of the Provider, assign, transfer, mortgage, charge, subcontract, declare a trust over or deal in any other manner with any or all of its rights or obligations under these Terms, other than as set out herein.
|
|
218
|
+
The User agrees that the Provider may, at the reasonable request of the Provider, inspect and have access to such of the User’s personnel, facilities and books and records, for the purposes of ensuring that the User is complying with these Terms.
|
|
219
|
+
These Terms shall be governed by the laws of England. The parties irrevocably agree that the courts of England and Wales shall have exclusive jurisdiction to settle any dispute or claim that arises out of or in connection with these Terms or its subject matter or formation (including non-contractual disputes or claims).
|