@eid-easy/eideasy-widget 2.2.0 → 2.5.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 +34 -8
- package/README.md +0 -1
- package/dist/full/eideasy-widget.common.js +576 -536
- package/dist/full/eideasy-widget.common.js.map +1 -1
- package/dist/full/eideasy-widget.umd.js +576 -536
- 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 +21 -3
- package/package.json +5 -5
package/dist/index.html
CHANGED
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
clientId: '2IaeiZXbcKzlP1KvjZH9ghty2IJKM8Lg',
|
|
60
60
|
redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
|
|
61
61
|
apiEndpoints: {
|
|
62
|
-
identityStart: () => 'http://eid-sample-app.
|
|
63
|
-
identityFinish: () => 'http://eid-sample-app.
|
|
62
|
+
identityStart: () => 'http://eid-sample-app.localhost/api/identity/start',
|
|
63
|
+
identityFinish: () => 'http://eid-sample-app.localhost/api/identity/finish',
|
|
64
64
|
},
|
|
65
65
|
translations: {
|
|
66
66
|
'et': {
|
|
@@ -107,6 +107,23 @@
|
|
|
107
107
|
console.log('!!!!!! fail !!!!!!!');
|
|
108
108
|
console.log(error);
|
|
109
109
|
},
|
|
110
|
+
methodsConfigFilter(methods) {
|
|
111
|
+
const modifiedMethods = {};
|
|
112
|
+
|
|
113
|
+
modifiedMethods.signature = methods.signature.map((method) => {
|
|
114
|
+
if (method.actionType === 'smart-id-signature') {
|
|
115
|
+
method.supportedCountries.push('FI');
|
|
116
|
+
return method;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
modifiedMethods.signature = methods.identification.map((method) => {
|
|
120
|
+
if (method.actionType === 'smartid') {
|
|
121
|
+
method.supportedCountries.push('FI');
|
|
122
|
+
return method;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
return methods;
|
|
126
|
+
},
|
|
110
127
|
}
|
|
111
128
|
|
|
112
129
|
Object.keys(settings).forEach(key => {
|
|
@@ -121,6 +138,7 @@
|
|
|
121
138
|
const eidEasyWidget = document.createElement('eideasy-widget');
|
|
122
139
|
|
|
123
140
|
const settings = {
|
|
141
|
+
debug: true,
|
|
124
142
|
countryCode: 'EE', // ISO 3166 two letter country code
|
|
125
143
|
language: 'et', // ISO 639-1 two letter language code,
|
|
126
144
|
sandbox: true,
|
|
@@ -128,7 +146,7 @@
|
|
|
128
146
|
docId: 'nQoR4Ypaa3AGaHFmWvGX5PeNEoXMJ2Xx1QVWzPxt',
|
|
129
147
|
redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
|
|
130
148
|
apiEndpoints: {
|
|
131
|
-
base: () => 'https://id.eideasy.
|
|
149
|
+
base: () => 'https://id.eideasy.localhost',
|
|
132
150
|
},
|
|
133
151
|
translations: {
|
|
134
152
|
'et': {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eid-easy/eideasy-widget",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.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-GiLOGBjdHbnD3gbIEHCr9/eRyuL3L7wWx09EpnvbpoU=",
|
|
7
|
+
"productionReleaseVersion": "2.5.0",
|
|
8
|
+
"productionReleaseSri": "sha256-GiLOGBjdHbnD3gbIEHCr9/eRyuL3L7wWx09EpnvbpoU=",
|
|
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.9.0",
|
|
45
45
|
"core-js": "^3.6.5",
|
|
46
46
|
"i18n-iso-countries": "^6.7.0",
|
|
47
47
|
"lodash.defaultsdeep": "^4.6.1",
|