@eid-easy/eideasy-widget 2.3.0-beta.0 → 2.6.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 +45 -23
- package/dist/full/eideasy-widget.common.js +573 -536
- package/dist/full/eideasy-widget.common.js.map +1 -1
- package/dist/full/eideasy-widget.umd.js +561 -524
- 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 +23 -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,26 @@
|
|
|
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
|
+
},
|
|
127
|
+
modifyEndpointUrl(urlString) {
|
|
128
|
+
return urlString;
|
|
129
|
+
}
|
|
110
130
|
}
|
|
111
131
|
|
|
112
132
|
Object.keys(settings).forEach(key => {
|
|
@@ -129,7 +149,7 @@
|
|
|
129
149
|
docId: 'nQoR4Ypaa3AGaHFmWvGX5PeNEoXMJ2Xx1QVWzPxt',
|
|
130
150
|
redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
|
|
131
151
|
apiEndpoints: {
|
|
132
|
-
base: () => 'https://id.eideasy.
|
|
152
|
+
base: () => 'https://id.eideasy.localhost',
|
|
133
153
|
},
|
|
134
154
|
translations: {
|
|
135
155
|
'et': {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eid-easy/eideasy-widget",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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-I1oE+pat58HpYYWrYimof0TsVxRLc0b5vQInMpb0bpc=",
|
|
7
|
+
"productionReleaseVersion": "2.6.0",
|
|
8
|
+
"productionReleaseSri": "sha256-I1oE+pat58HpYYWrYimof0TsVxRLc0b5vQInMpb0bpc=",
|
|
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.10.1",
|
|
45
45
|
"core-js": "^3.6.5",
|
|
46
46
|
"i18n-iso-countries": "^6.7.0",
|
|
47
47
|
"lodash.defaultsdeep": "^4.6.1",
|