@eid-easy/eideasy-widget 2.69.1-alpha.2 → 2.70.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.68.0](https://github.com/eideasy/eideasy-widget/compare/v2.67.0...v2.68.0) (2022-12-22)
1
+ ## [2.69.1](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1) (2022-12-30)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Show unique indentifier for swisscom ([#165](https://github.com/eideasy/eideasy-widget/issues/165)) ([837d905](https://github.com/eideasy/eideasy-widget/commit/837d905202ca7656fac97aa7bd367bb8c0c6ad57))
6
+ * fix the identification methods config issue ([#171](https://github.com/eideasy/eideasy-widget/issues/171)) ([1de45cc](https://github.com/eideasy/eideasy-widget/commit/1de45cc4d63a54cdaf63313cbce7f2b1db2397c3))
7
7
 
8
8
 
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,11 +1,29 @@
1
- ## [2.69.1-alpha.2](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1-alpha.2) (2022-12-30)
1
+ # [2.70.0](https://github.com/eideasy/eideasy-widget/compare/v2.69.1...v2.70.0) (2023-01-10)
2
2
 
3
3
 
4
+ ### Features
4
5
 
5
- ## [2.69.1-alpha.1](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1-alpha.1) (2022-12-30)
6
+ * add allowMethodChange option that determines whether the end user is allowed to change the preselected method ([#175](https://github.com/eideasy/eideasy-widget/issues/175)) ([fa58469](https://github.com/eideasy/eideasy-widget/commit/fa58469cb0d4d0f22b43f78bba5958a3be0a1a46))
6
7
 
7
8
 
8
9
 
10
+ ## [2.69.1](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1) (2022-12-30)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * fix the identification methods config issue ([#171](https://github.com/eideasy/eideasy-widget/issues/171)) ([1de45cc](https://github.com/eideasy/eideasy-widget/commit/1de45cc4d63a54cdaf63313cbce7f2b1db2397c3))
16
+
17
+
18
+
19
+ ## [2.69.1-alpha.2](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1-alpha.2) (2022-12-30)
20
+
21
+
22
+
23
+ ## [2.69.1-alpha.1](https://github.com/eideasy/eideasy-widget/compare/v2.69.0...v2.69.1-alpha.1) (2022-12-30)
24
+
25
+
26
+
9
27
  # [2.69.0](https://github.com/eideasy/eideasy-widget/compare/v2.68.0...v2.69.0) (2022-12-30)
10
28
 
11
29
 
@@ -17195,7 +17195,7 @@ module.exports = {
17195
17195
  ...rest
17196
17196
  }, children.concat([_c('defs', [_c('linearGradient', {
17197
17197
  attrs: {
17198
- "id": "id-3a",
17198
+ "id": "id-0a",
17199
17199
  "x1": "124.883",
17200
17200
  "y1": "17.983",
17201
17201
  "x2": "117.483",
@@ -17224,7 +17224,7 @@ module.exports = {
17224
17224
  }
17225
17225
  })]), _c('linearGradient', {
17226
17226
  attrs: {
17227
- "id": "id-4b",
17227
+ "id": "id-1b",
17228
17228
  "x1": "116.71",
17229
17229
  "y1": "31.343",
17230
17230
  "x2": "102.594",
@@ -17253,7 +17253,7 @@ module.exports = {
17253
17253
  }
17254
17254
  })]), _c('linearGradient', {
17255
17255
  attrs: {
17256
- "id": "id-5c",
17256
+ "id": "id-2c",
17257
17257
  "x1": "106.335",
17258
17258
  "y1": "23.516",
17259
17259
  "x2": "140.192",
@@ -17277,18 +17277,18 @@ module.exports = {
17277
17277
  }
17278
17278
  }), _c('path', {
17279
17279
  attrs: {
17280
- "fill": "url(#id-3a)",
17280
+ "fill": "url(#id-0a)",
17281
17281
  "d": "M126.585 16.359l-6.919 4.057V1.094l6.919 6.917v8.348z"
17282
17282
  }
17283
17283
  }), _c('path', {
17284
17284
  attrs: {
17285
- "fill": "url(#id-4b)",
17285
+ "fill": "url(#id-1b)",
17286
17286
  "d": "M106.335 11.382h6.634v23.101h-6.634z"
17287
17287
  }
17288
17288
  }), _c('path', {
17289
17289
  attrs: {
17290
17290
  "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",
17291
- "fill": "url(#id-5c)"
17291
+ "fill": "url(#id-2c)"
17292
17292
  }
17293
17293
  }), _c('path', {
17294
17294
  attrs: {
@@ -18245,7 +18245,7 @@ module.exports = {
18245
18245
  ...rest
18246
18246
  }, children.concat([_c('defs', [_c('linearGradient', {
18247
18247
  attrs: {
18248
- "id": "id-0a",
18248
+ "id": "id-3a",
18249
18249
  "x1": "45.313%",
18250
18250
  "x2": "33.822%",
18251
18251
  "y1": "69.296%",
@@ -18263,7 +18263,7 @@ module.exports = {
18263
18263
  }
18264
18264
  })]), _c('linearGradient', {
18265
18265
  attrs: {
18266
- "id": "id-2c",
18266
+ "id": "id-5c",
18267
18267
  "x1": "17.248%",
18268
18268
  "x2": "58.688%",
18269
18269
  "y1": "34.281%",
@@ -18281,7 +18281,7 @@ module.exports = {
18281
18281
  }
18282
18282
  })]), _c('path', {
18283
18283
  attrs: {
18284
- "id": "id-1b",
18284
+ "id": "id-4b",
18285
18285
  "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"
18286
18286
  }
18287
18287
  })]), _c('g', {
@@ -18296,12 +18296,12 @@ module.exports = {
18296
18296
  }
18297
18297
  }), _c('use', {
18298
18298
  attrs: {
18299
- "fill": "url(#id-0a)",
18300
- "xlink:href": "#id-1b"
18299
+ "fill": "url(#id-3a)",
18300
+ "xlink:href": "#id-4b"
18301
18301
  }
18302
18302
  }), _c('path', {
18303
18303
  attrs: {
18304
- "fill": "url(#id-2c)",
18304
+ "fill": "url(#id-5c)",
18305
18305
  "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"
18306
18306
  }
18307
18307
  }), _c('g', {
@@ -19826,7 +19826,7 @@ $({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILEN
19826
19826
 
19827
19827
  /***/ }),
19828
19828
 
19829
- /***/ 85616:
19829
+ /***/ 81982:
19830
19830
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
19831
19831
 
19832
19832
  "use strict";
@@ -23061,19 +23061,19 @@ exports.isValid = function (code) {
23061
23061
 
23062
23062
  /***/ }),
23063
23063
 
23064
- /***/ 4287:
23064
+ /***/ 55910:
23065
23065
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23066
23066
 
23067
23067
  // style-loader: Adds some css to the DOM by adding a <style> tag
23068
23068
 
23069
23069
  // load the styles
23070
- var content = __webpack_require__(85616);
23070
+ var content = __webpack_require__(81982);
23071
23071
  if(content.__esModule) content = content.default;
23072
23072
  if(typeof content === 'string') content = [[module.id, content, '']];
23073
23073
  if(content.locals) module.exports = content.locals;
23074
23074
  // add the styles to the DOM
23075
23075
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
23076
- var update = add("6478f302", content, true, {"sourceMap":false,"shadowMode":false});
23076
+ var update = add("76484e91", content, true, {"sourceMap":false,"shadowMode":false});
23077
23077
 
23078
23078
  /***/ }),
23079
23079
 
@@ -33546,13 +33546,20 @@ if (inBrowser) {
33546
33546
 
33547
33547
 
33548
33548
 
33549
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=template&id=2047953e&
33549
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=template&id=1a7f5667&
33550
33550
  var render = function render() {
33551
33551
  var _vm = this,
33552
33552
  _c = _vm._self._c;
33553
33553
  return _c('div', {
33554
33554
  class: _vm.$style.app
33555
- }, [_c('AppLayout')], 1);
33555
+ }, [_vm.initErrors.length ? _c('div', _vm._l(_vm.initErrors, function (error) {
33556
+ return _c('AppAlert', {
33557
+ key: error.text,
33558
+ attrs: {
33559
+ "scheme": "danger"
33560
+ }
33561
+ }, [_vm._v(" " + _vm._s(error.text) + " ")]);
33562
+ }), 1) : _c('AppLayout')], 1);
33556
33563
  };
33557
33564
  var staticRenderFns = [];
33558
33565
 
@@ -44748,10 +44755,13 @@ const otpFlowNames = {
44748
44755
 
44749
44756
 
44750
44757
 
44758
+
44759
+
44751
44760
  /* harmony default export */ var Appvue_type_script_lang_js_ = ({
44752
44761
  name: 'App',
44753
44762
  components: {
44754
- AppLayout: AppLayout
44763
+ AppLayout: AppLayout,
44764
+ AppAlert: AppAlert
44755
44765
  },
44756
44766
  props: {
44757
44767
  language: {
@@ -44868,15 +44878,21 @@ const otpFlowNames = {
44868
44878
  fieldAutocomplete: {
44869
44879
  type: Boolean,
44870
44880
  default: false
44881
+ },
44882
+ allowMethodChange: {
44883
+ type: Boolean,
44884
+ default: true
44871
44885
  }
44872
44886
  },
44887
+ data() {
44888
+ return {
44889
+ initErrors: []
44890
+ };
44891
+ },
44873
44892
  computed: {
44874
44893
  countryCodeFromStore() {
44875
44894
  return this.$root.$options.storeGetters.countryCode();
44876
44895
  },
44877
- identificationMethods() {
44878
- return this.$root.$options.storeGetters.identificationMethods();
44879
- },
44880
44896
  shouldStartAtOtpView() {
44881
44897
  return (this.otpPhone || this.otpEmail) && this.isOtpSent && this.otpFlow !== src_otpFlowNames.START_AT_METHOD_SELECTION;
44882
44898
  }
@@ -44932,6 +44948,24 @@ const otpFlowNames = {
44932
44948
  this.updateRequireHandwrittenSignature(this.requireHandwrittenSignature);
44933
44949
  this.updateOtpFlow(this.otpFlow);
44934
44950
  this.updateFieldAutocomplete(this.fieldAutocomplete);
44951
+ if (!this.allowMethodChange) {
44952
+ // this.allowMethodChange determines whether the end user is allowed to change the preselected method
44953
+ if (!this.selectedMethod || !this.countryCode) {
44954
+ this.initErrors.push({
44955
+ text: 'If allowMethodChange is set to false, then the following Widget parameters are required: selectedMethod, countryCode'
44956
+ });
44957
+ throw new Error('If allowMethodChange is set to false, then the following Widget parameters are required: selectedMethod, countryCode');
44958
+ }
44959
+ this.updateShowBackButton(false);
44960
+ this.updateShowCountrySelect(false);
44961
+ this.changeMethods({
44962
+ // We set both signature and identification to the same value
44963
+ // This works because the method actionTypes are unique and Widget ignores invalid actionTypes
44964
+ signature: [this.selectedMethod],
44965
+ identification: [this.selectedMethod]
44966
+ });
44967
+ }
44968
+ this.updateAllowMethodChange(this.allowMethodChange);
44935
44969
  if (this.emailToken) {
44936
44970
  this.updateInputValues({
44937
44971
  email_token: this.emailToken
@@ -45045,15 +45079,18 @@ const otpFlowNames = {
45045
45079
  },
45046
45080
  updateFieldAutocomplete(value) {
45047
45081
  return this.$root.$options.storeActions.updateFieldAutocomplete(value);
45082
+ },
45083
+ updateAllowMethodChange(value) {
45084
+ return this.$root.$options.storeActions.updateAllowMethodChange(value);
45048
45085
  }
45049
45086
  }
45050
45087
  });
45051
45088
  ;// CONCATENATED MODULE: ./src/App.vue?vue&type=script&lang=js&
45052
45089
  /* harmony default export */ var src_Appvue_type_script_lang_js_ = (Appvue_type_script_lang_js_);
45053
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=2047953e&prod&lang=scss&module=true&
45054
- var Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_ = __webpack_require__(4287);
45055
- var Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_);
45056
- ;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=2047953e&prod&lang=scss&module=true&
45090
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=1a7f5667&prod&lang=scss&module=true&
45091
+ var Appvue_type_style_index_0_id_1a7f5667_prod_lang_scss_module_true_ = __webpack_require__(55910);
45092
+ var Appvue_type_style_index_0_id_1a7f5667_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(Appvue_type_style_index_0_id_1a7f5667_prod_lang_scss_module_true_);
45093
+ ;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=1a7f5667&prod&lang=scss&module=true&
45057
45094
 
45058
45095
  ;// CONCATENATED MODULE: ./src/App.vue
45059
45096
 
@@ -45066,7 +45103,7 @@ var Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_default = /
45066
45103
 
45067
45104
  function App_injectStyles (context) {
45068
45105
 
45069
- this["$style"] = ((Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_default()).locals || (Appvue_type_style_index_0_id_2047953e_prod_lang_scss_module_true_default()))
45106
+ this["$style"] = ((Appvue_type_style_index_0_id_1a7f5667_prod_lang_scss_module_true_default()).locals || (Appvue_type_style_index_0_id_1a7f5667_prod_lang_scss_module_true_default()))
45070
45107
 
45071
45108
  }
45072
45109
 
@@ -47857,7 +47894,8 @@ const createStore = function createStore({
47857
47894
  mode: null,
47858
47895
  requireHandwrittenSignature: false,
47859
47896
  otpFlow: null,
47860
- fieldAutocomplete: false
47897
+ fieldAutocomplete: false,
47898
+ allowMethodChange: true
47861
47899
  });
47862
47900
  const filterMethodsByCountry = function filterMethodsByCountry(methods, country) {
47863
47901
  return methods.filter(method => {
@@ -47920,7 +47958,8 @@ const createStore = function createStore({
47920
47958
  mode: () => store.mode,
47921
47959
  requireHandwrittenSignature: () => store.requireHandwrittenSignature,
47922
47960
  otpFlow: () => store.otpFlow,
47923
- fieldAutocomplete: () => store.fieldAutocomplete
47961
+ fieldAutocomplete: () => store.fieldAutocomplete,
47962
+ allowMethodChange: () => store.allowMethodChange
47924
47963
  };
47925
47964
  const mutations = {
47926
47965
  setCountryCode(countryCode) {
@@ -47988,6 +48027,9 @@ const createStore = function createStore({
47988
48027
  },
47989
48028
  setFieldAutocomplete(value) {
47990
48029
  store.fieldAutocomplete = value;
48030
+ },
48031
+ setAllowMethodChange(value) {
48032
+ store.allowMethodChange = value;
47991
48033
  }
47992
48034
  };
47993
48035
  const actions = {
@@ -48090,7 +48132,6 @@ const createStore = function createStore({
48090
48132
  const method = availableMethods.find(method => method.actionType === enabledActionType);
48091
48133
  if (method) {
48092
48134
  result.push(method);
48093
- mutations.setIdentificationMethods(identificationMethods);
48094
48135
  }
48095
48136
  });
48096
48137
  }
@@ -48150,6 +48191,9 @@ const createStore = function createStore({
48150
48191
  },
48151
48192
  updateFieldAutocomplete(newValue) {
48152
48193
  mutations.setFieldAutocomplete(newValue);
48194
+ },
48195
+ updateAllowMethodChange(newValue) {
48196
+ mutations.setAllowMethodChange(newValue);
48153
48197
  }
48154
48198
  };
48155
48199
  return {