@eid-easy/eideasy-widget 2.3.0 → 2.7.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
@@ -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.test/api/identity/start',
63
- identityFinish: () => 'http://eid-sample-app.test/api/identity/finish',
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 => {
@@ -121,14 +146,15 @@
121
146
  const eidEasyWidget = document.createElement('eideasy-widget');
122
147
 
123
148
  const settings = {
149
+ debug: true,
124
150
  countryCode: 'EE', // ISO 3166 two letter country code
125
151
  language: 'et', // ISO 639-1 two letter language code,
126
152
  sandbox: true,
127
153
  clientId: 'SNcycaJFfibUABHrbx6c51YRqSiV76Nz',
128
- docId: 'nQoR4Ypaa3AGaHFmWvGX5PeNEoXMJ2Xx1QVWzPxt',
154
+ docId: '1NTU5D9JEmDwXvEdwbqWhLh5VS8PVlDxqVI1MO5C',
129
155
  redirectUri: 'http://localhost:8080/', // this gets used for redirects e.g. when using eParaksts mobile
130
156
  apiEndpoints: {
131
- base: () => 'https://id.eideasy.test',
157
+ base: () => 'https://id.eideasy.localhost',
132
158
  },
133
159
  translations: {
134
160
  'et': {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@eid-easy/eideasy-widget",
3
- "version": "2.3.0",
3
+ "version": "2.7.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-3hgYczVe2Lcoq3Cw/14qKZTOgzWU6kC0p7SYptuoM0Q=",
7
- "productionReleaseVersion": "2.3.0",
8
- "productionReleaseSri": "sha256-3hgYczVe2Lcoq3Cw/14qKZTOgzWU6kC0p7SYptuoM0Q=",
6
+ "sri": "sha256-FKKuuBFzTGRVwz0344iKivyAqElGnihZ9UiLNyYVN6k=",
7
+ "productionReleaseVersion": "2.7.0",
8
+ "productionReleaseSri": "sha256-FKKuuBFzTGRVwz0344iKivyAqElGnihZ9UiLNyYVN6k=",
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.9.0",
44
+ "@eid-easy/eideasy-browser-client": "2.11.0",
45
45
  "core-js": "^3.6.5",
46
46
  "i18n-iso-countries": "^6.7.0",
47
47
  "lodash.defaultsdeep": "^4.6.1",