@eid-easy/eideasy-widget 2.4.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/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.test/api/identity/start',
63
- identityFinish: () => 'http://eid-sample-app.test/api/identity/finish',
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 => {
@@ -129,7 +146,7 @@
129
146
  docId: 'nQoR4Ypaa3AGaHFmWvGX5PeNEoXMJ2Xx1QVWzPxt',
130
147
  redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
131
148
  apiEndpoints: {
132
- base: () => 'https://id.eideasy.test',
149
+ base: () => 'https://id.eideasy.localhost',
133
150
  },
134
151
  translations: {
135
152
  'et': {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@eid-easy/eideasy-widget",
3
- "version": "2.4.0",
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-7sBYPMivvUcoLZAIbHwxyKALjt3q2pM4VuidYU4ylbY=",
7
- "productionReleaseVersion": "2.4.0",
8
- "productionReleaseSri": "sha256-7sBYPMivvUcoLZAIbHwxyKALjt3q2pM4VuidYU4ylbY=",
6
+ "sri": "sha256-GiLOGBjdHbnD3gbIEHCr9/eRyuL3L7wWx09EpnvbpoU=",
7
+ "productionReleaseVersion": "2.5.0",
8
+ "productionReleaseSri": "sha256-GiLOGBjdHbnD3gbIEHCr9/eRyuL3L7wWx09EpnvbpoU=",
9
9
  "files": [
10
10
  "dist"
11
11
  ],