pipwave-ekyc-uikit 0.0.1-beta.1 → 0.0.1-beta.10
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/.env.development +1 -0
- package/.env.production +1 -0
- package/README.md +50 -7
- package/dist/pw-bundle.js +127 -160
- package/package.json +7 -9
- package/dist/43b5d11c42fbd9d6bd4b.png +0 -0
- package/dist/57635c717fdc1191b299.png +0 -0
- package/dist/index.html +0 -26
- package/dist/models/age_gender_model-shard1 +0 -0
- package/dist/models/age_gender_model-weights_manifest.json +0 -1
- package/dist/models/face_expression_model-shard1 +0 -0
- package/dist/models/face_expression_model-weights_manifest.json +0 -1
- package/dist/models/face_landmark_68_model-shard1 +0 -0
- package/dist/models/face_landmark_68_model-weights_manifest.json +0 -1
- package/dist/models/face_landmark_68_tiny_model-shard1 +0 -0
- package/dist/models/face_landmark_68_tiny_model-weights_manifest.json +0 -1
- package/dist/models/face_recognition_model-shard1 +0 -0
- package/dist/models/face_recognition_model-shard2 +0 -6
- package/dist/models/face_recognition_model-weights_manifest.json +0 -1
- package/dist/models/mtcnn_model-shard1 +0 -0
- package/dist/models/mtcnn_model-weights_manifest.json +0 -1
- package/dist/models/ssd_mobilenetv1_model-shard1 +0 -0
- package/dist/models/ssd_mobilenetv1_model-shard2 +8 -137
- package/dist/models/ssd_mobilenetv1_model-weights_manifest.json +0 -1
- package/dist/models/tiny_face_detector_model-shard1 +0 -0
- package/dist/models/tiny_face_detector_model-weights_manifest.json +0 -1
- package/pipwave-ekyc-uikit-1.0.0.tgz +0 -0
- package/public/models/age_gender_model-shard1 +0 -0
- package/public/models/age_gender_model-weights_manifest.json +0 -1
- package/public/models/face_expression_model-shard1 +0 -0
- package/public/models/face_expression_model-weights_manifest.json +0 -1
- package/public/models/face_landmark_68_model-shard1 +0 -0
- package/public/models/face_landmark_68_model-weights_manifest.json +0 -1
- package/public/models/face_landmark_68_tiny_model-shard1 +0 -0
- package/public/models/face_landmark_68_tiny_model-weights_manifest.json +0 -1
- package/public/models/face_recognition_model-shard1 +0 -0
- package/public/models/face_recognition_model-shard2 +0 -6
- package/public/models/face_recognition_model-weights_manifest.json +0 -1
- package/public/models/mtcnn_model-shard1 +0 -0
- package/public/models/mtcnn_model-weights_manifest.json +0 -1
- package/public/models/ssd_mobilenetv1_model-shard1 +0 -0
- package/public/models/ssd_mobilenetv1_model-shard2 +8 -137
- package/public/models/ssd_mobilenetv1_model-weights_manifest.json +0 -1
- package/public/models/tiny_face_detector_model-shard1 +0 -0
- package/public/models/tiny_face_detector_model-weights_manifest.json +0 -1
package/.env.development
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
FACE_MODEL=/face-models
|
package/.env.production
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
FACE_MODEL=https://assets.pipwave.com/ekyc/sdk/face-models
|
package/README.md
CHANGED
|
@@ -31,24 +31,67 @@ You need to provide one html div element along with id attributes
|
|
|
31
31
|
|
|
32
32
|
Add the scripts below to your project, to start render the uikit.
|
|
33
33
|
The script first initialized the uikit, then call the init method and
|
|
34
|
-
passed in
|
|
34
|
+
passed in an object at the first init function parameter. The object requires
|
|
35
|
+
three key to be passed in as listed below:
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
target: The id of the container that will be used to display the ekyc
|
|
38
|
+
accessToken: The accessToken for the user that need to undergo the ekyc process
|
|
39
|
+
displayMode: To determine the display of the ekyc gui. Supported value is 'in-page' and 'hpp'.
|
|
40
|
+
Default: 'in-page'
|
|
37
41
|
|
|
38
42
|
```javascript
|
|
43
|
+
import PWUISDK from 'pipwave-ekyc-uikit';
|
|
44
|
+
|
|
39
45
|
const pw = new PWUISDK()
|
|
40
|
-
pw.init(
|
|
46
|
+
pw.init({
|
|
47
|
+
target: 'pw-sdk-container',
|
|
48
|
+
accessToken: //<AccessToken>
|
|
49
|
+
displayMode: //'in-page' | 'hpp'
|
|
50
|
+
})
|
|
41
51
|
```
|
|
42
52
|
|
|
43
|
-
### `
|
|
53
|
+
### `onFinish {Function} optional`
|
|
44
54
|
|
|
45
55
|
Call back that fires when the eKYC process is done
|
|
46
56
|
|
|
47
|
-
Example `
|
|
57
|
+
Example `onFinish` callBack:
|
|
58
|
+
|
|
59
|
+
```javascript
|
|
60
|
+
pw.onFinish(() => {
|
|
61
|
+
// do your own handling here
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `onClose {Function} optional`
|
|
66
|
+
|
|
67
|
+
Call back that fires when the eKYC process is closed
|
|
68
|
+
|
|
69
|
+
Example `onClose` callBack:
|
|
48
70
|
|
|
49
71
|
```javascript
|
|
50
|
-
pw.
|
|
51
|
-
// alert('eKYC process finished')
|
|
72
|
+
pw.onClose(() => {
|
|
52
73
|
// do your own handling here
|
|
53
74
|
});
|
|
54
75
|
```
|
|
76
|
+
|
|
77
|
+
### Configuration
|
|
78
|
+
|
|
79
|
+
#### Installation on Angular Base Project
|
|
80
|
+
|
|
81
|
+
For Angular-based projects, you'll need to include the `face-api.js` library in your project's `angular.json` configuration:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
"architect": {
|
|
85
|
+
"build": {
|
|
86
|
+
"options": {
|
|
87
|
+
"scripts": ["./node_modules/face-api.js/dist/face-api.min.js"]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Acknowledgements
|
|
94
|
+
|
|
95
|
+
We extend our gratitude to the following open-source projects that greatly contributed to the development of the Pipwave Ekyc Uikit: `pipwave-ekyc-sdk`,`webpack`, `face-api.js`, `moment`, `pikaday`
|
|
96
|
+
|
|
97
|
+
Thank you to these remarkable projects and their dedicated teams for making our Uikit possible. Your efforts are truly appreciated.
|