@eid-easy/eideasy-widget 2.4.0 → 2.8.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 +38 -1
- package/dist/full/eideasy-widget.common.js +961 -668
- package/dist/full/eideasy-widget.common.js.map +1 -1
- package/dist/full/eideasy-widget.umd.js +1353 -1060
- package/dist/full/eideasy-widget.umd.js.map +1 -1
- package/dist/full/eideasy-widget.umd.min.js +3 -3
- package/dist/full/eideasy-widget.umd.min.js.map +1 -1
- package/dist/index.html +29 -4
- package/package.json +5 -5
package/dist/index.html
CHANGED
|
@@ -36,10 +36,15 @@
|
|
|
36
36
|
<select name="langPicker" id="langPicker">
|
|
37
37
|
<option value="en">English</option>
|
|
38
38
|
<option value="et" selected="">Estonian</option>
|
|
39
|
+
<option value="fi">Finnish</option>
|
|
40
|
+
<option value="fr">French</option>
|
|
39
41
|
<option value="de">German</option>
|
|
40
42
|
<option value="lv">Latvian</option>
|
|
41
43
|
<option value="lt">Lithuanian</option>
|
|
44
|
+
<option value="pt">Portuguese</option>
|
|
42
45
|
<option value="ru">Russian</option>
|
|
46
|
+
<option value="es">Spanish</option>
|
|
47
|
+
<option value="sv">Swedish</option>
|
|
43
48
|
</select>
|
|
44
49
|
</div>
|
|
45
50
|
<h2>Signatures</h2>
|
|
@@ -59,8 +64,8 @@
|
|
|
59
64
|
clientId: '2IaeiZXbcKzlP1KvjZH9ghty2IJKM8Lg',
|
|
60
65
|
redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
|
|
61
66
|
apiEndpoints: {
|
|
62
|
-
identityStart: () => 'http://eid-sample-app.
|
|
63
|
-
identityFinish: () => 'http://eid-sample-app.
|
|
67
|
+
identityStart: () => 'http://eid-sample-app.localhost/api/identity/start',
|
|
68
|
+
identityFinish: () => 'http://eid-sample-app.localhost/api/identity/finish',
|
|
64
69
|
},
|
|
65
70
|
translations: {
|
|
66
71
|
'et': {
|
|
@@ -107,6 +112,26 @@
|
|
|
107
112
|
console.log('!!!!!! fail !!!!!!!');
|
|
108
113
|
console.log(error);
|
|
109
114
|
},
|
|
115
|
+
methodsConfigFilter(methods) {
|
|
116
|
+
const modifiedMethods = {};
|
|
117
|
+
|
|
118
|
+
modifiedMethods.signature = methods.signature.map((method) => {
|
|
119
|
+
if (method.actionType === 'smart-id-signature') {
|
|
120
|
+
method.supportedCountries.push('FI');
|
|
121
|
+
return method;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
modifiedMethods.signature = methods.identification.map((method) => {
|
|
125
|
+
if (method.actionType === 'smartid') {
|
|
126
|
+
method.supportedCountries.push('FI');
|
|
127
|
+
return method;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return methods;
|
|
131
|
+
},
|
|
132
|
+
modifyEndpointUrl(urlString) {
|
|
133
|
+
return urlString;
|
|
134
|
+
}
|
|
110
135
|
}
|
|
111
136
|
|
|
112
137
|
Object.keys(settings).forEach(key => {
|
|
@@ -126,10 +151,10 @@
|
|
|
126
151
|
language: 'et', // ISO 639-1 two letter language code,
|
|
127
152
|
sandbox: true,
|
|
128
153
|
clientId: 'SNcycaJFfibUABHrbx6c51YRqSiV76Nz',
|
|
129
|
-
docId: '
|
|
154
|
+
docId: '1NTU5D9JEmDwXvEdwbqWhLh5VS8PVlDxqVI1MO5C',
|
|
130
155
|
redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
|
|
131
156
|
apiEndpoints: {
|
|
132
|
-
base: () => 'https://id.eideasy.
|
|
157
|
+
base: () => 'https://id.eideasy.localhost',
|
|
133
158
|
},
|
|
134
159
|
translations: {
|
|
135
160
|
'et': {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eid-easy/eideasy-widget",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "eID Easy Widget is a client-side embeddable component for creating electronic signatures and identifying users through eID Easy API.",
|
|
5
5
|
"main": "dist/full/eideasy-widget.umd.min.js",
|
|
6
|
-
"sri": "sha256-
|
|
7
|
-
"productionReleaseVersion": "2.
|
|
8
|
-
"productionReleaseSri": "sha256-
|
|
6
|
+
"sri": "sha256-XHTSsgziNjgCjhEU4UwgNM3zCO9mgOHJmA8hanP5Pp4=",
|
|
7
|
+
"productionReleaseVersion": "2.8.0",
|
|
8
|
+
"productionReleaseSri": "sha256-XHTSsgziNjgCjhEU4UwgNM3zCO9mgOHJmA8hanP5Pp4=",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@eid-easy/eideasy-browser-client": "2.
|
|
44
|
+
"@eid-easy/eideasy-browser-client": "2.12.0",
|
|
45
45
|
"core-js": "^3.6.5",
|
|
46
46
|
"i18n-iso-countries": "^6.7.0",
|
|
47
47
|
"lodash.defaultsdeep": "^4.6.1",
|