@eid-easy/eideasy-browser-client 1.9.1 → 2.1.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +148 -117
  2. package/dist/eideasy-browser-client.js +1 -1
  3. package/docs/.vuepress/components/AppError.vue +1 -1
  4. package/docs/.vuepress/components/AppIdentification.vue +9 -3
  5. package/docs/.vuepress/components/AppSigning.vue +167 -0
  6. package/docs/.vuepress/components/IdentAtHandy.vue +102 -0
  7. package/docs/.vuepress/components/IdentEParakstsMobile.vue +16 -19
  8. package/docs/.vuepress/components/IdentFinnishTrustNetwork.vue +14 -26
  9. package/docs/.vuepress/components/IdentMojeId.vue +7 -22
  10. package/docs/.vuepress/components/SignEParakstsMobile.vue +103 -0
  11. package/docs/.vuepress/components/SignEvrotrust.vue +113 -0
  12. package/docs/.vuepress/components/SignFtn.vue +103 -0
  13. package/docs/.vuepress/components/SignIdCard.vue +70 -0
  14. package/docs/.vuepress/components/SignMobileId.vue +100 -0
  15. package/docs/.vuepress/components/SignOtp.vue +93 -0
  16. package/docs/.vuepress/components/SignSmartId.vue +89 -0
  17. package/docs/.vuepress/components/eidEasyDemoClient.js +15 -3
  18. package/docs/demos/README.md +5 -0
  19. package/package.json +4 -4
  20. package/src/apiClient/createApiEndpoints.js +22 -0
  21. package/src/config.js +139 -51
  22. package/src/coreSettingsSchema.js +69 -0
  23. package/src/createApiPoller.js +54 -0
  24. package/src/createClientCore.js +10 -8
  25. package/src/createModuleCreator.js +17 -11
  26. package/src/createMonitoringService.js +33 -0
  27. package/src/createSettings.js +26 -0
  28. package/src/createStep.js +11 -3
  29. package/src/i18n/de.json +1 -1
  30. package/src/i18n/en.json +1 -1
  31. package/src/i18n/et.json +1 -1
  32. package/src/i18n/lt.json +1 -1
  33. package/src/i18n/lv.json +1 -1
  34. package/src/i18n/ru.json +1 -1
  35. package/src/identificationModules/createAtHandy.js +37 -0
  36. package/src/identificationModules/createEParakstsMobile.js +19 -23
  37. package/src/identificationModules/createFinnishTrustNetwork.js +22 -24
  38. package/src/identificationModules/createFrejaEid.js +11 -1
  39. package/src/identificationModules/createIdCard.js +7 -1
  40. package/src/identificationModules/createMobileId.js +15 -1
  41. package/src/identificationModules/createMojeId.js +19 -23
  42. package/src/identificationModules/createSmartId.js +11 -1
  43. package/src/identificationModules/createZealId.js +11 -1
  44. package/src/identificationModules/identificationModules.js +2 -0
  45. package/src/main.js +44 -1
  46. package/src/signatureModules/createEParakstsMobileSignature.js +70 -0
  47. package/src/signatureModules/createEvrotrustSignature.js +144 -0
  48. package/src/signatureModules/createFtnSignature.js +70 -0
  49. package/src/signatureModules/createIdCardSignature.js +208 -0
  50. package/src/signatureModules/createMobileIdSignature.js +129 -0
  51. package/src/signatureModules/createOtpSignature.js +68 -0
  52. package/src/signatureModules/createSmartIdSignature.js +124 -0
  53. package/src/signatureModules/signatureModules.js +17 -0
  54. package/src/{cloneDeep.test.js → tests/cloneDeep.test.js} +1 -1
  55. package/src/tests/config.test.js +25 -0
  56. package/src/{createRequestError.test.js → tests/createRequestError.test.js} +1 -1
  57. package/src/{main.test.js → tests/main.test.js} +1 -1
  58. package/src/{poll.test.js → tests/poll.test.js} +1 -1
  59. package/src/{windowOpen.test.js → tests/windowOpen.test.js} +1 -1
package/CHANGELOG.md CHANGED
@@ -1,134 +1,165 @@
1
- ## [1.9.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.9.0...v1.9.1) (2021-09-02)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * add language param to finnishTrustNetwork request ([554463d](https://github.com/eideasy/eideasy-browser-client/commit/554463d13bc1f52a1c0875119d27046a6372be3d))
7
-
8
-
9
-
10
- # [1.9.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.8.0...v1.9.0) (2021-08-31)
11
-
12
-
13
- ### Features
14
-
15
- * add Finnish Trust Network ([#61](https://github.com/eideasy/eideasy-browser-client/issues/61)) ([26b894a](https://github.com/eideasy/eideasy-browser-client/commit/26b894a42d625401a345b37cb689b5982ccc3d6f))
16
-
17
-
18
-
19
- # [1.8.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.7.0...v1.8.0) (2021-08-30)
20
-
21
-
22
- ### Features
23
-
24
- * add MojeiD ([#60](https://github.com/eideasy/eideasy-browser-client/issues/60)) ([97bee7d](https://github.com/eideasy/eideasy-browser-client/commit/97bee7d46c559e506d28e8b21be6938bcec0e352))
25
-
26
-
27
-
28
- # [1.7.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.2...v1.7.0) (2021-08-17)
29
-
30
-
31
-
32
- ## [1.6.2](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.1...v1.6.2) (2021-08-09)
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * fix eparaksts sandbox url ([39cfa0b](https://github.com/eideasy/eideasy-browser-client/commit/39cfa0b551f39a6a971f42c912ad6e6e4cf6d5c0))
38
-
39
-
40
-
41
- ## [1.6.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.0...v1.6.1) (2021-08-09)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * rename appUrl to redirectUri for consistency ([bafcf28](https://github.com/eideasy/eideasy-browser-client/commit/bafcf28e7560f4f78aaf2e37806e23864c58e599))
47
-
48
-
49
-
50
- # [1.6.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.5.0...v1.6.0) (2021-08-09)
51
-
52
-
53
- ### Features
54
-
55
- * get the ZealiD iframe url from the eID Easy API ([0c8cdc3](https://github.com/eideasy/eideasy-browser-client/commit/0c8cdc3d50a15c147af1c7e526161fe632cfce0d))
56
-
57
-
58
-
59
- # [1.5.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.4.1...v1.5.0) (2021-08-06)
60
-
61
-
62
- ### Features
63
-
64
- * add 'modifyRequestSettings' option that makes it possible to alter the outgoing requests ([d7332f2](https://github.com/eideasy/eideasy-browser-client/commit/d7332f24974861b6643d5fbf8864f4cf00b8caf8))
65
-
66
-
67
-
68
- ## [1.4.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.4.0...v1.4.1) (2021-08-05)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * only listen to the messages from the ZealiD iframe ([aff7c08](https://github.com/eideasy/eideasy-browser-client/commit/aff7c08bdd09a838070269d9cb7edb9532989dd5))
74
-
75
-
76
-
77
- # [1.4.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.3...v1.4.0) (2021-08-04)
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * provide lang param for all API requests ([#51](https://github.com/eideasy/eideasy-browser-client/issues/51)) ([1ef9159](https://github.com/eideasy/eideasy-browser-client/commit/1ef915920678223c6560d9993b2f2162b3ef0251))
1
+ # [2.1.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.0.1...v2.1.0) (2021-10-26)
83
2
 
84
3
 
85
4
  ### Features
86
5
 
87
- * add id card identification methods for Finland, Portugal, Serbia and Belgium ([#52](https://github.com/eideasy/eideasy-browser-client/issues/52)) ([51c3835](https://github.com/eideasy/eideasy-browser-client/commit/51c38353ee24535fba70e6555d5fe534a78a132d))
88
-
89
-
90
-
91
- ## [1.3.3](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.2...v1.3.3) (2021-08-04)
92
-
93
-
94
- ### Bug Fixes
95
-
96
- * Add 'NOT_MID_CLIENT' to error statuses ([cb1c758](https://github.com/eideasy/eideasy-browser-client/commit/cb1c7584bfe23483e7722525084e228a0ba29aef))
6
+ * add Austrian Handy Signatur identification ([3b65ba4](https://github.com/eideasy/eideasy-browser-client/commit/3b65ba4d9eb5b831693ca923672595a6db33b30f))
7
+ * Add id card read no_certifiacetes error message ([4d87023](https://github.com/eideasy/eideasy-browser-client/commit/4d870238782b9d5d86c2832bbc6f35f516a50637))
97
8
 
98
9
 
99
10
 
100
- ## [1.3.2](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.1...v1.3.2) (2021-08-04)
11
+ ## [2.0.1](https://github.com/eideasy/eideasy-browser-client/compare/v2.0.0...v2.0.1) (2021-10-25)
101
12
 
102
13
 
103
14
  ### Bug Fixes
104
15
 
105
- * do not remove the iframe after success response as the dev might want to still display it to the user ([500ecb6](https://github.com/eideasy/eideasy-browser-client/commit/500ecb67e3e12c62de34d277bdb812039f95f388))
106
-
107
-
108
-
109
- ## [1.3.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.0...v1.3.1) (2021-08-04)
110
-
111
-
112
-
113
- # [1.3.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.2.0...v1.3.0) (2021-08-04)
114
-
115
-
116
- ### Features
117
-
118
- * add ZealiD identification ([9e82feb](https://github.com/eideasy/eideasy-browser-client/commit/9e82febbd8b327a4ac0314f45a6a7d510bd5066f))
119
-
120
-
121
-
122
- # [1.2.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.2.0-alpha.1...v1.2.0) (2021-08-03)
123
-
124
-
125
- ### Features
126
-
127
- * finalize freja id implementation ([7fd56c8](https://github.com/eideasy/eideasy-browser-client/commit/7fd56c8e856121fbd38b68276e17ba6fa4c2db32))
128
- * update translations ([aecf10a](https://github.com/eideasy/eideasy-browser-client/commit/aecf10a7e15a00ab3b3e7a9b9fd257a463339cf6))
16
+ * allow unrecognized settings - we do not want to make too many assumptions about the use cases ([baad2e5](https://github.com/eideasy/eideasy-browser-client/commit/baad2e52b9ff9101d82e6814830ba0c65e955ca9))
129
17
 
130
18
 
131
19
 
20
+ # [2.0.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.9.1...v2.0.0) (2021-10-22)
21
+
22
+
23
+ ### Features
24
+
25
+ * add all the currently available signing methods
26
+ * remove the insteadOfRedirect setting
27
+ * rename countriesWhitelist to supportedCountries
28
+ * use the new redirect pattern for Moje ID ([3164e78](https://github.com/eideasy/eideasy-browser-client/commit/3164e783b3de7de02675561e87a0d0f50e4f77d4))
29
+
30
+
31
+
32
+ ## [1.9.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.9.0...v1.9.1) (2021-09-02)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * add language param to finnishTrustNetwork request ([554463d](https://github.com/eideasy/eideasy-browser-client/commit/554463d13bc1f52a1c0875119d27046a6372be3d))
38
+
39
+
40
+
41
+ # [1.9.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.8.0...v1.9.0) (2021-08-31)
42
+
43
+
44
+ ### Features
45
+
46
+ * add Finnish Trust Network ([#61](https://github.com/eideasy/eideasy-browser-client/issues/61)) ([26b894a](https://github.com/eideasy/eideasy-browser-client/commit/26b894a42d625401a345b37cb689b5982ccc3d6f))
47
+
48
+
49
+
50
+ # [1.8.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.7.0...v1.8.0) (2021-08-30)
51
+
52
+
53
+ ### Features
54
+
55
+ * add MojeiD ([#60](https://github.com/eideasy/eideasy-browser-client/issues/60)) ([97bee7d](https://github.com/eideasy/eideasy-browser-client/commit/97bee7d46c559e506d28e8b21be6938bcec0e352))
56
+
57
+
58
+
59
+ # [1.7.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.2...v1.7.0) (2021-08-17)
60
+
61
+
62
+
63
+ ## [1.6.2](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.1...v1.6.2) (2021-08-09)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * fix eparaksts sandbox url ([39cfa0b](https://github.com/eideasy/eideasy-browser-client/commit/39cfa0b551f39a6a971f42c912ad6e6e4cf6d5c0))
69
+
70
+
71
+
72
+ ## [1.6.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.6.0...v1.6.1) (2021-08-09)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * rename appUrl to redirectUri for consistency ([bafcf28](https://github.com/eideasy/eideasy-browser-client/commit/bafcf28e7560f4f78aaf2e37806e23864c58e599))
78
+
79
+
80
+
81
+ # [1.6.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.5.0...v1.6.0) (2021-08-09)
82
+
83
+
84
+ ### Features
85
+
86
+ * get the ZealiD iframe url from the eID Easy API ([0c8cdc3](https://github.com/eideasy/eideasy-browser-client/commit/0c8cdc3d50a15c147af1c7e526161fe632cfce0d))
87
+
88
+
89
+
90
+ # [1.5.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.4.1...v1.5.0) (2021-08-06)
91
+
92
+
93
+ ### Features
94
+
95
+ * add 'modifyRequestSettings' option that makes it possible to alter the outgoing requests ([d7332f2](https://github.com/eideasy/eideasy-browser-client/commit/d7332f24974861b6643d5fbf8864f4cf00b8caf8))
96
+
97
+
98
+
99
+ ## [1.4.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.4.0...v1.4.1) (2021-08-05)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * only listen to the messages from the ZealiD iframe ([aff7c08](https://github.com/eideasy/eideasy-browser-client/commit/aff7c08bdd09a838070269d9cb7edb9532989dd5))
105
+
106
+
107
+
108
+ # [1.4.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.3...v1.4.0) (2021-08-04)
109
+
110
+
111
+ ### Bug Fixes
112
+
113
+ * provide lang param for all API requests ([#51](https://github.com/eideasy/eideasy-browser-client/issues/51)) ([1ef9159](https://github.com/eideasy/eideasy-browser-client/commit/1ef915920678223c6560d9993b2f2162b3ef0251))
114
+
115
+
116
+ ### Features
117
+
118
+ * add id card identification methods for Finland, Portugal, Serbia and Belgium ([#52](https://github.com/eideasy/eideasy-browser-client/issues/52)) ([51c3835](https://github.com/eideasy/eideasy-browser-client/commit/51c38353ee24535fba70e6555d5fe534a78a132d))
119
+
120
+
121
+
122
+ ## [1.3.3](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.2...v1.3.3) (2021-08-04)
123
+
124
+
125
+ ### Bug Fixes
126
+
127
+ * Add 'NOT_MID_CLIENT' to error statuses ([cb1c758](https://github.com/eideasy/eideasy-browser-client/commit/cb1c7584bfe23483e7722525084e228a0ba29aef))
128
+
129
+
130
+
131
+ ## [1.3.2](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.1...v1.3.2) (2021-08-04)
132
+
133
+
134
+ ### Bug Fixes
135
+
136
+ * do not remove the iframe after success response as the dev might want to still display it to the user ([500ecb6](https://github.com/eideasy/eideasy-browser-client/commit/500ecb67e3e12c62de34d277bdb812039f95f388))
137
+
138
+
139
+
140
+ ## [1.3.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.3.0...v1.3.1) (2021-08-04)
141
+
142
+
143
+
144
+ # [1.3.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.2.0...v1.3.0) (2021-08-04)
145
+
146
+
147
+ ### Features
148
+
149
+ * add ZealiD identification ([9e82feb](https://github.com/eideasy/eideasy-browser-client/commit/9e82febbd8b327a4ac0314f45a6a7d510bd5066f))
150
+
151
+
152
+
153
+ # [1.2.0](https://github.com/eideasy/eideasy-browser-client/compare/v1.2.0-alpha.1...v1.2.0) (2021-08-03)
154
+
155
+
156
+ ### Features
157
+
158
+ * finalize freja id implementation ([7fd56c8](https://github.com/eideasy/eideasy-browser-client/commit/7fd56c8e856121fbd38b68276e17ba6fa4c2db32))
159
+ * update translations ([aecf10a](https://github.com/eideasy/eideasy-browser-client/commit/aecf10a7e15a00ab3b3e7a9b9fd257a463339cf6))
160
+
161
+
162
+
132
163
  # [1.2.0-alpha.1](https://github.com/eideasy/eideasy-browser-client/compare/v1.1.0...v1.2.0-alpha.1) (2021-08-02)
133
164
 
134
165