@idscan/onboarding 1.0.0 → 1.0.4

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/package.json CHANGED
@@ -1,61 +1,62 @@
1
- {
2
- "name": "@idscan/onboarding",
3
- "version": "1.0.0",
4
- "description": "Wrapper of the IDVC library for DVS Online.",
5
- "main": "dist/js/wrapper.js",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "start": "webpack serve --port 5100 --host 0.0.0.0 --hot --mode development",
11
- "build": "webpack build --mode development --progress --stats-children",
12
- "prod": "webpack build --mode production --progress --stats-children",
13
- "pack": "npm pack"
14
- },
15
- "dependencies": {
16
- "@idscan/idvc": "^1.12.10",
17
- "core-js": "^3.19.1",
18
- "regenerator-runtime": "^0.13.9"
19
- },
20
- "devDependencies": {
21
- "@babel/core": "^7.16.0",
22
- "@babel/eslint-parser": "^7.16.3",
23
- "@babel/plugin-proposal-class-properties": "^7.16.0",
24
- "@babel/plugin-proposal-optional-chaining": "^7.16.0",
25
- "@babel/plugin-proposal-private-methods": "^7.16.0",
26
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
27
- "@babel/plugin-syntax-optional-chaining": "^7.8.3",
28
- "@babel/plugin-transform-runtime": "^7.16.4",
29
- "@babel/preset-env": "^7.16.4",
30
- "babel-loader": "^8.2.3",
31
- "babel-plugin-transform-runtime": "^6.23.0",
32
- "copy-webpack-plugin": "^9.1.0",
33
- "clean-webpack-plugin": "^4.0.0",
34
- "css-loader": "^6.5.1",
35
- "eslint": "^7.25.0",
36
- "eslint-config-airbnb": "^18.2.1",
37
- "eslint-config-airbnb-base": "^14.2.1",
38
- "eslint-plugin-import": "^2.22.1",
39
- "eslint-plugin-jest": "^24.3.6",
40
- "eslint-webpack-plugin": "^3.1.1",
41
- "html-loader": "^3.0.1",
42
- "html-webpack-plugin": "^5.5.0",
43
- "mini-css-extract-plugin": "^2.4.5",
44
- "sass": "^1.43.5",
45
- "sass-loader": "^12.3.0",
46
- "style-loader": "^3.3.1",
47
- "terser-webpack-plugin": "^5.1.4",
48
- "webpack": "^5.64.3",
49
- "webpack-cli": "^4.9.1",
50
- "webpack-dev-server": "^3.11.3"
51
- },
52
- "author": "IDScan.net",
53
- "license": "Apache-2.0",
54
- "keywords": [
55
- "idscan",
56
- "idvc",
57
- "onboarding",
58
- "dvs",
59
- "online"
60
- ]
61
- }
1
+ {
2
+ "name": "@idscan/onboarding",
3
+ "version": "1.0.4",
4
+ "description": "Wrapper of the IDVC library for DVS Online.",
5
+ "main": "dist/js/wrapper.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "start": "webpack serve --port 5100 --host 0.0.0.0 --hot --mode development",
11
+ "build": "webpack build --mode development --progress --stats-children",
12
+ "prod": "webpack build --mode production --progress --stats-children",
13
+ "pack": "npm pack",
14
+ "patch": "npm version patch"
15
+ },
16
+ "dependencies": {
17
+ "@idscan/idvc": "^1.12.10",
18
+ "core-js": "^3.19.1",
19
+ "regenerator-runtime": "^0.13.9"
20
+ },
21
+ "devDependencies": {
22
+ "@babel/core": "^7.16.0",
23
+ "@babel/eslint-parser": "^7.16.3",
24
+ "@babel/plugin-proposal-class-properties": "^7.16.0",
25
+ "@babel/plugin-proposal-optional-chaining": "^7.16.0",
26
+ "@babel/plugin-proposal-private-methods": "^7.16.0",
27
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
28
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
29
+ "@babel/plugin-transform-runtime": "^7.16.4",
30
+ "@babel/preset-env": "^7.16.4",
31
+ "babel-loader": "^8.2.3",
32
+ "babel-plugin-transform-runtime": "^6.23.0",
33
+ "copy-webpack-plugin": "^9.1.0",
34
+ "clean-webpack-plugin": "^4.0.0",
35
+ "css-loader": "^6.5.1",
36
+ "eslint": "^7.25.0",
37
+ "eslint-config-airbnb": "^18.2.1",
38
+ "eslint-config-airbnb-base": "^14.2.1",
39
+ "eslint-plugin-import": "^2.22.1",
40
+ "eslint-plugin-jest": "^24.3.6",
41
+ "eslint-webpack-plugin": "^3.1.1",
42
+ "html-loader": "^3.0.1",
43
+ "html-webpack-plugin": "^5.5.0",
44
+ "mini-css-extract-plugin": "^2.4.5",
45
+ "sass": "^1.43.5",
46
+ "sass-loader": "^12.3.0",
47
+ "style-loader": "^3.3.1",
48
+ "terser-webpack-plugin": "^5.1.4",
49
+ "webpack": "^5.64.3",
50
+ "webpack-cli": "^4.9.1",
51
+ "webpack-dev-server": "^3.11.3"
52
+ },
53
+ "author": "IDScan.net",
54
+ "license": "Apache-2.0",
55
+ "keywords": [
56
+ "idscan",
57
+ "idvc",
58
+ "onboarding",
59
+ "dvs",
60
+ "online"
61
+ ]
62
+ }
package/readme.md CHANGED
@@ -45,7 +45,7 @@ There are binary files in the folder which do not have the extension. These file
45
45
  ```javascript
46
46
  new CopyWebpackPlugin ([
47
47
  {
48
- from: 'node_modules/@idscan/idvc/dist/networks/**/*',
48
+ from: 'node_modules/@idscan/onboarding/dist/networks/**/*',
49
49
  to: 'networks/[folder]/[name].[ext]',
50
50
  toType: 'template'
51
51
  }
@@ -55,8 +55,8 @@ new CopyWebpackPlugin ([
55
55
  1.3. Import the library and css to your project.
56
56
 
57
57
  ```javascript
58
- import DVSOIDVC from '@idscan/dvsonline-idvc';
59
- import '@idscan/dvsonline-idvc/dist/css/dvsonline-idvc.css';
58
+ import DVSOIDVC from '@idscan/onboarding';
59
+ import '@idscan/onboarding/dist/css/dvsonline-idvc.css';
60
60
  ```
61
61
  ## Initialization
62
62
 
@@ -107,6 +107,37 @@ Also, if you use automatic capture, in the "back" step **trackstring** will be r
107
107
  *Note: Request an license key for the library by emailing
108
108
  [sales@idscan.net](mailto:sales@idscan.net) or [support@idscan.net](mailto:support@idscan.net)*
109
109
 
110
+ ## Methods
111
+
112
+ **setApplicant** (string) - the method that reinitialize wrapper for new applicant. Parameter is an applicant id of string type.
113
+ ```javascript
114
+ import DVSOIDVC from './Wrapper';
115
+
116
+ const lib = new DVSOIDVC({
117
+ applicantId: '...',
118
+ domainId: '...',
119
+ publicKey: '...',
120
+ });
121
+
122
+ const btn = document.getElementById('btn');
123
+ btn.addEventListener('click', () => {
124
+ const applicantId = 'new applicant id';
125
+ lib.setApplicant(applicantId);
126
+ });
127
+ ```
128
+
110
129
  ## Version history
111
130
 
131
+ - **1.0.4**
132
+ - use CDN
133
+
134
+ - **1.0.3**
135
+ - Changed readme
136
+
137
+ - **1.0.2**
138
+ - Some improvements
139
+
140
+ - **1.0.1**
141
+ - Changed readme
142
+
112
143
  - **1.0.0**