@eid-easy/eideasy-widget 2.50.1 → 2.51.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.
@@ -1,9 +1,9 @@
1
- # [2.50.0](https://github.com/eideasy/eideasy-widget/compare/v2.49.3...v2.50.0) (2022-10-27)
1
+ ## [2.50.1](https://github.com/eideasy/eideasy-widget/compare/v2.50.0...v2.50.1) (2022-10-28)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * add Polish Moje Id authentication module ([#141](https://github.com/eideasy/eideasy-widget/issues/141)) ([632d2b8](https://github.com/eideasy/eideasy-widget/commit/632d2b8391f3b332b95802dd7163214cb9d0cfba))
6
+ * do not translate eparaksts mobile in russian ([#142](https://github.com/eideasy/eideasy-widget/issues/142)) ([807c279](https://github.com/eideasy/eideasy-widget/commit/807c279d50fb3c058a37f2ed8585b4c6ccb4e100))
7
7
 
8
8
 
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [2.51.0](https://github.com/eideasy/eideasy-widget/compare/v2.50.1...v2.51.0) (2022-11-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * Eid 998 remember the user selected country ([#143](https://github.com/eideasy/eideasy-widget/issues/143)) ([9be9be8](https://github.com/eideasy/eideasy-widget/commit/9be9be8f5b1347e005c208cfa007ee9406699739))
7
+
8
+
9
+
1
10
  ## [2.50.1](https://github.com/eideasy/eideasy-widget/compare/v2.50.0...v2.50.1) (2022-10-28)
2
11
 
3
12
 
@@ -14910,12 +14910,12 @@ module.exports = {
14910
14910
  }, attrs)
14911
14911
  }, rest), children.concat([_c('defs', [_c('path', {
14912
14912
  attrs: {
14913
- "id": "id-0a",
14913
+ "id": "id-6a",
14914
14914
  "d": "M.18.059h26.722v9.069H.18z"
14915
14915
  }
14916
14916
  }), _c('path', {
14917
14917
  attrs: {
14918
- "id": "id-2c",
14918
+ "id": "id-8c",
14919
14919
  "d": "M0 .04h44.355v37.372H0z"
14920
14920
  }
14921
14921
  })]), _c('g', {
@@ -14939,18 +14939,18 @@ module.exports = {
14939
14939
  }
14940
14940
  }, [_c('mask', {
14941
14941
  attrs: {
14942
- "id": "id-1b",
14942
+ "id": "id-7b",
14943
14943
  "fill": "#fff"
14944
14944
  }
14945
14945
  }, [_c('use', {
14946
14946
  attrs: {
14947
- "xlink:href": "#id-0a"
14947
+ "xlink:href": "#id-6a"
14948
14948
  }
14949
14949
  })]), _c('path', {
14950
14950
  attrs: {
14951
14951
  "fill": "#D70F16",
14952
14952
  "d": "M25.786.059c-3.251 2.918-7.541 4.72-12.262 4.72-4.7 0-8.99-1.782-12.222-4.7-1.724 1.723-1.43 4.622.666 5.876a22.548 22.548 0 0011.576 3.173c4.23 0 8.207-1.175 11.596-3.193 2.076-1.234 2.35-4.153.646-5.876",
14953
- "mask": "url(#id-1b)"
14953
+ "mask": "url(#id-7b)"
14954
14954
  }
14955
14955
  })]), _c('g', {
14956
14956
  attrs: {
@@ -14958,18 +14958,18 @@ module.exports = {
14958
14958
  }
14959
14959
  }, [_c('mask', {
14960
14960
  attrs: {
14961
- "id": "id-3d",
14961
+ "id": "id-9d",
14962
14962
  "fill": "#fff"
14963
14963
  }
14964
14964
  }, [_c('use', {
14965
14965
  attrs: {
14966
- "xlink:href": "#id-2c"
14966
+ "xlink:href": "#id-8c"
14967
14967
  }
14968
14968
  })]), _c('path', {
14969
14969
  attrs: {
14970
14970
  "fill": "#58595B",
14971
14971
  "d": "M38.93.705L38.342.04l-.627.627c-1.822 1.822-2.233 4.623-.999 6.954 1.508 2.86 2.116 6.091 1.783 9.343-.784 7.6-6.876 13.711-14.456 14.554a15.12 15.12 0 01-1.88.097c-9.05.02-16.415-7.345-16.415-16.394 0-2.645.647-5.27 1.861-7.58 1.214-2.332.823-5.133-.999-6.954L5.983.059l-.587.685A22.086 22.086 0 00.009 15.866c.313 11.42 9.5 20.88 20.9 21.507.43.02.842.04 1.273.04 12.223 0 22.173-9.951 22.173-22.193A22.22 22.22 0 0038.93.705",
14972
- "mask": "url(#id-3d)"
14972
+ "mask": "url(#id-9d)"
14973
14973
  }
14974
14974
  })]), _c('path', {
14975
14975
  attrs: {
@@ -25302,7 +25302,7 @@ module.exports = {
25302
25302
  }, attrs)
25303
25303
  }, rest), children.concat([_c('defs', [_c('linearGradient', {
25304
25304
  attrs: {
25305
- "id": "id-4a",
25305
+ "id": "id-0a",
25306
25306
  "x1": "45.313%",
25307
25307
  "x2": "33.822%",
25308
25308
  "y1": "69.296%",
@@ -25320,7 +25320,7 @@ module.exports = {
25320
25320
  }
25321
25321
  })]), _c('linearGradient', {
25322
25322
  attrs: {
25323
- "id": "id-6c",
25323
+ "id": "id-2c",
25324
25324
  "x1": "17.248%",
25325
25325
  "x2": "58.688%",
25326
25326
  "y1": "34.281%",
@@ -25338,7 +25338,7 @@ module.exports = {
25338
25338
  }
25339
25339
  })]), _c('path', {
25340
25340
  attrs: {
25341
- "id": "id-5b",
25341
+ "id": "id-1b",
25342
25342
  "d": "M75.617 68.105a21.83 21.83 0 002.601 5.096c9.291 13.456 23.041 10.092 28.616 9.344 5.574-.747 13.007-1.121 17.094 2.243 4.088 3.364 6.352 6.033 14.441 8.532 2.602.373 1.911 1.185.796 1.933-8.547 5.606-15.608 3.737-24.527 0-8.92-3.738-12.264-.748-18.21 0-19.325 2.99-35.676 1.121-49.055-5.606a46.935 46.935 0 01-2.198-1.804c-3.08 3.497-5.197 5.593-6.35 6.289-1.857 1.12-8.546 4.11-17.094 4.11-5.698 0-10.53-.622-14.493-1.868-3.634-1.163-5.616-1.91-5.946-2.242-.744-.748-1.292-2.03 2.742-2.435 14.52-1.922 27.079-6.737 32.47-14.862-2.721-5.544-3.682-11.738-2.88-18.584C35.38 43.895 40.09 42 51.232 30.431c7.665-8.521 1.458-17.002-1.547-20.327a304.822 304.822 0 01-1.301-1.454c-1.174-1.359-1.17-1.35-2.76-.563a299.293 299.293 0 01-4.228 2.039c-.25.117-.938.46-.842.097.214-.822 6.12-3.842 6.014-4.07-.106-.23-7.504 1.596-7.67 1.608-.165.013-.315-.439-.108-.51.206-.076 2.191-.754 3.292-1.119 1.094-.362 3.5-1.141 3.283-1.262-.216-.124-8.341-.632-8.458-.64-.03-.002-.052-.028-.067-.066v-.297c.015-.038.039-.066.07-.073 1.92-.462 8.359-.207 8.507-.363.148-.157-.193-1.103-.231-1.657-.069-1.026.35-1.762 1.12-1.774h.04c.092.001.19.013.292.036 1.866.41 3.704 1.01 5.535 1.605 1.665.54 2.59.639 3.883.313 1.292-.326 2.034-.737 3.231-.651 4.516.009 9.529 2.096 14.536 6s12.49 16.84 9.198 25.28c-4.97 12.74-5.177 10.025-7.662 17.126-.18.814-.354 1.581-.517 2.312-.919 4.871-1.048 10.056.381 14.88.044.117.09.234.136.352.12.309.206.593.257.852z"
25343
25343
  }
25344
25344
  })]), _c('g', {
@@ -25353,12 +25353,12 @@ module.exports = {
25353
25353
  }
25354
25354
  }), _c('use', {
25355
25355
  attrs: {
25356
- "fill": "url(#id-4a)",
25357
- "xlink:href": "#id-5b"
25356
+ "fill": "url(#id-0a)",
25357
+ "xlink:href": "#id-1b"
25358
25358
  }
25359
25359
  }), _c('path', {
25360
25360
  attrs: {
25361
- "fill": "url(#id-6c)",
25361
+ "fill": "url(#id-2c)",
25362
25362
  "d": "M140.16 94.148c-9.194 1.408-11.705 1.1-14.296-.017-5.142-2.01-9.086-7.663-25.24-5.574-16.152 2.089-46.802-2.089-54.671-15.873-5.247-9.19-.586-18.872 13.981-29.046 5.452-3.472 9.006-9.315 10.663-17.53C72.25 17.904 64.062 9.215 46.03.039A1.13 1.13 0 0146.308 0h.038c.093.001.19.013.293.036 1.866.41 3.704 1.01 5.535 1.605 1.665.54 2.59.639 3.883.313 1.292-.326 2.034-.737 3.231-.651 4.516.009 9.529 2.096 14.536 6s12.49 16.84 9.198 25.28c-4.97 12.74-5.177 10.025-7.662 17.126-.18.814-.354 1.581-.517 2.312-.919 4.871-1.048 10.056.381 14.88.044.117.09.234.136.352.12.309.206.593.257.852a21.83 21.83 0 002.601 5.096c9.291 13.456 23.041 10.092 28.616 9.344 5.574-.747 13.007-1.121 17.094 2.243 4.088 3.364 6.352 6.033 14.441 8.532 1.303.187 1.78.484 1.792.828z"
25363
25363
  }
25364
25364
  }), _c('g', {
@@ -33611,7 +33611,7 @@ module.exports = {
33611
33611
  }, attrs)
33612
33612
  }, rest), children.concat([_c('defs', [_c('linearGradient', {
33613
33613
  attrs: {
33614
- "id": "id-7a",
33614
+ "id": "id-3a",
33615
33615
  "x1": "124.883",
33616
33616
  "y1": "17.983",
33617
33617
  "x2": "117.483",
@@ -33640,7 +33640,7 @@ module.exports = {
33640
33640
  }
33641
33641
  })]), _c('linearGradient', {
33642
33642
  attrs: {
33643
- "id": "id-8b",
33643
+ "id": "id-4b",
33644
33644
  "x1": "116.71",
33645
33645
  "y1": "31.343",
33646
33646
  "x2": "102.594",
@@ -33669,7 +33669,7 @@ module.exports = {
33669
33669
  }
33670
33670
  })]), _c('linearGradient', {
33671
33671
  attrs: {
33672
- "id": "id-9c",
33672
+ "id": "id-5c",
33673
33673
  "x1": "106.335",
33674
33674
  "y1": "23.516",
33675
33675
  "x2": "140.192",
@@ -33693,18 +33693,18 @@ module.exports = {
33693
33693
  }
33694
33694
  }), _c('path', {
33695
33695
  attrs: {
33696
- "fill": "url(#id-7a)",
33696
+ "fill": "url(#id-3a)",
33697
33697
  "d": "M126.585 16.359l-6.919 4.057V1.094l6.919 6.917v8.348z"
33698
33698
  }
33699
33699
  }), _c('path', {
33700
33700
  attrs: {
33701
- "fill": "url(#id-8b)",
33701
+ "fill": "url(#id-4b)",
33702
33702
  "d": "M106.335 11.382h6.634v23.101h-6.634z"
33703
33703
  }
33704
33704
  }), _c('path', {
33705
33705
  attrs: {
33706
33706
  "d": "M140.191 13.257a.789.789 0 00-.2-.505.935.935 0 00-.82-.191 42.336 42.336 0 00-32.84 21.922h6.634c7.037-12.392 17.369-17.99 26.691-20.609.416-.138.544-.391.535-.617z",
33707
- "fill": "url(#id-9c)"
33707
+ "fill": "url(#id-5c)"
33708
33708
  }
33709
33709
  }), _c('path', {
33710
33710
  attrs: {
@@ -41048,12 +41048,12 @@ if (typeof window !== 'undefined') {
41048
41048
  // EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
41049
41049
  var vue_runtime_esm = __webpack_require__("2b0e");
41050
41050
 
41051
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0f78bc3c-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=befe5c02&
41051
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0f78bc3c-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=70185f70&
41052
41052
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.app},[_c('AppLayout')],1)}
41053
41053
  var staticRenderFns = []
41054
41054
 
41055
41055
 
41056
- // CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=befe5c02&
41056
+ // CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=70185f70&
41057
41057
 
41058
41058
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
41059
41059
  var es_array_for_each = __webpack_require__("4160");
@@ -41944,12 +41944,12 @@ var FlashMessages_component = normalizeComponent(
41944
41944
  )
41945
41945
 
41946
41946
  /* harmony default export */ var FlashMessages = (FlashMessages_component.exports);
41947
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0f78bc3c-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/HeaderContentCountry.vue?vue&type=template&id=731f6bea&
41948
- var HeaderContentCountryvue_type_template_id_731f6bea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.headerRow},[_c('div',{class:[_vm.$style.left, _vm.$style.regionTitle]},[_vm._v(" "+_vm._s(_vm.$t('country'))+" ")]),_c('div',{class:_vm.$style.right},[_c('CountrySelect',{attrs:{"selected-country":_vm.countryCode,"available-countries":_vm.availableCountries,"on-input":function (value) { return _vm.changeCountry(value.countryCode); }}})],1)])}
41949
- var HeaderContentCountryvue_type_template_id_731f6bea_staticRenderFns = []
41947
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0f78bc3c-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/HeaderContentCountry.vue?vue&type=template&id=4678f55c&
41948
+ var HeaderContentCountryvue_type_template_id_4678f55c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.headerRow},[_c('div',{class:[_vm.$style.left, _vm.$style.regionTitle]},[_vm._v(" "+_vm._s(_vm.$t('country'))+" ")]),_c('div',{class:_vm.$style.right},[_c('CountrySelect',{attrs:{"selected-country":_vm.countryCode,"available-countries":_vm.availableCountries,"on-input":function (value) { return _vm.changeCountry(value.countryCode); }}})],1)])}
41949
+ var HeaderContentCountryvue_type_template_id_4678f55c_staticRenderFns = []
41950
41950
 
41951
41951
 
41952
- // CONCATENATED MODULE: ./src/components/HeaderContentCountry.vue?vue&type=template&id=731f6bea&
41952
+ // CONCATENATED MODULE: ./src/components/HeaderContentCountry.vue?vue&type=template&id=4678f55c&
41953
41953
 
41954
41954
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0f78bc3c-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/CountrySelect.vue?vue&type=template&id=195d547a&
41955
41955
  var CountrySelectvue_type_template_id_195d547a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-select',{class:_vm.$style.select,attrs:{"value":_vm.value,"options":_vm.options,"clearable":false},on:{"input":_vm.onInput},scopedSlots:_vm._u([{key:"option",fn:function(option){return [_c('CountrySelectOption',{attrs:{"option":option}})]}},{key:"selected-option-container",fn:function(ref){
@@ -42165,6 +42165,12 @@ var CountrySelect_component = normalizeComponent(
42165
42165
  },
42166
42166
  methods: {
42167
42167
  changeCountry: function changeCountry(countryCode) {
42168
+ try {
42169
+ window.localStorage.setItem('eideasySelectedCountry', countryCode);
42170
+ } catch (e) {
42171
+ console.error(e);
42172
+ }
42173
+
42168
42174
  return this.$root.$options.storeActions.changeCountry(countryCode);
42169
42175
  }
42170
42176
  }
@@ -42193,8 +42199,8 @@ function HeaderContentCountry_injectStyles (context) {
42193
42199
 
42194
42200
  var HeaderContentCountry_component = normalizeComponent(
42195
42201
  components_HeaderContentCountryvue_type_script_lang_js_,
42196
- HeaderContentCountryvue_type_template_id_731f6bea_render,
42197
- HeaderContentCountryvue_type_template_id_731f6bea_staticRenderFns,
42202
+ HeaderContentCountryvue_type_template_id_4678f55c_render,
42203
+ HeaderContentCountryvue_type_template_id_4678f55c_staticRenderFns,
42198
42204
  false,
42199
42205
  HeaderContentCountry_injectStyles,
42200
42206
  null,
@@ -48710,6 +48716,15 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
48710
48716
  selectedMethod = this.selectedMethod;
48711
48717
  } else if ((this.otpPhone || this.otpEmail) && this.isOtpSent) {
48712
48718
  selectedMethod = eideasy_browser_client["methodActionTypes"].OTP_EMAIL;
48719
+ } // Only use the user's previously selected country if there's
48720
+ // no preselected method. Preselected method is most often used in cases
48721
+ // where there's a specific method start button e.g. "Login with estonian id card"
48722
+ // in those cases the developer will provide a preselected method and country to our widget
48723
+ // which we do not wish to override.
48724
+
48725
+
48726
+ if (!selectedMethod) {
48727
+ countryToSelect = this.getCountryFromLocalStorage() || countryToSelect;
48713
48728
  }
48714
48729
 
48715
48730
  if (selectedMethod) {
@@ -48767,6 +48782,17 @@ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_
48767
48782
  },
48768
48783
  updateMode: function updateMode(value) {
48769
48784
  return this.$root.$options.storeActions.updateMode(value);
48785
+ },
48786
+ getCountryFromLocalStorage: function getCountryFromLocalStorage() {
48787
+ var country = null;
48788
+
48789
+ try {
48790
+ country = window.localStorage.getItem('eideasySelectedCountry');
48791
+ } catch (e) {
48792
+ console.error(e);
48793
+ }
48794
+
48795
+ return country;
48770
48796
  }
48771
48797
  }
48772
48798
  });